/* FYI Shelf */
:root {
  --paper: #F4F0EA;
  --surface: #FFFDFA;
  --sunk: #EAE4DB;
  --line: #E2DBD0;
  --line-2: #CFC6B8;
  --ink: #2A2025;
  --ink-2: #4D4248;
  --ink-3: #6B5F65;
  --accent: #5A2648;
  --accent-ink: #3E1832;
  --accent-wash: #F1E6EC;
  --accent-line: #DCC6D3;
  --good: #3F6B4E; --good-wash: #E3EDE5;
  --meh: #80601A;  --meh-wash: #F3EBD6;
  --bad: #9B3B2E;  --bad-wash: #F6E4DF;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --wrap: 1180px;
  --gutter: 24px;

  --display: "Newsreader", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 500;
  --display-track: -0.015em;
  --label-track: 0;
}
[data-palette="mist"] { --paper: #F2F5F4; --surface: #FCFDFD; --sunk: #E6ECEA; --line: #DCE3E1; --line-2: #C5D0CD; --ink: #222A2C; --ink-2: #43504F; --ink-3: #5E6C6B;
  --accent: #4A7472; --accent-ink: #365957; --accent-wash: #E7F0EF; --accent-line: #C6DAD8; --good: #3F7559; --good-wash: #E3EFE8; --meh: #7A6224; --meh-wash: #F1ECDD; --bad: #9E4A42; --bad-wash: #F4E6E3; }
[data-palette="sage"] { --paper: #F7F6F2; --surface: #FFFFFD; --sunk: #EEEDE7; --line: #E5E3DC; --line-2: #D2CFC6; --ink: #24262A; --ink-2: #45484C; --ink-3: #666660;
  --accent: #4F745F; --accent-ink: #3A5A48; --accent-wash: #EEF4EF; --accent-line: #CFE0D4; --good: #3F7064; --good-wash: #E4EFEC; --bad: #A0453A; }
[data-palette="fig"] { --paper: #F4F0EA; --surface: #FFFDFA; --sunk: #EAE4DB; --line: #E2DBD0; --line-2: #CFC6B8; --ink: #2A2025; --ink-2: #4D4248; --ink-3: #6B5F65;
  --accent: #5A2648; --accent-ink: #3E1832; --accent-wash: #F1E6EC; --accent-line: #DCC6D3; --good: #3F6B4E; --good-wash: #E3EDE5; --bad: #9B3B2E; }
[data-palette="oxblood"] { --paper: #F5F0E8; --surface: #FFFDF9; --sunk: #ECE4D8; --line: #E3D9CB; --line-2: #D0C3B2; --ink: #2B1E1C; --ink-2: #4F3F3B; --ink-3: #6E5D58;
  --accent: #6E2430; --accent-ink: #4E1620; --accent-wash: #F4E6E3; --accent-line: #E0C6C2; --good: #47684F; --good-wash: #E4ECE4; }
[data-palette="moss"] { --paper: #F1F0E8; --surface: #FDFDF8; --sunk: #E6E5DA; --line: #DCDBCD; --line-2: #C7C6B5; --ink: #23261E; --ink-2: #464A3E; --ink-3: #65695B;
  --accent: #4C5A33; --accent-ink: #343F22; --accent-wash: #E9ECDF; --accent-line: #CDD4BE; --good: #4C5A33; --good-wash: #E6EBDC; --bad: #9A4532; }
[data-palette="dusk"] { --paper: #F3F1F4; --surface: #FEFDFE; --sunk: #E8E5EC; --line: #DFDBE5; --line-2: #CAC4D3; --ink: #24212B; --ink-2: #47425A; --ink-3: #676179;
  --accent: #5D5478; --accent-ink: #3F3857; --accent-wash: #ECE9F2; --accent-line: #D3CCE0; --good: #3F6B5A; --good-wash: #E2ECE7; }
[data-type="editorial"] { --display: "Newsreader", Georgia, serif; --body: "Hanken Grotesk", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace; --display-weight: 500; --display-track: -0.015em; }
[data-type="clinical"] { --display: "Archivo", system-ui, sans-serif; --body: "Archivo", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --display-weight: 600; --display-track: -0.025em; }
[data-type="luxe"] { --display: "Bodoni Moda", Didot, serif; --body: "Jost", system-ui, sans-serif; --display-weight: 500; --display-track: -0.01em; }
[data-type="warm"] { --display: "Young Serif", Georgia, serif; --body: "Instrument Sans", system-ui, sans-serif; --display-weight: 400; --display-track: -0.01em; }
[data-type="original"] { --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --display-weight: 700; --display-track: -0.02em; }

*, *::before, *::after { box-sizing: border-box; }
[data-type] { font-family: var(--body); }
[data-palette] { color: var(--ink); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.08; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ---------- header ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.topbar-in { display: flex; align-items: center; gap: 12px 28px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.logo b { font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: var(--display-track); }
.logo span { font-size: 12px; color: var(--ink-3); }
.logo:hover { color: var(--ink); }
.mainnav { display: flex; gap: 2px; flex: 1 1 auto; }
.mainnav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); white-space: nowrap; }
.mainnav a:hover { background: var(--sunk); color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-3); width: 260px; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--ink); }
.search:focus-within { border-color: var(--ink-2); }
.avatar-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; text-decoration: none; flex: 0 0 auto; }
@media (max-width: 1000px) {
  .topbar-in { gap: 8px 12px; }
  .mainnav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 12px); }
  .top-actions { margin-left: auto; }
  .search { width: auto; flex: 1 1 160px; }
}
@media (max-width: 640px) {
  .logo span { display: none; }
  .top-actions .search { display: none; }
  .btn-scan .lbl { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { background: var(--sunk); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-ink); border-color: var(--accent-line); }
.btn svg { flex: 0 0 auto; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- chips & segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.soft[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-ink); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 27, 24, 0.12); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.good { background: var(--good-wash); color: var(--good); }
.tag.meh { background: var(--meh-wash); color: var(--meh); }
.tag.bad { background: var(--bad-wash); color: var(--bad); }
.tag.accent { background: var(--accent-wash); color: var(--accent-ink); }
.tag.dark { background: var(--accent-ink); color: #fff; }
.tone-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

/* ---------- toggle ---------- */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex: 0 0 auto; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.page { padding: 36px 0 80px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); }
.page-head .lede { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.cols.left { grid-template-columns: 250px minmax(0, 1fr); }
@media (max-width: 1000px) { .cols, .cols.left { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: var(--label-track); }
.section-title { font-size: 26px; }
.section { margin-top: 48px; }
.section > .between { margin-bottom: 16px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel.wash { background: var(--accent-wash); border-color: var(--accent-line); }
.panel.dark { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.panel.dark .muted { color: color-mix(in srgb, #fff 72%, var(--accent-ink)); }
.panel.dark a { color: #fff; }
.panel h3 { font-size: 20px; }

/* ---------- product image placeholder ---------- */
.pk { --t: #E8E3DB; position: relative; flex: 0 0 auto; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 70%, #fff) 0%, var(--t) 100%); }
.pk::before, .pk::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.82); }
.pk::before { bottom: 0; width: 34%; height: 62%; border-radius: 14% 14% 6% 6% / 10% 10% 4% 4%; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pk::after { bottom: 62%; width: 16%; height: 12%; border-radius: 3px 3px 0 0; background: rgba(29,27,24,.55); }
.pk.jar::before { width: 54%; height: 36%; border-radius: 10% / 16%; }
.pk.jar::after { bottom: 36%; width: 58%; height: 12%; border-radius: 6px 6px 2px 2px; }
.pk.tube::before { width: 30%; height: 70%; border-radius: 6% 6% 40% 40% / 3% 3% 12% 12%; bottom: 0; }
.pk.tube::after { bottom: 70%; width: 20%; height: 9%; border-radius: 2px; }
.pk.dropper::before { width: 30%; height: 46%; border-radius: 12% / 8%; }
.pk.dropper::after { bottom: 46%; width: 9%; height: 26%; border-radius: 40% 40% 2px 2px; }
.pk.pump::after { bottom: 62%; width: 10%; height: 18%; border-radius: 2px; box-shadow: 8px -14px 0 -2px rgba(29,27,24,.55); }
.pk.s { width: 52px; height: 52px; border-radius: 10px; }
.pk.m { width: 72px; height: 72px; }
.pk.l { width: 100%; aspect-ratio: 4 / 3; }
.pk.xl { width: 100%; aspect-ratio: 5 / 4; max-height: 440px; border-radius: var(--r-lg); }
.pk.xl::before { width: 24%; height: 58%; }
.pk.xl.jar::before { width: 40%; height: 34%; }
.pk.xl.jar::after { width: 44%; }
.chip .tone-dot { margin-right: 6px; }

/* ---------- score ---------- */
.score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.score.worked { background: var(--good-wash); color: var(--good); }
.score.meh { background: var(--meh-wash); color: var(--meh); }
.score.didnt { background: var(--bad-wash); color: var(--bad); }
.score.plain { background: var(--sunk); color: var(--ink); }
.v-worked { color: var(--good); } .v-meh { color: var(--meh); } .v-didnt { color: var(--bad); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- ranked list rows ---------- */
.ranklist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
a.rrow:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: inherit; }
.rrow .n { font-family: var(--display); font-size: 22px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rrow .t { font-weight: 600; font-size: 16px; color: var(--ink); }
.rrow .b { color: var(--ink-3); font-size: 13px; }
.rrow .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rrow .right { display: flex; align-items: center; gap: 20px; text-align: right; }
.stat b { display: block; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); }
.price s { color: var(--ink-3); font-weight: 400; font-size: 13px; }
@media (max-width: 640px) {
  .rrow { grid-template-columns: 24px auto minmax(0, 1fr); gap: 12px; }
  .rrow .right { grid-column: 3; justify-content: flex-start; text-align: left; gap: 16px; }
  .rrow .n { font-size: 18px; }
}

/* ---------- cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.pcard:hover { color: inherit; }
.pcard:hover .pk { filter: brightness(.97); }
.pcard .t { font-weight: 600; }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters .grp { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1000px) {
  .filters-wrap summary { list-style: none; }
  .filters-wrap:not([open]) .filters { display: none; }
}
@media (min-width: 1001px) { .filters-wrap summary { display: none; } }

/* ---------- teaser ---------- */
.teaser { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: var(--accent-wash); }
.teaser .blurred { filter: blur(7px); opacity: .7; pointer-events: none; user-select: none; padding: 16px 20px; }
.teaser .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 24px 28px; background: linear-gradient(90deg, var(--accent-wash) 35%, color-mix(in srgb, var(--accent-wash) 30%, transparent)); }
.teaser h3 { font-size: 26px; max-width: 18ch; }
.teaser p { max-width: 44ch; color: var(--ink-2); }
@media (max-width: 640px) { .teaser .over { position: static; background: transparent; padding: 20px; } .teaser .blurred { display: none; } }

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post:first-child { padding-top: 4px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--ink); background: var(--sunk); flex: 0 0 auto; }
.av.s { width: 28px; height: 28px; font-size: 12px; }
.av-stack { display: flex; }
.av-stack .av { border: 2px solid var(--paper); margin-left: -8px; }
.av-stack .av:first-child { margin-left: 0; }
.quote { color: var(--ink-2); font-size: 15px; }

/* ---------- sale strip ---------- */
.sales { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.sale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.sale .actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.off { color: var(--bad); font-weight: 650; }

/* ---------- steps (add flow) ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; flex-wrap: wrap; }
.steps li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; }
.steps li + li::before { content: ""; width: 20px; height: 1px; background: var(--line-2); }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--ink-2); }
.steps ol { display: contents; }
.flow { max-width: 680px; }
.choice { display: grid; gap: 10px; }
.choice button, .choice label.opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); width: 100%; cursor: pointer; }
.choice button:hover, .choice label.opt:hover { border-color: var(--ink-2); }
.choice [aria-pressed="true"], .choice label.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-wash); }
.choice b { display: block; font-size: 16px; }
.choice input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.verdicts button { min-height: 96px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 17px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.verdicts button span { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.verdicts .worked:hover, .verdicts .worked[aria-pressed="true"] { border-color: var(--good); background: var(--good-wash); color: var(--good); }
.verdicts .meh:hover, .verdicts .meh[aria-pressed="true"] { border-color: var(--meh); background: var(--meh-wash); color: var(--meh); }
.verdicts .didnt:hover, .verdicts .didnt[aria-pressed="true"] { border-color: var(--bad); background: var(--bad-wash); color: var(--bad); }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.compare .side { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.compare .side .pk { width: 140px; height: 140px; }
.compare .vs { font-family: var(--display); font-style: italic; color: var(--ink-3); font-size: 20px; }
@media (max-width: 520px) { .compare .side .pk { width: 100px; height: 100px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.input, textarea.input, select.input { min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); width: 100%; }
.input:focus { outline: 0; border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--accent-wash); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.mic { position: relative; }
.mic .micbtn { position: absolute; right: 8px; bottom: 8px; }
.micbtn.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.micbtn.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- ingredient list ---------- */
.ings { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ing { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ing .nm { font-family: var(--mono); font-size: 13.5px; }
[data-type="clinical"] .ing .nm { font-size: 13px; }
.ing .fl { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-good { background: var(--good-wash); color: var(--good); }
.fl-info { background: var(--sunk); color: var(--ink-2); }
.fl-caution { background: var(--meh-wash); color: var(--meh); }
.fl-bad { background: var(--bad-wash); color: var(--bad); }

/* ---------- bars ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bar .fill { height: 100%; background: var(--ink-2); border-radius: 99px; }
.bar.me .fill { background: var(--accent); }
.bar.me .lb { font-weight: 650; }
.bar .v { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- video tiles ---------- */
.videos { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.vtile { border: 0; padding: 0; background: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.vtile .poster { position: relative; aspect-ratio: 9 / 14; border-radius: var(--r); overflow: hidden; background: var(--t, #C99A74); }
.vtile .poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, rgba(255,255,255,.55), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.0) 50%, rgba(0,0,0,.45)); }
.vtile .play { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 600; }
.vtile .play i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.vtile .t { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ---------- modal & toast ---------- */
dialog.modal { max-height: calc(100vh - 32px); overflow: auto; border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(29,27,24,.25); }
dialog.modal::backdrop { background: rgba(29,27,24,.4); }
.modal-in { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-in h2 { font-size: 26px; }
.modal-close { position: absolute; right: 12px; top: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; z-index: 100; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.dropzone { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }

/* ---------- swipe deck ---------- */
.deck { position: relative; height: 420px; max-width: 360px; margin: 0 auto; }
.swipe { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; user-select: none; box-shadow: 0 10px 30px rgba(29,27,24,.08); transition: transform .25s, opacity .25s; }
.swipe.behind { transform: scale(.95) translateY(12px); opacity: .6; }
.swipe .pk { flex: 1; width: 100%; }
.swipe .stamp { position: absolute; top: 24px; padding: 4px 10px; border: 2px solid; border-radius: 6px; font-weight: 700; font-size: 18px; opacity: 0; transform: rotate(-8deg); }
.swipe .stamp.love { left: 24px; color: var(--good); }
.swipe .stamp.hate { right: 24px; color: var(--bad); transform: rotate(8deg); }
.deck-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 16px auto 0; }
.progress { height: 4px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* ---------- partner event ---------- */
.event { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; }
.event .copy { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.event .copy h3 { font-size: 30px; }
.event .art { background: var(--accent-wash); padding: 20px; display: flex; gap: 12px; align-items: flex-end; justify-content: center; }
.event .art .pk { width: 42%; aspect-ratio: 3 / 4; }
@media (max-width: 720px) { .event { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot a, .foot button { color: var(--ink-2); }
.foot button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-size: 13px; }

/* ---------- product hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px; } .hero .pk.xl { aspect-ratio: 4 / 3; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.kpis > div { padding: 14px 16px; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 13px; color: var(--ink-3); }
.match { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; }
.match .big { font-family: var(--display); font-weight: var(--display-weight); font-size: 52px; line-height: 1; color: var(--accent-ink); }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; grid-column: 1 / -1; }
.reasons li { display: flex; gap: 8px; align-items: baseline; }
.reasons li::before { content: "+"; font-weight: 700; color: var(--good); width: 12px; flex: 0 0 auto; }
.reasons li.neg::before { content: "–"; color: var(--bad); }
.stores { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.store { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px 10px 16px; }
.store + .store { border-top: 1px solid var(--line); }
.blurwrap { position: relative; }
.blurwrap .blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.blurwrap .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 16px; }
.scan-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r-sm); background: var(--good-wash); color: var(--good); font-size: 14px; margin-bottom: 20px; }

/* ---------- concept page ---------- */
.concept h1 { font-size: clamp(44px, 8vw, 88px); line-height: .98; }
.concept .big-lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 56ch; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fgrid > div { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.fgrid .k { font-family: var(--display); font-size: 15px; color: var(--ink-3); }
.fgrid h3 { font-size: 21px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.later { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--ink-3); color: var(--ink-2); }

/* ---------- type specimen ---------- */
.specimen { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.specimen .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.specimen .body { padding: 24px 20px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .specimen .body { grid-template-columns: 1fr; } }
.specimen.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.swatches { display: flex; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -6px; box-shadow: 0 0 0 1px var(--line); }
.swatches i:first-child { margin-left: 0; }
.palette-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.palette-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.prompt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: 14px; text-align: left; }
.prompt .ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: 0 0 auto; margin-top: 1px; display: grid; place-items: center; }
.prompt.hit { border-color: var(--good); background: var(--good-wash); }
.prompt.hit .ck { background: var(--good); border-color: var(--good); }
.prompt.hit .ck::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.prompt.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.prompt small { display: block; color: var(--ink-3); font-size: 12px; }

/* Picked for you: a grid on wide screens, one swipeable row on phones */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .picks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; } }

/* Phone vs laptop */
@media (max-width: 760px), (pointer: coarse) { .desk-only { display: none !important; } }
@media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) { .phone-only { display: none !important; } }
.photo-search { border: 0; background: none; color: var(--ink-3); padding: 4px; margin-right: -6px; border-radius: 6px; display: grid; place-items: center; }
.photo-search:hover { color: var(--accent); background: var(--sunk); }

/* Explanations */
.tip { position: fixed; z-index: 200; max-width: 280px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-ink); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 8px 24px rgba(29,27,24,.22); pointer-events: none; animation: tipin .12s ease-out; }
.tip b { display: block; font-weight: 650; margin-bottom: 2px; }
@keyframes tipin { from { opacity: 0; transform: translateY(-2px); } }
[data-tip] { -webkit-touch-callout: none; }
.subchips { margin-top: 8px; padding: 10px 12px; border-left: 2px solid var(--accent-line); display: flex; flex-direction: column; gap: 6px; }
.hint { font-size: 12px; color: var(--ink-3); }
details[data-stores] summary { list-style: none; }
details[data-stores] summary::-webkit-details-marker { display: none; }
details[data-stores] .caret { color: var(--ink-3); transition: transform .15s; }
details[data-stores][open] .caret { transform: rotate(180deg); }

/* ---------- header: messages ---------- */
.msg-link { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; flex: 0 0 auto; }
.msg-link:hover, .msg-link[aria-current="page"] { background: var(--sunk); color: var(--ink); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 650; display: inline-grid; place-items: center; line-height: 1; }
.msg-link .badge { position: absolute; top: 2px; right: 0; }

/* ---------- tabs (My shelf) ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -8px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; min-height: 44px; font-weight: 550; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--ink); }

/* ---------- routine ---------- */
.seg button svg { vertical-align: -3px; }
.step-tools { gap: 2px !important; }
.step-tools select.input { min-height: 36px; width: auto; padding: 4px 8px; font-size: 13px; margin-right: 6px; }
.icon-only { width: 36px; padding: 0 !important; }
.btn[disabled] { opacity: .35; cursor: default; }
.check { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.panel h3 + .check { border-top: 0; padding-top: 4px; }
.check .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--good); }
.check.meh .dot { background: var(--meh); }
.check.bad .dot { background: var(--bad); }
.when-head { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; color: var(--accent-ink); }
.when-head:first-child { margin-top: 0; }
.when-head h2 { color: var(--ink); }
@media (max-width: 640px) { .rrow.step .right { flex-wrap: wrap; } }

/* ---------- lists ---------- */
.lists-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.list-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; text-align: left; font: inherit; }
.list-card:hover { border-color: var(--line-2); color: inherit; transform: translateY(-1px); }
.list-card h3 { font-size: 20px; }
.list-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.list-art .pk.s { width: 100%; height: auto; aspect-ratio: 1; }
.list-art.mini { display: flex; gap: 4px; flex: 0 0 auto; }
.list-art.mini .pk.s { width: 40px; height: 40px; }
.list-match { color: var(--accent-ink); font-weight: 650; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.new-card { border-style: dashed; background: transparent; align-items: center; justify-content: center; min-height: 200px; color: var(--ink-2); gap: 6px; cursor: pointer; }
.new-card:hover { background: var(--surface); }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 20px; }
.list-head h1 { font-size: clamp(32px, 5vw, 46px); }
.list-head .lede { color: var(--ink-2); font-size: 16px; }
.list-stats { display: flex; gap: 28px; }
.list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.note-q { margin-top: 8px; font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--accent-line); padding-left: 10px; }

/* ---------- messages ---------- */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.inbox-side { position: sticky; top: 96px; }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--accent-line); background: var(--accent-wash); border-radius: var(--r); }
.threads { display: flex; flex-direction: column; }
.thread-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); text-decoration: none; color: inherit; }
.thread-row:hover { background: var(--sunk); color: inherit; }
.thread-row[aria-current="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.thread-row .between { gap: 8px; }
.one-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; height: min(640px, calc(100vh - 200px)); min-height: 420px; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.day-sep { align-self: center; font-size: 12px; color: var(--ink-3); margin: 8px 0; }
.bubble-row { display: flex; }
.bubble-row.me { justify-content: flex-end; }
.bubble { max-width: min(78%, 460px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--sunk); color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.bubble-row.me .bubble { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-prod { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.msg-prod span { display: flex; flex-direction: column; }
.msg-prod:hover { color: var(--ink); }
.pending-note { margin: 0 16px 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--meh-wash); color: var(--meh); }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.composer select.input { min-height: 36px; padding: 4px 8px; font-size: 13px; width: auto; align-self: flex-start; }
.composer textarea.input { min-height: 44px; height: 44px; resize: none; }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pick-row:hover { border-color: var(--line-2); }
.phone-back { display: none; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-side { position: static; }
  .inbox.has-thread .inbox-side { display: none; }
  .inbox:not(.has-thread) .inbox-main { display: none; }
  .phone-back { display: inline-flex; }
  .thread { height: calc(100vh - 180px); }
}

/* header with five nav items + messages: keep it on one row on laptops */
@media (min-width: 1001px) {
  .topbar-in { gap: 12px 18px; }
  .logo span { display: none; }
  .mainnav a { padding: 0 10px; }
  .search { width: 210px; }
}
@media (max-width: 1110px) and (min-width: 1001px) {
  .mainnav { order: 3; flex: 1 0 100%; margin: 0 -12px; }
  .top-actions { margin-left: auto; }
  .search { width: 260px; }
}
@media (max-width: 640px) {
  .mainnav { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .mainnav a { padding: 0 9px; font-size: 14px; }
}


/* ---------- profile pictures ---------- */
.av.pfp { padding: 0; overflow: hidden; background: var(--sunk); }
.av.pfp svg, .av.pfp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-link { overflow: hidden; }
.me-head { display: flex; align-items: center; gap: 18px; }
.me-photo { position: relative; cursor: pointer; flex: 0 0 auto; border-radius: 50%; }
.me-photo .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.me-photo-edit { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--paper); }
.me-photo-edit svg { width: 15px; height: 15px; }
.me-photo:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .me-head .av { width: 56px !important; height: 56px !important; } }

/* ---------- search by problem ---------- */
.problems { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.problems .label { margin-right: 6px; }
@media (max-width: 640px) { .problems { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); } .problems .label { white-space: nowrap; } }

/* ---------- about: our story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px 56px; padding: 36px; border-radius: var(--r-lg); background: var(--accent-wash); border: 1px solid var(--accent-line); }
.story h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 8px; }
.founders { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.founder { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.founder .av { background: var(--surface); color: var(--accent-ink); font-family: var(--display); font-size: 18px; width: 44px; height: 44px; }
.story-body p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.story-body p b { color: var(--ink); font-weight: 600; }
.story-body .sign { font-family: var(--display); font-size: 20px; color: var(--accent-ink); margin-top: 6px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- about: founder photo slots ---------- */
.story { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
.founder-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.founder-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--sunk)); border: 1.5px dashed var(--accent-line); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; gap: 6px; }
.photo-slot svg { position: absolute; inset: 14% 18% auto; width: 64%; fill: var(--accent-line); opacity: .7; }
.slot-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--surface); border-radius: 999px; padding: 3px 9px; }
.slot-tag svg { position: static; width: 14px; height: 14px; opacity: 1; fill: none; }
.slot-note { position: relative; font-size: 12px; line-height: 1.4; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 85%, transparent); border-radius: 8px; padding: 6px 8px; }
.founder-card figcaption { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); }
.founder-card figcaption b { font-size: 16px; color: var(--ink); }
.founder-card .holy { margin-top: 2px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

.specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.specs li { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }

/* story: both founders on the left, text on the right */
.story.duo { grid-template-columns: 260px minmax(0, 1fr); gap: 28px 48px; }
.story.duo .story-head { grid-column: 1 / -1; }
.founder-col { display: flex; flex-direction: column; gap: 22px; }
.story.duo .founder-card figcaption b { font-size: 18px; font-family: var(--display); font-weight: var(--display-weight); }
.story.duo .story-body { align-self: start; }
@media (max-width: 760px) {
  .story.duo { grid-template-columns: 1fr; }
  .founder-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .story.duo .slot-note { display: none; }
}

.grails { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.grails li { font-size: 12px; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 9px; }

/* ---------- person profile ---------- */
.person-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; margin-bottom: 32px; }
.person-head h1 { font-size: clamp(32px, 5vw, 46px); }
.person-head .list-stats { margin-top: 6px; }
.person-actions { align-self: end; }
.cat-group { margin-bottom: 28px; }
.cat-group h3 { font-size: 20px; margin-bottom: 8px; }
.plink { color: inherit; text-decoration: none; }
.plink:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .person-head { grid-template-columns: auto minmax(0, 1fr); } .person-actions { grid-column: 1 / -1; } .person-head .av { width: 64px !important; height: 64px !important; } }

/* MVP: phone search on Rankings without the Scan button next to it */
.page-head .phone-only .search { flex: none; height: 48px; }

/* ---------- your profile card ---------- */
.pf-rows { margin: 0; display: grid; gap: 0; }
.pf-rows > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pf-rows dt { color: var(--ink-3); }
.pf-rows dd { margin: 0; color: var(--ink); }

/* ---------- account menu ---------- */
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.me-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(20, 30, 28, .12); padding: 6px; display: flex; flex-direction: column; }
.me-menu .menu-head { display: flex; flex-direction: column; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-menu .menu a, .me-menu .menu button { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.me-menu .menu a:hover, .me-menu .menu button:hover, .me-menu .menu a[aria-current="page"] { background: var(--sunk); }
.me-menu .menu button { color: var(--ink-2); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* =====================================================================
   Release 1 redesign: Denim palette, Archivo Black + Schibsted Grotesk,
   a real type scale, centred-logo navigation, needs-first home,
   the shelf tower, share-first lists.
   ===================================================================== */
[data-palette="denim"] {
  --paper: #FAF7F0; --surface: #FFFFFF; --sunk: #F2EDE3; --line: #E9E2D6; --line-2: #D5CCBD;
  --ink: #15172B; --ink-2: #383B52; --ink-3: #5F6278;
  --accent: #4A69C4; --accent-ink: #33509E; --accent-wash: #EAEFFB; --accent-line: #CAD5F2;
  --denim: #5B7BD5; --butter: #FFE38A; --butter-ink: #6B5310; --butter-wash: #FFF5D1; --blush: #F6DCD6; --blush-ink: #8A4A3D;
  --good: #2F7A55; --good-wash: #E3F1E8; --meh: #8A5A00; --meh-wash: #FBF0D9; --bad: #B03A2E; --bad-wash: #F9E5E1;
}
html[data-type="fresh"] {
  --display: "Schibsted Grotesk", system-ui, sans-serif; --body: "Schibsted Grotesk", system-ui, sans-serif;
  --brand: "Archivo Black", "Schibsted Grotesk", system-ui, sans-serif;
  --display-weight: 750; --display-track: -0.02em;
}
:root { --brand: var(--display); --tabbar-h: 0px; }

/* ---------- type scale: real contrast, nothing under 13px ---------- */
body { font-size: 16px; line-height: 1.55; }
.small { font-size: 14px; }
.label { font-size: 14px; }
.hint, .stat span, .tag, .later, .grails li, .slot-tag, .slot-note, .day-sep, .prompt small, .vtile .play, .av.s, .foot, .foot button { font-size: 13px; }
.badge { font-size: 12px; }
h1 { font-family: var(--brand); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.page-head h1, .list-head h1, .person-head h1 { font-size: clamp(32px, 4.4vw, 42px); }
.page-head .lede, .list-head .lede { font-size: 17px; color: var(--ink-2); }
.section-title { font-size: clamp(22px, 2.4vw, 24px); font-weight: 750; }
.panel h3, .list-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.modal-in h2 { font-size: 24px; }
.rrow .t { font-size: 17px; font-weight: 650; }
.rrow .b { font-size: 14px; }
.rrow .n { font-family: var(--brand); font-size: 20px; color: var(--ink-3); }
.quote { font-size: 16px; }
.btn { font-weight: 650; border-radius: 999px; }
.btn-sm { font-size: 15px; }
.chip { font-size: 15px; min-height: 38px; padding: 0 14px; }
.seg { border-radius: 999px; }
.seg button { border-radius: 999px; font-size: 15px; font-weight: 600; }
.panel { border-radius: 20px; }
a { text-decoration-thickness: 1.5px; }

/* ---------- header: logo in the middle, two tabs each side ---------- */
.topbar { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); }
.topbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 72px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; }
.nav-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-side.right { justify-content: flex-end; }
.nav-side a.navlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 999px; white-space: nowrap; }
.nav-side a.navlink:hover { background: var(--sunk); color: var(--ink); }
.nav-side a.navlink[aria-current="page"] { color: var(--ink); background: var(--accent-wash); }
.logo { justify-self: center; display: inline-flex; align-items: center; gap: 0; text-decoration: none; color: var(--ink); }
.logo b { font-family: var(--brand); font-weight: 400; font-size: 25px; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.logo b i { font-style: normal; color: var(--accent); }
.logo span { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.btn-scan-top { min-height: 44px; padding: 0 18px; }
.mainnav, .top-actions .search { display: none; }

/* ---------- phone: logo up top, tab bar at the bottom ---------- */
.tabbar { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1000px) {
  :root { --tabbar-h: 72px; }
  .topbar-in { grid-template-columns: 44px 1fr 44px; min-height: 60px; }
  .nav-side .navlink, .nav-side .btn-scan-top, .nav-side .nav-hide-phone { display: none !important; }
  .nav-side.left { visibility: hidden; }
  .nav-actions { margin-left: 0; }
  .logo b { font-size: 22px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(21, 23, 43, .05); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 0 2px; color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 600; background: none; border: 0; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
  .tabbar .tab-scan { color: var(--ink); }
  .tabbar .tab-scan i { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(74, 105, 196, .35), 0 0 0 4px var(--surface); }
  .tabbar .tab-scan i svg { width: 24px; height: 24px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(var(--tabbar-h) + 16px); }
}

/* ---------- home: scan or search first, then needs ---------- */
.home-hero { max-width: 760px; margin: 12px auto 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1; }
.bigsearch { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 8px 28px rgba(21, 23, 43, .06); color: var(--ink-3); }
.bigsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash), 0 8px 28px rgba(21, 23, 43, .06); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--ink); }
.bigsearch input::placeholder { color: var(--ink-3); }
.bigsearch .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.tagline { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 4px 2px;
  background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%); }
.tagline svg { transition: transform .15s; }
.tagline:hover { color: var(--ink); }
.tagline:hover svg { transform: translateX(3px); }
.needs { margin-top: 56px; }
.needs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.needs-group { margin-top: 22px; }
.needs-group > .label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.need { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 120px; padding: 14px 16px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.need:hover { border-color: var(--accent-line); color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21, 23, 43, .06); }
.need b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.need span.sub { font-size: 14px; color: var(--ink-3); }
.need .mini-art { display: flex; flex: 0 0 auto; order: -1; }
.need .mini-art .pk.s { width: 34px; height: 34px; border-radius: 9px; margin-left: -10px; box-shadow: 0 0 0 2px var(--surface); }
.need .mini-art .pk.s:first-child { margin-left: 0; }
.need.skin { background: color-mix(in srgb, var(--accent-wash) 60%, var(--surface)); }
.need.hair { background: color-mix(in srgb, var(--blush) 40%, var(--surface)); }
.need.body { background: color-mix(in srgb, var(--butter-wash) 75%, var(--surface)); }
.bytype { margin-top: 28px; }
.bytype > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--ink-2); }
.bytype > summary::-webkit-details-marker { display: none; }
.bytype > summary .caret { transition: transform .15s; color: var(--ink-3); }
.bytype[open] > summary .caret { transform: rotate(180deg); }
.home-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; } }
.mini-feed { display: flex; flex-direction: column; }
.mini-post { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.mini-post:hover { color: inherit; }
.mini-post:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.mini-post .t { font-weight: 650; }
.mini-post .q { color: var(--ink-2); font-size: 15px; }
.panel.butter { background: var(--butter-wash); border-color: color-mix(in srgb, var(--butter) 70%, var(--line)); }
.panel.blush { background: color-mix(in srgb, var(--blush) 45%, var(--surface)); border-color: var(--blush); }
@media (max-width: 760px) {
  .home-hero { margin-top: 4px; gap: 14px; }
  .bigsearch { min-height: 58px; padding-left: 16px; }
  .bigsearch input { font-size: 16px; }
  .bigsearch .btn .lbl { display: none; }
  .bigsearch .btn { width: 46px; padding: 0; }
  .needs { margin-top: 40px; }
  .need-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .need { min-height: 112px; }
}

/* ---------- rankings tweaks ---------- */
.rank-head-need { display: inline-flex; align-items: center; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 14px; color: var(--ink-2); }
.back-link svg { transform: rotate(180deg); }

/* ---------- the shelf tower ---------- */
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.shelf-head .who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.shelf-head h1 { font-size: clamp(32px, 4.4vw, 42px); }
.shelf-head .lede { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.tower-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.towers { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 250px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1100px) { .towers { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } .towers .floor-detail { grid-column: 1 / -1; } }
.tower { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.tower .roof { position: relative; margin: 0 -10px; padding: 16px 16px 14px; text-align: center; background: var(--accent); color: #fff; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.tower .roof b { font-family: var(--brand); font-weight: 400; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; display: block; }
.tower .roof span { font-size: 13px; opacity: .9; }
.tower.small .roof { background: var(--blush); color: var(--blush-ink); }
.tower.small .roof b { font-size: 16px; }
.tower .body { border: 2px solid var(--ink); border-top: 0; background: var(--line-2); display: flex; flex-direction: column; gap: 2px; padding: 2px; }
.floor { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; min-height: 86px; width: 100%; padding: 0; border: 0; text-align: left; font: inherit; color: var(--ink); background: var(--fl, var(--surface)); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.floor:hover, .floor[aria-expanded="true"], .floor.on { box-shadow: inset 0 0 0 3px var(--accent); z-index: 1; }
.floor:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.floor .plaque { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 10px 10px 12px; border-right: 2px dashed color-mix(in srgb, var(--ink) 14%, transparent); }
.floor .plaque b { font-size: 15px; font-weight: 750; line-height: 1.15; }
.floor .plaque span { font-size: 13px; color: var(--ink-3); }
.floor .room { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 8px; overflow: hidden; }
.floor .room::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.floor .room .pk.s { width: 40px; height: 52px; border-radius: 8px; margin-bottom: 5px; position: relative; z-index: 1; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.floor .room .more { position: relative; z-index: 1; margin-bottom: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--surface); border-radius: 999px; padding: 2px 8px; }
.floor .room .empty { align-self: center; margin: 0 auto 8px; font-size: 14px; color: var(--ink-3); }
.floor.f-grail { --fl: var(--butter); }
.floor.f-grail .plaque b::before { content: "★ "; color: var(--butter-ink); }
.floor.f-love { --fl: color-mix(in srgb, var(--blush) 75%, var(--surface)); }
.floor.f-fine { --fl: var(--sunk); }
.floor.f-didnt { --fl: var(--bad-wash); }
.floor.f-skin { --fl: var(--accent-wash); }
.floor.f-hair { --fl: color-mix(in srgb, var(--blush) 75%, var(--surface)); }
.floor.f-body { --fl: var(--butter-wash); }
.floor.f-makeup { --fl: #EFE9F7; }
.tower.small .floor { grid-template-columns: 96px minmax(0, 1fr); min-height: 70px; }
.tower.small .floor .plaque b { font-size: 14px; }
.tower.small .floor .room .pk.s { width: 30px; height: 40px; }
.tower .ground { height: 16px; margin: 0 -18px; background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, var(--line) 14px 28px); border-radius: 0 0 8px 8px; }
.tower .lobby { display: flex; justify-content: center; align-items: flex-end; height: 34px; border: 2px solid var(--ink); border-top: 0; background: var(--surface); }
.tower .lobby i { width: 36px; height: 26px; border-radius: 18px 18px 0 0; background: var(--accent-wash); border: 2px solid var(--ink); border-bottom: 0; }
.floor-items { display: none; }
.floor-detail { position: sticky; top: 96px; }
.floor-detail .panel { padding: 18px 18px 8px; }
.floor-detail .fd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.floor-detail h2 { font-size: 22px; }
.fd-row { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.fd-row:hover { color: inherit; }
.fd-row:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.fd-row .n { font-family: var(--brand); color: var(--ink-3); text-align: center; }
.fd-row .t { font-weight: 650; font-size: 16px; }
.fd-row .b { font-size: 14px; color: var(--ink-3); }
.fd-row .note { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.fd-row.want { grid-template-columns: auto minmax(0, 1fr) auto; }
.fd-empty { padding: 16px 0 12px; border-top: 1px solid var(--line); color: var(--ink-3); }
.fd-hint { font-size: 14px; color: var(--ink-3); padding: 8px 0 12px; }
@media (max-width: 760px) {
  .towers { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .floor-detail { display: none; }
  .floor-items { display: none; background: var(--surface); border: 2px solid var(--ink); border-top: 0; border-bottom: 0; margin: -2px 0 0; padding: 0 12px 4px; }
  .floor-items.open { display: block; }
  .floor-items .fd-row:first-child { border-top: 0; }
  .shelf-head .btn-lg { width: 100%; }
}
.shelf-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 40px; }

/* ---------- friends ---------- */
.overlap { font-size: 14px; font-weight: 650; color: var(--accent-ink); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.person-row:hover { color: inherit; }
.person-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.person-row .sub { font-size: 14px; color: var(--ink-3); }

/* ---------- lists ---------- */
.list-tabs { margin-bottom: 24px; }
.list-tabs button .count { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.list-card .count-line { font-size: 14px; color: var(--ink-3); }
.list-card .tag.gift { background: var(--butter); color: var(--butter-ink); }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: 20px; border: 1.5px dashed var(--line-2); max-width: 620px; }
.empty-state b { font-size: 18px; }

/* ---------- one list: share is the hero ---------- */
.lp { max-width: 860px; margin: 0 auto; }
.lp-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.lp-head h1 { font-size: clamp(32px, 5vw, 46px); }
.lp-head .lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.lp-by { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.vis-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.vis-line select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; padding: 6px 22px 6px 4px; border-radius: 8px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F6278' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.vis-line select:hover { background-color: var(--sunk); }
.lp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 28px; }
.btn-share { min-height: 56px; padding: 0 30px; font-size: 18px; gap: 10px; box-shadow: 0 8px 22px rgba(74, 105, 196, .28); }
.btn-share svg { width: 20px; height: 20px; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent; font-size: 22px; line-height: 1; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary:hover { background: var(--surface); color: var(--ink); }
.more-menu .menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(21, 23, 43, .14); padding: 6px; display: flex; flex-direction: column; }
.more-menu .menu button, .more-menu .menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); text-decoration: none; text-align: left; font: inherit; }
.more-menu .menu button:hover, .more-menu .menu a:hover { background: var(--sunk); }
.more-menu .menu .danger { color: var(--bad); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.gift-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--butter-wash); border: 1px solid color-mix(in srgb, var(--butter) 70%, var(--line)); margin-bottom: 20px; font-size: 15px; }
.gift-banner b { display: block; }
.gift-banner .ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: var(--butter-ink); }
.owner-items .rrow { grid-template-columns: 28px auto minmax(0, 1fr) auto; }
.owner-items .variant { display: inline-flex; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--sunk); border-radius: 6px; padding: 2px 8px; }
.gift-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gift { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.gift .pk.l { border-radius: 0; aspect-ratio: 5 / 4; }
.gift .gb { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.gift .nm { font-size: 19px; font-weight: 700; line-height: 1.25; text-decoration: none; color: var(--ink); }
.gift .nm:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.gift .br { font-size: 15px; color: var(--ink-3); }
.gift .vr { align-self: flex-start; font-size: 14px; font-weight: 650; color: var(--ink); background: var(--accent-wash); border-radius: 8px; padding: 4px 10px; }
.gift .note-q { margin-top: 2px; font-size: 15px; }
.gift .buy { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.gift .price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gift .price-line b { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.gift .price-line span { font-size: 15px; color: var(--ink-2); }
.gift .btn-buy { width: 100%; min-height: 50px; font-size: 16px; }
.gift .bought-btn { width: 100%; }
.gift.is-bought { opacity: .72; }
.gift.is-bought .pk { filter: grayscale(.5); }
.gift .bought-tag { align-self: flex-start; background: var(--good-wash); color: var(--good); font-weight: 700; font-size: 14px; border-radius: 8px; padding: 4px 10px; }
.save-cta { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .lp-actions .btn-share { flex: 1 1 100%; }
  .gift-items { grid-template-columns: 1fr; }
  .gift { flex-direction: row; border-radius: 18px; }
  .gift .pk.l { width: 120px; aspect-ratio: auto; flex: 0 0 120px; }
  .gift .nm { font-size: 17px; }
  .gift .gb { padding: 14px; }
}

/* ---------- share sheet (laptops; phones use the system sheet) ---------- */
.share-url { display: flex; gap: 8px; }
.share-url input { flex: 1; min-width: 0; }
.share-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; }
.share-app:hover { border-color: var(--accent-line); background: var(--accent-wash); color: var(--ink); }
.share-app i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-style: normal; }
.share-app i svg { width: 22px; height: 22px; }
.share-app .a-msg { background: #34C759; }
.share-app .a-wa { background: #25D366; }
.share-app .a-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.share-app .a-mail { background: var(--accent); }
.share-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.share-preview .list-art.mini .pk.s { width: 36px; height: 36px; }
@media (max-width: 420px) { .share-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- profile: Monk skin tone scale ---------- */
.monk { display: flex; flex-wrap: wrap; gap: 8px; }
.monk button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; background: var(--c); position: relative; }
.monk button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent); }
.monk button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 15px; border: solid var(--k, #fff); border-width: 0 3px 3px 0; transform: translate(-50%, -62%) rotate(45deg); }
.monk-ends { display: flex; justify-content: space-between; max-width: 520px; font-size: 13px; color: var(--ink-3); }
.panel h3 + .person-row { border-top: 0; }
.toast.undo { display: flex; align-items: center; gap: 16px; pointer-events: auto; }
.toast.undo button { background: none; border: 0; color: var(--butter); font-weight: 700; padding: 4px 2px; min-height: 32px; }
html[data-type="fresh"] .stat b, html[data-type="fresh"] .score, html[data-type="fresh"] .price-line b, html[data-type="fresh"] .kpis b, html[data-type="fresh"] .num, html[data-type="fresh"] .rrow .n { font-variant-numeric: normal; }

/* ---------- v4.1: logo on the left, cool white background ---------- */
[data-palette="denim"] {
  --paper: #F6F7FB; --surface: #FFFFFF; --sunk: #ECEEF5; --line: #E3E6EF; --line-2: #CDD2E0;
  --ink-3: #5A5F78;
}
.topbar-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; }
.logo { justify-self: start; }
.nav-side.left { justify-content: flex-start; }
.tower .ground { background: repeating-linear-gradient(90deg, var(--line-2) 0 14px, var(--line) 14px 28px); }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1000px) {
  .topbar-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
}

/* ---------- v4.2: real shelves, side by side ---------- */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 760px) { .units { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.unit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.case { --wood: #E2CBA6; --wood-edge: #C9A97A; --wood-dark: #B08D5E;
  background: #FFFFFF; border: 10px solid var(--wood); border-top-width: 12px; border-bottom-width: 0; border-radius: 10px 10px 0 0;
  box-shadow: inset 0 8px 14px -8px rgba(21, 23, 43, .12), 0 10px 24px rgba(21, 23, 43, .06); }
.srow { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; min-height: 128px; padding: 12px 14px 0; border: 0; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.srow:hover { background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }
.srow:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.srow .stag { position: absolute; top: 10px; left: 12px; }
.stag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sunk); color: var(--ink-2); }
.stag i { font-style: normal; font-weight: 600; opacity: .75; }
.f-grail .stag, .stag.f-grail { background: var(--butter); color: var(--butter-ink); }
.f-grail .stag::before, .stag.f-grail::before { content: "★"; }
.f-love .stag, .stag.f-love { background: var(--good-wash); color: var(--good); }
.f-fine .stag, .stag.f-fine { background: var(--sunk); color: var(--ink-2); }
.f-didnt .stag, .stag.f-didnt { background: var(--bad-wash); color: var(--bad); }
.f-skin .stag, .stag.f-skin, .f-hair .stag, .stag.f-hair, .f-body .stag, .stag.f-body, .f-makeup .stag, .stag.f-makeup { background: var(--accent-wash); color: var(--accent-ink); }
.srow .sitems { display: flex; align-items: flex-end; gap: 8px; min-height: 66px; padding: 34px 2px 0; position: relative; z-index: 1; }
.srow .sitems .pk.s { width: 46px; height: 62px; border-radius: 8px 8px 4px 4px; box-shadow: 0 2px 0 rgba(21,23,43,.08); }
.srow .sitems .more { align-self: center; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: 3px 9px; }
.srow .sitems .empty { align-self: center; margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }
.srow .plank { display: block; height: 14px; margin: 0 -14px; background: linear-gradient(180deg, var(--wood) 0 70%, var(--wood-edge) 70% 100%); box-shadow: 0 3px 4px rgba(21, 23, 43, .12); }
.srow:last-child .plank { height: 18px; background: linear-gradient(180deg, var(--wood) 0 60%, var(--wood-dark) 60% 100%); border-radius: 0 0 4px 4px; margin: 0 -24px; }
.unit.want .case { --wood: #D9DFEE; --wood-edge: #BFC7DD; --wood-dark: #A6B0CC; }
.unit.want .srow:hover { background: color-mix(in srgb, var(--accent-wash) 70%, transparent); }
/* old building pieces no longer used */
.towers, .floor-detail, .floor-items { display: none; }

/* the shelf you tapped: 30% dim + a scrollable box with an X */
dialog.modal.shelf-sheet { width: min(620px, calc(100vw - 32px)); max-height: min(78vh, 720px); display: flex; flex-direction: column; overflow: hidden; }
dialog.modal.shelf-sheet[open] { display: flex; }
dialog.modal.shelf-sheet::backdrop { background: rgba(21, 23, 43, .3); }
dialog.modal.shelf-sheet .modal-in { overflow-y: auto; padding: 22px 24px 12px; gap: 4px; }
dialog.modal.shelf-sheet .modal-close { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--sunk); color: var(--ink); z-index: 2; }
dialog.modal.shelf-sheet .modal-close:hover { background: var(--line); }
.sheet-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 48px; margin-bottom: 8px; }
.sheet-head h2 { font-size: 26px; }
.sheet-list .fd-row:first-child { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  dialog.modal.shelf-sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; max-height: 82vh; border-radius: 22px 22px 0 0; }
  dialog.modal.shelf-sheet .modal-in { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
.sheet-head.f-grail h2::before { content: "★ "; color: #C9A227; }
dialog.modal.shelf-sheet .modal-close:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ---------- v4.3: Home does one thing ---------- */
.home-one { min-height: calc(100vh - 72px - 220px); justify-content: center; margin-top: 0; gap: 22px; padding: 24px 0 40px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 720px; }
.quick-label { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quick-chips .chip { display: inline-flex; align-items: center; text-decoration: none; background: var(--surface); color: var(--ink-2); }
.quick-chips .chip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
@media (max-width: 760px) {
  .home-one { min-height: calc(100vh - 60px - var(--tabbar-h) - 120px); padding-top: 12px; }
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .quick-chips .chip { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .home-one { align-items: stretch; text-align: center; }
  .quick { align-items: stretch; max-width: none; min-width: 0; }
  .quick-chips { width: auto; margin: 0 calc(var(--gutter) * -1); }
  .home-one .tagline { align-self: center; }
}
.shelf-below { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.insights > p { font-size: 16px; }
.sheet-head .btn-sm { margin-top: 4px; min-height: 36px; font-size: 14px; }

/* ---------- v4.4: trimmed details ---------- */
.ing .nm, [data-type="clinical"] .ing .nm { font-family: var(--body); font-size: 15px; }
.worked-line { font-size: 17px; color: var(--ink-2); }
.worked-line b { font-size: 22px; color: var(--ink); margin-right: 4px; }
.match .bar { grid-template-columns: 110px minmax(0, 1fr) 44px; }
body[data-page="home"] .btn-scan-top { display: none; }
.srow .sitems { overflow: hidden; }

/* ---------- v4.5: Home is about sharing your shelf ---------- */
.share-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0 24px; }
.sh-copy { display: flex; flex-direction: column; gap: 18px; }
.share-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1; }
.share-hero .lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.sh-cta { flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sh-cta .btn-lg { min-height: 56px; }
.sh-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; counter-reset: s; font-size: 15px; color: var(--ink-2); }
.sh-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; }
.sh-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-weight: 750; font-size: 13px; }
.sh-art { position: relative; padding-bottom: 70px; }
.unit.mini .unit-head b { font-size: 17px; font-weight: 750; }
.unit.mini .srow { cursor: default; min-height: 112px; }
.unit.mini .srow:hover { background: transparent; }
.bubble-card { position: absolute; right: -8px; bottom: 0; width: min(320px, 82%); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bc-msg { background: var(--sunk); color: var(--ink); padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-size: 15px; align-self: flex-start; box-shadow: 0 6px 18px rgba(21,23,43,.08); }
.bc-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(74,105,196,.35); }
.bc-link b { display: block; font-size: 16px; }
.bc-link span { font-size: 13px; opacity: .9; }
.bc-link .list-art.mini .pk.s { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.find-line { max-width: 640px; margin: 36px auto 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.find-line .label { color: var(--ink-3); }
.bigsearch.small-search { min-height: 54px; box-shadow: none; }
.bigsearch.small-search input { font-size: 16px; }
.bigsearch.small-search .btn { min-height: 40px; }
@media (max-width: 860px) {
  .share-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 16px; }
  .sh-art { max-width: 460px; }
}
@media (max-width: 760px) {
  .share-hero h1 { font-size: 40px; }
  .share-hero .lede { font-size: 17px; }
  .sh-cta .btn { flex: 1 1 100%; }
  .bubble-card { right: 0; width: 86%; }
  .find-line { margin-top: 28px; align-items: stretch; }
  .find-line .label { text-align: center; }
}
.bubble-card { z-index: 3; }
@media (max-width: 760px) {
  .sh-art { padding-bottom: 0; }
  .bubble-card { position: relative; right: auto; bottom: auto; width: 92%; margin: -18px 0 0 auto; }
}

/* ---------- v4.6: a real text thread ---------- */
.bubble-card { display: none; }
.chat { position: absolute; right: -12px; bottom: -6px; width: min(360px, 82%); z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(21,23,43,.14); }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--blush-ink); font-size: 13px; font-weight: 750; }
.chat-in { align-self: flex-start; max-width: 85%; background: var(--sunk); color: var(--ink); padding: 9px 13px; border-radius: 18px 18px 18px 5px; font-size: 15px; }
.chat-out { align-self: flex-end; width: 88%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 6px; }
.chat-out .bc-link { border-radius: 18px 18px 5px 18px; box-shadow: none; padding: 10px 12px; }
.chat-txt { background: var(--accent); color: #fff; padding: 9px 13px; border-radius: 18px 18px 5px 18px; font-size: 15px; }
.chat-meta { font-size: 12px; color: var(--ink-3); padding-right: 4px; }
.sh-art { padding-bottom: 120px; }
@media (max-width: 760px) {
  .sh-art { padding-bottom: 0; }
  .chat { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
}

/* ---------- v4.7: loose bubbles, build picker ---------- */
.chat { background: none; border: 0; box-shadow: none; padding: 0; gap: 14px; width: min(320px, 78%); }
.chat-in, .chat-out .bc-link, .chat-txt { box-shadow: 0 8px 24px rgba(21,23,43,.12); }
.chat-in { background: var(--surface); border: 1px solid var(--line); }
.chat-out { gap: 8px; margin-top: 4px; }
@media (max-width: 760px) { .chat { width: 100%; margin-top: 22px; } }
.build-pick .modal-in { display: flex; flex-direction: column; gap: 14px; }
.bp-bar { display: flex; gap: 8px; align-items: stretch; }
.bp-bar .search { flex: 1; min-height: 48px; font-size: 16px; }
.bp-list { display: flex; flex-direction: column; }
.bp-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bp-row:last-child { border-bottom: 0; }
.bp-row:hover { background: var(--sunk); }
.bp-row span { display: flex; flex-direction: column; min-width: 0; }
.bp-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-row small { color: var(--ink-3); font-size: 13px; }
.bp-row em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.bp-row svg { width: 18px; height: 18px; color: var(--accent); }
.bp-none { padding: 8px 4px; }
.bp-bar .search { min-width: 0; }
.bp-bar .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .bp-bar .btn span { display: none; } .bp-bar .btn { width: 48px; padding: 0; justify-content: center; } }
.bp-ideas { gap: 8px; }
.bp-ideas .chip { min-height: 36px; font-size: 14px; }
.lookup-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; background: none; border: 0; padding: 4px 0; color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.lookup-link svg { width: 16px; height: 16px; }
.lookup-link:hover { color: var(--accent); }
@media (max-width: 760px) { .lookup-link { width: 100%; justify-content: center; } }
/* ---------- v4.8: shelves first on products, quieter list cards ---------- */
.on-shelves { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.on-shelves > .between { padding-bottom: 6px; }
.os-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none; }
.os-row:hover b { color: var(--accent); }
.on-shelves-line { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); margin: 0; }
.on-shelves-line svg { width: 18px; height: 18px; }
.lc-name { display: flex; align-items: center; gap: 8px; }
.lc-mark { display: inline-flex; color: var(--ink-3); }
.lc-mark svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .hero .pk.xl { aspect-ratio: 16 / 9; } .hero { gap: 18px; } }
/* ---------- v4.9: friends ---------- */
.ff-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ff-search { width: 100%; min-height: 50px; font-size: 16px; border-radius: 999px; }
.ff-count { margin: -4px 0 8px; }
.ff-feed { display: flex; flex-direction: column; }
.ff-post { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ff-post:first-child { padding-top: 4px; }
.ff-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ff-body p { margin: 0; }
.ff-body a { color: inherit; text-decoration: none; }
.ff-body a:hover b { color: var(--accent); }
.ff-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ff-meta .stag { font-size: 12px; padding: 2px 9px; }
.ff-act { margin-left: auto; }
.ff-pk .pk { width: 56px; height: 56px; }
.f-want .stag, .stag.f-want { background: var(--accent-wash); color: var(--accent-ink); }
.ff-aside { position: sticky; top: 88px; }
.ff-people .sub { font-size: 13px; color: var(--ink-3); }
.ff-gift { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.ff-gift .list-art a { display: inline-flex; }
.ff-strip { display: flex; gap: 16px; overflow-x: auto; margin: 0 -16px 20px; padding: 4px 16px; scrollbar-width: none; }
.ff-strip a, .ff-strip button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; flex: 0 0 auto; }
.ff-strip button i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line); color: var(--ink-3); }
@media (max-width: 760px), (pointer: coarse) {
  .ff-people { display: none; }
  .ff-aside { position: static; }
  .ff-pk .pk { width: 48px; height: 48px; }
}
.ff-search { height: 50px; flex: none; }
/* ---------- v4.10: four verdicts, gold to red ---------- */
.verdicts.v4 { grid-template-columns: repeat(4, 1fr); position: relative; padding-top: 14px; }
.verdicts.v4::before { content: ""; position: absolute; top: 0; left: 6px; right: 6px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #F2C94C 0%, #6FB08A 36%, #D8CBB0 66%, #D9776B 100%); }
.verdicts.v4 button { --c: var(--ink-3); --w: var(--sunk); min-height: 104px; padding: 12px 8px; gap: 4px; border-width: 1.5px; text-align: center; }
.verdicts.v4 button b { font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.verdicts.v4 button b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.verdicts.v4 .v-grail { --c: #E0B12E; --w: #FFF4CF; --t: #7A5A00; }
.verdicts.v4 .v-love { --c: #4E9A6C; --w: #E3F1E8; --t: #2F6B47; }
.verdicts.v4 .v-meh { --c: #B8A27A; --w: #F3EEE3; --t: #6E5E3E; }
.verdicts.v4 .v-didnt { --c: #C9584B; --w: #F8E4E1; --t: #9B3B2E; }
.verdicts.v4 button:hover, .verdicts.v4 button[aria-pressed="true"] { border-color: var(--c); background: var(--w); color: var(--t); }
.verdicts.v4 button:hover span, .verdicts.v4 button[aria-pressed="true"] span { color: var(--t); opacity: .8; }
@media (max-width: 760px) { .verdicts.v4 { grid-template-columns: 1fr 1fr; } }
/* Example text in boxes reads as a hint, not as something already typed. */
.input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .55; font-style: italic; }
/* ---------- v4.11: review fixes ---------- */
.better-match { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; text-decoration: none; color: var(--ink); }
.better-match svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.better-match:hover b { color: var(--accent); }
.nav-search { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-search svg { width: 18px; height: 18px; }
.nav-search:hover, .nav-search[aria-current="page"] { background: var(--accent-wash); color: var(--accent-ink); }
@media (max-width: 1000px) { .nav-search span { display: none; } .nav-search { width: 40px; padding: 0; justify-content: center; } }
.nav-search { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-search svg { width: 18px; height: 18px; }
.nav-search:hover, .nav-search[aria-current="page"] { background: var(--accent-wash); color: var(--accent-ink); }
@media (max-width: 1000px) { .nav-search span { display: none; } .nav-search { width: 40px; padding: 0; justify-content: center; } }
/* ---------- v4.12: lists on the shelf, Share these beside the shelf name ---------- */
.sheet-head { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: center; }
.sheet-head h2 { grid-column: 1; }
.sheet-head p { grid-column: 1 / -1; grid-row: 2; }
.sheet-head .sheet-share { grid-column: 2; grid-row: 1; margin-top: 0; }
.your-lists { margin: 36px 0 8px; }
.your-lists > .between { margin-bottom: 14px; }
.yl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.yl { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.yl:hover { border-color: var(--accent-line); }
.yl b { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .yl-row { grid-template-columns: 1fr 1fr; } }
/* Explore rows on phones: "90% said it worked" on one short line */
@media (max-width: 760px) {
  body[data-page="rankings"] .rrow .right { margin-top: 2px; }
  body[data-page="rankings"] .rrow .right .stat { display: flex; align-items: baseline; gap: 6px; text-align: left; }
  body[data-page="rankings"] .rrow .right .stat b { font-size: 16px; }
  body[data-page="rankings"] .rrow .right .stat span { font-size: 14px; }
}
