/* =====================================================================
   Grace: the stewardship planner, in a scrapbook web page.
   Giant tight lowercase headlines in Inter Tight, Inter for reading and
   Caveat for handwriting; cream cards with chocolate outlines on pale sky
   tiles; polaroids, cut-out tickets, luggage tags and a numbered tab strip.
   Each colour keeps one job:
     blush  = act on it (buttons, the home band, the current tab)
     sky    = calm and focus (tags, folder tabs)
     butter = heads up         lime = money set aside, growth and wins
   ===================================================================== */
:root {
  --serif: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --mono: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-sm: 10px; --bw: 1.5px; --side: 268px;
  --grain: none;
  --shadow: 0 1px 0 rgb(0 0 0 / .04), 0 14px 26px -18px rgb(40 20 15 / .4);
  --pop: 5px 5px 0 var(--line);
}
/* 0. Grace (default): chocolate ink on pale sky tiles, cream paper, blush, sky, butter and lime */
:root, [data-theme="grace"] {
  --bg: #E3ECF2; --bg-2: #D2E0EA; --tile: #D2E0EA; --bar: #FCFCEE; --surface: #FCFCEE; --surface-2: #F5F2E2; --oat: #ECE6D2; --sand: #E3DECB; --taupe: #A2958A; --sheet: #FFFFFA;
  --ink: #401F18; --ink-2: #67483A; --muted: #67483A; --line: #401F18; --hair: #E3DECB; --rule: rgb(64 31 24 / .3);
  --head: #401F18; --red-text: #95345A; --primary: #401F18; --on-primary: #FCFCEE;
  --band: #F7CBD9; --on-band: #401F18; --deep: #401F18; --deep-2: #55302A; --on-deep: #FCFCEE; --accent: #C3D34A;
  --blush: #F7CBD9; --blush-ink: #95345A; --blush-soft: #FBE4EB; --skyc: #C2D9E5; --sky-ink: #2B5C7B; --sky-soft: #E1EDF4;
  --butter: #F7E9B8; --butter-ink: #705712; --butter-soft: #FBF4D9; --lime: #C3D34A; --lime-ink: #55640F; --lime-soft: #EEF3C9;
  --water: #9DC3D8; --water-2: #C2D9E5; --sage: #B9C93F; --ochre: #EBCB62; --rose: #F2A9C0; --plum: #B9A9D6; --clay: #E3A27C;
  --red: #A3263F; --amber: #705712; --green: #55640F; --on: #401F18;
}
/* 1. Dusty Blue */
[data-theme="sky"] {
  --bg: #C2D9E5; --bg-2: #B3CEDC; --tile: #B3CEDC; --bar: #FCFCEE; --surface: #FCFCEE; --surface-2: #F2F0E3; --oat: #E8E3D0; --sand: #DCD8C6; --taupe: #9C9084; --sheet: #FFFFFA;
  --ink: #3F2419; --ink-2: #5E4336; --muted: #5E4336; --line: #3F2419; --hair: #DCD8C6; --rule: rgb(63 36 25 / .3);
  --head: #3F2419; --red-text: #91365A; --primary: #3F2419; --on-primary: #FCFCEE;
  --band: #F9DEDE; --on-band: #3F2419; --deep: #3F2419; --deep-2: #553529; --on-deep: #FCFCEE; --accent: #C3D34A;
  --blush: #F9DEDE; --blush-ink: #91365A; --blush-soft: #FBE9E9; --skyc: #A9CBDD; --sky-ink: #26566F; --sky-soft: #DCEAF2;
  --butter: #F7E9B8; --butter-ink: #6E5512; --butter-soft: #FAF2D6; --lime: #C3D34A; --lime-ink: #52610E; --lime-soft: #EDF2C8;
  --water: #7FAFC9; --water-2: #A9CBDD; --sage: #B5C43A; --ochre: #E8C65A; --rose: #F0A6BE; --plum: #B3A3D3; --clay: #DE9C76;
  --red: #9E2540; --amber: #6E5512; --green: #52610E; --on: #3F2419;
}
/* 2. Cream */
[data-theme="cream"] {
  --bg: #FCFCEE; --bg-2: #F1EFDC; --tile: #F1EFDC; --bar: #FFFFFA; --surface: #FFFFFA; --surface-2: #F6F5E6; --oat: #EFEBD6; --sand: #E7E4D2; --taupe: #A2958A; --sheet: #FFFFFF;
  --ink: #401F18; --ink-2: #66473A; --muted: #66473A; --line: #401F18; --hair: #E7E4D2; --rule: rgb(64 31 24 / .3);
  --head: #401F18; --red-text: #93325D; --primary: #401F18; --on-primary: #FFFFFA;
  --band: #F9C9DF; --on-band: #401F18; --deep: #401F18; --deep-2: #55302A; --on-deep: #FFFFFA; --accent: #C3D34A;
  --blush: #F9C9DF; --blush-ink: #93325D; --blush-soft: #FCE5EF; --skyc: #D2E9F5; --sky-ink: #2B5C7B; --sky-soft: #E6F2F9;
  --butter: #F5E3A6; --butter-ink: #6E5512; --butter-soft: #FAF2D6; --lime: #C3D34A; --lime-ink: #55640F; --lime-soft: #EEF3C9;
  --water: #9DC3D8; --water-2: #D2E9F5; --sage: #B9C93F; --ochre: #EBCB62; --rose: #F2A9C0; --plum: #B9A9D6; --clay: #E3A27C;
  --red: #A3263F; --amber: #6E5512; --green: #55640F; --on: #401F18;
}
/* 3. Cocoa: the dark one */
[data-theme="cocoa"] {
  --bg: #2A1510; --bg-2: #321A14; --tile: #321A14; --bar: #321A14; --surface: #401F18; --surface-2: #4A2820; --oat: #4F2E25; --sand: #5A372C; --taupe: #A88B7A; --sheet: #4A2820;
  --ink: #FCFCEE; --ink-2: #E4D6C6; --muted: #D2C1B1; --line: #A88B7A; --hair: #5A372C; --rule: rgb(252 252 238 / .25);
  --head: #FCFCEE; --red-text: #F9C9DF; --primary: #F7CBD9; --on-primary: #2A1510;
  --band: #F7CBD9; --on-band: #2A1510; --deep: #160B08; --deep-2: #22110C; --on-deep: #FCFCEE; --accent: #C3D34A;
  --blush: #F7CBD9; --blush-ink: #F9C9DF; --blush-soft: #5A2E3A; --skyc: #C2D9E5; --sky-ink: #CFE4EF; --sky-soft: #2E3E48;
  --butter: #F7E9B8; --butter-ink: #F7E9B8; --butter-soft: #4A3B22; --lime: #C3D34A; --lime-ink: #D5E07A; --lime-soft: #3B4220;
  --water: #8FB6CC; --water-2: #C2D9E5; --sage: #B9C93F; --ochre: #EBCB62; --rose: #F2A9C0; --plum: #B9A9D6; --clay: #E3A27C;
  --red: #FF9BB0; --amber: #F7E9B8; --green: #D5E07A; --on: #2A1510;
}
/* 4. Quiet: low colour, for busy days */
[data-theme="quiet"] {
  --bg: #F2F1EE; --bg-2: #E9E7E2; --tile: #E9E7E2; --bar: #FFFFFF; --surface: #FFFFFF; --surface-2: #F7F6F4; --oat: #ECEAE5; --sand: #E2E0DB; --taupe: #9A948C; --sheet: #FFFFFF;
  --ink: #262320; --ink-2: #4D4843; --muted: #4D4843; --line: #3A3632; --hair: #E2E0DB; --rule: rgb(38 35 32 / .28);
  --head: #262320; --red-text: #6E4654; --primary: #262320; --on-primary: #FFFFFF;
  --band: #E3CDD3; --on-band: #262320; --deep: #262320; --deep-2: #3A3632; --on-deep: #FFFFFF; --accent: #CCD1A8;
  --blush: #E3CDD3; --blush-ink: #6E4654; --blush-soft: #F2E9EC; --skyc: #C6D3DA; --sky-ink: #3C5668; --sky-soft: #E8EEF1;
  --butter: #E7DFC3; --butter-ink: #66572C; --butter-soft: #F2EEE1; --lime: #CCD1A8; --lime-ink: #4F5A2A; --lime-soft: #ECEEE0;
  --water: #A9BCC7; --water-2: #C6D3DA; --sage: #BAC08F; --ochre: #D6C48E; --rose: #D9B3BE; --plum: #B7AEC6; --clay: #CFAE98;
  --red: #9A3341; --amber: #66572C; --green: #4F5A2A; --on: #262320;
}
.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-2); }

/* ---------- 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, h2 { color: var(--head); }
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: normal; }
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(--primary); color: var(--on-primary); border-color: var(--primary); }
.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(--primary); color: var(--on-primary); border-color: var(--primary); }
.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(--primary); color: var(--on-primary); }
.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(--primary); }
.switch input:checked::after { background: var(--on-primary); }
.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(--primary); color: var(--on-primary); 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(--primary); color: var(--on-primary); font: 800 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: 1099px) {
  .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(--on-primary); background: var(--primary); }
  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(--primary); color: var(--on-primary); 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(--primary); color: var(--on-primary); border-color: var(--primary); }
.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: 800 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: 800 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: 800 1.8rem/1 var(--serif); min-width: 3ch; text-align: center; }

.word { position: relative; padding: 1.6rem 1.8rem 1.5rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--primary); color: var(--on-primary); 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(--on-primary); stroke: var(--on-primary); width: 16px; height: 16px; }
.word blockquote { margin: 1.1rem 0 1.3rem; max-width: 34em; }
.word blockquote p { font: 800 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); }
/* ---------- 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: 800 42px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }

/* ---------- 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(--primary); color: var(--on-primary); }
.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: 800 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: 800 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: 800 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: 800 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(--primary); 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: 800 1.2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) { #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: 800 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(--primary); color: var(--on-primary); 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: 800 .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); } }

.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: 800 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: 800 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; } }
/* ---------- 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(--primary); }
.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: 800 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: 1099px) { #toasts { bottom: calc(5.6rem + env(safe-area-inset-bottom)); } }
.toast { background: var(--ink); color: var(--surface); 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(--primary); color: var(--on-primary); 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: normal; }
.auth-verse { margin: 1rem 0 0; max-width: 24em; font: 800 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(--on-primary); stroke: var(--on-primary); }
.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: 800 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(--primary); color: var(--on-primary); }
.tour-card strong { display: block; font: 800 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: 800 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; }

/* =====================================================================
   The Steward: shell
   ===================================================================== */
.side { display: none; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand b { display: block; font: 800 1.45rem/1 var(--serif); color: var(--head); white-space: nowrap; }
.brand small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .25rem; }
.brand .mono-mark { width: 40px; height: 40px; }
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto; border-radius: 999px; background: var(--red); color: #fff; font: 500 .62rem/1 var(--mono); font-style: normal; }
.nbadge.dot-only { position: absolute; top: 6px; right: calc(50% - 16px); min-width: 9px; width: 9px; height: 9px; padding: 0; }
.tabbar button { position: relative; }
.more-label { margin: 1rem 0 .5rem; } .more-label:first-child { margin-top: 0; }
.more-grid a { position: relative; }
.more-grid .nbadge { position: absolute; top: 6px; right: 6px; }
@media (min-width: 1100px) {
  .side { display: flex; flex-direction: column; gap: .8rem; position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--side); padding: 1.1rem .8rem 1rem; background: var(--oat); border-right: var(--bw) solid var(--line); overflow-y: auto; scrollbar-width: thin; }
  .side .brand { padding: 0 .4rem; }
  .side-log { width: 100%; }
  .side nav { display: grid; gap: .55rem; }
  .side-group { display: grid; gap: 1px; }
  .side-group .label { padding: 0 .65rem .3rem; font-size: .6rem; color: var(--muted); }
  .side a[data-nav] { display: flex; align-items: center; gap: .6rem; padding: .36rem .65rem; border: var(--bw) solid transparent; border-radius: 999px; font: 500 .66rem/1.15 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
  .side a[data-nav] .ic { width: 17px; height: 17px; color: var(--ink-2); }
  .side a[data-nav] small { margin-left: auto; font-size: .58rem; color: var(--muted); letter-spacing: .04em; }
  .side a[data-nav] .nbadge + small { margin-left: .3rem; }
  .side a[data-nav]:hover { border-color: var(--line); }
  .side a[data-nav][aria-current="page"] { background: var(--surface); border-color: var(--line); }
  .side a[data-nav][aria-current="page"] .ic { color: var(--primary); }
  .side-foot { margin-top: auto; display: grid; gap: 1px; padding-top: .5rem; border-top: 1px dashed var(--line); }
  .main-col { margin-left: var(--side); }
  .top { display: none; }
  main { max-width: 1180px; padding: 0 2rem 6rem; }
  #dock { bottom: 18px; }
}
@media (max-width: 1099px) { .top .brand b { font-size: 1.3rem; } }
@media (max-width: 420px) { .top .brand b { display: none; } }

/* =====================================================================
   Shared pieces
   ===================================================================== */
.page-head .kicker b { font-weight: 500; }
.verse-band { margin: -.4rem 0 1.4rem; padding: .9rem 1.2rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.verse-band blockquote { margin: 0; font: 800 clamp(1.15rem, 2.2vw, 1.45rem)/1.3 var(--serif); color: var(--ink); max-width: 52em; }
.verse-band figcaption { margin-top: .4rem; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.money-big { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); margin: .2rem 0 .3rem; letter-spacing: -.02em; }
.neg { color: var(--red); } .pos { color: var(--green); } .warn { color: var(--amber); } .ochre-t { color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.strip4 b { font-size: clamp(1.7rem, 3.2vw, 2.3rem); overflow-wrap: anywhere; }
.strip-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; padding: .9rem 1.1rem; min-width: 0; }
.strip-btn:hover { background: var(--surface-2); }
.strip-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.strip4 > .strip-btn + * , .strip4 > * + .strip-btn { border-left: var(--bw) solid var(--line); }
.input.sm { min-height: 36px; padding: .35rem .7rem; font-size: .84rem; }
.code { display: inline-block; padding: .35rem .8rem; border: var(--bw) dashed var(--line); border-radius: 10px; font: 500 1.15rem/1.1 var(--mono); letter-spacing: .18em; background: var(--surface); }
.code.sm { font-size: .82rem; padding: .1rem .45rem; letter-spacing: .12em; }
.hint { display: block; margin-top: .2rem; font-size: .72rem; color: var(--ink-2); }
.hint a, .hint .link { font-size: inherit; }

/* A two-column list of label and value */
.jar-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.2rem; margin: .6rem 0 0; }
.jar-dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--hair); font-size: .78rem; }
.jar-dl dt { color: var(--ink-2); } .jar-dl dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 480px) { .jar-dl { grid-template-columns: minmax(0, 1fr); } }
.jar-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; }
.jar-stats div { display: grid; } .jar-stats b { font: 800 2.2rem/1 var(--serif); } .jar-stats small { font-size: .7rem; color: var(--muted); }

/* Rows: date · what · amount · actions */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--hair); font-size: .84rem; }
.rows li:last-child { border-bottom: 0; }
.rows.tight li { padding: .4rem 0; }
.rows .when { flex: 0 0 4.6rem; font-size: .74rem; color: var(--ink-2); }
.rows .when b { display: block; font: 800 1.15rem/1 var(--serif); color: var(--ink); }
.rows .when small { font-size: .64rem; color: var(--muted); }
.rows .what { flex: 1; min-width: 0; }
.rows .what b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.rows .what small { display: block; font-size: .7rem; color: var(--muted); }
.rows .amt { text-align: right; white-space: nowrap; }
.rows .amt small { display: block; font-size: .64rem; color: var(--muted); }
.rows .give { min-width: 5.5rem; text-align: right; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); font-size: .78rem; }
.rows .dot { flex: none; }
@media (max-width: 600px) { .rows .give { display: none; } .rows .when { flex-basis: 3.6rem; } .rows li { gap: .55rem; } }
.ledger + .ledger { margin-top: .8rem; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: .4rem; border-bottom: var(--bw) solid var(--line); margin-bottom: .2rem; }
.ledger-head h3 { font-size: 1.6rem; }
.ledger-head .num { font-size: .78rem; }
details summary { cursor: pointer; }
details > summary.label, details > summary .label { display: inline-block; padding: .4rem 0; }
.add-line { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .4rem; justify-content: center; align-items: center; padding: .55rem; 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; }
.wtag { display: inline-flex; gap: .35rem; align-items: center; align-self: start; justify-self: start; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .64rem; letter-spacing: .05em; background: var(--surface-2); }
.wtag .ic { width: 13px; height: 13px; }
.wtag.ok { background: color-mix(in srgb, var(--green) 18%, var(--surface)); }
.wtag.no { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.avatar { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--primary); color: var(--on-primary); font: 800 1.8rem/1 var(--serif); flex: none; }
.avatar.alt { background: var(--accent); color: var(--on); }
.avatar.empty { background: var(--surface); color: var(--muted); border-style: dashed; }
.avatar.sm { width: 32px; height: 32px; font-size: 1.1rem; }
.color-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.color-pick legend { font: 500 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .4rem; padding: 0; }
.cp { position: relative; cursor: pointer; }
.cp input { position: absolute; opacity: 0; }
.cp i { display: block; width: 30px; height: 30px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--c); }
.cp input:checked + i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.cp input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 4px; }
.opts { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.opt { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); box-shadow: inset 4px 0 0 var(--primary); }
.opt input { margin-top: .25rem; accent-color: var(--primary); }
.opt b { display: block; font-weight: 500; }
.opt small { display: block; font-size: .72rem; color: var(--muted); }
.opt select { margin-top: .4rem; }

/* Rings, jars and the first-fruits bar */
.pring { flex: none; }
.pr-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.pr-fg { fill: none; stroke: var(--c, var(--accent)); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.jar-svg .water { fill: var(--c, var(--water)); }
.jar-svg .water.back { fill: color-mix(in srgb, var(--c, var(--water)) 45%, var(--surface)); }
.jar-svg.sm { width: 140px; }
.jar-svg.xs { width: 58px; }
.jar-svg.xs .jar-glass { stroke-width: 5; } .jar-svg.xs .jar-lid, .jar-svg.xs .jar-neck { stroke-width: 5; }
.jar-pct { font-size: 38px; }
.ff-out { display: grid; gap: .5rem; margin-top: .3rem; }
.ff-bar { display: flex; height: 18px; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.ff-bar i { min-width: 2px; }
.ff-bar i + i { border-left: 1px solid var(--line); }
.ff-bar .give, .sw.give { background: var(--accent); } .ff-bar .skim, .sw.skim { background: var(--water); } .ff-bar .left, .sw.left { background: var(--surface); }
.ff-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .76rem; }
.ff-legend span { display: inline-flex; gap: .4rem; align-items: center; }
.sw { display: inline-block; width: 11px; height: 11px; border: 1px solid var(--line); border-radius: 3px; }

/* Charts */
.chart { display: block; width: 100%; height: auto; margin: .6rem 0 .3rem; overflow: visible; }
.ch-grid { stroke: var(--hair); stroke-width: 1; }
.ch-zero { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 4 4; }
.ch-ax { font: 400 10.5px var(--mono); fill: var(--muted); }
.ch-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.base { stroke: var(--taupe); stroke-dasharray: 5 5; stroke-width: 2; }
.ch-line.bal { stroke: var(--primary); }
.ch-area { fill: color-mix(in srgb, var(--primary) 12%, transparent); stroke: none; }
.ch-bar { fill: var(--c, var(--water)); stroke: var(--line); stroke-width: .8; }
.ch-mark line { stroke: var(--ink); stroke-dasharray: 3 4; stroke-width: 1.2; }
.ch-mark text { font: 500 10.5px var(--mono); fill: var(--ink-2); }
.ch-mark.floor line { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 4; }
.legend .lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--line); }
.lg.in { background: color-mix(in srgb, var(--green) 35%, var(--surface)); } .lg.out { background: var(--surface-2); }
.lg.danger { background: color-mix(in srgb, var(--red) 22%, var(--surface)); } .lg.tight { background: color-mix(in srgb, var(--amber) 22%, var(--surface)); }
.lg.plan { height: 3px; background: var(--primary); border: 0; } .lg.base { height: 0; border: 0; border-top: 2px dashed var(--taupe); border-radius: 0; }
.lg.floor { height: 0; border: 0; border-top: 2px dashed var(--accent); border-radius: 0; } .lg.fill { background: var(--c); }

/* =====================================================================
   Modules
   ===================================================================== */
/* 1 · Sanctuary */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .55rem 0; border-bottom: 1px dashed var(--hair); }
.steps li:last-child { border-bottom: 0; }
.steps li > div > b { display: block; font: 800 1.25rem/1.1 var(--serif); }
.steps .hint b { font-weight: 500; }
.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, .tick-lbl:hover .tick .ic { opacity: .35; transform: scale(1); }
.tick[aria-pressed="true"] .ic { opacity: 1; transform: scale(1); }
.tick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.steps small { display: block; font-size: .74rem; color: var(--muted); }
.steps .hint { color: var(--ink-2); }
.steps li.done > div > b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.tick[aria-pressed="true"], .tick-lbl input:checked + .tick { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tick-lbl input:checked + .tick .ic { opacity: 1; transform: scale(1); }
.tick-lbl { position: relative; cursor: pointer; }
.tick-lbl input { position: absolute; opacity: 0; }
.tick-lbl input:focus-visible + .tick { outline: 2px solid var(--ink); outline-offset: 2px; }
.timer-card { gap: .8rem; }
.ring-fg { stroke: var(--primary); }

/* 2 · First fruits */
.give-hero { display: grid; gap: 1.1rem; }
.gf-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.gf-top h2 { color: var(--ink); }
.gf-top .jar-wrap { padding: 0; }
.rate-row { display: flex; gap: 1rem; align-items: center; font-size: .86rem; }
.rate-row b { font: 800 1.4rem var(--serif); }
.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: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.give-rows b { font: 800 1.35rem/1 var(--serif); }
.give-rows .met { background: color-mix(in srgb, var(--accent) 20%, 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); } .gf-top { grid-template-columns: minmax(0, 1fr); } .gf-top .jar-wrap { display: none; } }

/* 3 · Manna calendar */
.mcal.manna .cday { min-height: 118px; gap: 2px; }
.cday .bal { font-size: .58rem; color: var(--muted); letter-spacing: .02em; }
.cday .mi { display: block; font-size: .58rem; line-height: 1.3; padding: .1rem .3rem; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--on); }
.cday .mi b { font-weight: 500; }
.cday .mi.in { background: color-mix(in srgb, var(--green) 30%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 60%, var(--line)); }
.cday .mi.out { background: var(--surface-2); border-left: 3px solid var(--taupe); }
.cday .mdots { display: none; gap: 3px; }
.cday .mdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); }
.cday .mdots i.in { background: var(--green); }
.cday.danger { background: color-mix(in srgb, var(--red) 13%, var(--surface)); }
.cday.danger .bal { color: var(--red); font-weight: 500; }
.cday.danger .mi.out { border-left-color: var(--red); }
.cday.tight { background: color-mix(in srgb, var(--amber) 13%, var(--surface)); }
.cday.past:not(.out) > :not(.ctop) { opacity: .5; }
.cday.past .n { color: var(--muted); }
@media (max-width: 700px) { .mcal.manna .cday { min-height: 58px; } .cday .mi, .cday .bal { display: none; } .cday .mdots { display: flex; flex-wrap: wrap; } }
.bank-card .money-big { margin-top: 0; }
.jar-dl.one { grid-template-columns: minmax(0, 1fr); }
.danger-card { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.zones li { display: grid; gap: .15rem; font-size: .84rem; }
.zones li > b { font: 800 1.3rem/1.1 var(--serif); }
.zones small { font-size: .72rem; color: var(--muted); }
.remember { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0 0; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--surface-2); font: 800 1.05rem/1.3 var(--serif); }
.remember .ic { flex: none; margin-top: .15rem; }
.danger-line { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .6rem; padding: .55rem .75rem; border: 1px solid var(--red); border-radius: var(--r-sm); background: color-mix(in srgb, var(--red) 9%, var(--surface)); font-size: .82rem; }
.danger-line .ic { color: var(--red); margin-top: .1rem; }

/* 4 · Contentment journal */
.wait-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start; }
@media (max-width: 1000px) { .wait-cols { grid-template-columns: minmax(0, 1fr); } }
.wait-col { display: grid; gap: .6rem; padding: .8rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.wait-col header { display: flex; gap: .7rem; align-items: center; padding: .2rem .2rem .4rem; }
.wc-l { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--primary); color: var(--on-primary); flex: none; }
.wait-col h2 { font-size: 1.6rem; }
.wait-col header small { font-size: .66rem; color: var(--muted); }
.wc-empty { margin: .2rem; }
.wait-col.done .rows { padding: 0 .3rem; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .8rem; }
.wish { display: grid; gap: .5rem; padding: .8rem .9rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.wish.ready { box-shadow: inset 4px 0 0 var(--green); } .wish.ask, .wish.awaiting { box-shadow: inset 4px 0 0 var(--accent); } .wish.declined { box-shadow: inset 4px 0 0 var(--red); }
.wish-top { display: flex; gap: .7rem; align-items: center; }
.wish-top > div { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex: 1; min-width: 0; }
.wish-name { all: unset; cursor: pointer; font: 800 1.35rem/1.1 var(--serif); }
.wish-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.wish-name:focus-visible { outline: 2px solid var(--ink); }
.wish-top b { font: 800 1.3rem/1 var(--serif); white-space: nowrap; }
.wish p { margin: 0; font-size: .8rem; color: var(--ink-2); }
.grat { display: grid; gap: .35rem; }
.grat .label { font-size: .6rem; }
.grat .btn { justify-self: start; }
.grat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .82rem; }
.grat-list .ic { width: 13px; height: 13px; color: var(--rose); vertical-align: -2px; }
.wish-acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.ask-band .wish { border-color: var(--accent); }
.ask-card { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }

/* 5 · Chain breaker */
.chain-hero { display: grid; gap: 1rem; }
.sb-top { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: flex-end; }
.sb-big h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: .25rem 0 .3rem; }
.sb-big p { margin: 0; }
.sb-vs { display: grid; gap: .1rem; max-width: 22rem; font-size: .82rem; padding: .7rem .9rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); }
.sb-vs b { font: 800 1.5rem/1.1 var(--serif); color: var(--green); }
.sb-ctl { display: grid; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--hair); }
.sb-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.sb-row input[type="range"] { flex: 1 1 220px; accent-color: var(--primary); min-width: 0; }
.sb-row .input { width: 7.5rem; }
.chain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.chain { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; align-items: start; padding: .9rem 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.chain.target { box-shadow: inset 5px 0 0 var(--primary); }
.chain-n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: var(--bw) solid var(--line); border-radius: 50%; font: 800 1.4rem/1 var(--serif); }
.chain.target .chain-n { background: var(--primary); color: var(--on-primary); }
.chain-body { display: grid; gap: .55rem; min-width: 0; }
.chain-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.chain-top small, .chain-left small { display: block; font-size: .7rem; color: var(--muted); }
.chain-name { all: unset; cursor: pointer; font: 800 1.5rem/1.1 var(--serif); }
.chain-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.chain-left { text-align: right; } .chain-left b { font: 800 1.5rem/1 var(--serif); }
.chain-foot { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.chain-foot .btn { margin-left: auto; }
.bar.big { height: 14px; }
.broken { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.broke { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: center; padding: .7rem .8rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.broke b { font: 800 1.25rem/1.1 var(--serif); text-decoration: line-through; text-decoration-thickness: 1px; }
.broke small { grid-column: 2; font-size: .7rem; color: var(--muted); }
.broke .icon-btn { grid-row: 1 / span 2; grid-column: 3; }
.empty.free { background: color-mix(in srgb, var(--green) 10%, var(--surface)); }

/* 6 · Barns, 11 · Jubilee */
.barns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.barn { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.barn.full { background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.barn-jar .jar-svg { width: 104px; }
.barn-body .head-actions { margin-top: .3rem; }
.barn-body { display: grid; gap: .3rem; min-width: 0; }
.barn-body p { margin: 0; font-size: .82rem; }
.barn-body p b { font: 800 1.45rem/1 var(--serif); }
.barn-body small { font-size: .7rem; color: var(--muted); }
.barn-name { all: unset; cursor: pointer; font: 800 1.45rem/1.1 var(--serif); overflow-wrap: anywhere; }
.barn-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.barn-name:focus-visible { outline: 2px solid var(--ink); }
.barn.add { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .5rem; min-height: 160px; border: var(--bw) dashed var(--line); border-radius: var(--r); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.barn.add:hover { background: var(--surface); }
.barn.add .ic { width: 26px; height: 26px; }
.mol-sum { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.mol-sum .money-big { margin: 0; }
.mol-eq { display: flex; gap: .8rem; align-items: center; font-size: 1.05rem; }
.mol-eq > span { display: grid; } .mol-eq small { font-size: .66rem; color: var(--muted); }
.mol-eq i { font: 800 1.6rem var(--serif); color: var(--muted); }
.jubilees { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.jub { display: grid; gap: .9rem; }
.jub-top { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; align-items: center; }
.jub-jar .jar-svg { width: 90px; }
.jub-big { margin: .4rem 0 0; font-size: .82rem; } .jub-big b { font: 800 2.2rem/1 var(--serif); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.months i { height: 34px; border: var(--bw) solid var(--line); border-radius: 8px; background: linear-gradient(to top, var(--c) calc(var(--p) * 100%), var(--surface) calc(var(--p) * 100%)); }
.months i.extra { border-style: dashed; }

/* 7 · Covenant */
.agenda .steps li { grid-template-columns: 30px minmax(0, 1fr); }
.us { text-align: center; }
.pair { display: flex; justify-content: center; align-items: center; gap: .6rem; }
.amp { font: 800 2rem var(--serif); color: var(--muted); }
.invite { display: grid; justify-items: center; gap: .6rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--hair); }
.date-when { display: flex; gap: .5rem; align-items: center; margin: 0 0 .8rem; font-size: .9rem; }
.date-when .ic { color: var(--green); }
.moods { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.moods legend { font: 500 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; padding: 0; }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .9rem; }
.dnote { display: grid; gap: .5rem; align-content: start; }
.dnote header { display: flex; gap: .6rem; align-items: center; }
.dnote header b { font: 800 1.35rem/1 var(--serif); }
.dnote header .icon-btn { margin-left: auto; }
.dnote p { margin: 0; font-size: .82rem; }
.dnote .label { display: block; margin-bottom: .1rem; font-size: .58rem; }
.date-nudge { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.date-nudge > div { flex: 1; min-width: 200px; } .date-nudge b { font: 800 1.4rem var(--serif); }
.dn-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--surface); }

/* 8 · Talents */
.talent-hero { display: grid; gap: .6rem; }
.th-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.th-cols > div { display: grid; gap: .15rem; align-content: start; padding: .8rem .9rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); }
.th-cols small { font-size: .7rem; color: var(--muted); }
.th-cols .money-big { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: .1rem 0; }
.th-cols .sur.has { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.th-cols .sur .btn { justify-self: start; margin-top: .4rem; }
@media (max-width: 760px) { .th-cols { grid-template-columns: minmax(0, 1fr); } }
.streams { display: grid; gap: .6rem; }
.stream { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem 1rem; }
.stream small { display: block; font-size: .7rem; color: var(--muted); }
.stream .num { text-align: right; } .stream .num b { font: 800 1.4rem/1 var(--serif); }

/* 9 · Storehouse */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.week li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .8rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--hair); border-radius: var(--r-sm); }
.week li.today { border: var(--bw) solid var(--line); background: var(--surface-2); }
.wd b { display: block; font: 800 1.25rem/1 var(--serif); } .wd small { font-size: .66rem; color: var(--muted); }
.wm { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.meal-chip { display: inline-flex; gap: .4rem; align-items: center; padding: .25rem .3rem .25rem .7rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--surface); font-size: .8rem; }
.meal-chip small { font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meal-chip .x { all: unset; cursor: pointer; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.meal-chip .x:hover { background: var(--surface-2); } .meal-chip .x .ic { width: 12px; height: 12px; }
.add-chip { all: unset; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; padding: .25rem .6rem; border: var(--bw) dashed var(--line); border-radius: 999px; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.add-chip .ic { width: 13px; height: 13px; } .add-chip:hover { background: var(--surface); }
.add-chip:focus-visible { outline: 2px solid var(--ink); }
.shop-tot { display: flex; gap: 1.4rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .6rem; }
.shop-tot > div { display: grid; } .shop-tot small { font-size: .7rem; color: var(--muted); }
.shop-tot .money-big { margin: 0; } .shop-tot .saved b { font: 800 1.5rem/1 var(--serif); color: var(--green); }
.checklist { list-style: none; margin: 0 0 .6rem; padding: 0; }
.checklist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .6rem; padding: .4rem 0; border-bottom: 1px dashed var(--hair); font-size: .84rem; }
.checklist label { display: flex; gap: .5rem; align-items: center; cursor: pointer; }
.checklist input { accent-color: var(--primary); width: 17px; height: 17px; }
.checklist small { grid-column: 1; padding-left: 1.6rem; font-size: .66rem; color: var(--muted); }
.checklist b { grid-row: 1; grid-column: 2; font-weight: 400; }
.checklist li.got span { text-decoration: line-through; color: var(--muted); }
.place-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--surface-2); }
.stock { list-style: none; margin: 0; padding: 0; }
.stock li { display: flex; gap: .5rem; align-items: center; padding: .35rem 0; border-bottom: 1px dashed var(--hair); flex-wrap: wrap; }
.stock li.out .st-name { color: var(--muted); text-decoration: line-through; }
.st-name { all: unset; cursor: pointer; flex: 1; min-width: 7rem; font-size: .86rem; }
.st-name:hover { text-decoration: underline; }
.st-name:focus-visible { outline: 2px solid var(--ink); }
.stock small { font-size: .66rem; }
.qty { display: inline-flex; align-items: center; gap: .2rem; }
.qty b { min-width: 1.8rem; text-align: center; font-weight: 500; } .qty small { min-width: 2.4rem; color: var(--muted); }
.meals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .9rem; }
.meal { display: grid; gap: .6rem; align-content: start; }
.meal header { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.meal header .num { font-size: .82rem; white-space: nowrap; } .meal header small { color: var(--muted); }
.ings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ings li { display: inline-flex; gap: .3rem; align-items: center; padding: .15rem .55rem; border: 1px solid var(--hair); border-radius: 999px; font-size: .74rem; }
.ings li i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); }
.ings li.have { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.ings .ic { width: 12px; height: 12px; color: var(--green); }

/* 10 · Legacy */
.worth-hero { display: grid; gap: .6rem; }
.wh-top { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: flex-end; }
.wh-top h2 { color: var(--ink); }
.wh-eq { margin: 0; display: grid; gap: .2rem; min-width: 260px; }
.wh-eq div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dashed var(--hair); font-size: .8rem; }
.wh-eq dt { color: var(--ink-2); } .wh-eq dd { margin: 0; }
.comp { display: flex; height: 26px; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; }
.comp i { background: var(--c); min-width: 3px; }
.comp i + i { border-left: 1px solid var(--line); }
.vault-intro { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--oat); }
.vault-intro > div { flex: 1; min-width: 240px; } .vault-intro b { font: 800 1.4rem/1.2 var(--serif); }
.vault-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--primary); color: var(--on-primary); }
.vault-ic .ic { width: 24px; height: 24px; }
.vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.vrec { display: grid; gap: .4rem; align-content: start; }
.vrec header { display: flex; justify-content: space-between; align-items: center; }
.vrec h3 { font-size: 1.6rem; }
.vrec dl { margin: 0; display: grid; gap: .25rem; }
.vrec dl div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; font-size: .78rem; }
.vrec dt { color: var(--muted); } .vrec dd { margin: 0; }
.vrec small { font-size: .68rem; }
.vrec.missing { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .3rem; min-height: 130px; padding: 1rem; border: var(--bw) dashed var(--line); border-radius: var(--r); text-align: center; }
.vrec.missing b { font: 800 1.3rem/1.1 var(--serif); } .vrec.missing small { color: var(--muted); }
.vrec.missing:hover { background: var(--surface); }
.vrec.missing:focus-visible { outline: 2px solid var(--ink); }

/* 12 · Pruning hook */
.prune-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .8rem; }
.branch { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .3rem .8rem; border-style: dashed; background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.branch b { font: 800 1.35rem/1.1 var(--serif); } .branch small { display: block; font-size: .7rem; color: var(--muted); }
.branch p { margin: .3rem 0 0; font-size: .8rem; } .branch p b { font-size: 1.2rem; }
.branch .head-actions { grid-column: 1 / -1; margin-top: .4rem; }
.b-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--surface); }
.vine { list-style: none; margin: 0; padding: 0; }
.vine li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 5rem auto; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px dashed var(--hair); }
.v-name b { display: block; font-weight: 500; font-size: .86rem; } .v-name small { display: block; font-size: .66rem; color: var(--muted); }
.v-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.v-bar i { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.vine li.dry .v-bar i { background: var(--amber); } .vine li.dry .v-name b::after { content: " · dry"; color: var(--amber); font-weight: 400; font-size: .7rem; }
.vine li > b { text-align: right; font-weight: 400; }
.v-acts { display: flex; } .v-acts .btn { padding: .3rem .5rem; }
@media (max-width: 700px) { .vine li { grid-template-columns: minmax(0, 1fr) auto; } .v-bar { grid-column: 1 / -1; grid-row: 2; } .v-acts { grid-column: 1 / -1; } }

/* 13 · Ebenezer stones */
.stone-hero { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.stone-hero h2 { margin: .3rem 0 0; }
.cairn { position: relative; width: 120px; height: 120px; flex: none; }
.cairn i { position: absolute; left: 50%; bottom: calc(var(--i) * 12px); width: calc(100px - var(--i) * 9px); height: 22px; margin-left: calc((100px - var(--i) * 9px) / -2 + (var(--i) * 1px - 4px) * (var(--i) % 2 * 2 - 1)); border: var(--bw) solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--taupe) calc(40% + var(--i) * 6%), var(--surface)); }
.yr { font: 800 2rem/1 var(--serif); margin: 1.4rem 0 .9rem; color: var(--head); }
.yr:first-child { margin-top: 0; }
.stone-dot { border-radius: 45% 55% 50% 50% / 60% 55% 45% 40%; background: var(--taupe); width: 18px; height: 15px; }
.timeline.stones .tl-card p { font-size: .86rem; }
.remember-big { text-align: center; }
.remember-big h3 { font-size: 2.2rem; margin: .5rem 0 .6rem; }
.remember-big blockquote { margin: 1.2rem 0 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); font: 800 1.15rem/1.35 var(--serif); }
.remember-big footer { font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: .4rem; }
.stone-card h3 { font-size: 1.6rem; margin: .4rem 0 .3rem; }
.stone-card .label { display: inline-flex; gap: .4rem; align-items: center; }

/* 14 · Little stewards */
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 1rem; }
.kid { display: grid; gap: .9rem; align-content: start; }
.kid-head { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.kid-head > div { flex: 1; min-width: 160px; } .kid-head small { display: block; font-size: .68rem; color: var(--muted); }
.kid-av { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--c); color: var(--on); font: 800 1.6rem/1 var(--serif); flex: none; }
.kid-av.big { width: 84px; height: 84px; font-size: 2.8rem; }
.kid-jars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.kj { display: grid; justify-items: center; gap: .15rem; padding: .7rem .4rem; }
.kj + .kj { border-left: var(--bw) solid var(--line); }
.kj b { font: 800 1.5rem/1 var(--serif); } .kj small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.kj-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--c); }
.kid-goal { display: grid; gap: .3rem; } .kid-goal small { font-size: .74rem; }
.chores-mini { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chores-mini .label { width: 100%; }
.kid-mode { padding: 1rem 0 2rem; }
.km-hello { display: grid; justify-items: center; text-align: center; gap: .5rem; margin: .8rem 0 1.6rem; }
.km-hello h1 { font-size: clamp(3rem, 10vw, 5.4rem); }
.km-hello p { margin: 0; font-size: 1rem; }
.km-jars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 760px; margin: 0 auto; }
.km-jar { display: grid; justify-items: center; gap: .2rem; padding: 1rem .6rem; border: var(--bw) solid var(--line); border-radius: 28px; background: var(--surface); text-align: center; }
.km-jar .jar-svg { width: min(170px, 100%); }
.km-jar b { font: 800 2rem/1 var(--serif); } .km-jar small { font-size: .74rem; color: var(--muted); }
@media (max-width: 560px) { .km-jars { gap: .5rem; } .km-jar { padding: .7rem .3rem; border-radius: 18px; } .km-jar b { font-size: 1.4rem; } .km-jar small { font-size: .62rem; } }
.km-goal { max-width: 560px; margin: 1.6rem auto 0; text-align: center; padding: 1.2rem; border: var(--bw) solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.km-goal h2 { font-size: 2.4rem; margin: .3rem 0 .8rem; }
.km-goal p { margin: .6rem 0 0; font-size: .95rem; }
.km-chores { max-width: 560px; margin: 1.6rem auto 0; }
.km-chores h2 { font-size: 2.2rem; text-align: center; margin-bottom: .8rem; }
.km-chores ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.km-chore { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; width: 100%; padding: .8rem 1.1rem; border: var(--bw) solid var(--line); border-radius: 20px; background: var(--surface); font: 800 1.5rem/1.1 var(--serif); }
.km-chore b { font: 500 .9rem var(--mono); }
.km-tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--surface-2); }
.km-tick .ic { opacity: 0; width: 22px; height: 22px; }
.km-chore.done { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.km-chore.done .km-tick { background: var(--c); } .km-chore.done .km-tick .ic { opacity: 1; color: var(--on); }
.km-chore:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.km-verse { max-width: 560px; margin: 2rem auto 0; text-align: center; font: 800 1.4rem/1.3 var(--serif); }
.km-verse footer { font: 500 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: .5rem; }

/* 15 · Acts 2 treasury */
.places { display: flex; flex-wrap: wrap; gap: .5rem; }
.place-chip { display: grid; grid-template-columns: 18px auto; gap: 0 .5rem; align-items: center; padding: .5rem .8rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.place-chip b { font: 800 1.25rem/1.1 var(--serif); } .place-chip small { grid-column: 2; font-size: .66rem; color: var(--muted); max-width: 26ch; }
.causes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .9rem; }
.cause { display: grid; gap: .6rem; align-content: start; box-shadow: inset 0 5px 0 var(--c); }
.cause header { display: flex; gap: .7rem; align-items: center; }
.cause header small { display: block; font-size: .68rem; color: var(--muted); }
.cause-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--line); background: color-mix(in srgb, var(--c) 35%, var(--surface)); flex: none; }
.cause .btn { justify-self: start; }
.cause dd .ic { width: 13px; height: 13px; color: var(--green); vertical-align: -2px; }
.pledge { display: grid; gap: .3rem; } .pledge small { font-size: .72rem; }

/* Home */
.mini-jars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.mini-jar { display: grid; justify-items: center; gap: .2rem; text-align: center; text-decoration: none; padding: .4rem .2rem; border-radius: var(--r-sm); }
.mini-jar:hover { background: var(--surface-2); }
.mini-jar b { font-size: .68rem; font-weight: 500; line-height: 1.2; } .mini-jar small { font-size: .64rem; color: var(--muted); }

/* Settings and sign-in */
.theme-grid.wide-sw { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.invite-box { display: grid; gap: .7rem; margin-top: 1rem; padding: 1rem; border: var(--bw) dashed var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.invite-box .label { display: block; margin-bottom: .3rem; }
.invite-box ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.unlock-opt { display: grid; gap: .5rem; padding: 1rem 0; border-top: 1px dashed var(--hair); }
.unlock-opt p { margin: 0; }


/* =====================================================================
   THE SCRAPBOOK LAYER
   Everything below restyles the shared pieces and modules for the
   paper-and-ink look. It comes last so it wins.
   ===================================================================== */

/* ---------- Paper, ink and type ---------- */
body { background-color: var(--bg); color: var(--ink); font: 400 13.5px/1.62 var(--mono); letter-spacing: 0; }
body::before { content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; background-image: var(--grain); background-size: 220px; opacity: .2; mix-blend-mode: multiply; }
h1, h2, h3, .serif { font-family: var(--serif); font-style: normal; font-weight: 800; letter-spacing: -.035em; }
h1, h2 { color: var(--head); }
h3 { color: var(--ink); }
h1 em, h2 em, .h2 em { font-family: var(--script); font-style: normal; font-weight: 400; font-variation-settings: normal; letter-spacing: 0; font-size: 1.32em; line-height: .5; color: var(--head); }
.script { font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--head); font-variation-settings: normal; }
.label { font: 500 .6rem/1.3 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--muted); }
.money-big { font: 800 clamp(2.4rem, 5vw, 3.5rem)/1 var(--serif); letter-spacing: -.04em; color: var(--head); }
.jar-stats b, .give-rows b, .big-num { font-family: var(--serif); font-style: normal; font-weight: 800; letter-spacing: -.03em; color: var(--head); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

/* ---------- Controls: square, typewritten ---------- */
.btn { border-radius: 0; border: 1px solid var(--primary); background: transparent; color: var(--red-text); font: 500 .64rem/1 var(--mono); letter-spacing: .15em; min-height: 38px; padding: .45rem 1.25rem; }
.btn:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.btn.solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.solid:hover { filter: brightness(1.08); background: var(--primary); }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.sm { min-height: 30px; padding: .3rem .8rem; font-size: .6rem; }
.icon-btn:hover { border-color: var(--rule); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.icon-btn.outlined { border-color: var(--rule); background: var(--surface); }
.input { border-radius: 0; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: color-mix(in srgb, var(--surface) 65%, #fff); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); }
.field > span, .color-pick legend, .moods legend { font: 500 .58rem/1.3 var(--mono); letter-spacing: .15em; }
.chip { border-radius: 0; border: 1px solid var(--rule); background: transparent; font: 500 .6rem/1.2 var(--mono); letter-spacing: .1em; color: var(--ink-2); }
.chip:has(input:checked), .chip[aria-pressed="true"], .chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.seg { border-radius: 0; border-color: var(--primary); background: transparent; }
.seg button { font-size: .6rem; letter-spacing: .12em; color: var(--red-text); }
.seg button + button { border-left-color: var(--primary); }
.bar { border: 0; border-radius: 0; height: 8px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.bar i { background: var(--head); border-right: 0; }
.bar.big { height: 12px; }
.tick { border: 1px solid var(--rule); }
.switch input { border-color: var(--rule); }
.add-line { border: 1px dashed var(--rule); border-radius: 0; }
.wtag, .tag { display: inline-flex; gap: .35rem; align-items: center; justify-self: start; align-self: start; padding: .2rem .55rem; border: 1px solid var(--rule); border-radius: 0; background: var(--surface-2); font: 500 .58rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.wtag .ic, .tag .ic { width: 12px; height: 12px; }
.wtag.ok { background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.wtag.no { background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.legend .lg { border-radius: 0; }
.empty { border: 1px dashed var(--rule); border-radius: 0; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.empty h3 { color: var(--head); font-size: 1.9rem; }
.opt { border-radius: 0; border-color: var(--rule); }
.ff-bar { border-radius: 0; border-color: var(--rule); height: 16px; }
.code { border-radius: 0; border-color: var(--rule); background: var(--surface-2); }

/* ---------- The desk: sidebar, phone bars ---------- */
.side { background: var(--bar); border-right: 1px solid var(--rule); }
.brand b { font: 800 1.55rem/1 var(--serif); letter-spacing: -.045em; color: var(--head); }
.brand small { font-size: .56rem; letter-spacing: .14em; }
.mono-mark { width: 38px; height: 42px; border-radius: 0; border: 0; padding: 3px 3px 8px; background: var(--sheet); box-shadow: var(--shadow), 0 0 0 1px var(--rule); transform: rotate(-5deg); }
.mono-mark { color: var(--head); font: 400 1.7rem/1 var(--script); place-items: center; }
.brand .mono-mark { width: 36px; height: 40px; }
@media (min-width: 1100px) {
  .side-group .label { font: 400 1.35rem/1 var(--script); letter-spacing: 0; text-transform: none; color: var(--head); padding: 0 .55rem .1rem; }
  .side a[data-nav] { border: 0; border-radius: 0; padding: .36rem .6rem; font: 500 .6rem/1.2 var(--mono); letter-spacing: .13em; color: var(--ink-2); }
  .side a[data-nav] .ic { width: 15px; height: 15px; color: var(--muted); }
  .side a[data-nav]:hover { color: var(--head); border: 0; }
  .side a[data-nav][aria-current="page"] { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--red-text); box-shadow: inset 2px 0 0 var(--primary); font-style: normal; }
  .side a[data-nav][aria-current="page"] .ic { color: var(--red-text); }
  .side-foot { border-top: 1px dashed var(--rule); }
  main { padding: 0 2.4rem 6rem; }
}
.top { background: var(--bar); border-bottom: 1px solid var(--rule); }
.tabbar { background: var(--bar); border-top: 1px solid var(--rule); }
@media (max-width: 1099px) {
  .tabbar a, .tabbar button { border-radius: 0; color: var(--muted); }
  .tabbar [aria-current="page"] { color: var(--red-text); background: transparent; box-shadow: inset 0 2px 0 var(--primary); }
}
.more-grid a { border-radius: 0; border-color: var(--rule); background: var(--surface); }
.demo-band { background: var(--deep); color: var(--on-deep); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.nbadge { background: var(--primary); color: var(--on-primary); }

/* ---------- Page header: the title, signed ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem 3rem; align-items: end; padding: 2.6rem 0 1.5rem; }
.ph-no { display: block; margin-bottom: 1.1rem; font: 500 .6rem/1.3 var(--mono); letter-spacing: .17em; text-transform: uppercase; color: var(--ink-2); }
.page-head h1 { font-size: clamp(3.3rem, 8.2vw, 6.4rem); line-height: .86; letter-spacing: -.055em; font-weight: 800; }
.page-head h1 .script { display: block; width: max-content; font-size: .6em; line-height: .55; margin: 0 0 -.02em .1em; transform: rotate(-7deg); transform-origin: left bottom; }
.ph-words { text-transform: capitalize; }
.ph-side { display: grid; gap: 1rem; justify-items: start; padding-bottom: .5rem; }
.page-head .lede { margin: 0; max-width: 46ch; font-size: .7rem; line-height: 1.7; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 820px) { .page-head { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 0 1.2rem; } }
.verse-band { position: relative; max-width: 780px; margin: .4rem 0 2rem; padding: 1.2rem 1.5rem 1rem; border: 0; border-radius: 0; background: var(--surface); box-shadow: var(--shadow); transform: rotate(-.35deg); }
.verse-band::before { content: ""; position: absolute; top: -10px; left: 44px; width: 92px; height: 22px; background: color-mix(in srgb, var(--sand) 65%, transparent); transform: rotate(-3deg); }
.verse-band blockquote { font: 800 clamp(1.1rem, 2vw, 1.38rem)/1.38 var(--serif); color: var(--ink); }
.verse-band figcaption { display: flex; gap: .6rem; align-items: baseline; margin-top: .25rem; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verse-band .script { font-size: 1.75rem; text-transform: none; letter-spacing: 0; }
.tabs { gap: 3px; margin: 0 0 1.8rem; padding: 0; border-bottom: 2px solid var(--primary); }
.tabs a { border: 1px solid var(--rule); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--surface-2); padding: .55rem 1.1rem .45rem; font: 500 .6rem/1 var(--mono); letter-spacing: .13em; color: var(--ink-2); }
.tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ---------- Paper cards ---------- */
.card { border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); padding: 1.35rem 1.45rem; }
.card-head { padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--rule); }
.card > h2, .card-head h2 { font-size: 2.15rem; line-height: .95; }
.card-head .label { margin-bottom: .35rem; }
.strip4 { border: 0; border-radius: 0; background: var(--band); color: var(--on-band); box-shadow: var(--shadow); }
.strip4 > * { justify-items: center; text-align: center; padding: 1.05rem .8rem; color: inherit; }
.strip4 > * + *, .strip4 > .strip-btn + *, .strip4 > * + .strip-btn { border-left: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent); }
.strip4 b { font: 800 clamp(1.7rem, 3vw, 2.35rem)/1 var(--serif); letter-spacing: -.04em; color: var(--on-band); }
.strip4 small { font: 500 .56rem/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--on-band) 88%, transparent); }
.strip4 a:hover, .strip-btn:hover { background: color-mix(in srgb, #000 12%, transparent); }
.strip4 .neg { color: var(--on-band); text-decoration: underline wavy color-mix(in srgb, var(--on-band) 60%, transparent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.strip4 .pos { color: var(--on-band); }
@media (max-width: 700px) { .strip4 > :nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent); } .strip4 > :nth-child(3) { border-left: 0; } }
.rows li { border-bottom: 1px dashed var(--rule); }
.rows .when { color: var(--red-text); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.rows .when b { font: 800 1.2rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.rows .what b { font: 800 1.18rem/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.rows .what small { font-size: .64rem; letter-spacing: .02em; }
.rows .amt { font-size: .82rem; }
.jar-dl div { border-bottom: 1px dashed var(--rule); }
.ledger-head { border-bottom: 1px solid var(--rule); }
.ledger-head h3 { color: var(--head); }
.give-rows { border: 1px solid var(--rule); border-radius: 0; }
.give-rows > div + div { border-left: 1px dashed var(--rule); }
.give-rows .met { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
@media (max-width: 640px) { .give-rows > :nth-child(n+3) { border-top: 1px dashed var(--rule); } }

/* ---------- Things from the desk drawer ---------- */
/* A polaroid: a white frame, a thick bottom edge and a hand-written caption */
.polaroid { position: relative; z-index: 2; width: min(300px, 74vw); margin: 0; padding: 12px 12px 0; background: var(--sheet); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .04); transform: rotate(-3deg); }
.pol-in { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .9; padding: 1.4rem 1.3rem; background: var(--deep); color: var(--on-deep); }
.pol-in blockquote { margin: 0; text-align: center; font: 800 clamp(1.05rem, 1.9vw, 1.3rem)/1.34 var(--serif); }
.pol-in .icon-btn { position: absolute; right: 6px; top: 6px; color: var(--on-deep); }
.pol-in .icon-btn:hover { color: var(--deep); }
.pol-in.jar-in { background: var(--surface-2); } .pol-in.jar-in .jar-svg { width: 62%; }
.polaroid figcaption { padding: .35rem .3rem .55rem; text-align: center; font-size: 2.1rem; line-height: 1.15; color: var(--head); transform: rotate(-2deg); }
/* The star-shaped price sticker */
.burst { position: absolute; z-index: 4; display: grid; place-items: center; width: 92px; height: 92px; background: var(--primary); color: var(--on-primary); text-align: center; transform: rotate(-12deg); pointer-events: none;
  clip-path: polygon(50.0% 0.0%, 57.1% 9.6%, 67.1% 3.0%, 70.5% 14.5%, 82.1% 11.7%, 81.4% 23.6%, 93.3% 25.0%, 88.5% 36.0%, 99.2% 41.3%, 91.0% 50.0%, 99.2% 58.7%, 88.5% 64.0%, 93.3% 75.0%, 81.4% 76.4%, 82.1% 88.3%, 70.5% 85.5%, 67.1% 97.0%, 57.1% 90.4%, 50.0% 100.0%, 42.9% 90.4%, 32.9% 97.0%, 29.5% 85.5%, 17.9% 88.3%, 18.6% 76.4%, 6.7% 75.0%, 11.5% 64.0%, 0.8% 58.7%, 9.0% 50.0%, 0.8% 41.3%, 11.5% 36.0%, 6.7% 25.0%, 18.6% 23.6%, 17.9% 11.7%, 29.5% 14.5%, 32.9% 3.0%, 42.9% 9.6%); }
.burst span { font: 800 1rem/.92 var(--serif); letter-spacing: -.03em; }
/* Binder rings hanging from a dark strip */
.rings { position: relative; display: flex; justify-content: space-around; height: 30px; margin: 0 0 3rem; padding: 0 10%; background: var(--deep); }
.rings i { position: relative; width: 13px; height: 50px; margin-top: 6px; border-radius: 8px; background: linear-gradient(90deg, #2c2c2c, #9a9a9a 30%, #ececec 48%, #8a8a8a 68%, #262626); box-shadow: 0 5px 7px rgba(0, 0, 0, .3); }
.rings i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 15px; height: 15px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #1d1d1d 45%, #5c5c5c 47%, #2a2a2a 62%, transparent 64%); }
/* Punched paper: a row of holes along the top */
.punched { position: relative; padding-top: 2.4rem; }
.punched::before { content: ""; position: absolute; top: 14px; left: 22%; right: 22%; height: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--band) 85%, #000) 6px, transparent 6.5px) center / 33.33% 14px repeat-x; }

/* ---------- Home: a magazine cover ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 2.2rem 0 2.6rem; }
.hero-side { margin: 0; text-align: center; font: 500 .62rem/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hero-stack { display: grid; justify-items: center; text-align: center; }
.hero-top, .hero-bot { margin: 0; font: 800 clamp(3.6rem, 9.5vw, 8rem)/.8 var(--serif); letter-spacing: -.06em; color: var(--head); }
.hero-top { margin-bottom: -.12em; }
.hero-bot { margin-top: .1em; }
.hero .polaroid { margin: 0 0 -.1rem; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1.4rem; } .hero-side { display: none; } }
.tour-offer { position: relative; padding-left: 128px; background: var(--surface); border: 0; }
.tour-offer .burst { left: 18px; top: 50%; margin-top: -46px; }
.tour-offer b { font: 800 1.7rem/1 var(--serif); color: var(--head); }
.ask-home { display: flex; justify-content: center; }
.mini-jar:hover { background: var(--surface-2); }
.stone-card { background: var(--deep); color: var(--on-deep); }
.stone-card h3 { color: var(--on-deep); }
.stone-card .label, .stone-card .muted, .stone-card a { color: color-mix(in srgb, var(--on-deep) 82%, transparent); }
.date-nudge { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.dn-ic { border-radius: 0; border-color: var(--rule); }
.danger-line { border-radius: 0; }

/* An envelope, with the letter pulled half out */
.envelope { position: relative; width: min(560px, 100%); padding: 2.2rem 1.3rem 0; }
.envelope::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 72%, #000); clip-path: polygon(0 58px, 50% 0, 100% 58px, 100% 100%, 0 100%); }
.envelope::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 2; background: color-mix(in srgb, var(--primary) 88%, #fff); clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.letter { position: relative; z-index: 1; display: grid; gap: .6rem; padding: 1.2rem 1.3rem 4.6rem; background: var(--sheet); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transform: rotate(-1.2deg); }
.letter h2 { font-size: 2.1rem; }
.letter .btn { justify-self: start; }
.letter .wish { border: 0; padding: 0; background: none; box-shadow: none; }
.wish-grid .envelope { width: auto; }

/* File folders, for the Barn Builder */
.barns { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 2.2rem 1.4rem; }
.folder { position: relative; display: grid; padding-top: 10px; border: 0; background: none; box-shadow: none; grid-template-columns: none; }
.folder::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 90px; background: color-mix(in srgb, var(--band) 74%, #000); clip-path: polygon(0 14px, 26% 14px, 30% 0, 100% 0, 100% 100%, 0 100%); }
.folder .sheet { position: relative; z-index: 1; display: grid; gap: .35rem; align-content: start; min-height: 170px; margin: 0 14px; padding: 1rem 1rem 3rem; background: var(--sheet); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.folder .sheet p { margin: 0; font-size: .8rem; }
.folder .sheet p b { font: 800 1.6rem/1 var(--serif); letter-spacing: -.03em; color: var(--head); }
.folder .sheet small { font-size: .66rem; color: var(--muted); }
.folder .sheet .head-actions { margin-top: .4rem; }
.folder .front { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: end; min-height: 138px; margin-top: -2.4rem; padding: 2.1rem 1.1rem 1.1rem;
  background: var(--band); color: var(--on-band); clip-path: polygon(0 16px, 62% 16px, 66% 0, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 -30px 40px -30px rgba(0, 0, 0, .25); }
.folder .barn-name { color: var(--on-band); font: 800 1.5rem/.95 var(--serif); letter-spacing: -.03em; text-transform: uppercase; }
.folder .snap { width: 82px; margin-top: -3.4rem; padding: 5px 5px 12px; background: var(--sheet); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transform: rotate(5deg); }
.folder .snap .jar-svg { display: block; width: 100%; }
.folder.full .front { background: color-mix(in srgb, var(--band) 80%, var(--green)); }
.folder.add { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .5rem; min-height: 300px; border: 1px dashed var(--rule); font: 500 .62rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.folder.add:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.folder.add::before { content: none; }
.folder.add:focus-visible { outline: 2px solid var(--primary); }

/* ---------- Modals and toasts: a sheet torn from the pad ---------- */
dialog#modal { border: 0; border-radius: 0; background: var(--surface); box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .55); }
dialog#modal::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--deep) 55%, transparent) 4.5px, transparent 5px) center / 46px 12px repeat-x; pointer-events: none; }
.modal-head { padding-top: 2rem; }
.modal-head h2 { font-size: 2.3rem; }
.modal-foot { border-top: 1px dashed var(--rule); }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow, dialog#modal.wide { border-radius: 0; } }
.toast { border-radius: 0; background: var(--deep); color: var(--on-deep); font-size: .74rem; letter-spacing: .02em; }
.toast.err { background: var(--red); }
#dock { border-radius: 0; border: 0; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
#dock b { font-family: var(--serif); font-style: normal; }

/* ---------- Sign in ---------- */
.auth { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { display: grid; align-content: center; padding: 2rem 2.4rem; background: none; color: var(--ink); border-right: 0; }
.auth-art .hero-stack { justify-self: center; }
.auth-form { background: var(--deep); padding: 2.4rem 1.4rem; }
.auth-form > .auth-card { position: relative; width: min(420px, 100%); padding: 2rem 1.8rem 1.8rem 3.2rem; background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.auth-form > .auth-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 16px; background: radial-gradient(circle, var(--deep) 6px, transparent 6.5px) center top / 16px 44px repeat-y; }
.auth-card h2 { font-size: 2.8rem; }
.unlock-opt { border-top: 1px dashed var(--rule); }
.key-input { letter-spacing: .2em; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } .auth-form { min-height: 100vh; } }
.boot { font: 800 2.6rem var(--serif); color: var(--head); }

/* ---------- Modules ---------- */
/* Sanctuary */
.timer-card .label { letter-spacing: .2em; }
.ring-bg { fill: var(--surface-2); stroke: var(--rule); }
.ring-fg { stroke: var(--primary); }
.ring-time b { font-family: var(--serif); font-style: normal; letter-spacing: -.04em; color: var(--head); }
.reward { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.reward b { font-family: var(--serif); font-style: normal; }
.steps li { border-bottom: 1px dashed var(--rule); }
.steps li > div > b { font: 800 1.25rem/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.layers li { border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); }
.layers li.on { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.layer b { font-family: var(--serif); font-style: normal; }
.embed { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--deep); }
.embed-play span { font-family: var(--serif); font-style: normal; }
/* First fruits */
.gf-top h2 { color: var(--head); }
.gf-top .jar-wrap { position: relative; }
.gf-top .jar-wrap .burst { left: -46px; top: -18px; width: 84px; height: 84px; }
.gf-top .jar-wrap .burst span { font-size: .86rem; }
.rate-row b { font-family: var(--serif); font-style: normal; color: var(--head); }
/* Manna calendar */
.mcal { border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.mcal .dow { background: var(--deep); color: var(--on-deep); border-right-color: color-mix(in srgb, var(--on-deep) 18%, transparent); border-bottom: 0; font-size: .56rem; }
.cday { border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); background: var(--surface); }
.cday:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)); }
.cday.out { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.cday .n { font-family: var(--serif); font-style: normal; letter-spacing: -.03em; }
.cday.today .n { background: var(--primary); color: var(--on-primary); }
.cday .mi { border-radius: var(--r-sm); }
.cday .mi.in { background: color-mix(in srgb, var(--green) 20%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.cday.danger { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.cday.tight { background: color-mix(in srgb, var(--amber) 13%, var(--surface)); }
.cal-head h2 { font-size: 2.4rem; }
.danger-card { box-shadow: inset 4px 0 0 var(--red), var(--shadow); }
.zones li > b { font-family: var(--serif); font-style: normal; color: var(--ink); }
.remember { border-radius: var(--r-sm); background: var(--surface-2); }
/* Contentment */
.wait-col { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.wait-col h2 { font-size: 1.7rem; }
.wc-l { border: 0; background: var(--primary); color: var(--on-primary); }
.wish { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); }
.wish-name { font-family: var(--serif); font-style: normal; letter-spacing: -.02em; }
.wish-top b { font-family: var(--serif); font-style: normal; color: var(--head); }
.strip-btn b { color: var(--on-band); }
/* Chain breaker */
.chain-hero { position: relative; }
.chain-hero .burst { right: 28px; top: -26px; }
.sb-big h2 { color: var(--head); }
.sb-vs { border: 1px dashed var(--rule); border-radius: var(--r-sm); }
.sb-vs b { font-family: var(--serif); font-style: normal; color: var(--green); }
.chain { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); }
.chain.target { box-shadow: inset 4px 0 0 var(--primary), var(--shadow); }
.chain-n { width: auto; height: auto; border: 0; border-radius: 0; background: none !important; color: var(--red-text) !important; font: 500 .66rem/1.6 var(--mono); }
.chain-n::after { content: "/"; } .chain-n { white-space: nowrap; }
.chain-name { font-family: var(--serif); font-style: normal; letter-spacing: -.025em; }
.chain-left b { font-family: var(--serif); font-style: normal; color: var(--head); }
.chain { grid-template-columns: 2rem minmax(0, 1fr); }
.broke { border-radius: var(--r-sm); border-color: var(--rule); }
.broke b { font-family: var(--serif); font-style: normal; }
/* Jubilee */
.jub-big b { font-family: var(--serif); font-style: normal; color: var(--head); }
.months i { border-radius: var(--r-sm); border: 1px solid var(--rule); }
.mol-eq i { font-family: var(--serif); }
/* Covenant */
.avatar { border-radius: 0; border: 4px solid var(--sheet); border-bottom-width: 12px; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); transform: rotate(-4deg); }
.avatar.alt { background: var(--accent); color: var(--on); transform: rotate(5deg); }
.avatar.sm { border-width: 2px 2px 6px; transform: none; }
.amp { font-family: var(--script); font-style: normal; font-size: 2.6rem; color: var(--head); }
.dnote header b { font-family: var(--serif); font-style: normal; color: var(--head); }
/* Talents: three columns like a price sheet */
.th-cols { gap: 0; }
.th-cols > div { position: relative; justify-items: center; text-align: center; padding: 2.5rem 1.2rem 1.3rem; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.th-cols > div::before { content: ""; position: absolute; top: 14px; left: 26%; right: 26%; height: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--band) 85%, #000) 6px, transparent 6.5px) center / 33.33% 14px repeat-x; }
.th-cols > div:nth-child(2) { background: var(--deep); color: var(--on-deep); }
.th-cols > div:nth-child(2) .label, .th-cols > div:nth-child(2) small { color: color-mix(in srgb, var(--on-deep) 82%, transparent); }
.th-cols > div:nth-child(2) .money-big { color: var(--on-deep); }
.th-cols .sur.has { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.th-cols .sur .btn { justify-self: center; }
.stream { border: 0; }
.stream .num b { font-family: var(--serif); font-style: normal; color: var(--head); }
/* Storehouse */
.week li { border: 0; border-bottom: 1px dashed var(--rule); border-radius: var(--r-sm); }
.week li.today { border: 0; border-bottom: 1px dashed var(--rule); background: var(--surface-2); }
.wd b { font-family: var(--serif); font-style: normal; color: var(--head); }
.meal-chip, .add-chip, .ings li { border-radius: var(--r-sm); }
.meal-chip { border-color: var(--rule); }
.shop-tot .saved b { font-family: var(--serif); font-style: normal; }
.checklist li { border-bottom: 1px dashed var(--rule); }
.place-ic { border-color: var(--rule); }
.st-name { font-family: var(--serif); font-style: normal; font-size: 1.05rem; }
/* Legacy */
.comp { border-radius: var(--r-sm); border-color: var(--rule); height: 22px; }
.wh-top h2 { color: var(--head); }
.wh-eq div { border-bottom: 1px dashed var(--rule); }
.vault-intro { background: var(--deep); color: var(--on-deep); }
.vault-intro b { font-family: var(--serif); font-style: normal; color: var(--on-deep); }
.vault-ic { border-radius: 0; border: 4px solid var(--sheet); border-bottom-width: 10px; transform: rotate(-4deg); }
.vrec h3 { color: var(--head); }
.vrec dl div { border-bottom: 1px dashed var(--hair); padding-bottom: .2rem; }
.vrec.missing { border: 1px dashed var(--rule); border-radius: var(--r-sm); }
.vrec.missing b { font-family: var(--serif); font-style: normal; color: var(--head); }
/* Pruning hook */
.branch { border: 1px dashed var(--rule); border-radius: var(--r-sm); background: color-mix(in srgb, var(--amber) 7%, var(--surface)); }
.branch b { font-family: var(--serif); font-style: normal; }
.b-ic { border-color: var(--rule); }
.vine li { border-bottom: 1px dashed var(--rule); }
.v-name b { font: 800 1.08rem/1.1 var(--serif); }
.v-bar { border-radius: var(--r-sm); height: 10px; }
.v-bar i { border-radius: var(--r-sm); background: var(--sage); }
/* Ebenezer stones: pinned notes with tape */
.yr { font: 400 2.8rem/1 var(--script); letter-spacing: 0; color: var(--head); }
.timeline::before { border-left: 1px dashed var(--rule); }
.tl-card { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); padding-top: 1.3rem; }
.tl-card::before { content: ""; position: absolute; top: -9px; left: 50%; width: 86px; height: 20px; transform: translateX(-50%) rotate(-2deg); background: color-mix(in srgb, var(--sand) 65%, transparent); }
.timeline li:nth-child(odd) .tl-card { transform: rotate(-.5deg); } .timeline li:nth-child(even) .tl-card { transform: rotate(.5deg); }
.tl-date b { font-family: var(--serif); font-style: normal; color: var(--head); }
.tl-card h3 { color: var(--ink); }
.stone-hero h2 { color: var(--head); }
.remember-big blockquote { border-radius: var(--r-sm); }
.remember-big h3 { color: var(--head); }
/* Little stewards */
.kid-av { border-radius: 0; border: 4px solid var(--sheet); border-bottom-width: 11px; background: var(--c); color: var(--on); box-shadow: var(--shadow); transform: rotate(-4deg); }
.kid-av.big { border-width: 7px 7px 20px; }
.kid-jars { border: 1px solid var(--rule); border-radius: var(--r-sm); }
.kj + .kj { border-left: 1px dashed var(--rule); }
.kj b { color: var(--head); }
.km-jar, .km-goal, .km-chore { border: var(--bw) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.km-jar b { font-family: var(--serif); font-style: normal; color: var(--head); }
.km-goal h2, .km-chores h2 { color: var(--head); }
.km-chore { font-family: var(--serif); font-style: normal; }
.km-tick { border-color: var(--rule); }
/* Acts 2 treasury */
.place-chip { border-radius: var(--r-sm); border: 0; background: var(--surface); box-shadow: var(--shadow); }
.place-chip b { font-family: var(--serif); font-style: normal; color: var(--head); }
.cause { box-shadow: inset 0 4px 0 var(--c), var(--shadow); }
.cause-ic { border-color: var(--rule); }
/* Settings, tutorial */
.theme-opt { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); }
.theme-opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.theme-opt b { font-family: var(--serif); font-style: normal; color: var(--head); }
.theme-sw { border-radius: var(--r-sm); border-color: var(--rule); }
.invite-box { border: 1px dashed var(--rule); border-radius: var(--r-sm); }
.tour-card { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); }
.tour-card strong { font-family: var(--serif); font-style: normal; color: var(--head); }
.tour-card.first { background: var(--deep); color: var(--on-deep); }
.tour-card.first strong { color: var(--on-deep); }
.tour-card > .ic { border-radius: var(--r-sm); border-color: var(--rule); }
#tour .tour-box { border: var(--bw) solid var(--line); border-radius: var(--r-sm); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
#tour .tour-box h3 { color: var(--head); }
.tour-spot { border-radius: var(--r-sm); outline-color: var(--primary); }
.tour-dots i { border-radius: var(--r-sm); } .tour-dots i.on { background: var(--primary); }
/* Jars and charts use the paper's colours */
.jar-lid { fill: var(--sand); stroke: var(--line); stroke-width: 2; }
.jar-neck { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.jar-glass-in { fill: color-mix(in srgb, var(--surface) 55%, #fff); }
.jar-glass { stroke: var(--line); stroke-width: 2.5; }
.jar-pct { font-family: var(--serif); font-style: normal; fill: var(--ink); stroke: var(--sheet); }
.ch-line, .ch-line.bal { stroke: var(--head); }
.ch-area { fill: color-mix(in srgb, var(--head) 10%, transparent); }
.ch-grid { stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-dasharray: 3 4; }
.ch-bar { stroke: color-mix(in srgb, var(--ink) 50%, transparent); }
.pr-fg { stroke: var(--c, var(--accent)); }

/* Preview banner: the buy button */
.demo-band .demo-cta { margin-left: .5rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* =====================================================================
   Grace: the Focal look on top of everything above.
   Cream cards with chocolate outlines on pale sky tiles, giant tight
   lowercase headlines, Caveat notes, pill tags, cut-out tickets.
   ===================================================================== */
/* ---------- Paper, ink and type ---------- */
body { background-color: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); letter-spacing: 0; font-feature-settings: "cv11", "ss01"; }
[data-theme="grace"] body, [data-theme="sky"] body, [data-theme="cream"] body { background-image: linear-gradient(var(--tile) 2px, transparent 2px), linear-gradient(90deg, var(--tile) 2px, transparent 2px); background-size: 120px 120px; background-attachment: fixed; }
html.calm body { background-image: none; }
body::before { content: none; }
::selection { background: var(--blush); color: var(--on); }
h1, h2, h3, .serif { font-family: var(--display); font-style: normal; font-weight: 800; letter-spacing: -.045em; }
h1, h2 { color: var(--head); text-transform: lowercase; }
h3 { color: var(--ink); letter-spacing: -.03em; }
h1 em, h2 em, .h2 em { font-family: var(--display); font-style: normal; font-weight: 800; font-size: 1em; line-height: inherit; letter-spacing: inherit; color: var(--blush-ink); }
.script { font-family: var(--script); font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--blush-ink); text-transform: none; }
.script-kicker { display: block; font: 600 1.7rem/1 var(--script); color: var(--blush-ink); margin: 0 0 .15rem .1rem; text-transform: none; letter-spacing: 0; }
.label { font: 700 .64rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--muted); }
.money-big { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.jar-stats b, .give-rows b, .big-num { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blush-ink); outline-offset: 2px; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.neg { color: var(--red); } .pos { color: var(--green); } .warn { color: var(--amber); }

/* ---------- Controls: rounded, outlined, lowercase ---------- */
.btn { min-height: 40px; padding: .55rem 1.1rem; border-radius: 10px; border: var(--bw) solid var(--line); background: var(--surface); color: var(--ink); font: 650 .86rem/1 var(--sans); letter-spacing: 0; text-transform: lowercase; }
.btn:hover { background: var(--surface-2); }
.btn.solid { background: var(--blush); color: var(--on); border-color: var(--line); }
.btn.solid:hover { background: color-mix(in srgb, var(--blush) 84%, var(--ink)); filter: none; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--hair); }
.btn.danger { color: var(--red); border-color: currentColor; background: transparent; }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.sm { min-height: 32px; padding: .35rem .75rem; font-size: .78rem; border-radius: 8px; }
.icon-btn { border-radius: 10px; }
.icon-btn:hover { border-color: var(--line); background: var(--surface); }
.icon-btn.outlined { border-color: var(--line); background: var(--surface); }
.input { border-radius: 10px; border: var(--bw) solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--sheet); color: var(--ink); font-family: var(--sans); }
.input:focus { border-color: var(--line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blush) 70%, transparent); }
select.input { background-color: var(--sheet); }
.field > span, .color-pick legend, .moods legend { font: 700 .66rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.chip { border-radius: 999px; border: var(--bw) solid color-mix(in srgb, var(--ink) 25%, transparent); background: var(--surface); font: 650 .74rem/1.2 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
.chip:has(input:checked), .chip[aria-pressed="true"], .chip.on { background: var(--skyc); color: var(--on); border-color: var(--line); }
.seg { border-radius: 10px; border: var(--bw) solid var(--line); background: var(--surface); }
.seg button { font: 650 .78rem/1.2 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
.seg button + button { border-left: var(--bw) solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--blush); color: var(--on); }
.bar { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.bar i { background: var(--lime); border-radius: 999px; }
.bar.big { height: 14px; }
.tick { border: var(--bw) solid var(--line); border-radius: 8px; background: var(--sheet); }
.tick[aria-pressed="true"], .tick-lbl input:checked + .tick { background: var(--lime); color: var(--on); border-color: var(--line); }
.add-line { border: var(--bw) dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 10px; text-transform: lowercase; font-weight: 650; }
.wtag, .tag { border: 0; border-radius: 6px; background: var(--skyc); color: var(--on); font: 700 .66rem/1.3 var(--sans); letter-spacing: .02em; text-transform: lowercase; padding: .22rem .55rem; }
.wtag.ok { background: var(--lime); } .wtag.no { background: var(--blush); }
.empty { border: var(--bw) dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.empty h3 { color: var(--ink); font-size: 1.7rem; text-transform: lowercase; }
.opt { border-radius: 10px; border: var(--bw) solid color-mix(in srgb, var(--ink) 25%, transparent); background: var(--surface); }
.opt:has(input:checked) { background: var(--blush-soft); box-shadow: inset 4px 0 0 var(--blush-ink); }
.ff-bar { border-radius: 999px; border: var(--bw) solid var(--line); height: 16px; }
.ff-bar .give, .sw.give { background: var(--lime); }
.code { border-radius: 8px; border: var(--bw) dashed var(--line); background: var(--butter-soft); font-family: var(--sans); font-weight: 700; }
kbd { font: 600 .8rem var(--sans); padding: .1rem .4rem; border: 1px solid var(--hair); border-bottom-width: 3px; border-radius: 6px; background: var(--sheet); }

/* ---------- The sidebar: area tags and pill links ---------- */
.side { background: var(--bar); border-right: var(--bw) solid var(--line); }
.brand { text-decoration: none; }
.g-logo { display: inline-flex; align-items: baseline; gap: .12rem; padding: .3rem .7rem .42rem; border-radius: 9px; background: var(--deep); color: var(--on-deep); }
.g-logo b { font: 800 1.55rem/1 var(--display) !important; letter-spacing: -.055em !important; color: inherit !important; text-transform: none; }
.g-logo i { font: 600 1.4rem/1 var(--script); font-style: normal; color: var(--blush); }
.side .brand { flex-direction: column; align-items: flex-start; gap: .25rem; }
.brand small { font: 600 1.2rem/1 var(--script) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2); padding-left: .2rem; }
.side-log { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .8rem; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--blush); color: var(--on); }
.side-log:hover { background: color-mix(in srgb, var(--blush) 86%, var(--ink)); }
.side-log:focus-visible { outline: 2px solid var(--blush-ink); outline-offset: 2px; }
.side-log .ic { width: 26px; height: 26px; padding: 4px; border: var(--bw) solid var(--line); border-radius: 50%; background: var(--sheet); color: var(--on); }
.side-log b { display: block; font: 800 1.15rem/1 var(--display); letter-spacing: -.04em; }
.side-log small { display: block; font-size: .72rem; font-weight: 500; margin-top: .2rem; }
.side-hub { display: inline-block; justify-self: start; margin: .7rem 0 .25rem .4rem; padding: .16rem .5rem; border-radius: 5px; background: var(--skyc); color: var(--on); font: 700 .66rem/1.2 var(--sans); letter-spacing: .02em; text-transform: lowercase; }
@media (min-width: 1100px) {
  .side { gap: .6rem; padding: 1.1rem .8rem 1rem; width: var(--side); }
  .side nav { gap: 0; }
  .side-group .label { display: none; }
  .side a[data-nav] { gap: .65rem; padding: .44rem .75rem; border: 0; border-radius: 999px; font: 600 .9rem/1.2 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
  .side a[data-nav] .ic { width: 17px; height: 17px; color: var(--ink-2); }
  .side a[data-nav] small { font: 700 .62rem/1 var(--sans); color: var(--ink-2); letter-spacing: 0; opacity: .8; }
  .side a[data-nav]:hover { background: var(--surface-2); color: var(--ink); }
  .side a[data-nav][aria-current="page"] { background: var(--deep); color: var(--on-deep); box-shadow: none; font-style: normal; }
  .side a[data-nav][aria-current="page"] .ic, .side a[data-nav][aria-current="page"] small { color: var(--on-deep); }
  .side-foot { border-top: var(--bw) dashed var(--hair); }
  main { padding: 0 2.4rem 6rem; }
}
.top { background: var(--bar); border-bottom: var(--bw) solid var(--line); }
.top .g-logo b { font-size: 1.3rem !important; }
.tabbar { background: var(--bar); border-top: var(--bw) solid var(--line); }
@media (max-width: 1099px) {
  .tabbar a, .tabbar button { border-radius: 12px; color: var(--ink-2); text-transform: lowercase; }
  .tabbar [aria-current="page"] { color: var(--on); background: var(--blush); box-shadow: none; }
}
.more-grid a { border-radius: 12px; border: var(--bw) solid var(--line); background: var(--surface); text-transform: lowercase; }
.demo-band { background: var(--deep); color: var(--on-deep); font: 500 .8rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.nbadge { background: var(--blush); color: var(--on); border: 1px solid var(--line); font-weight: 700; }

/* ---------- The numbered tab strip of sibling pages ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 0; width: fit-content; max-width: 100%; margin: 1.6rem 0 0; border: var(--bw) solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.subnav a { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .55rem; border-right: var(--bw) solid var(--line); color: var(--ink); text-decoration: none; font: 600 .86rem/1.2 var(--sans); text-transform: lowercase; }
.subnav a:last-child { border-right: 0; }
.subnav a:hover { background: var(--surface-2); }
.subnav a[aria-current="page"] { background: var(--blush); color: var(--on); }
.sn-n { display: grid; place-items: center; min-width: 2rem; padding: .1rem .3rem; border-radius: 5px; font: 800 .82rem/1.3 var(--display); letter-spacing: -.02em; color: var(--blush-ink); background: var(--blush-soft); }
.subnav a[aria-current="page"] .sn-n { background: var(--sheet); color: #95345A; }
.subnav .nbadge { margin-left: .2rem; }
@media (max-width: 700px) { .subnav { flex-wrap: nowrap; overflow-x: auto; width: auto; } .subnav a { flex: none; white-space: nowrap; } }

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding: 1.8rem 0 1.4rem; }
.page-head .ph-title { min-width: 0; max-width: 820px; }
.page-head h1 { font: 800 clamp(2.6rem, 6.6vw, 5.2rem)/.9 var(--display); letter-spacing: -.06em; color: var(--ink); text-transform: lowercase; }
.page-head h1 em { color: var(--blush-ink); }
.ph-words { text-transform: lowercase; }
.page-head .lede { margin: .8rem 0 0; max-width: 62ch; font-size: 1rem; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ph-side { padding-bottom: .3rem; }
/* the anchor verse: a notched ticket */
.verse-band { position: relative; max-width: 780px; margin: 0 0 2rem; padding: 1rem 1.6rem; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--butter); color: var(--on); box-shadow: none; transform: rotate(-.4deg);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.verse-band::before { content: none; }
.verse-band blockquote { font: 600 clamp(1.02rem, 1.8vw, 1.2rem)/1.45 var(--sans); color: var(--on); }
.verse-band figcaption { color: #5A4A30; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; }
.verse-band .script { font-size: 1.5rem; color: #6E2A47; }
html.calm .verse-band { transform: none; }
/* in-page tabs */
.tabs { gap: .4rem; margin: 0 0 1.6rem; padding: 0; border-bottom: 0; }
.tabs a { border: var(--bw) solid var(--line); border-radius: 8px; background: var(--surface); padding: .5rem 1rem; font: 650 .84rem/1 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--skyc); color: var(--on); border-color: var(--line); }

/* ---------- Cards ---------- */
.card { border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.3rem; }
.card-head { padding-bottom: 0; margin-bottom: .9rem; border-bottom: 0; align-items: flex-start; }
.card > h2, .card-head h2 { font: 800 1.6rem/1.02 var(--display); letter-spacing: -.045em; color: var(--ink); text-transform: lowercase; }
.card-head .label { font: 600 1.15rem/1.1 var(--script); letter-spacing: 0; text-transform: none; color: var(--blush-ink); margin-bottom: .1rem; }
.strip4 { border: 0; background: none; box-shadow: none; gap: 1rem; color: var(--ink); }
.strip4 > * { position: relative; justify-items: start; text-align: left; padding: 1rem 1.3rem 1.05rem; border: var(--bw) solid var(--line) !important; border-radius: 10px; background: var(--surface); color: var(--ink);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.strip4 > :first-child { background: var(--blush); color: var(--on); }
.strip4 b { font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -.05em; color: inherit; }
.strip4 small { font: 600 .74rem/1.35 var(--sans); letter-spacing: 0; text-transform: lowercase; color: inherit; opacity: .85; }
.strip4 a:hover, .strip-btn:hover { background: var(--surface-2); }
.strip4 > :first-child:hover { background: color-mix(in srgb, var(--blush) 88%, var(--ink)); }
.strip4 .neg { color: var(--red); text-decoration: none; } .strip4 .pos { color: var(--green); }
.strip4 > :first-child .neg, .strip4 > :first-child .pos { color: var(--on); }
@media (min-width: 701px) { .strip4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (max-width: 700px) { .strip4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .strip4 > * { border-top: var(--bw) solid var(--line) !important; } }
.rows li { border-bottom: 1px solid var(--hair); }
.rows .when { color: var(--blush-ink); font: 700 .66rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.rows .when b { font: 800 1.15rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); text-transform: none; }
.rows .what b { font: 650 .95rem/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.rows .what small { font-size: .74rem; }
.rows .amt { font: 650 .9rem var(--sans); }
.jar-dl div { border-bottom: 1px solid var(--hair); font-size: .88rem; }
.ledger-head { border-bottom: var(--bw) solid var(--line); }
.ledger-head h3 { color: var(--ink); text-transform: lowercase; }
.give-rows { border: var(--bw) solid var(--line); border-radius: 10px; overflow: hidden; }
.give-rows > div + div { border-left: 1px solid var(--hair); }
.give-rows .met { background: var(--lime-soft); }

/* ---------- Things from the scrapbook ---------- */
.polaroid { padding: 12px 12px 0; background: var(--sheet); border-radius: 2px; box-shadow: 0 18px 30px -14px rgb(0 0 0 / .45); }
.pol-in { background: var(--deep); color: var(--on-deep); }
.polaroid figcaption { font: 600 1.6rem/1.1 var(--script); color: var(--ink); }
/* the star sticker becomes a round Caveat sticker */
.burst { width: 86px; height: 86px; clip-path: none; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--skyc); color: var(--on); transform: rotate(-10deg); }
.burst span { font: 700 1.2rem/.95 var(--script); letter-spacing: 0; }
.rings { display: none; }
.punched::before { background: radial-gradient(circle, var(--bg) 5px, var(--line) 5.6px, transparent 6.4px) center / 33.33% 14px repeat-x; }
/* the envelope */
.envelope::before { background: color-mix(in srgb, var(--blush) 70%, var(--ink)); }
.envelope::after { background: var(--blush); border-top: 0; }
.letter { border-radius: 4px; background: var(--sheet); }
.letter h2 { font-size: 2rem; color: var(--ink); }
/* file folders for the barns */
.folder::before { background: color-mix(in srgb, var(--skyc) 70%, var(--ink)); }
.folder .sheet { background: var(--sheet); border-radius: 4px; }
.folder .sheet p b { font: 800 1.6rem/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.folder .front { background: var(--skyc); color: var(--on); box-shadow: inset 0 -30px 40px -34px rgba(0, 0, 0, .25); }
.folder .barn-name { color: var(--on); font: 800 1.45rem/.95 var(--display); letter-spacing: -.045em; text-transform: lowercase; }
.folder.full .front { background: var(--lime); }
.folder .snap { background: var(--sheet); border-radius: 2px; }
.folder.add { border: var(--bw) dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r); font: 650 .86rem/1.2 var(--sans); letter-spacing: 0; text-transform: lowercase; color: var(--ink); }
.folder.add:focus-visible { outline: 2px solid var(--blush-ink); }

/* ---------- Modals and toasts ---------- */
dialog#modal { border: var(--bw) solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 85%, transparent), 0 40px 70px -25px rgba(0, 0, 0, .45); }
dialog#modal::before { content: none; }
dialog#modal::backdrop { background: color-mix(in srgb, #2A1510 45%, transparent); }
.modal-head { padding-top: 1.2rem; }
.modal-head h2 { font: 800 1.9rem/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.modal-foot { border-top: 1px solid var(--hair); }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow, dialog#modal.wide { border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); } }
.toast { border-radius: 10px; background: var(--deep); color: var(--on-deep); font: 600 .84rem/1.35 var(--sans); }
.toast.err { background: #A3263F; color: #fff; }
#dock { border-radius: 14px; border: var(--bw) solid var(--line); background: var(--surface); box-shadow: 4px 4px 0 var(--line); }
#dock b { font-family: var(--display); font-weight: 800; }

/* ---------- Sign in ---------- */
.auth-form { background: var(--deep); }
.auth-form > .auth-card { border-radius: 18px; border: var(--bw) solid var(--line); box-shadow: 6px 6px 0 rgb(0 0 0 / .35); }
.auth-form > .auth-card::before { content: none; }
.auth-card h2 { font-size: 2.6rem; color: var(--ink); }
.auth-form > .auth-card { padding: 2rem 1.8rem 1.8rem; }
.boot { font: 800 3rem var(--display); letter-spacing: -.06em; color: var(--ink); }
.unlock-opt { border-top: 1px solid var(--hair); }

/* ---------- Home ---------- */
.g-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem 2rem; margin: 1.6rem 0 0; }
.g-hero-h { font: 700 1.05rem/1.2 var(--sans) !important; letter-spacing: .01em !important; color: var(--ink-2) !important; text-transform: lowercase; margin: .2rem 0 .5rem; }
.g-hero-h span { font-weight: 500; }
.th-big { margin: 0; max-width: 22ch; font: 800 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--display); letter-spacing: -.05em; text-transform: lowercase; }
.th-tabs { align-self: end; display: flex; margin-bottom: -2px; }
.th-tabs .btn { position: relative; border: 0; border-radius: 12px 12px 0 0; padding: .75rem 1.3rem .65rem; font-size: .88rem; }
.th-tabs .tab-sky { background: var(--skyc); color: var(--on); margin-right: -6px; z-index: 1; }
.th-tabs .tab-blush { background: var(--band); color: var(--on-band); z-index: 2; }
.g-band { position: relative; display: flex; flex-direction: column; margin: 0 calc(-1 * clamp(1rem, 2.4vw, 2.4rem)) 2.2rem; padding: .2rem clamp(1rem, 3vw, 2.4rem) 1.8rem; background: var(--band); color: var(--on-band); overflow: hidden; }
.g-word { margin: 0; font: 900 clamp(4rem, 13vw, 12rem)/.82 var(--display); letter-spacing: -.075em; color: var(--on-band); white-space: nowrap; padding-top: .12em; text-transform: lowercase; }
.g-word span { color: var(--sky-ink); }
[data-theme="cocoa"] .g-word span { color: #2B5C7B; }
.g-pols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin-top: -2.4rem; padding: 0 .6rem; }
.g-pol { position: relative; margin: 0; padding: 12px 12px 0; background: #FFFFFF; color: #2A1A14; border-radius: 2px; box-shadow: 0 18px 30px -14px rgb(0 0 0 / .45); transform: rotate(var(--tilt, 0deg)); transition: transform .2s; }
.g-pol:hover { transform: rotate(0deg) translateY(-4px); }
html.calm .g-pol { transform: none; transition: none; }
.g-pol-img { all: unset; display: block; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; background: #EEE; cursor: zoom-in; }
.g-pol-img img, .g-pol-img img[data-photo] { width: 100%; height: 100%; object-fit: cover; }
.g-pol-img:focus-visible { outline: 3px solid var(--blush-ink); outline-offset: 2px; }
.g-pol figcaption { padding: .45rem .2rem .7rem; min-height: 2.6rem; text-align: center; font: 600 1.35rem/1.1 var(--script); color: #2A1A14; }
.g-pol.slot { background: color-mix(in srgb, #fff 30%, transparent); border: 2px dashed color-mix(in srgb, var(--on-band) 45%, transparent); box-shadow: none; padding: 10px; }
.g-pol.slot .photo-slot { aspect-ratio: 1 / 1.25; min-height: 0; border: 0; background: transparent; color: var(--on-band); }
.g-pol.slot .photo-slot span { font-weight: 800; text-transform: lowercase; }
.g-pol.slot .photo-slot small { font: 600 1.15rem/1.1 var(--script); }
.g-pol.slot .photo-slot .ic { color: var(--on-band); }
.g-star { position: absolute; z-index: 2; width: 42px; height: 42px; right: -16px; top: -16px; transform: rotate(18deg); fill: var(--skyc); stroke: var(--line); stroke-width: .8; }
.g-pol:nth-child(3) .g-star { left: -16px; right: auto; top: auto; bottom: 22%; fill: var(--lime); }
.g-band-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; margin-top: 1.5rem; }
.g-verse { margin: 0; flex: 1 1 380px; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.g-verse blockquote { margin: 0; font: 650 1rem/1.45 var(--sans); color: var(--on-band); max-width: 70ch; }
.g-verse figcaption { font-size: 1.45rem; color: var(--on-band); }
.vb-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.vb-btns .btn { background: var(--sheet); color: #2A1A14; border-color: var(--line); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin: 0 0 2.4rem; }
.metric { position: relative; display: grid; gap: .25rem; padding: 1rem 1.3rem 1.25rem; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.metric::after { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; bottom: .6rem; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.metric .label { font: 700 .74rem var(--sans); letter-spacing: .01em; text-transform: lowercase; color: inherit; }
.metric b { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -.05em; }
.metric small { font-size: .78rem; color: inherit; opacity: .85; margin-bottom: .3rem; }
.metric.pay { background: var(--blush); color: var(--on); }
.metric.warn { background: var(--butter); color: var(--on); }
.metric:hover { transform: translateY(-2px) rotate(-.4deg); }
html.calm .metric:hover { transform: none; }
.tour-offer { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; padding: 1.1rem 1.3rem 1.1rem 120px; margin: 0 0 1.6rem; background: var(--skyc); color: var(--on); }
.tour-offer .burst { left: 18px; top: 50%; margin-top: -43px; background: var(--sheet); }
.tour-offer > div:first-of-type { flex: 1; min-width: 220px; }
.tour-offer b { font: 800 1.6rem/1 var(--display); letter-spacing: -.05em; color: var(--on); text-transform: lowercase; }
.tour-offer .btn.ghost { color: var(--on); }
@media (max-width: 600px) { .tour-offer { padding-left: 1.1rem; } .tour-offer .burst { display: none; } }
.coming { margin: 0 0 2.6rem; }
.coming-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; }
.coming-head .script { font-size: 1.6rem; margin: 0; }
.big-h { font: 800 clamp(3rem, 9vw, 7rem)/.85 var(--display); letter-spacing: -.065em; color: var(--ink); margin: 0 0 1.2rem; }
.ev-list { display: grid; gap: 1.1rem; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: .4rem 1.6rem; align-items: start; padding: 1.1rem 0 0; border-top: var(--bw) solid var(--line); }
.ev-name h3 { margin: 0; font: 800 1.35rem/1.05 var(--display); letter-spacing: -.035em; text-transform: lowercase; }
.ev-name small { color: var(--ink-2); font-size: .8rem; }
.ev-when { display: grid; }
.ev-when b { font: 800 1.2rem var(--display); letter-spacing: -.03em; }
.ev-when span { padding: .3rem 0; border-bottom: 1px solid var(--hair); font-size: .82rem; color: var(--ink-2); }
.ev-empty { padding: 1rem 0; border-top: var(--bw) solid var(--line); color: var(--ink-2); }
.ev-more { display: flex; width: fit-content; margin: 1.4rem auto 0; background: var(--skyc); color: var(--on); }
.lug-tag { position: relative; align-self: center; display: inline-block; padding: .55rem 1rem .55rem 1.6rem; background: var(--skyc); color: var(--on); font: 800 1.1rem/1 var(--display); letter-spacing: -.03em; border-radius: 6px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); transform: rotate(-4deg); white-space: nowrap; }
.lug-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }
.lug-tag.late { background: var(--blush); }
html.calm .lug-tag { transform: none; }
.danger-line { border-radius: 10px; border: var(--bw) solid var(--line); background: var(--blush-soft); color: var(--ink); }
.danger-line .ic { color: var(--blush-ink); }
.nb-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 3.2rem 0 2.6rem; border: var(--bw) solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 85%, transparent); }
.nb-page { position: relative; min-width: 0; padding: 1.4rem 1.6rem 1.5rem; background: repeating-linear-gradient(transparent 0 35px, color-mix(in srgb, var(--ink) 8%, transparent) 35px 36px); }
.nb-page + .nb-page { border-left: var(--bw) solid var(--line); }
.nb-page + .nb-page::before { content: ""; position: absolute; left: -9px; top: 1.2rem; bottom: 1.2rem; width: 16px; background: radial-gradient(circle at 50% 50%, var(--bg) 3.4px, var(--line) 4px, transparent 4.8px) 0 0 / 16px 26px repeat-y; }
.nb-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.nb-head h2 { font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink); margin: 0; }
.nb-note { font: 600 1.35rem/1.2 var(--script); color: var(--ink-2); margin: .9rem 0 0; }
.nb-tag { position: absolute; left: 50%; top: -2.05rem; transform: translateX(-50%); padding: .35rem .9rem .5rem; border-radius: 8px 8px 0 0; background: var(--skyc); color: var(--on); font: 800 1rem/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.nb-tag i { font: 600 1.05rem/1 var(--script); font-style: normal; margin-left: .1rem; }
.nb-spread::after { content: ""; position: absolute; right: -14px; bottom: 18%; width: 64px; height: 22px; background: var(--blush); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); }
.nb-page .jar-dl div { border-bottom: 0; padding: .45rem 0; }
.mini-jars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-jar { color: var(--ink); }
.mini-jar b { font: 650 .76rem/1.2 var(--sans); }
.mini-pic { display: block; width: 66px; height: 74px; padding: 4px 4px 10px; background: #fff; border-radius: 2px; box-shadow: 0 6px 12px -6px rgb(0 0 0 / .45); transform: rotate(-3deg); }
.mini-jar:nth-child(even) .mini-pic { transform: rotate(3deg); }
.mini-pic img { width: 100%; height: 100%; object-fit: cover; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: start; margin-bottom: 2rem; }
.cc-notes { display: grid; gap: 1.1rem; align-content: start; }
.g-note { display: grid; justify-items: start; gap: .2rem; text-decoration: none; color: var(--ink); }
.g-note p { margin: 0; padding: .9rem 1.2rem; background: var(--blush); color: var(--on); font: 600 1rem/1.35 var(--sans);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px); }
.g-note:nth-child(2) p { background: var(--skyc); transform: rotate(-1.2deg); margin-left: 1.2rem; }
.g-note:nth-child(3) p { background: var(--butter); transform: rotate(.8deg); }
.g-note.quiet p { background: var(--lime); }
.g-note small { font: 600 1.05rem var(--script); padding-left: .3rem; color: var(--ink-2); }
.g-note:hover p { filter: brightness(.97); }
html.calm .g-note p { transform: none !important; }
.stone-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.3rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--deep); color: var(--on-deep); box-shadow: 6px 6px 0 var(--blush); }
.stone-card > div:only-child { grid-column: 1 / -1; }
.stone-card h3 { color: var(--on-deep); font-size: 1.6rem; text-transform: lowercase; margin: .2rem 0 .3rem; }
.stone-card .label, .stone-card .muted, .stone-card a { color: color-mix(in srgb, var(--on-deep) 85%, transparent); }
.stone-pic { all: unset; cursor: zoom-in; display: block; width: 120px; padding: 6px 6px 18px; background: #fff; border-radius: 2px; transform: rotate(-4deg); box-shadow: 0 10px 18px -8px rgb(0 0 0 / .6); }
.stone-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stone-pic:focus-visible { outline: 3px solid var(--blush); }
.date-nudge { background: var(--lime-soft); }
.dn-ic { border-radius: 50%; border: var(--bw) solid var(--line); background: var(--sheet); }
.ask-home { display: flex; justify-content: center; margin-bottom: 2rem; }
.row-pic { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: var(--bw) solid var(--line); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .g-hero { grid-template-columns: 1fr; }
  .th-tabs { justify-self: end; }
  .g-pols { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -1.4rem; gap: 1.2rem; }
  .g-word { font-size: clamp(3.4rem, 19vw, 7rem); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .nb-spread { grid-template-columns: 1fr; }
  .nb-page + .nb-page { border-left: 0; border-top: var(--bw) solid var(--line); }
  .nb-page + .nb-page::before, .nb-spread::after { display: none; }
  .ev-row { grid-template-columns: 1fr auto; }
  .ev-when { grid-column: 1 / -1; grid-row: 2; }
  .cc-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .metric { padding: .8rem .9rem 1rem; } .metric b { font-size: 1.6rem; } .stone-card { grid-template-columns: 1fr; } .stone-pic { width: 110px; } }

/* ---------- Photos everywhere ---------- */
.photo-slot { display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; padding: .8rem; min-height: 110px; border: 1.5px dashed color-mix(in srgb, var(--ink) 32%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); cursor: pointer; font: 650 .78rem/1.3 var(--sans); text-transform: lowercase; transition: background .15s, border-color .15s; }
.photo-slot .ic { width: 24px; height: 24px; color: var(--blush-ink); }
.photo-slot:hover { background: var(--blush-soft); border-color: var(--blush-ink); }
.photo-slot:focus-within { outline: 2px solid var(--blush-ink); outline-offset: 2px; }
.photo-slot.busy, label.btn.busy { opacity: .6; pointer-events: none; }
.ph-img { all: unset; box-sizing: border-box; cursor: zoom-in; display: block; overflow: hidden; background: var(--surface-2); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img:focus-visible { outline: 3px solid var(--blush-ink); outline-offset: 2px; }
img[data-photo]:not([src]) { background: var(--surface-2); min-height: 20px; }
img.missing { visibility: hidden; }
.ph-tools { display: grid; gap: .45rem; padding: .8rem; border: 1px dashed var(--hair); border-radius: 10px; }
.ph-tools > .label { margin: 0; }
.ph-tools > label.btn { justify-self: start; }
.ph-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ph-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: var(--bw) solid var(--line); }
label.btn { cursor: pointer; }
label.btn:focus-within { outline: 2px solid var(--blush-ink); outline-offset: 2px; }
/* a polaroid for a single item's photo */
.pin-pol { position: relative; display: block; width: 100%; padding: 7px 7px 16px; background: #fff; border-radius: 2px; box-shadow: 0 10px 18px -10px rgb(0 0 0 / .5); transform: rotate(var(--tilt, -2deg)); }
.pin-pol .ph-img, .pin-pol .photo-slot { aspect-ratio: 1; width: 100%; min-height: 0; }
.pin-pol .photo-slot { border-radius: 2px; background: #FAFAF6; color: #4A3A32; border-color: #CBBFB2; }
.pin-pol .photo-slot .ic { color: #95345A; }
html.calm .pin-pol { transform: none; }
/* the lightbox */
dialog#modal.photo { width: min(980px, calc(100vw - 24px)); background: #160B08; color: #FCFCEE; border-color: #160B08; }
.lightbox { position: relative; display: grid; gap: .8rem; padding: 1rem; }
.lightbox figure { margin: 0; display: grid; gap: .5rem; justify-items: center; }
.lightbox figure img { max-width: 100%; max-height: min(72vh, 900px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .2rem .8rem; color: #E4D6C6; }
.lightbox figcaption .script { color: #F7CBD9; font-size: 1.6rem; }
.lb-close { position: absolute; z-index: 2; top: .6rem; right: .6rem; background: #FCFCEE; color: #2A1510; }
.lb-prev, .lb-next { position: absolute; z-index: 2; top: 45%; background: #FCFCEE; color: #2A1510; }
.lb-prev { left: .6rem; } .lb-next { right: .6rem; }
.lb-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lb-tools .btn { background: #FCFCEE; color: #2A1510; border-color: #FCFCEE; }
.lb-tools .btn.danger { background: transparent; color: #FFB3C3; border-color: #FFB3C3; }
.lb-cap { display: flex; gap: .4rem; }
.lb-cap .input { min-width: 220px; background: #FCFCEE; color: #2A1510; }

/* ---------- Dark (Cocoa) ---------- */
[data-theme="cocoa"] .verse-band { background: var(--butter); }
[data-theme="cocoa"] .strip4 > :first-child, [data-theme="cocoa"] .metric.pay, [data-theme="cocoa"] .metric.warn { color: #2A1510; }
[data-theme="cocoa"] .side-log, [data-theme="cocoa"] .btn.solid, [data-theme="cocoa"] .tour-offer, [data-theme="cocoa"] .tour-offer b, [data-theme="cocoa"] .folder .front, [data-theme="cocoa"] .folder .barn-name { color: #2A1510; }
[data-theme="cocoa"] .side-log .ic { background: #FCFCEE; color: #2A1510; }
[data-theme="cocoa"] .g-note p, [data-theme="cocoa"] .lug-tag, [data-theme="cocoa"] .nb-tag, [data-theme="cocoa"] .side-hub, [data-theme="cocoa"] .wtag, [data-theme="cocoa"] .tag, [data-theme="cocoa"] .th-tabs .btn, [data-theme="cocoa"] .chip.on, [data-theme="cocoa"] .tabs a[aria-current="page"] { color: #2A1510; }
[data-theme="cocoa"] .subnav a[aria-current="page"], [data-theme="cocoa"] .seg button[aria-pressed="true"], [data-theme="cocoa"] .tabbar [aria-current="page"] { color: #2A1510; }
[data-theme="cocoa"] .g-logo { background: #F7CBD9; color: #2A1510; } [data-theme="cocoa"] .g-logo i { color: #95345A; }
[data-theme="cocoa"] .side a[data-nav][aria-current="page"] { background: #F7CBD9; color: #2A1510; }
[data-theme="cocoa"] .side a[data-nav][aria-current="page"] .ic, [data-theme="cocoa"] .side a[data-nav][aria-current="page"] small { color: #2A1510; }
[data-theme="cocoa"] .stone-card { box-shadow: 6px 6px 0 #95345A; }
[data-theme="cocoa"] .ev-more { color: #2A1510; }
/* photo spots on items */
.folder .sheet { padding-right: 104px; }
.barn-pic { position: absolute; top: -14px; right: 10px; width: 88px; z-index: 3; }
.barn-pic .photo-slot { min-height: 0; padding: .3rem; font-size: .66rem; gap: .1rem; }
.barn-pic .photo-slot .ic { width: 18px; height: 18px; }
.jub-cover { width: calc(100% + 2.6rem); margin: -1.2rem -1.3rem 1rem; height: 150px; border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; border-bottom: var(--bw) solid var(--line); }
.meal-cover { width: calc(100% + 2.6rem); margin: -1.2rem -1.3rem .2rem; height: 140px; border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; border-bottom: var(--bw) solid var(--line); }
.cause-pic { flex: none; width: 56px; height: 56px; padding: 3px 3px 9px; background: #fff; border-radius: 2px; box-shadow: 0 6px 12px -6px rgb(0 0 0 / .5); transform: rotate(-4deg); }
.cause-pic .ph-img { width: 100%; height: 100%; }
.kid-av.pic { padding: 0; overflow: hidden; background: #fff; }
.kid-av.pic .ph-img { width: 100%; height: 100%; }
.tl-pic { float: right; width: 112px; margin: .2rem 0 .5rem .9rem; }
.wish-pic { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: var(--bw) solid var(--line); }
.wish-pic .ph-img { width: 100%; height: 100%; }
.tl-card::before { background: color-mix(in srgb, var(--skyc) 80%, transparent); }
.kid-av { border-color: #fff; }
.folder::before { background: color-mix(in srgb, var(--skyc) 62%, var(--sky-ink)); }
.wish { min-width: 0; }
.wish-top { align-items: flex-start; }
.wish-name { font: 800 1.25rem/1.1 var(--display) !important; letter-spacing: -.035em; overflow-wrap: anywhere; }
.wish-top b { font: 800 1.15rem/1.1 var(--display) !important; color: var(--ink) !important; }
.wait-col { border: var(--bw) solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--skyc) 45%, var(--surface)); }
.wc-l { background: var(--deep); color: var(--on-deep); }
.chain-n { font: 800 .9rem/1.6 var(--display) !important; color: var(--blush-ink) !important; }
.yr { font: 600 2.6rem/1 var(--script); color: var(--blush-ink); }
.tl-card { border: var(--bw) solid var(--line); border-radius: var(--r-sm); }
.cause { box-shadow: inset 0 5px 0 var(--c), var(--shadow); }
.theme-opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blush-ink), var(--shadow); }
.th-cols > div::before { background: radial-gradient(circle, var(--bg) 5px, var(--line) 5.6px, transparent 6.4px) center / 33.33% 14px repeat-x; }
.g-pols { margin-top: -1.6rem; }
@media (max-width: 900px) { .g-pols { margin-top: -1rem; } }
.vb-btns .btn { background: #FFFFFA; color: #2A1A14; border-color: #401F18; }
.tour-offer .burst { background: #FFFFFA; color: #2A1510; }
.top .g-logo b { display: inline !important; }
@media (max-width: 900px) { .g-pols { margin-top: .3rem; } }
.cal-head { min-width: 0; }
.cal-head h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .cal-head h2 { font-size: 1.6rem; } }
.kid-av.pic img { width: 100%; height: 100%; object-fit: cover; }
/* the band's words sit clear of the polaroids */
.g-word { line-height: .95; padding: .08em 0 .12em; font-size: clamp(3.6rem, 11vw, 10rem); }
.g-pols, .g-pols { margin-top: 1.1rem !important; }
@media (max-width: 900px) { .g-word { font-size: clamp(3.4rem, 18vw, 7rem); } .g-pols { margin-top: .9rem !important; } }
.wish-top > div { flex-wrap: wrap; row-gap: .2rem; }
.wish-name { overflow-wrap: break-word !important; hyphens: auto; }
