/* ─────────────────────────────────────────────────────────────────
   WYN  ·  design system v3
   Action color: raspberry #b8336a  (WYN Logo 4-Rasp-b8336a)
   Brand is a punch, not a wash. Surfaces stay quiet.
   docs/wyn/design-guide.md
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg:         #f6f4ef;
  --panel:      #ffffff;
  --ink:        #1c1917;
  --muted:      #6b6459;
  --line:       #e6e0d6;
  --brand:      #b8336a;    /* raspberry — actions only */
  --brand-lt:   #fce8f0;
  --brand-ink:  #ffffff;
  --accent:     #1d4ed8;    /* distances only, never body links */
  --ok:         #15803d;
  --bad:        #dc2626;
  --now:        #b8336a;
  --tap:        44px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; }

/* ── App shell ── */
#app {
  max-width: 480px; margin: 0 auto;
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg);
}

/* ───────────────────────────────────────────
   HEADER
   ─────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr 48px; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
header.top .nav-side          { display: flex; align-items: center; min-height: 40px; min-width: 40px; }
header.top .nav-side.right    { justify-content: flex-end; }
header.top .brand             { display: flex; align-items: center; gap: 8px; color: inherit; }
header.top .brand-logo        { display: block; height: 26px; width: auto; object-fit: contain; }
header.top .title {
  margin: 0; font-size: 14px; font-weight: 600; text-align: center;
  color: var(--muted); letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1;
}
nav.desk-nav { display: none; }
.btn.signin-link {
  width: auto; min-height: 36px; padding: 0 14px; margin: 0; font-size: 13px;
  border-radius: 10px; box-shadow: none;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Demo switcher ── */
.demo-switch {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 40;
  display: none; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.95); overflow: hidden; font-size: 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); backdrop-filter: blur(6px);
}
body.on-login .demo-switch { display: flex; }
.demo-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 10px; min-height: 0; cursor: pointer; font-weight: 700;
}
.demo-switch button.on { background: var(--brand); color: #fff; }

/* ───────────────────────────────────────────
   MAIN CONTENT AREA
   ─────────────────────────────────────────── */
main { flex: 1; padding: 20px 16px 96px; }

/* ───────────────────────────────────────────
   BOTTOM NAV
   ─────────────────────────────────────────── */
nav.tabs {
  position: sticky; bottom: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px);
}
nav.tabs a {
  color: var(--muted); text-align: center;
  padding: 8px 4px 10px; font-size: 11px; font-weight: 600;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
nav.tabs a.on { color: var(--brand); }
.tab-ico { font-size: 16px; line-height: 1; }

/* ───────────────────────────────────────────
   TYPOGRAPHY
   ─────────────────────────────────────────── */
h1 { font-size: 24px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.03em; }
h2 {
  font-size: 11px; color: var(--muted); font-weight: 700;
  margin: 24px 0 10px; letter-spacing: 0.07em; text-transform: uppercase;
}
.hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.price { font-variant-numeric: tabular-nums; font-weight: 750; }
.dist  { color: var(--accent); font-weight: 650; font-size: 13px; }

/* ───────────────────────────────────────────
   CARDS
   ─────────────────────────────────────────── */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin: 0 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card > h2:first-child,
.card > .hint:first-child { margin-top: 0; }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
a.card:active { transform: scale(0.99); }
.row  { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* ───────────────────────────────────────────
   STATUS INDICATORS
   ─────────────────────────────────────────── */
.err   { background: #fdecea; color: #9b1c1c; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.okmsg { background: #ecfdf5; color: #14532d; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.ok    { color: var(--ok); }

/* ── Pills ── */
.pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: var(--brand-lt); color: var(--brand);
}
.pill.now { background: var(--brand-lt); color: var(--brand); }
.pill.help { background: #eff6ff; color: #1e40af; }
.pill.dim  { background: #f0ece6; color: var(--muted); }
.pill.go   { background: #f0fdf4; color: #15803d; }

/* ───────────────────────────────────────────
   FORMS
   ─────────────────────────────────────────── */
.field { margin: 0 0 16px; }
.field label {
  display: block; font-size: 12px; color: var(--muted);
  margin: 0 0 6px; font-weight: 700; letter-spacing: 0.02em;
}
input, select, textarea {
  width: 100%; background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; margin: 0; transition: border-color 0.12s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184,51,106,0.14);
}
.field input, .field select, .field textarea { margin: 0; }
textarea { min-height: 80px; line-height: 1.5; }

/* ── Search ── */
.search-row  { margin: 0 0 12px; }
.search-wrap { position: relative; }
.search-wrap input {
  border-radius: 24px; padding: 13px 50px 13px 18px;
  font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184,51,106,0.14), 0 1px 6px rgba(0,0,0,0.06);
}
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); color: var(--muted); font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background 0.1s;
}
.search-clear[hidden] { display: none; }
.search-clear:active  { background: #d8d2c8; }

/* ───────────────────────────────────────────
   CHIPS  (filter tags, category tags)
   ─────────────────────────────────────────── */
.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 10px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: 0 0 auto; white-space: nowrap;
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; min-height: 36px;
  font-size: 13px; font-weight: 650; cursor: pointer; transition: all 0.1s;
}
.chips button.on          { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips.cats button        { background: var(--brand-lt); color: var(--brand); border-color: transparent; }
.chips.cats button.on     { background: var(--brand); color: #fff; }

/* ───────────────────────────────────────────
   RAIL  (horizontal scroll strip)
   ─────────────────────────────────────────── */
.rail {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 0 0 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 148px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; color: inherit;
  min-height: 116px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.rail-card .thumb { width: 100%; height: 70px; margin: 0 0 8px; border-radius: 8px; }
.rail-card strong { font-size: 13px; line-height: 1.25; display: block; margin: 0 0 3px; }

/* ───────────────────────────────────────────
   SECTION HEADERS
   ─────────────────────────────────────────── */
.section-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 24px 0 10px;
}
.section-h h2 { margin: 0; }
.section-h:first-child { margin-top: 4px; }
.listing-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin: 0 0 8px;
}
.listing-name { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.listing-name:hover { color: var(--brand); }
.vendor-status .btn { min-width: 88px; }

/* ───────────────────────────────────────────
   HERO  (Near page welcome)
   ─────────────────────────────────────────── */
.hero-now {
  background: transparent; color: var(--ink);
  border: 0; border-radius: 0; padding: 4px 0 8px; margin: 0 0 16px;
  box-shadow: none;
}
.hero-now .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 6px;
}
.hero-now h2  { color: var(--ink); font-size: 26px; margin: 0 0 6px; letter-spacing: -0.03em; font-weight: 800; text-transform: none; }
.hero-now p   { margin: 0; color: var(--muted); font-size: 14px; max-width: 36em; }

/* kind-seg override lives after .seg so it wins */

/* ───────────────────────────────────────────
   THUMBS / MEDIA PLACEHOLDERS
   ─────────────────────────────────────────── */
.thumb {
  width: 64px; height: 64px; border-radius: 10px;
  object-fit: cover; background: var(--line); flex-shrink: 0;
}
.thumb.ph   { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.thumb.ph.s { background: #eff6ff; color: #1e40af; }
.hero       { width: 100%; aspect-ratio: 4/5; height: auto; max-height: 72vh; object-fit: cover; border-radius: 16px; background: var(--line); margin: 0 0 12px; }

/* ───────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-height: var(--tap); padding: 0 18px; margin: 0;
  border: 0; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: opacity 0.1s, transform 0.1s;
}
a.btn { color: var(--brand-ink); }
a.btn:hover { color: var(--brand-ink); }
.btn:active   { transform: scale(0.98); opacity: 0.9; }
.btn.ghost    { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line); }
a.btn.ghost   { color: var(--ink); }
a.btn.ghost:hover { color: var(--ink); }
.btn.ghost:active { background: var(--bg); }
.btn.danger   { background: var(--bad); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.tiny     { min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 650; }
.row .btn     { flex: 0 0 auto; }
.split .btn   { width: 100%; }
.sticky-buy .btn { width: 100%; }
form > .btn   { margin-top: 4px; }

/* ───────────────────────────────────────────
   LAYOUT HELPERS
   ─────────────────────────────────────────── */
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.list-item { display: flex; gap: 12px; align-items: flex-start; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 14px; font-size: 14px; line-height: 1.5;
}
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand); }

/* ───────────────────────────────────────────
   MISC WIDGETS
   ─────────────────────────────────────────── */
.qrbox        { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qrbox canvas { width: 220px; height: 220px; }
#scan-video   { width: 100%; border-radius: 12px; background: #000; }
.empty        { text-align: center; padding: 36px 16px; color: var(--muted); font-size: 14px; }
.track-dot    { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; margin-right: 6px; }
.track-dot.wait { background: var(--muted); }
.track-dot.here { background: var(--ok); }

/* ── Segmented control ── */
.seg {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border: 1.5px solid var(--line); border-radius: 12px;
  overflow: hidden; margin: 0 0 14px; background: #fff;
}
.seg button           { border: 0; background: transparent; color: var(--muted); min-height: 40px; font-weight: 650; cursor: pointer; }
.seg button.on        { background: var(--ink); color: #fff; }
.seg button:disabled  { opacity: 0.4; cursor: not-allowed; }
.kind-seg {
  grid-template-columns: 1fr 1fr 1fr; margin: 0 0 12px;
  background: var(--line); border: 0; padding: 3px;
}
.kind-seg button      { border-radius: 9px; min-height: 38px; font-weight: 650; }
.kind-seg button.on   { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ── Toggle switch ── */
.switch-card  { display: flex; gap: 14px; align-items: center; }
.switch       { flex: 0 0 auto; width: 46px; height: 27px; border: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; padding: 0; transition: background 0.15s; }
.switch.on    { background: var(--ok); }
.switch i     { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; display: block; transition: left 0.13s; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.switch.on i  { left: 22px; }

/* ── Fulfillment ── */
.fulfill-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }

/* ───────────────────────────────────────────
   PRODUCT CARDS
   ─────────────────────────────────────────── */
.product-card         { padding: 0; overflow: hidden; }
.product-card .pc-hit { display: block; color: inherit; }
.product-card .pc-media {
  aspect-ratio: 1/1; height: auto;
  background: #f0ece6; position: relative;
}
.product-card .pc-media img,
.product-card .pc-media .thumb {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; display: block; aspect-ratio: 1/1;
}
.product-card .pc-media .ph { width: 100%; height: 100%; min-height: 160px; border-radius: 0; font-size: 36px; }
.product-card .now-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand);
  border-radius: 999px; padding: 5px 10px 5px 9px;
  display: flex; align-items: center;
}
.live-mark {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.live-mark i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  animation: live-pulse 1.8s ease-out infinite;
}
.live-mark.ink   { color: var(--ok); }
.live-mark.ink i { background: #16a34a; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(74, 222, 128, 0);   }
}
.product-card .pc-body { padding: 12px 14px 10px; }
.product-card .pc-cat  {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 4px;
}
.product-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

/* ── Vendor strip ── */
.vendor-strip {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; border-top: 1px solid var(--line); background: #faf8f5;
  padding: 10px 14px; text-align: left; cursor: pointer; color: var(--ink);
}
.vendor-strip.on  { background: #fff; }
.vendor-strip .grow { display: flex; flex-direction: column; min-width: 0; }
.vendor-strip strong { font-size: 13px; font-weight: 650; }
.v-av {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}

/* ── Vendor pane ── */
.vendor-pane {
  border-top: 1px solid var(--line);
  background: #1a1815; color: #f5f4f0;
  padding: 14px 16px 18px;
}
.vendor-pane .hint        { color: rgba(245,244,240,0.55); }
.vendor-pane .err         { color: #fca5a5; background: transparent; padding: 0; }
.vendor-pane .pitch-copy  { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.vendor-pane .btn.ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.2); }
video.pitch { width: 100%; max-height: 220px; border-radius: 12px; background: #000; margin: 0 0 12px; display: block; }
.shop-rail  { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shop-rail a { flex: 0 0 92px; color: #fff; font-size: 12px; font-weight: 650; }
.shop-rail .thumb, .shop-rail img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; display: block; margin: 0 0 4px; }

/* ── Spinner ── */
.busy { display: flex; justify-content: center; padding: 36px 0; }
.wyn-spin {
  display: block; width: 40px; height: 40px;
  background: url("../brand/w-spin.png") center / contain no-repeat;
  animation: wyn-spin 0.85s linear infinite;
}
@keyframes wyn-spin { to { transform: rotate(360deg); } }

/* ── Shop page ── */
.shop-hero          { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.shop-hero h1       { margin: 0; font-size: 22px; }
.shop-hero .v-av    { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; }

/* ── PDP ── */
.pdp-wrap               { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pdp-wrap .vendor-strip { border-top: 0; }
.gallery                { position: relative; margin: 0 0 12px; }
.gallery-track          { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; }
.gallery-track img,
.gallery-track .ph      { flex: 0 0 100%; aspect-ratio: 4/5; height: auto; max-height: 72vh; object-fit: cover; scroll-snap-align: start; background: var(--line); }
.gallery-dots           { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.gallery-dots i         { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.gallery-dots i.on      { background: var(--brand); }
.pdp-price              { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 14px; }
.pdp-vendor             { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin: 0 0 14px; }
.pdp-vendor .avatar     { width: 40px; height: 40px; }
.sticky-buy             { position: sticky; bottom: 72px; background: rgba(245,244,240,0.95); padding: 8px 0 4px; backdrop-filter: blur(8px); }

/* ── Category hits ── */
.cat-hits { background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; margin: 4px 0 12px; overflow: hidden; }
.cat-hits button {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 11px 14px; cursor: pointer; color: var(--ink);
  transition: background 0.08s;
}
.cat-hits button:last-child { border-bottom: 0; }
.cat-hits button:hover,
.cat-hits button:focus { background: var(--brand-lt); outline: none; }
.cat-hits strong { font-weight: 700; }
.cat-hits .path  { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ── SKU / option picker ── */
.opt-chips        { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.opt-chips button {
  border: 1.5px solid var(--line); background: var(--panel); border-radius: 10px;
  padding: 9px 14px; min-height: 40px; font-weight: 650; cursor: pointer; transition: all 0.1s;
}
.opt-chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ───────────────────────────────────────────
   AUTH / SPLASH
   ─────────────────────────────────────────── */
body.on-login { background: #1a1210; }
body.on-login #app {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(20,12,16,0.18) 0%, rgba(20,12,16,0.62) 100%),
    url('../brand/login-bg.jpg') center / cover no-repeat;
}
body.on-login main.auth-desk {
  flex: 1; width: 100%; max-width: none; margin: 0;
  min-height: 100dvh; padding: 28px 16px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.splash { text-align: left; padding: 8px 4px 20px; }
body.on-login .splash .hint { color: rgba(255,255,255,0.86); max-width: 28em; }
.mode-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.mode-pills span {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.28);
}
.splash .brand-logo-lg {
  display: block; width: min(42vw, 200px); height: auto;
  max-width: 200px; margin: 0 0 16px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.auth-panel {
  background: #fff; border-radius: 18px; padding: 22px 20px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.auth-panel h2 {
  margin: 0 0 14px; font-size: 20px; font-weight: 750;
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}
.auth-panel .hint { margin: 14px 0 0; }
.auth-panel .hint a { color: var(--brand); font-weight: 650; }

/* ───────────────────────────────────────────
   YOU  (settings layout)
   ─────────────────────────────────────────── */
.you-layout { max-width: 720px; }
.you-id { margin: 0 0 16px; }
.you-who { display: flex; align-items: center; gap: 12px; }
.you-who .avatar { width: 44px; height: 44px; font-size: 14px; flex: 0 0 auto; }
.you-who strong { display: block; font-size: 16px; line-height: 1.25; }
.you-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 0; font-size: 13px; font-weight: 650; }
.you-links a { color: var(--brand); }
.you-links a:hover { color: var(--ink); }
.you-nav {
  display: flex; gap: 4px; margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.you-nav::-webkit-scrollbar { display: none; }
.you-nav a {
  flex: 0 0 auto; padding: 10px 12px 11px;
  color: var(--muted); font-weight: 650; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.you-nav a.on { color: var(--ink); border-bottom-color: var(--brand); }
.you-pane {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px;
}
.you-pane h2 {
  margin: 0 0 6px; font-size: 18px; font-weight: 750;
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}
.you-pane .hint { margin: 0 0 16px; }
.you-pane .field { margin: 0 0 14px; }
.you-pane .field:last-of-type { margin-bottom: 0; }
.you-pane .check { margin: 14px 0 0; }
.you-pane > .btn { margin-top: 16px; }
.you-pane .section-h { margin: 0 0 14px; }
.you-pane .section-h h2 {
  margin: 0; font-size: 18px; font-weight: 750;
  letter-spacing: -0.02em; text-transform: none; color: var(--ink);
}
.you-pane .listing-row {
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line);
}
.you-pane .listing-row:last-child { border-bottom: 0; padding-bottom: 0; }
.you-pane .kind-seg { margin: 0 0 12px; }
.you-pane .switch-card { padding: 12px 0; border-top: 1px solid var(--line); }
.you-pane .switch-card:first-of-type { border-top: 0; padding-top: 4px; }
.sell-req { padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.sell-req .btn { margin-top: 12px; }
.you-id .err { margin: 12px 0 0; }
.you-pin { margin: 10px 0 0; }
.you-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

/* ───────────────────────────────────────────
   ADMIN  ← breathe, neutral, no color drama
   ─────────────────────────────────────────── */
.admin-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  flex: 0 0 auto; white-space: nowrap;
  padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 650; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line);
}
.admin-nav a.on { color: var(--brand); background: var(--brand-lt); border-color: transparent; }

.admin-stats         { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.admin-stats .card   { padding: 16px; margin: 0; }
.admin-stats .card h2 { margin: 0 0 6px; }
.admin-stats strong  { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; display: block; color: var(--ink); }

/* ───────────────────────────────────────────
   WIZARD  (listing creation)
   ─────────────────────────────────────────── */
.logo-sq   { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; display: block; margin: 8px 0 0; background: var(--line); }
.wiz-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.wiz-steps span    { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--line); }
.wiz-steps span.on { background: var(--brand); color: #fff; }
.wiz-nav           { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 8px; }
.wiz-nav .btn      { width: auto; min-width: 120px; }
.wiz-photos        { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0 0 14px; }
.wiz-ph            { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0 0 8px; }
.wiz-ph img        { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.wiz-add-ph        { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip-row          { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.wiz-chip          { background: var(--line); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 4px; }
.wiz-chip button   { border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--muted); line-height: 1; padding: 0; }
.sku-table         { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.sku-table th,
.sku-table td      { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.sku-table tr:last-child td { border-bottom: 0; }
.sku-table input   { min-height: 34px; padding: 4px 8px; border-radius: 6px; }
.sku-table code    { font-size: 11px; color: var(--muted); }

/* ── Crop overlay ── */
.crop-ov {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(26,24,21,0.7);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-sheet  { background: #fff; border-radius: 18px; padding: 16px; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.crop-stage  { position: relative; overflow: hidden; width: 100%; max-width: 360px; margin: 0 auto 12px; background: #1a1815; touch-action: none; border-radius: 12px; }
.crop-stage img { position: absolute; left: 50%; top: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; max-width: none; transform-origin: center; user-select: none; pointer-events: none; }
.crop-zoom       { display: block; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.crop-zoom input { width: 100%; accent-color: var(--brand); }
.axis-name       { width: 100%; font-weight: 650; margin: 0 0 4px; }

/* ═══════════════════════════════════════════
   DESKTOP  (≥ 900px)
   ═══════════════════════════════════════════ */
@media (min-width: 900px) {
  #app { max-width: none; }

  header.top {
    display: flex; grid-template-columns: none;
    gap: 20px; padding: 10px 32px;
    background: rgba(255,255,255,0.97);
  }
  header.top .title {
    flex: 0 1 auto; max-width: 30vw;
    text-align: left; font-size: 14px;
  }
  header.top .nav-side.right { margin-left: auto; }

  nav.desk-nav {
    display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end;
  }
  nav.desk-nav a {
    color: var(--muted); font-size: 13px; font-weight: 650;
    padding: 7px 12px; border-radius: 8px;
    display: inline-flex; gap: 6px; align-items: center;
    transition: all 0.1s;
  }
  nav.desk-nav a.on { color: var(--brand); background: var(--brand-lt); }
  nav.desk-nav .tab-ico { display: none; }
  nav.tabs { display: none; }

  main {
    padding: 32px 40px 56px;
    max-width: 1200px; width: 100%; margin: 0 auto;
  }

  .hero-now { padding: 8px 0 12px; }
  .hero-now h2 { font-size: 32px; text-transform: none; }

  .search-wrap input { padding: 14px 56px 14px 22px; font-size: 16px; }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; margin: 0 0 28px;
  }
  .product-grid .product-card { margin: 0; height: 100%; display: flex; flex-direction: column; }

  .pdp-desk {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 40px; align-items: start;
  }
  .gallery-track img, .gallery-track .ph { max-height: min(72vh, 640px); }
  .sticky-buy { position: static; background: transparent; padding: 12px 0 0; }

  body.on-login #app {
    background:
      linear-gradient(90deg, rgba(20,12,16,0.12) 0%, rgba(20,12,16,0.22) 46%, rgba(20,12,16,0.58) 100%),
      linear-gradient(180deg, rgba(20,12,16,0.10), rgba(20,12,16,0.28)),
      url('../brand/login-bg.jpg') center / cover no-repeat;
  }
  body.on-login main.auth-desk,
  .auth-desk {
    display: grid; grid-template-columns: 1fr minmax(340px, 400px);
    gap: 64px; max-width: none; width: 100%;
    min-height: 100dvh; margin: 0; padding: 48px 64px;
    align-items: center; justify-content: stretch;
  }
  .auth-desk .splash { padding: 0; max-width: 28em; }
  .auth-desk .splash .brand-logo-lg {
    width: 260px; max-width: 260px; margin: 0 0 20px;
  }
  .auth-panel { padding: 28px; }

  .spec-desk, .cart-desk {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
  }
  .you-layout { max-width: 880px; }
  .you-shell { display: grid; grid-template-columns: 168px minmax(0, 520px); gap: 28px; align-items: start; }
  .you-nav {
    flex-direction: column; gap: 2px; margin: 0; overflow: visible;
    border-bottom: 0; position: sticky; top: 80px;
  }
  .you-nav a {
    padding: 8px 12px; border-bottom: 0; border-radius: 8px; margin: 0;
  }
  .you-nav a.on { background: var(--brand-lt); color: var(--brand); }
  .cart-side {
    position: sticky; top: 80px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .page-narrow { max-width: 560px; }

  .admin-shell { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
  .admin-nav   { flex-direction: column; overflow: visible; padding: 0; position: sticky; top: 80px; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
