/* =====================================================================
   Vivid — design system: "the pinboard"
   Grid paper on a desk. Index cards and sticky notes held on with pushpins
   and washi tape. Colour-block stickers slapped on at an angle, a highlighter
   swipe under the last word of each title, and a handwritten aside.
   Every colour comes from the palette, so all nine palettes share the look,
   and tidy mode straightens everything for a calmer page.
   ===================================================================== */
:root {
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px; --r-sm: 6px; --side: 252px; --cell: 26px;
  --note-mix: 52%; --tint: 42%; --tint-hi: 58%;
  --shadow: 0 1px 1px rgba(30, 25, 40, .06), 0 12px 24px -16px rgba(30, 25, 40, .45);
  --lift: 0 2px 2px rgba(30, 25, 40, .08), 0 18px 30px -18px rgba(30, 25, 40, .55);
}
/* ---------- Palettes ---------- */
/* Postcard (default): bubblegum, lime and sky on cream grid paper */
:root, [data-theme="postcard"] {
  --bg: #FBF6EC; --grid: rgba(42, 37, 64, .075); --surface: #FFFDF8; --surface-2: #F4EEE2; --hair: #E7DFD0;
  --ink: #2A2540; --ink-2: #4A4462; --muted: #645E79; --line: #2A2540; --edge: #2A2540;
  --primary: #2A2540; --on-primary: #FFFDF8; --band: #B92F67; --band-2: #A82A5D; --on-band: #FFF7FA; --hand-ink: #B92F67;
  --pink: #F5A8C8; --lime: #C5D86D; --sky: #8EC5F2; --butter: #F7DD72; --lilac: #C9B6F0; --tangerine: #FFB07A; --mint: #9EDDC4; --inkc: #B9B4CC; --on-sticker: #2A2540;
  --red: #C0392B; --green: #3E7B3A; --amber: #A76A06;
}
/* Matcha Latte */
[data-theme="matcha"] {
  --bg: #F5F2E6; --grid: rgba(44, 58, 43, .075); --surface: #FFFEF8; --surface-2: #EEEADB; --hair: #E2DDC9;
  --ink: #2C3A2B; --ink-2: #485746; --muted: #5E6A5B; --line: #2C3A2B; --edge: #2C3A2B;
  --primary: #3F5A3A; --on-primary: #FFFEF8; --band: #5C7A4E; --band-2: #52704A; --on-band: #FBFAF0; --hand-ink: #4F6B45;
  --pink: #E9B5A3; --lime: #B9CF8F; --sky: #A9CBC6; --butter: #EAD9A6; --lilac: #CBC1DA; --tangerine: #E8B48A; --mint: #B5D6BE; --inkc: #BFC7BB; --on-sticker: #2C3A2B;
  --red: #B03A2E; --green: #3F6E35; --amber: #96620A;
}
/* Lavender Haze */
[data-theme="lavender"] {
  --bg: #F6F2F8; --grid: rgba(46, 38, 69, .07); --surface: #FFFDFF; --surface-2: #EFE9F4; --hair: #E3DAEB;
  --ink: #2E2645; --ink-2: #4A4163; --muted: #625A7C; --line: #2E2645; --edge: #2E2645;
  --primary: #4E3D8F; --on-primary: #FFFDFF; --band: #6E58BA; --band-2: #644FAE; --on-band: #FFFDFF; --hand-ink: #6A52B8;
  --pink: #F5B8CF; --lime: #C8E59A; --sky: #A9CDF2; --butter: #F6E0A3; --lilac: #C7B4E8; --tangerine: #F8C6A8; --mint: #A8E0CC; --inkc: #BDB6D2; --on-sticker: #2E2645;
  --red: #B8323F; --green: #3B7550; --amber: #9A6510;
}
/* Citrus Splash */
[data-theme="citrus"] {
  --bg: #FFF8E8; --grid: rgba(31, 42, 68, .075); --surface: #FFFFFF; --surface-2: #FFF0D2; --hair: #F1E3C2;
  --ink: #1F2A44; --ink-2: #3A4766; --muted: #56617D; --line: #1F2A44; --edge: #1F2A44;
  --primary: #1F2A44; --on-primary: #FFFFFF; --band: #C4501A; --band-2: #B44915; --on-band: #FFFFFF; --hand-ink: #C4501A;
  --pink: #FF9EB5; --lime: #B5E655; --sky: #6CCFF6; --butter: #FFD84D; --lilac: #C3A6FF; --tangerine: #FF9A4D; --mint: #5FD3C3; --inkc: #B9C0D4; --on-sticker: #1F2A44;
  --red: #C42B1C; --green: #2E7D32; --amber: #A15C00;
}
/* Night Owl (dark) */
[data-theme="nightowl"] {
  --bg: #1A1B2E; --grid: rgba(237, 235, 250, .05); --surface: #24263D; --surface-2: #2D3050; --hair: #3A3D60;
  --ink: #EDEBFA; --ink-2: #CFCCEA; --muted: #A6A3C6; --line: #9F9CCB; --edge: #0C0D1A;
  --primary: #FF8FC1; --on-primary: #1A1B2E; --band: #2D3050; --band-2: #33365A; --on-band: #EDEBFA; --hand-ink: #FF9FCB;
  --pink: #FF8FC1; --lime: #B8F36B; --sky: #7FD4FF; --butter: #FFE27A; --lilac: #C6A8FF; --tangerine: #FFB27A; --mint: #7CF0C8; --inkc: #9F9CCB; --on-sticker: #1A1B2E;
  --red: #FF7A7A; --green: #8FE39A; --amber: #FFC970;
  --note-mix: 24%; --tint: 20%; --tint-hi: 26%;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 26px -16px rgba(0, 0, 0, .8); --lift: 0 2px 2px rgba(0, 0, 0, .3), 0 18px 30px -16px rgba(0, 0, 0, .9);
}
/* Slate & Steel (neutral) */
[data-theme="slate"] {
  --bg: #EEF0F1; --grid: rgba(30, 37, 43, .06); --surface: #FAFBFB; --surface-2: #E5E8EA; --hair: #D9DDE0;
  --ink: #1E252B; --ink-2: #3C4750; --muted: #56616B; --line: #1E252B; --edge: #1E252B;
  --primary: #2F3C47; --on-primary: #FAFBFB; --band: #4E5D69; --band-2: #46545F; --on-band: #FAFBFB; --hand-ink: #A3532E;
  --pink: #D9A28A; --lime: #B4BFA0; --sky: #A9BCCB; --butter: #D8CDB0; --lilac: #B7B7C9; --tangerine: #C9845F; --mint: #A8C3B8; --inkc: #B9C1C8; --on-sticker: #1E252B;
  --red: #A93226; --green: #3D6B4A; --amber: #8A5A0C;
}
/* Field Notes (neutral): kraft paper and olive drab */
[data-theme="fieldnotes"] {
  --bg: #EAE0CD; --grid: rgba(34, 32, 27, .075); --surface: #F8F3E8; --surface-2: #E6DCC8; --hair: #D9CDB6;
  --ink: #22201B; --ink-2: #45413A; --muted: #5A544A; --line: #22201B; --edge: #22201B;
  --primary: #3E4A3D; --on-primary: #F8F3E8; --band: #5E5E31; --band-2: #56562C; --on-band: #F8F3E8; --hand-ink: #5E5E31;
  --pink: #D4A58E; --lime: #B3B37A; --sky: #A4B2A9; --butter: #DCC38E; --lilac: #B9AFA3; --tangerine: #C98D5A; --mint: #A9B89A; --inkc: #BDB5A5; --on-sticker: #22201B;
  --red: #A1352A; --green: #45632F; --amber: #865A0E;
}
/* Navy Workshop (neutral) */
[data-theme="workshop"] {
  --bg: #F1EEE6; --grid: rgba(21, 28, 39, .065); --surface: #FCFBF7; --surface-2: #E9E5DA; --hair: #DDD8CB;
  --ink: #151C27; --ink-2: #36404F; --muted: #545D6C; --line: #151C27; --edge: #151C27;
  --primary: #22344F; --on-primary: #FCFBF7; --band: #22344F; --band-2: #1D2D45; --on-band: #F1EEE6; --hand-ink: #A5452F;
  --pink: #D99C8A; --lime: #B8B98F; --sky: #9FB3CC; --butter: #D8C99B; --lilac: #ABA9C2; --tangerine: #C77452; --mint: #A3BFB1; --inkc: #B5BCC8; --on-sticker: #151C27;
  --red: #A5372A; --green: #3C6646; --amber: #8A5C10;
}
/* Graphite (neutral, dark) */
[data-theme="graphite"] {
  --bg: #1C1D1F; --grid: rgba(236, 234, 229, .045); --surface: #26282B; --surface-2: #2F3236; --hair: #3B3E43;
  --ink: #ECEAE5; --ink-2: #D2CEC5; --muted: #A9A59C; --line: #8E8A82; --edge: #0A0A0B;
  --primary: #D9A93A; --on-primary: #1C1D1F; --band: #2F3236; --band-2: #35383D; --on-band: #ECEAE5; --hand-ink: #E0B451;
  --pink: #C98F7E; --lime: #A9B87A; --sky: #8FA3B8; --butter: #D9A93A; --lilac: #A6A0BD; --tangerine: #D08A55; --mint: #8FB3A8; --inkc: #8E8A82; --on-sticker: #1C1D1F;
  --red: #F08A7E; --green: #9CCB8F; --amber: #E8B95A;
  --note-mix: 22%; --tint: 20%; --tint-hi: 26%;
  --shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 14px 26px -16px rgba(0, 0, 0, .85); --lift: 0 2px 2px rgba(0, 0, 0, .35), 0 18px 30px -16px rgba(0, 0, 0, .9);
}
/* Colour roles: anything with .c-x gets --c; notes get a paler mix of it */
.c-pink { --c: var(--pink); } .c-lime { --c: var(--lime); } .c-sky { --c: var(--sky); } .c-butter { --c: var(--butter); } .c-lilac { --c: var(--lilac); } .c-tangerine { --c: var(--tangerine); } .c-mint { --c: var(--mint); } .c-ink { --c: var(--inkc); }
.n-pink { --nc: var(--pink); } .n-lime { --nc: var(--lime); } .n-sky { --nc: var(--sky); } .n-butter { --nc: var(--butter); } .n-lilac { --nc: var(--lilac); } .n-tangerine { --nc: var(--tangerine); } .n-mint { --nc: var(--mint); } .n-white { --nc: var(--surface); }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body { margin: 0; overflow-x: clip; background-color: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--display); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--cell) var(--cell); background-attachment: fixed; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; margin: 0; line-height: 1.02; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
h2 em, h3 em, .sub em { font-style: normal; font-weight: 800; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--pink) 75%, transparent) 58% 92%, transparent 92%); padding: 0 .1em; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2.5px 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: .84rem; }
.center { text-align: center; justify-content: center; }
.ic { width: 18px; height: 18px; flex: none; }
.label { font: 700 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--hand-ink); }
.pos { color: var(--green); } .neg { color: var(--red); }
kbd { font: 700 .72rem var(--mono); padding: .05rem .35rem; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface); }
mark { color: var(--on-sticker); background: transparent; }
[class*="hl-"] { background: linear-gradient(transparent 52%, var(--c) 52% 94%, transparent 94%); padding: 0 .08em; border-radius: 2px; color: var(--ink); }
.hl-pink { --c: var(--pink); } .hl-lime { --c: var(--lime); } .hl-sky { --c: var(--sky); } .hl-butter { --c: var(--butter); } .hl-lilac { --c: var(--lilac); } .hl-tangerine { --c: var(--tangerine); } .hl-mint { --c: var(--mint); }
[data-theme="nightowl"] [class*="hl-"], [data-theme="graphite"] [class*="hl-"] { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--c) 60%, transparent) 60% 94%, transparent 94%); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .45rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 700 .86rem/1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--edge); transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--edge); }
.btn .ic { width: 17px; height: 17px; }
.btn.solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: 2px 2px 0 var(--edge); }
[data-theme="nightowl"] .btn.solid, [data-theme="graphite"] .btn.solid { border-color: var(--primary); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.btn.danger { color: var(--red); border-color: currentColor; background: transparent; box-shadow: none; }
.btn.sm { min-height: 34px; padding: .3rem .75rem; font-size: .78rem; box-shadow: 1.5px 1.5px 0 var(--edge); }
.btn.sm.ghost, .btn.sm.danger { box-shadow: none; }
.btn.big { min-height: 56px; padding: .6rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid transparent; border-radius: var(--r-sm); background: none; cursor: pointer; color: inherit; flex: none; text-decoration: none; }
.icon-btn:hover { border-color: var(--line); background: var(--surface); }
.icon-btn[aria-current="page"] { border-color: var(--line); background: var(--butter); color: var(--on-sticker); }
.icon-btn.outlined { border-color: var(--line); background: var(--surface); }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .84rem; }
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.link-row { all: unset; box-sizing: border-box; cursor: pointer; min-width: 0; }
.link-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.link-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.field { display: grid; gap: .35rem; align-content: start; }
.field > span, .field-l { font: 700 .68rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field small { font-size: .74rem; }
.input { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1.5px 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(--sky) 70%, transparent); }
.input::placeholder { color: var(--muted); opacity: .85; }
input[type="date"].input, input[type="time"].input { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
.right { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { width: 100%; margin-bottom: .45rem; float: left; }
.chips legend + * { clear: left; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .3rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; font: 700 .78rem/1.2 var(--display); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.chip.sm { min-height: 28px; padding: .15rem .6rem; font-size: .72rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip[aria-pressed="true"], .chip.on { background: var(--butter); color: var(--on-sticker); border-color: var(--line); box-shadow: 1.5px 1.5px 0 var(--edge); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip .ic { width: 14px; height: 14px; }
.chip small { font-weight: 400; opacity: .75; }
.chip-date { width: auto; min-height: 34px; padding: .2rem .6rem; border-radius: 999px; }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-size: .9rem; }
.switch input { appearance: none; width: 46px; height: 27px; border: 1.5px 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: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: left .18s; }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { left: 22px; background: var(--on-sticker); }
.switch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.color-pick { display: flex; gap: .45rem; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.color-pick legend { width: 100%; margin-bottom: .45rem; float: left; }
.color-pick legend + * { clear: left; }
.cp { position: relative; cursor: pointer; }
.cp input { position: absolute; opacity: 0; }
.cp i { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--line); }
.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; }
.error-text { color: var(--red); font-size: .86rem; }

/* ---------- Shell ---------- */
.demo-band { background: var(--ink); color: var(--bg); font: 700 .74rem/1.4 var(--mono); text-align: center; padding: .45rem 1rem; }
.demo-band a { color: inherit; }
.side { display: none; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand b { display: block; font: 800 1.45rem/1 var(--display); letter-spacing: -.03em; }
.brand small { display: block; font: 700 .6rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1.5px solid var(--line); border-radius: 10px; background: var(--pink); color: var(--on-sticker);
  font: 800 1.35rem/1 var(--display); transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--edge); position: relative; }
.logo::after { content: ""; position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--line); }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .55rem 1.4rem; }
.top-tools { display: flex; gap: .35rem; align-items: center; margin-left: auto; }
.tabbar { display: none; }
main { max-width: 1240px; margin: 0 auto; padding: 0 1.6rem 6rem; }
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: var(--on-sticker); border: 1.5px solid var(--line); font: 700 .66rem/1 var(--mono); font-style: normal; }
@media (min-width: 1100px) {
  .side { display: flex; flex-direction: column; gap: 1rem; position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 1.2rem 1rem 1rem; overflow-y: auto; background: var(--surface); border-right: 1.5px solid var(--line); z-index: 30; }
  .side .brand { padding: .2rem .3rem .4rem; }
  .side-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .side-cta .btn { padding: .4rem .5rem; font-size: .8rem; }
  .side nav { display: grid; gap: .9rem; }
  .side-group { display: grid; gap: 1px; }
  .side-group .label { padding: 0 .55rem .25rem; color: var(--muted); }
  .side a[data-nav] { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .42rem .55rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1.5px solid transparent; }
  .side a[data-nav]:hover { background: var(--surface-2); }
  .side a[data-nav][aria-current="page"] { background: var(--butter); color: var(--on-sticker); border-color: var(--line); box-shadow: 2px 2px 0 var(--edge); }
  .side a[data-nav] small { font: 700 .6rem var(--mono); color: var(--muted); }
  .side a[aria-current="page"] small { color: inherit; opacity: .7; }
  .side-foot { margin-top: auto; display: grid; gap: 1px; padding-top: .8rem; border-top: 1.5px dashed var(--hair); }
  .main-col { margin-left: var(--side); }
  .top .brand, .top .top-tools .btn { display: none; }
}
@media (max-width: 1099px) {
  .top-tools .btn span { display: none; }
  .top-tools .btn { padding: .3rem .6rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--surface); border-top: 1.5px solid var(--line); padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { all: unset; position: relative; display: grid; justify-items: center; gap: 2px; padding: .35rem 0; font: 700 .64rem/1.2 var(--display); cursor: pointer; color: var(--muted); border-radius: 10px; }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar [aria-current="page"] { color: var(--on-sticker); background: var(--butter); }
  .tabbar .nbadge { position: absolute; top: 0; left: 56%; min-width: 17px; height: 17px; font-size: .58rem; }
  main { padding: 0 1rem calc(96px + env(safe-area-inset-bottom)); }
}
.more-label { margin: 1.1rem 0 .5rem; }
.more-label:first-child { margin-top: 0; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.more-grid a { position: relative; display: grid; justify-items: center; gap: .4rem; padding: .9rem .4rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 700; font-size: .78rem; text-align: center; background: var(--surface); }
.more-grid a .ic { width: 24px; height: 24px; }
.more-grid .nbadge { position: absolute; top: 6px; right: 6px; }
#dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; gap: .45rem; align-items: center; padding: .4rem .45rem .4rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; font-weight: 600; max-width: calc(100vw - 20px); box-shadow: 3px 3px 0 var(--edge); }
#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; max-width: 22ch; }
#dock .ic { width: 16px; height: 16px; }
#dock b { font: 700 .95rem/1 var(--mono); }
.dock-sep { width: 1.5px; height: 20px; background: var(--hair); }
@media (max-width: 1099px) { #dock { right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Page head: tags, a heavy title with a highlighter swipe, a handwritten aside ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "tags tags" "title side" "hand side"; gap: .3rem 2.5rem; align-items: end; padding: 2.2rem 0 1.6rem; }
.ph-tags { grid-area: tags; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; margin-bottom: .6rem; }
.page-head h1 { grid-area: title; }
.ph-hand { grid-area: hand; margin: .35rem 0 0 .2rem; transform: rotate(-2deg); transform-origin: left; font-size: 1.75rem; }
.ph-side { grid-area: side; display: grid; gap: .9rem; align-self: end; }
.ph-side .lede { margin: 0; color: var(--ink-2); max-width: 60ch; }
.ph-no { font: 700 .74rem/1 var(--mono); padding: .42rem .55rem; border: 1.5px dashed var(--line); border-radius: 4px; margin-right: .6rem; background: var(--surface); }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.head-actions.center { justify-content: center; }
@media (max-width: 860px) { .page-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tags" "title" "hand" "side"; padding: 1.5rem 0 1.2rem; } .ph-side { margin-top: .8rem; } }
.sticker { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .62rem; background: var(--c, var(--pink)); color: var(--on-sticker); font: 700 .74rem/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 1px 1px 0 color-mix(in srgb, var(--edge) 35%, transparent); transform: rotate(-2deg); }
.sticker .ic { width: 14px; height: 14px; }
.sticker.k0 { transform: rotate(-3deg); }
.sticker.k1 { transform: rotate(2deg) translate(-4px, 5px); }
.sticker.corner { position: absolute; top: -12px; right: 14px; }
.s-pink { --c: var(--pink); } .s-lime { --c: var(--lime); } .s-sky { --c: var(--sky); } .s-butter { --c: var(--butter); } .s-lilac { --c: var(--lilac); } .s-tangerine { --c: var(--tangerine); } .s-mint { --c: var(--mint); } .s-ink { --c: var(--inkc); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.band + .tabs { margin-top: 1.6rem; }
.tabs a { display: inline-flex; gap: .4rem; align-items: center; padding: .5rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; border-bottom-width: 3px; font-weight: 700; font-size: .86rem; text-decoration: none; background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--sky); color: var(--on-sticker); }
.tab-n { font: 700 .66rem var(--mono); font-style: normal; padding: .08rem .4rem; border-radius: 999px; background: var(--pink); color: var(--on-sticker); }
.back-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: 1.4rem; font-weight: 700; font-size: .84rem; text-decoration: none; }

/* ---------- Cards, notes, pins, tape ---------- */
.card { position: relative; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.2rem 1.3rem; min-width: 0; box-shadow: var(--shadow); }
.card.paper { background-image: linear-gradient(90deg, transparent 2.2rem, color-mix(in srgb, var(--pink) 70%, transparent) 2.2rem 2.35rem, transparent 2.35rem); padding-left: 3rem; }
.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: .3rem; }
.note { position: relative; padding: 1.3rem 1.2rem 1.1rem; background: color-mix(in srgb, var(--nc, var(--butter)) var(--note-mix), var(--surface)); border-radius: 3px; box-shadow: var(--shadow); min-width: 0; }
.note.n-white { background: var(--surface); }
.note > .hand:first-of-type, .note > h3.hand { margin: 0 0 .5rem; color: var(--ink); font-size: 1.7rem; }
.note ul, .note ol { padding-left: 1.1rem; margin: .2rem 0 .8rem; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(1.6deg); } .tilt-l2 { transform: rotate(-.8deg); } .tilt-r2 { transform: rotate(2.4deg); }
.pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .85) 0 2.5px, transparent 3.5px), var(--c, var(--pink)); border: 1.5px solid var(--edge);
  box-shadow: 1px 3px 3px rgba(0, 0, 0, .25); }
.tape { position: absolute; z-index: 2; width: 86px; height: 24px; top: -11px; left: 18px; transform: rotate(-6deg);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--sky) 65%, transparent) 0 7px, color-mix(in srgb, var(--surface) 55%, transparent) 7px 14px);
  clip-path: polygon(0 12%, 4% 0, 30% 6%, 62% 0, 96% 5%, 100% 0, 97% 50%, 100% 100%, 70% 94%, 35% 100%, 4% 93%, 0 100%, 3% 50%);
  opacity: .92; }
.tape.tr { left: auto; right: 18px; transform: rotate(7deg); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--pink) 70%, transparent) 0 7px, color-mix(in srgb, var(--surface) 55%, transparent) 7px 14px); }
.tape.br { top: auto; bottom: -10px; left: auto; right: 22px; transform: rotate(-4deg); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--lime) 75%, transparent) 0 6px, color-mix(in srgb, var(--surface) 60%, transparent) 6px 12px); }
.tape.mid { left: 50%; margin-left: -43px; transform: rotate(-2deg); background: color-mix(in srgb, var(--c, var(--butter)) 80%, transparent); }
.grid { display: grid; gap: 1.3rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 1.3rem; align-content: start; min-width: 0; }
@media (max-width: 960px) { .g2, .g-main { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 1.6rem; }
.sub { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 .9rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.sub small { font: 400 .84rem var(--display); letter-spacing: 0; }
.empty { padding: 1.6rem 1rem; text-align: center; border: 2px dashed color-mix(in srgb, var(--line) 45%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.empty .hand { font-size: 1.9rem; margin-bottom: .3rem; color: var(--ink); }
.empty p:not(.hand) { color: var(--muted); margin: 0 auto .9rem; max-width: 46ch; font-size: .9rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1.5px dashed var(--hair); min-width: 0; flex-wrap: wrap; }
.rows li:last-child { border-bottom: 0; }
.rows .what { flex: 1 1 12rem; min-width: 0; display: grid; }
.rows .what small { color: var(--muted); font-size: .78rem; }
.rows .date { font: 700 .74rem var(--mono); color: var(--muted); min-width: 4.4rem; }
.rows .acts { display: flex; gap: .3rem; }
.rows li.flag { background: color-mix(in srgb, var(--pink) 20%, transparent); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 6px; }
.mini-list { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .3rem; font-size: .86rem; }
.mini-list li { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.mini-list .ic { width: 15px; height: 15px; }
.legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; font-size: .76rem; color: var(--muted); margin-top: .6rem; }
.legend span { display: inline-flex; gap: .35rem; align-items: center; }
.legend .ic { width: 15px; height: 15px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--hair)); border: 1.5px solid var(--line); flex: none; }
.bar { position: relative; height: 12px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; background: var(--c, var(--lime)); border-right: 1.5px solid var(--line); }
.pring-wrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.pring { display: block; }
.pring-wrap .pring-t { position: absolute; font: 700 .95rem var(--mono); }
.pr-bg { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.pr-fg { fill: none; stroke: var(--c, var(--lime)); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .6s; }
/* The stats band: a ticket stub with perforated ends */
.band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.4rem; background: var(--band); color: var(--on-band); border-radius: 6px; padding: .4rem 1.2rem; position: relative;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.band-i { display: grid; gap: .1rem; padding: .85rem .8rem; text-decoration: none; text-align: center; min-width: 0; }
.band-i + .band-i { border-left: 2px dashed color-mix(in srgb, var(--on-band) 35%, transparent); }
.band-i b { font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1 var(--display); letter-spacing: -.03em; }
.band-i small { font: 700 .66rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
a.band-i:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 700px) { .band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .band-i:nth-child(3) { border-left: 0; } .band-i:nth-child(n+3) { border-top: 2px dashed color-mix(in srgb, var(--on-band) 35%, transparent); } }
.alert { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; margin-bottom: 1.2rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--butter) var(--tint-hi), var(--surface)); font-weight: 600; flex-wrap: wrap; }
.alert.crash { background: color-mix(in srgb, var(--pink) var(--tint-hi), var(--surface)); }
.alert span { flex: 1 1 14rem; }
.later { margin-top: 1rem; }
.later summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.later .tasks { margin-top: .5rem; }
.spiral { display: flex; justify-content: space-around; position: absolute; left: 1.2rem; right: 1.2rem; top: -12px; height: 26px; pointer-events: none; }
.spiral i { width: 11px; height: 26px; border-radius: 6px; border: 2.5px solid var(--ink-2); background: linear-gradient(90deg, var(--surface-2), var(--surface)); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-ax { fill: var(--muted); font: 700 11px var(--mono); }
.ch-bar { fill: var(--c); stroke: var(--line); stroke-width: 1.5; }

/* ---------- Modal, toast, confetti ---------- */
dialog#modal { border: 1.5px solid var(--line); padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink); width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: 5px 5px 0 var(--edge); }
dialog#modal.narrow { width: min(470px, calc(100vw - 24px)); }
dialog#modal[open] { animation: popin .22s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.97) rotate(-.6deg); } }
dialog#modal::backdrop { background: color-mix(in srgb, #15121f 50%, 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: 1.6rem; }
.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: 1.5px dashed var(--hair); flex-wrap: wrap; }
.modal-foot .right { margin-left: auto; }
@media (max-width: 600px) { dialog#modal, dialog#modal.narrow { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; box-shadow: none; } .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.8rem + env(safe-area-inset-bottom)); } }
.toast { background: var(--ink); color: var(--surface); padding: .7rem 1.1rem; border-radius: 10px; font-size: .88rem; font-weight: 600; display: flex; gap: 1rem; align-items: center; animation: popin .2s ease; box-shadow: 3px 3px 0 var(--pink); }
.toast.err { background: var(--red); color: #fff; box-shadow: none; }
.toast button { all: unset; cursor: pointer; font-weight: 800; 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: 9px; height: 6px; border-radius: 1px; animation: confetti .85s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 30px)) rotate(var(--r)); opacity: 0; } }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.6rem; border-right: 1.5px solid var(--line); overflow: hidden; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.aa-title { font-size: clamp(4.5rem, 11vw, 9rem); line-height: .9; letter-spacing: -.05em; }
.aa-title .hand { display: block; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: 0; transform: rotate(-3deg); margin: .4rem 0 0 .4rem; }
.aa-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: 640px; align-items: start; }
.aa-notes .note { font-size: .86rem; }
.aa-notes .note .hand { font-size: 1.35rem; }
.aa-notes li.done { text-decoration: line-through; opacity: .7; }
.aa-foot { font-size: 1.05rem; margin: 0; max-width: 34ch; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(390px, 100%); display: grid; gap: 1rem; }
.auth-card h2 { font-size: 2.2rem; }
.key-input { letter-spacing: .2em; text-transform: uppercase; text-align: center; font: 700 1.05rem var(--mono); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { border-right: 0; border-bottom: 1.5px solid var(--line); padding: 1.6rem 1.2rem; } .aa-notes, .aa-foot { display: none; } .aa-title { font-size: 4.4rem; } }
.boot { min-height: 100vh; display: grid; place-items: center; font: 800 2.6rem var(--display); letter-spacing: -.04em; }

/* ---------- Tutorial ---------- */
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: .9rem; }
.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: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.tour-card:hover { background: var(--surface-2); }
.tour-card:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.tour-card.first { grid-column: 1 / -1; background: var(--butter); color: var(--on-sticker); }
.tour-card strong { display: block; font: 800 1.15rem/1.15 var(--display); }
.tour-card small { font-size: .8rem; }
.tour-card > .ic { width: 38px; height: 38px; padding: 10px; border: 1.5px 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: 8px; box-shadow: 0 0 0 9999px color-mix(in srgb, #15121f 58%, transparent); outline: 3px dashed var(--butter); 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: 1.5px solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--edge); 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.35rem; }
#tour .tour-box p { margin: 0; font-size: .9rem; 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: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.tour-dots i.on { background: var(--ink); width: 18px; border-radius: 4px; } .tour-dots i.done { background: var(--lime); }
.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-top: 1.4rem; background: color-mix(in srgb, var(--lime) var(--tint), var(--surface)); }
.tour-offer > div:not(.head-actions) { flex: 1 1 16rem; }
.tour-offer b { font: 800 1.2rem/1.1 var(--display); }

/* =====================================================================
   Modules
   ===================================================================== */
/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding: 2.2rem 0 1.4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero-l .ph-tags { margin-bottom: .8rem; }
.hero-hand { margin: .4rem 0 0 .2rem; transform: rotate(-2deg); transform-origin: left; font-size: 1.8rem; }
.hero-dump { position: relative; padding: 1.3rem 1.2rem 1rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); display: grid; gap: .6rem; }
.hero-dump label.hand { color: var(--ink); font-size: 1.5rem; }
.dump-row { display: flex; gap: .5rem; }
.dump-row .input { flex: 1; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; } }
.energy-card { margin-top: .4rem; }
.energy-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.etag { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: .1rem .7rem; align-items: center; padding: 1rem 1.1rem 1rem 2.6rem;
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); border: 1.5px solid var(--line); border-radius: 8px 18px 18px 8px; transition: transform .15s, background .15s; }
.etag .hole { position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); }
.etag .ic { grid-row: 1 / span 2; width: 26px; height: 26px; }
.etag b { font: 800 1.1rem/1.1 var(--display); }
.etag small { grid-column: 2; font-size: .8rem; color: var(--ink-2); }
.etag:hover { transform: translateY(-2px) rotate(-.6deg); }
.etag[aria-pressed="true"] { background: var(--c); color: var(--on-sticker); transform: rotate(-1.2deg); box-shadow: 3px 3px 0 var(--edge); border-width: 2px; }
.etag[aria-pressed="true"] small { color: var(--on-sticker); }
.etag:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.energy-pick.compact .etag { padding: .7rem .8rem .7rem 2.3rem; }
@media (max-width: 700px) { .energy-pick { grid-template-columns: minmax(0, 1fr); gap: .6rem; } .etag small { display: none; } .etag { padding: .8rem 1rem .8rem 2.5rem; } }
.ewk { display: flex; gap: .35rem; }
.ewk-d { display: grid; justify-items: center; gap: .15rem; }
.ewk-d i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--c, transparent); }
.ewk-d small { font: 700 .62rem var(--mono); color: var(--muted); }
.ewk-d.is-today i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; padding: .45rem 0; border-bottom: 1.5px dashed var(--hair); }
.task:last-child { border-bottom: 0; }
.task-t { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .2rem; min-width: 0; }
.task-t > span { font-weight: 600; overflow-wrap: anywhere; }
.task-t small { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .76rem; }
.task-t:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.task.done .task-t > span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.tasks.dim .task { opacity: .7; }
.tasks.mini .task { padding: .3rem 0; }
.tick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); flex: none; transition: transform .15s; }
.tick .ic { width: 17px; height: 17px; opacity: 0; transform: scale(.4) rotate(-20deg); transition: .18s; }
.tick:hover .ic { opacity: .3; transform: none; }
.tick[aria-pressed="true"], .tick.pop-tick { background: var(--lime); }
.tick[aria-pressed="true"] .ic, .tick.pop-tick .ic { opacity: 1; transform: none; color: var(--on-sticker); }
.tick.pop-tick { transform: scale(1.15) rotate(-6deg); }
.tick.sm { width: 24px; height: 24px; border-radius: 6px; } .tick.sm .ic { width: 14px; height: 14px; }
.tick.big { width: 44px; height: 44px; border-radius: 12px; } .tick.big .ic { width: 22px; height: 22px; opacity: .55; transform: none; }
.tick:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.ltag { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .5rem .08rem .7rem; font: 700 .62rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--on-sticker);
  background: var(--c, var(--hair)); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.l-low { --c: var(--pink); } .l-standard { --c: var(--sky); } .l-hyper { --c: var(--lime); } .l-none { --c: var(--surface-2); color: var(--muted); }
.nudges ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.nudges li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .55rem; align-items: center; font-size: .88rem; }
.nudges li > .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c); color: var(--on-sticker); border: 1.5px solid var(--line); }
.nudges li a { font-weight: 800; font-size: .78rem; white-space: nowrap; }
.sos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sos-b { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; padding: .8rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); transition: transform .12s; text-decoration: none; }
.sos-b:hover { transform: rotate(-1deg) translateY(-1px); }
.sos-b .ic { width: 22px; height: 22px; }
.sos-b b { font-size: .9rem; line-height: 1.2; }
.sos-b small { font-size: .74rem; color: var(--ink-2); }
.sos-b:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.preset-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.preset { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: .3rem; padding: .75rem .4rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: center; font-weight: 700; font-size: .8rem; }
.preset .ic { width: 24px; height: 24px; }
.preset small { font-weight: 400; font-size: .7rem; color: var(--muted); }
.preset.on { background: var(--lime); color: var(--on-sticker); box-shadow: 2px 2px 0 var(--edge); }
.preset.on small { color: var(--on-sticker); }
.preset:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.preset-row.big .preset { padding: 1.1rem .5rem; font-size: .95rem; }
.preset-row.big .ic { width: 30px; height: 30px; }
@media (max-width: 600px) { .preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.special { text-align: center; padding: 1.8rem 1.2rem 1.4rem; margin: .6rem 0 .2rem; }
.special-t { font-size: 2.2rem !important; color: var(--ink) !important; margin: .4rem 0 !important; }

/* 2. Brain dump */
.notebook { position: relative; padding: 2rem 1.4rem 1.2rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); }
.notebook h2.hand { font-size: 1.9rem; color: var(--ink); margin-bottom: .2rem; }
.ruled-page { display: block; width: 100%; min-height: 280px; resize: vertical; border: 0; outline: 0; padding: 0 0 0 2.4rem; background: transparent; font: 600 1.45rem/2.1rem var(--hand); color: var(--ink);
  background-image: linear-gradient(90deg, transparent 1.6rem, color-mix(in srgb, var(--pink) 75%, transparent) 1.6rem 1.75rem, transparent 1.75rem), repeating-linear-gradient(transparent 0 calc(2.1rem - 1.5px), color-mix(in srgb, var(--sky) 55%, transparent) calc(2.1rem - 1.5px) 2.1rem);
  background-attachment: local; }
.ruled-page:focus { box-shadow: none; }
.ruled-page::placeholder { color: var(--muted); }
.notebook:focus-within { box-shadow: var(--lift), 0 0 0 3px color-mix(in srgb, var(--sky) 60%, transparent); }
.nb-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.inbox-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.inbox-list li { display: flex; justify-content: space-between; gap: .6rem; padding-bottom: .35rem; border-bottom: 1.5px dashed color-mix(in srgb, var(--line) 25%, transparent); font-weight: 600; font-size: .9rem; }
.inbox-list small { color: var(--ink-2); font-weight: 400; white-space: nowrap; font-size: .74rem; }
.textarea.ruled, .input.ruled { font: 600 1.25rem/1.9rem var(--hand); background-image: repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), color-mix(in srgb, var(--sky) 50%, transparent) calc(1.9rem - 1px) 1.9rem); background-attachment: local; padding-top: .3rem; }
.dump-sheet { display: grid; gap: .8rem; }
.sieve { max-width: 760px; margin: 0 auto; display: grid; gap: 1.2rem; justify-items: center; }
.sieve-count { margin: 0; }
.sieve-card { width: min(520px, 100%); min-height: 210px; display: grid; align-content: center; justify-items: center; gap: .6rem; padding: 2rem 1.6rem; text-align: center; transform: rotate(-1deg); box-shadow: var(--lift); }
.sieve-t { font-size: clamp(1.9rem, 4.4vw, 2.6rem) !important; color: var(--ink) !important; margin: 0 !important; overflow-wrap: anywhere; }
.sieve-load { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: .4rem; }
.sieve-btns { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.sv-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: .2rem; padding: 1rem .6rem; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); box-shadow: 2px 2px 0 var(--edge); transition: transform .12s; }
.sv-btn .ic { width: 28px; height: 28px; }
.sv-btn b { font-size: 1.05rem; }
.sv-btn small { font-size: .74rem; color: var(--ink-2); }
.sv-btn:hover { transform: translate(-1px, -2px) rotate(-1deg); }
.sv-btn:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
@media (max-width: 640px) { .sieve-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-when { width: 100%; display: grid; gap: .5rem; justify-items: center; padding: 1rem; border: 1.5px dashed var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--sky) calc(var(--tint) * .6), var(--surface)); }
.sv-when[hidden] { display: none; }
.sv-when .chips { justify-content: center; }
.sieve-foot { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

/* 1. Focus audio */
.layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 520px) { .layers { grid-template-columns: minmax(0, 1fr); } }
.layers li { border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.layers li.on { background: color-mix(in srgb, var(--lime) var(--tint), var(--surface)); }
.layer { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .65rem; align-items: center; width: 100%; padding: .75rem .8rem .3rem; }
.layer .ic { width: 24px; height: 24px; }
.layer b { display: block; font-size: .95rem; }
.layer small { font-size: .74rem; color: var(--muted); line-height: 1.3; display: block; }
.layers li.on .layer small { color: var(--ink-2); }
.layer:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -3px; }
.vol { display: flex; gap: .6rem; align-items: center; padding: .25rem .8rem .65rem; }
.vol .ic { width: 15px; height: 15px; color: var(--muted); }
.vol input { flex: 1; accent-color: var(--ink); min-width: 0; }
.vol.master { padding: 1rem 0 0; }
.timer-card { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.timer-card .card-head { width: 100%; text-align: left; }
.ft-face { position: relative; display: grid; place-items: center; }
.ft-time { position: absolute; font: 700 2.4rem/1 var(--mono); letter-spacing: -.04em; }
.embed { position: relative; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #000; }
.embed.yt { aspect-ratio: 16 / 9; } .embed.spotify { height: 352px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4. Cooldown vault */
.want-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.6rem 1.3rem; padding-top: .6rem; }
.want { display: grid; gap: .7rem; align-content: start; }
.want:nth-child(3n+1) { transform: rotate(-.8deg); } .want:nth-child(3n+2) { transform: rotate(.7deg); }
.want-top { display: flex; gap: .9rem; align-items: center; }
.want-top h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.want-ok .ic { width: 46px; height: 46px; color: var(--green); }
.price { font: 700 1.1rem var(--mono); margin: .2rem 0 0; }
.want-why { font-size: 1.3rem; margin: 0; color: var(--ink-2); }
.want-clock { margin: 0; display: flex; gap: .6rem; align-items: baseline; font: 700 1.2rem var(--mono); }

/* 5. ADHD tax */
.culprits { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.culprits li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: .7rem; align-items: start; }
.culprits .sw { margin-top: .3rem; }
.culprits .what { display: grid; } .culprits .what small { color: var(--muted); font-size: .78rem; }
.leak { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.leak li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: .88rem; }
.subs .sticker { transform: rotate(-3deg); }

/* 6. Dopamine menu */
.menu-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px; padding: 2.2rem clamp(1rem, 4vw, 2.6rem) 2rem; box-shadow: var(--lift); outline: 1.5px solid var(--line); outline-offset: -10px; }
.menu-top { text-align: center; margin-bottom: 1.6rem; }
.menu-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.menu-top .hand { margin: .3rem 0 0; }
.menu-cols { columns: 2 320px; column-gap: 2.6rem; }
.course { break-inside: avoid; margin-bottom: 1.8rem; }
.course-h { display: flex; justify-content: space-between; align-items: center; }
.course-note { margin: .6rem 0 .5rem; }
.dishes { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.dishes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.dish { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: .4rem; padding: .35rem 0; min-width: 0; }
.dish-t { font-weight: 600; }
.dish .dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--line) 50%, transparent); min-width: 1.5rem; transform: translateY(-4px); }
.dish-m { font: 700 .78rem var(--mono); color: var(--ink-2); white-space: nowrap; }
.dish:hover .dish-t { text-decoration: underline; text-underline-offset: 3px; }
.dish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fav p { margin: 0; }

/* 7. Survival mode */
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sv-list li { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.sv-list .what { flex: 1; font-weight: 700; }
.sv-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--on-sticker); font: 700 .8rem var(--mono); border: 1.5px solid var(--line); }
.survival-shell { min-height: 100vh; display: grid; place-items: start center; padding: 1.2rem 1rem 6rem; }
.sv-on { width: min(640px, 100%); display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.sv-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sv-on h1 { font-size: clamp(3rem, 12vw, 5.4rem); margin-top: 1.2rem; }
.sv-hand { font-size: 1.9rem; margin: 0; transform: rotate(-2deg); }
.sv-checks { list-style: none; margin: .4rem 0 0; padding: 0; width: 100%; display: grid; gap: .8rem; }
.sv-check { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; text-align: left; font: 700 1.25rem/1.25 var(--display);
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--edge); transition: transform .12s; }
.sv-check i { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 10px; flex: none; background: var(--surface); }
.sv-check i .ic { width: 24px; height: 24px; opacity: 0; }
.sv-check.on { background: color-mix(in srgb, var(--lime) var(--tint), var(--surface)); }
.sv-check.on span { text-decoration: line-through; text-decoration-thickness: 2px; }
.sv-check.on i { background: var(--lime); } .sv-check.on i .ic { opacity: 1; color: var(--on-sticker); }
.sv-check:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.sv-check:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sv-tools { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* 8. Hyperfixations */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.6rem 1.3rem; padding-top: .6rem; }
.fx { display: grid; gap: .6rem; align-content: start; border-top: 6px solid var(--c); }
.fx-h { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fx-h h3 { flex: 1; font-size: 1.25rem; }
.fx-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--line); }
.fx-spark { font-size: 1.3rem; margin: 0; color: var(--ink-2); }
.fx-wait { display: grid; gap: .3rem; }
.fx-wait small { font-size: .74rem; }
.fx .label { margin: .3rem 0 0; }
.fx-links, .fx-gear { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.fx-links li { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.fx-links a { overflow-wrap: anywhere; }
.fx-links .ic { width: 15px; height: 15px; }
.fx-gear li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.fx-gear li.have span:not(.num) { text-decoration: line-through; color: var(--muted); }
.fx-total { display: flex; justify-content: space-between; padding-top: .4rem; border-top: 1.5px dashed var(--hair); margin: 0; font-weight: 700; }
.graves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.6rem 1.3rem; margin-top: 1.2rem; }
.grave { display: flex; flex-direction: column; align-items: center; }
.stone { flex: 1; width: 92%; padding: 2rem 1.1rem 1.2rem; text-align: center; background: color-mix(in srgb, var(--inkc) 22%, var(--surface)); border: 1.5px solid var(--line); border-radius: 120px 120px 8px 8px; box-shadow: var(--shadow); display: grid; gap: .3rem; }
.stone h3 { font-size: 1.3rem; }
.stone .small { margin: 0; }
.epitaph { font-size: 1.3rem; color: var(--ink-2); margin: .2rem 0; }
.mound { width: 100%; height: 18px; margin-top: -6px; border-radius: 50% 50% 0 0; background: color-mix(in srgb, var(--lime) 55%, var(--surface)); border: 1.5px solid var(--line); border-bottom: 0; }

/* 9. Time reality */
.facts .fact-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.4rem 1.2rem; padding-top: .5rem; }
.fact p { margin: 0; font-size: .95rem; }
.fact:nth-child(odd) { transform: rotate(-1deg); } .fact:nth-child(even) { transform: rotate(1deg); }
.chores { list-style: none; margin: 0; padding: 0; }
.chores li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1.5px dashed var(--hair); }
.chores li:last-child { border-bottom: 0; }
.chores .what { flex: 1 1 14rem; display: grid; }
.chores .what small { color: var(--muted); font-size: .78rem; }
.gvr { display: flex; gap: 1rem; }
.gvr span { display: grid; text-align: right; }
.gvr small { font: 700 .6rem var(--mono); text-transform: uppercase; color: var(--muted); }
.gvr b { font: 700 .95rem var(--mono); }
.gvr-chart { margin-top: 1.4rem; display: grid; gap: .8rem; }
.gvr-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .8rem; align-items: center; }
.gvr-bars { display: grid; gap: 4px; padding-right: 4.2rem; }
.gvr-bars i { display: flex; align-items: center; height: 16px; border: 1.5px solid var(--line); border-radius: 0 6px 6px 0; min-width: 2px; position: relative; }
.gvr-bars i span { position: absolute; left: calc(100% + 6px); font: 700 .7rem var(--mono); white-space: nowrap; }
.gvr-bars i.g, .sw.g { background: repeating-linear-gradient(-45deg, var(--surface-2) 0 4px, var(--hair) 4px 8px); }
.gvr-bars i.a, .sw.a { background: var(--sky); }
@media (max-width: 600px) { .gvr-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.sw-live { text-align: center; display: grid; gap: .4rem; justify-items: center; max-width: 520px; margin: 0 auto 1rem; }
.sw-live h2 { font-size: 1.8rem; }
.sw-clock { font: 700 3.4rem/1 var(--mono); margin: .3rem 0; letter-spacing: -.04em; }

/* 10. Body double */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 2rem 1.3rem; padding-top: 1rem; }
.playbook { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px 4px var(--r) var(--r); box-shadow: var(--shadow); border-top: 10px solid var(--c); }
.playbook .spiral { top: -20px; }
.pb-in { padding: 1.3rem 1.2rem 1.1rem; display: grid; gap: .45rem; }
.pb-in h3 { font-size: 1.35rem; }
.pb-in p { margin: 0; }
.pb-peek { margin: .2rem 0 .5rem; padding-left: 1.2rem; font-size: .88rem; display: grid; gap: .15rem; }
.run { max-width: 700px; margin: 1.6rem auto 0; display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.run-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.run-clock { display: inline-flex; gap: .4rem; align-items: center; font: 700 1rem var(--mono); }
.run-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.run-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.run-dots i.done { background: var(--lime); } .run-dots i.on { background: var(--butter); width: 28px; border-radius: 6px; }
.run-card { width: 100%; min-height: 200px; display: grid; place-items: center; padding: 2.4rem 1.6rem; box-shadow: var(--lift); transform: rotate(-.6deg); }
.run-step { margin: 0; font: 800 clamp(1.8rem, 5vw, 2.8rem)/1.12 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.run-cheer { font-size: 1.7rem; margin: 0; transform: rotate(-2deg); }
.run-btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.run-next { margin: 0; }
.run-foot { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; padding-top: 1rem; border-top: 1.5px dashed var(--hair); width: 100%; }

/* 11. Meds and meals */
.tline { padding: .5rem 0 0; }
.tl-hours { position: relative; height: 18px; margin: 0 14px; }
.tl-hours span { position: absolute; transform: translateX(-50%); font: 700 .66rem var(--mono); color: var(--muted); white-space: nowrap; }
.tl-hours span:first-child { transform: none; } .tl-hours span:last-child { transform: translateX(-100%); }
.tl-track { position: relative; height: 64px; margin: .4rem 14px 0; border: 1.5px solid var(--line); border-radius: 10px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(100% / 18 - 1px), var(--hair) calc(100% / 18 - 1px) calc(100% / 18)); }
.tl-on { position: absolute; top: 10px; height: 16px; background: color-mix(in srgb, var(--lime) 75%, transparent); border: 1.5px solid var(--line); border-radius: 8px; }
.tl-crash { position: absolute; top: 6px; width: 4%; height: 24px; background: repeating-linear-gradient(-45deg, var(--pink) 0 4px, color-mix(in srgb, var(--pink) 35%, transparent) 4px 8px); border: 1.5px solid var(--line); border-radius: 6px; }
.tl-pill, .tl-eat { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.tl-pill { top: 4px; background: var(--lilac); color: var(--on-sticker); } .tl-eat { bottom: 4px; background: var(--butter); color: var(--on-sticker); }
.tl-pill .ic, .tl-eat .ic { width: 15px; height: 15px; }
.tl-now { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 2.5px dashed var(--ink); }
.tl-now span { position: absolute; top: -18px; left: -14px; font: 700 .62rem var(--mono); background: var(--ink); color: var(--surface); padding: 0 .3rem; border-radius: 3px; }
.sw.on { background: color-mix(in srgb, var(--lime) 75%, transparent); } .sw.crash { background: var(--pink); }
.meds { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.meds li { display: flex; gap: .8rem; align-items: center; padding: .5rem; border-radius: var(--r-sm); }
.meds li.taken { background: color-mix(in srgb, var(--lime) 30%, transparent); }
.meds .what { flex: 1; display: grid; }
.meds .what small { color: var(--muted); font-size: .8rem; }
.meds .what b small { color: var(--muted); font-weight: 400; }
.foods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.6rem 1.1rem; padding-top: .6rem; }
.food { display: grid; gap: .4rem; align-content: start; }
.food:nth-child(odd) { transform: rotate(-1deg); } .food:nth-child(3n) { transform: rotate(1.2deg); }
.food.out { opacity: .65; }
.food-t b { font-size: 1.05rem; }
.food p { margin: 0; }

/* 12. Ta-da */
.board { position: relative; }
.corkboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.6rem 1.2rem; padding: 2rem 1.4rem 1.6rem; border: 1.5px solid var(--line); border-radius: var(--r);
  background-color: color-mix(in srgb, var(--butter) 30%, var(--surface));
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--butter) 45%, transparent) 50%, transparent 50%), linear-gradient(color-mix(in srgb, var(--butter) 45%, transparent) 50%, transparent 50%); background-size: 28px 28px; }
.tada-note { min-height: 120px; display: grid; align-content: start; gap: .3rem; }
.tada-note .hand { font-size: 1.45rem !important; color: var(--ink) !important; overflow-wrap: anywhere; }
.tada-note .small { margin: 0; }
.tada-note.size-huge { grid-column: span 2; }
.tada-note.size-huge .hand { font-size: 1.9rem !important; }
@media (max-width: 520px) { .tada-note.size-huge { grid-column: auto; } }
.tada-note .del { position: absolute; top: 4px; right: 4px; opacity: 0; }
.tada-note:hover .del, .tada-note .del:focus-visible { opacity: 1; }
@media (hover: none) { .tada-note .del { opacity: .6; } }
.wk-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; height: 170px; align-items: end; }
.wk-b { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; gap: .3rem; text-align: center; }
.wk-b i { align-self: end; display: grid; align-content: start; justify-items: center; min-height: 4px; background: var(--sky); border: 1.5px solid var(--line); border-radius: 6px 6px 2px 2px; }
.wk-b.is-today i { background: var(--lime); }
.wk-b b { font: 700 .76rem var(--mono); padding-top: .2rem; color: var(--on-sticker); }
.wk-b small { font: 700 .66rem var(--mono); color: var(--muted); }
.days { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }

/* 13. Rolodex */
.rolodex { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.4rem 1.1rem; padding-top: .9rem; }
.rdx { position: relative; }
.rdx-tab { position: absolute; top: -16px; left: 16px; display: grid; place-items: center; min-width: 46px; height: 22px; padding: 0 .5rem; background: var(--c); color: var(--on-sticker); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; font: 700 .78rem var(--mono); }
.rdx-in { background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 1rem 1.1rem .9rem; box-shadow: var(--shadow); display: grid; gap: .5rem;
  background-image: repeating-linear-gradient(transparent 0 25px, color-mix(in srgb, var(--sky) 30%, transparent) 25px 26px); background-position: 0 2.6rem; }
.rdx-in header { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.rdx-in h3 { font-size: 1.2rem; }
.rdx-in header small { color: var(--muted); font-size: .8rem; }
.rdx-in header .sticker { margin-left: auto; }
.rdx-in p { margin: 0; }
.st-due .rdx-in { box-shadow: var(--shadow), inset 4px 0 0 var(--pink); }
.st-soon .rdx-in { box-shadow: var(--shadow), inset 4px 0 0 var(--butter); }
.hand-tip { font-style: italic; }
.ideas ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ideas li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.ideas li .ic { width: 16px; height: 16px; margin-top: .2rem; }

/* 14. Doom boxes */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 2.4rem 1.4rem; padding-top: 1.6rem; }
.cbox { position: relative; display: block; text-decoration: none; transition: transform .15s; }
.cbox:hover { transform: rotate(-1.4deg) translateY(-2px); }
.cbox:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 4px; }
.flaps { position: absolute; left: 0; right: 0; top: -22px; height: 26px; display: flex; }
.flaps i { flex: 1; background: color-mix(in srgb, #C89B66 70%, var(--surface)); border: 1.5px solid var(--line); }
.flaps i:first-child { transform: skewX(-24deg) translateX(10px); transform-origin: bottom; }
.flaps i:last-child { transform: skewX(24deg) translateX(-10px); transform-origin: bottom; }
.cbox-body { position: relative; display: grid; gap: .25rem; min-height: 150px; padding: 1.6rem 1.1rem 1rem; background: color-mix(in srgb, #C89B66 62%, var(--surface)); border: 1.5px solid var(--line); border-radius: 0 0 6px 6px; box-shadow: var(--shadow); color: #2B2117; }
[data-theme="nightowl"] .cbox-body, [data-theme="graphite"] .cbox-body { background: color-mix(in srgb, #C89B66 30%, var(--surface)); color: var(--ink); }
[data-theme="nightowl"] .flaps i, [data-theme="graphite"] .flaps i { background: color-mix(in srgb, #C89B66 38%, var(--surface)); }
.cbox-body b { font: 800 1.15rem/1.15 var(--display); margin-top: .4rem; }
.cbox-body small { font-size: .8rem; opacity: .85; }
.cbox-p { display: inline-flex; gap: .35rem; align-items: center; margin-top: auto; font: 700 .72rem var(--mono); }
.cbox-p .ic { width: 15px; height: 15px; }
.cbox.cleared { opacity: .72; }
.bx-items { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.bx-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .8rem; align-items: center; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.bx-items .what { font-weight: 700; }
.bx-items .fates { grid-column: 1 / -1; grid-row: 2; display: flex; gap: .3rem; flex-wrap: wrap; }
.bx-items .btn { grid-column: 2; grid-row: 1; }
.sprint .hand { font-size: 1.8rem; }
.sprint-clock { font: 700 3.2rem/1 var(--mono); letter-spacing: -.04em; margin: .2rem 0 .5rem; }
.dump { display: flex; gap: .5rem; }
.dump .input { flex: 1; min-width: 0; }

/* 15. Body check */
.barometer { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.4rem 1.2rem; }
.bq { border: 0; margin: 0; display: grid; gap: .7rem; align-content: start; transition: transform .15s; }
.bq.answered { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--lime) 85%, transparent); }
.bq legend { float: left; width: 100%; display: flex; gap: .6rem; align-items: center; font: 700 1rem/1.25 var(--display); }
.bq legend + * { clear: left; }
.bq-n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--mint); color: var(--on-sticker); border: 1.5px solid var(--line); font: 700 .74rem var(--mono); }
.bq-opts { display: flex; gap: .4rem; flex-wrap: wrap; }
.bq-o { position: relative; cursor: pointer; }
.bq-o input { position: absolute; opacity: 0; }
.bq-o span { display: inline-flex; min-height: 40px; align-items: center; padding: .35rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .86rem; }
.bq-o input:checked + span { box-shadow: 2px 2px 0 var(--edge); }
.bq-o.ok input:checked + span { background: var(--lime); color: var(--on-sticker); }
.bq-o.flag input:checked + span { background: var(--pink); color: var(--on-sticker); }
.bq-o input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.bq-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 0; }
.needs { max-width: 680px; }
.needs h2.hand { font-size: 2rem; color: var(--ink); margin-bottom: .6rem; }
.needs ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.needs li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.needs li span { flex: 1; }
.pattern { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.pattern li { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: .7rem; align-items: center; font-size: .86rem; }
@media (max-width: 520px) { .pattern li { grid-template-columns: minmax(0, 1fr) auto; } .pattern .bar { grid-column: 1 / -1; grid-row: 2; } }

/* Settings */
.settings { display: grid; gap: 1.3rem; max-width: 960px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.theme-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .45rem; padding: .6rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.theme-opt[aria-pressed="true"] { box-shadow: 3px 3px 0 var(--edge); background: var(--surface-2); outline: 2.5px solid var(--ink); }
.theme-opt:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.theme-sw { display: flex; height: 42px; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; }
.theme-sw i { flex: 1; }
.theme-opt b { font-size: .95rem; }
.theme-opt small { font-size: .72rem; color: var(--muted); }

/* ---------- Tidy mode: straight edges, no tape, pins or tilt ---------- */
html.tidy .tape, html.tidy .pin, html.tidy .spiral { display: none; }
html.tidy .note, html.tidy .sticker, html.tidy .etag, html.tidy .want, html.tidy .fact, html.tidy .food, html.tidy .sieve-card, html.tidy .run-card, html.tidy .logo, html.tidy [class*="tilt-"], html.tidy .ph-hand, html.tidy .hero-hand { transform: none !important; }
html.tidy .sticker.k1 { margin-left: .3rem; }
html.tidy body { background-image: none; }
html.tidy .hand { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
html.tidy .note > .hand:first-of-type, html.tidy .note > h3.hand { font-size: 1.15rem; }
html.tidy .page-head .ph-hand, html.tidy .hero-hand { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
html.tidy .note { border: 1.5px solid var(--line); }
html.tidy .corkboard { background-image: none; }
html.tidy .card.paper { background-image: none; padding-left: 1.3rem; }
html.tidy .ruled-page { font: 500 1.05rem/2.1rem var(--display); }

/* ---------- Calm mode ---------- */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .side, .top, .tabbar, #dock, .demo-band { display: none !important; } .main-col { margin: 0 !important; } body { background: #fff; } }
html.tidy .tada-note .hand, html.tidy .special-t, html.tidy .want-why, html.tidy .fx-spark, html.tidy .epitaph { font-size: 1.05rem !important; }
html.tidy .sieve-t { font-size: 1.6rem !important; }
