:root {
  color-scheme:light;
  --ink:#233b32;
  --green:#285b45;
  --deep:#204a39;
  --muted:#64736b;
  --line:#dce3db;
  --paper:#f7f8f4;
  --white:#fff;
  --serif:"STSong","Songti SC","Noto Serif CJK SC","SimSun",serif;
  --sans:"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.55 var(--sans);
  -webkit-tap-highlight-color:transparent;
}

button,input,textarea,select {
  font:inherit;
  color:inherit;
}

button {
  cursor:pointer;
}

button, input, textarea, select {
  outline-offset:3px;
}

button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid #538061;
}

button {
  border:0;
  background:none;
}

button:disabled {
  cursor:wait;
  opacity:.58;
}

button:active:not(:disabled) {
  transform:translateY(1px);
}

h1,h2,h3,p {
  margin:0;
}

[hidden] {
  display:none!important;
}

i[data-icon],.brand-mark,.icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
}

svg.line {
  display:block;
  width:1.16em;
  height:1.16em;
  stroke:currentColor;
  fill:none;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:218px minmax(0,1fr);
}

.rail {
  background:#f0f3ec;
  border-right:1px solid #d8e0d7;
  position:sticky;
  top:0;
  height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:31px 17px 20px;
  z-index:4;
}

.rail nav {
  overflow:auto;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 10px 24px;
  border-bottom:1px solid var(--line);
}

.brand-mark {
  height:44px;
  width:44px;
  background:var(--green);
  color:#fff7dc;
  border-radius:13px;
  box-shadow:inset 0 0 0 1px #16422e;
}

.brand-mark svg {
  width:28px;
  height:28px;
}

.brand b {
  display:block;
  font-family:var(--serif);
  font-size:29px;
  font-weight:800;
  letter-spacing:.1em;
  line-height:1.25;
}

.brand small,.owner small {
  display:block;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.05em;
}

.rail-label {
  margin:28px 13px 10px;
  color:#69766a;
  font-size:13px;
  font-weight:600;
}

.nav-btn {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:43px;
  text-align:left;
  border-radius:8px;
  padding:8px 13px;
  margin-bottom:3px;
  color:#455a4c;
  font-size:15px;
  font-weight:550;
}

.nav-btn:hover {
  background:#e5ebe1;
}

.nav-btn.active {
  background:#d9e7d8;
  color:#214c37;
  font-weight:700;
}

.nav-btn small {
  margin-left:auto;
  min-width:22px;
  text-align:center;
  font:13px/22px var(--sans);
  background:#e7ece4;
  border-radius:6px;
}

.nav-btn.active small {
  background:#c6dac5;
}

.source-icon {
  width:12px;
  height:12px;
  border:1.5px solid currentColor;
  border-radius:4px;
  transform:rotate(-8deg);
  margin:0 3px;
  position:relative;
}

.source-icon:after {
  content:"";
  position:absolute;
  inset:2px;
  border-radius:1px;
  background:currentColor;
  opacity:.36;
}

.s0 {
  --accent:#8e5b35;
  --tint:#f3e6d5;
  --card:#f9efdd;
}

.s1 {
  --accent:#3b7180;
  --tint:#dcecef;
  --card:#e9f2f3;
}

.s2 {
  --accent:#6f5984;
  --tint:#ece5f2;
  --card:#f1ebf4;
}

.s3 {
  --accent:#4d7054;
  --tint:#e1ecdb;
  --card:#ecf2e6;
}

.source-icon {
  color:var(--accent);
}

.rail-foot {
  margin-top:auto;
  padding-top:20px;
}

.owner {
  border-top:1px solid var(--line);
  padding:20px 4px 0;
  display:flex;
  align-items:center;
  gap:10px;
}

.avatar {
  width:39px;
  height:39px;
  border:1px solid #cfdbcb;
  border-radius:50%;
  background:#dce6d5;
  display:grid;
  place-items:center;
  font:bold 20px var(--serif);
}

.owner b {
  font-size:14px;
}

.owner .icon-btn {
  margin-left:auto;
}

.top {
  height:73px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 clamp(20px,3.2vw,52px);
  background:#fbfcf8;
}

.crumb,.top-right,.safe,.search,.icon-btn,.btn,.chip,.badge,.meta,.section-title,.paperfoot,.date-tag,.kind-toggle,.form-actions {
  display:flex;
  align-items:center;
}

.crumb {
  gap:10px;
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
}

.crumb strong {
  font-weight:600;
  color:var(--ink);
}

.slash {
  opacity:.45;
}

.top-right {
  gap:22px;
}

.search {
  background:#eff2ed;
  border:1px solid #dbe1d8;
  border-radius:8px;
  gap:9px;
  padding:7px 10px;
  min-height:37px;
  color:var(--muted);
}

.search input {
  width:clamp(110px,14vw,200px);
  min-width:0;
  background:none;
  border:0;
  font-size:14px;
  outline:none;
}

.search:focus-within {
  outline:2px solid #7b9d7e;
}

.search kbd {
  border:1px solid #d0d9ce;
  background:#f9faf6;
  border-radius:4px;
  padding:0 5px;
  font-size:12px;
}

.safe {
  gap:6px;
  font-size:13px;
  color:#60725f;
  white-space:nowrap;
}

.workspace {
  max-width:1530px;
  margin:auto;
  padding:clamp(24px,2.5vw,42px) clamp(20px,3.2vw,52px) 48px;
}

.page-heading,.section-head,.record-top,.panel-title,.dialog-head,.row,.meta-line,.auth-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.page-heading {
  margin-bottom:21px;
}

.page-heading h1 {
  font:700 clamp(27px,2.5vw,37px)/1.25 var(--serif);
  letter-spacing:.04em;
}

.page-heading p {
  font-size:14px;
  color:var(--muted);
  margin-top:6px;
}

.btn {
  min-height:39px;
  justify-content:center;
  gap:7px;
  padding:8px 14px;
  border-radius:8px;
  border:1px solid #ccd7cc;
  background:white;
  color:var(--green);
  font-size:14px;
  font-weight:650;
}

.btn:hover {
  background:#f0f4ed;
}

.btn.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
  box-shadow:0 2px 3px #14342413;
}

.btn.primary:hover {
  background:#214e3a;
}

.btn.danger {
  color:#ab4233;
}

.icon-btn {
  justify-content:center;
  min-width:34px;
  min-height:34px;
  border-radius:7px;
  color:var(--muted);
  padding:6px;
}

.icon-btn:hover {
  background:#e5ece2;
}

.menu,.veil {
  display:none;
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#fff7de;
  border-radius:15px;
  background:#214e3b;
  min-height:203px;
  padding:26px 32px 24px;
  box-shadow:inset 0 0 0 1px #183f2f;
}

.hero canvas {
  position:absolute;
  z-index:-1;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.date-tag {
  gap:8px;
  font-size:13px;
  color:#e2ead6;
  font-weight:600;
}

.hero h2 {
  font:700 clamp(29px,3vw,41px)/1.3 var(--serif);
  letter-spacing:.08em;
  margin:5px 0 17px;
}

.metrics {
  display:flex;
  gap:0;
}

.metric {
  padding:0 20px;
  min-width:84px;
  border-right:1px solid #ffffff38;
  display:flex;
  align-items:baseline;
  gap:8px;
  color:#f8f4dd;
  text-align:left;
}

.metric:first-child {
  padding-left:0;
}

.metric:last-child {
  border:none;
}

.metric:hover .num {
  color:#e0eb9f;
}

.metric .num {
  font:normal 34px/1.05 Georgia,serif;
  font-variant-numeric:tabular-nums;
}

.metric span:last-child {
  font-size:13px;
  color:#e1ead9;
}

.columns {
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);
  gap:clamp(16px,2vw,30px);
  margin-top:27px;
}

.panel {
  min-width:0;
}

.section-head {
  padding:0 1px;
  margin-bottom:14px;
}

.section-title {
  gap:9px;
}

.section-title>i {
  color:var(--green);
  background:#e6eddf;
  border-radius:8px;
  width:32px;
  height:32px;
}

.section-title h2,.panel-title h2 {
  font:700 23px/1.25 var(--serif);
}

.text-btn {
  color:var(--green);
  font-size:14px;
  padding:4px 2px;
  font-weight:600;
  border-radius:4px;
}

.text-btn:hover {
  text-decoration:underline;
}

.taskbox {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}

.filters {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}

.taskbox>.filters {
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}

.filter {
  font-size:14px;
  color:var(--muted);
  padding:5px 10px;
  min-height:31px;
  border-radius:6px;
}

.filter:hover {
  background:#f0f4ec;
}

.filter.selected {
  background:#e3edde;
  color:#285438;
  font-weight:650;
}

.task-row {
  display:flex;
  gap:13px;
  align-items:flex-start;
  border-bottom:1px solid #e6eae3;
  padding:16px;
}

.task-row:last-child {
  border-bottom:0;
}

.task-row:hover {
  background:#f9fbf7;
}

.check {
  margin-top:3px;
  flex:none;
  border:1.6px solid #a9b8aa;
  width:19px;
  height:19px;
  border-radius:6px;
  background:#fff;
  display:grid;
  place-items:center;
  padding:0;
}

.check:before {
  content:"";
  padding:6px;
  position:absolute;
}

.check.checked {
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}

.check svg {
  width:15px;
  height:15px;
}

.row-body {
  min-width:0;
  flex:1;
  text-align:left;
  padding:0;
  display:block;
}

.row-title {
  font-size:16px;
  font-weight:650;
  line-height:1.5;
  display:block;
  overflow-wrap:anywhere;
}

.is-done .row-title {
  color:#7d8780;
  text-decoration:line-through;
}

.meta {
  margin-top:7px;
  flex-wrap:wrap;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}

.chip,.badge,.due,.photo-count {
  display:inline-flex;
  gap:4px;
  align-items:center;
  font-size:12px;
  line-height:1.5;
}

.chip {
  background:var(--tint);
  color:var(--accent);
  border-radius:4px;
  padding:2px 7px;
  font-weight:600;
}

.badge {
  color:#925135;
  background:#f9eadf;
  padding:2px 6px;
  border-radius:4px;
}

.due svg,.photo-count svg {
  width:14px;
  height:14px;
}

.due.late {
  color:#a34d38;
}

.addrow {
  width:100%;
  padding:12px 15px;
  color:var(--green);
  font-size:14px;
  text-align:left;
  background:#f8faf5;
  border-top:1px dashed #d4dfd0;
  display:flex;
  align-items:center;
  gap:8px;
}

.addrow:hover {
  background:#edf3e8;
}

.notes {
  display:grid;
  gap:13px;
}

.paper {
  border:1px solid color-mix(in srgb,var(--accent) 20%,white);
  background:var(--card);
  padding:15px 18px 13px;
  border-radius:4px 12px 12px 12px;
  position:relative;
  min-width:0;
  transition:transform .16s ease,box-shadow .16s ease;
}

.paper:before {
  content:"";
  position:absolute;
  top:-1px;
  left:17px;
  width:28px;
  height:4px;
  background:var(--accent);
  opacity:.62;
  border-radius:0 0 3px 3px;
}

.paper:hover {
  transform:translateY(-2px);
  box-shadow:0 4px 12px #1d3b2810;
}

.paper-open {
  display:block;
  width:100%;
  text-align:left;
  padding:0;
}

.paper h3 {
  margin-top:9px;
  font:700 19px/1.4 var(--serif);
  overflow-wrap:anywhere;
}

.paper p,.excerpt {
  color:#526052;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  font-size:14px;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.paper p {
  margin:6px 0 9px;
  white-space:pre-line;
}

.paperfoot {
  gap:8px;
  justify-content:space-between;
  color:#617163;
  font-size:12px;
}

.paperfoot .tags {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.paper .chip {
  background:#ffffff75;
}

.thumbs {
  display:flex;
  gap:7px;
  margin:8px 0;
}

.thumbs button {
  padding:0;
  border-radius:6px;
  overflow:hidden;
  line-height:0;
  border:1px solid #0001;
}

.thumbs img {
  object-fit:cover;
  width:57px;
  height:44px;
}

.board {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));
  gap:15px;
  align-items:start;
}

.board .paper {
  min-height:165px;
}

.view-tools {
  margin:0 0 15px;
}

.status-line {
  color:var(--muted);
  font-size:13px;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:19px;
}

.status-line svg {
  width:15px;
}

.empty {
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.empty .big-icon {
  margin:0 auto 8px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#e9efe3;
  color:var(--green);
}

.empty h3 {
  font-size:16px;
  color:var(--ink);
  margin:5px 0;
}

.empty .text-btn {
  margin-top:7px;
}

.blank-paper {
  border:1px dashed #b6c6b6;
  background:#eef4e9;
  border-radius:10px;
}

.result-group {
  margin-top:25px;
}

.result-group h2 {
  font:700 21px var(--serif);
  margin-bottom:12px;
}

.result-group .excerpt {
  margin-top:6px;
}

.search-hint {
  font-size:13px;
  color:var(--green);
  margin-top:6px;
}

.search-hint mark {
  background:#f3e58f;
  color:#37462c;
}

.alert {
  padding:10px 13px;
  background:#fff0d5;
  color:#814d24;
  border-radius:7px;
  font-size:14px;
  margin:10px 0;
}

.icon-btn:hover,.btn,.paper,.nav-btn,.filter {
  transition:background .15s,box-shadow .15s,transform .15s;
}

dialog {
  border:1px solid #ccd6c9;
  border-radius:15px;
  padding:0;
  width:min(580px,calc(100vw - 26px));
  max-height:90dvh;
  box-shadow:0 22px 75px #10251929;
  color:var(--ink);
  background:#fffefb;
}

dialog::backdrop {
  background:#11271e66;
  backdrop-filter:blur(3px);
}

dialog[open] {
  animation:rise .18s ease-out;
}

@keyframes rise {
  from {
    opacity:0;
    transform:translateY(7px);
  }
  to {
    opacity:1;
    transform:none;
  }
}

.dialog-head {
  border-bottom:1px solid var(--line);
  padding:16px 22px;
}

.dialog-head h2 {
  font:700 23px var(--serif);
}

.form-body {
  padding:18px 22px;
  display:grid;
  gap:14px;
}

.kind-toggle {
  gap:4px;
  padding:4px;
  background:#eff3ec;
  border-radius:8px;
  justify-self:start;
}

.kind-toggle button {
  padding:5px 13px;
  color:var(--muted);
  border-radius:6px;
  font-size:14px;
}

.kind-toggle button.on {
  background:white;
  box-shadow:0 1px 4px #233d2820;
  color:var(--green);
  font-weight:700;
}

.field {
  display:grid;
  gap:5px;
  font-weight:600;
  font-size:14px;
  min-width:0;
}

.field input,.field textarea,.field select,.cap-input {
  border:1px solid #cad5ca;
  border-radius:7px;
  background:white;
  padding:9px 11px;
  width:100%;
  font-weight:400;
  font-size:16px;
  min-height:40px;
}

.field textarea {
  resize:vertical;
  min-height:90px;
}

.field small,.helper {
  font-weight:400;
  font-size:13px;
  color:var(--muted);
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.inline-check {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:14px;
}

.inline-check input {
  accent-color:var(--green);
  width:17px;
  height:17px;
}

.upload {
  border:1px dashed #aabfaa;
  border-radius:8px;
  padding:10px;
  text-align:center;
  color:var(--green);
  background:#f5f8f1;
  cursor:pointer;
}

.upload input {
  width:100%;
  font-size:14px;
  padding:4px;
}

.upload.over {
  background:#deeddb;
}

.attachment {
  display:grid;
  grid-template-columns:62px minmax(0,1fr) 32px;
  gap:10px;
  align-items:start;
  margin:9px 0;
}

.attachment img {
  height:55px;
  width:62px;
  object-fit:cover;
  border-radius:5px;
}

.attachment button {
  padding:0;
}

.attachment b {
  font-size:13px;
  overflow-wrap:anywhere;
}

.attachment small,.attachment details {
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}

.cap-input {
  margin:4px 0;
  font-size:14px;
  padding:5px 7px;
  min-height:32px;
}

.form-actions {
  justify-content:flex-end;
  gap:8px;
  padding:13px 22px;
  border-top:1px solid var(--line);
  position:sticky;
  bottom:0;
  background:#fffefbf5;
  z-index:1;
}

.form-actions .danger {
  margin-right:auto;
}

.error {
  color:#963e31;
  font-size:14px;
}

.error:not(:empty) {
  background:#faece5;
  border-radius:6px;
  padding:8px;
}

.datepresets {
  display:flex;
  gap:5px;
}

.datepresets button {
  font-size:13px;
  color:var(--green);
  text-decoration:underline;
}

.toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translate(-50%,14px);
  opacity:0;
  pointer-events:none;
  background:var(--deep);
  color:white;
  padding:9px 18px;
  border-radius:8px;
  font-size:14px;
  z-index:20;
  transition:.2s;
  max-width:90vw;
}

.toast.show {
  opacity:1;
  transform:translate(-50%,0);
}

#viewer {
  width:min(950px,96vw);
  background:#17251e;
  color:white;
}

#viewer .dialog-head {
  border-color:#fff2;
}

#viewer .dialog-head b {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#viewer .icon-btn {
  background:#ffffff18;
  color:white;
}

#viewer .full {
  display:block;
  max-width:100%;
  max-height:68dvh;
  margin:auto;
  object-fit:contain;
}

#viewer .gallery-bar {
  padding:11px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.gallery-bar span {
  font-size:14px;
}

.gallery-bar a {
  color:#e4f0c9;
  font-size:14px;
}

.gallery-bar .btn {
  min-height:33px;
  padding:4px 9px;
}

.auth-wrap {
  padding:27px;
}

.auth-wrap .brand {
  border:0;
  padding:0 0 18px;
}

.auth-wrap h2 {
  font:700 26px var(--serif);
  margin-bottom:8px;
}

.auth-wrap .field,.auth-wrap .btn {
  margin-top:16px;
}

.auth-foot {
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
}

.auth-wrap .btn {
  width:100%;
}

#auth {
  width:min(430px,calc(100vw - 32px));
}

.mobile-safe {
  display:none;
}

@media(min-width:1600px) {
  .shell {
    grid-template-columns:244px minmax(0,1fr);
  }
  .rail {
    padding-inline:23px;
  }
}

@media(max-width:1120px) {
  .shell {
    grid-template-columns:184px minmax(0,1fr);
  }
  .rail {
    padding-inline:12px;
  }
  .top-right {
    gap:12px;
  }
  .metric {
    padding:0 12px;
    min-width:70px;
  }
  .columns {
    gap:16px;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  }
  .workspace {
    padding-inline:22px;
  }
  .hero {
    padding-inline:23px;
  }
  .task-row {
    padding:14px 12px;
    gap:9px;
  }
}

@media(max-width:850px) {
  .shell {
    grid-template-columns:1fr;
  }
  .rail {
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:225px;
    transform:translateX(-100%);
    transition:transform .2s;
    visibility:hidden;
  }
  .nav-open .rail {
    transform:none;
    visibility:visible;
  }
  .veil {
    position:fixed;
    inset:0;
    background:#16291e55;
    z-index:3;
    width:100%;
    height:100%;
  }
  .nav-open .veil {
    display:block;
  }
  .menu {
    display:flex;
  }
  .crumb>i {
    display:none;
  }
  .top {
    height:61px;
    padding:0 16px;
  }
  .workspace {
    padding:21px 18px 30px;
  }
  .hero {
    min-height:188px;
  }
  .top-right {
    gap:10px;
  }
}

@media(max-width:650px) {
  .columns {
    grid-template-columns:minmax(0,1fr);
    gap:23px;
    margin-top:22px;
  }
  .workspace {
    padding:18px 14px 30px;
  }
  .top {
    gap:6px;
    padding:0 9px;
  }
  .crumb {
    gap:5px;
  }
  .crumb>span {
    display:none;
  }
  .search {
    padding:6px 8px;
    gap:5px;
  }
  .search input {
    width:104px;
  }
  .search kbd {
    display:none;
  }
  .safe {
    font-size:12px;
  }
  .safe svg {
    width:14px;
  }
  .top-right {
    gap:8px;
  }
  .hero {
    min-height:178px;
    padding:20px;
  }
  .hero h2 {
    font-size:32px;
    margin:6px 0 17px;
  }
  .metric {
    display:grid;
    gap:2px;
    min-width:63px;
    padding-inline:12px;
  }
  .metric .num {
    font-size:27px;
  }
  .metric span:last-child {
    font-size:12px;
  }
  .page-heading {
    margin-bottom:15px;
  }
  .page-heading h1 {
    font-size:27px;
  }
  .page-heading p {
    font-size:13px;
  }
  .page-heading .btn {
    padding:7px 11px;
  }
  .section-title h2 {
    font-size:21px;
  }
  .form-body {
    padding:14px 16px;
  }
  .form-actions,.dialog-head {
    padding:12px 16px;
  }
  .form-grid {
    grid-template-columns:1fr 1fr;
    gap:9px;
  }
  .hero canvas {
    opacity:.85;
  }
  .date-tag {
    font-size:12px;
  }
  .form-actions {
    flex-wrap:wrap;
  }
  .task-row {
    padding:15px;
  }
  .safe {
    white-space:nowrap;
  }
}

@media(max-width:360px) {
  .safe {
    display:none;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .metric {
    min-width:55px;
    padding-inline:8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.section-title>i {
  display:grid;
  place-items:center;
}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));
  gap:16px;
}

.gallery-card {
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.gallery-card>button {
  display:block;
  padding:0;
  width:100%;
}

.gallery-card img {
  display:block;
  width:100%;
  height:155px;
  object-fit:cover;
}

.gallery-card>div {
  padding:11px 13px;
  display:grid;
  justify-items:start;
}

.gallery-card b {
  overflow-wrap:anywhere;
  font-size:15px;
}

.badge svg {
  width:13px;
  height:13px;
}

.check {
  position:relative;
}

.check:before {
  inset:-6px;
}

.auth-wrap .brand-mark {
  color:#fff5d6;
}

