/* Predám — papier a cenovka. Tokeny a pravidlá: docs/design/DESIGN.md */
@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument"; src: url("/static/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument"; src: url("/static/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #E6E9EB; --surface: #F5F6F6; --ink: #14171B; --muted: #59606A; --line: #C5CACF;
  --tag: #FFD426; --tag-ink: #14171B; --stamp: #CC2A22; --ok: #1D7A4A;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --text: "Instrument", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 10px; --r-ph: 4px; --gap: 10px; --pad: 16px; --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111315; --surface: #1A1D20; --ink: #EDEFF1; --muted: #9BA2AB; --line: #2B3035;
    --stamp: #FF6258; --ok: #5CCB8E; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--text);
  min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.lnk { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lnk:hover { text-decoration-thickness: 3px; }
.err { color: var(--stamp); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }

/* --- buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink);
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-tag { background: var(--tag); color: var(--tag-ink); border-color: var(--tag-ink); }
.btn-danger { border-color: var(--stamp); color: var(--stamp); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-plain { border-color: transparent; padding: 0 8px; }

/* --- header ------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--max); margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 10px max(var(--pad), env(safe-area-inset-left)); }
.brand { text-decoration: none; display: inline-block; }
.brand-tag { position: relative; display: inline-block; background: var(--tag); color: var(--tag-ink); font: 800 21px/1 var(--display);
  padding: 7px 12px 7px 24px; border-radius: 6px; transform: rotate(-2deg);
  -webkit-mask: radial-gradient(circle 4px at 11px 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 4px at 11px 50%, transparent 98%, #000 100%); }
.top-nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }

/* --- the price tag (signature) ------------------------------------------ */
.tag { position: absolute; left: -4px; bottom: 10px; transform: rotate(-3deg); transform-origin: left bottom; z-index: 2; }
.tag-in { display: inline-block; background: var(--tag); color: var(--tag-ink); font: 800 20px/1 var(--display); letter-spacing: -.01em;
  padding: 6px 11px 6px 22px; border-radius: 6px; border: 1.5px solid var(--tag-ink); white-space: nowrap;
  -webkit-mask: radial-gradient(circle 3.5px at 10px 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 3.5px at 10px 50%, transparent 98%, #000 100%); }
.tag-word .tag-in { font-size: 17px; }
.tag-lg { position: relative; left: -2px; bottom: auto; display: inline-block; margin: 0 0 14px; }
.tag-lg .tag-in { font-size: 34px; padding: 9px 16px 9px 30px;
  -webkit-mask: radial-gradient(circle 5px at 14px 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 5px at 14px 50%, transparent 98%, #000 100%); }
.tag-lg.tag-word .tag-in { font-size: 28px; }
.is-sold .tag-in { background: var(--line); color: var(--muted); border-color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.stamp { position: absolute; z-index: 3; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  color: var(--stamp); border: 3px double var(--stamp); border-radius: 6px; padding: 3px 10px;
  font: 800 20px/1 var(--display); letter-spacing: .04em; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.stamp-lg { font-size: 40px; border-width: 5px; padding: 6px 18px; top: 45%; }

/* --- cards & grid -------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap);
  max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
  .grid-feed { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid-feed .card.is-big { grid-column: span 2; grid-row: span 2; }
  .card.is-big .card-t { font-size: 20px; } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card-ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--line); border-radius: var(--r-ph); }
.card-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-ph); }
.card.is-big .card-ph { flex: 1; aspect-ratio: auto; min-height: 0; }
.card-t { margin-top: 8px; font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-s { font-size: 13px; color: var(--muted); }
.card:hover .card-t { text-decoration: underline; text-underline-offset: 3px; }
.card.is-sold img { filter: grayscale(1) contrast(.9); opacity: .75; }
.card.is-sold .card-t { color: var(--muted); }

/* --- public: feed & shop ------------------------------------------------- */
.feed-head { max-width: var(--max); margin: 0 auto; padding: 4px var(--pad) 6px; }
.search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface);
  padding: 0 12px; max-width: 520px; }
.search input[type=search] { flex: 1; border: 0 !important; background: transparent !important; outline: none !important; padding: 0;  font: 400 16px var(--text); color: var(--ink); min-height: 44px; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--pad) 6px; margin: 0 auto; max-width: var(--max); scrollbar-width: none; }
.feed-head .chips { padding: 12px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager { display: flex; gap: 10px; justify-content: center; padding: 0 var(--pad) 32px; }
.empty { max-width: 640px; margin: 0 auto; padding: 56px var(--pad); }
.empty h1, .empty h2 { font-size: 30px; }
.sellers { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 8px; border-top: 1.5px solid var(--line); }
.sellers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sellers a { text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; min-height: 40px; }
.sellers b { font: 700 22px/1 var(--display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sellers span { color: var(--muted); font-size: 14px; }

.shop-head { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 12px; }
.nick { font: 800 clamp(56px, 19vw, 168px)/.86 var(--display); letter-spacing: -.045em; margin: 6px 0 14px -.04em; overflow-wrap: anywhere; }
.shop-title { font: 700 21px/1.2 var(--display); margin-bottom: 4px; }
.shop-meta .loc { margin-left: 12px; white-space: nowrap; }
.bio { max-width: 60ch; white-space: pre-line; }
.owner-note { max-width: var(--max); margin: 10px auto; padding: 10px 14px; border: 1.5px dashed var(--muted); border-radius: var(--r); font-size: 15px; }
main > .owner-note { margin: 10px var(--pad); }
@media (min-width: 1272px) { main > .owner-note { margin: 10px auto; } }

.contacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--r);
  text-decoration: none; font-weight: 600; background: var(--surface); }
.cbtn small { font-weight: 400; color: var(--muted); font-size: 14px; }
.cbtn.is-primary { background: var(--ink); color: var(--paper); }
.cbtn.is-primary small { color: inherit; opacity: .75; }
@media (max-width: 520px) { .contacts .cbtn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .contacts .cbtn.is-primary { flex-basis: 100%; } .cbtn small { display: none; } .cbtn.is-primary small { display: inline; } }

.inq-wrap { max-width: 640px; margin: 0 auto; padding: 28px var(--pad) 40px; }
.inq-wrap.narrow { padding-top: 12px; }
.inq { display: grid; gap: 12px; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-det { margin-top: 10px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--surface); }
.inq-det summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; font-weight: 600; list-style: none; }
.inq-det summary::-webkit-details-marker { display: none; }
.inq-det[open] { padding-bottom: 14px; }

/* --- item detail ---------------------------------------------------------- */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 6px; font-size: 15px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
.detail { max-width: var(--max); margin: 0 auto; padding: 0 0 24px; display: grid; gap: 18px; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 0 var(--pad) 32px; align-items: start; } }
.gallery-wrap { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gal-ph { flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: var(--line); }
.gal-ph img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
@media (min-width: 900px) { .gal-ph { border-radius: var(--r-ph); overflow: hidden; } }
.detail.is-sold .gal-ph img { filter: grayscale(1); opacity: .8; }
.gal-count { position: absolute; right: 10px; bottom: 10px; margin: 0; background: var(--ink); color: var(--paper); font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.detail-body { padding: 0 var(--pad); }
@media (min-width: 900px) { .detail-body { padding: 8px 0 0; position: sticky; top: 16px; } }
.d-title { font-size: 30px; }
@media (min-width: 900px) { .d-title { font-size: 40px; } }
.d-meta { font-size: 15px; }
.sold-word { color: var(--stamp); }
.d-desc { white-space: pre-line; max-width: 62ch; margin: 14px 0 20px; }
.d-contact { border-top: 1.5px solid var(--line); padding-top: 16px; margin-top: 8px; }
.d-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.seller-line { font-size: 15px; color: var(--muted); }
.seller-line b { color: var(--ink); }
.more { max-width: var(--max); margin: 0 auto; padding: 16px 0 0; }
.more h2 { padding: 0 var(--pad); }

.foot { max-width: var(--max); margin: 24px auto 0; padding: 20px var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--line); font-size: 14px; }
.spa .foot { display: none; }

/* --- forms --------------------------------------------------------------- */
.form { display: grid; gap: 14px; margin: 16px 0; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 14px; font-weight: 600; }
.fld small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input:not([type]), input[type=number], input[type=url], select, textarea {
  font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 11px 12px; min-height: 46px; width: 100%; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 96px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; accent-color: var(--ink); width: 22px; height: 22px; margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check b { display: block; font-weight: 600; }
.check small { display: block; color: var(--muted); font-size: 14px; }

/* --- auth pages ------------------------------------------------------------ */
.auth { max-width: 420px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) var(--pad) 48px; }
.auth .brand { margin-bottom: 36px; }
.auth h1 { font-size: 36px; }

/* --- SPA ------------------------------------------------------------------- */
.spa .top { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.view { max-width: 900px; margin: 0 auto; padding: 4px var(--pad) calc(96px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: stretch;
  background: var(--surface); border-top: 1.5px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
  text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; max-width: 140px; }
.tab.is-on { color: var(--ink); }
.tab .ic { width: 24px; height: 24px; }
.tab-add .tab-btn { display: flex; align-items: center; justify-content: center; width: 58px; height: 46px; border-radius: 14px;
  background: var(--tag); color: var(--tag-ink); border: 2px solid var(--tag-ink); transform: rotate(-3deg); }
.tab-add { color: var(--ink); }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--stamp); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
@media (min-width: 860px) {
  .tabbar { position: static; justify-content: center; gap: 4px; background: transparent; border: 0; padding: 0; max-width: 900px; margin: 0 auto; }
  .spa .top { position: static; }
  .tab { flex-direction: row; gap: 8px; font-size: 15px; min-height: 44px; flex: none; max-width: none; padding: 0 14px; border-radius: var(--r); }
  .tab.is-on { background: var(--surface); }
  .tab-add .tab-btn { width: auto; height: 40px; padding: 0 14px; gap: 8px; }
  .tab-add .tab-btn::after { content: "Pridať"; font-size: 15px; }
  .tab-add > span:last-child { display: none; }
  .badge { top: 2px; left: auto; right: 0; }
  .view { padding-bottom: 48px; }
}
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 10px 0 12px; }
.page-h h1 { margin: 0; font-size: 30px; }
@media (max-width: 440px) { .page-h h1 { font-size: 26px; } .seg button { padding: 0 10px; font-size: 14px; } }
.shopcard { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 10px 12px; margin-bottom: 14px; font-size: 15px; }
.shopcard a.url { font-weight: 700; overflow-wrap: anywhere; flex: 1 1 200px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { font: 600 15px var(--text); border: 0; background: transparent; color: var(--ink); min-height: 40px; padding: 0 14px; cursor: pointer; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--paper); }
.seg-block { display: flex; } .seg-block button { flex: 1; }

.rows { list-style: none; margin: 8px 0; padding: 0; }
.row > a:first-child { flex: none; display: block; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.row-ph { position: relative; display: block; width: 72px; height: 90px; flex: none; border-radius: var(--r-ph); overflow: hidden; background: var(--line); }
.row-ph img { width: 100%; height: 100%; object-fit: cover; }
.row.is-sold .row-ph img { filter: grayscale(1); opacity: .7; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 4px; text-decoration: none; }
.row-t { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-sub { font-size: 14px; color: var(--muted); }
.mini-tag { display: inline-block; justify-self: start; background: var(--tag); color: var(--tag-ink); border: 1.5px solid var(--tag-ink); border-radius: 5px;
  font: 800 15px/1 var(--display); padding: 4px 8px; transform: rotate(-2deg); }
.row.is-sold .mini-tag { background: var(--line); color: var(--muted); border-color: var(--muted); text-decoration: line-through; }
.sold-btn { flex: none; min-width: 96px; }
.sold-btn.is-sold { border-color: var(--stamp); color: var(--stamp); border-style: double; border-width: 4px; font-family: var(--display); font-weight: 800; transform: rotate(-4deg); }

/* add flow */
.shoot { display: grid; gap: 16px; margin-top: 8px; }
.shoot-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 220px; border: 2.5px dashed var(--ink); border-radius: var(--r); background: var(--surface); padding: 20px; }
.shoot-empty .ic { width: 52px; height: 52px; stroke-width: 1.6; }
.shoot-empty b { font: 700 22px var(--display); } .shoot-empty small { color: var(--muted); font-size: 15px; }
.pickers { display: flex; gap: 10px; flex-wrap: wrap; }
.pickers .btn { flex: 1 1 140px; min-height: 52px; position: relative; overflow: hidden; cursor: pointer; }
.pickers .pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.shoot-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shoot-th { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-ph); overflow: hidden; background: var(--line); }
.shoot-th.is-cover { grid-column: span 2; grid-row: span 2; }
.shoot-th img { width: 100%; height: 100%; object-fit: cover; }
.shoot-th .cover-mark { position: absolute; left: 6px; top: 6px; background: var(--tag); color: var(--tag-ink); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.shoot-th button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--paper); display: flex; align-items: center; justify-content: center; }
.price-in { display: flex; align-items: center; gap: 10px; }
.price-in input { font: 800 34px var(--display); text-align: right; max-width: 220px; min-height: 64px; padding: 6px 14px; }
.price-in span { font: 800 34px var(--display); }
.busy { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* editor */
.ed-photos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.ed-ph { position: relative; flex: none; width: 104px; height: 130px; border-radius: var(--r-ph); overflow: hidden; background: var(--line); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph .cover-mark { position: absolute; left: 4px; top: 4px; background: var(--tag); color: var(--tag-ink); font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.ed-ph button { position: absolute; width: 34px; height: 34px; border-radius: 8px; border: 0; background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ed-ph .rm { right: 4px; top: 4px; } .ed-ph .mk { right: 4px; bottom: 4px; }
.ed-add { flex: none; width: 104px; height: 130px; border: 2px dashed var(--muted); border-radius: var(--r-ph); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); position: relative; cursor: pointer; }
.ed-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.notice { padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--surface); margin: 8px 0 12px; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { border-color: var(--stamp); }
.notice .ic { margin-top: 2px; }
.bigsold { display: grid; gap: 8px; margin: 18px 0; }
.bigsold .btn { min-height: 56px; font-size: 18px; }
.sect { border-top: 1.5px solid var(--line); margin-top: 22px; padding-top: 16px; }
.sect h2 { font-size: 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.inq-item.is-new { border-left: 4px solid var(--tag); padding-left: 10px; }
.inq-msg { white-space: pre-line; margin: 6px 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
.pill.on { border-color: var(--ink); color: var(--ink); }
.whatsnew { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--tag); color: var(--tag-ink);
  border-radius: var(--r); padding: 8px 8px 8px 14px; margin: 8px 0; font-weight: 600; }
.whatsnew button { color: var(--tag-ink); border-color: var(--tag-ink); }
.skel { background: linear-gradient(90deg, var(--line), var(--surface), var(--line)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 96px; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.subnav { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 12px; scrollbar-width: none; }

/* sheet & toast */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 14, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; border-radius: 16px 16px 0 0;
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
@media (min-width: 640px) { .sheet-bg { align-items: center; } .sheet { border-radius: 16px; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--r); font-weight: 600; max-width: calc(100vw - 32px);
  pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-err { background: var(--stamp); color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
