/* Listora — studio sweep, shelf labels and price stickers. */
@font-face { font-family: "Big Shoulders"; src: url("fonts/BigShoulders-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --cyc: #ECEEF4;
  --cyc-deep: #D9DEEB;
  --paper: #FFFFFF;
  --paper-2: #F6F7FB;
  --ink: #191A46;
  --ink-2: #565982;
  --ink-3: #8C8FB0;
  --line: #DCDFEA;
  --line-strong: #C2C6D8;
  --laser: #EE2449;
  --laser-soft: rgba(238, 36, 73, .12);
  --sticker: #FFD23A;
  --sticker-ink: #2A2200;
  --ok: #138257;  --ok-bg: #E2F4EB;
  --warn: #9A5B00; --warn-bg: #FFF1D6;
  --bad: #C61F3A;  --bad-bg: #FDE6EA;
  --on-ink: #FFFFFF;
  --glow: rgba(255, 255, 255, .95);
  --checker-a: #FFFFFF; --checker-b: #E8EAF2;
  --lift: 0 1px 0 rgba(25, 26, 70, .04), 0 22px 44px -28px rgba(25, 26, 70, .45);
  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cyc: #12133A; --cyc-deep: #0C0D2C; --paper: #1C1D4A; --paper-2: #222458;
    --ink: #F0F0FF; --ink-2: #ABADD6; --ink-3: #7C7FAE; --line: #2F3170; --line-strong: #44478C;
    --laser: #FF5873; --laser-soft: rgba(255, 88, 115, .16);
    --ok: #4FD79C; --ok-bg: rgba(79, 215, 156, .14); --warn: #FFC15C; --warn-bg: rgba(255, 193, 92, .14);
    --bad: #FF7A8E; --bad-bg: rgba(255, 122, 142, .14); --on-ink: #12133A; --glow: rgba(84, 88, 190, .35);
    --checker-a: #2A2C62; --checker-b: #23255A;
    --lift: 0 1px 0 rgba(0, 0, 0, .25), 0 24px 48px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cyc: #12133A; --cyc-deep: #0C0D2C; --paper: #1C1D4A; --paper-2: #222458;
  --ink: #F0F0FF; --ink-2: #ABADD6; --ink-3: #7C7FAE; --line: #2F3170; --line-strong: #44478C;
  --laser: #FF5873; --laser-soft: rgba(255, 88, 115, .16);
  --ok: #4FD79C; --ok-bg: rgba(79, 215, 156, .14); --warn: #FFC15C; --warn-bg: rgba(255, 193, 92, .14);
  --bad: #FF7A8E; --bad-bg: rgba(255, 122, 142, .14); --on-ink: #12133A; --glow: rgba(84, 88, 190, .35);
  --checker-a: #2A2C62; --checker-b: #23255A;
  --lift: 0 1px 0 rgba(0, 0, 0, .25), 0 24px 48px -26px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--cyc); color: var(--ink);
  font: 400 15px/1.55 var(--text); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--sticker); color: var(--sticker-ink); }
.wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: .005em; line-height: .95; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cyc) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { font: 700 30px/1 var(--display); letter-spacing: .01em; padding-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 14.5px;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ai-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13.5px; font-weight: 700;
}
.ai-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.ai-pill.off .dot { background: var(--laser); box-shadow: 0 0 0 3px var(--laser-soft); }
.ai-pill .model { color: var(--ink-2); font-weight: 400; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--paper-2); }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--laser)); }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.btn.danger { color: var(--bad); }
.btn.small { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn .icon { stroke-width: 2.1; }
.btn.small .icon { width: 16px; height: 16px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 10px;
  padding: 9px 12px; font-size: 15px; line-height: 1.45; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.textarea { resize: vertical; min-height: 64px; max-height: 620px; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.help { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button, .seg label {
  border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13.5px;
  color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg [aria-pressed="true"], .seg label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(25, 26, 70, .14), inset 0 0 0 1px var(--line); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 14px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); background: var(--on-ink); }
.switch input:disabled { opacity: .45; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip.live { background: var(--laser-soft); color: var(--laser); border-color: transparent; }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- studio sweep (hero) ---------- */
.sweep {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--glow) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 55%, var(--cyc)) 0%, var(--cyc) 58%, var(--cyc-deep) 100%);
}
.sweep::after { /* soft light pooling on the studio floor */
  content: ""; position: absolute; z-index: -1; left: 5%; right: 5%; bottom: -18%; height: 46%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--paper) 42%, transparent), transparent 100%);
  pointer-events: none;
}
.hero { margin-top: 22px; border-radius: 28px; border: 1px solid var(--line); padding: clamp(24px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-title { font: 700 clamp(46px, 7.3vw, 118px)/.9 var(--display); letter-spacing: -.004em; margin: 0; }
.hero-title span { display: block; white-space: nowrap; }
.hero-sub { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; line-height: 1.5; }
.hero-stores { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 0; list-style: none; font: 700 22px/1 var(--display); color: var(--ink-3); }
.hero-stores li { letter-spacing: .02em; }

.drop-card { background: var(--paper); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--lift); padding: 18px; position: relative; }
.drop-zone {
  position: relative; border-radius: 15px; padding: 28px 18px 24px; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--paper-2) 0 10px, color-mix(in srgb, var(--paper-2) 55%, var(--paper)) 10px 20px);
  border: 2px dashed var(--line-strong); transition: border-color .15s, background .15s;
}
.drop-zone .pedestal { width: 120px; height: 18px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 22%, transparent), transparent); }
.drop-zone .icon { width: 34px; height: 34px; stroke-width: 1.5; margin: 0 auto 10px; color: var(--ink-2); }
.drop-zone h2 { font: 700 30px/1 var(--display); margin: 0 0 6px; }
.drop-zone p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.hero.dragging .drop-zone { border-color: var(--laser); background: var(--laser-soft); }
.hero.dragging .drop-zone h2 { color: var(--laser); }
.drop-options { display: grid; gap: 14px; padding: 16px 4px 2px; }
.drop-options .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px;
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px;
}
.notice .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--laser); flex: none; box-shadow: 0 0 0 4px var(--laser-soft); }
.notice p { margin: 0; flex: 1 1 320px; }
.notice .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- catalog ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 46px 0 16px; }
.section-head h2 { font: 700 46px/.9 var(--display); margin: 0; }
.section-head h2 small { font: 400 15px/1 var(--text); color: var(--ink-2); margin-left: 10px; letter-spacing: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; }
.search .icon { position: absolute; left: 11px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 36px; width: min(260px, 70vw); height: 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card {
  position: relative; background: var(--paper); border-radius: 18px; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--lift); }
.card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; border-radius: 18px; }
.card-link:focus-visible { outline-offset: -2px; }
.shot {
  position: relative; aspect-ratio: 1; border-radius: 17px 17px 0 0; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 0%, var(--glow), transparent 70%), linear-gradient(180deg, var(--paper-2), var(--cyc-deep));
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot img.contain { object-fit: contain; padding: 8%; }
.shot.transparent, .stage-main.transparent, .thumb.transparent {
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 18px 18px;
}
.shot .empty-shot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.pick { position: absolute; z-index: 3; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 90%, transparent); border: 1px solid var(--line-strong); cursor: pointer; opacity: 0; transition: opacity .15s; }
.pick input { appearance: none; margin: 0; width: 16px; height: 16px; border-radius: 4px; border: 1.6px solid var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.pick input:checked { background: var(--ink); border-color: var(--ink); }
.pick input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.card:hover .pick, .card:focus-within .pick, .grid.selecting .pick, .card.selected .pick { opacity: 1; }

.sticker {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sticker); color: var(--sticker-ink); rotate: -9deg;
  font: 700 23px/1 var(--display); box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 8px 18px -8px rgba(0, 0, 0, .45);
}
.sticker::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--sticker-ink) 35%, transparent); }
.sticker.low { background: #FFB4C0; }

/* shelf label under each product */
.shelf { position: relative; padding: 14px 16px 15px; display: grid; gap: 8px; flex: 1; align-content: start; border-top: 1.5px dashed var(--line); }
.shelf::before, .shelf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyc); border: 1px solid var(--line); }
.shelf::before { left: -9px; clip-path: inset(0 0 0 50%); }
.shelf::after { right: -9px; clip-path: inset(0 50% 0 0); }
.shelf h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.shelf .cat { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.price { font: 700 27px/1 var(--display); letter-spacing: .01em; }
.price.none { font: 400 13px/1 var(--text); color: var(--ink-3); }
.shelf .err { margin: 0; font-size: 13px; color: var(--bad); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* the one orchestrated motion: a checkout-scanner line reading the product */
.scanning::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0 46%, var(--laser-soft) 50%, transparent 54% 100%);
  background-size: 100% 260%; animation: scanwash 2.4s ease-in-out infinite alternate;
}
.scanning::after {
  content: ""; position: absolute; left: 6%; right: 6%; height: 2px; top: 10%; z-index: 2; pointer-events: none;
  background: var(--laser); border-radius: 2px;
  box-shadow: 0 0 6px 1px var(--laser), 0 0 22px 4px color-mix(in srgb, var(--laser) 45%, transparent);
  animation: scanline 2.4s ease-in-out infinite alternate;
}
@keyframes scanline { from { top: 10%; } to { top: 90%; } }
@keyframes scanwash { from { background-position: 0 100%; } to { background-position: 0 0; } }

.empty {
  border: 2px dashed var(--line-strong); border-radius: 22px; padding: 48px 20px; text-align: center; display: grid; justify-items: center; gap: 10px;
}
.empty h3 { font: 700 34px/1 var(--display); margin: 0; }
.empty p { margin: 0; color: var(--ink-2); max-width: 44ch; }

.selbar {
  position: fixed; z-index: 45; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: var(--on-ink); padding: 8px 8px 8px 16px; border-radius: 16px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6);
  max-width: calc(100vw - 24px);
}
.selbar strong { margin-right: 6px; font-size: 14px; }
.selbar .btn { background: transparent; border-color: transparent; color: var(--on-ink); }
.selbar .btn:hover { background: color-mix(in srgb, var(--on-ink) 14%, transparent); }

/* ---------- menus, toasts, dialogs ---------- */
.menu-wrap { position: relative; display: inline-flex; }
.menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 230px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift), 0 2px 8px rgba(0, 0, 0, .06);
  display: grid; gap: 1px;
}
.menu.up { top: auto; bottom: calc(100% + 6px); }
.menu.left { right: auto; left: 0; }
.menu button { text-align: left; border: 0; background: transparent; padding: 9px 11px; border-radius: 9px; cursor: pointer; display: grid; gap: 1px; font-weight: 700; font-size: 14px; color: var(--ink); }
.menu button small { font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.menu button:hover, .menu button:focus-visible { background: var(--paper-2); outline: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu form { display: flex; gap: 6px; padding: 6px 4px 4px; }
.menu form .input { height: 34px; padding: 6px 10px; font-size: 13.5px; }

.toasts { position: fixed; z-index: 80; left: 50%; bottom: 20px; translate: -50% 0; display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: 14.5px;
  animation: toastin .2s ease-out;
}
.toast.bad { background: var(--bad); color: #fff; }
.toast p { margin: 0; flex: 1; }
.toast .btn { height: 30px; padding: 0 10px; background: transparent; border-color: color-mix(in srgb, currentColor 40%, transparent); color: inherit; font-size: 13px; }
@keyframes toastin { from { opacity: 0; translate: 0 8px; } }

dialog {
  border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--paper); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
dialog::backdrop { background: color-mix(in srgb, var(--cyc-deep) 60%, rgba(10, 10, 40, .45)); backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg h2 { font: 700 34px/1 var(--display); margin: 0; }
.dlg p { margin: 0; color: var(--ink-2); }
.dlg pre { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.dlg .acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- product editor ---------- */
.ed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 0 22px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; margin-left: -4px; padding: 4px; border-radius: 8px; }
.back:hover { color: var(--ink); }
.ed-title { margin: 8px 0 0; font: 700 clamp(40px, 5vw, 64px)/.9 var(--display); max-width: 18ch; text-wrap: balance; }
.ed-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); font-size: 13.5px; }
.ed-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 30px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; }
.save-state .icon { width: 15px; height: 15px; color: var(--ok); }

.ed-grid { display: grid; grid-template-columns: minmax(300px, 430px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: 80px; }
.ed-grid > *, .brand-grid > *, .hero-grid > * { min-width: 0; }
.stage { position: sticky; top: 84px; display: grid; gap: 14px; }
.stage-main { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.stage-main img { width: 100%; height: 100%; object-fit: contain; }
.stage-main img.cover { object-fit: cover; }
.stage-main .tagline { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 66px; height: 66px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.thumb .badge { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: var(--ink); color: var(--on-ink); padding: 1px 5px; border-radius: 5px; }
.thumb.add { display: grid; place-items: center; border-style: dashed; border-color: var(--line-strong); color: var(--ink-2); background: transparent; }
.stage-tools { display: flex; gap: 6px; flex-wrap: wrap; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.panel h3 { margin: 0 0 4px; font: 700 26px/1 var(--display); }
.panel > p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.studio-opts { display: grid; gap: 12px; }
.inline-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.swatch { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .18); display: inline-block; }
.colorpick { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }

.health { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.health .sticker { position: relative; top: auto; right: auto; width: 74px; height: 74px; font-size: 36px; }
.health h3 { margin: 0; font: 700 30px/1 var(--display); }
.health p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.checks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; font-size: 14px; }
.checks .mark { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.checks .mark .icon { width: 12px; height: 12px; stroke-width: 3; }
.checks .pass .mark { background: var(--ok-bg); color: var(--ok); }
.checks .warn .mark { background: var(--warn-bg); color: var(--warn); }
.checks .fail .mark { background: var(--bad-bg); color: var(--bad); }
.checks strong { display: block; }
.checks span.d { color: var(--ink-2); font-size: 13px; }
.linkish { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; font-size: 13px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: 11px 14px 12px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-size: 11.5px; padding: 1px 6px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }

.group { display: grid; gap: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; }
.group > h4 { margin: 0 0 -4px; font: 700 22px/1 var(--display); letter-spacing: .01em; color: var(--ink-2); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-head { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.field-head label { font-weight: 700; font-size: 14px; flex: 1; min-width: 0; }
.field-head .count { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count.over { color: var(--bad); font-weight: 700; }
.count.under { color: var(--warn); }
.ai-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ai-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.ai-btn .icon { width: 14px; height: 14px; }
.ai-btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
.meter { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width .2s; }
.meter.under span { background: var(--warn); }
.meter.over span { background: var(--bad); }
.field .hint { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.field .problem { margin: 0; font-size: 12.5px; color: var(--bad); font-weight: 700; }
.field.flash .input, .field.flash .textarea, .field.flash .chips { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sticker) 80%, transparent); } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ideas { display: grid; gap: 6px; }
.idea { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--paper-2); font-size: 14px; }
.idea span { flex: 1; }

.list-edit { display: grid; gap: 8px; }
.list-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: start; }
.list-row .n { font: 700 20px/38px var(--display); color: var(--ink-3); text-align: center; }
.list-row .textarea { min-height: 40px; height: auto; resize: none; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); min-height: 44px; align-items: center; cursor: text; }
.chips:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); font-size: 13.5px; }
.tag.long { border-color: var(--bad); color: var(--bad); }
.tag button { border: 0; background: none; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--ink-3); padding: 0; }
.tag button:hover { background: var(--line); color: var(--ink); }
.tag button .icon { width: 13px; height: 13px; }
.chips input { border: 0; outline: 0; flex: 1 0 120px; min-width: 80px; background: transparent; padding: 4px; font-size: 14px; }

.kv { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 8px; }

.confirm-box { border-radius: 16px; padding: 14px 16px; background: var(--warn-bg); display: grid; gap: 8px; margin-bottom: 16px; }
.confirm-box h4 { margin: 0; font-size: 15px; color: var(--warn); }
.confirm-box label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.confirm-box input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.confirm-box label.done span { text-decoration: line-through; color: var(--ink-2); }

.channel-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.channel-pick button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font: 700 20px/1 var(--display); letter-spacing: .01em; color: var(--ink-2);
}
.channel-pick button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.channel-pick .st { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.channel-pick .st.ok { background: var(--ok); }
.channel-pick .st.warn { background: var(--warn); }
.channel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.channel-head h3 { margin: 0; font: 700 34px/1 var(--display); }
.channel-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 56ch; }
.stale { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.stale span { flex: 1; }
.readout { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); margin: 0; overflow-wrap: anywhere; }
.readout.html ul { margin: 6px 0; padding-left: 20px; }
.readout.html p { margin: 0 0 8px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 700; }

/* previews */
.preview-switch { margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.pdp { background: #FFFFFF; color: #1d1d22; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; font-family: var(--text); }
.pdp-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-bottom: 1px solid #ececf0; font-size: 13px; color: #6b6b78; }
.pdp-bar strong { font: 700 22px/1 var(--display); color: #1d1d22; letter-spacing: .02em; }
.pdp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px; align-items: start; }
.pdp-gallery { display: grid; gap: 8px; align-content: start; position: sticky; top: 84px; }
.pdp-gallery .big { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f3f3f6; }
.pdp-gallery .big img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery .row { display: flex; gap: 8px; }
.pdp-gallery .row img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #f3f3f6; }
.pdp .crumbs { font-size: 12.5px; color: #8a8a96; margin: 0 0 8px; }
.pdp h1 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.pdp .pdp-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pdp .pdp-price b { font: 700 34px/1 var(--display); }
.pdp .pdp-price s { color: #8a8a96; font-size: 15px; }
.pdp .lede { color: #45454f; margin: 0 0 14px; }
.pdp ul { margin: 0 0 16px; padding-left: 18px; color: #2c2c35; font-size: 14px; display: grid; gap: 4px; }
.pdp .buy { display: flex; gap: 8px; margin-bottom: 18px; }
.pdp .buy span { flex: 1; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: #1d1d22; color: #fff; }
.pdp .buy span + span { flex: 0 0 46px; background: #f0f0f4; color: #1d1d22; }
.pdp .desc { border-top: 1px solid #ececf0; padding-top: 14px; color: #3a3a44; font-size: 14px; white-space: pre-wrap; }
.pdp .pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pdp .pdp-tags span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #f0f0f4; color: #55555f; }
.serp { background: #FFFFFF; color: #1f1f1f; border-radius: 20px; border: 1px solid var(--line); padding: 22px 24px; display: grid; gap: 4px; max-width: 680px; font-family: Arial, Helvetica, sans-serif; }
.serp .site { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.serp .fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font: 700 14px/1 var(--display); color: #202124; }
.serp .site small { display: block; color: #4d5156; font-size: 12px; }
.serp .t { color: #1a0dab; font-size: 20px; line-height: 1.3; margin: 6px 0 2px; }
.serp .d { color: #4d5156; font-size: 14px; line-height: 1.58; }
.social { background: #FFFFFF; color: #1d1d22; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; max-width: 440px; }
.social .who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.social .who i { width: 32px; height: 32px; border-radius: 50%; background: var(--sticker); display: grid; place-items: center; font: 700 16px/1 var(--display); font-style: normal; color: var(--sticker-ink); }
.social img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f3f6; }
.social p { margin: 0; padding: 12px 14px 16px; font-size: 14px; }
.social p span { color: #2050c8; }

/* brand kit */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 80px; }
.brand-aside { position: sticky; top: 84px; display: grid; gap: 14px; }
.voice-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line); }
.voice-card .store { font: 700 44px/.9 var(--display); margin: 0 0 6px; overflow-wrap: anywhere; }
.voice-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.status-list li { display: flex; gap: 10px; align-items: flex-start; }
.status-list .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--ok); }
.status-list .dot.off { background: var(--laser); }
.page-head { padding: 30px 0 22px; }
.page-head h1 { font: 700 clamp(48px, 6vw, 78px)/.9 var(--display); margin: 0; }
.page-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 60ch; }
.form-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--cyc) 40%); display: flex; gap: 10px; align-items: center; }

.skeleton { border-radius: 18px; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }


/* ---------- market research ---------- */
.research-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.research-bar .input { flex: 1 1 240px; width: auto; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--paper-2); display: grid; gap: 4px; }
.stat span { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.stat b { font: 700 clamp(21px, 2.1vw, 28px)/1 var(--display); letter-spacing: .01em; white-space: nowrap; }

.band { margin: 4px 0 0; }
.band-track { position: relative; height: 128px; border-bottom: 1.5px solid var(--line-strong); margin: 0 8px; }
.band-iqr { position: absolute; bottom: 0; height: 92px; background: color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 8px 8px 0 0; }
.band-median { position: absolute; bottom: 0; height: 96px; width: 2px; margin-left: -1px; background: var(--ink); }
.band-dot { position: absolute; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px var(--paper); cursor: pointer; }
.band-dot:hover, .band-dot:focus-visible { background: var(--ink); transform: scale(1.35); outline: none; }
.band-dot.off { background: var(--paper); box-shadow: inset 0 0 0 1.6px var(--ink-3), 0 0 0 2px var(--paper); }
.band-pin { position: absolute; bottom: 0; top: 0; width: 2px; margin-left: -1px; }
.band-pin span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.band-pin.you { background: var(--laser); }
.band-pin.you span { background: var(--laser); color: #fff; }
.band-pin.sugg { background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 7px); }
.band-pin.sugg span { top: 26px; background: var(--sticker); color: var(--sticker-ink); }
.band-tip { position: absolute; bottom: 40px; transform: translateX(-50%); z-index: 5; background: var(--ink); color: var(--on-ink); font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 9px; white-space: pre-line; width: max-content; max-width: 260px; pointer-events: none; }
.band-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.band-axis span:nth-child(2) { text-align: center; }

.suggest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); }
.suggest p { margin: 4px 0 0; font-size: 14px; }
.pricetag {
  font: 700 34px/1 var(--display); background: var(--sticker); color: var(--sticker-ink); padding: 12px 18px 12px 30px; white-space: nowrap;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  background-image: radial-gradient(circle at 16px 50%, var(--paper-2) 0 4px, transparent 4.5px); border-radius: 0 10px 10px 0;
}
.callout { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--sticker) 22%, var(--paper)); }
.callout-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
ul.plain { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.comp-list { display: grid; gap: 6px; }
.comp { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: var(--paper); }
a.comp:hover { border-color: var(--line-strong); }
.comp.dim { opacity: .55; }
.comp img, .comp .ph { width: 52px; height: 52px; object-fit: contain; border-radius: 9px; background: #fff; }
.comp .ph { background: var(--paper-2); }
.comp-main { display: grid; gap: 2px; min-width: 0; }
.comp-main strong { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp-price { display: grid; justify-items: end; gap: 2px; }
.comp-price b { font: 700 22px/1 var(--display); }
.comp-price s { font-size: 12px; color: var(--ink-3); }

.spark-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.spark { padding: 12px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 6px; background: var(--paper); min-width: 0; overflow: hidden; }
.spark-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.spark-head strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark svg { width: 100%; max-width: 100%; height: 52px; display: block; cursor: crosshair; }
.spark-line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.spark-marker { stroke: var(--laser); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kw-list { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kw-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kw-row:last-child { border-bottom: 0; }
.kw { flex: 1 1 200px; font-weight: 700; font-size: 14px; }
.kw-acts { display: flex; gap: 2px; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.insight { padding: 12px 14px; border-radius: 14px; background: var(--paper-2); }

/* FAQ */
.faq-edit { display: grid; gap: 10px; }
.faq-item { display: grid; gap: 6px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); }
.faq-item.todo { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: var(--warn-bg); }
.faq-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.faq-q .input { font-weight: 700; }
.pdp-faq { border-top: 1px solid #ececf0; margin-top: 14px; padding-top: 12px; }
.pdp-faq h3 { font-size: 16px; margin: 0 0 6px; }
.pdp-faq details { border-bottom: 1px solid #ececf0; padding: 8px 0; font-size: 14px; }
.pdp-faq summary { cursor: pointer; font-weight: 700; }
.pdp-faq p { margin: 6px 0 0; color: #45454f; }

.list-row.has-count { grid-template-columns: 24px minmax(0, 1fr) 46px auto; }
.row-count { font-size: 12px; color: var(--ink-2); line-height: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.row-count.over { color: var(--bad); font-weight: 700; }
.serp-form { display: flex; gap: 8px; flex-wrap: wrap; }
.serp-form .input { flex: 1 1 200px; width: auto; }
#connections .label { margin-bottom: 6px; }

@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggest { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .band-axis span:nth-child(2) { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ed-grid { grid-template-columns: 1fr; }
  .stage { position: static; grid-template-columns: minmax(0, 1fr); }
  .stage-main { max-width: 520px; width: 100%; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-aside { position: static; }
}
@media (max-width: 720px) {
  .topbar .wrap { gap: 10px; }
  .nav { margin-left: 0; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
  .ai-pill .model, .ai-pill .txt { display: none; }
  .ai-pill { padding: 0 11px; }
  .hero { border-radius: 22px; margin-top: 14px; }
  .hero-stores { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shelf { padding: 12px; }
  .price { font-size: 23px; }
  .sticker { width: 42px; height: 42px; font-size: 19px; }
  .two, .three { grid-template-columns: 1fr; }
  .pdp-body { grid-template-columns: 1fr; padding: 16px; }
  .health { grid-template-columns: auto 1fr; }
  .health > .btn { grid-column: 1 / -1; }
  .section-head h2 { font-size: 40px; }
  .ed-actions { padding-top: 0; width: 100%; }
  .kv-row { grid-template-columns: 1fr 1fr auto; }
  .group { padding: 14px; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .scanning::after { top: 50%; }
}
