/* ALVI — interface. Night is the default; day is one attribute away.
   No web fonts and no third-party requests: the system display face on each
   platform, set tight and heavy. */

:root {
  --bg: #000;
  --surface: #101113;
  --surface-2: #18191c;
  --surface-3: #232428;
  --rule: rgba(255, 255, 255, .08);
  --rule-2: rgba(255, 255, 255, .14);
  --ink: #fff;
  --ink-2: #c3c5cc;
  --ink-3: #8b8e98;
  --ink-4: #585b64;
  --accent: #c9f53b;
  --accent-ink: #0c1000;
  --accent-text: #c9f53b;
  --accent-soft: rgba(201, 245, 59, .13);
  --now: #ff7a3c;
  --now-soft: rgba(255, 122, 60, .16);
  --ok: #58e08b;
  --danger: #ff5d5d;
  --cta: #f4f4f1;
  --cta-ink: #0a0a0a;
  --stage-a: #1b1c20;
  --stage-b: #060607;
  --stage-glow: rgba(255, 255, 255, .11);
  --figure: #d9dbe2;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-l: 26px;
  --r-m: 18px;
  --r-s: 12px;
  --tab-h: 68px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f6;
  --surface: #fff;
  --surface-2: #f0f1f4;
  --surface-3: #e4e6eb;
  --rule: rgba(10, 12, 20, .08);
  --rule-2: rgba(10, 12, 20, .16);
  --ink: #0a0b0d;
  --ink-2: #3a3d45;
  --ink-3: #6a6e79;
  --ink-4: #a3a7b1;
  --accent: #bfee27;
  --accent-ink: #0c1000;
  --accent-text: #456f00;
  --accent-soft: rgba(150, 200, 0, .18);
  --now: #e85d1c;
  --now-soft: rgba(232, 93, 28, .12);
  --ok: #17994d;
  --danger: #d43535;
  --cta: #0a0b0d;
  --cta-ink: #fff;
  --stage-a: #eceef2;
  --stage-b: #c9cdd6;
  --stage-glow: rgba(255, 255, 255, .9);
  --figure: #4a4e59;
  --shadow: 0 18px 44px rgba(20, 24, 40, .16);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.08; font-weight: 750; letter-spacing: -.03em; }
h2 { font-size: 22px; line-height: 1.15; font-weight: 720; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.012em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent-text); text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; letter-spacing: .01em; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }

/* ---------- shell ---------- */
#app { min-height: 100dvh; }
.shell { max-width: 760px; margin: 0 auto; padding: 0 18px calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 0 10px; }
.topbar .grow { flex: 1; min-width: 0; }
.brand { font-weight: 800; letter-spacing: .16em; font-size: 14px; }
.brand i { font-style: normal; color: var(--accent-text); }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--rule);
  display: grid; place-items: center; flex: none; transition: transform .12s, background .2s;
}
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 19px; height: 19px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 750; flex: none; }

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30;
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(430px, calc(100vw - 24px)); height: var(--tab-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent); border: 1px solid var(--rule-2);
  border-radius: 999px; backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: var(--shadow);
}
.tab { display: grid; justify-items: center; gap: 3px; padding: 8px 0; color: var(--ink-3); font-size: 10.5px; font-weight: 600; border-radius: 999px; transition: color .2s; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="true"] { color: var(--ink); }
.tab[aria-current="true"] .tab-ic { background: var(--accent); color: var(--accent-ink); }
.tab-ic { width: 46px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s, color .2s; }

@media (min-width: 980px) {
  .shell { max-width: 1040px; padding-left: 132px; padding-bottom: 60px; }
  .tabbar { left: 26px; top: 50%; bottom: auto; transform: translateY(-50%); width: 78px; height: auto; grid-template-columns: 1fr; padding: 12px 6px; border-radius: 40px; gap: 6px; }
  .cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
}

/* ---------- surfaces ---------- */
.stack { display: grid; gap: 14px; }
.stack-s { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.tint { background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 12px; }
.section-h a, .section-h button { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hr { height: 1px; background: var(--rule); margin: 4px 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--rule); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; flex: none;
}
.chip svg { width: 14px; height: 14px; }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip.now { background: var(--now-soft); color: var(--now); border-color: transparent; }
button.chip[aria-pressed="true"], .chip.on { background: var(--cta); color: var(--cta-ink); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 680; font-size: 15.5px; letter-spacing: -.01em; background: var(--cta); color: var(--cta-ink); width: 100%;
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .38; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 13.5px; width: auto; }
.linkbtn { color: var(--ink-3); font-weight: 600; font-size: 14px; padding: 10px; }
.linkbtn b { color: var(--ink); }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 12.5px; font-weight: 620; color: var(--ink-3); letter-spacing: .01em; }
.input, .select {
  width: 100%; height: 54px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--rule);
  padding: 0 16px; font-size: 16px; outline: none; transition: border-color .15s, background .15s; appearance: none;
}
textarea.input { height: auto; padding: 14px 16px; min-height: 84px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--accent-text); background: var(--surface); }
.input::placeholder { color: var(--ink-4); }
.input.bad { border-color: var(--danger); }
.withunit { position: relative; }
.withunit .input { padding-right: 58px; }
.withunit .u { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; font-weight: 600; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.err { color: var(--danger); font-size: 13px; font-weight: 550; min-height: 18px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.seg button { height: 44px; padding: 0 16px; white-space: nowrap; border-radius: 999px; font-weight: 640; font-size: 14px; color: var(--ink-3); transition: background .18s, color .18s; }
.seg button[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--rule-2); background: var(--surface-2); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.4px solid var(--accent-ink); border-bottom: 2.4px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }

.option {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-m);
  background: var(--surface); border: 1.5px solid var(--rule); transition: border-color .15s, background .15s, transform .1s;
}
.option:active { transform: scale(.99); }
.option[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface); }
.option .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-2); margin-top: 2px; display: grid; place-items: center; }
.option[aria-pressed="true"] .dot { background: var(--accent); border-color: var(--accent); }
.option[aria-pressed="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.option .t { font-weight: 660; font-size: 15.5px; letter-spacing: -.012em; }
.option .d { color: var(--ink-3); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.option .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.option .meta span { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.option .meta b { color: var(--ink); font-weight: 700; }

/* ---------- auth & onboarding ---------- */
.gate { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; max-width: 480px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom)); }
.hero { position: relative; isolation: isolate; display: grid; align-content: end; gap: 14px; padding-bottom: 26px; min-height: 52dvh; }
.hero-stage { position: absolute; inset: -18px -22px 120px; overflow: hidden; z-index: -1;
  background: radial-gradient(60% 46% at 50% 78%, var(--stage-glow), transparent 70%), radial-gradient(90% 60% at 50% 0%, var(--accent-soft), transparent 70%); }
.hero-stage svg { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); height: 78%; width: auto; opacity: .95; }
.hero h1 { font-size: 40px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.wiz { min-height: 100dvh; max-width: 560px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top)) 20px 0; }
.wiz-top { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.wiz-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.wiz-body { padding-bottom: 24px; animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
.wiz-body h1 { margin-bottom: 8px; }
.wiz-foot { position: sticky; bottom: 0; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 34%); display: grid; gap: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-in { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
.codebox { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 700; padding-left: .5em; height: 64px; }
details.fold { border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--surface); }
details.fold > summary { list-style: none; padding: 15px 16px; font-weight: 640; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 400; }
details.fold[open] > summary::after { content: "–"; }
details.fold > .fold-b { padding: 0 16px 16px; display: grid; gap: 12px; }
.notice { border-radius: var(--r-m); padding: 14px 16px; background: var(--now-soft); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.notice b { color: var(--now); }

/* ---------- the stage: where each movement's 3D film will play ---------- */
.stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-l); overflow: hidden; isolation: isolate;
  background: radial-gradient(58% 34% at 50% 86%, var(--stage-glow), transparent 72%), linear-gradient(var(--stage-a), var(--stage-b));
  --ink-2: var(--figure); --ink-4: color-mix(in srgb, var(--figure) 42%, transparent); --accent: var(--now); --surface: var(--stage-a); --surface-3: color-mix(in srgb, var(--figure) 22%, transparent); --rule: color-mix(in srgb, var(--figure) 26%, transparent);
}
.stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 13%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--figure) 40%, transparent), transparent); z-index: -1; }
.stage > svg, .stage > .fig svg { position: absolute; inset: 9% 8% 9%; width: 84%; height: 82%; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage.has-film { aspect-ratio: 3 / 4; width: min(100%, calc(64dvh * 0.75)); justify-self: center; margin: 0 auto; background: #000; }
.stage.has-film::after { display: none; }
.stage .cap { position: absolute; left: 12px; right: 12px; bottom: 58px; padding: 9px 13px; border-radius: 14px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; backdrop-filter: blur(8px); pointer-events: none; }
.stage .voice { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 680; backdrop-filter: blur(10px); }
.stage .voice svg { width: 13px; height: 13px; }
.stage .voice[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.stage .badge { position: absolute; left: 14px; top: 14px; display: inline-flex; gap: 7px; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 10.5px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; background: rgba(0, 0, 0, .5); color: #fff; backdrop-filter: blur(10px); }
:root[data-theme="light"] .stage .badge { background: rgba(255, 255, 255, .78); color: #111; }
.stage .badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 4px var(--now-soft); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.stage .play { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
:root[data-theme="light"] .stage .play { background: rgba(0, 0, 0, .12); color: #111; }
.stage .play svg { width: 18px; height: 18px; margin-left: 2px; }
.stage .slot { position: absolute; left: 14px; bottom: 14px; font: 600 10.5px var(--font-mono); color: color-mix(in srgb, var(--figure) 70%, transparent); }
.stage.mini { width: 76px; aspect-ratio: 1; border-radius: 18px; flex: none; }
.stage.mini::after { display: none; }
.stage.mini > svg, .stage.mini > .fig svg { inset: 8%; width: 84%; height: 84%; }
.stage .fig svg text { display: none; }

/* ---------- lists ---------- */
.item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); width: 100%; text-align: left; transition: transform .1s; }
button.rowline { text-align: left; width: 100%; }
button.item:active { transform: scale(.99); }
.item .t { font-weight: 650; letter-spacing: -.012em; font-size: 15.5px; }
.item .d { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.item.done .t { color: var(--ink-3); }
.tick { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--rule-2); display: grid; place-items: center; color: transparent; transition: background .18s, border-color .18s, transform .18s; }
.tick svg { width: 16px; height: 16px; }
.tick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.04); }
.rowline { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.rowline:last-child { border-bottom: 0; }
.timecol { width: 46px; flex: none; font-size: 12px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- numbers ---------- */
.big { font-size: 34px; font-weight: 760; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 14px; min-width: 0; }
.stat .k { font-size: 11.5px; font-weight: 620; color: var(--ink-3); letter-spacing: .02em; }
.stat .v { font-size: 22px; font-weight: 740; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.stats.three .v { font-size: 17px; white-space: normal; }
.stat .s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .trk { stroke: var(--surface-3); }
.ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar.now i { background: var(--now); }
.bar.ink i { background: var(--ink-2); }
.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: grid; justify-items: center; gap: 5px; padding: 10px 0 9px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); font-size: 11px; font-weight: 620; color: var(--ink-3); }
.day b { font-size: 16px; color: var(--ink); font-weight: 720; }
.day[aria-pressed="true"] { background: var(--cta); border-color: transparent; color: var(--cta-ink); }
.day[aria-pressed="true"] b { color: var(--cta-ink); }
.day i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.day i.some { background: var(--now); }
.day i.full { background: var(--accent); }
.day[aria-pressed="true"] i.full { background: var(--accent-text); }
.heat { max-width: 440px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--ink-4); font-weight: 600; }
.heat i.l1 { background: color-mix(in srgb, var(--accent) 28%, var(--surface-2)); color: var(--ink-2); }
.heat i.l2 { background: color-mix(in srgb, var(--accent) 60%, var(--surface-2)); color: var(--accent-ink); }
.heat i.l3 { background: var(--accent); color: var(--accent-ink); }
.heat i.fut { opacity: .35; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--rule); }
.chart .plan { stroke: var(--ink-4); stroke-dasharray: 4 5; fill: none; stroke-width: 1.6; }
.chart .act { stroke: var(--accent); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .tgt { stroke: var(--now); stroke-dasharray: 2 4; }
.chart text { fill: var(--ink-3); font: 600 11px var(--font); }

/* ---------- photo diary ---------- */
.snap { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-l); background: var(--accent); color: var(--accent-ink); text-align: left; transition: transform .12s; }
.snap:active { transform: scale(.985); }
.snap .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .12); display: grid; place-items: center; flex: none; }
.snap .ic svg { width: 24px; height: 24px; }
.snap .t { font-weight: 740; font-size: 17px; letter-spacing: -.02em; }
.snap .d { font-size: 12.5px; opacity: .72; margin-top: 2px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--rule); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: 7px; bottom: 7px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .58); color: #fff; text-transform: capitalize; backdrop-filter: blur(6px); }
.preview { border-radius: var(--r-l); overflow: hidden; background: #000; max-height: 46dvh; display: grid; place-items: center; }
.preview img { max-width: 100%; max-height: 46dvh; display: block; }

/* ---------- sheet, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .58); backdrop-filter: blur(3px); display: grid; align-items: end; justify-items: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(620px, 100vw); max-height: 93dvh; overflow-y: auto; background: var(--bg); border: 1px solid var(--rule-2); border-bottom: 0; border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .32s cubic-bezier(.2, .9, .2, 1); overscroll-behavior: contain; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 30px; border-bottom: 1px solid var(--rule-2); } }
.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top)); display: grid; gap: 8px; width: min(420px, calc(100vw - 28px)); pointer-events: none; }
.toast { background: var(--cta); color: var(--cta-ink); padding: 13px 18px; border-radius: 18px; font-weight: 620; font-size: 14px; box-shadow: var(--shadow); animation: rise .25s ease; text-align: center; }
.toast.bad { background: var(--danger); color: #fff; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 40dvh auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.prose { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.prose + .prose { margin-top: 10px; }
ul.clean { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
ul.clean li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
ul.clean li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--now); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
