/* Steady — a paper diary at night. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121315;
  --surface: #1a1b1e;
  --raised: #232428;
  --line: #2b2c30;
  --text: #ece7df;
  --muted: #97918a;
  --faint: #5f5b56;

  --focus: #e6a23c;
  --focus-tint: #33260f;
  --focus-ink: #1e1405;
  --family: #9cb797;
  --family-tint: #1d271d;
  --family-ink: #101810;
  --shutdown: #aeb8f0;
  --shutdown-tint: #1b2040;
  --shutdown-ink: #11163a;
  --miss: #cf7a5f;
  --miss-tint: #35201a;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --radius: 14px;
  --tap: 52px;
  --gutter: 20px;
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f1e9;
  --surface: #fffcf6;
  --raised: #ece6da;
  --line: #e2dacc;
  --text: #1c1a17;
  --muted: #6a645a;
  --faint: #a59d90;

  --focus: #a8630a;
  --focus-tint: #f6e6cb;
  --focus-ink: #fffaf0;
  --family: #4d774c;
  --family-tint: #e2ebdd;
  --family-ink: #f7fbf5;
  --shutdown: #36438f;
  --shutdown-tint: #e3e6f6;
  --shutdown-ink: #f6f7fd;
  --miss: #ae5039;
  --miss-tint: #f6e1d9;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.45 var(--sans);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shell ------------------------------------------------------------- */
#app {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) calc(env(safe-area-inset-bottom) + 108px);
}
body.bare #app { padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }
.view { animation: rise 260ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; justify-content: center;
  padding: 6px 12px calc(env(safe-area-inset-bottom) + 6px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
body.bare .tabs { display: none; }
.tabs a {
  flex: 1; max-width: 140px; min-height: var(--tap);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  transition: color 160ms;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current='page'] { color: var(--text); }

/* ---- type -------------------------------------------------------------- */
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 50;
  font-optical-sizing: auto;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h1.display { font-size: 42px; margin: 8px 0 0; text-wrap: balance; }
h2.display { font-size: 26px; margin: 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 40px 0 14px;
}
.section-title h2 { font: 500 21px/1.1 var(--serif); font-variation-settings: 'SOFT' 50; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p { margin: 0; }

/* ---- header ------------------------------------------------------------ */
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; }
.masthead .sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.icon-btn {
  width: 44px; height: 44px; min-width: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  transition: background 160ms, color 160ms, transform 160ms var(--spring);
}
.icon-btn:active { transform: scale(0.92); background: var(--raised); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[disabled] { opacity: 0.3; pointer-events: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px; }
.topbar .title { font: 600 15px/1 var(--sans); color: var(--muted); }

/* ---- moments timeline (Today) ----------------------------------------- */
.moments { list-style: none; margin: 28px 0 0; padding: 0; }
.moment {
  --c: var(--muted);
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; gap: 0 12px;
  padding: 14px 0 14px 18px;
}
.moment::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px; background: var(--c); opacity: 0.25;
}
.moment.past::before { opacity: 0.6; }
.moment.next::before { opacity: 1; }
.moment.focus { --c: var(--focus); }
.moment.family { --c: var(--family); }
.moment.shutdown { --c: var(--shutdown); }
.moment time { font: 500 15px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.moment.next time { color: var(--c); }
.moment h3 { margin: 0; font: 500 20px/1.25 var(--serif); font-variation-settings: 'SOFT' 50; }
.moment.past h3 { color: var(--muted); }
.moment p { grid-column: 2; color: var(--muted); font-size: 15px; margin-top: 2px; }
.moment .tag {
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c); margin-left: 8px; vertical-align: 3px;
}
.moments .off { opacity: 0.45; }

/* ---- prompt card (Finish yesterday) ----------------------------------- */
.prompt {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px; padding: 16px 16px 16px 18px;
  background: var(--shutdown-tint);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 180ms var(--spring);
}
.prompt:active { transform: scale(0.985); }
.prompt .moon { width: 34px; height: 34px; color: var(--shutdown); flex: none; }
.prompt strong { display: block; font: 500 19px/1.2 var(--serif); font-variation-settings: 'SOFT' 50; }
.prompt span { color: var(--muted); font-size: 14px; }
.prompt .chev { margin-left: auto; color: var(--shutdown); flex: none; }

/* ---- status rows (today's check-in summary) --------------------------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li, .rows a.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--tap); padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rows .label { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, var(--muted)); }
.dot.focus { --c: var(--focus); }
.dot.family { --c: var(--family); }
.dot.shutdown { --c: var(--shutdown); }

.state { font: 600 13px/1 var(--sans); letter-spacing: 0.04em; padding: 7px 10px; border-radius: 99px; }
.state.yes { background: var(--c-tint, var(--raised)); color: var(--c, var(--text)); }
.state.no { background: var(--miss-tint); color: var(--miss); }
.state.rest, .state.na { background: var(--raised); color: var(--muted); }
.state.empty { color: var(--faint); padding-inline: 0; }
.state.later { color: var(--shutdown); background: transparent; padding-inline: 0; font-weight: 500; }
[data-moment='focus'] { --c: var(--focus); --c-tint: var(--focus-tint); --c-ink: var(--focus-ink); }
[data-moment='family'] { --c: var(--family); --c-tint: var(--family-tint); --c-ink: var(--family-ink); }
[data-moment='shutdown'] { --c: var(--shutdown); --c-tint: var(--shutdown-tint); --c-ink: var(--shutdown-ink); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border: 0; border-radius: 99px;
  font: 600 16px/1 var(--sans); letter-spacing: 0.01em;
  background: var(--text); color: var(--bg);
  transition: transform 180ms var(--spring), opacity 160ms, background 200ms;
}
.btn:active { transform: scale(0.97); }
.btn.block { width: 100%; }
.btn.quiet { background: var(--raised); color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn.amber { background: var(--focus); color: var(--focus-ink); }
.btn svg { width: 18px; height: 18px; }
.actions { margin-top: 22px; display: grid; gap: 10px; }

.link-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.link-list a, .link-list button {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--tap); padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; font-size: 16px;
}
.link-list svg { width: 18px; height: 18px; color: var(--muted); }

/* ---- check-in questions ----------------------------------------------- */
.questions { margin-top: 26px; }
.q {
  position: relative;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.q:last-child { border-bottom: 1px solid var(--line); }
.q .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--c); }
.q h3 { margin: 10px 0 16px; font: 450 22px/1.25 var(--serif); font-variation-settings: 'SOFT' 50; letter-spacing: -0.01em; }
.q.waiting h3, .q.skip h3 { color: var(--muted); }
.q .wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.q .wait svg { width: 18px; height: 18px; color: var(--shutdown); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg button {
  min-height: 56px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 16px;
  background: transparent; color: var(--text);
  font: 600 17px/1 var(--sans);
  transition: background 200ms var(--ease), border-color 200ms, color 200ms, transform 220ms var(--spring);
}
.seg button:active { transform: scale(0.95); }
.seg button[aria-pressed='true'] { animation: pop 320ms var(--spring); }
.seg button.yes[aria-pressed='true'] { background: var(--c); border-color: var(--c); color: var(--c-ink); }
.seg button.no[aria-pressed='true'] { background: var(--miss-tint); border-color: var(--miss); color: var(--miss); }
.seg button.rest[aria-pressed='true'] { background: var(--raised); border-color: var(--faint); color: var(--text); }
.seg button.rest { font-weight: 500; font-size: 15px; line-height: 1.15; }
@keyframes pop { 0% { transform: scale(0.92); } 100% { transform: scale(1); } }

.why {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.why > div { overflow: hidden; }
.why.open { grid-template-rows: 1fr; }
.why-inner { padding-top: 18px; }
.why .eyebrow { color: var(--miss); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 99px;
  background: transparent; color: var(--text);
  font: 500 15px/1 var(--sans);
  transition: background 160ms, border-color 160ms, color 160ms, transform 200ms var(--spring);
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--miss); border-color: var(--miss); color: var(--bg); }
textarea, input[type='text'], input[type='password'], input[type='number'], input[type='time'] {
  width: 100%;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface);
  padding: 13px 14px;
  font-size: 17px;
  transition: border-color 160ms;
}
textarea { resize: none; min-height: 52px; margin-top: 12px; line-height: 1.4; }
textarea:focus, input:focus { outline: none; border-color: var(--muted); }
::placeholder { color: var(--faint); }
.err { color: var(--miss); font-size: 14px; margin-top: 10px; min-height: 0; }

.savebar {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 65px);
  margin: 26px calc(var(--gutter) * -1) 0; padding: 18px var(--gutter) 14px;
  background: linear-gradient(to bottom, transparent, var(--bg) 22px);
}
.savebar .hint { text-align: center; font-size: 14px; color: var(--miss); margin-bottom: 10px; min-height: 20px; }

/* ---- history ----------------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 24px; }
.strip a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0 12px; border-radius: 14px;
  transition: background 160ms;
}
.strip a:active { background: var(--raised); }
.strip a.today { background: var(--surface); }
.strip .wd { font: 600 11px/1 var(--sans); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.strip .dn { font: 500 20px/1.2 var(--serif); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.pip {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--line);
}
.pip.yes { background: var(--c); border-color: var(--c); }
.pip.no { border-color: var(--miss); background: transparent; }
.pip.rest, .pip.na { border: 0; height: 2px; width: 8px; margin: 4px 1px; background: var(--faint); border-radius: 2px; }
.pip.later { border-style: dashed; }

.tally { display: grid; grid-template-columns: 70px repeat(8, minmax(0, 1fr)); gap: 10px 3px; align-items: center; }
.tally .rowlabel { font: 500 14px/1.1 var(--sans); display: flex; align-items: center; gap: 8px; }
.tally .rowlabel .dot { width: 8px; height: 8px; }
.tally .wk { font: 500 10.5px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.tally a.cell { display: flex; gap: 1.5px; justify-content: center; align-items: flex-end; height: 26px; padding: 2px 0; border-radius: 6px; }
.tally a.cell:active { background: var(--raised); }
.tally .bar { width: 2.5px; height: 100%; border-radius: 2px; background: var(--line); }
.tally .bar.yes { background: var(--c); }
.tally .bar.no { background: var(--miss); height: 40%; opacity: 0.85; }
.tally .bar.rest, .tally .bar.na { height: 2px; background: var(--faint); }
.tally .bar.future { background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 3px; height: 12px; border-radius: 2px; background: var(--muted); }
.legend i.no { background: var(--miss); height: 6px; }
.legend i.rest { height: 2px; width: 6px; background: var(--faint); }
.legend i.empty { background: var(--line); }

.streaks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.streaks div { padding: 4px 0; }
.streaks strong { display: block; font: 400 40px/1 var(--serif); font-variation-settings: 'SOFT' 50; font-variant-numeric: tabular-nums; color: var(--c); }
.streaks span { font-size: 13px; color: var(--muted); }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reasons li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.reasons .count { font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.reasons .track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.reasons .track i { display: block; height: 100%; border-radius: 4px; background: var(--miss); opacity: 0.8; }
.empty-note { color: var(--muted); font-size: 15px; padding: 6px 0; }

/* ---- weekly ------------------------------------------------------------ */
.figures { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; border-top: 1px solid var(--line); }
.figure { padding: 18px 0 18px; border-bottom: 1px solid var(--line); }
.figure:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.figure:nth-child(even) { padding-left: 18px; }
.figure .big { font: 400 46px/1 var(--serif); font-variation-settings: 'SOFT' 50; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.figure .big small { font-size: 22px; color: var(--muted); margin-left: 1px; }
.figure .lbl { margin-top: 8px; font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.figure .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.figure.hit .big { color: var(--c); }

.nudges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nudges li {
  position: relative; padding: 14px 16px 14px 44px;
  border-radius: var(--radius); background: var(--focus-tint);
  font: 450 17px/1.35 var(--serif); font-variation-settings: 'SOFT' 50;
}
.nudges li svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; color: var(--focus); }

.field { padding: 20px 0; border-top: 1px solid var(--line); }
.field:last-of-type { border-bottom: 1px solid var(--line); }
.field > label, .field > .label { display: block; font: 450 19px/1.3 var(--serif); font-variation-settings: 'SOFT' 50; margin-bottom: 14px; }
.field .help { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent;
  display: grid; place-items: center;
  transition: transform 200ms var(--spring), background 160ms;
}
.stepper button:active { transform: scale(0.9); background: var(--raised); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 64px; text-align: center; font: 400 34px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stepper output.unset { color: var(--faint); }
.stepper .of { color: var(--muted); font-size: 15px; margin-left: 4px; }
.stepper .warn { color: var(--miss); font-size: 14px; margin-left: 8px; }
.seg.choice button[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: var(--bg); }
.seg.choice button.bad[aria-pressed='true'] { background: var(--miss-tint); border-color: var(--miss); color: var(--miss); }
.seg.choice button { font-size: 15px; font-weight: 500; min-height: var(--tap); }
.seg.scale button { font: 400 22px/1 var(--serif); }
.reveal { margin-top: 14px; }

.weeks a.row .wk-title { font: 450 17px/1.2 var(--serif); font-variation-settings: 'SOFT' 50; }
.weeks a.row .wk-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.weeks .mark { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--family); }
.weeks .mark.open { color: var(--faint); }

/* ---- settings ---------------------------------------------------------- */
.sched { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.sched:last-child { border-bottom: 1px solid var(--line); }
.sched-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sched-head h3 { margin: 0; font: 450 19px/1.2 var(--serif); font-variation-settings: 'SOFT' 50; display: flex; align-items: center; gap: 10px; }
.sched-body { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.sched.off .sched-body { opacity: 0.4; }
.sched input[type='time'] {
  width: auto; min-width: 118px; min-height: 48px; padding: 8px 12px;
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.days { display: flex; gap: 4px; }
.days button {
  width: 34px; height: 48px; border: 0; border-radius: 10px;
  background: transparent; color: var(--faint);
  font: 600 13px/1 var(--sans);
  transition: background 160ms, color 160ms;
}
.days button[aria-pressed='true'] { background: var(--c-tint); color: var(--c); }

.switch {
  position: relative; width: 52px; height: 32px; flex: none;
  border: 0; border-radius: 99px; background: var(--raised);
  transition: background 200ms;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--muted);
  transition: transform 260ms var(--spring), background 200ms;
}
[aria-checked='true'] > .switch { background: var(--c, var(--family)); }
[aria-checked='true'] > .switch::after { transform: translateX(20px); background: var(--bg); }
.switch-hit { min-width: var(--tap); min-height: var(--tap); display: grid; place-items: center; margin: -10px -4px -10px 0; background: none; border: 0; padding: 0; }

.notice { padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 15px; }
.notice strong { color: var(--text); font-weight: 600; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.status-line .dot { width: 8px; height: 8px; }

/* ---- onboarding -------------------------------------------------------- */
.hero { padding-top: 9vh; }
.hero .mark { width: 72px; height: 72px; border-radius: 18px; }
.hero h1.display { font-size: 48px; margin-top: 28px; }
.hero .lede { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 30ch; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 16px/1 var(--serif); background: var(--raised);
}
.steps .glyph { display: inline-grid; place-items: center; vertical-align: -6px; width: 28px; height: 28px; border-radius: 8px; background: var(--raised); margin: 0 2px; }
.steps .glyph svg { width: 18px; height: 18px; }
.lockup { display: flex; align-items: center; gap: 12px; font: 500 15px/1 var(--sans); color: var(--muted); }

.preview-moments { list-style: none; margin: 30px 0 0; padding: 0; }
.preview-moments li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.preview-moments li:last-child { border-bottom: 1px solid var(--line); }
.preview-moments time { width: 76px; flex: none; color: var(--c); font-weight: 600; font-variant-numeric: tabular-nums; }
.preview-moments span { font: 450 18px/1.3 var(--serif); font-variation-settings: 'SOFT' 50; }

/* ---- toast ------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); z-index: 50;
  transform: translate(-50%, -20px); opacity: 0;
  padding: 12px 18px; border-radius: 99px;
  background: var(--text); color: var(--bg);
  font: 600 15px/1 var(--sans);
  transition: transform 300ms var(--spring), opacity 200ms;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
