/* =====================================================================
   The Steward — design system: "the scrapbook"
   Old paper with a little grain, tomato-red italic headlines that run tight,
   a signature script laid over the type, typewriter labels, and the things
   you'd keep in a desk drawer: polaroids, file folders, envelopes, punched
   notebook paper, binder rings and a star-shaped price sticker.
   Every colour comes from the palette, so all seven palettes share the look.
   ===================================================================== */
:root {
  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --script: "Ms Madi", "Brush Script MT", cursive;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 3px; --r-sm: 2px; --bw: 1px; --side: 244px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 0 rgba(60, 35, 25, .08), 0 14px 26px -18px rgba(60, 35, 25, .55);
}
/* 0. The Letterpress (default): tomato, cocoa and old paper */
:root, [data-theme="letterpress"] {
  --bg: #DDD7C8; --bg-2: #CFC6BA; --bar: #EEE9D6; --surface: #F4EEDD; --surface-2: #EAE2CC; --oat: #E6DEC8; --sand: #D8CDB3; --taupe: #A89A84;
  --ink: #3A2A22; --ink-2: #5A463A; --muted: #665548; --line: #3A2A22; --hair: #D2C7B1; --rule: rgba(58, 42, 34, .42);
  --head: #D2351C; --red-text: #A62B14; --primary: #C7321A; --on-primary: #F6F0E0;
  --band: #A32E12; --on-band: #F6EEDC; --deep: #4E2B21; --deep-2: #5B3428; --on-deep: #EFE5D3; --accent: #C8963E;
  --water: #7E97A0; --water-2: #BCCACD; --sage: #8C9A6E; --ochre: #C8963E; --rose: #D68C7A; --plum: #8E7389; --clay: #B8704E;
  --red: #B42A16; --amber: #B5801F; --green: #5E7A3A; --on: #3A2A22;
}
/* 1. The Olive Grove */
[data-theme="olive"] {
  --bg: #E4E1D5; --bg-2: #D7D3C3; --bar: #F1EEE4; --surface: #F8F6EF; --surface-2: #ECE8DA; --oat: #E6E1D1; --sand: #D5CFBB; --taupe: #A7A08A;
  --ink: #262A1E; --ink-2: #4C5140; --muted: #5C5E4E; --line: #262A1E; --hair: #D6D1C0; --rule: rgba(38, 42, 30, .4);
  --head: #4A5D23; --red-text: #4A5D23; --primary: #4A5D23; --on-primary: #F8F6EF;
  --band: #56682C; --on-band: #F6F4EA; --deep: #2F3A17; --deep-2: #3A4720; --on-deep: #EEEBDF; --accent: #C5A059;
  --water: #8FA9B0; --water-2: #C3D2D4; --sage: #8A9A5B; --ochre: #C5A059; --rose: #C99A8C; --plum: #9A8AA2; --clay: #B98B67;
  --red: #A9473E; --amber: #A87A1F; --green: #4F6B2B; --on: #262A1E;
}
/* 2. Living Water */
[data-theme="water"] {
  --bg: #DCE3E3; --bg-2: #CDD6D8; --bar: #EEF3F2; --surface: #F7FAF9; --surface-2: #E6EDEE; --oat: #D9E2E8; --sand: #A9BCCC; --taupe: #8EA3B5;
  --ink: #142A40; --ink-2: #2F4A64; --muted: #4A5F73; --line: #142A40; --hair: #CFD9DF; --rule: rgba(20, 42, 64, .4);
  --head: #1C3F60; --red-text: #1C3F60; --primary: #112338; --on-primary: #F4F7F6;
  --band: #1C3F60; --on-band: #F1F5F6; --deep: #112338; --deep-2: #1A3049; --on-deep: #E8EFF2; --accent: #B87333;
  --water: #6F98B8; --water-2: #B4CADB; --sage: #7FA394; --ochre: #B87333; --rose: #C4918A; --plum: #8D86AE; --clay: #A98466;
  --red: #B0463B; --amber: #A4651F; --green: #3F7A62; --on: #142A40;
}
/* 3. The Harvest */
[data-theme="harvest"] {
  --bg: #E9E1D2; --bg-2: #DCD2BF; --bar: #F5EEE0; --surface: #FDFBF7; --surface-2: #F3ECDF; --oat: #EADEC9; --sand: #DCCCB0; --taupe: #9E907F;
  --ink: #2B2620; --ink-2: #534A3F; --muted: #665A4C; --line: #2B2620; --hair: #E1D6C3; --rule: rgba(43, 38, 32, .4);
  --head: #B45F3A; --red-text: #9A4F2E; --primary: #2E4A35; --on-primary: #FDFBF7;
  --band: #2E4A35; --on-band: #F7F2E8; --deep: #3A3127; --deep-2: #463B2F; --on-deep: #F2EADC; --accent: #C36F49;
  --water: #86A3A8; --water-2: #C4D3D2; --sage: #6F8C6A; --ochre: #C9974D; --rose: #C98A73; --plum: #96818F; --clay: #C36F49;
  --red: #B24A33; --amber: #A86528; --green: #2E4A35; --on: #2B2620;
}
/* 4. Dawn & Clay */
[data-theme="dawn"] {
  --bg: #E6DFD5; --bg-2: #DDCFC6; --bar: #F3EDE5; --surface: #FAF7F2; --surface-2: #F0E6DE; --oat: #EBDCD5; --sand: #DDA7A5; --taupe: #B98F86;
  --ink: #382923; --ink-2: #5A4840; --muted: #6A544B; --line: #382923; --hair: #E0D3C9; --rule: rgba(56, 41, 35, .4);
  --head: #B4614F; --red-text: #9E5242; --primary: #A65C4D; --on-primary: #FFF9F5;
  --band: #A65C4D; --on-band: #FFF8F2; --deep: #382923; --deep-2: #45342D; --on-deep: #F4EAE2; --accent: #D4AF37;
  --water: #8EA6AE; --water-2: #C6D3D5; --sage: #93A283; --ochre: #D4AF37; --rose: #DDA7A5; --plum: #9C8199; --clay: #C17767;
  --red: #A8402F; --amber: #A87A1F; --green: #5F7F4E; --on: #382923;
}
/* 5. Royal Priesthood */
[data-theme="royal"] {
  --bg: #E5E0DA; --bg-2: #D9D1C9; --bar: #F2EEE9; --surface: #FBFAF8; --surface-2: #F0E9E2; --oat: #E8D5C4; --sand: #D9C2AE; --taupe: #8F8593;
  --ink: #1B263B; --ink-2: #3D4558; --muted: #575566; --line: #1B263B; --hair: #DDD5CC; --rule: rgba(27, 38, 59, .4);
  --head: #4A3B52; --red-text: #4A3B52; --primary: #4A3B52; --on-primary: #F5F3F0;
  --band: #4A3B52; --on-band: #F5F1EC; --deep: #1B263B; --deep-2: #26324A; --on-deep: #ECE7E1; --accent: #B08D57;
  --water: #7E93AE; --water-2: #C1CBDA; --sage: #8E9E86; --ochre: #B08D57; --rose: #C49A9A; --plum: #8F7A9C; --clay: #A8826E;
  --red: #A3453F; --amber: #9C7428; --green: #5A7B5E; --on: #1B263B;
}
/* 6. The Monastic Minimalist */
[data-theme="monastic"] {
  --bg: #ECECEA; --bg-2: #E2E2DF; --bar: #F7F7F6; --surface: #FFFFFF; --surface-2: #F5F5F5; --oat: #F2F2F2; --sand: #E2E2E2; --taupe: #BDBDBD;
  --ink: #121212; --ink-2: #3A3A3A; --muted: #5C5C5C; --line: #121212; --hair: #E0E0E0; --rule: rgba(18, 18, 18, .35);
  --head: #121212; --red-text: #3A5A40; --primary: #3A5A40; --on-primary: #FFFFFF;
  --band: #3A5A40; --on-band: #FFFFFF; --deep: #121212; --deep-2: #222222; --on-deep: #F2F2F2; --accent: #3A5A40;
  --water: #7C9A82; --water-2: #C9D6CB; --sage: #3A5A40; --ochre: #8FA693; --rose: #A7B5A9; --plum: #5E6E61; --clay: #9AA39B;
  --red: #A33B32; --amber: #806A2A; --green: #3A5A40; --on: #121212;
}
.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: italic; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.ic { width: 18px; height: 18px; flex: none; }
.label { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.spark { width: 22px; height: 22px; fill: var(--oat); stroke: var(--line); stroke-width: 1.6; flex: none; vertical-align: -5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink)); border: 1px solid var(--line); flex: none; }
.bar { position: relative; height: 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; background: var(--water); border-right: 1px solid var(--line); }
.bar.nt i { background: var(--sage); }
.bar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); text-decoration: none; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .4rem 1.15rem; border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ic { width: 16px; height: 16px; }
.btn.solid { background: var(--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: italic 400 1.5rem/1 var(--serif); text-decoration: none; flex: none; }
.nav { display: flex; gap: .1rem; flex-wrap: nowrap; margin-left: auto; }
.nav a { padding: .45rem .6rem; border-radius: 999px; font: 500 .66rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; border: var(--bw) solid transparent; white-space: nowrap; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { background: var(--surface); border-color: var(--line); }
.top-tools { display: flex; gap: .3rem; align-items: center; }
.tabbar { display: none; }
main { max-width: 1280px; margin: 0 auto; padding: 0 1.4rem 6rem; }
@media (max-width: 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: 400 2.3rem/1 var(--serif); }
.strip4 small { font-size: .7rem; color: var(--muted); }
@media (max-width: 700px) { .strip4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip4 > :nth-child(3) { border-left: 0; } .strip4 > :nth-child(n+3) { border-top: var(--bw) solid var(--line); } }
.big-num { font: 400 3.4rem/1 var(--serif); margin: 0; }
.big-num small { font: 400 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.year-pick { display: inline-flex; gap: .6rem; align-items: center; }
.year-pick b { font: 400 1.8rem/1 var(--serif); min-width: 3ch; text-align: center; }

.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: italic 400 clamp(1.7rem, 3.6vw, 2.8rem)/1.15 var(--serif); margin: 0 0 .9rem; letter-spacing: -.01em; }
.word blockquote footer { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.word blockquote footer span { opacity: .6; margin-left: .5rem; }
.word .icon-btn:hover { color: var(--ink); }
.word .btn.on { background: var(--sand); color: var(--ink); border-color: var(--sand); }
/* ---------- The jar ---------- */
.jar-svg { width: 190px; height: auto; overflow: visible; }
.jar-svg.xl { width: min(300px, 70vw); }
.jar-lid { fill: var(--taupe); stroke: var(--line); stroke-width: 2.5; }
.jar-neck { fill: var(--surface-2); stroke: var(--line); stroke-width: 2.5; }
.jar-glass-in { fill: var(--surface); }
.jar-glass { fill: none; stroke: var(--line); stroke-width: 3; }
.jar-shine { display: none; }
.jar-tick { stroke: var(--line); stroke-width: 2; }
.water { fill: var(--water); stroke: var(--line); stroke-width: 1.5; animation: wave 6s linear infinite; }
.water.back { fill: var(--water-2); stroke: none; animation-duration: 9s; animation-direction: reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(40px); } }
.bubble { fill: none; stroke: color-mix(in srgb, var(--bg) 80%, transparent); stroke-width: 1.5; animation: rise 5s ease-in infinite; }
.bubble.b1 { animation-delay: 1.6s; animation-duration: 6s; } .bubble.b2 { animation-delay: 3.1s; animation-duration: 7s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.jar-pct { font: 400 42px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }

/* ---------- 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: 400 clamp(3.4rem, 9vw, 4.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.ring-time span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.len-pick { display: grid; gap: .7rem; justify-items: center; }
.len-pick > div { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.len-pick .label { min-width: 3.5rem; }
.phase-help { width: min(420px, 100%); text-align: left; padding-top: 1rem; border-top: 1px dashed var(--hair); }
.phase-help ul:not(.chapters) { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .86rem; }
.phase-help .chapters { margin-top: .5rem; }
.reward { width: 100%; padding: 1rem 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--oat); text-align: left; }
.reward b { display: block; font: 400 1.5rem/1.15 var(--serif); margin: .3rem 0 .7rem; }
.embed { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--ink); }
.embed.yt { aspect-ratio: 16 / 9; } .embed.spotify { height: 352px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-play { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; color: var(--bg); text-align: center; padding: 1rem; }
.embed-play .ic { width: 46px; height: 46px; padding: 12px; border: var(--bw) solid currentColor; border-radius: 50%; }
.embed-play span { font: 400 1.4rem/1.1 var(--serif); }
.embed-play small { font-size: .68rem; opacity: .7; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 460px) { .layers { grid-template-columns: minmax(0, 1fr); } }
.layers li { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.layers li.on { background: var(--oat); }
.layer { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .6rem; align-items: center; width: 100%; padding: .75rem .8rem .3rem; }
.layer .ic { width: 22px; height: 22px; }
.layer b { display: block; font: 400 1.2rem/1.1 var(--serif); }
.layer small { font-size: .66rem; color: var(--muted); }
.layer:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.layers li.on .layer small { color: var(--ink); }
.vol { display: flex; gap: .6rem; align-items: center; padding: .2rem .8rem .6rem; font-size: .72rem; }
.vol input { flex: 1; accent-color: var(--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: 400 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: 400 1.35rem/1 var(--serif); }
.cday.today .n { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .3rem; border-radius: 999px; background: var(--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: italic 400 .86rem/1.1 var(--serif); }
.cday .mile, .cday .tag, .cday .ev, .cday .more { display: flex; gap: .25rem; align-items: center; font-size: .58rem; line-height: 1.25; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: .12rem .3rem; border-radius: 5px; }
.cday .mile { background: color-mix(in srgb, var(--water) 55%, var(--surface)); border: 1px solid var(--line); }
.cday .tag.fast { background: color-mix(in srgb, var(--sage) 50%, var(--surface)); } .cday .tag.feast { background: color-mix(in srgb, var(--ochre) 45%, var(--surface)); }
.cday .ev { border-left: 3px solid var(--k, var(--taupe)); background: var(--surface-2); border-radius: 3px; }
.cday .ev b { font-weight: 500; }
.cday .more { color: var(--muted); }
.cday .ic { width: 11px; height: 11px; }
@media (max-width: 700px) {
  .cday { min-height: 62px; padding: .3rem .25rem; }
  .cday .named, .cday .ev, .cday .tag, .cday .mile span, .cday .more { display: none; }
  .cday .mile { padding: 0; background: none; border: 0; }
  .cday .cmeta { flex-direction: column-reverse; }
  .cday .n { font-size: 1.05rem; }
  .cday.today .n { min-width: 1.4rem; height: 1.4rem; }
}
.season-card h2 { display: flex; gap: .6rem; align-items: center; margin-top: .3rem; }
.season-card h2 .lit { width: 16px; height: 16px; }
.day-form { display: grid; gap: .8rem; }
.toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .8rem; align-items: center; }
@media (max-width: 500px) { .toggle-row { grid-template-columns: minmax(0, 1fr); } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.6rem; top: 0; bottom: 0; border-left: var(--bw) solid var(--line); }
.timeline li { display: grid; grid-template-columns: 5.6rem 2rem minmax(0, 1fr); gap: 0 0; align-items: start; padding-bottom: 1.2rem; }
.tl-date { text-align: right; padding-right: .4rem; padding-top: .2rem; }
.tl-date b { display: block; font: 400 1.4rem/1 var(--serif); }
.tl-date small { font-size: .66rem; color: var(--muted); }
.tl-dot { width: 16px; height: 16px; margin: .5rem 0 0 calc(1rem - 7px); border-radius: 50%; border: var(--bw) solid var(--line); background: var(--water); position: relative; z-index: 1; }
.tl-card { padding: 1rem 1.1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface); }
.tl-card h3 { font-size: 1.6rem; margin: .3rem 0 .4rem; }
.tl-card .ask { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.tl-card blockquote { margin: 0 0 .7rem; padding: .6rem .9rem; border-left: 3px solid var(--water); background: var(--surface-2); font: italic 400 1.2rem/1.3 var(--serif); }
.wait { height: 6px; border-radius: 999px; background: var(--surface-2); margin-bottom: .5rem; }
.wait i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--taupe), var(--water)); }
@media (max-width: 600px) { .timeline::before { left: .45rem; } .timeline li { grid-template-columns: 1.4rem minmax(0, 1fr); } .tl-date { grid-column: 2; grid-row: 1; text-align: left; display: flex; gap: .4rem; align-items: baseline; padding: 0 0 .3rem; } .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin: .3rem 0 0 0; } .tl-card { grid-column: 2; } }
/* ---------- 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: 400 1.25rem/1 var(--serif); }
.theme-opt small { font-size: .64rem; color: var(--muted); }
.dump { display: flex; gap: .5rem; }
.dump .input { flex: 1; }

/* ---------- Modal, toast, confetti ---------- */
dialog#modal { border: var(--bw) solid var(--line); padding: 0; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); }
dialog#modal.narrow { width: min(460px, calc(100vw - 24px)); }
dialog#modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog#modal[open] { animation: popin .2s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog#modal::backdrop { background: color-mix(in srgb, #000 45%, transparent); }
.modal-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 40px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem .6rem; }
.modal-head h2 { font-size: 2.1rem; }
.modal-body { overflow-y: auto; padding: .4rem 1.3rem 1.3rem; }
.modal-foot { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .9rem 1.3rem; border-top: var(--bw) solid var(--line); flex-wrap: wrap; }
.modal-foot .right { display: flex; gap: .5rem; margin-left: auto; }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow, dialog#modal.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; } .modal-inner { max-height: 92dvh; } .modal-foot { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); } }
#toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); }
@media (max-width: 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: italic; }
.auth-verse { margin: 1rem 0 0; max-width: 24em; font: italic 400 1.6rem/1.25 var(--serif); }
.auth-verse footer { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: .8rem; opacity: .7; }
.auth-art .spark { fill: var(--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: italic 400 2.4rem var(--serif); }

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

/* ---------- Calm mode ---------- */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .bubble { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bubble { display: none; } }
.anchors li > .icon-btn { grid-column: 2; grid-row: 1; }

/* =====================================================================
   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: 400 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: italic 400 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: 400 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: 400 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: 400 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: italic 400 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: 400 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: 400 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: 400 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: 400 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: italic 400 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: 400 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: 400 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: 400 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: italic 400 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: 400 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: 400 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: 400 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: 400 1.45rem/1 var(--serif); }
.barn-body small { font-size: .7rem; color: var(--muted); }
.barn-name { all: unset; cursor: pointer; font: 400 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: italic 400 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: 400 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: italic 400 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: 400 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: 400 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: 400 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: 400 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: 400 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: 400 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: 400 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: 400 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: 400 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: italic 400 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: italic 400 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: 400 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: 400 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: 400 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: italic 400 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: 400 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: italic; font-weight: 450; font-variation-settings: "opsz" 72; 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: italic 450 clamp(2.4rem, 5vw, 3.5rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.04em; color: var(--head); }
.jar-stats b, .give-rows b, .big-num { font-family: var(--serif); font-style: italic; font-weight: 450; 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: italic 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: italic 450 1.55rem/1 var(--serif); font-variation-settings: "opsz" 72; 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: #FBF9F3; 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: italic; }
  .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: 460; }
.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: italic 400 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: italic 450 clamp(1.7rem, 3vw, 2.35rem)/1 var(--serif); font-variation-settings: "opsz" 72; 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: italic 450 1.2rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.rows .what b { font: italic 450 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: #FBFAF6; 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: italic 400 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: italic 500 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: italic 460 clamp(3.6rem, 9.5vw, 8rem)/.8 var(--serif); font-variation-settings: "opsz" 72; 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: italic 450 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: #FBF9F3; 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: #FBF9F3; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.folder .sheet p { margin: 0; font-size: .8rem; }
.folder .sheet p b { font: italic 450 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: italic 500 1.5rem/.95 var(--serif); letter-spacing: -.03em; text-transform: uppercase; }
.folder .snap { width: 82px; margin-top: -3.4rem; padding: 5px 5px 12px; background: #FBFAF6; 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: italic; }

/* ---------- 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: italic 450 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: italic; letter-spacing: -.04em; color: var(--head); }
.reward { border: 0; border-radius: 0; background: var(--surface-2); }
.reward b { font-family: var(--serif); font-style: italic; }
.steps li { border-bottom: 1px dashed var(--rule); }
.steps li > div > b { font: italic 450 1.25rem/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.layers li { border: 1px solid var(--rule); border-radius: 0; background: var(--surface); }
.layers li.on { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.layer b { font-family: var(--serif); font-style: italic; }
.embed { border: 0; border-radius: 0; background: var(--deep); }
.embed-play span { font-family: var(--serif); font-style: italic; }
/* 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: italic; 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: italic; letter-spacing: -.03em; }
.cday.today .n { background: var(--primary); color: var(--on-primary); }
.cday .mi { border-radius: 0; }
.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: italic; color: var(--ink); }
.remember { border-radius: 0; background: var(--surface-2); }
/* Contentment */
.wait-col { border: 0; border-radius: 0; 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: 0; border-radius: 0; background: var(--surface); box-shadow: var(--shadow); }
.wish-name { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.wish-top b { font-family: var(--serif); font-style: italic; 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: 0; }
.sb-vs b { font-family: var(--serif); font-style: italic; color: var(--green); }
.chain { border: 0; border-radius: 0; 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: italic; letter-spacing: -.025em; }
.chain-left b { font-family: var(--serif); font-style: italic; color: var(--head); }
.chain { grid-template-columns: 2rem minmax(0, 1fr); }
.broke { border-radius: 0; border-color: var(--rule); }
.broke b { font-family: var(--serif); font-style: italic; }
/* Jubilee */
.jub-big b { font-family: var(--serif); font-style: italic; color: var(--head); }
.months i { border-radius: 0; border: 1px solid var(--rule); }
.mol-eq i { font-family: var(--serif); }
/* Covenant */
.avatar { border-radius: 0; border: 4px solid #FBFAF6; 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: italic; 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: 0; border-radius: 0; 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: italic; color: var(--head); }
/* Storehouse */
.week li { border: 0; border-bottom: 1px dashed var(--rule); border-radius: 0; }
.week li.today { border: 0; border-bottom: 1px dashed var(--rule); background: var(--surface-2); }
.wd b { font-family: var(--serif); font-style: italic; color: var(--head); }
.meal-chip, .add-chip, .ings li { border-radius: 0; }
.meal-chip { border-color: var(--rule); }
.shop-tot .saved b { font-family: var(--serif); font-style: italic; }
.checklist li { border-bottom: 1px dashed var(--rule); }
.place-ic { border-color: var(--rule); }
.st-name { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
/* Legacy */
.comp { border-radius: 0; 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: italic; color: var(--on-deep); }
.vault-ic { border-radius: 0; border: 4px solid #FBFAF6; 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: 0; }
.vrec.missing b { font-family: var(--serif); font-style: italic; color: var(--head); }
/* Pruning hook */
.branch { border: 1px dashed var(--rule); border-radius: 0; background: color-mix(in srgb, var(--amber) 7%, var(--surface)); }
.branch b { font-family: var(--serif); font-style: italic; }
.b-ic { border-color: var(--rule); }
.vine li { border-bottom: 1px dashed var(--rule); }
.v-name b { font: italic 450 1.08rem/1.1 var(--serif); }
.v-bar { border-radius: 0; height: 10px; }
.v-bar i { border-radius: 0; 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: 0; border-radius: 0; 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: italic; color: var(--head); }
.tl-card h3 { color: var(--ink); }
.stone-hero h2 { color: var(--head); }
.remember-big blockquote { border-radius: 0; }
.remember-big h3 { color: var(--head); }
/* Little stewards */
.kid-av { border-radius: 0; border: 4px solid #FBFAF6; 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: 0; }
.kj + .kj { border-left: 1px dashed var(--rule); }
.kj b { color: var(--head); }
.km-jar, .km-goal, .km-chore { border: 0; border-radius: 0; box-shadow: var(--shadow); }
.km-jar b { font-family: var(--serif); font-style: italic; color: var(--head); }
.km-goal h2, .km-chores h2 { color: var(--head); }
.km-chore { font-family: var(--serif); font-style: italic; }
.km-tick { border-color: var(--rule); }
/* Acts 2 treasury */
.place-chip { border-radius: 0; border: 0; background: var(--surface); box-shadow: var(--shadow); }
.place-chip b { font-family: var(--serif); font-style: italic; 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: 0; border-radius: 0; 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: italic; color: var(--head); }
.theme-sw { border-radius: 0; border-color: var(--rule); }
.invite-box { border: 1px dashed var(--rule); border-radius: 0; }
.tour-card { border: 0; border-radius: 0; background: var(--surface); box-shadow: var(--shadow); }
.tour-card strong { font-family: var(--serif); font-style: italic; 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: 0; border-color: var(--rule); }
#tour .tour-box { border: 0; border-radius: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
#tour .tour-box h3 { color: var(--head); }
.tour-spot { border-radius: 0; outline-color: var(--primary); }
.tour-dots i { border-radius: 0; } .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: italic; fill: var(--ink); stroke: #FBF9F3; }
.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)); }
