/* Hinova Marketplace v3 — follows the seller mockup: soft lavender-white ground, white rounded
   sections, filled (borderless) inputs, deep green primary, mint for trust signals,
   yellow price tag sitting on the photo. */
:root{
  --bg:#F7F6FB; --surface:#FFFFFF; --surface-2:#F1F0F6; --fill:#F1F0F6; --ink:#1B1B21; --muted:#5F5E68; --line:#E8E6EF;
  --accent:#0F5C3F; --accent-hover:#0B4A32; --accent-ink:#FFFFFF; --accent-soft:#DFF3E7;
  --mint:#E4F7EC; --mint-line:#BFE6CD; --mint-ink:#11663F;
  --tag:#F9CB3A; --tag-ink:#1E1600;
  --ok:#14804A; --warn:#B45309; --bad:#C2261D; --ok-soft:#E1F5E9; --bad-soft:#FBE7E5; --warn-soft:#FBEFDF;
  --header:rgba(247,246,251,.86);
  --sh-1:0 1px 2px rgba(27,27,33,.05);
  --sh-2:0 12px 32px -14px rgba(27,27,33,.22),0 2px 6px rgba(27,27,33,.05);
  --font:"Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm:12px; --r:18px; --r-lg:22px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{
  --bg:#0E0F13; --surface:#17181E; --surface-2:#202129; --fill:#22232B; --ink:#EEEDF3; --muted:#A09FAB; --line:#2A2B34;
  --accent:#3DBE86; --accent-hover:#58CD9A; --accent-ink:#04160D; --accent-soft:#12301F;
  --mint:#123123; --mint-line:#1E4D33; --mint-ink:#6EDBA6;
  --tag:#F2C433; --tag-ink:#1A1300;
  --ok:#4ADE80; --warn:#F5A54A; --bad:#F87171; --ok-soft:#10291A; --bad-soft:#341515; --warn-soft:#33240F;
  --header:rgba(14,15,19,.82);
  --sh-1:0 1px 2px rgba(0,0,0,.4); --sh-2:0 14px 34px -14px rgba(0,0,0,.7);
  color-scheme:dark;
}}

*{box-sizing:border-box}
html{scroll-behavior:smooth;padding-top:env(safe-area-inset-top,0px)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
img{max-width:100%;display:block}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
h1,h2,h3{line-height:1.12;text-wrap:balance;margin:0;letter-spacing:-.025em}
p{margin:0}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px))}
.muted{color:var(--muted)}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.eyebrow{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:8px 12px;border-radius:8px;z-index:50}
.skip:focus{left:12px}
main{flex:1;outline:none}

/* ---------- buttons & inputs ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--surface);padding:10px 16px;border-radius:999px;cursor:pointer;font-weight:600;font-size:14.5px;text-decoration:none;color:var(--ink);white-space:nowrap;transition:background .15s,border-color .15s,transform .1s,box-shadow .15s;box-shadow:var(--sh-1)}
.btn:hover{border-color:color-mix(in srgb,var(--ink) 25%,transparent)}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn.dark{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.btn.ghost{border-color:transparent;background:transparent;box-shadow:none}
.btn.ghost:hover{background:var(--surface-2)}
.btn.danger{color:var(--bad)}
.btn.sm{padding:7px 12px;font-size:13.5px}
.btn.lg{padding:13px 22px;font-size:16px}
.btn.block{width:100%}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.iconbtn{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--ink);text-decoration:none;border:0;background:transparent;cursor:pointer}
.iconbtn:hover{background:var(--surface-2)}
.badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:#fff;font-size:11px;font-weight:700;display:inline-grid;place-items:center;font-style:normal}
.iconbtn .badge{position:absolute;top:2px;right:0}
.linkbtn{background:none;border:0;padding:0;color:var(--accent);font-weight:600;cursor:pointer;text-decoration:none}
.linkbtn:hover{text-decoration:underline}

.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>label,.label{font-weight:600;font-size:13.5px}
.input,.field input,.field select,.field textarea{padding:13px 15px;border:1.5px solid transparent;border-radius:var(--r-sm);background:var(--fill);width:100%;min-width:0;transition:border-color .15s,box-shadow .15s}
.input:focus,.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
.field .hint{font-size:12.5px;color:var(--muted)}
.field textarea{resize:vertical;min-height:110px}
.prefix{position:relative}
.prefix span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:600}
.prefix input{padding-left:28px}
.check{display:flex;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.check input{width:17px;height:17px;accent-color:var(--accent)}
.err{color:var(--bad);font-size:13.5px;font-weight:500}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* ---------- header ---------- */
header.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--header);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:21;background:var(--bg)}
.bar{display:flex;align-items:center;gap:12px;height:66px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;flex:none}
.brand b{font-weight:800;font-size:19px;letter-spacing:-.035em}
.mark{width:30px;height:30px;border-radius:9px;background:var(--accent);display:grid;place-items:center;color:var(--accent-ink)}
.locbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 12px;cursor:pointer;font-size:13.5px;font-weight:600;flex:none;max-width:210px}
.locbtn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.locbtn svg{flex:none;color:var(--accent)}
.search{flex:1;min-width:0;position:relative}
.search input{width:100%;padding:11px 14px 11px 40px;border:1px solid var(--line);border-radius:999px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted)}
.nav{display:flex;gap:4px;align-items:center;flex:none}
.sellbtn{margin-left:6px}
.who{position:relative;margin-left:4px}
.avatar{display:inline-grid;place-items:center;border-radius:50%;color:#fff;font-weight:700;flex:none;letter-spacing:.02em;user-select:none}
.avbtn{border:0;background:none;padding:0;cursor:pointer;border-radius:50%;display:grid}
.menu{position:absolute;right:0;top:calc(100% + 8px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-2);min-width:220px;padding:6px;display:flex;flex-direction:column;z-index:30}
.menu .mhead{padding:10px 12px;border-bottom:1px solid var(--line);margin-bottom:4px}
.menu a,.menu button{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;text-decoration:none;border:0;background:none;text-align:left;cursor:pointer;font-weight:500}
.menu a:hover,.menu button:hover{background:var(--surface-2)}

/* ---------- home ---------- */
.hero{padding-block:44px 28px}
.herogrid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:40px;align-items:center}
.hero h1{font-size:clamp(34px,5.4vw,60px);font-weight:800;letter-spacing:-.045em;line-height:1.02}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero .lede{font-size:clamp(16px,1.6vw,18.5px);color:var(--muted);max-width:52ch;margin-top:16px}
.bigsearch{margin-top:26px;display:flex;align-items:stretch;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:6px;box-shadow:var(--sh-2);gap:6px;flex-wrap:wrap}
.bigsearch input{flex:1 1 220px;min-width:0;border:0;background:transparent;padding:12px 14px;font-size:16px}
.bigsearch input:focus{outline:none}
.bigsearch select{border:0;border-left:1px solid var(--line);background:transparent;padding:0 12px;font-weight:600;font-size:14.5px;max-width:200px;cursor:pointer}
.bigsearch select:focus{outline:none}
.bigsearch .btn{border-radius:13px;box-shadow:none}
.quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 13px;font-size:13.5px;cursor:pointer;font-weight:500;text-decoration:none;color:var(--ink);transition:border-color .15s,background .15s}
.chip:hover{border-color:color-mix(in srgb,var(--ink) 30%,transparent)}
.chip[aria-pressed="true"],.chip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chip .n{font-family:var(--mono);font-size:11.5px;opacity:.65}

.trust{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-2);padding:22px;display:flex;flex-direction:column;gap:14px;transform:rotate(1.2deg)}
.trust .thead{display:flex;justify-content:space-between;align-items:center}
.trust .dev{display:flex;gap:14px;align-items:center}
.trust .dev .ic{width:64px;height:64px;border-radius:14px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);flex:none}
.trust ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.trust li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:14px}
.trust li b{font-family:var(--mono);font-weight:500;font-size:13px}
.trust .ok{color:var(--ok)}

.section{padding-block:30px}
.sechead{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.sechead h2{font-size:clamp(21px,2.4vw,27px);font-weight:700}
.cats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.cat{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);text-decoration:none;transition:transform .15s,box-shadow .15s,border-color .15s}
.cat:hover{transform:translateY(-2px);box-shadow:var(--sh-2);border-color:transparent}
.cat .ic{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.cat .ic svg{width:30px;height:30px}
.cat b{font-size:15px}
.cat span{font-size:12.5px;color:var(--muted)}

.states{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.statelink{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);text-decoration:none;font-weight:500;font-size:14px;transition:border-color .15s}
.statelink:hover{border-color:var(--accent)}
.statelink .ab{font-family:var(--mono);font-size:12px;color:var(--muted);margin-right:6px}
.statelink .n{font-family:var(--mono);font-size:12px;background:var(--accent-soft);color:var(--accent);padding:2px 8px;border-radius:999px;font-weight:600}
.statelink.zero{opacity:.6}
.statelink.zero .n{background:var(--surface-2);color:var(--muted)}

.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;counter-reset:s}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:8px}
.step::before{counter-increment:s;content:counter(s);width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-weight:700;font-size:14px}
.step h3{font-size:17px}
.step p{color:var(--muted);font-size:14.5px}

/* ---------- cards ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:18px}
.card{position:relative;display:flex;flex-direction:column;gap:10px;text-decoration:none;cursor:pointer;border-radius:var(--r);outline-offset:4px}
.card .ph{position:relative;aspect-ratio:4/3;border-radius:var(--r);overflow:hidden;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);border:1px solid var(--line);transition:box-shadow .2s}
.card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.card:hover .ph{box-shadow:var(--sh-2)}
.card:hover .ph img{transform:scale(1.035)}
.card .body{display:flex;flex-direction:column;gap:5px;padding-inline:2px}
.card .price{display:flex;align-items:baseline;gap:8px}
.card .price b{font-size:19px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.card .price s{color:var(--muted);font-size:13.5px}
.card h3{font-size:15px;font-weight:500;letter-spacing:-.01em;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.card .meta{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.card .meta span:first-child{display:inline-flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.specline{display:flex;gap:5px;flex-wrap:wrap}
.pill{font-family:var(--mono);font-size:11.5px;padding:3px 8px;border-radius:6px;background:var(--surface-2);color:var(--ink);white-space:nowrap;font-weight:500}
.pill.ok{color:var(--ok);background:var(--ok-soft)} .pill.warn{color:var(--warn);background:var(--warn-soft)} .pill.bad{color:var(--bad);background:var(--bad-soft)}
.over{position:absolute;inset:10px 10px auto 10px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.status{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:var(--ink);color:var(--bg)}
.status.reserved{background:var(--warn);color:#fff}
.status.drop{background:var(--tag);color:var(--tag-ink)}
.heart{pointer-events:auto;width:36px;height:36px;border-radius:50%;border:0;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(6px);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:var(--sh-1);transition:transform .15s}
.heart:hover{transform:scale(1.08)}
.heart[aria-pressed="true"]{color:#E5484D}
.heart[aria-pressed="true"] svg{fill:currentColor}
.cardsk .ph{animation:pulse 1.4s ease-in-out infinite}
.cardsk .line{height:12px;border-radius:6px;background:var(--surface-2);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.55}}

.empty{border:1.5px dashed var(--line);border-radius:var(--r-lg);padding:44px 22px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;background:var(--surface)}
.empty h2{font-size:22px}
.empty p{max-width:46ch}
.empty .ic{width:64px;height:64px;border-radius:18px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted)}

/* ---------- shop ---------- */
.crumbs{display:flex;gap:6px;align-items:center;font-size:13.5px;color:var(--muted);flex-wrap:wrap;margin-bottom:8px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.shophead{padding-block:26px 6px}
.shophead h1{font-size:clamp(25px,3.4vw,36px);font-weight:750}
.citybar{display:flex;gap:8px;overflow-x:auto;padding-block:14px 4px;scrollbar-width:none}
.citybar::-webkit-scrollbar{display:none}
.citybar .chip{flex:none}
.shop{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start;padding-block:12px 50px}
.rail{position:sticky;top:calc(env(safe-area-inset-top,0px) + 84px);display:flex;flex-direction:column;gap:20px;max-height:calc(100vh - 100px);overflow:auto;padding-right:4px}
.rail fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}
.rail legend{padding:0;margin-bottom:8px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.listbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.selectsm{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:600;font-size:13.5px;cursor:pointer}
.mfilter{display:none}
.activef{display:flex;gap:6px;flex-wrap:wrap}
.activef button{display:inline-flex;gap:6px;align-items:center;border:0;background:var(--accent-soft);color:var(--accent);padding:5px 10px;border-radius:999px;font-weight:600;font-size:12.5px;cursor:pointer}

/* ---------- item ---------- */
.item{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:36px;align-items:start;padding-block:12px 40px}
.gallery{display:flex;flex-direction:column;gap:10px;position:sticky;top:calc(env(safe-area-inset-top,0px) + 84px)}
.gmain{position:relative;aspect-ratio:4/3;background:var(--surface-2);border-radius:var(--r-lg);overflow:hidden;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line)}
.gmain img{width:100%;height:100%;object-fit:contain;background:var(--surface-2)}
.gnav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:color-mix(in srgb,var(--surface) 90%,transparent);box-shadow:var(--sh-1);cursor:pointer;display:grid;place-items:center}
.gnav.l{left:12px}.gnav.r{right:12px}
.gcount{position:absolute;bottom:12px;right:12px;font-family:var(--mono);font-size:12px;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.thumbs button{width:76px;height:58px;border-radius:10px;overflow:hidden;border:2px solid transparent;padding:0;cursor:pointer;background:var(--surface-2);flex:none}
.thumbs button[aria-current="true"]{border-color:var(--accent)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.side{display:flex;flex-direction:column;gap:18px;min-width:0}
.side h1{font-size:clamp(25px,3vw,34px);font-weight:750}
.pricebig{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tag{display:inline-flex;align-items:center;background:var(--tag);color:var(--tag-ink);font-weight:800;font-size:30px;letter-spacing:-.03em;padding:6px 20px 6px 28px;clip-path:polygon(14px 0,100% 0,100% 100%,14px 100%,0 50%);position:relative;font-variant-numeric:tabular-nums}
.tag::before{content:"";position:absolute;left:11px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--bg)}
.dropnote{font-size:13.5px;color:var(--ok);font-weight:600}
.locline{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:14.5px;flex-wrap:wrap}
.locline a{color:var(--ink);font-weight:600}
.sellercard{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);text-decoration:none}
.sellercard:hover{border-color:var(--accent)}
.sellercard .grow{flex:1;min-width:0}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.notice{display:flex;gap:10px;align-items:flex-start;background:var(--accent-soft);border-radius:var(--r);padding:12px 16px;font-size:14px;flex-wrap:wrap}
.notice.warn{background:var(--warn-soft)}
.notice>span{flex:1 1 220px;min-width:0}
.notice>svg{flex:none;margin-top:3px}
.notice>.btn{flex:none}
.notice.plain{background:var(--surface-2)}
.confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--bad-soft);padding:12px 14px;border-radius:12px;font-size:14px}
.sheet{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.sheet .hd{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.sheet dl{margin:0;display:grid;grid-template-columns:auto 1fr}
.sheet dt,.sheet dd{padding:11px 16px;border-bottom:1px solid var(--line);margin:0}
.sheet dt{color:var(--muted);font-size:14px}
.sheet dd{font-family:var(--mono);font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.sheet dl > :nth-last-child(-n+2){border-bottom:0}
.meter{display:inline-block;width:76px;height:7px;border-radius:4px;background:var(--surface-2);vertical-align:middle;margin-right:8px;overflow:hidden}
.meter i{display:block;height:100%;border-radius:4px}
.desc{white-space:pre-wrap;max-width:68ch}
.stats{display:flex;gap:16px;color:var(--muted);font-size:13px;flex-wrap:wrap}
.stats span{display:inline-flex;gap:5px;align-items:center}

/* ---------- chat ---------- */
.chat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.chat .hd{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.person{display:flex;align-items:center;gap:10px;min-width:0}
.role{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.msgs{display:flex;flex-direction:column;gap:8px;padding:16px;max-height:380px;overflow-y:auto;min-height:140px;background:var(--bg)}
.msg{max-width:80%;padding:9px 13px;border-radius:18px 18px 18px 6px;background:var(--surface);border:1px solid var(--line);align-self:flex-start;overflow-wrap:anywhere}
.msg.me{align-self:flex-end;background:var(--accent);border-color:var(--accent);color:var(--accent-ink);border-radius:18px 18px 6px 18px}
.msg .t{font-size:11px;opacity:.65;margin-top:2px}
.msg.sys{align-self:center;background:var(--ok-soft);border:0;font-size:13px;color:var(--ok);text-align:center;border-radius:999px;font-weight:600}
.msg.offer{border:2px solid var(--tag);background:var(--surface);color:var(--ink)}
.msg.offer b{font-size:20px;letter-spacing:-.02em}
.compose{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);flex-wrap:wrap}
.compose input{flex:1 1 160px;min-width:0;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.compose input:focus{outline:none;border-color:var(--accent)}
.offerrow{display:flex;gap:8px;padding:0 10px 12px;align-items:center;flex-wrap:wrap}
.offerrow .prefix input{width:120px;padding:8px 10px 8px 26px;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.quickq{display:flex;gap:6px;flex-wrap:wrap;padding:10px 10px 0}

/* ---------- sell ---------- */
.sellwrap{padding-block:22px 60px}
.sell{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr);gap:30px;align-items:start}
.form{display:flex;flex-direction:column;gap:18px}
.fsec{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;display:flex;flex-direction:column;gap:16px;counter-increment:fs}
.fsec>h2{font-size:18px;display:flex;align-items:center;gap:10px}
.fsec>h2::before{content:counter(fs);width:26px;height:26px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:13px;font-weight:700;flex:none}
.form{counter-reset:fs}
.drop{border:2px dashed var(--line);border-radius:var(--r);padding:26px;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;background:var(--bg);cursor:pointer;transition:border-color .15s,background .15s}
.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}
.drop .ic{width:52px;height:52px;border-radius:14px;background:var(--surface);display:grid;place-items:center;color:var(--accent);box-shadow:var(--sh-1)}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.photos figure{margin:0;position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--surface-2);border:2px solid transparent;cursor:grab}
.photos figure.dragging{opacity:.4}
.photos figure.target{border-color:var(--accent)}
.photos img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.photos .cover{position:absolute;left:6px;bottom:6px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--ink);color:var(--bg);padding:2px 7px;border-radius:999px}
.photos .ctl{position:absolute;top:6px;right:6px;display:flex;gap:4px}
.photos .ctl button{width:26px;height:26px;border-radius:50%;border:0;background:color-mix(in srgb,var(--surface) 92%,transparent);cursor:pointer;display:grid;place-items:center;box-shadow:var(--sh-1);font-size:14px;line-height:1}
.photos .uploading{display:grid;place-items:center;color:var(--muted);font-size:12.5px;border:2px dashed var(--line)}
.spin{width:22px;height:22px;border:2.5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tiles label,.grades label{position:relative;border:1.5px solid var(--line);border-radius:12px;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;text-align:center;transition:border-color .15s,background .15s}
.tiles label svg{width:28px;height:28px;color:var(--muted)}
.tiles input,.grades input{position:absolute;opacity:0;pointer-events:none}
.tiles label:has(input:checked),.grades label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.tiles label:has(input:checked) svg{color:var(--accent)}
.tiles label:has(input:focus-visible),.grades label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.grades label{align-items:flex-start;text-align:left;padding:14px}
.grades label b{font-size:15px}
.grades label span{font-weight:400;color:var(--muted);font-size:13px}
.toggle{display:flex;gap:14px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.toggle input{appearance:none;width:44px;height:26px;border-radius:999px;background:var(--line);position:relative;flex:none;cursor:pointer;transition:background .2s;margin:0}
.toggle input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.toggle input:checked{background:var(--accent)}
.toggle input:checked::after{transform:translateX(18px)}
.range{display:flex;gap:12px;align-items:center}
.range input[type=range]{flex:1;accent-color:var(--accent)}
.range output{font-family:var(--mono);font-weight:600;min-width:46px;text-align:right}
.preview-col{position:sticky;top:calc(env(safe-area-inset-top,0px) + 84px);display:flex;flex-direction:column;gap:14px}
.progress{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px}
.progress ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.progress li{display:flex;gap:8px;align-items:center}
.progress li i{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;flex:none}
.progress li.done i{background:var(--ok);border-color:var(--ok)}
.progress li.done i::after{content:"";width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.bar-p{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.bar-p i{display:block;height:100%;background:var(--accent);transition:width .3s}

/* ---------- mine / inbox / profile / auth ---------- */
.pagehead{padding-block:28px 18px;display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap}
.pagehead h1{font-size:clamp(26px,3.4vw,36px);font-weight:750}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow-x:auto}
.tabs button{border:0;background:none;padding:10px 14px;font-weight:600;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.rows{display:flex;flex-direction:column;gap:10px;padding-bottom:50px}
.rowi{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.rowi .th{width:88px;height:68px;border-radius:10px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;color:var(--muted)}
.rowi .th img{width:100%;height:100%;object-fit:cover}
.rowi .th svg{width:36px;height:36px}
.rowi h3{font-size:15.5px;font-weight:600}
.rowi h3 a{text-decoration:none}
.rowi h3 a:hover{text-decoration:underline}
.rowstats{display:flex;gap:14px;font-size:13px;color:var(--muted);flex-wrap:wrap;margin-top:4px}
.rowstats span{display:inline-flex;gap:5px;align-items:center}
.inbox{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start;padding-bottom:50px}
.threads{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.th-i{display:flex;gap:12px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);width:100%;background:transparent;text-align:left;cursor:pointer;align-items:center}
.th-i:last-child{border-bottom:0}
.th-i:hover{background:var(--surface-2)}
.th-i[aria-current="true"]{background:var(--accent-soft)}
.th-i .tthumb{width:46px;height:46px;border-radius:10px;overflow:hidden;background:var(--surface-2);flex:none;display:grid;place-items:center;color:var(--muted)}
.th-i .tthumb img{width:100%;height:100%;object-fit:cover}
.th-i .tthumb svg{width:26px;height:26px}
.th-i .tx{min-width:0;flex:1}
.th-i .tx div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unreaddot{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:none}
.profile{display:flex;gap:20px;align-items:center;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);margin-block:24px 22px;flex-wrap:wrap}
.profile .grow{flex:1;min-width:200px}
.profile h1{font-size:28px}
.kpis{display:flex;gap:26px}
.kpis div{display:flex;flex-direction:column}
.kpis b{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.kpis span{font-size:12.5px;color:var(--muted)}
.auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;max-width:940px;margin:36px auto 60px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-2)}
.auth .pitch{background:var(--ink);color:var(--bg);padding:36px;display:flex;flex-direction:column;gap:18px;justify-content:center}
.auth .pitch h2{font-size:30px;font-weight:750}
.auth .pitch ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;font-size:15px}
.auth .pitch li{display:flex;gap:10px;align-items:flex-start}
.auth .pitch li svg{flex:none;color:var(--accent);margin-top:3px}
.auth form{padding:36px;display:flex;flex-direction:column;gap:16px}
.narrow{max-width:620px;padding-bottom:50px}
.card-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;display:flex;flex-direction:column;gap:16px}

/* ---------- dialog / toast / footer / tabbar ---------- */
dialog{border:0;border-radius:var(--r-lg);padding:0;background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -20px rgba(0,0,0,.45);width:min(480px,calc(100% - 32px))}
dialog::backdrop{background:rgba(10,12,16,.45);backdrop-filter:blur(3px)}
.dlg{padding:24px;display:flex;flex-direction:column;gap:16px}
.dlg h2{font-size:21px}
.dlg .dact{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.radios{display:flex;flex-direction:column;gap:6px}
.radios label{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
.radios label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.radios input{accent-color:var(--accent)}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:11px 18px;border-radius:999px;font-weight:600;z-index:60;max-width:calc(100% - 32px);box-shadow:var(--sh-2)}
.foot-site{border-top:1px solid var(--line);margin-top:30px;padding-block:34px 40px;background:var(--surface)}
.footgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.4fr;gap:24px}
.footgrid>div{display:flex;flex-direction:column;gap:8px;font-size:14px}
.footgrid a{text-decoration:none;color:var(--muted)}
.footgrid a:hover{color:var(--ink)}
.brandsm{font-size:17px;letter-spacing:-.03em}
.tabbar{display:none}

/* ---------- responsive ---------- */
@media (max-width:1060px){
  .cats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .locbtn span{max-width:90px}
}
@media (max-width:900px){
  .herogrid,.item,.sell,.inbox,.auth{grid-template-columns:1fr}
  .trust{transform:none;max-width:520px}
  .shop{grid-template-columns:1fr}
  .rail{position:static;display:none;max-height:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
  .rail.open{display:flex}
  .mfilter{display:inline-flex}
  .gallery,.preview-col{position:static}
  .steps{grid-template-columns:1fr}
  .footgrid{grid-template-columns:1fr 1fr}
  .auth .pitch{padding:26px}
}
@media (max-width:720px){
  body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
  .bar{flex-wrap:wrap;height:auto;padding-block:10px;gap:10px}
  .search{order:5;flex-basis:100%}
  .nav .iconbtn,.sellbtn{display:none}
  .nav{margin-left:auto}
  .locbtn{margin-left:auto;order:2}
  .nav{order:3;margin-left:0}
  .who>.btn{display:none}
  .locbtn{max-width:170px;padding:7px 11px}
  .locbtn span{max-width:120px}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--header);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-top:1px solid var(--line);padding:6px max(6px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px))}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;text-decoration:none;color:var(--muted);padding:4px 0;position:relative}
  .tabbar a svg{width:23px;height:23px}
  .tabbar a.on{color:var(--ink)}
  .tabbar .tabsell span{width:42px;height:32px;border-radius:12px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center}
  .tabbar .tabsell svg{width:20px;height:20px}
  .tabbar i{position:absolute;top:0;left:calc(50% + 6px)}
  .row2{grid-template-columns:1fr}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grades{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card .price b{font-size:17px}
  .rowi{grid-template-columns:72px minmax(0,1fr)}
  .rowi .th{width:72px;height:58px}
  .rowi .actions{grid-column:1/-1}
  .bigsearch select{border-left:0;border-top:1px solid var(--line);flex-basis:100%;max-width:none;padding:12px 14px}
  .bigsearch .btn{flex-basis:100%}
  .hero{padding-block:26px 16px}
  .fsec{padding:16px}
  .foot-site{display:none}
  .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}


/* =================== v3: mockup design =================== */
.search input{background:var(--fill);border-color:transparent}
.locbtn{background:var(--fill);border-color:transparent}
.btn{box-shadow:none}
.fsec,.sheet,.chat,.threads,.rowi,.cat,.statelink,.step,.card-form,.progress,.profile{border-color:transparent;box-shadow:var(--sh-1)}
.pagelabel{display:none;color:var(--muted);font-weight:500;padding-left:12px;margin-left:2px;border-left:1px solid var(--line)}
.bell{display:none}

/* listing cards: photo with the yellow price tag on it, details below */
.card{background:var(--surface);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh-1);gap:0;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:var(--sh-2);transform:translateY(-2px)}
.card .ph{border:0;border-radius:0}
.card:hover .ph{box-shadow:none}
.card .ptag{position:absolute;left:12px;bottom:12px;background:var(--tag);color:var(--tag-ink);font-weight:800;font-size:19px;letter-spacing:-.02em;padding:4px 12px;border-radius:8px;font-variant-numeric:tabular-nums;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.card .ptag s{font-size:12px;font-weight:600;opacity:.65;margin-left:6px}
.card .body{padding:12px 14px 14px;gap:7px}
.card .titlerow{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.card .titlerow h3{font-weight:700;font-size:15.5px}
.card .titlerow span{font-size:12.5px;color:var(--muted);white-space:nowrap}
.pill{font-family:var(--font);font-size:12px;font-weight:600;padding:3px 9px;border-radius:7px;display:inline-flex;align-items:center;gap:4px}
.pill.ok{background:var(--mint);color:var(--mint-ink)}
.pill svg{width:12px;height:12px}
.card .meta{font-size:13px}

/* ---------- sell (mockup) ---------- */
.sellv3{max-width:1120px;margin:0 auto;padding-block:20px 60px}
.sellv3 .shead{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.sellv3 .shead .top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sellv3 h1{font-size:clamp(26px,3.6vw,34px);font-weight:800;letter-spacing:-.03em}
.sellv3 .sub{color:var(--muted);font-size:14.5px;max-width:52ch}
.minttag{display:inline-flex;align-items:center;gap:5px;background:var(--mint);color:var(--mint-ink);border:1px solid var(--mint-line);font-weight:700;font-size:12px;padding:3px 10px;border-radius:999px;white-space:nowrap}
.minttag svg{width:13px;height:13px}
.devtabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;margin-bottom:16px;scrollbar-width:none}
.devtabs::-webkit-scrollbar{display:none}
.devtabs label{position:relative;flex:none;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:var(--fill);font-weight:600;font-size:14px;cursor:pointer;transition:background .15s,color .15s}
.devtabs label svg{width:18px;height:18px}
.devtabs input{position:absolute;opacity:0;pointer-events:none}
.devtabs label:has(input:checked){background:var(--ink);color:var(--bg)}
.devtabs label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.sgrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:24px;align-items:start}
.scol{display:flex;flex-direction:column;gap:16px;min-width:0}
.sbox{background:var(--surface);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--sh-1)}
.sbox .bh{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sbox h2{font-size:18px;font-weight:700;letter-spacing:-.02em}
.sbox .note{font-size:12.5px;color:var(--muted);font-weight:500}
.lbl{font-weight:600;font-size:13.5px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.slot{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--fill);border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:12.5px;font-weight:600;cursor:pointer;padding:6px;text-align:center}
.slot:hover{background:color-mix(in srgb,var(--fill) 70%,var(--line))}
.slot svg.cam{width:24px;height:24px;color:var(--accent)}
.slot svg.plus{width:22px;height:22px}
.slot.photo{cursor:grab;padding:0}
.slot.photo img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.slot .prim{position:absolute;left:7px;top:7px;background:rgba(20,20,24,.72);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px}
.slot .rm{position:absolute;right:6px;bottom:6px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(20,20,24,.72);color:#fff;display:grid;place-items:center;cursor:pointer;font-size:14px;line-height:1}
.slot .mv{position:absolute;right:6px;top:6px;display:flex;gap:4px}
.slot .mv button{width:24px;height:24px;border-radius:50%;border:0;background:rgba(255,255,255,.9);color:#111;cursor:pointer;font-size:14px;line-height:1;display:grid;place-items:center}
.slot.dragging{opacity:.4}
.slot.target{outline:2px solid var(--accent);outline-offset:2px}
.slot.busy{border:2px dashed var(--line)}
.dropping .slots{outline:2px dashed var(--accent);outline-offset:6px;border-radius:16px}
.withicon{position:relative}
.withicon>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);width:18px;height:18px;pointer-events:none}
.withicon>input{padding-left:42px!important}
.seg{display:flex;background:var(--fill);border-radius:12px;padding:4px;gap:4px;flex-wrap:wrap}
.seg label{flex:1 1 0;min-width:64px;text-align:center;padding:9px 6px;border-radius:9px;cursor:pointer;font-weight:600;font-size:13.5px;color:var(--muted);position:relative;white-space:nowrap}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label:has(input:checked){background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg label:has(input:focus-visible){outline:2px solid var(--accent)}
.battrow{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px}
.suffix{position:relative}
.suffix>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:600}
.suffix>input{font-size:17px;font-weight:600}
.peak{background:var(--fill);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.peak .ln{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);font-weight:600}
.peak .ln b{color:var(--ok)}
.peak .tr{height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.peak .tr i{display:block;height:100%;border-radius:999px}
.bstat{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--ok)}
.bstat.low{color:var(--warn)}
.gradelist{display:flex;flex-direction:column;gap:10px}
.gradelist label{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:var(--fill);border:1.5px solid transparent;cursor:pointer;transition:border-color .15s,background .15s}
.gradelist label:has(input:checked){border-color:var(--accent);background:var(--surface)}
.gradelist input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--accent);flex:none}
.gradelist b{font-size:15px}
.gradelist .gd{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.toptag{display:inline-block;margin-left:6px;background:var(--mint);color:var(--mint-ink);font-size:11px;font-weight:700;padding:2px 7px;border-radius:6px;vertical-align:1px}
.lockcard{background:var(--mint);border:1px solid var(--mint-line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.lockcard .lk{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.lockcard .lk input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--accent);flex:none}
.lockcard .lk b{color:var(--mint-ink);display:inline-flex;gap:6px;align-items:center}
.lockcard .lk span.d{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.checks{display:flex;flex-wrap:wrap;gap:8px;padding-left:30px}
.checks label{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--mint-line);border-radius:999px;padding:5px 11px;font-size:12.5px;font-weight:600;cursor:pointer}
.checks input{width:14px;height:14px;accent-color:var(--accent);margin:0}
.checks .chknote{font-size:11.5px;color:var(--muted);font-weight:500;width:100%;margin:0}
.bigprice{position:relative}
.bigprice span{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:26px;font-weight:800}
.bigprice input{width:100%;border:1.5px solid transparent;background:var(--fill);border-radius:14px;padding:16px 16px 16px 46px;font-size:30px;font-weight:800;letter-spacing:-.02em}
.bigprice input:focus{outline:none;border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
.estimate{display:flex;align-items:center;gap:8px;background:var(--fill);border-radius:10px;padding:9px 12px;font-size:13px;font-weight:600}
.estimate svg{flex:none;color:var(--accent)}
.side3{position:sticky;top:calc(env(safe-area-inset-top,0px) + 84px);display:flex;flex-direction:column;gap:12px}
.side3 .ph3{display:flex;justify-content:space-between;align-items:center}
.live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted)}
.live i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.safety{display:flex;gap:10px;align-items:flex-start;background:var(--surface);border-radius:14px;padding:12px 14px;font-size:13px;color:var(--muted);box-shadow:var(--sh-1)}
.safety svg{flex:none;color:var(--accent);margin-top:2px}
.publish{width:100%;padding:16px 20px;font-size:17px;border-radius:14px}
.fine{font-size:12px;color:var(--muted);text-align:center}
.sellv3 .err{background:var(--bad-soft);padding:10px 14px;border-radius:12px}

/* ---------- tab bar (mockup) ---------- */
@media (max-width:720px){
  .tabbar{background:var(--surface)}
  .tabbar a.on{color:var(--accent)}
  .tabbar .tabsell{margin-top:-18px}
  .tabbar .tabsell span{width:50px;height:50px;border-radius:50%;box-shadow:0 6px 16px -4px color-mix(in srgb,var(--accent) 70%,transparent);border:4px solid var(--surface)}
  .pagelabel{display:inline-block}
  .nav .bell{display:inline-grid}
  body.compact .locbtn,body.compact .search{display:none}
  .sgrid{grid-template-columns:1fr}
  .side3{position:static}
  .sbox{padding:16px}
  .battrow{grid-template-columns:minmax(0,1fr) 120px}
  .slots{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){ .sgrid{grid-template-columns:1fr} .side3{position:static} }

/* =================== v4: messaging =================== */
.cta{display:flex;gap:10px;flex-wrap:wrap}
.cta .btn{flex:1 1 180px}
.cta .btn svg{width:18px;height:18px}
.lastmsg{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:12px;background:var(--surface);box-shadow:var(--sh-1);text-decoration:none;font-size:14px}
.lastmsg span:not(.unreaddot):not(.muted){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lastmsg .muted{font-size:12.5px;flex:none}
.sellerthreads{display:flex;flex-direction:column;gap:8px}
.buybar{display:none}

.inbox{grid-template-columns:340px minmax(0,1fr)}
.th-i{text-decoration:none;color:inherit}
.th-i .r1{display:flex;justify-content:space-between;gap:8px}
.th-i .r1 .muted{font-size:12px;flex:none}
.th-i .r2{font-size:13px}
.th-i .r3{font-size:13px;color:var(--muted)}
.th-i .r3.un{color:var(--ink);font-weight:700}

.chatwrap{max-width:760px;padding-block:18px 30px}
.convo{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-1);overflow:hidden;height:min(760px,calc(100vh - 130px));min-height:460px}
.convo.embedded{height:min(720px,calc(100vh - 210px))}
.convhead{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line)}
.convhead .person{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.convhead .person>span{display:flex;flex-direction:column;min-width:0}
.convhead .person b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.convlisting{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--fill);text-decoration:none;font-size:14px}
.convlisting .tthumb{width:44px;height:44px;border-radius:10px;overflow:hidden;background:var(--surface);flex:none;display:grid;place-items:center;color:var(--muted)}
.convlisting .tthumb img{width:100%;height:100%;object-fit:cover}
.convlisting .tthumb svg{width:26px;height:26px}
.convlisting .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.convlisting .grow b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.convlisting .status{font-size:10px;padding:2px 7px}
.msgs2{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:6px;background:var(--bg)}
.daysep{display:flex;justify-content:center;margin:8px 0}
.daysep span{font-size:11.5px;font-weight:600;color:var(--muted);background:var(--surface);padding:3px 10px;border-radius:999px;box-shadow:var(--sh-1)}
.bub{max-width:78%;align-self:flex-start;background:var(--surface);border-radius:18px 18px 18px 6px;padding:9px 13px 6px;box-shadow:var(--sh-1);display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.bub.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-radius:18px 18px 6px 18px}
.bub .tx{white-space:pre-wrap;line-height:1.45}
.bub .bt{font-size:10.5px;opacity:.7;align-self:flex-end}
.bub.pending{opacity:.65}
.bub.sys{align-self:center;flex-direction:row;align-items:center;gap:6px;background:var(--mint);color:var(--mint-ink);border:1px solid var(--mint-line);border-radius:999px;font-size:13px;font-weight:600;padding:6px 12px;max-width:92%;box-shadow:none}
.bub.isoffer{background:var(--surface);color:var(--ink);border:2px solid var(--tag);padding:10px 14px 6px}
.offerbub{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
.offerbub b{font-size:24px;font-weight:800;letter-spacing:-.02em}
.offerbub .muted{font-size:12.5px}
.offerbub .btn{margin-top:8px}
.convempty{margin:auto;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:34ch;padding:20px 0}
.convempty p{font-size:14px}
.convfoot{border-top:1px solid var(--line);background:var(--surface);padding-bottom:env(safe-area-inset-bottom,0px)}
.convfoot .quickq{display:flex;gap:6px;overflow-x:auto;padding:10px 12px 0;scrollbar-width:none;flex-wrap:nowrap}
.convfoot .quickq::-webkit-scrollbar{display:none}
.convfoot .quickq .chip{flex:none;background:var(--mint);border-color:var(--mint-line);color:var(--mint-ink);font-weight:600}
.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px}
.composer textarea{flex:1;min-width:0;resize:none;border:1.5px solid transparent;background:var(--fill);border-radius:20px;padding:10px 14px;line-height:1.4;max-height:140px;font-size:15px}
.composer textarea:focus{outline:none;border-color:var(--accent);background:var(--surface)}
.sendbtn{width:42px;height:42px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;cursor:pointer;flex:none}
.sendbtn:hover{background:var(--accent-hover)}
.offerbtn{flex:none;height:42px}
.offerpanel{margin:10px 12px 0;padding:12px;border-radius:14px;background:var(--fill);display:flex;flex-direction:column;gap:10px}
.op-h{display:flex;justify-content:space-between;align-items:center}
.iconbtn.sm{width:30px;height:30px;font-size:18px}
.op-presets{display:flex;gap:6px;flex-wrap:wrap}
.op-row{display:flex;gap:8px}
.op-row .bigprice{flex:1}
.bigprice.sm span{font-size:18px;left:14px}
.bigprice.sm input{font-size:20px;padding:10px 12px 10px 32px;background:var(--surface)}
.closed{padding:14px;text-align:center;color:var(--muted);font-size:14px}

@media (max-width:720px){
  .buybar{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:24;padding:10px max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 20px -12px rgba(0,0,0,.25)}
  .buybar .btn{flex:1}
  .buybar .btn:first-child{flex:1.4}
  body:has(.buybar){padding-bottom:calc(132px + env(safe-area-inset-bottom,0px))}
  .inbox{grid-template-columns:1fr}
  body.chatmode{padding-bottom:0}
  body.chatmode .tabbar,body.chatmode .foot-site{display:none}
  body.chatmode main{display:flex}
  body.chatmode .chatwrap{padding:0;max-width:none;width:100%}
  body.chatmode .convo{border-radius:0;box-shadow:none;height:calc(100dvh - 61px - env(safe-area-inset-top,0px));min-height:0;width:100%}
  .bub{max-width:85%}
}
.pagelabel:empty{display:none!important}
body.signedout .nav .bell{display:none}
@media (max-width:720px){
  .buybar{padding-bottom:28px}
  body:has(.buybar){padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
}

/* Hinovaiq attribution */
.footbar{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:26px;padding-top:18px;font-size:13.5px}
.footbar .byline{display:inline-flex;align-items:center;gap:8px}
.hmark{width:22px;height:22px;border-radius:6px;background:var(--ink);color:var(--bg);display:inline-grid;place-items:center;font-weight:800;font-size:12px}
.footbar a{color:var(--accent);font-weight:600;text-decoration:none}
.footbar a:hover{text-decoration:underline}
.supportcard{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-1);padding:14px 16px;font-size:14px;margin-bottom:24px}
.supportcard a{color:var(--accent);font-weight:600}
@media (max-width:720px){
  .foot-site{display:block;margin-top:24px;padding-block:6px 18px}
  .foot-site .footgrid{display:none}
  .footbar{flex-direction:column;align-items:flex-start;gap:6px;border-top:0;margin-top:0;padding-top:10px}
  body.chatmode .foot-site{display:none}
}

/* =================== v5: community activity =================== */
.proof{display:inline-flex;align-items:center;gap:10px;margin-top:18px;text-decoration:none;font-size:14px;color:var(--muted)}
.proof b{color:var(--ink)}
.proof .faces{display:inline-flex}
.proof .faces .avatar{border:2px solid var(--bg);margin-left:-8px}
.proof .faces .avatar:first-child{margin-left:0}
.community{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:18px;align-items:start}
.cstats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cstat{background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-1);padding:18px;display:flex;flex-direction:column;gap:2px;min-height:108px}
.cstat b{font-size:clamp(26px,3vw,34px);font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.1}
.cstat span{color:var(--muted);font-size:14px}
.cstat em{font-style:normal;margin-top:auto;align-self:flex-start;background:var(--mint);color:var(--mint-ink);font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px}
.cstat.cardsk .line{height:14px;border-radius:7px;background:var(--surface-2);margin-top:8px}
.feed{background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-1);padding:8px 6px 6px}
.feedhead{display:flex;justify-content:space-between;align-items:center;padding:6px 12px 8px;font-size:12.5px}
.feedhead .live i{animation:pulse 1.6s ease-in-out infinite}
.evlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.ev{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;font-size:14.5px;line-height:1.4}
.ev+.ev{border-top:1px solid var(--line)}
.ev .evtx{flex:1;min-width:0}
.ev .evtx a{text-decoration:none}
.ev .evtx a:hover b{text-decoration:underline}
.ev time{font-size:12.5px;white-space:nowrap;flex:none}
.evthumb,.evic{width:38px;height:38px;border-radius:10px;overflow:hidden;background:var(--fill);display:grid;place-items:center;color:var(--muted);flex:none}
.evthumb img{width:100%;height:100%;object-fit:cover}
.evic svg{width:18px;height:18px}
.evprice{margin-left:8px;font-weight:800;font-size:12.5px;background:var(--tag);color:var(--tag-ink);padding:1px 7px;border-radius:6px;white-space:nowrap}
.evsold{font-weight:700;color:var(--ok)}
.ev.fresh{animation:evin .9s ease-out}
@keyframes evin{from{background:var(--mint);transform:translateY(-4px)}to{background:transparent;transform:none}}
.feedempty{padding:22px 16px 18px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
@media (max-width:900px){ .community{grid-template-columns:1fr} }
@media (max-width:720px){
  .cstat{min-height:0;padding:14px}
  .ev{padding:10px 8px;gap:10px;font-size:14px}
}

/* =================== v6: Tesla storefront (Hinova Marketplace) =================== */
.storeswitch{display:inline-flex;background:var(--fill);border-radius:999px;padding:3px;gap:2px;flex:none}
.storeswitch a{padding:6px 12px;border-radius:999px;font-weight:700;font-size:13px;text-decoration:none;color:var(--muted)}
.storeswitch a[aria-current="page"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.15)}
.evbadge{display:none;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;padding:2px 6px;border-radius:6px;background:var(--accent);color:var(--accent-ink);margin-left:2px}
body[data-store="ev"] .evbadge{display:inline-block}
.disclaim{font-size:12px;color:var(--muted);margin-top:14px;max-width:none;line-height:1.5}
.storepick{display:inline-flex;background:var(--fill);border-radius:14px;padding:4px;gap:4px;margin-bottom:16px}
.storepick a{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:11px;font-weight:700;font-size:14px;text-decoration:none;color:var(--muted)}
.storepick a[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.evcats{grid-template-columns:repeat(4,minmax(0,1fr))}
.cat .ic svg{width:30px;height:30px}
.devtabs label svg{width:20px;height:20px}

/* the EV storefront has its own look: graphite with an electric blue accent, in both OS themes */
body[data-store="ev"]{
  --bg:#0E1013; --surface:#171A1F; --surface-2:#1E2228; --fill:#20242B; --ink:#EEF1F5; --muted:#9AA3AF; --line:#2A2F37;
  --accent:#3E9BFF; --accent-hover:#62AEFF; --accent-ink:#03111F; --accent-soft:#11253D;
  --mint:#10283F; --mint-line:#1D4468; --mint-ink:#7CC0FF;
  --tag:#F2F4F7; --tag-ink:#0E1013;
  --ok:#4ADE80; --warn:#F5A54A; --bad:#F87171; --ok-soft:#0F2A1B; --bad-soft:#341515; --warn-soft:#33240F;
  --header:rgba(14,16,19,.84);
  --sh-1:0 1px 2px rgba(0,0,0,.45); --sh-2:0 14px 34px -14px rgba(0,0,0,.75);
  color-scheme:dark;
}
body[data-store="ev"] .hero h1 em{color:var(--accent)}
body[data-store="ev"] .hero{background:radial-gradient(1200px 380px at 70% -10%, rgba(62,155,255,.16), transparent 60%)}
body[data-store="ev"] .trust{transform:rotate(-1deg)}
body[data-store="ev"] .card .ptag{box-shadow:0 2px 10px rgba(0,0,0,.45)}
body[data-store="ev"] .pill.ok{background:var(--ok-soft);color:var(--ok)}

@media (max-width:1060px){ .evcats{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (max-width:720px){
  .storeswitch{order:1;margin-left:auto}
  .storeswitch a{padding:5px 10px;font-size:12.5px}
  .locbtn{order:6;margin-left:0;max-width:130px}
  .search{order:5;flex:1 1 calc(100% - 140px)}
  .nav{order:3}
  .evcats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .storepick{display:flex}
  .storepick a{flex:1;justify-content:center}
}
@media (max-width:720px){ body.compact .storeswitch{display:none} }
.seg4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.seg4 label{white-space:normal;min-width:0;line-height:1.25;display:flex;align-items:center;justify-content:center}
@media (max-width:720px){ .seg4{grid-template-columns:1fr 1fr} }

/* Hinova Marketplace wordmark */
.brand b{letter-spacing:-.03em}
.brand .bsub{font-weight:600;font-size:15px;color:var(--muted);letter-spacing:-.01em;margin-left:-3px}
@media (max-width:1100px){ .brand .bsub{display:none} }

/* =================== v7: everyday polish =================== */
body.noscroll{overflow:hidden}
main{animation:pagein .22s ease-out}
@keyframes pagein{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}

/* onboarding cards */
.onboard{display:flex;gap:14px;align-items:center;background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-1);padding:14px 16px;margin-top:18px;position:relative;flex-wrap:wrap}
.onboard .grow{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:2px}
.onboard .muted{font-size:14px}
.onboard>.iconbtn{position:absolute;top:8px;right:8px}
.obic{width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}
.obform{display:flex;gap:8px;flex-wrap:wrap;margin-right:30px}
.obform select{padding:9px 12px;border-radius:10px;border:0;background:var(--fill);font-weight:600}
.checklist ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;flex:2 1 360px;margin-right:30px}
.checklist li{display:flex;gap:8px;align-items:center;font-size:14px}
.checklist li i{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;flex:none;color:#fff}
.checklist li.done i{background:var(--ok);border-color:var(--ok)}
.checklist li.done i svg{width:12px;height:12px}
.checklist li.done span{color:var(--muted);text-decoration:line-through}
.checklist li a{font-weight:600;color:var(--accent);text-decoration:none}
.checklist li a:hover{text-decoration:underline}

/* recently viewed: a horizontal rail */
.hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,240px);gap:14px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.hscroll .card{scroll-snap-align:start}

/* saved searches */
.saved-on{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.btn svg{flex:none}
.fcount{background:var(--accent);color:var(--accent-ink);border-radius:999px;font-size:11px;padding:0 6px;min-width:18px;display:inline-grid;place-items:center}
.ssic svg{width:34px;height:34px}
.newpill{background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:12px;padding:4px 10px;border-radius:999px;align-self:center}
.iconbtn #savedBadge .badge,.iconbtn .badge{position:absolute;top:2px;right:0}

/* listing gallery: swipe + tap to open the viewer */
.gmain{cursor:zoom-in;touch-action:pan-y;user-select:none}
.gmain img{pointer-events:none}

/* full-screen photo viewer */
.viewer{position:fixed;inset:0;z-index:80;background:#07080A;color:#fff;display:flex;flex-direction:column;outline:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.vw-top{display:flex;align-items:center;gap:12px;padding:12px 14px;font-size:14px}
.vw-count{font-family:var(--mono);opacity:.8}
.vw-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.vw-btn{width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:22px;cursor:pointer;line-height:1}
.vw-btn:hover{background:rgba(255,255,255,.22)}
.vw-stage{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:none;cursor:zoom-in}
.vw-stage.zoomed{cursor:grab}
.vw-stage img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .18s ease-out;will-change:transform;user-select:none;-webkit-user-drag:none}
.vw-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:grid;place-items:center}
.vw-nav:hover{background:rgba(255,255,255,.26)}
.vw-nav.l{left:max(14px,env(safe-area-inset-left,0px))}.vw-nav.r{right:max(14px,env(safe-area-inset-right,0px))}
.vw-thumbs{display:flex;gap:8px;justify-content:center;padding:10px 14px 4px;overflow-x:auto}
.vw-thumbs button{width:58px;height:44px;border-radius:8px;overflow:hidden;border:2px solid transparent;padding:0;background:#222;cursor:pointer;flex:none;opacity:.6}
.vw-thumbs button[aria-current="true"]{border-color:#fff;opacity:1}
.vw-thumbs img{width:100%;height:100%;object-fit:cover}
.vw-hint{text-align:center;font-size:12px;opacity:.6;margin:4px 0 12px}

/* filters: sheet chrome is only for phones */
.sheethead,.sheetfoot,.sheetbg{display:none}
@media (max-width:900px){
  .rail{position:fixed!important;left:0;right:0;bottom:0;top:auto;z-index:70;display:flex!important;flex-direction:column;max-height:86vh;overflow:auto;border-radius:22px 22px 0 0!important;padding:0 18px calc(16px + env(safe-area-inset-bottom,0px))!important;transform:translateY(105%);transition:transform .25s ease;box-shadow:0 -20px 50px -20px rgba(0,0,0,.5)}
  .rail.open{transform:none}
  .sheethead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--surface);padding:16px 0 10px;z-index:1;margin-bottom:4px}
  .sheethead b{font-size:18px}
  .sheethead::before{content:"";position:absolute;left:50%;top:6px;width:40px;height:4px;border-radius:2px;background:var(--line);transform:translateX(-50%)}
  .sheetfoot{display:block;position:sticky;bottom:calc(-16px - env(safe-area-inset-bottom,0px));background:var(--surface);padding:12px 0 calc(16px + env(safe-area-inset-bottom,0px));margin-top:auto}
  .sheetbg{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:69;animation:fadein .2s}
  @keyframes fadein{from{opacity:0}}
}
@media (max-width:720px){
  .vw-nav{display:none}
  .onboard{margin-top:12px}
  .checklist ul{margin-right:0}
  .obform{margin-right:0;width:100%}
  .obform select{flex:1}
  .hscroll{grid-auto-columns:minmax(170px,190px)}
}
@media (prefers-reduced-motion:reduce){ main{animation:none} .rail{transition:none} .vw-stage img{transition:none} }

/* ---------- v8: trust & safety ---------- */
.trustbar{background:var(--warn-soft);border-bottom:1px solid color-mix(in srgb,var(--warn) 25%,transparent)}
.trustbar .wrap{display:flex;gap:12px;align-items:center;padding-block:10px;font-size:14px;flex-wrap:wrap}
.trustbar .wrap>svg{color:var(--warn);flex:none}
.trustbar span{flex:1 1 240px;min-width:0}
.authcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:28px;display:flex;flex-direction:column;gap:16px;margin:32px auto 60px;max-width:480px;box-shadow:var(--sh-1)}
.authcard h1{font-size:28px;margin:0}
.authcard p{margin:0}
.authcard.center{align-items:center;text-align:center}
.bigok{width:56px;height:56px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center}
.bigok svg{width:28px;height:28px}
.codein{font-family:var(--mono);font-size:28px!important;letter-spacing:.5em;text-align:center;padding:14px!important}
.forgot{align-self:flex-end;color:var(--accent)!important;text-decoration:none;font-weight:600}
.check.terms{align-items:flex-start;font-size:13.5px;line-height:1.45}
.check.terms input{margin-top:2px;flex:none}
.policylinks{display:flex;gap:10px;flex-wrap:wrap}
.policylinks a{font-weight:600;color:var(--accent)}
.policy .pagehead p{margin:6px 0 0;max-width:640px}
.policy .tabs a{text-decoration:none;padding:10px 14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.policy .tabs a[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.policygrid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;padding-bottom:60px;align-items:start}
.toc{position:sticky;top:90px;display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.toc a{color:var(--muted);text-decoration:none;padding:6px 10px;border-radius:8px}
.toc a:hover{background:var(--surface-2);color:var(--ink)}
.policy article{max-width:720px;font-size:15.5px;line-height:1.7}
.policy article section{scroll-margin-top:90px;padding-bottom:8px}
.policy article h2{font-size:19px;margin:22px 0 6px}
.policy article ul{padding-left:20px;margin:8px 0}
.policy article li{margin:4px 0}
.policy article a{color:var(--accent)}
@media (max-width:820px){ .policygrid{grid-template-columns:1fr;gap:12px} .toc{position:static;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:6px} .toc a{white-space:nowrap;background:var(--surface-2)} }
.seccard{margin-top:16px}
.seccard h2{font-size:18px;margin:0}
.secrow{display:flex;gap:14px;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid var(--line);flex-wrap:wrap}
.secrow>div{min-width:0;flex:1 1 240px}
.secrow .muted{font-size:13.5px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.secrow.col{flex-direction:column;align-items:stretch}
.secrow.col>.btn{align-self:flex-start}
.devlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.devlist li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface-2);border-radius:10px;padding:8px 12px;font-size:14px;flex-wrap:wrap}
.devlist li>span:first-child{display:inline-flex;gap:8px;align-items:center}
.safetytip{display:flex;gap:10px;align-items:flex-start;align-self:center;max-width:460px;background:var(--warn-soft);color:var(--ink);border-radius:12px;padding:10px 14px;font-size:13px;line-height:1.45;margin:4px 0}
.safetytip svg{color:var(--warn);flex:none;margin-top:1px}
.safetytip a{color:inherit;font-weight:600}
.convhead .convmenu{margin-left:auto}
.menulist{display:flex;flex-direction:column;gap:8px}
.btn.block{width:100%}
.modkpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}
.modkpis>div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;display:flex;flex-direction:column}
.modkpis b{font-size:22px}
.modkpis span{font-size:12.5px;color:var(--muted)}
@media (max-width:820px){ .modkpis{grid-template-columns:repeat(3,minmax(0,1fr))} }
.modbar{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.modbar .input{flex:1 1 220px}
.modrow .th{display:grid;place-items:center;overflow:hidden}
.modnote{margin:6px 0 0;font-size:13.5px;background:var(--surface-2);border-radius:8px;padding:6px 10px;display:flex;gap:6px;align-items:flex-start}
.modnote a{color:var(--accent)}
.auditlog{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden;background:var(--surface);margin-bottom:12px}
.arow{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:12px;padding:10px 14px;border-top:1px solid var(--line);font-size:14px;align-items:center}
.arow:first-child{border-top:0}
.arow .mono{font-size:12px}
@media (max-width:720px){ .arow{grid-template-columns:1fr} }
.footbar a{color:inherit}
.secrow.col>div{flex:none}

/* ---------- v9: trust badges, ratings, price guide, safety, install ---------- */
.tbadges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tb{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--surface-2);color:var(--ink);white-space:nowrap}
.tb svg{width:13px;height:13px}
.tb.ok{background:var(--ok-soft);color:var(--ok)}
.tb.gold{background:#FFF4D1;color:#8A5A00}
.tb.rate{background:var(--accent-soft);color:var(--accent)}
.tb .muted{font-weight:500}
.ratecard{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--surface);border:1.5px solid var(--accent);border-radius:var(--r);padding:12px 14px;margin:14px 0 4px;box-shadow:var(--sh-1)}
.ratecard .tthumb{width:52px;height:52px;border-radius:12px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;flex:none}
.ratecard .tthumb img{width:100%;height:100%;object-fit:cover}
.ratecard .tthumb svg{width:28px;height:28px}
.ratecard .grow{flex:1 1 200px;min-width:0}
.thumbbtn{width:44px;height:40px;padding:0}
.thumbbtn svg{width:18px;height:18px;color:var(--ok)}
.thumbbtn.down svg{transform:rotate(180deg);color:var(--bad)}
.reviews{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.rev{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;font-size:14.5px}
.thumbic{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none}
.thumbic.up{background:var(--ok-soft);color:var(--ok)}
.thumbic.down{background:var(--bad-soft);color:var(--bad)}
.thumbic.down svg{transform:rotate(180deg)}
.estimate.guide{align-items:flex-start}
.estimate.guide>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px;font-weight:500}
.estimate .sug{margin-top:4px}
.phototips{background:var(--surface-2);border-radius:12px;padding:10px 14px;font-size:13.5px;margin-top:4px}
.phototips summary{cursor:pointer;font-weight:600;display:flex;gap:8px;align-items:center;list-style:none}
.phototips summary::-webkit-details-marker{display:none}
.phototips summary::after{content:"+";margin-left:auto;font-weight:700;color:var(--muted)}
.phototips[open] summary::after{content:"–"}
.phototips ul{margin:8px 0 4px;padding-left:20px}
.phototips p{margin:4px 0 0;font-size:12.5px}
.safegrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.safe{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:6px}
.safe .ic{width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.safe .ic svg{width:18px;height:18px}
.safe p{margin:0;font-size:13.5px;line-height:1.5}
@media (max-width:900px){ .safegrid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px){ .safegrid{grid-template-columns:1fr} }
.newweek{display:inline-flex;vertical-align:middle;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);margin-left:6px;letter-spacing:0}
.secrow.toggle{cursor:pointer;flex-wrap:nowrap}
.switch{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;flex:none;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch:checked{background:var(--accent)}
.switch:checked::after{transform:translateX(18px)}
.switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.notice.plain a{color:var(--accent);font-weight:600}
