/* Lead Better · styles. Visual direction pinned to UI_Inspo.png. Hex values are placeholders. */
:root {
  --paper: #FAFAF8; --ink: #0E0E10; --ink-2: #3A3A40; --mute: #66666B; --rule: #E4E4E0;
  --coral: #FF4B3E; --magenta: #FF3D8B; --cyan: #35C8E0; --sky: #BFE7F3;
  --night: #111114; --on-night: #F4F4F1; --on-night-2: #B4B4BA;
  --danger: #B42318;
  --glass: rgba(250, 250, 248, .74); --glass-solid: #F2F2EF; --glass-line: rgba(255, 255, 255, .78);
  --glass-shadow: 0 12px 32px -16px rgba(14, 14, 16, .30), 0 1px 2px rgba(14, 14, 16, .06);
  --wash-strength: 1;
  --f-display: "Archivo", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 430px; --pad: 20px; --tabbar-h: 74px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0E10; --ink: #F3F3EF; --ink-2: #CACACF; --mute: #9E9EA5; --rule: #2A2A30;
    --night: #1B1B21; --on-night: #F4F4F1; --on-night-2: #B4B4BA; --danger: #FF8A80;
    --glass: rgba(24, 24, 28, .70); --glass-solid: #1A1A1F; --glass-line: rgba(255, 255, 255, .10);
    --glass-shadow: 0 14px 36px -16px rgba(0, 0, 0, .7);
    --wash-strength: .58;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E0E10; --ink: #F3F3EF; --ink-2: #CACACF; --mute: #9E9EA5; --rule: #2A2A30;
  --night: #1B1B21; --danger: #FF8A80;
  --glass: rgba(24, 24, 28, .70); --glass-solid: #1A1A1F; --glass-line: rgba(255, 255, 255, .10);
  --glass-shadow: 0 14px 36px -16px rgba(0, 0, 0, .7); --wash-strength: .58; color-scheme: dark;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; min-height: 100%; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
::selection { background: color-mix(in srgb, var(--cyan) 42%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
button { -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg circle[r="1.3"] { fill: currentColor; }
em { font-style: italic; }
p { margin: 0; }

/* ---------- color wash ---------- */
.wash {
  position: fixed; top: 0; left: 50%; translate: -50% 0; width: min(100%, var(--col)); height: 74svh;
  pointer-events: none; z-index: 0; overflow: hidden; opacity: var(--wash-strength);
  -webkit-mask-image: linear-gradient(#000 0 38%, transparent 97%); mask-image: linear-gradient(#000 0 38%, transparent 97%);
}
.wash__in { position: absolute; inset: -10%; filter: blur(30px) saturate(1.15); transform-origin: 75% 10%; }
.blob {
  position: absolute; aspect-ratio: 1; border-radius: 50%; opacity: 0; translate: -50% -50%;
  background: radial-gradient(circle, var(--c) 0 30%, color-mix(in srgb, var(--c) 55%, transparent) 50%, transparent 70%);
  transition: opacity 1.6s ease, left 2s var(--ease), top 2s var(--ease), width 2s var(--ease);
  animation: drift var(--d) ease-in-out var(--dl) infinite alternate; will-change: transform;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(7%, 5%) scale(1.07); }
  66% { transform: translate(-6%, 7%) scale(.95); }
  100% { transform: translate(5%, -6%) scale(1.05); }
}
.wash.is-bloom .wash__in { animation: bloom 1.8s var(--ease); }
@keyframes bloom { 0% { transform: scale(1); } 35% { transform: scale(1.28); filter: blur(24px) saturate(1.6); } 100% { transform: scale(1); } }

/* ---------- column ---------- */
#app { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; min-height: 100svh; }
@media (min-width: 600px) {
  .wash { left: 0; translate: none; width: 100%; height: 100vh; -webkit-mask-image: none; mask-image: none; }
  #app {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 30%, transparent) 0, color-mix(in srgb, var(--paper) 30%, transparent) 300px, var(--paper) 560px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 40px 90px -40px rgba(0, 0, 0, .4);
  }
  .tabbar, .sheet__panel { border-left: 1px solid var(--glass-line); border-right: 1px solid var(--glass-line); }
}

/* ---------- glass ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase;
  letter-spacing: -.02em; line-height: .88; font-size: clamp(46px, 13.6vw, 60px);
  margin: 8px 0 20px; text-wrap: balance; overflow-wrap: anywhere; hyphens: manual;
}
.display--l { font-size: clamp(40px, 11.5vw, 52px); margin: 10px 0 0; }
.display--m { font-size: clamp(34px, 10vw, 44px); margin: 10px 0 12px; }
.display--s { font-size: clamp(26px, 7.6vw, 32px); margin: 6px 0 10px; line-height: .92; }
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .03em .08em; margin: -.2em -.03em -.08em; }
.display .w > span { display: inline-block; animation: wordUp .95s var(--ease) both; animation-delay: calc(var(--i) * 42ms + 60ms); }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
.lbl { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.labels .lbl { white-space: normal; overflow-wrap: anywhere; }
.lbl--mute { color: var(--mute); }
.lbl--draft { color: var(--mute); }
.labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 4px; }
.lead { font-size: 19px; line-height: 1.45; font-weight: 450; margin: 0 0 22px; text-wrap: pretty; }
.body { margin: 0 0 16px; text-wrap: pretty; }
.note { font-size: 15px; line-height: 1.5; color: var(--mute); margin: 0 0 16px; }
.note--bible { margin-top: 2px; }
.pull { font-size: 22px; line-height: 1.3; font-weight: 600; font-stretch: 88%; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--ink); text-wrap: balance; }
.refs { font-family: var(--f-display); font-weight: 700; font-stretch: 78%; text-transform: uppercase; font-size: 22px; line-height: 1.1; margin: 0 0 4px; letter-spacing: .005em; }
.sc { font-variant: small-caps; letter-spacing: .04em; }

/* ---------- motion ---------- */
.rv { animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 65ms + 120ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.view { animation: fadeOnly .32s ease both; }
.is-static .rv, .is-static .display .w > span, .is-static .view, .is-static .seg.is-on i, .is-static .bar i { animation: none; }

/* ---------- chrome ---------- */
.screen--flow { min-height: 100svh; display: flex; flex-direction: column; }
.screen--flow .main { flex: 1; display: flex; flex-direction: column; }
.main { padding: 16px var(--pad) 24px; position: relative; }
.main--tab { padding-bottom: calc(var(--tabbar-h) + 28px); }
.topbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 20;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px;
  margin: 8px 12px 0; padding: 4px; border-radius: 999px;
}
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; transition: background .2s, transform .15s; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--blank { pointer-events: none; }
.icon-btn--sm { flex: none; }
.segs { display: flex; gap: 4px; align-items: center; }
.seg { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.seg i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.seg.is-done i, .seg.is-on i { width: 100%; }
.seg.is-on i { animation: segIn .9s var(--ease) both .15s; }
@keyframes segIn { from { width: 0; } }
.foot {
  position: sticky; bottom: 0; z-index: 10; margin-top: auto; padding: 22px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--paper) 60%, color-mix(in srgb, var(--paper) 0%, transparent));
}
.main--tab .foot { position: static; background: none; padding: 14px 0 0; margin-top: 18px; }

.pill {
  width: 100%; min-height: 56px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 24px;
  font: 600 16.5px/1.2 var(--f-body); font-stretch: 100%; letter-spacing: .005em; text-align: left; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s, box-shadow .2s;
}
.pill:hover { box-shadow: 0 10px 24px -12px rgba(14, 14, 16, .45); }
.pill:active { transform: scale(.972); }
.pill:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; }
.pill__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.pill:hover .pill__arrow { transform: translateX(2px); }
.pill__arrow svg { width: 20px; height: 20px; }
.link { background: none; border: 0; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font: 500 15px var(--f-body); min-height: 44px; padding: 0 6px; cursor: pointer; align-self: flex-start; }
.link--center { display: block; margin: 8px auto 0; align-self: center; }
.chip { white-space: nowrap; flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-btn { min-height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 0 16px; font: 500 14.5px var(--f-body); display: inline-flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .2s; }
.chip-btn:active { transform: scale(.96); }
.chip-btn svg { width: 18px; height: 18px; }
.chip-btn--quiet { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.chip-btn--danger { border-color: var(--danger); color: var(--danger); }

.tabbar {
  position: fixed; z-index: 30; bottom: 0; left: 50%; translate: -50% 0; width: min(100%, var(--col));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; border-bottom: 0;
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; background: none; border: 0; border-radius: 16px; color: var(--ink-2); font: 500 12px var(--f-body); cursor: pointer; transition: color .2s, background .2s; }
.tab svg { width: 24px; height: 24px; }
.tab.is-on { color: var(--ink); font-weight: 600; }
.tab.is-on::after { content: ""; position: absolute; bottom: 3px; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.tab:active { background: color-mix(in srgb, var(--ink) 7%, transparent); }

#toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  translate: -50% 16px; width: min(calc(100% - 32px), 398px); opacity: 0; pointer-events: none;
  border-radius: 18px; padding: 14px 16px; font-size: 15.5px; line-height: 1.4; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  transition: opacity .3s, translate .45s var(--ease);
}
#toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast__btn { background: none; border: 0; color: inherit; font: 600 15.5px/1.4 var(--f-body); text-align: left; width: 100%; min-height: 44px; cursor: pointer; padding: 0; }

/* ---------- lists and rows ---------- */
.rows { border-top: 1px solid var(--rule); margin: 4px 0 0; }
.row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; row-gap: 4px; align-items: center;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 18px 2px; color: var(--ink); cursor: pointer; font: inherit;
  transition: background .2s;
}
.row:active { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.row > .lbl { grid-row: 1 / span 2; align-self: start; padding-top: 7px; }
.row__big { font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: 44px; line-height: .9; letter-spacing: -.015em; }
.row__big--s { font-size: 24px; line-height: .95; }
.row__sub { grid-column: 2; font-size: 14.5px; color: var(--mute); line-height: 1.4; }
.row__mark { grid-row: 1 / span 2; grid-column: 3; width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); display: grid; place-items: center; color: transparent; transition: background .2s, color .2s; }
.row__mark svg { width: 18px; height: 18px; }
.row.is-on .row__mark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.row--keep .row__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.numbered, .lines, .steps, .checks, .base-list, .rail { list-style: none; padding: 0; margin: 0; }
.numbered { margin: 4px 0 24px; border-top: 1px solid var(--rule); }
.numbered li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.45; }
.numbered .lbl, .lines .lbl { padding-top: 3px; }

/* ---------- setup ---------- */
.steps { border-top: 1px solid var(--rule); margin: 0 0 14px; }
.step-row { display: grid; grid-template-columns: 42px 40px 1fr; gap: 6px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.step-row__ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); display: grid; place-items: center; }
.step-row .lbl { padding-top: 10px; }
.step-row > span:last-child { padding-top: 8px; }
.callout { padding: 16px; border-radius: 18px; margin: 0 0 18px; display: grid; gap: 12px; justify-items: start; }
.qr-card { display: grid; grid-template-columns: 148px 1fr; gap: 16px; padding: 16px; border-radius: 22px; align-items: center; margin: 0 0 16px; }
.qr { width: 148px; height: 148px; border-radius: 10px; display: block; stroke: none; }
.qr-card__side { min-width: 0; }
.url { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; word-break: break-all; margin: 6px 0 12px; color: var(--ink-2); }
@media (max-width: 370px) { .qr-card { grid-template-columns: 1fr; justify-items: start; } }
.home-glyph { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 22px; }
.home-glyph svg { width: 44px; height: 44px; stroke-width: 1.3; }
.statement { font-size: 26px; line-height: 1.24; font-weight: 600; font-stretch: 92%; margin: 10px 0 28px; min-height: 4.1em; text-wrap: balance; }
.rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate {
  position: relative; aspect-ratio: 1; min-height: 52px; max-height: 72px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 800 26px var(--f-display); font-stretch: 70%; cursor: pointer; transition: transform .15s, background .2s, color .2s; display: grid; place-items: center; padding: 0;
}
.rate:active { transform: scale(.92); }
.rate.is-on { background: var(--ink); color: var(--paper); }
.rates--sm { max-width: 320px; }
.rate--sm { min-height: 44px; font-size: 20px; }
.rate.is-base::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); translate: -50% 0; }
.rates__ends { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 12px 0 22px; }

/* ---------- night section ---------- */
.night { background: var(--night); color: var(--on-night); border-radius: 26px; padding: 22px 20px 24px; margin: 0 0 20px; }
.night .lbl { color: var(--on-night); }
.night__big { font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(30px, 9vw, 38px); line-height: .94; letter-spacing: -.015em; margin: 12px 0 0; text-wrap: balance; }
.night__mid { font-size: 18px; line-height: 1.45; margin: 10px 0 0; }
.night__ref { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 0; color: var(--on-night-2); }
.verse { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.verse p { font-size: 18px; line-height: 1.45; }
.verse cite { display: block; margin-top: 8px; font: normal 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
@media (prefers-color-scheme: dark) { .night { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); } }

/* ---------- today ---------- */
.hero { padding: 6px var(--pad) 0; position: relative; }
.hero__top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.stat { display: flex; align-items: flex-end; margin: 8px 0 0 -4px; font-family: var(--f-display); font-weight: 800; font-stretch: 62%; line-height: .78; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__n { font-size: clamp(140px, 48vw, 200px); color: transparent; -webkit-text-stroke: 1.8px var(--ink); }
.stat__of { font-size: clamp(56px, 18vw, 78px); color: transparent; -webkit-text-stroke: 1.2px var(--ink); margin-left: 6px; padding-bottom: .12em; }
@supports not (-webkit-text-stroke: 1px black) { .stat span { color: var(--ink); } }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 18px; }
.banner { display: flex; align-items: center; gap: 4px; border-radius: 18px; padding: 4px 4px 4px 14px; margin: 0 0 14px; }
.banner__go { flex: 1; display: flex; align-items: center; gap: 12px; background: none; border: 0; text-align: left; color: var(--ink); font: 500 15px/1.35 var(--f-body); min-height: 52px; cursor: pointer; padding: 0; }
.today { border-radius: 26px; padding: 18px 18px 18px; margin: 0 0 18px; }
.today__msg { font-size: 17px; line-height: 1.45; }
.today__sub { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.today .pill { margin-top: 18px; }

/* ---------- path ---------- */
.page-head { padding: 18px var(--pad) 0; }
.page-head .display { margin-bottom: 12px; }
.bar { height: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 2px; overflow: hidden; margin: 12px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--magenta), var(--cyan)); animation: barIn 1.3s var(--ease) both .2s; }
@keyframes barIn { from { width: 0; } }
.group { margin: 22px 0 6px; }
.group.night { padding-top: 20px; }
.rail { position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; left: 21px; top: 34px; width: 2px; border-radius: 1px; }
.rail::before { bottom: 34px; background: var(--rule); }
.rail::after { height: calc((100% - 68px) * var(--fill)); background: linear-gradient(var(--coral), var(--magenta), var(--cyan)); transition: height 1.2s var(--ease); }
.node {
  position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 44px 40px 1fr; column-gap: 10px; row-gap: 3px; align-items: center;
  text-align: left; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); cursor: pointer; font: inherit; min-height: 68px;
}
.node > .lbl { grid-row: 1 / span 2; }
.node__dot { grid-row: 1 / span 2; position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink); overflow: hidden; }
.node__dot svg { width: 18px; height: 18px; position: relative; z-index: 1; transition: opacity .4s .3s; }
.node__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: scale(0); background: radial-gradient(circle at 32% 28%, var(--sky), transparent 55%), conic-gradient(from 210deg, var(--coral), var(--magenta), var(--cyan), var(--coral)); transition: transform .8s var(--ease); }
.node__title { font-family: var(--f-display); font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: 21px; line-height: 1; letter-spacing: -.005em; }
.node__state { grid-column: 3; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.node--collected .node__dot { border-color: transparent; color: var(--ink); }
.node--collected .node__dot::before { transform: scale(1); }
.node.is-pre .node__dot { border-color: var(--ink); }
.node.is-pre .node__dot::before { transform: scale(0); }
.node.is-pre .node__dot svg { opacity: 0; }
.node.is-landed .node__dot { animation: pop .7s var(--ease); }
@keyframes pop { 35% { transform: scale(1.22); } }
.node--current .node__dot { background: var(--ink); color: var(--paper); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 60%, transparent); } 75%, 100% { box-shadow: 0 0 0 14px transparent; } }
.node--current .node__state { color: var(--ink); }
.node--locked .node__dot, .node--tomorrow .node__dot { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--mute); }
.node--soon .node__dot { border-style: dashed; border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.node--soon .node__title, .node--locked .node__title, .node--tomorrow .node__title { color: var(--ink-2); }
.node--review .node__title { font-size: 18px; }
.night .node { color: var(--on-night); border-color: rgba(255, 255, 255, .12); }
.night .node__dot { background: var(--night); border-color: rgba(255, 255, 255, .45); }
.night .node__title { color: var(--on-night); }
.night .node__state { color: var(--on-night-2); }
.night .rail::before { background: rgba(255, 255, 255, .16); }
.group__head { margin-bottom: 2px; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, .38); border: 0; padding: 0; animation: fadeOnly .3s both; cursor: pointer; }
.sheet__panel { position: relative; width: min(100%, var(--col)); border-radius: 28px 28px 0 0; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheetUp .55s var(--ease) both; background: color-mix(in srgb, var(--paper) 90%, transparent); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__panel > p.lbl { display: block; margin: 14px 0 4px; }
.sheet__panel .lead { margin-bottom: 4px; }
.sheet__ref { font-family: var(--f-display); font-weight: 700; font-stretch: 78%; text-transform: uppercase; font-size: 22px; margin: 2px 0 22px; }

/* ---------- lesson ---------- */
.passage { border-radius: 22px; padding: 16px 18px 18px; margin: 4px 0 14px; }
.passage__title { font-style: italic; color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
.passage__text { font-size: 17px; line-height: 1.64; margin: 8px 0 0; text-wrap: pretty; }
.passage__text sup { font: 500 10px var(--f-mono); color: var(--ink-2); margin: 0 3px 0 1px; vertical-align: super; line-height: 0; }
.shift { display: grid; margin: 2px 0 22px; }
.shift__card { border-radius: 22px; padding: 16px 18px 20px; }
.shift__card--to { border: 1.5px solid var(--ink); }
.shift__text { font-size: 23px; line-height: 1.26; font-weight: 600; font-stretch: 90%; margin: 8px 0 0; text-wrap: balance; }
.shift__card:first-child .shift__text { color: var(--ink-2); }
.shift__arrow { display: grid; place-items: center; height: 58px; }
.shift__arrow svg { width: 30px; height: 30px; stroke-width: 1.6; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1s var(--ease) .5s forwards, bob 2.6s ease-in-out 1.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translateY(5px); } }
.teachers { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.teacher { font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; }

.flip { display: block; width: 100%; padding: 0; border: 0; background: none; perspective: 1400px; cursor: pointer; margin: 4px 0 24px; text-align: left; color: var(--ink); font: inherit; border-radius: 24px; }
.flip__in { display: grid; position: relative; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.3, .7, .2, 1); }
.flip.is-on .flip__in { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; min-height: 290px; padding: 18px 18px 16px; border-radius: 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face--back { transform: rotateY(180deg); background: var(--night); color: var(--on-night); }
.face--back .lbl { color: var(--on-night); }
.face__sit { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.face__quote { font-family: var(--f-display); font-weight: 800; font-stretch: 74%; font-size: clamp(26px, 7.4vw, 31px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.face__quote--dont { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--coral); color: var(--ink-2); }
.lbl--dont, .lbl--say { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.lbl--dont::before, .lbl--say::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.lbl--dont::before { background: var(--coral); }
.lbl--say::before { background: var(--cyan); }
.face__hint { margin-top: auto; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.face--back .face__hint { color: var(--on-night-2); }
.why { display: grid; gap: 16px; margin: 0 0 26px; }
.why__col { border-top: 1px solid var(--ink); padding-top: 10px; }
.why__col p { margin: 8px 0 0; }
.bottomline { margin: 0 0 6px; padding-top: 18px; border-top: 1px solid var(--rule); }
.checks { border-top: 1px solid var(--rule); margin: 0 0 22px; }
.check { width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; text-align: left; padding: 14px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: inherit; font-size: 16.5px; line-height: 1.45; cursor: pointer; min-height: 44px; }
.check__box { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--ink); display: grid; place-items: center; color: transparent; transition: background .2s, color .2s, transform .15s; }
.check__box svg { width: 18px; height: 18px; }
.check:active .check__box { transform: scale(.9); }
.check.is-on .check__box { background: var(--ink); color: var(--paper); }
.timer { border-radius: 24px; padding: 16px 18px 18px; margin: 0 0 6px; }
.timer__line { font-size: 19px; line-height: 1.35; font-weight: 600; font-stretch: 90%; margin: 8px 0 14px; text-wrap: balance; }
.timer__row { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-width: 6; }
.ring__fg { stroke: var(--ink); stroke-width: 6; stroke-dasharray: 326.73; stroke-dashoffset: 0; }
.ring__n { position: absolute; inset: 0; display: grid; place-items: center; font: 800 42px var(--f-display); font-stretch: 64%; font-variant-numeric: tabular-nums; }
.timer__btns { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.timer__msg { font-size: 14.5px; color: var(--ink-2); margin: 14px 0 0; }
.q { margin: 0 0 18px; }
.q__label { display: block; font-size: 17px; font-weight: 600; line-height: 1.38; margin: 0 0 8px; }
.field {
  display: block; width: 100%; min-height: 104px; resize: none; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 16px;
  padding: 14px; font: 400 17px/1.5 var(--f-body); color: var(--ink); background: color-mix(in srgb, var(--paper) 88%, transparent); caret-color: var(--coral);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--mute); }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 40%, transparent); }
.saved { font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.sharpen { font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(40px, 12vw, 54px); line-height: .92; letter-spacing: -.02em; margin: 6px 0 20px; text-wrap: balance; }

/* ---------- cards, journal, review ---------- */
.deck { margin: 8px 0 8px; }
.sils { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 10px; }
.sil { aspect-ratio: 3 / 4; border: 1px dashed color-mix(in srgb, var(--ink) 32%, transparent); border-radius: 10px; display: grid; place-items: center; font: 800 21px var(--f-display); font-stretch: 64%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.empty { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 18px 0; }
.entry { padding: 18px 0 6px; border-top: 1px solid var(--ink); margin-top: 14px; }
.keep { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 16px; margin: 0 0 12px; }
.lines { border-top: 1px solid var(--rule); margin: 4px 0 8px; }
.lines li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lines__t { font-family: var(--f-display); font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 24px; line-height: .98; text-wrap: balance; }
.rerate { padding: 14px 0 22px; border-top: 1px solid var(--rule); }
.rerate__s { font-size: 16px; margin: 6px 0 12px; }

/* ---------- settings ---------- */
.set-list { border-top: 1px solid var(--rule); margin: 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule); width: 100%; background: none; color: var(--ink); font: inherit; text-align: left; }
.set-row--btn { cursor: pointer; }
.set-row--btn svg { width: 20px; height: 20px; }
.set-row__k { font-weight: 600; font-size: 16.5px; display: flex; flex-direction: column; gap: 2px; }
.set-row__k small { font-weight: 400; font-size: 13.5px; color: var(--mute); }
.set-row__k--danger { color: var(--danger); }
.set-row--text, .set-row--danger { display: block; }
.set-row--text p, .set-row--danger p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.set-row__v { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.set-row__btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.set-row--dev { flex-wrap: wrap; }
.seg-ctl { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 2px; flex: none; }
.seg-ctl button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: none; color: var(--ink); font: 500 14.5px var(--f-body); cursor: pointer; }
.seg-ctl .is-on { background: var(--ink); color: var(--paper); }
.switch { width: 52px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .28s var(--ease); }
.switch.is-on { background: var(--ink); }
.switch.is-on i { transform: translateX(20px); }
.base-list { border-top: 1px solid var(--rule); margin-bottom: 8px; }
.base-row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.base-row p { margin: 6px 0 10px; font-size: 16px; }
.dots { display: flex; gap: 6px; align-items: center; }
.dots i { width: 24px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.dots i.is-on { background: var(--ink); }
.dots b { font: 500 12px var(--f-mono); margin-left: 8px; }

/* ---------- collect ghost ---------- */
.ghost { position: fixed; z-index: 70; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; color: var(--ink); overflow: hidden; }
.ghost strong { font-family: var(--f-display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: 40px; line-height: .9; }

/* ---------- small phones ---------- */
@media (max-width: 350px) {
  :root { --pad: 16px; }
  .row__big { font-size: 38px; }
  .timer__row { gap: 12px; }
  .ring { width: 96px; height: 96px; }
  .face__quote { font-size: 25px; }
  .sils { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- reduced motion: fades only, frozen wash ---------- */
.rm .blob { animation: none; }
.rm .wash.is-bloom .wash__in { animation: none; }
.rm .rv, .rm .display .w > span, .rm .view { animation-name: fadeOnly; animation-duration: .3s; animation-delay: 0s; transform: none; }
.rm .shift__arrow svg { animation: none; stroke-dashoffset: 0; }
.rm .node--current .node__dot, .rm .node.is-landed .node__dot { animation: none; }
.rm .seg.is-on i, .rm .bar i { animation: none; }
.rm .sheet__panel { animation: fadeOnly .2s both; }
.rm .pill:active, .rm .rate:active, .rm .chip-btn:active { transform: none; }
.rm .flip__in { transition: none; transform: none !important; }
.rm .face { -webkit-backface-visibility: visible; backface-visibility: visible; transition: opacity .3s; }
.rm .face--back { transform: none; opacity: 0; }
.rm .flip.is-on .face--back { opacity: 1; }
.rm .flip.is-on .face--front { opacity: 0; }
.rm .blob, .rm .node__dot::before, .rm .rail::after { transition-duration: .01s; }
