@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans.ttf") format("truetype"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Italic.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --tile: #f1eee9;
  --ink: #1d1b19;
  --ink-2: #64605a;
  --ink-3: #9d978f;
  --line: #ebe7e2;
  --line-2: #dcd7d0;
  --accent: #a24d5c;
  --accent-tint: #f6e8ea;
  --good: #2c7553;
  --good-tint: #e4f0e9;
  --maybe: #85621a;
  --maybe-tint: #f5eedb;
  --careful: #ad4f2b;
  --careful-tint: #f9e9e0;
  --skip: #3d5872;
  --skip-tint: #e4ebf2;
  --on-ink: #ffffff;
  --on-good: #ffffff;
  --button: #1d1b19;
  --button-ink: #ffffff;
  --track: #ebe7e1;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(29, 27, 25, 0.06);
  --studio: radial-gradient(120% 95% at 50% 18%, #ffffff 0%, #f6f3ef 50%, #ece7e0 100%);
  --studio-wide: radial-gradient(120% 100% at 50% 8%, #ffffff 0%, #f4f0ea 55%, #e8e1d8 100%);
  --floor: rgba(70, 52, 34, 0.24);
  --photo-shadow: rgba(60, 44, 28, 0.15);
  --finder: radial-gradient(110% 80% at 50% 28%, #46413b 0%, #24211e 62%, #1a1816 100%);
  --badge: rgba(255, 255, 255, 0.75);
  --toast-bg: #1d1b19;
  --toast-ink: #ffffff;
  --aura: linear-gradient(135deg, #f7e7e8 0%, #f1e6dc 55%, #f6f0e9 100%);
  --ledge: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(206, 224, 221, 0.8));
  --ledge-edge: #8fbfb8;
  --shadow: 0 1px 2px rgba(29, 27, 25, 0.04), 0 10px 28px -14px rgba(29, 27, 25, 0.16);
  --shadow-lift: 0 18px 40px -18px rgba(29, 27, 25, 0.4);
  --shadow-nav: 0 1px 2px rgba(29, 27, 25, 0.06), 0 14px 32px -12px rgba(29, 27, 25, 0.3);
  --tint-0: linear-gradient(160deg, #f4e4df, #ead2cb);
  --tint-1: linear-gradient(160deg, #e6ebe1, #d5ddcd);
  --tint-2: linear-gradient(160deg, #efe6d8, #e2d4bf);
  --tint-3: linear-gradient(160deg, #e3e8ee, #d0d9e2);
  --tint-4: linear-gradient(160deg, #ebe4ee, #dbd0e0);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --r-card: 22px;
  --r-tile: 18px;
  --pad: 20px;
  --top: calc(env(safe-area-inset-top) + 18px);
  --detail-top: calc(env(safe-area-inset-top) + 66px);
  --nav-space: calc(env(safe-area-inset-bottom) + 96px);
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --bg: #0f0c0b;
  --card: #1b1716;
  --tile: #24201e;
  --ink: #f4eee9;
  --ink-2: #b7aca6;
  --ink-3: #857b76;
  --line: #2a2422;
  --line-2: #3b3331;
  --accent: #e8aab0;
  --accent-tint: #362326;
  --good: #8fd5ae;
  --good-tint: #14261c;
  --maybe: #e6c47c;
  --maybe-tint: #2a2313;
  --careful: #f2a688;
  --careful-tint: #2e1b14;
  --skip: #a8c6e4;
  --skip-tint: #172130;
  --on-ink: #17110f;
  --on-good: #0e2216;
  --button: #f3ece4;
  --button-ink: #17110f;
  --track: #2c2624;
  --glass: rgba(34, 29, 28, 0.84);
  --glass-line: rgba(255, 255, 255, 0.07);
  --studio: radial-gradient(120% 95% at 50% 16%, #3e3634 0%, #292322 52%, #1d1918 100%);
  --studio-wide: radial-gradient(120% 100% at 50% 6%, #3c3432 0%, #241f1e 55%, #141110 100%);
  --floor: rgba(0, 0, 0, 0.55);
  --photo-shadow: rgba(0, 0, 0, 0.45);
  --finder: radial-gradient(110% 80% at 50% 28%, #3a3432 0%, #1f1a19 62%, #161211 100%);
  --badge: rgba(0, 0, 0, 0.22);
  --toast-bg: #2c2624;
  --toast-ink: #f4eee9;
  --aura: linear-gradient(135deg, #3b2629 0%, #2a2120 55%, #1d1817 100%);
  --ledge: linear-gradient(to bottom, rgba(176, 222, 214, 0.32), rgba(48, 74, 70, 0.3));
  --ledge-edge: #5fb3a6;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.045), 0 14px 30px -18px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --shadow-nav: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 34px -12px rgba(0, 0, 0, 0.9);
  --tint-0: linear-gradient(160deg, #3a2a28, #2c201f);
  --tint-1: linear-gradient(160deg, #2a3127, #20261e);
  --tint-2: linear-gradient(160deg, #372f25, #2a241c);
  --tint-3: linear-gradient(160deg, #262d36, #1d232a);
  --tint-4: linear-gradient(160deg, #31293a, #251f2c);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--nav-space) + 8px); }
body.bare { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
.icon-line { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
main { max-width: 560px; margin: 0 auto; padding: var(--top) var(--pad) 28px; }
body.detail main { padding-top: var(--detail-top); }
.loading { color: var(--ink-3); padding-top: 40px; }

header#top { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 10px) 14px 0; pointer-events: none; }
.top-right { display: flex; gap: 8px; }
.glass-btn { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--glass-line), 0 2px 12px rgba(0, 0, 0, 0.14); color: var(--ink); }
.glass-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.glass-btn[aria-pressed="true"] { color: var(--accent); }
.glass-btn[aria-pressed="true"] svg { fill: currentColor; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head > div:first-child { min-width: 0; }
.overline { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.title { font: 400 46px/1 var(--serif); letter-spacing: -0.012em; margin-top: 6px; }
.title em { font-style: italic; }
.lede { font-size: 16px; color: var(--ink-2); margin-top: 10px; max-width: 36ch; }
.head-aside { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); font: 400 20px/1 var(--serif); color: var(--ink); }
.avatar-btn svg { width: 21px; height: 21px; }
.demo-pill { flex: none; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint); padding: 7px 11px; border-radius: 999px; }

.toggle { display: inline-grid; grid-auto-flow: column; gap: 2px; margin-top: 18px; padding: 3px; border-radius: 999px; background: var(--track); }
.toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.toggle button svg { width: 17px; height: 17px; }
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); }
.toggle.full { display: grid; grid-auto-columns: 1fr; width: 100%; margin-top: 0; }
.toggle.full button { justify-content: center; padding: 8px 6px; }

.ring { position: relative; flex: none; width: 56px; height: 56px; }
.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring .track { stroke: var(--track); }
.ring .bar { stroke: var(--good); stroke-linecap: round; transition: stroke-dashoffset 0.35s ease; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.gap-row { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px 12px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); text-align: left; font-size: 15px; }
.gap-row .grow { flex: 1; min-width: 0; }
.gap-row > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 18px -6px 0; }
.day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0 9px; border-radius: 18px; }
.day .dow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.day .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { border-radius: 50%; }
.day .dot { width: 5px; height: 5px; }
.dot.retinol { background: var(--accent); }
.dot.exfoliating { background: var(--maybe); }
.dot.treatment { background: var(--skip); }
.dot.rest { background: transparent; }
.day[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow); }
.day.today .num { background: var(--ink); color: var(--on-ink); }
.night-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.night-line .dot { width: 8px; height: 8px; }
.night-line strong { color: var(--ink); font-weight: 600; }

.steps { display: grid; gap: 10px; margin-top: 14px; }
.step { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 9px 6px 9px 9px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.step-open { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; text-align: left; min-width: 0; }
.step .ph { width: 66px; height: 66px; border-radius: 15px; }
.step .label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.step .name { font-size: 16px; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.step.done .name { color: var(--ink-3); }
.check { width: 48px; height: 48px; display: grid; place-items: center; }
.check i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.6px var(--line-2); transition: background 0.15s ease, box-shadow 0.15s ease; }
.check svg { width: 16px; height: 16px; fill: none; stroke: var(--on-good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.15s ease; }
.check[aria-pressed="true"] i { background: var(--good); box-shadow: none; }
.check[aria-pressed="true"] svg { opacity: 1; }
.empty-state { padding: 22px 18px; text-align: center; color: var(--ink-2); font-size: 15px; }

.ph { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-radius: var(--r-tile); background: var(--studio); }
.ph::after { content: ""; position: absolute; z-index: 0; left: 20%; right: 20%; bottom: 7%; height: 9%; background: radial-gradient(closest-side, var(--floor), transparent); }
.ph img { position: absolute; z-index: 1; left: 14%; bottom: 11%; width: 72%; height: 76%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 10px var(--photo-shadow)); }
.step .ph img, .row .ph img, .need-head .ph img, .owned-photo .ph img, .wish .ph img, .checkin .ph img, .starter .ph img { left: 9%; bottom: 8%; width: 82%; height: 84%; filter: drop-shadow(0 4px 5px var(--photo-shadow)); }
.step .ph::after, .row .ph::after, .need-head .ph::after, .owned-photo .ph::after, .wish .ph::after, .checkin .ph::after, .starter .ph::after { bottom: 5%; height: 7%; }
.ph.empty { place-items: center; background: var(--tint); }
.ph.empty::after { display: none; }
.ph .mono { font: 400 30px/1 var(--serif); color: var(--ink-2); letter-spacing: 0.02em; }
.ph.empty > svg { width: 28px; height: 28px; color: var(--ink-2); }
.tint-0 { --tint: var(--tint-0); }
.tint-1 { --tint: var(--tint-1); }
.tint-2 { --tint: var(--tint-2); }
.tint-3 { --tint: var(--tint-3); }
.tint-4 { --tint: var(--tint-4); }
.ended-photo img { filter: grayscale(0.35) drop-shadow(0 8px 10px var(--photo-shadow)); opacity: 0.88; }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.section-sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.link { display: inline-flex; align-items: center; gap: 1px; font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link svg { width: 16px; height: 16px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card.padded { padding: 4px 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--tile); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-tint); color: var(--good); }
.pill.careful { background: var(--careful-tint); color: var(--careful); }
.pill.maybe { background: var(--maybe-tint); color: var(--maybe); }
.pill.skip { background: var(--skip-tint); color: var(--skip); }
.pill.rouge { background: var(--accent-tint); color: var(--accent); }
.pill.plain::before { display: none; }
.pill.on-photo { position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--glass); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px calc(-1 * var(--pad)) 0; padding: 2px var(--pad) 4px; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 14px 0 0; padding: 0; }
.chips::-webkit-scrollbar, .rail::-webkit-scrollbar, .tabs-line::-webkit-scrollbar, .display .row-of::-webkit-scrollbar, .closet::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.chip .n { margin-left: 5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip[aria-pressed="true"] .n { color: var(--on-ink); opacity: 0.6; }
.chip:disabled { opacity: 0.4; cursor: default; }
.chip.soft { background: var(--card); box-shadow: var(--shadow); color: var(--ink); }

.tabs-line { display: flex; gap: 24px; overflow-x: auto; margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs-line button { position: relative; flex: none; padding: 10px 0 12px; font-size: 16px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tabs-line button .n { margin-left: 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tabs-line button[aria-selected="true"] { color: var(--ink); }
.tabs-line button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

.places { display: grid; gap: 14px; margin-top: 16px; }
.place-card { display: block; width: 100%; overflow: hidden; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.place-card .cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.place-card .cap .t { font: 400 25px/1.1 var(--serif); letter-spacing: -0.005em; }
.place-card .cap .d { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.place-card .cap > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.section-tight { margin: 18px calc(-1 * var(--pad)) 0; }
.section-tight .display { border-radius: 0; }
.display { position: relative; overflow: hidden; background: var(--studio-wide); }
.display .mono-standin { width: 54px; height: 84px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); font: 400 22px/1 var(--serif); color: var(--ink-2); }
.display.shelf { padding-top: 22px; }
.display.shelf .row-of { display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.display .stand { flex: none; height: 128px; display: flex; align-items: flex-end; }
.display .stand img { display: block; max-height: 120px; max-width: 94px; object-fit: contain; filter: drop-shadow(0 6px 6px var(--photo-shadow)); }
.display .ledge { position: relative; height: 12px; margin-top: -1px; background: var(--ledge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 var(--ledge-edge), 0 10px 18px -6px rgba(0, 0, 0, 0.25); }
.display.tray { padding: 16px; }
.velvet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 15%, #33406a 0%, #1f2846 60%, #151b31 100%); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 0 2px #b8955a, 0 0 0 3px rgba(0, 0, 0, 0.15), 0 14px 24px -14px rgba(0, 0, 0, 0.6); }
.velvet .slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #36446f, #1b2340 78%); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.velvet .slot img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55)); }
.display.rack { padding: 0 10px; }
.closet { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 22px 8px 12px; scrollbar-width: none; }
.closet::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(to bottom, #ecd29a, #a57a3a); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.closet .hang { position: relative; flex: none; width: 74px; height: 150px; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; }
.closet .hang::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 14px; margin-left: -5px; border: 2px solid #b4b0aa; border-bottom: 0; border-radius: 6px 6px 0 0; }
.closet .hang img { max-height: 138px; max-width: 74px; object-fit: contain; filter: drop-shadow(0 8px 8px var(--photo-shadow)); }
.display.drawer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.display.drawer .cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.display.drawer .cell img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.display.empty-place { display: grid; place-items: center; height: 110px; font-size: 14.5px; color: var(--ink-3); }
.sheet-card { width: 100%; max-width: 520px; margin-top: auto; padding: 20px; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift); }
.sheet-title { margin-top: 4px; font: 400 28px/1.1 var(--serif); }
.sheet-label { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.sheet-input { width: 100%; margin-top: 14px; padding: 14px 15px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 16px/1.2 var(--sans); }
.sheet-card .chips.wrap { margin-top: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); text-align: left; }
.tile .ph { aspect-ratio: 1 / 1.04; border-radius: 0; }
.tile .body { padding: 11px 13px 14px; }
.brand { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.tile .name { font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.heart { position: absolute; z-index: 2; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); color: var(--accent); }
.heart svg { width: 16px; height: 16px; }
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); font-size: 15px; font-weight: 500; text-align: center; }
.add-tile i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--button); color: var(--button-ink); }
.add-tile svg { width: 22px; height: 22px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 22px; text-align: center; }
.empty i { width: 58px; height: 58px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.empty i svg { width: 25px; height: 25px; }
.empty .t { font-size: 17px; font-weight: 600; }
.empty .d { max-width: 30ch; font-size: 14.5px; color: var(--ink-2); }
.empty .link { margin-top: 6px; }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 14px; scrollbar-width: none; }
.mini { flex: 0 0 158px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); text-align: left; }
.mini .ph { aspect-ratio: 1; border-radius: 0; }
.mini .body { display: grid; gap: 4px; padding: 10px 12px 13px; }
.mini .name { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .price { margin-top: 2px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini .save { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--good); }

.list { overflow: hidden; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 54px; padding: 12px 16px; text-align: left; text-decoration: none; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.row .k { font-size: 15.5px; }
.row .v { font-size: 15px; color: var(--ink-2); text-align: right; }
.row .grow { flex: 1; min-width: 0; }
.row .ph { flex: none; width: 52px; height: 52px; border-radius: 13px; }
.row .t { font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.row .d { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.row > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.row.photo + .row.photo::before { left: 82px; }
.row .glyph { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--ink-2); }
.row .glyph svg { width: 19px; height: 19px; }
.row.glyphed + .row.glyphed::before { left: 66px; }
.row.stacked { align-items: flex-start; }
.row.stacked .toggle { margin-top: 12px; }
.row-pill { display: block; margin-top: 6px; }

.switch { flex: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: var(--track); -webkit-appearance: none; appearance: none; cursor: pointer; transition: background 0.2s ease; }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22); transition: transform 0.2s ease; }
.switch:checked { background: var(--button); }
.switch:checked::before { transform: translateX(20px); background: var(--button-ink); }
:root[data-scheme="light"] .switch:checked::before { background: #ffffff; }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; transition: transform 0.1s ease; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--button); color: var(--button-ink); }
.btn.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.quiet { min-height: 46px; padding: 0 6px; font-weight: 500; color: var(--ink-2); }
.btn.danger { color: var(--careful); }
.btn.small { min-height: 38px; padding: 0 15px; font-size: 14.5px; }
.btn:active { transform: scale(0.98); }
.btn-row { display: flex; gap: 10px; margin-top: 24px; }
.btn-row > .btn { flex: 1; }
.btn-row > .primary { flex: 1.6; }
.center { display: flex; justify-content: center; margin-top: 18px; }
.sticky { position: sticky; z-index: 4; bottom: 0; display: flex; gap: 10px; margin: 26px calc(-1 * var(--pad)) 0; padding: 16px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.sticky .btn { flex: 1; }
.sticky .primary { flex: 1.7; }

.hero { height: calc(env(safe-area-inset-top) + 372px); margin: calc(-1 * var(--detail-top)) calc(-1 * var(--pad)) 0; border-radius: 0 0 34px 34px; }
.hero img { left: 21%; bottom: 12%; width: 58%; height: 62%; filter: drop-shadow(0 16px 18px var(--photo-shadow)); }
.hero .mono { font-size: 64px; }
.product-head { margin-top: 22px; }
.product-head .brand { font-size: 12.5px; color: var(--accent); }
.product-head h1 { margin-top: 6px; font-size: 27px; font-weight: 600; line-height: 1.18; letter-spacing: -0.018em; }
.product-head .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.verdict { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; margin-top: 20px; padding: 18px; border-radius: var(--r-card); }
.verdict .badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--badge); }
.verdict .badge svg { width: 23px; height: 23px; stroke-width: 2; }
.verdict .word { font: 400 28px/1.08 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.verdict .why { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.verdict.good { background: var(--good-tint); color: var(--good); }
.verdict.maybe { background: var(--maybe-tint); color: var(--maybe); }
.verdict.bad { background: var(--careful-tint); color: var(--careful); }
.verdict.skip { background: var(--skip-tint); color: var(--skip); }
.verdict .owned-photo { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px; border-radius: 16px; background: var(--badge); color: var(--ink); text-align: left; font-size: 14.5px; }
.verdict .owned-photo .ph { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.verdict .owned-photo .grow { flex: 1; }
.verdict .owned-photo > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.note-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 13px 15px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 14.5px; color: var(--ink-2); }
.note-line svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--accent); }

.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 15px 6px 13px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.rate svg { width: 26px; height: 26px; }
.rate button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lift); }

.reasons li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.reasons li:last-child { border-bottom: 0; }
.reasons li::before { content: ""; width: 8px; height: 8px; margin: 8px 0 0 4px; border-radius: 50%; background: var(--ink-3); }
.reasons li.good::before { background: var(--good); }
.reasons li.careful::before { background: var(--careful); }
.reasons strong { font-weight: 600; }

.ingredient { padding: 13px 0; border-bottom: 1px solid var(--line); }
.ingredient .name { font-size: 15.5px; font-weight: 600; }
.ingredient .text { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.ingredient.caution .name { color: var(--careful); }
details.more { padding: 4px 0; }
details.more summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
details.more[open] summary svg { transform: rotate(90deg); }
details.more p { padding-bottom: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.fine { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.offer { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; }
.offer + .offer::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; height: 1px; background: var(--line); }
.offer .glyph { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--ink-2); }
.offer .glyph svg { width: 19px; height: 19px; }
.offer .where { font-size: 15.5px; font-weight: 500; }
.offer .far { font-size: 13px; color: var(--ink-3); }
.offer .price { font-size: 16.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer.best .price { color: var(--good); }

.finder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 20px; padding: 24px 22px; aspect-ratio: 1 / 0.86; overflow: hidden; border-radius: 30px; background: var(--finder); color: #ffffff; text-align: center; box-shadow: var(--shadow); }
.finder .frame { position: absolute; left: 50%; top: 40%; width: 62%; aspect-ratio: 1.55; transform: translate(-50%, -50%); }
.finder .frame i { position: absolute; width: 30px; height: 30px; border: 0 solid rgba(255, 255, 255, 0.95); }
.finder .frame i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 14px; }
.finder .frame i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 14px; }
.finder .frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 14px; }
.finder .frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 14px; }
.finder .laser { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(242, 184, 192, 0), #f2b8c0, rgba(242, 184, 192, 0)); }
.finder p { font-size: 14.5px; color: rgba(255, 255, 255, 0.74); max-width: 28ch; }
.finder .btn.primary { background: #ffffff; color: #1d1b19; }
.search-box { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 6px 0 15px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.search-box > svg { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.search-box input { flex: 1; min-width: 0; padding: 17px 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 var(--sans); color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.results { margin-top: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.headsup { display: grid; gap: 12px; margin-top: 14px; padding: 16px; }
.headsup .k { color: var(--accent); }
.headsup .t { font: 400 24px/1.15 var(--serif); }

.need { display: grid; gap: 12px; margin-top: 12px; padding: 14px; }
.need-head { display: grid; grid-template-columns: 58px 1fr; gap: 13px; align-items: center; }
.need-head .ph { width: 58px; height: 58px; border-radius: 14px; }
.need-head .t { font-size: 16px; font-weight: 600; line-height: 1.3; }
.need-head .d { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.need .answer { font-size: 15px; }
.need .rail { margin: 0 -14px; padding: 2px 14px 4px; }
.need .mini { flex-basis: 146px; box-shadow: inset 0 0 0 1px var(--line); }

.wish { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
.wish + .wish { border-top: 1px solid var(--line); }
.wish .ph { width: 70px; height: 84px; border-radius: 16px; }
.wish .name { font-size: 16px; font-weight: 500; line-height: 1.3; margin-top: 3px; }
.wish .pill { margin-top: 8px; }
.wish .say { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.wish .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.checkin { display: grid; gap: 12px; margin-top: 14px; padding: 16px; }
.checkin-head { display: grid; grid-template-columns: 58px 1fr; gap: 13px; align-items: center; }
.checkin .ph { width: 58px; height: 58px; border-radius: 14px; }
.checkin .k { color: var(--accent); }
.checkin .t { font-size: 15.5px; font-weight: 500; margin-top: 3px; }
.checkin .rate button { padding: 11px 4px 10px; font-size: 13.5px; }
.checkin .rate svg { width: 22px; height: 22px; }
.checkin .later { justify-self: center; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 4px 8px; }

.ask-title { margin-top: 6px; }
.ask-title .title { font-size: 44px; }
.starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.starter { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 132px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.starter .thumbs { display: flex; gap: 4px; height: 46px; }
.starter .thumbs .ph { width: 38px; height: 46px; border-radius: 10px; }
.starter .q { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.or-try { margin-top: 22px; }
.or-try .chips { margin-top: 10px; }
.answers { display: grid; gap: 14px; margin-top: 20px; }
.answer-block { padding: 16px; display: grid; gap: 12px; }
.answer-block .k { color: var(--accent); }
.answer-block .say { font: 400 25px/1.15 var(--serif); letter-spacing: -0.005em; }
.answer-block .more-say { font-size: 15px; color: var(--ink-2); }
.answer-block .rail { margin: 0 -16px; padding: 2px 16px 4px; }
.answer-block .mini { flex-basis: 146px; box-shadow: inset 0 0 0 1px var(--line); }
.answer-block .list { box-shadow: inset 0 0 0 1px var(--line); }
.answer-block textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 15px/1.45 var(--sans); resize: vertical; }
.ask-bar { position: sticky; z-index: 3; bottom: calc(var(--nav-space) - 4px); display: flex; align-items: center; gap: 6px; margin-top: 22px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: var(--shadow-nav); }
body.bare .ask-bar { bottom: calc(env(safe-area-inset-bottom) + 12px); }
.ask-bar input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 var(--sans); color: var(--ink); }
.ask-bar input::placeholder { color: var(--ink-3); }
.ask-bar .icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.ask-bar .send { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--button); color: var(--button-ink); }
.ask-bar svg { width: 21px; height: 21px; }

.profile { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; align-items: center; }
.avatar { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--studio); box-shadow: var(--shadow); font: 400 36px/1 var(--serif); color: var(--ink); }
.avatar svg { width: 30px; height: 30px; color: var(--ink-2); }
.profile .name { font: 400 38px/1 var(--serif); letter-spacing: -0.01em; }
.profile .sub { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.counts button { text-align: left; }
.counts b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.counts span { font-size: 13.5px; color: var(--ink-2); }
.aura { margin-top: 22px; padding: 18px; border-radius: var(--r-card); background: var(--aura); box-shadow: var(--shadow); }
.aura .k { color: var(--accent); }
.aura .d { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.aura .chips { margin-top: 12px; }
.aura .chip { background: var(--card); box-shadow: none; color: var(--ink); }
.aura .chip small { margin-left: 5px; font-size: 12.5px; color: var(--ink-3); }
.year { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.year .stat { padding: 14px 13px 15px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.year .stat b { display: block; font: 400 34px/1 var(--serif); letter-spacing: -0.01em; }
.year .stat span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }

.choice { display: grid; grid-template-columns: 1fr 100px; gap: 14px; align-items: center; width: 100%; margin-top: 12px; padding: 18px 16px 18px 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.choice .q { display: block; font: 400 28px/1.06 var(--serif); letter-spacing: -0.01em; }
.choice .d { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.choice .ph { width: 100px; height: 108px; border-radius: 18px; }
.choice.dark { background: var(--button); color: var(--button-ink); box-shadow: var(--shadow-lift); }
.choice.dark .d { color: var(--button-ink); opacity: 0.7; }
.choice .glyph { justify-self: end; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(128, 128, 128, 0.16); }
.choice .glyph svg { width: 32px; height: 32px; }
.choice:not(.dark) .glyph { background: var(--tile); }
.stack { position: relative; width: 100px; height: 108px; }
.stack .ph { position: absolute; width: 74px; height: 86px; border-radius: 16px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.stack .ph:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.stack .ph:nth-child(2) { right: 0; bottom: 0; transform: rotate(5deg); }

.vanity { position: relative; height: calc(env(safe-area-inset-top) + 330px); margin: calc(-1 * var(--top)) calc(-1 * var(--pad)) 0; overflow: hidden; border-radius: 0 0 36px 36px; background: var(--studio-wide); }
.vanity::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 30px; height: 34px; background: radial-gradient(closest-side, var(--floor), transparent); }
.vanity img { position: absolute; z-index: 1; bottom: 42px; filter: drop-shadow(0 16px 16px var(--photo-shadow)); }
.vanity .v1 { left: 50%; height: 226px; transform: translateX(-50%); z-index: 2; }
.vanity .v2 { left: 7%; height: 168px; z-index: 3; }
.vanity .v3 { right: 4%; width: 118px; bottom: 38px; z-index: 4; }
.vanity .v4 { left: 29%; height: 128px; bottom: 34px; z-index: 4; }
.vanity .v5 { right: 25%; height: 170px; bottom: 36px; z-index: 3; }
.welcome-text { margin-top: 26px; }
.welcome-text .title { font-size: 50px; }
.welcome .fine { text-align: center; margin-top: 16px; }
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 26px; }
.steps-bar i { height: 4px; border-radius: 4px; background: var(--track); }
.steps-bar i.on { background: var(--accent); }
.start { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; width: 100%; margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.start[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.start .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--ink); }
.start .glyph svg { width: 21px; height: 21px; }
.start .t { font-size: 16.5px; font-weight: 600; }
.start .d { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.concern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.concern { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; font-size: 16px; font-weight: 500; }
.concern[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.concern:disabled { opacity: 0.45; }

.toast { position: fixed; z-index: 7; left: 16px; right: 16px; bottom: calc(var(--nav-space) + 6px); max-width: 520px; margin: 0 auto; padding: 14px 18px; border-radius: 18px; background: var(--toast-bg); color: var(--toast-ink); font-size: 15px; font-weight: 500; box-shadow: var(--shadow-lift); }
body.bare .toast { bottom: calc(env(safe-area-inset-bottom) + 92px); }

.tabbar { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 0 14px calc(env(safe-area-inset-bottom) + 10px); pointer-events: none; }
.capsule { pointer-events: auto; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: var(--shadow-nav); }
.capsule button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.capsule button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.capsule button[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }
.capsule button[aria-current="page"] svg { stroke-width: 1.95; }
.ask-fab { pointer-events: auto; flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); color: var(--ink); box-shadow: var(--shadow-nav); }
.ask-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ask-fab[aria-current="page"] { background: var(--button); color: var(--button-ink); }

.sheet { position: fixed; z-index: 9; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(env(safe-area-inset-top) + 20px) 20px calc(env(safe-area-inset-bottom) + 20px); background: rgba(10, 8, 7, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet img { max-width: 100%; max-height: 70dvh; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.sheet .btn-row { width: 100%; max-width: 420px; margin-top: 4px; }
.sheet .btn.secondary { background: rgba(255, 255, 255, 0.12); color: #ffffff; box-shadow: none; }
.sheet .btn.primary { background: #ffffff; color: #1d1b19; }
.sheet .fine { color: rgba(255, 255, 255, 0.7); text-align: center; }
.sheet .sheet-card .btn-row { max-width: none; margin-top: 22px; }
.sheet .sheet-card .btn.primary { background: var(--button); color: var(--button-ink); }
.sheet .sheet-card .btn.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.camera-sheet { position: fixed; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #141210; color: #ffffff; }
.camera-sheet video { width: 100%; max-height: 70dvh; object-fit: cover; }
.camera-sheet button { padding: 12px 26px; border-radius: 999px; background: #ffffff; color: #1d1b19; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  main.enter > * { animation: rise 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  main.enter > *:nth-child(2) { animation-delay: 30ms; }
  main.enter > *:nth-child(3) { animation-delay: 60ms; }
  main.enter > *:nth-child(n + 4) { animation-delay: 90ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
[hidden] { display: none !important; }
