/* =====================================================================
   Sage — design system
   Instrument Serif for display and Scripture, DM Mono for everything you
   read and tap. Neutral blocks with ink outlines, pill buttons, a ticker
   and a four-point star. Colour is kept for meaning: the jar's water, the
   heatmaps, habits, binders and the church year.
   ===================================================================== */
:root {
  --serif: "Instrument Serif", "Didot", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px; --r-sm: 12px; --bw: 1.5px;
  --lit-purple: #6E5A86; --lit-white: #F4F1EA; --lit-green: #6F8F5E; --lit-red: #A9473E;
}
:root, [data-theme="linen"] {
  --bg: #F3EEE4; --surface: #FBF8F2; --surface-2: #ECE5D8; --oat: #E4DACA; --sand: #D6C8B1; --taupe: #B9A88F;
  --ink: #1F1C18; --ink-2: #4A433B; --muted: #7D7366; --line: #1F1C18; --hair: #DDD3C3;
  --water: #7FA6B6; --water-2: #B3CBD4; --sage: #8FA685; --ochre: #C79B52; --rose: #C48F84; --plum: #94809E; --clay: #B5876A;
  --red: #B5483E; --amber: #C58B2E; --green: #5E8A57;
}
[data-theme="stone"] {
  --bg: #EFEEEA; --surface: #F9F9F6; --surface-2: #E4E2DC; --oat: #DEDCD5; --sand: #CBC8BF; --taupe: #A9A59A;
  --ink: #22221F; --ink-2: #47463F; --muted: #77756C; --line: #22221F; --hair: #D8D6CE;
  --water: #7C9FB0; --water-2: #B0C6D0; --sage: #8DA38A; --ochre: #BF9A58; --rose: #BE8F86; --plum: #8F84A0; --clay: #AC8970;
  --red: #B0473F; --amber: #BD8A33; --green: #5B8758;
}
[data-theme="parchment"] {
  --bg: #F1E9D8; --surface: #FAF5EA; --surface-2: #E8DCC4; --oat: #E2D3B8; --sand: #D1BC98; --taupe: #B39B76;
  --ink: #2B2219; --ink-2: #54473A; --muted: #85735E; --line: #2B2219; --hair: #DCCDB1;
  --water: #7E9FA8; --water-2: #B5C7C6; --sage: #8E9F75; --ochre: #C08F42; --rose: #B98572; --plum: #8C7690; --clay: #AE7B57;
  --red: #A9452F; --amber: #B97E24; --green: #5F7F48;
}
[data-theme="charcoal"] {
  --bg: #1C1B19; --surface: #252421; --surface-2: #2E2C29; --oat: #34322E; --sand: #45423D; --taupe: #6A665E;
  --ink: #EDE8DE; --ink-2: #CFC8BB; --muted: #9A9387; --line: #D9D2C5; --hair: #3A3833;
  --water: #8FB8C8; --water-2: #5E7F8C; --sage: #A5BC9B; --ochre: #D6AE68; --rose: #D3A096; --plum: #AE9AB8; --clay: #C99B7E;
  --red: #E07A6F; --amber: #E2AE57; --green: #8DBB84; --lit-white: #D8D3C8;
}
[data-theme="espresso"] {
  --bg: #1F1813; --surface: #28201A; --surface-2: #322820; --oat: #3B3027; --sand: #4D3F33; --taupe: #7A6655;
  --ink: #F1E6D6; --ink-2: #D8C9B4; --muted: #A39079; --line: #E3D4BE; --hair: #42362B;
  --water: #93B5BE; --water-2: #5F7C83; --sage: #AEBB91; --ochre: #DDB06A; --rose: #D8A08C; --plum: #B79CB5; --clay: #D19C76;
  --red: #E58368; --amber: #E7B25C; --green: #9DBD82; --lit-white: #DCCFBD;
}
.c-water { --c: var(--water); } .c-sage { --c: var(--sage); } .c-ochre { --c: var(--ochre); } .c-rose { --c: var(--rose); } .c-plum { --c: var(--plum); } .c-clay { --c: var(--clay); } .c-ink { --c: var(--ink); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 14.5px/1.6 var(--mono); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1; }
h1 { font-size: clamp(3.2rem, 9vw, 6.2rem); letter-spacing: -.03em; }
h2, .h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; margin: 0; }
h3 { font-size: 1.55rem; }
em, .it { font-style: italic; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.ic { width: 18px; height: 18px; flex: none; }
.label { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.spark { width: 22px; height: 22px; fill: var(--oat); stroke: var(--line); stroke-width: 1.6; flex: none; vertical-align: -5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); border: 1px solid var(--line); flex: none; }
.bar { position: relative; height: 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; background: var(--water); border-right: 1px solid var(--line); }
.bar.nt i { background: var(--sage); }
.bar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); text-decoration: none; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .4rem 1.15rem; border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ic { width: 16px; height: 16px; }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { filter: brightness(1.15); }
.btn.on { background: var(--sand); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.ghost-light { background: transparent; color: inherit; border-color: currentColor; }
.btn.danger { color: var(--red); border-color: currentColor; background: transparent; }
.btn.sm { min-height: 32px; padding: .3rem .85rem; font-size: .66rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: var(--bw) solid transparent; border-radius: 999px; background: none; cursor: pointer; color: inherit; flex: none; }
.icon-btn:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.icon-btn.outlined { border-color: var(--line); background: var(--surface); color: var(--ink); }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; }
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: grid; gap: .35rem; align-content: start; }
.field > span { font: 500 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field small { font-size: .7rem; }
.input { width: 100%; min-height: 44px; padding: .55rem .85rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
select.input { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 17px top 52%, right 12px top 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.55; }
.input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--taupe) 60%, transparent); }
.input::placeholder { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: var(--bw) solid var(--line); border-radius: 999px; font: 500 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.chip.sm { padding: .15rem .55rem; font-size: .6rem; border-width: 1px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip .ic { width: 13px; height: 13px; }
.chip .dot { width: 8px; height: 8px; }
.seg { display: inline-flex; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: .45rem .9rem; font: 500 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.seg button + button { border-left: var(--bw) solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-size: .86rem; }
.switch input { appearance: none; width: 44px; height: 26px; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface-2); position: relative; cursor: pointer; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: left .18s; }
.switch input:checked { background: var(--sage); }
.switch input:checked::after { left: 21px; }
.switch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.error-text { color: var(--red); font-size: .82rem; }
.legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; gap: .35rem; align-items: center; }
.legend .ic { width: 13px; height: 13px; }
.lit { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); flex: none; vertical-align: -1px; }
.lit-purple { background: var(--lit-purple); } .lit-white { background: var(--lit-white); } .lit-green { background: var(--lit-green); } .lit-red { background: var(--lit-red); }

/* ---------- Shell ---------- */
.demo-band { background: var(--ink); color: var(--bg); font-size: .72rem; text-align: center; padding: .4rem 1rem; letter-spacing: .05em; }
.demo-band a { color: inherit; }
.top { position: sticky; top: 0; z-index: 40; background: var(--oat); border-bottom: var(--bw) solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .6rem 1.4rem; }
.mono-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--ink); color: var(--bg); font: italic 400 1.5rem/1 var(--serif); text-decoration: none; flex: none; }
.nav { display: flex; gap: .1rem; flex-wrap: nowrap; margin-left: auto; }
.nav a { padding: .45rem .6rem; border-radius: 999px; font: 500 .66rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; border: var(--bw) solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { background: var(--surface); border-color: var(--line); }
.top-tools { display: flex; gap: .3rem; align-items: center; }
.tabbar { display: none; }
main { max-width: 1280px; margin: 0 auto; padding: 0 1.4rem 6rem; }
@media (max-width: 1220px) {
  .nav { display: none; }
  .top-tools { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--surface); border-top: var(--bw) solid var(--line); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { all: unset; display: grid; justify-items: center; gap: 2px; padding: .35rem 0; font: 500 .58rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: var(--muted); border-radius: 14px; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--bg); background: var(--ink); }
  main { padding: 0 1rem calc(88px + env(safe-area-inset-bottom)); }
}
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.more-grid a { display: grid; justify-items: center; gap: .4rem; padding: 1rem .4rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); text-decoration: none; font: 500 .64rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.more-grid a .ic { width: 24px; height: 24px; }

.ticker { overflow: hidden; border-bottom: var(--bw) solid var(--line); background: var(--ink); color: var(--bg); margin-inline: calc(50% - 50vw); }
.ticker-in { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { white-space: nowrap; padding: .55rem 1.4rem; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ticker span::after { content: "✦"; margin-left: 2.8rem; opacity: .6; }
@keyframes tick { to { transform: translateX(-50%); } }

.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; padding: 2.4rem 0 1.6rem; }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
.page-head .kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding: .3rem .85rem .3rem .5rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--sand); font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); }
.page-head .kicker .spark { width: 18px; height: 18px; fill: var(--surface); }
.page-head .lede { max-width: 56ch; margin: .9rem 0 0; color: var(--ink-2); }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) { .page-head { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 0 1.2rem; } }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding-bottom: .9rem; border-bottom: var(--bw) solid var(--line); }
.tabs a { padding: .5rem 1rem; border: var(--bw) solid var(--line); border-radius: 999px; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.back-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: 1.4rem; font-size: .76rem; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; }

.card { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.2rem 1.3rem; min-width: 0; }
.card > h2, .card-head h2 { font-size: 2rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head .label { display: block; margin-bottom: .2rem; }
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 2rem; }
.sub { font-size: 1.5rem; margin: 1.4rem 0 .7rem; }
.empty { padding: 1.6rem 1rem; text-align: center; border: var(--bw) dashed var(--line); border-radius: var(--r); }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--muted); margin: 0 auto .9rem; max-width: 44ch; font-size: .85rem; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--hair); font-size: .84rem; }
.ex-list li:last-child { border-bottom: 0; }
.ex-list small { display: block; color: var(--muted); font-size: .7rem; }
.k-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); background: var(--taupe); }
.k-small_group, .k-dot.k-small_group { --k: var(--water); } .k-service { --k: var(--ink); } .k-volunteer { --k: var(--sage); } .k-class { --k: var(--plum); } .k-event { --k: var(--ochre); } .k-other { --k: var(--taupe); }
.k-dot[class*="k-"] { background: var(--k, var(--taupe)); }
.k-dot.inc { background: var(--surface); } .k-dot.gift { background: var(--ochre); }
.k-dot.deed-volunteer { background: var(--sage); } .k-dot.deed-need { background: var(--rose); } .k-dot.deed-gift { background: var(--plum); }
.k-dot.d-sabbath { background: var(--water); } .k-dot.d-silence, .k-dot.d-solitude { background: var(--taupe); } .k-dot.d-fast { background: var(--sage); } .k-dot.d-prayer_walk, .k-dot.d-worship { background: var(--ochre); }
.strip4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.strip4 > * { display: grid; gap: .15rem; padding: .9rem 1.1rem; text-decoration: none; min-width: 0; }
.strip4 > * + * { border-left: var(--bw) solid var(--line); }
.strip4 a:hover { background: var(--surface-2); }
.strip4 b { font: 400 2.3rem/1 var(--serif); }
.strip4 small { font-size: .7rem; color: var(--muted); }
@media (max-width: 700px) { .strip4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip4 > :nth-child(3) { border-left: 0; } .strip4 > :nth-child(n+3) { border-top: var(--bw) solid var(--line); } }
.big-num { font: 400 3.4rem/1 var(--serif); margin: 0; }
.big-num small { font: 400 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.year-pick { display: inline-flex; gap: .6rem; align-items: center; }
.year-pick b { font: 400 1.8rem/1 var(--serif); min-width: 3ch; text-align: center; }

/* ---------- Today ---------- */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; padding: 2.2rem 0 1.4rem; }
.hello h1 { font-size: clamp(3.4rem, 10vw, 7rem); }
.hello h1 em { display: block; }
.hello .date { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .4rem; }
.season-tag { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .9rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transform: rotate(-3deg); margin-bottom: .6rem; }
@media (max-width: 700px) { .hello { grid-template-columns: minmax(0, 1fr); } .season-tag { justify-self: start; } }
.word { position: relative; padding: 1.6rem 1.8rem 1.5rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--ink); color: var(--bg); margin-bottom: 1.1rem; overflow: hidden; }
.word::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 9%, transparent), transparent); pointer-events: none; }
.word-top { display: flex; justify-content: space-between; align-items: center; }
.word .label { color: inherit; opacity: .8; display: inline-flex; gap: .5rem; align-items: center; }
.word .spark { fill: var(--bg); stroke: var(--bg); width: 16px; height: 16px; }
.word blockquote { margin: 1.1rem 0 1.3rem; max-width: 34em; }
.word blockquote p { font: italic 400 clamp(1.7rem, 3.6vw, 2.8rem)/1.15 var(--serif); margin: 0 0 .9rem; letter-spacing: -.01em; }
.word blockquote footer { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.word blockquote footer span { opacity: .6; margin-left: .5rem; }
.word .icon-btn:hover { color: var(--ink); }
.word .btn.on { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.chapters li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .7rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.chapters.compact li { grid-template-columns: 30px minmax(0, 1fr); padding: .35rem .5rem; }
.chapters small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ch-name { all: unset; cursor: pointer; font: 400 1.35rem/1.1 var(--serif); }
.ch-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.tick { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); box-sizing: border-box; }
.tick .ic { width: 15px; height: 15px; opacity: 0; transform: scale(.4); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .15s; }
.tick:hover .ic { opacity: .35; transform: scale(1); }
.tick[aria-pressed="true"] { background: var(--c, var(--water)); }
.tick[aria-pressed="true"] .ic { opacity: 1; transform: scale(1); }
.tick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.plan-line { display: grid; gap: .4rem; margin-top: 1rem; }
.plan-line small { font-size: .72rem; color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--hair); }
.plist li:last-child { border-bottom: 0; }
.plist b { font-weight: 500; font-size: .88rem; display: block; }
.plist small { display: block; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habit-today { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.habit-today li { display: flex; gap: .6rem; align-items: center; font-size: .84rem; padding: .45rem .6rem; border: 1px solid var(--hair); border-radius: var(--r-sm); }
.habit-today .done { color: var(--muted); text-decoration: line-through; }
@media (max-width: 600px) { .habit-today { grid-template-columns: minmax(0, 1fr); } }
.jar-card .jar-wrap { display: grid; place-items: center; padding: .4rem 0 .8rem; }
.jar-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; }
.jar-stats div { display: grid; }
.jar-stats b { font: 400 2.2rem/1 var(--serif); }
.jar-stats small { font-size: .7rem; color: var(--muted); }
.testaments { display: grid; gap: .5rem; margin-top: 1rem; }
.testaments > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3rem; gap: .6rem; align-items: center; font-size: .74rem; }
.testaments small { text-align: right; }
.fast-note { display: flex; gap: .5rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--sage) 30%, var(--surface)); font-size: .8rem; }
.fast-note.feast { background: color-mix(in srgb, var(--ochre) 30%, var(--surface)); }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--hair); font-size: .84rem; }
.ev-list li:last-child { border-bottom: 0; }
.ev-list .when b { display: block; font: 400 1.2rem/1 var(--serif); }
.ev-list small { display: block; font-size: .7rem; color: var(--muted); }
.ev-list b { font-weight: 500; }

/* ---------- The jar ---------- */
.jar-svg { width: 190px; height: auto; overflow: visible; }
.jar-svg.xl { width: min(300px, 70vw); }
.jar-lid { fill: var(--taupe); stroke: var(--line); stroke-width: 2.5; }
.jar-neck { fill: var(--surface-2); stroke: var(--line); stroke-width: 2.5; }
.jar-glass-in { fill: var(--surface); }
.jar-glass { fill: none; stroke: var(--line); stroke-width: 3; }
.jar-shine { display: none; }
.jar-tick { stroke: var(--line); stroke-width: 2; }
.water { fill: var(--water); stroke: var(--line); stroke-width: 1.5; animation: wave 6s linear infinite; }
.water.back { fill: var(--water-2); stroke: none; animation-duration: 9s; animation-direction: reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(40px); } }
.bubble { fill: none; stroke: color-mix(in srgb, var(--bg) 80%, transparent); stroke-width: 1.5; animation: rise 5s ease-in infinite; }
.bubble.b1 { animation-delay: 1.6s; animation-duration: 6s; } .bubble.b2 { animation-delay: 3.1s; animation-duration: 7s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.jar-pct { font: 400 42px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }

/* ---------- Reading ---------- */
.g-jar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 960px) { .g-jar { grid-template-columns: minmax(0, 1fr); } }
.jar-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; }
.jar-hero h2 { font-size: clamp(3rem, 6vw, 4.6rem); margin: .3rem 0 .4rem; }
@media (max-width: 640px) { .jar-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .jar-hero > div:first-child { justify-self: stretch; text-align: left; } }
.jar-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.2rem; margin: 1rem 0 0; }
.jar-dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--hair); font-size: .76rem; }
.jar-dl dt { color: var(--ink-2); } .jar-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.milestones { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: m; }
.milestones li { border-bottom: 1px dashed var(--hair); }
.link-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; padding: .55rem 0; }
.link-row b { font: 400 1.35rem/1.1 var(--serif); }
.link-row span { font-size: .74rem; letter-spacing: .06em; }
.link-row:hover b { text-decoration: underline; text-underline-offset: 4px; }
.link-row:focus-visible { outline: 2px solid var(--ink); }
.finish { font-size: .82rem; margin: 0 0 .9rem; }
.finish b { font: 400 1.3rem var(--serif); }
.heats { display: grid; gap: 1rem; }
.heat-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.heat-label b { display: block; font: 400 1.3rem/1.1 var(--serif); }
.heat-label small { font-size: .68rem; color: var(--muted); }
.heat-wrap { display: flex; justify-content: flex-end; overflow: hidden; min-width: 0; }
.heat { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; flex: none; }
.heat i, .hl { display: block; border-radius: 2px; background: var(--surface-2); }
.hl { width: 11px; height: 11px; }
.heat i.h1, .hl.h1 { background: color-mix(in srgb, var(--c, var(--water)) 35%, var(--surface)); }
.heat i.h2, .hl.h2 { background: color-mix(in srgb, var(--c, var(--water)) 60%, var(--surface)); }
.heat i.h3, .hl.h3 { background: color-mix(in srgb, var(--c, var(--water)) 82%, var(--surface)); }
.heat i.h4, .hl.h4 { background: var(--c, var(--water)); outline: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); outline-offset: -1px; }
.legend .hl { --c: var(--ink-2); }
@media (max-width: 700px) { .heat-row { grid-template-columns: minmax(0, 1fr); gap: .4rem; } }
.bgroup { margin-top: 1.2rem; }
.bgroup h3 { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .55rem; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .45rem; }
.btile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .25rem; align-content: space-between; min-height: 70px; padding: .55rem .65rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  background: linear-gradient(to top, color-mix(in srgb, var(--water) 75%, var(--surface)) calc(var(--p) * 100%), var(--surface) calc(var(--p) * 100%)); }
.btile b { font: 400 1.12rem/1.05 var(--serif); }
.btile small { font-size: .62rem; letter-spacing: .06em; color: var(--ink-2); }
.btile.full { background: var(--water); }
.btile.full small::after { content: " ✓"; }
.btile:hover { filter: brightness(.97); }
.btile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .35rem; }
.chb { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .82rem; font-variant-numeric: tabular-nums; }
.chb[aria-pressed="true"] { background: var(--water); font-weight: 500; }
.chb:hover { border-width: 2px; }
.chb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.linked { display: grid; gap: .3rem; margin-top: 1.2rem; }
.linked a { display: flex; gap: .5rem; align-items: center; font-size: .84rem; text-decoration: none; padding: .35rem 0; border-bottom: 1px dashed var(--hair); }
.linked small { color: var(--muted); margin-left: auto; font-size: .7rem; }
.plan-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 600px) { .plan-opts { grid-template-columns: minmax(0, 1fr); } }
.plan-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .35rem; align-content: start; padding: 1rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.plan-opt b { font: 400 1.7rem/1 var(--serif); }
.plan-opt small { font-size: .76rem; color: var(--ink-2); }
.plan-opt[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.plan-opt[aria-checked="true"] small, .plan-opt[aria-checked="true"] .label { color: inherit; opacity: .8; }
.plan-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cb-group { border: 0; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.cb-group legend { font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .45rem; padding: 0; }
.cmp + .cmp { margin-top: 1rem; }
.cmp { margin-top: 1rem; }
.cmp-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.cmp-cols figure { margin: 0; padding: 1rem; display: grid; align-content: start; gap: .5rem; }
.cmp-cols figure + figure { border-left: var(--bw) solid var(--line); }
.cmp-cols figcaption { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cmp-cols blockquote { margin: 0; font: italic 400 1.35rem/1.25 var(--serif); }
@media (max-width: 760px) { .cmp-cols { grid-template-columns: minmax(0, 1fr); } .cmp-cols figure + figure { border-left: 0; border-top: var(--bw) solid var(--line); } }
.cmp-note { display: flex; gap: .5rem; margin: .9rem 0 0; font-size: .82rem; color: var(--ink-2); }
.tr-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .6rem; }
@media (max-width: 600px) { .tr-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sanctuary ---------- */
.sanct-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 960px) { .sanct-grid { grid-template-columns: minmax(0, 1fr); } }
.timer-card { display: grid; justify-items: center; gap: 1rem; padding: 1.6rem 1.2rem; text-align: center; }
.phases { display: flex; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.phases span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: var(--bw) solid var(--line); border-radius: 999px; }
.phases span.on { background: var(--ink); color: var(--bg); }
.phases i { width: 28px; border-top: var(--bw) dashed var(--line); }
.phases .ic { width: 15px; height: 15px; }
.ring { width: min(330px, 72vw); aspect-ratio: 1; }
.ring-bg { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.ring-fg { fill: none; stroke: var(--water); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.phase-pray .ring-fg { stroke: var(--sage); }
.ring-time { margin-top: calc(-1 * min(330px, 72vw) / 2 - 3.6rem); height: 7.2rem; margin-bottom: calc(min(330px, 72vw) / 2 - 3.6rem); display: grid; place-content: center; pointer-events: none; }
.ring-time b { font: 400 clamp(3.4rem, 9vw, 4.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.ring-time span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.len-pick { display: grid; gap: .7rem; justify-items: center; }
.len-pick > div { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.len-pick .label { min-width: 3.5rem; }
.phase-help { width: min(420px, 100%); text-align: left; padding-top: 1rem; border-top: 1px dashed var(--hair); }
.phase-help ul:not(.chapters) { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .86rem; }
.phase-help .chapters { margin-top: .5rem; }
.reward { width: 100%; padding: 1rem 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--oat); text-align: left; }
.reward b { display: block; font: 400 1.5rem/1.15 var(--serif); margin: .3rem 0 .7rem; }
.embed { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--ink); }
.embed.yt { aspect-ratio: 16 / 9; } .embed.spotify { height: 352px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; color: var(--bg); text-align: center; padding: 1rem; }
.embed-play .ic { width: 46px; height: 46px; padding: 12px; border: var(--bw) solid currentColor; border-radius: 50%; }
.embed-play span { font: 400 1.4rem/1.1 var(--serif); }
.embed-play small { font-size: .68rem; opacity: .7; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 460px) { .layers { grid-template-columns: minmax(0, 1fr); } }
.layers li { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.layers li.on { background: var(--oat); }
.layer { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; align-items: center; width: 100%; padding: .75rem .8rem .3rem; }
.layer .ic { width: 22px; height: 22px; }
.layer b { display: block; font: 400 1.2rem/1.1 var(--serif); }
.layer small { font-size: .66rem; color: var(--muted); }
.layer:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.layers li.on .layer small { color: var(--ink); }
.vol { display: flex; gap: .6rem; align-items: center; padding: .2rem .8rem .6rem; font-size: .72rem; }
.vol input { flex: 1; accent-color: var(--ink); min-width: 0; }
.vol.master { padding: .8rem 0 0; }
#dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; gap: .5rem; align-items: center; padding: .45rem .5rem .45rem .9rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); font-size: .76rem; max-width: calc(100vw - 20px); }
#dock a { text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-width: 0; }
#dock a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dock .ic { width: 16px; height: 16px; }
#dock b { font: 400 1.2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 1220px) { #dock { right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- Calendar ---------- */
.cal-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1100px) { .cal-grid { grid-template-columns: minmax(0, 1fr); } }
.cal-head { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.cal-head h2 { min-width: 10ch; text-align: center; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: var(--bw) solid var(--line); border-left: var(--bw) solid var(--line); }
.mcal .dow { padding: .4rem .5rem; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; border-right: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); background: var(--oat); }
.cday { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 112px; padding: .45rem .4rem .4rem; border-right: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); background: var(--surface); min-width: 0; overflow: hidden; }
.cday:hover { background: var(--surface-2); }
.cday:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.cday.out { background: var(--bg); } .cday.out > * { opacity: .45; }
.cday .ctop { display: flex; justify-content: space-between; align-items: flex-start; gap: .2rem; }
.cday .cmeta { display: flex; gap: .25rem; align-items: center; }
.cday .lit { width: 8px; height: 8px; }
.cday .n { font: 400 1.35rem/1 var(--serif); }
.cday.today .n { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .3rem; border-radius: 999px; background: var(--ink); color: var(--bg); align-self: flex-start; }
.cday.fast { background: color-mix(in srgb, var(--sage) 16%, var(--surface)); }
.cday .rd { font-size: .56rem; padding: 0 .32rem; border-radius: 999px; background: var(--water); color: var(--ink); border: 1px solid var(--line); line-height: 1.5; }
.cday .named { font: italic 400 .86rem/1.1 var(--serif); }
.cday .mile, .cday .tag, .cday .ev, .cday .more { display: flex; gap: .25rem; align-items: center; font-size: .58rem; line-height: 1.25; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: .12rem .3rem; border-radius: 5px; }
.cday .mile { background: color-mix(in srgb, var(--water) 55%, var(--surface)); border: 1px solid var(--line); }
.cday .tag.fast { background: color-mix(in srgb, var(--sage) 50%, var(--surface)); } .cday .tag.feast { background: color-mix(in srgb, var(--ochre) 45%, var(--surface)); }
.cday .ev { border-left: 3px solid var(--k, var(--taupe)); background: var(--surface-2); border-radius: 3px; }
.cday .ev b { font-weight: 500; }
.cday .more { color: var(--muted); }
.cday .ic { width: 11px; height: 11px; }
@media (max-width: 700px) {
  .cday { min-height: 62px; padding: .3rem .25rem; }
  .cday .named, .cday .ev, .cday .tag, .cday .mile span, .cday .more { display: none; }
  .cday .mile { padding: 0; background: none; border: 0; }
  .cday .cmeta { flex-direction: column-reverse; }
  .cday .n { font-size: 1.05rem; }
  .cday.today .n { min-width: 1.4rem; height: 1.4rem; }
}
.season-card h2 { display: flex; gap: .6rem; align-items: center; margin-top: .3rem; }
.season-card h2 .lit { width: 16px; height: 16px; }
.day-form { display: grid; gap: .8rem; }
.toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .8rem; align-items: center; }
@media (max-width: 500px) { .toggle-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Study ---------- */
.study-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.study-card { display: grid; gap: .5rem; align-content: start; text-decoration: none; }
.study-card:hover { background: var(--surface-2); }
.study-card h3 { font-size: 1.8rem; }
.study-card p { font-size: .82rem; color: var(--ink-2); margin: 0; }
.soap-letters { display: flex; gap: .3rem; }
.soap-letters i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font: italic 400 1rem var(--serif); color: var(--muted); }
.soap-letters i.on { background: var(--ink); color: var(--bg); }
.study-ed { display: grid; gap: 1.4rem; }
.soap { display: grid; gap: .9rem; }
.soap-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.soap-l { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--oat); font: italic 400 2.4rem/1 var(--serif); }
.soap-f { display: grid; gap: .25rem; }
.soap-f b { font: 400 1.5rem/1 var(--serif); }
.soap-f small { font-size: .74rem; color: var(--muted); margin-bottom: .2rem; }
@media (max-width: 600px) { .soap-row { grid-template-columns: minmax(0, 1fr); } .soap-l { width: 3rem; height: 3rem; font-size: 1.7rem; } }
.ind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.ind-col { display: grid; gap: .3rem; align-content: start; padding: 1rem; }
.ind-col + .ind-col { border-left: var(--bw) solid var(--line); }
.ind-col b { font: 400 1.6rem/1 var(--serif); }
.ind-col small { font-size: .72rem; color: var(--muted); }
.ind-col .input { border-style: dashed; }
@media (max-width: 800px) { .ind { grid-template-columns: minmax(0, 1fr); } .ind-col + .ind-col { border-left: 0; border-top: var(--bw) solid var(--line); } }
.w5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 700px) { .w5 { grid-template-columns: minmax(0, 1fr); } }
.study-foot { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; padding-top: 1rem; border-top: 1px dashed var(--hair); }
.lex-tools { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; flex: 1; }
.lex-tools .input { max-width: 340px; }
.lex { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.word-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.orig { font: 400 2.6rem/1.1 "Times New Roman", var(--serif); }
.word-card h3 { font-size: 1.5rem; margin: .4rem 0 .5rem; }
.word-card p { font-size: .84rem; }
.lex-meta { display: flex; gap: .3rem; }
.people { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 860px) { .people { grid-template-columns: minmax(0, 1fr); } .people-list ul { max-height: 240px; } }
.people-list ul { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; }
.people-list li a { display: grid; padding: .5rem .6rem; border-radius: 10px; text-decoration: none; }
.people-list li a:hover { background: var(--surface-2); }
.people-list li a[aria-current] { background: var(--ink); color: var(--bg); }
.people-list li a[aria-current] small { color: inherit; opacity: .75; }
.people-list b { font: 400 1.25rem/1.1 var(--serif); }
.people-list small { font-size: .68rem; color: var(--muted); }
.profile h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.lead-p { font: italic 400 1.4rem/1.3 var(--serif); max-width: 40em; }
.arc { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 0; overflow-x: auto; border-top: var(--bw) solid var(--line); padding-top: .9rem; }
.arc li { position: relative; display: grid; gap: .2rem; align-content: start; padding: 0 .9rem 0 0; }
.arc li::before { content: ""; position: absolute; top: calc(-.9rem - 7px); left: 0; width: 12px; height: 12px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--ochre); }
.arc b { font: 400 1.3rem/1.1 var(--serif); }
.arc small { font-size: .74rem; color: var(--ink-2); }
.tree { display: grid; gap: .5rem; padding: 1rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); }
.tree-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem; align-items: center; }
.tree-row > div { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tree-row.me { padding: .5rem 0; border-top: 1px dashed var(--hair); border-bottom: 1px dashed var(--hair); }
@media (max-width: 600px) { .tree-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.pchip { display: inline-flex; padding: .3rem .75rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); font: 400 1.05rem/1.1 var(--serif); text-decoration: none; }
.pchip:hover { background: var(--surface-2); }
.pchip.me { background: var(--ink); color: var(--bg); }
.amp { font: italic 400 1.2rem var(--serif); color: var(--muted); }
.ties { margin-top: 1rem; }
.ties summary { cursor: pointer; }
.arc-ed { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.arc-row { display: grid; grid-template-columns: 8rem 9rem minmax(0, 1fr); gap: .4rem; }
@media (max-width: 600px) { .arc-row { grid-template-columns: minmax(0, 1fr); padding-bottom: .5rem; border-bottom: 1px dashed var(--hair); } }

/* ---------- War room ---------- */
.filter { margin-bottom: 1.1rem; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: start; }
@media (max-width: 1100px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .acts { grid-template-columns: minmax(0, 1fr); } }
.acts-col { display: grid; gap: .55rem; padding: .8rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.acts-col header { display: flex; gap: .7rem; align-items: center; padding: .2rem .2rem .5rem; }
.acts-l { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--ink); color: var(--bg); font: italic 400 1.5rem/1 var(--serif); flex: none; }
.acts-col h2 { font-size: 1.6rem; }
.acts-col header small { font-size: .66rem; color: var(--muted); }
.pcard { display: grid; gap: .35rem; padding: .7rem .8rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.pcard.prio { box-shadow: inset 4px 0 0 var(--water); }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-title { all: unset; cursor: pointer; font: 400 1.25rem/1.15 var(--serif); }
.pc-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.pcard p { font-size: .78rem; margin: 0; color: var(--ink-2); }
.pcard .pc-meta { font-size: .64rem; letter-spacing: .04em; color: var(--muted); }
.pc-acts { display: flex; gap: .3rem; flex-wrap: wrap; }
.pcard [data-action="pr-prio"][aria-pressed="true"] { color: var(--ochre); }
.add-line { all: unset; cursor: pointer; display: flex; gap: .4rem; justify-content: center; align-items: center; padding: .5rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.add-line:hover { background: var(--surface); }
.add-line .ic { width: 14px; height: 14px; }
.acts-empty { margin: .2rem .2rem 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.6rem; top: 0; bottom: 0; border-left: var(--bw) solid var(--line); }
.timeline li { display: grid; grid-template-columns: 5.6rem 2rem minmax(0, 1fr); gap: 0 0; align-items: start; padding-bottom: 1.2rem; }
.tl-date { text-align: right; padding-right: .4rem; padding-top: .2rem; }
.tl-date b { display: block; font: 400 1.4rem/1 var(--serif); }
.tl-date small { font-size: .66rem; color: var(--muted); }
.tl-dot { width: 16px; height: 16px; margin: .5rem 0 0 calc(1rem - 7px); border-radius: 50%; border: var(--bw) solid var(--line); background: var(--water); position: relative; z-index: 1; }
.tl-card { padding: 1rem 1.1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.tl-card h3 { font-size: 1.6rem; margin: .3rem 0 .4rem; }
.tl-card .ask { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.tl-card blockquote { margin: 0 0 .7rem; padding: .6rem .9rem; border-left: 3px solid var(--water); background: var(--surface-2); font: italic 400 1.2rem/1.3 var(--serif); }
.wait { height: 6px; border-radius: 999px; background: var(--surface-2); margin-bottom: .5rem; }
.wait i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--taupe), var(--water)); }
@media (max-width: 600px) { .timeline::before { left: .45rem; } .timeline li { grid-template-columns: 1.4rem minmax(0, 1fr); } .tl-date { grid-column: 2; grid-row: 1; text-align: left; display: flex; gap: .4rem; align-items: baseline; padding: 0 0 .3rem; } .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin: .3rem 0 0 0; } .tl-card { grid-column: 2; } }
.rhythm { display: grid; gap: .45rem; }
.rh-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; align-items: center; font-size: .78rem; }
.rh { display: grid; grid-template-columns: repeat(56, minmax(0, 1fr)); gap: 2px; }
.rh i { height: 16px; border-radius: 3px; background: var(--surface-2); }
.rh i.on { background: var(--c, var(--sage)); }
.rh i.now { outline: 1.5px solid var(--ink); outline-offset: -1px; }
.rh.k-sabbath { --c: var(--water); } .rh.k-silence { --c: var(--taupe); } .rh.k-solitude { --c: var(--plum); } .rh.k-fast { --c: var(--sage); } .rh.k-prayer_walk { --c: var(--ochre); } .rh.k-worship { --c: var(--rose); }
@media (max-width: 600px) { .rh-row { grid-template-columns: minmax(0, 1fr); gap: .25rem; } .rh i { height: 12px; } }

/* ---------- Index: sermons, questions, memory ---------- */
.binders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.binder { display: grid; grid-template-columns: 22px minmax(0, 1fr); border: var(--bw) solid var(--line); border-radius: 6px 14px 14px 6px; overflow: hidden; text-decoration: none; background: var(--surface); min-height: 86px; }
.binder .spine { background: var(--c); border-right: var(--bw) solid var(--line); background-image: repeating-linear-gradient(0deg, transparent 0 14px, color-mix(in srgb, var(--ink) 25%, transparent) 14px 15px); }
.binder .b-body { display: grid; align-content: center; gap: .2rem; padding: .7rem .9rem; }
.binder b { font: 400 1.35rem/1.1 var(--serif); }
.binder small { font-size: .68rem; color: var(--muted); }
.binder.on { box-shadow: 0 0 0 3px var(--ink); }
.binder:hover { background: var(--surface-2); }
.sermons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.sermon h3 { font-size: 1.75rem; margin-top: .2rem; }
.sermon .chip { margin: 0 .2rem .3rem 0; }
.points { margin: .8rem 0; padding-left: 1.1rem; font-size: .84rem; }
.points li + li { margin-top: .25rem; }
.apply { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--surface-2); font-size: .82rem; margin: 0; }
.sermon.flash { box-shadow: 0 0 0 3px var(--water); }
.qcat { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 1.4rem 0 .6rem; }
.qa + .qa { margin-top: .6rem; }
.qa summary { cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa .q { font: 400 1.5rem/1.15 var(--serif); }
.qa[open] summary { margin-bottom: .8rem; }
.qa p { font-size: .86rem; max-width: 72ch; }
.qs { flex: none; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.qs.s-settled { background: var(--sage); } .qs.s-researching { background: var(--oat); }
.mem-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.mem-top h2 { margin-top: .3rem; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: start; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { display: grid; gap: .5rem; padding: .8rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.tier header { padding: .2rem .2rem .4rem; }
.tier h3 { font-size: 1.6rem; }
.tier header small { font-size: .66rem; color: var(--muted); }
.tier.t-mastered { background: color-mix(in srgb, var(--water) 22%, var(--surface)); }
.mcard { display: grid; gap: .3rem; padding: .7rem .8rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.mcard.due { box-shadow: inset 4px 0 0 var(--ochre); }
.mc-ref { all: unset; cursor: pointer; font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.mcard p { margin: 0; font: italic 400 1.1rem/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mcard small { font-size: .64rem; color: var(--muted); letter-spacing: .06em; }
.review { text-align: center; padding: .6rem 0 1rem; }
.rv-ref { font-size: 2.6rem; margin: .5rem 0 1rem; }
.rv-text { margin: 0; font: italic 400 1.6rem/1.3 var(--serif); }
.rv-hint { font: 500 1.1rem/1.6 var(--mono); letter-spacing: .14em; }

/* ---------- Renewal ---------- */
.okr-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem 1.2rem; align-items: center; margin-bottom: 1.2rem; }
.okr-sum > div:first-child { grid-row: span 2; }
.okr-sum b { font: 400 3.2rem/1 var(--serif); display: block; }
.okr-sum small { font-size: .72rem; color: var(--muted); }
.bar.big { height: 16px; }
.okrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; align-items: start; }
.okr h2 { font-size: 1.9rem; }
.okr .card-head, .sermon .card-head { flex-wrap: nowrap; align-items: flex-start; }
.okr .card-head > div, .sermon .card-head > div { min-width: 0; }
.krs { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.kr-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; margin-bottom: .35rem; }
.kr-top b { font-weight: 500; }
.krs small { display: block; font-size: .68rem; color: var(--muted); margin-top: .3rem; }
.bar.done i { background: var(--sage); } .bar.behind i { background: var(--ochre); }
.kr-ed { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.kr-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) 5rem 4.5rem; gap: .4rem; }
@media (max-width: 760px) { .kr-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: .5rem; border-bottom: 1px dashed var(--hair); } }
.one-word { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: 2.6rem 1.4rem 2.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--ink); color: var(--bg); }
.one-word .label { color: inherit; opacity: .75; }
.one-word h2 { font-size: clamp(5rem, 16vw, 11rem); letter-spacing: -.04em; font-style: italic; }
.one-word p { max-width: 46ch; margin: 0; opacity: .85; }
.anchors { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.anchors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .8rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--hair); }
.anchors blockquote { margin: 0; }
.anchors blockquote p { font: italic 400 1.35rem/1.25 var(--serif); margin: 0 0 .3rem; }
.anchors footer { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.anchors small { grid-column: 1; font-size: .74rem; color: var(--muted); }
.habit-grid { overflow-x: auto; }
.hg { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(var(--n), minmax(22px, 1fr)) 40px; gap: 3px; align-items: center; min-width: 760px; }
.hg-d { text-align: center; font-size: .62rem; line-height: 1.1; color: var(--muted); }
.hg-d small { display: block; font-size: .55rem; }
.hg-d.today { color: var(--ink); font-weight: 500; }
.hg-h { font-size: .62rem; color: var(--muted); text-align: center; }
.hg-name { all: unset; cursor: pointer; display: flex; gap: .5rem; align-items: center; font-size: .82rem; padding-right: .5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hg-c { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; border-radius: 5px; border: 1px solid var(--hair); background: var(--surface); }
.hg-c.on { background: var(--c); border-color: var(--line); }
.hg-c[disabled] { opacity: .35; cursor: default; }
.hg-c:focus-visible { outline: 2px solid var(--ink); }
.hg-p { font-size: .7rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Giving ---------- */
.give-hero { display: grid; gap: 1rem; }
.give-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.give-top h2 { font-size: clamp(4rem, 10vw, 6.4rem); }
.give-top h2 small { font-size: .45em; }
.give-ring { display: grid; justify-items: center; gap: .3rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.give-ring svg { width: 92px; height: 92px; }
.gr-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.gr-fg { fill: none; stroke: var(--ochre); stroke-width: 10; stroke-linecap: round; }
.give-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.give-rows > div { display: grid; gap: .2rem; padding: .7rem .8rem; }
.give-rows > div + div { border-left: var(--bw) solid var(--line); }
.give-rows span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.give-rows b { font: 400 1.5rem/1 var(--serif); }
.give-rows .met { background: color-mix(in srgb, var(--sage) 35%, var(--surface)); }
.give-rows .togo { background: color-mix(in srgb, var(--ochre) 22%, var(--surface)); }
@media (max-width: 640px) { .give-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .give-rows > :nth-child(3) { border-left: 0; } .give-rows > :nth-child(n+3) { border-top: var(--bw) solid var(--line); } }
.target-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.target-form .input { width: 5rem; min-height: 36px; text-align: center; }
.calc-out { margin: .9rem 0 0; padding: .8rem 1rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); font-size: .9rem; }
.calc-out b { font: 400 1.6rem var(--serif); }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.kinds li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 5rem; gap: .6rem; align-items: center; font-size: .78rem; }
.kinds .bar i { background: var(--ochre); }
.kinds b { text-align: right; font-weight: 400; }
.yr-tot { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .78rem; }
.yr-tot b { font: 400 1.5rem var(--serif); }
.ybars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; align-items: end; }
.yb { display: grid; gap: .25rem; justify-items: center; font-size: .62rem; }
.yb-col { position: relative; width: 100%; height: 160px; border-bottom: var(--bw) solid var(--line); }
.yb-col i { position: absolute; bottom: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; }
.yb-col i.goal { left: 6%; right: 6%; background: transparent; border-style: dashed; }
.yb-col i.given { left: 22%; right: 22%; background: var(--ochre); }
.yb.now small { font-weight: 500; text-decoration: underline; }
.yb b { font-weight: 400; color: var(--muted); }
.sw-given, .sw-goal { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--ochre); }
.sw-goal { background: transparent; border-style: dashed; }
.num.in { color: var(--green); }

/* ---------- Journal ---------- */
.journal-start { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.j-start { display: grid; gap: .3rem; align-content: start; text-decoration: none; position: relative; }
.j-start b { font: 400 1.9rem/1.05 var(--serif); }
.j-start small { font-size: .72rem; color: var(--muted); }
.j-start > .ic { position: absolute; right: 1rem; top: 1rem; }
a.j-start:hover { background: var(--surface-2); }
a.j-start:first-child { background: var(--ink); color: var(--bg); }
a.j-start:first-child .label, a.j-start:first-child small { color: inherit; opacity: .8; }
.j-start.pick .dump { display: flex; gap: .4rem; margin: .3rem 0 .5rem; }
.j-start.pick .btn { justify-self: start; }
.growth .g-row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; align-items: end; padding: .5rem 0; border-bottom: 1px dashed var(--hair); }
.g-l b { display: block; font: 400 1.2rem/1.1 var(--serif); }
.g-l small { font-size: .68rem; color: var(--muted); }
.g-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 46px; align-items: end; }
.g-bars i { background: var(--water); border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0; min-height: 2px; }
.g-row:nth-of-type(3) .g-bars i { background: var(--sage); } .g-row:nth-of-type(4) .g-bars i { background: var(--plum); } .g-row:nth-of-type(5) .g-bars i { background: var(--ochre); } .g-row:nth-of-type(6) .g-bars i { background: var(--clay); }
.g-months { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
.g-months > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: .6rem; color: var(--muted); }
@media (max-width: 640px) { .growth .g-row, .g-months { grid-template-columns: minmax(0, 1fr); gap: .3rem; } .g-months > span { display: none; } }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1rem; }
.entry { text-decoration: none; display: grid; gap: .4rem; align-content: start; }
.entry h3 { font-size: 1.9rem; }
.entry p { font-size: .82rem; color: var(--ink-2); margin: 0; }
.entry.year { background: var(--oat); }
.entry:hover { background: var(--surface-2); }
.j-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 960px) { .j-grid { grid-template-columns: minmax(0, 1fr); } }
.j-form { display: grid; gap: 1.3rem; }
.j-q { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .3rem .8rem; }
.j-n { grid-row: span 2; font: italic 400 1.6rem/1 var(--serif); color: var(--muted); }
.j-q b { font: 400 1.45rem/1.15 var(--serif); }
.snap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1rem; margin: .7rem 0 0; }
.snap div { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--hair); font-size: .76rem; }
.snap dd { margin: 0; font-weight: 500; }
.lookback p { font-size: .8rem; }
.lookback b { font: 400 1.1rem var(--serif); }

/* ---------- Settings ---------- */
.settings { display: grid; gap: 1rem; max-width: 920px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.theme-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .5rem; padding: .6rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.theme-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.theme-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-sw { display: flex; height: 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.theme-sw i { flex: 1; }
.theme-opt b { font: 400 1.25rem/1 var(--serif); }
.theme-opt small { font-size: .64rem; color: var(--muted); }
.dump { display: flex; gap: .5rem; }
.dump .input { flex: 1; }

/* ---------- Modal, toast, confetti ---------- */
dialog#modal { border: var(--bw) solid var(--line); padding: 0; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); }
dialog#modal.narrow { width: min(460px, calc(100vw - 24px)); }
dialog#modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog#modal[open] { animation: popin .2s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog#modal::backdrop { background: color-mix(in srgb, #000 45%, transparent); }
.modal-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 40px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem .6rem; }
.modal-head h2 { font-size: 2.1rem; }
.modal-body { overflow-y: auto; padding: .4rem 1.3rem 1.3rem; }
.modal-foot { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .9rem 1.3rem; border-top: var(--bw) solid var(--line); flex-wrap: wrap; }
.modal-foot .right { display: flex; gap: .5rem; margin-left: auto; }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow, dialog#modal.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; } .modal-inner { max-height: 92dvh; } .modal-foot { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); } }
#toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); }
@media (max-width: 1220px) { #toasts { bottom: calc(5.6rem + env(safe-area-inset-bottom)); } }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 999px; font-size: .8rem; display: flex; gap: 1rem; align-items: center; animation: popin .2s ease; }
.toast.err { background: var(--red); color: #fff; }
.toast button { all: unset; cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pop { position: fixed; z-index: 120; width: 0; height: 0; pointer-events: none; }
.pop i { position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); animation: burst .8s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 26px)) rotate(var(--r)); opacity: 0; } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--ink); color: var(--bg); border-right: var(--bw) solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 2.4rem; overflow: hidden; position: relative; }
.auth-art .label { color: inherit; opacity: .75; }
.auth-art h1 { font-size: clamp(4rem, 9vw, 8rem); font-style: italic; }
.auth-verse { margin: 1rem 0 0; max-width: 24em; font: italic 400 1.6rem/1.25 var(--serif); }
.auth-verse footer { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: .8rem; opacity: .7; }
.auth-art .spark { fill: var(--bg); stroke: var(--bg); }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(380px, 100%); display: grid; gap: 1rem; }
.auth-card h2 { font-size: 2.6rem; }
.key-input { letter-spacing: .2em; text-transform: uppercase; text-align: center; font-size: 1.05rem; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }
.boot { min-height: 100vh; display: grid; place-items: center; font: italic 400 2.4rem var(--serif); }

/* ---------- Tutorial ---------- */
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.tour-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.tour-card:hover { background: var(--surface-2); }
.tour-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tour-card.first { grid-column: 1 / -1; background: var(--ink); color: var(--bg); }
.tour-card strong { display: block; font: 400 1.6rem/1.1 var(--serif); }
.tour-card small { font-size: .74rem; }
.tour-card > .ic { width: 36px; height: 36px; padding: 9px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); }
#tour { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tour-spot { position: fixed; border-radius: var(--r-sm); box-shadow: 0 0 0 9999px color-mix(in srgb, #000 55%, transparent); outline: 3px solid var(--water); transition: top .25s, left .25s, width .25s, height .25s; }
.tour-spot.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; outline: 0; }
#tour .tour-box { position: fixed; pointer-events: auto; display: grid; gap: .55rem; padding: 1rem 1.1rem; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: var(--r); transition: top .25s, left .25s; }
#tour .tour-box.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
#tour .tour-box h3 { font-size: 1.8rem; }
#tour .tour-box p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); }
.tour-dots i.on { background: var(--ink); width: 18px; border-radius: 4px; } .tour-dots i.done { background: var(--taupe); }
.tour-foot { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.tour-foot > span { display: flex; gap: .4rem; }
.tour-offer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; background: var(--oat); }
.tour-offer b { font: 400 1.6rem/1.1 var(--serif); }

/* ---------- Calm mode ---------- */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .bubble { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bubble { display: none; } }
.anchors li > .icon-btn { grid-column: 2; grid-row: 1; }
/* Text sitting on a coloured fill stays dark in every theme */
:root { --on: #1F1C18; }
.btile.full, .btile.full small, .chb[aria-pressed="true"], .tick[aria-pressed="true"], .cday .rd, .cday .mile, .qs.s-settled, .cday .tag { color: var(--on); }
