/* 112 Doorways. Ash and indigo, with a single kumkum-red accent. */

@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/spectral-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/spectral-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/spectral-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mukta-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mukta-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/mukta-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/mukta-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #e7e6e2;          /* ash */
  --surface: #f3f2ef;
  --ink: #1f2147;         /* indigo */
  --muted: #555874;
  --line: #c9c7c1;
  --accent: #a3223a;      /* kumkum */
  --accent-ink: #ffffff;
  --accent-wash: #efdcdc;
  --cal0: #d6d4ce;
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --ui: 'Mukta', 'Segoe UI', system-ui, sans-serif;
  --radius: 0.65rem;
  --nav-h: 4.1rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #131429;
    --surface: #1c1e3b;
    --ink: #e3e1dc;
    --muted: #a3a4bf;
    --line: #34375e;
    --accent: #ec7486;
    --accent-ink: #131429;
    --accent-wash: #2c2142;
    --cal0: #262948;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #131429;
  --surface: #1c1e3b;
  --ink: #e3e1dc;
  --muted: #a3a4bf;
  --line: #34375e;
  --accent: #ec7486;
  --accent-ink: #131429;
  --accent-wash: #2c2142;
  --cal0: #262948;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
#view:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; z-index: 50; font-family: var(--ui); }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header and navigation ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: calc(0.55rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-right: auto; }
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.brand-mark .dot { fill: var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: none; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-btn:hover, .icon-btn[aria-current] { background: var(--surface); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0.3rem max(0.5rem, env(safe-area-inset-left)) calc(0.3rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: 0.35rem 0; text-decoration: none; color: var(--muted);
  font: 600 0.78rem/1.2 var(--ui);
}
.tabs svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs svg .fill { fill: currentColor; stroke: none; }
.tabs a[aria-current='page'] { color: var(--accent); }

@media (min-width: 760px) {
  .tabs { position: static; display: flex; gap: 0.25rem; padding: 0; background: none; border: 0; }
  .tabs a { flex-direction: row; gap: 0.45rem; font-size: 0.98rem; padding: 0.45rem 0.8rem; border-radius: 999px; }
  .tabs svg { width: 1.25rem; height: 1.25rem; }
  .tabs a:hover { color: var(--ink); }
  .tabs a[aria-current='page'] { background: var(--surface); }
}

/* ---------- layout ---------- */
.wrap { max-width: 40rem; margin: 0 auto; padding: 1.5rem max(1rem, env(safe-area-inset-left)) calc(var(--nav-h) + 2.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .wrap { padding-top: 2.5rem; padding-bottom: 4rem; } }
.sub { color: var(--muted); font-size: 0.98rem; }
.meta { color: var(--muted); font: 400 0.95rem/1.4 var(--ui); margin: 0 0 0.35rem; }
.block { margin-top: 2.75rem; }
.block h2 { margin-bottom: 0.3rem; }
.back { display: inline-flex; align-items: center; gap: 0.25rem; font: 600 0.95rem var(--ui); color: var(--muted); text-decoration: none; margin: -0.4rem 0 1rem -0.3rem; padding: 0.4rem 0.3rem; }
.back:hover { color: var(--ink); }
.link { background: none; border: 0; padding: 0.3rem 0; font: 600 0.98rem var(--ui); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--accent); }
.empty { text-align: left; padding: 1.5rem 0; color: var(--muted); }
.empty h1 { color: var(--ink); margin-bottom: 0.5rem; }

/* ---------- buttons, chips, form controls ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.9rem; padding: 0.55rem 1.15rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 600 1rem/1.2 var(--ui); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { min-height: 2.4rem; padding: 0.35rem 0.9rem; font-size: 0.94rem; }
.btn.big { min-width: 8.5rem; min-height: 3.3rem; font-size: 1.1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.3rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 400 0.96rem/1.2 var(--ui); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed='true'], .chip[aria-current='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.more { background: transparent; color: var(--accent); border-style: dashed; }

.check { display: inline-flex; align-items: center; gap: 0.5rem; font: 400 1rem var(--ui); cursor: pointer; min-height: 2.6rem; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; }
.select, .field { display: flex; flex-direction: column; gap: 0.3rem; font: 400 0.95rem var(--ui); color: var(--muted); margin: 0.6rem 0; }
select, input[type='search'], textarea {
  width: 100%; padding: 0.65rem 0.8rem; min-height: 2.8rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
select:focus, input[type='search']:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { font-family: var(--serif); line-height: 1.5; resize: vertical; }

/* radio groups drawn as segmented buttons */
fieldset { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
legend { font: 600 0.95rem var(--ui); color: var(--muted); margin-bottom: 0.5rem; padding: 0; }
.durations, .feelings, .seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.durations legend, .feelings legend, .seg legend { width: 100%; }
.durations label, .feelings label, .seg label { position: relative; cursor: pointer; }
.durations input, .feelings input, .seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.durations span, .feelings span, .seg span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.3rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 400 0.96rem var(--ui);
}
.durations input:checked + span, .feelings input:checked + span, .seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.durations input:focus-visible + span, .feelings input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Today ---------- */
.intro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 0.9rem; margin-bottom: 2rem; font-size: 1rem; }
.intro .actions { margin-top: 0.4rem; }
.hero-label { font: 600 0.98rem var(--ui); color: var(--muted); margin: 0; }
.folio {
  font: italic 400 clamp(5.5rem, 26vw, 9rem)/0.9 var(--serif);
  color: var(--accent); letter-spacing: -0.03em; margin: 0.2rem 0 0.6rem -0.05em;
  font-variant-numeric: oldstyle-nums;
}
.hero h1 { margin-bottom: 0.7rem; }
.gist { font-size: 1.24rem; line-height: 1.55; margin-bottom: 0.6rem; }
.streak { margin-top: 2rem; font: 400 1rem var(--ui); }
.streak a { color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 3px; }
.path-list { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.path-list li { padding: 0.75rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.path-list a { font-weight: 600; text-decoration: none; }
.path-list a:hover { color: var(--accent); }
.path-list span { color: var(--muted); font-size: 0.96rem; }
.path-progress p { margin: 0.4rem 0 0.7rem; }
.dots { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 0.8rem; }
.dots a { display: block; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1.5px solid var(--line); }
.dots li.done a { background: var(--accent); border-color: var(--accent); }
.dots li.next a { border-color: var(--accent); border-width: 2px; }

/* ---------- Paths ---------- */
.path { border-top: 1px solid var(--line); padding: 1.5rem 0 1.3rem; }
.path.active h2::after { content: ' (current)'; font-weight: 400; color: var(--accent); font-size: 1rem; }
.days { list-style: none; padding: 0; margin: 0.6rem 0 1rem; }
.days li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; }
.days a { text-decoration: none; }
.days a:hover { text-decoration: underline; }
.days .day { display: inline-block; min-width: 3.6rem; font: 400 0.9rem var(--ui); color: var(--muted); }
.days li.done a { color: var(--muted); }
.tick { color: var(--accent); }

/* ---------- Library ---------- */
.filters { margin: 1.2rem 0 0.5rem; }
.search input { font-family: var(--ui); font-size: 1.05rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 1.2rem; margin-top: 0.6rem; }
.filter-row .select { flex-direction: row; align-items: center; gap: 0.5rem; margin: 0; }
.filter-row select { width: auto; min-height: 2.5rem; padding: 0.35rem 0.6rem; }
.count { font: 400 0.92rem var(--ui); color: var(--muted); margin: 0.8rem 0 0.2rem; }
.row {
  display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 0.6rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line); text-decoration: none;
}
.row:hover .row-title { color: var(--accent); }
.row-num { font: italic 400 1.5rem/1.1 var(--serif); color: var(--accent); font-variant-numeric: oldstyle-nums; }
.row-body { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.row-gist { color: var(--muted); font-size: 0.97rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.15rem; }
.row-marks { display: flex; gap: 0.2rem; color: var(--accent); padding-top: 0.15rem; }
.mark.fav .i { fill: currentColor; }

/* ---------- Practice detail ---------- */
.practice .folio { font-size: clamp(4.5rem, 20vw, 7rem); }
.practice h1 { margin-bottom: 0.7rem; }
.practice h2 { margin: 1.8rem 0 0.5rem; }
.steps { padding-left: 1.4rem; margin: 0; }
.steps li { margin: 0.35rem 0; padding-left: 0.2rem; }
.steps li::marker { font-family: var(--ui); color: var(--accent); font-weight: 600; }
.steps.small { font-size: 0.98rem; }
.note, .tip { font-style: italic; color: var(--muted); }
.tip { margin-top: 1rem; }
.caution { margin: 1.2rem 0; padding: 0.8rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.98rem; }
.caution.small { font-size: 0.93rem; padding: 0.55rem 0.8rem; }
.where { color: var(--muted); font-size: 0.98rem; margin-top: 1rem; }
.begin { margin-top: 1.6rem; padding: 1.2rem 1.2rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.begin fieldset { margin-top: 0; }
.fav-btn { margin-top: 0.6rem; padding-left: 0.2rem; }
.fav-btn[aria-pressed='true'] { color: var(--accent); }
.fav-btn[aria-pressed='true'] .i { fill: currentColor; }
.history ul, .day-group ul { list-style: none; padding: 0; margin: 0; }
.entry { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 0.8rem; }
.entry-head a { font-weight: 600; text-decoration: none; }
.entry-head a:hover { color: var(--accent); }
.entry-meta { font: 400 0.92rem var(--ui); color: var(--muted); }
.entry-note { margin: 0.3rem 0 0; white-space: pre-wrap; font-size: 0.98rem; }
.entry .link { font-size: 0.88rem; padding: 0.2rem 0; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pager a { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; font-weight: 600; line-height: 1.3; }
.pager a.nx { justify-content: flex-end; text-align: right; }
.pager small { display: block; font: 400 0.85rem var(--ui); color: var(--muted); }
.pager a:hover { color: var(--accent); }

/* ---------- Session ---------- */
body.in-session .bar, body.in-session .tabs { display: none; }
.session {
  min-height: 100vh; min-height: 100dvh; max-width: 36rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(0.6rem + env(safe-area-inset-top)) 1rem calc(1.5rem + env(safe-area-inset-bottom));
}
.s-top { align-self: stretch; display: flex; align-items: center; gap: 0.5rem; }
.s-title { margin: 0; font: 600 1rem/1.3 var(--ui); color: var(--muted); }
.bindu-wrap { position: relative; display: grid; place-items: center; width: min(78vw, 19rem); aspect-ratio: 1; margin: clamp(1rem, 6vh, 3.5rem) 0 1.5rem; }
.bindu {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%);
  transform: scale(var(--scale, 0.82));
  transition: transform 0.2s linear;
}
.bindu .core { position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; border-radius: 50%; background: var(--accent); }
.session[data-state='running'] .bindu:not(.paced) { animation: breathe 11s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.8); } 50% { transform: scale(0.95); } }
.readout { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 7.5rem; }
.clock { font: 400 2.2rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.cue { font: 400 1rem var(--ui); color: var(--muted); margin-top: 0.3rem; min-height: 1.5em; }
.s-steps { max-width: 30rem; padding-left: 1.3rem; margin: 0 0 1rem; color: var(--ink); font-size: 1rem; }
.s-steps li { margin: 0.25rem 0; }
.s-steps li::marker { color: var(--accent); font-family: var(--ui); }
.session[data-state='running'] .s-steps, .session[data-state='running'] .s-caution { display: none; }
.s-caution { max-width: 30rem; font-size: 0.93rem; color: var(--muted); }
.s-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.s-pacer { margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); max-width: 30rem; }
.s-note { font: 400 0.9rem var(--ui); color: var(--muted); margin-top: 0.4rem; }
.session[data-state='running'] .s-pacer, .session[data-state='running'] .s-note { opacity: 0.6; }

/* ---------- Reflection ---------- */
.reflect h1 { margin-bottom: 0.4rem; }
.reflect h1:focus { outline: none; }
.reflect .field { margin-top: 1.3rem; }

/* ---------- Moments ---------- */
.moments { margin-bottom: 0.5rem; }
.moment { margin-top: 2rem; scroll-margin-top: 4.5rem; }
.moment > h2 { margin-bottom: 0.8rem; }
.moment > h2:focus { outline: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.4rem; }
.card .meta { margin-bottom: 0.15rem; }
.card .actions { margin-top: 0.8rem; gap: 0.4rem 0.8rem; }

/* ---------- Journal ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.3rem 0 1.5rem; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.85rem; }
.stats dt { font: 400 0.85rem/1.25 var(--ui); color: var(--muted); }
.stats dd { margin: 0.15rem 0 0; font: 600 1.9rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
.stats small { font: 400 0.95rem var(--ui); color: var(--muted); }
.cal { margin: 0 0 2rem; }
.cal-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-template-columns: repeat(12, 1fr); gap: 3px; max-width: 22rem; }
.cal-grid span { aspect-ratio: 1; border-radius: 3px; background: var(--cal0); }
.cal-grid .lv1 { background: color-mix(in srgb, var(--accent) 38%, var(--cal0)); }
.cal-grid .lv2 { background: color-mix(in srgb, var(--accent) 70%, var(--cal0)); }
.cal-grid .lv3 { background: var(--accent); }
.cal-grid .lvf { background: transparent; }
.cal figcaption { font: 400 0.88rem var(--ui); color: var(--muted); margin-top: 0.5rem; }
.day-group { margin-top: 1.6rem; }
.day-group h2 { font-size: 1.05rem; font-family: var(--ui); font-weight: 600; color: var(--muted); margin-bottom: 0.2rem; }

/* ---------- Settings / About ---------- */
.settings section { border-top: 1px solid var(--line); padding: 1.3rem 0 1rem; margin-top: 1.2rem; }
.settings h2 { margin-bottom: 0.4rem; }
.range-row { display: flex; align-items: center; gap: 0.8rem; }
input[type='range'] { flex: 1; accent-color: var(--accent); min-height: 2.4rem; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.prose h2 { margin: 2rem 0 0.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  max-width: min(92vw, 30rem); padding: 0.7rem 1.1rem; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font: 400 0.98rem/1.35 var(--ui);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .toast { bottom: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .bindu { transition: none; }
}
