/* =====================================================================
   HELM — the all-in-one life planner
   A calm, Notion-style workspace: white pages, a serif page title with
   a page icon, a row of hub links, soft coloured callouts, database-style
   section headers, tags, view tabs, gallery cards and a flip clock.
   Lora for titles, Inter for everything you read, Cormorant Garamond for
   the planner covers and Pinyon Script for the quote card.
   ===================================================================== */
:root, [data-theme="helm"] {
  --cream: #FFFFFF; --paper: #FFFFFF; --paper2: #F7F7F5; --paper3: #EFEFED; --grid: transparent;
  --ink: #37352F; --ink2: #787774; --ink3: #8E8B85; --hair: #E9E9E7;
  --blush: #F5D9E5; --blush-soft: #FAF1F5; --rose: #B24A72; --rose-ink: #8C3157;
  --sage: #B9D3BF; --sage-soft: #EDF3EC; --sage-ink: #3E7556;
  --sky: #B5D3E5; --sky-soft: #E7F3F8; --sky-ink: #2E6E94;
  --butter: #EED9A4; --butter-soft: #FBF3DB; --butter-ink: #8A6417;
  --wine: #37352F; --on-wine: #FFFFFF; --blue: #2383E2; --blue-soft: #E7F3F8; --pink: #F5D9E5;
  --night: #37352F; --on-night: #FFFFFF;
  --cg: #F1F1EF; --cb: #F4EEEE; --co: #FBECDD; --cy: #FBF3DB; --cgr: #EDF3EC; --cbl: #E7F3F8; --cp: #F6F3F9; --cpk: #FAF1F5; --cr: #FDEBEC;
  --tg: #E3E2E0; --tb: #EEE0DA; --to: #FADEC9; --ty: #FDECC8; --tgr: #DBEDDB; --tbl: #D3E5EF; --tp: #E8DEEE; --tpk: #F5E0E9; --tr: #FFE2DD;
  --shadow-1: 0 1px 2px rgb(15 15 15 / .04); --shadow-2: 0 12px 32px -12px rgb(15 15 15 / .25), 0 0 0 1px rgb(15 15 15 / .05);
  --r: 8px; --r-sm: 6px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --hand: "Cormorant Garamond", "Lora", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  color-scheme: light;
}
[data-theme="night"] {
  --cream: #191919; --paper: #202020; --paper2: #252525; --paper3: #2F2F2F; --grid: transparent;
  --ink: #E3E2DF; --ink2: #9B9A97; --ink3: #6F6E69; --hair: #2F2F2F;
  --blush: #6B3A50; --blush-soft: #35232C; --rose: #E28DB0; --rose-ink: #EFA8C5;
  --sage: #4A7A5C; --sage-soft: #22302A; --sage-ink: #8FC6A3;
  --sky: #3E6E8C; --sky-soft: #1E2C36; --sky-ink: #8DC0E0;
  --butter: #8C7130; --butter-soft: #33291A; --butter-ink: #E5C47A;
  --wine: #E3E2DF; --on-wine: #191919; --blue: #4A9BEF; --blue-soft: #1E2C36; --pink: #6B3A50;
  --night: #E3E2DF; --on-night: #191919;
  --cg: #252525; --cb: #2E2420; --co: #33261C; --cy: #312A1C; --cgr: #1F2B24; --cbl: #1C2A33; --cp: #2A2331; --cpk: #33232B; --cr: #362220;
  --tg: #373737; --tb: #4A3228; --to: #5C3B23; --ty: #564328; --tgr: #243D30; --tbl: #143A4E; --tp: #3C2D49; --tpk: #4E2C3C; --tr: #522E2A;
  --shadow-1: none; --shadow-2: 0 12px 32px -12px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
  color-scheme: dark;
}
html { font-size: 16px; } html[data-text="0"] { font-size: 14.5px; } html[data-text="2"] { font-size: 17.5px; } html[data-text="3"] { font-size: 19px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 400 .95rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 400; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
h3 { font: 650 1rem/1.25 var(--sans); }
h1 em, h2 em, h3 em { font: inherit; font-style: normal; color: inherit; }
p { margin: .5rem 0; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
small { font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: .85rem; } .muted { color: var(--ink2); } .grow { flex: 1; } .right { margin-left: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--blush); color: #3F1724; }
:focus-visible { outline: 2.5px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: currentColor; }
.boot { min-height: 100vh; display: grid; place-items: center; font: 400 5rem var(--serif); color: var(--rose); }
.error-text { color: var(--rose-ink); font-weight: 650; }
.kick { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.lede { color: var(--ink2); max-width: 62ch; }
.hl { background: linear-gradient(176deg, transparent 54%, var(--blush) 54%, var(--blush) 90%, transparent 90%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="night"] .hl { background: linear-gradient(176deg, transparent 56%, #6B2A3C 56%, #6B2A3C 92%, transparent 92%); }
kbd { font: 650 .75rem var(--sans); padding: .15rem .45rem; border-radius: 6px; background: var(--paper2); border: 1px solid var(--hair); border-bottom-width: 2px; }
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calm *, .calm *::before, .calm *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
.empty-note { padding: 1.1rem; border: 1.5px dashed var(--hair); border-radius: var(--r-sm); text-align: center; color: var(--ink2); display: grid; gap: .5rem; justify-items: center; }
.empty-note p { margin: 0; font: 400 1.75rem/1.2 var(--hand); color: var(--ink2); }
.empty { padding: 1rem; text-align: center; color: var(--ink2); }

/* ---------- Controls ---------- */
.btn { --b: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--b); color: var(--ink); font: 600 .88rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .14s, box-shadow .14s, background .14s; white-space: nowrap; user-select: none; box-shadow: 0 2px 0 var(--ink); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn.solid { --b: var(--ink); color: var(--cream); }
[data-theme="night"] .btn.solid { --b: var(--blush); color: #3F1724; border-color: var(--blush); box-shadow: 0 2px 0 #7A2E44; }
.btn.ghost { --b: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--paper2); transform: none; }
.btn.on-dark { --b: rgb(255 255 255 / .14); color: #FBF0EE; border-color: rgb(251 240 238 / .5); box-shadow: none; }
.btn.danger { color: var(--rose-ink); }
.btn.sm { padding: .42rem .8rem; font-size: .8rem; box-shadow: 0 1.5px 0 var(--ink); }
.btn.sm.ghost { box-shadow: none; }
.btn.block { width: 100%; padding: .85rem 1.2rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--ink2); flex: none; }
.icon-btn:hover { background: var(--paper2); color: var(--ink); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn.sm .ic { width: 15px; height: 15px; }
.icon-btn:focus-visible { outline: 2.5px solid var(--rose); }
.u-link { all: unset; cursor: pointer; color: var(--ink2); font-weight: 600; font-size: .84rem; text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.u-link:hover { color: var(--rose); }
.u-link:focus-visible { outline: 2.5px solid var(--rose); }
.link-plain { all: unset; cursor: pointer; } .link-plain:hover b, .link-plain:hover { text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 3px; } .link-plain:focus-visible { outline: 2.5px solid var(--rose); }
.link { all: unset; cursor: pointer; color: var(--rose); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.input { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 .95rem/1.3 var(--sans); }
.input::placeholder { color: var(--ink3); }
.input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blush) 55%, transparent); }
.input.sm { padding: .4rem .6rem; font-size: .88rem; width: auto; }
.input.big-in { font: 400 2.4rem var(--serif); padding: .4rem .8rem; }
.input.lined { background-image: repeating-linear-gradient(transparent 0 1.6rem, var(--hair) 1.6rem calc(1.6rem + 1px)); line-height: 1.6rem; }
select.input, select.ms, .ap-sel, .evergreen select { appearance: none; padding-right: 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23B46A72' stroke-width='2.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 13px; }
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 600; min-width: 0; }
.field > span:first-child { color: var(--ink2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .wide, .form-grid .switch.wide { grid-column: 1 / -1; }
.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-f { flex-direction: row; align-items: center; gap: .6rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.section-sm { margin-top: .8rem; }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-weight: 600; }
.switch input, input.tog { appearance: none; flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--paper3); position: relative; cursor: pointer; margin: 0; transition: background .15s; border: 1.5px solid var(--hair); }
.switch input::after, input.tog::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .18s; }
.switch input:checked, input.tog:checked { background: var(--rose); border-color: var(--rose); }
.switch input:checked::after, input.tog:checked::after { transform: translateX(19px); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--hair); }
.segs button { all: unset; cursor: pointer; padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .82rem; color: var(--ink2); }
.segs button:hover { color: var(--ink); background: var(--paper2); }
.segs button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.segs button:focus-visible { outline: 2.5px solid var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--blush-soft); color: var(--rose-ink); font-weight: 600; font-size: .8rem; }
.chip.sage { background: var(--sage-soft); color: var(--sage-ink); }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--cream); }
.chip input { display: none; } .chip small { opacity: .7; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .14rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 650; background: var(--paper2); color: var(--ink2); white-space: nowrap; border: 1px solid var(--hair); }
.tag.late { background: var(--blush); color: #6E2F38; border-color: transparent; } .tag.soon { background: var(--butter-soft); color: var(--butter-ink); } .tag.planned { background: var(--sky-soft); color: var(--sky-ink); }
.pill { display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--hair); font-weight: 600; font-size: .84rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filters.wrap { margin-bottom: .6rem; }
.filters p { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.meter { display: block; height: 8px; border-radius: 99px; background: var(--paper3); overflow: hidden; margin: .5rem 0; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--rose)); transition: width .5s cubic-bezier(.2, .8, .3, 1); }
.t-rose { --c: var(--rose); } .t-blush { --c: var(--blush); } .t-sage { --c: var(--sage); } .t-sky { --c: var(--sky); } .t-butter { --c: var(--butter); }
.stars { display: inline-flex; gap: 1px; color: var(--paper3); } .stars .ic { width: 14px; height: 14px; } .stars i.on { color: #E3A33F; }
.spice { display: inline-flex; gap: 1px; color: var(--paper3); } .spice .ic { width: 14px; height: 14px; } .spice i.on { color: #D9574B; }
.scale, .rating { display: flex; gap: .35rem; flex-wrap: wrap; }
.rate { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--hair); cursor: pointer; font-weight: 650; font-size: 1.1rem; }
.rate input { position: absolute; opacity: 0; pointer-events: none; } .rate:has(input:checked) { background: var(--blush); border-color: var(--rose); color: #3F1724; }
.when { display: flex; gap: .4rem; }
.steps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .15rem; }
.steps button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .6rem; align-items: flex-start; width: 100%; padding: .35rem .25rem; border-radius: 8px; font-size: .9rem; }
.steps button:hover { background: var(--paper2); } .steps button:focus-visible { outline: 2.5px solid var(--rose); }
.cb { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink3); margin-top: 1px; color: transparent; background: var(--paper); }
.cb .ic { width: 13px; height: 13px; }
.steps li.on .cb, .groc-list li.on .cb { background: var(--sage); border-color: var(--sage); color: #fff; }
.steps li.on span:last-child, .groc-list li.on span:last-child { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink2); }
.t-check { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink3); color: transparent; }
.t-check .ic { width: 14px; height: 14px; } .t-check:hover { border-color: var(--sage); color: var(--sage); }
.t-check[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.t-add { display: flex; gap: .4rem; margin-bottom: .6rem; }

/* ---------- Scrapbook pieces ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: 1.25rem 1.35rem 1.35rem; box-shadow: var(--shadow-1); min-width: 0; }
a.card { text-decoration: none; display: block; color: inherit; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h2 { font-size: 1.6rem; }
.card-head h2 .ic { width: 20px; height: 20px; color: var(--rose); vertical-align: -.1em; }
.card-head h2 small { font: 500 .8rem var(--sans); }
.card.new { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; padding: 1.4rem; border: 2px dashed var(--hair); border-radius: var(--r); color: var(--ink2); min-height: 160px; }
.card.new:hover { border-color: var(--rose); color: var(--rose); background: color-mix(in oklab, var(--paper) 60%, transparent); }
.card.new .ic { width: 26px; height: 26px; } .card.new b { font: italic 1.35rem var(--serif); color: var(--ink); } .card.new small { max-width: 30ch; }
.box { margin-bottom: 1rem; } .box h2 { margin-bottom: .6rem; } .box-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
/* Washi tape: stripes, gingham and dots, drawn in CSS */
.tape { position: absolute; z-index: 3; top: -11px; left: calc(50% - 46px); width: 92px; height: 24px; transform: rotate(-3deg); opacity: .88; pointer-events: none; border-radius: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.tape.tl { left: -22px; top: -2px; transform: rotate(-36deg); } .tape.tr { left: auto; right: -22px; top: -2px; transform: rotate(36deg); }
.tp-blush { background: repeating-linear-gradient(90deg, #F1C6D3 0 9px, #FAE5EC 9px 18px); }
.tp-sage { background-color: #DCE6F1; background-image: linear-gradient(90deg, rgb(184 202 221 / .8) 50%, transparent 50%), linear-gradient(rgb(184 202 221 / .8) 50%, transparent 50%); background-size: 12px 12px; }
.tp-sky { background: radial-gradient(circle, #FFFBF8 2.2px, transparent 2.6px) 0 0 / 11px 11px, #B8CADD; }
.tp-butter { background: repeating-linear-gradient(-45deg, #E8D2BD 0 6px, #F8EEE4 6px 12px); }
.tp-rose { background: repeating-linear-gradient(90deg, #D69AA2 0 5px, #E8BEC3 5px 14px); }
[data-theme="night"] .tape { opacity: .7; }
/* Notebook lines */
.lined { background-image: linear-gradient(90deg, transparent 2.1rem, color-mix(in oklab, var(--blush) 70%, transparent) 2.1rem 2.2rem, transparent 2.2rem), repeating-linear-gradient(var(--paper) 0 1.85rem, var(--hair) 1.85rem calc(1.85rem + 1px)); background-position: 0 .6rem; }
/* A receipt with a torn zig-zag bottom */
.receipt { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 12px; }
.receipt::after { content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -11px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px; background-repeat: repeat-x; filter: drop-shadow(0 2px 0 var(--hair)); }
/* A ticket with punched notches */
.ticket { -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
/* Polaroids */
.polaroid { position: relative; margin: 0; padding: 10px 10px 0; background: #FFFBF8; border-radius: 3px; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 12px 24px -12px rgb(75 27 41 / .45); transform: rotate(var(--tilt, -2deg)); transition: transform .2s; color: #3F1724; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.pol-img { aspect-ratio: 1; overflow: hidden; background: #F3E8EC; display: grid; }
.pol-img img { width: 100%; height: 100%; object-fit: cover; }
.pol-img .pdrop { border: 0; border-radius: 0; background: repeating-linear-gradient(45deg, #FAE5EC 0 10px, #FBF0EE 10px 20px); }
.pol-open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.polaroid figcaption { font: 400 1.75rem/1 var(--hand); text-align: center; padding: .55rem .3rem .65rem; min-height: 2.2rem; color: #3F1724; }
.polaroid:not(:has(figcaption)) { padding-bottom: 28px; }
.pol-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.polaroid:hover .pol-tools, .polaroid:focus-within .pol-tools { opacity: 1; }
.pol-tools .icon-btn { background: rgb(255 253 248 / .92); color: #3F1724; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1.1rem; padding: .4rem .2rem; }
/* Photo drop zone */
.pdrop { position: relative; display: grid; place-content: center; justify-items: center; gap: .25rem; text-align: center; padding: 1rem; min-height: 130px; border: 2px dashed color-mix(in oklab, var(--rose) 45%, transparent); border-radius: 14px; background: var(--blush-soft); color: var(--rose-ink); cursor: pointer; transition: background .15s; }
.pdrop:hover, .pdrop.drop-over { background: color-mix(in oklab, var(--blush) 55%, var(--paper)); }
.pdrop b { font-size: .86rem; font-weight: 650; } .pdrop small { color: var(--ink2); }
.pd-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); } .pd-ic .ic { width: 20px; height: 20px; }
.pdrop:focus-within { outline: 2.5px solid var(--rose); }
/* Y2K windows (charts live in these) */
.win { position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem .7rem; background: var(--paper); border-bottom: 1.5px solid var(--hair); color: var(--ink); }
.win-bar b { font: 400 1.35rem/1 var(--serif); text-transform: uppercase; letter-spacing: .01em; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-dots { display: none; }
.win-btns { display: none; }
.win-bar::after { content: "✱"; font: 400 1.25rem/1 var(--sans); color: var(--rose); }
.win-bar::before { content: "By Helm"; order: 2; font: 600 .6rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.win-body { padding: 1rem 1.1rem 1.1rem; }
/* Stickers and stars */
.sticker { position: absolute; z-index: 3; top: -14px; right: 14px; padding: .5em 1.1em; border-radius: 50%; font: 400 .92rem/1 var(--serif); text-transform: uppercase; letter-spacing: .03em; transform: rotate(var(--rot)); background: var(--paper); color: var(--rose-ink); border: 1.5px solid currentColor; outline: 1.5px solid var(--paper); box-shadow: 0 0 0 3.5px currentColor; white-space: nowrap; }
.st-sage { color: var(--sage-ink); } .st-blush { background: var(--blush-soft); outline-color: var(--blush-soft); } .st-sky { color: var(--sky-ink); }
.star { width: 26px; height: 26px; fill: var(--butter); stroke: #4B1B29; stroke-width: 1.6; stroke-linejoin: round; }
.pclip { position: absolute; z-index: 3; top: -22px; left: 24px; width: 18px; height: 48px; color: var(--ink3); transform: rotate(8deg); }

/* ---------- Hub shell ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .9rem; padding: .55rem clamp(.8rem, 2.5vw, 2rem); background: var(--wine); color: var(--on-wine); }
.tb-brand { text-decoration: none; flex: none; } .tb-brand .wordmark { font-size: 1.8rem; color: var(--on-wine); }
.hubnav { flex: 1; min-width: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .2rem; }
.hubnav::-webkit-scrollbar { display: none; }
.hn { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; min-height: 34px; border-radius: 999px; text-decoration: none; font: 400 1rem/1 var(--serif); text-transform: uppercase; letter-spacing: .03em; color: rgb(251 240 238 / .8); border: 1.5px solid transparent; }
.hn b { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -.55rem; border-radius: 50%; background: var(--wine); color: var(--on-wine); font: 400 .66rem var(--serif); letter-spacing: .04em; }
.hn .ic { width: 15px; height: 15px; }
.hn:hover { color: var(--on-wine); border-color: rgb(251 240 238 / .45); }
.hn[aria-current="page"] { background: transparent; color: var(--on-wine); border-color: var(--on-wine); padding-right: .7rem; }
.hn[aria-current="page"] b { background: var(--on-wine); color: var(--wine); }
.tb-tools { display: flex; align-items: center; gap: .3rem; flex: none; }
.tb-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgb(251 240 238 / .4); background: transparent; color: var(--on-wine); }
.tb-btn:hover { border-color: var(--on-wine); } .tb-btn[aria-current="page"] { background: var(--on-wine); color: var(--wine); }
.tb-btn .ic { width: 18px; height: 18px; } .tb-btn:focus-visible { outline: 2.5px solid var(--rose); }
.menu-btn { display: none; }
.search { position: relative; display: flex; align-items: center; gap: .4rem; padding: 0 .8rem; height: 38px; border-radius: 999px; background: rgb(251 240 238 / .1); border: 1.5px solid rgb(251 240 238 / .3); width: 190px; color: rgb(251 240 238 / .7); }
.search:focus-within { border-color: var(--on-wine); }
.search input { all: unset; flex: 1; min-width: 0; color: var(--on-wine); font-size: .86rem; } .search input::placeholder { color: rgb(251 240 238 / .65); }
.search-res { position: absolute; top: calc(100% + 6px); right: 0; width: min(360px, 90vw); display: none; padding: .4rem; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--hair); box-shadow: var(--shadow-2); z-index: 70; }
.search-res.on { display: grid; gap: 2px; }
.search-res button { all: unset; cursor: pointer; display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; color: var(--ink); }
.search-res button:hover, .search-res button:focus-visible { background: var(--paper2); }
.search-res p { margin: .4rem .6rem; }
.drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--paper); border-right: 1.5px solid var(--hair); padding: 1rem; transform: translateX(-104%); transition: transform .25s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; gap: .4rem; overflow-y: auto; }
.nav-on .drawer { transform: none; box-shadow: var(--shadow-2); }
.scrim { position: fixed; inset: 0; z-index: 85; background: rgb(75 27 41 / .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-on .scrim { opacity: 1; pointer-events: auto; }
.dr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.dr-desk, .dr-link, .dr-foot a { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.dr-desk { background: var(--ink); color: var(--cream); margin-bottom: .3rem; }
.dr-link > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--c-soft); color: var(--c-ink); }
.dr-link:hover, .dr-foot a:hover { background: var(--paper2); } .dr-link[aria-current="page"] { background: var(--blush-soft); }
.dr-foot { margin-top: auto; border-top: 1.5px dashed var(--hair); padding-top: .5rem; display: grid; }
.tabbar { display: none; }
.hub { width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.6rem clamp(.9rem, 3vw, 2.4rem) 4rem; }

/* Hub header and the folder tabs */
.hub-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1.5px solid var(--hair); }
.hh-kick { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); margin-bottom: .55rem; }
.hh-title { font: 400 clamp(3.2rem, 7vw, 5.6rem)/.86 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.hh-title em { display: inline-block; font: 400 .62em/1 var(--hand); color: var(--rose); margin-left: .12em; transform: rotate(-4deg) translateY(.12em); }
.hh-lede { color: var(--ink2); max-width: 54ch; margin: .9rem 0 0; }
.hh-actions { display: flex; gap: .5rem; }
.ftabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.ftab { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem 1rem; min-height: 40px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font: 400 1.05rem/1 var(--serif); text-transform: uppercase; letter-spacing: .02em; transition: background .15s; }
.ftab::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); }
.ftab:hover { background: var(--paper); }
.ftab[aria-current="page"] { background: var(--paper); }
.ftab[aria-current="page"]::after { content: "On"; display: grid; place-items: center; background: var(--wine); color: var(--on-wine); border-color: var(--wine); font: 400 .7rem var(--serif); }
[data-theme="night"] .ftab[aria-current="page"]::after { background: var(--rose); color: var(--wine); border-color: var(--rose); }
.tab-body { position: relative; display: grid; gap: 1.3rem; }
.tab-body > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.55fr 1fr; } .two-col.wide-right { grid-template-columns: 1fr 1.55fr; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--hair); }
.rows li:last-child { border-bottom: 0; }
.r-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blush-soft); color: var(--rose-ink); } .r-ic .ic { width: 17px; height: 17px; }
.r-t { flex: 1; min-width: 0; display: grid; gap: .05rem; } .r-t b { font-weight: 650; } .r-t small { color: var(--ink2); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font: 600 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); padding: .5rem .6rem; border-bottom: 1.5px solid var(--hair); }
.tbl td { padding: .55rem .6rem; border-bottom: 1px dashed var(--hair); vertical-align: middle; }
.tbl .r { text-align: right; } .tbl tr.late td:first-child { box-shadow: inset 3px 0 0 var(--rose); } .tbl tr.soon td:first-child { box-shadow: inset 3px 0 0 var(--butter); }
.note-band, .flag-strip { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: var(--butter-soft); border: 1.5px solid color-mix(in oklab, var(--butter) 70%, transparent); color: var(--ink); }
.note-band > .ic, .flag-strip > .ic { width: 22px; height: 22px; color: var(--butter-ink); }
.note-band span { display: grid; } .note-band small { color: var(--ink2); }
.flag-strip { background: var(--blush-soft); border-color: var(--blush); } .flag-strip > .ic { color: var(--rose); }

/* ---------- Helm Home ---------- */
.cover { position: relative; height: clamp(190px, 26vw, 300px); border-radius: 24px; overflow: hidden; border: 1.5px solid var(--hair); box-shadow: var(--shadow-1); margin-bottom: 1.6rem; }
.cover > img, .cover .ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.default { background: repeating-linear-gradient(90deg, var(--wine) 0 34px, #C9D7E6 34px 42px, #FBF0EE 42px 45px, #C9D7E6 45px 53px); }
.cover-frame { position: absolute; z-index: 1; right: clamp(1rem, 6vw, 5rem); top: 50%; width: clamp(120px, 15vw, 190px); aspect-ratio: 4 / 5; transform: translateY(-50%) rotate(4deg); background: #F1C6D3; color: #4B1B29; display: grid; place-content: center; justify-items: center; gap: .2rem; text-align: center; box-shadow: var(--shadow-2); }
.cover-frame i { font: 400 2.6rem/1 var(--sans); font-style: normal; } .cover-frame b { font: 400 2.4rem/1 var(--serif); text-transform: uppercase; } .cover-frame small { font: 400 1.4rem/1 var(--hand); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(251 244 240 / .97) 0%, rgb(251 244 240 / .9) 42%, rgb(251 244 240 / 0) 62%); pointer-events: none; }
.cover.default::after { right: auto; width: min(640px, 66%); background: var(--cream); border-radius: 0 0 0 0; }
[data-theme="night"] .cover::after { background: linear-gradient(90deg, rgb(28 38 48 / .94) 0%, rgb(28 38 48 / .74) 40%, rgb(28 38 48 / 0) 74%); }
.cover .tape { z-index: 4; }
.cover-text { position: absolute; z-index: 2; left: clamp(1.2rem, 4vw, 3rem); top: 50%; transform: translateY(-50%); max-width: min(520px, 70%); }
.cv-date { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.cv-hi { font: 400 clamp(2.2rem, 5vw, 3.8rem)/.95 var(--serif); margin: .25rem 0 .5rem; letter-spacing: -.02em; }
.cv-hi em { font-style: italic; color: var(--rose); }
.cv-aff { font: 400 1.89rem/1.15 var(--hand); color: var(--rose-ink); margin: 0; }
.cover-btn { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .85rem; border-radius: 999px; background: rgb(255 253 248 / .9); color: #3F1724; font-weight: 600; font-size: .8rem; cursor: pointer; border: 1px solid #fff; box-shadow: var(--shadow-1); }
.cover-btn:hover { background: #fff; } .cover-btn:focus-within { outline: 2.5px solid var(--rose); }
.home-row { display: grid; grid-template-columns: minmax(250px, .9fr) 1.15fr 1fr; gap: 1.4rem; align-items: start; margin-bottom: 1.4rem; }
.home-row.two { grid-template-columns: 1fr 1.25fr; }
.vibe { padding-top: 1.4rem; } .vibe .polaroid { max-width: 230px; margin: .2rem auto .8rem; }
.vibe .pclip { left: auto; right: 30px; }
.vibe-q { text-align: center; font: 400 1.68rem var(--hand); color: var(--ink2); margin: .2rem 0 .3rem; }
.faces { display: flex; justify-content: center; gap: .3rem; }
.face { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink3); transition: transform .15s, background .15s; }
.face .ic { width: 26px; height: 26px; } .face:hover { transform: scale(1.12); color: var(--ink); }
.face[aria-pressed="true"] { background: var(--blush); color: #3F1724; transform: scale(1.08); }
.face:focus-visible { outline: 2.5px solid var(--rose); }
.top3 { padding-top: 1.3rem; }
ol.t3 { list-style: none; margin: 0; padding: 0; counter-reset: t3; display: grid; }
ol.t3 li { counter-increment: t3; display: flex; gap: .6rem; align-items: center; min-height: 3.7rem; border-bottom: 1px solid var(--hair); }
ol.t3 li::before { content: counter(t3); font: italic 2rem/1 var(--serif); color: var(--rose); width: 1.4rem; text-align: center; }
ol.t3 input { all: unset; flex: 1; min-width: 0; font: 400 1.05rem var(--sans); color: var(--ink); padding: .4rem 0; }
ol.t3 input::placeholder { color: var(--ink3); font-style: italic; }
ol.t3 li.done input { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink2); }
.t3-tick { all: unset; box-sizing: border-box; cursor: pointer; order: 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink3); color: transparent; }
.t3-tick .ic { width: 15px; height: 15px; } .t3-tick[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
ol.t3.mini li { min-height: 2.4rem; font-size: .9rem; } ol.t3.mini li::before { font-size: 1.4rem; }
.lined.card { background-color: var(--paper); }
.phase { --pc: var(--blush); --pc-soft: var(--blush-soft); background: linear-gradient(165deg, var(--pc-soft), var(--paper) 70%); }
.ph-menstrual { --pc: #D98A96; --pc-soft: var(--blush-soft); } .ph-follicular { --pc: var(--sage); --pc-soft: var(--sage-soft); } .ph-ovulatory { --pc: var(--butter); --pc-soft: var(--butter-soft); } .ph-luteal { --pc: var(--sky); --pc-soft: var(--sky-soft); }
.ph-name { font-size: 2rem; margin: .3rem 0 .6rem; }
.ph-bar { display: grid; grid-template-columns: 5fr 8fr 3fr 12fr; gap: 3px; margin-bottom: .8rem; }
.ph-bar i { height: 8px; border-radius: 99px; opacity: .4; } .ph-bar i.on { opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.ph-bar .ph-menstrual { background: #D98A96; } .ph-bar .ph-follicular { background: var(--sage); } .ph-bar .ph-ovulatory { background: var(--butter); } .ph-bar .ph-luteal { background: var(--sky); }
.ph-tips { margin: 0; display: grid; gap: .55rem; } .ph-tips dt { font-weight: 650; font-size: .8rem; display: flex; gap: .35rem; align-items: center; } .ph-tips dt .ic { color: var(--rose); } .ph-tips dd { margin: .1rem 0 0; color: var(--ink2); font-size: .86rem; }
.ph-next { display: block; margin-top: .8rem; font: 400 1.61rem var(--hand); color: var(--rose-ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.tile { display: grid; gap: .1rem; padding: 1.2rem 1.3rem; border-radius: 4px; text-decoration: none; background: var(--c-soft); border: 1.5px solid color-mix(in oklab, var(--c) 55%, transparent); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile { -webkit-mask: radial-gradient(circle 5px at 50% 50%, #000 97%, #0000) -5px -5px / 13px 13px round, linear-gradient(#000 0 0) 50% / calc(100% - 13px) calc(100% - 13px) no-repeat; mask: radial-gradient(circle 5px at 50% 50%, #000 97%, #0000) -5px -5px / 13px 13px round, linear-gradient(#000 0 0) 50% / calc(100% - 13px) calc(100% - 13px) no-repeat; border: 0 !important; }
.tile > span { font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.tile b { font: 400 2.1rem/1.05 var(--serif); } .tile b small { font: 500 .85rem var(--sans); color: var(--ink2); } .tile em { font: 400 1.54rem var(--hand); color: var(--ink2); font-style: normal; }
.tl-blush { --c: var(--blush); --c-soft: var(--blush-soft); } .tl-sage { --c: var(--sage); --c-soft: var(--sage-soft); } .tl-sky { --c: var(--sky); --c-soft: var(--sky-soft); } .tl-butter { --c: var(--butter); --c-soft: var(--butter-soft); }
.hb-count { font: 400 1.6rem var(--serif); } .hb-count b { color: var(--rose); font-weight: 400; }
.hb-meter { display: block; height: 6px; border-radius: 99px; background: var(--paper3); overflow: hidden; margin-bottom: .6rem; } .hb-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--blush), var(--rose)); border-radius: 99px; transition: width .4s; }
.habits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.habits.compact { grid-template-columns: 1fr; gap: .2rem; }
.hab { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: .55rem; align-items: center; padding: .55rem .65rem; border-radius: 12px; border: 1.5px solid var(--hair); background: var(--paper); transition: background .15s, border-color .15s; }
.hab:hover { border-color: var(--rose); } .hab:focus-visible { outline: 2.5px solid var(--rose); }
.hab-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink3); color: transparent; } .hab-box .ic { width: 14px; height: 14px; }
.hab-ic { color: var(--ink3); } .hab-ic .ic { width: 16px; height: 16px; }
.hab-t { flex: 1; min-width: 0; font-size: .88rem; font-weight: 550; }
.hab-st { display: inline-flex; align-items: center; gap: 1px; color: #B8402F; font-weight: 700; } .hab-st .ic { width: 13px; height: 13px; }
.hab.on { background: var(--sage-soft); border-color: var(--sage); } .hab.on .hab-box { background: var(--sage); border-color: var(--sage); color: #fff; } .hab.on .hab-t { text-decoration: line-through; text-decoration-color: var(--sage-ink); }
.compact .hab { padding: .4rem .5rem; border-color: transparent; }
.hb-sync { display: flex; gap: .35rem; align-items: center; margin: .8rem 0 0; }
.ms-log { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--hair); }
.ms-log .input { width: 5.5rem; }
.agenda { padding: 1.3rem 2rem; background: linear-gradient(90deg, var(--butter-soft), var(--paper) 30%); }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.ag { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; background: var(--paper); border: 1.5px solid var(--hair); }
.ag:hover { border-color: var(--rose); } .ag > .ic:last-child { color: var(--ink3); width: 14px; }
.ag-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c-soft, var(--blush-soft)); color: var(--c-ink, var(--rose-ink)); } .ag-ic .ic { width: 16px; height: 16px; }
.ag-t { flex: 1; min-width: 0; display: grid; } .ag-t b { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-t small { color: var(--ink2); }
.t-blush, .t-rose { --c-soft: var(--blush-soft); --c-ink: var(--rose-ink); } .t-sage { --c-soft: var(--sage-soft); --c-ink: var(--sage-ink); } .t-sky { --c-soft: var(--sky-soft); --c-ink: var(--sky-ink); } .t-butter { --c-soft: var(--butter-soft); --c-ink: var(--butter-ink); }

/* ---------- Wellness ---------- */
.cyc-hero { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; padding: 1.6rem 1.8rem; border-radius: 22px; border: 1.5px solid var(--hair); background: linear-gradient(135deg, var(--pc-soft), var(--paper) 65%); box-shadow: var(--shadow-1); }
.ph-wheel { width: 100%; max-width: 240px; } .ph-wheel path { fill: none; stroke-width: 22; stroke-linecap: round; }
.pw-menstrual { stroke: #D98A96; } .pw-follicular { stroke: var(--sage); } .pw-ovulatory { stroke: var(--butter); } .pw-luteal { stroke: var(--sky); }
.pw-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.pw-day { font: 400 30px var(--serif); fill: var(--ink); } .pw-of { font: 600 12px var(--sans); fill: var(--ink2); letter-spacing: .1em; }
.ch-name { font-size: clamp(2.2rem, 4vw, 3rem); margin: .2rem 0 .3rem; }
.ch-mood { font: 400 1.82rem/1.2 var(--hand); color: var(--rose-ink); margin: 0 0 1rem; }
.ch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ch-tip { padding: .9rem 1rem; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--hair); }
.ch-tip h3 { display: flex; gap: .4rem; align-items: center; } .ch-tip h3 .ic { color: var(--rose); } .ch-tip p { font-size: .88rem; color: var(--ink2); }
.ch-next { display: flex; gap: .4rem; align-items: center; margin: 1rem 0 0; } .ch-next .ic { color: var(--rose); }
.intens { display: inline-flex; align-items: center; gap: 3px; margin-top: .4rem; } .intens i { width: 16px; height: 6px; border-radius: 99px; background: var(--paper3); } .intens i.on { background: var(--rose); } .intens small { margin-left: .4rem; color: var(--ink2); font-weight: 600; }
.cyc-strip { display: grid; grid-template-columns: repeat(35, minmax(26px, 1fr)); gap: 3px; overflow-x: auto; padding-bottom: .3rem; }
.cs-d { display: grid; justify-items: center; padding: .3rem 0; border-radius: 8px; background: color-mix(in oklab, var(--pc) 32%, var(--paper)); font-size: .72rem; } .cs-d small { color: var(--ink2); font-size: .6rem; } .cs-d b { font-weight: 650; }
.cs-d.per { background: color-mix(in oklab, #D98A96 60%, var(--paper)); } .cs-d.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend2 { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .7rem; font-size: .8rem; color: var(--ink2); font-weight: 600; }
.legend2 span { display: inline-flex; gap: .35rem; align-items: center; } .legend2 i { width: 12px; height: 12px; border-radius: 4px; background: var(--pc, var(--c)); }
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pcard { border-top: 6px solid var(--pc); } .pcard.now { box-shadow: 0 0 0 2px var(--ink), var(--shadow-1); } .pcard h3 { font: 400 1.5rem var(--serif); margin: .2rem 0; } .pcard p { font-size: .84rem; color: var(--ink2); }
.split-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.sd { display: grid; gap: .3rem; padding: .6rem; border-radius: 12px; background: var(--paper2); font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.sd input { all: unset; font: 500 .88rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); min-width: 0; }
.sd.today { background: var(--blush-soft); box-shadow: inset 0 0 0 1.5px var(--rose); }
.wl-week { font: 400 1.4rem var(--serif); margin: 0 0 .4rem; } .wl-week b { color: var(--rose); font-weight: 400; }
.pb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.pb-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--hair); }
.pb-ic { color: #C9952F; } .pb-v { font: 400 1.4rem var(--serif); white-space: nowrap; }
.pol-add { min-height: 150px; }
.mp-grid { display: grid; grid-template-columns: 70px repeat(3, minmax(120px, 1fr)); gap: 6px; overflow-x: auto; }
.mp-h { font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); padding: 0 .3rem; }
.mp-d { display: grid; align-content: center; font-weight: 650; font-size: .82rem; } .mp-d small { color: var(--ink2); font-weight: 500; } .mp-d.today { color: var(--rose); }
.mp-c { position: relative; display: flex; align-items: center; gap: .4rem; min-height: 46px; padding: .3rem; border-radius: 10px; border: 1.5px dashed var(--hair); background: var(--paper); }
.mp-c.set { border-style: solid; background: var(--sage-soft); border-color: transparent; }
.mp-img { flex: none; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; } .mp-img img { width: 100%; height: 100%; object-fit: cover; }
.ms { all: unset; flex: 1; min-width: 0; font-size: .82rem; padding: .2rem 1.6rem .2rem .3rem; cursor: pointer; color: var(--ink); background-position: right .3rem center !important; }
.ms:focus-visible { outline: 2px solid var(--rose); border-radius: 6px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.rc { display: grid; gap: .4rem; }
.rc-img { all: unset; cursor: pointer; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--butter-soft); color: var(--butter-ink); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .rc-img:hover img { transform: scale(1.05); } .rc-img .ic { width: 28px; height: 28px; }
.rc-t { display: grid; } .rc-t b { font-weight: 650; font-size: .88rem; } .rc-t small { color: var(--ink2); }
.groc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1rem; }
.groc-list li { break-inside: avoid; } .groc-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .5rem; align-items: center; width: 100%; padding: .3rem .1rem; font-size: .88rem; } .groc-list em { color: var(--ink2); font-style: normal; font-size: .78rem; }
.groc { font-family: var(--sans); }
.glasses { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.glass { all: unset; cursor: pointer; width: 38px; height: 52px; transition: transform .15s; } .glass:hover { transform: translateY(-3px); } .glass svg { width: 100%; height: 100%; }
.g-out { fill: var(--paper); stroke: var(--sky-ink); stroke-width: 2.2; } .g-in { fill: transparent; transition: fill .2s; } .glass.on .g-in { fill: var(--sky); }
.glass:focus-visible { outline: 2.5px solid var(--rose); border-radius: 6px; }
.hy-n { font: 400 1.5rem var(--serif); } .hy-n b { color: var(--sky-ink); font-weight: 400; }
.sleep-log { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.sl-d { display: grid; justify-items: center; gap: .2rem; padding: .5rem .2rem; border-radius: 12px; background: var(--paper2); font-size: .72rem; font-weight: 650; color: var(--ink2); }
.sl-d .input { width: 100%; text-align: center; padding: .35rem .2rem; } .sl-d.today { background: var(--sky-soft); }

/* ---------- Career & Hustle ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .4rem; align-items: start; }
.kb-col { border-radius: 16px; padding: .7rem; background: var(--c-soft); border: 1.5px solid color-mix(in oklab, var(--c) 45%, transparent); min-height: 200px; display: flex; flex-direction: column; gap: .5rem; }
.kb-0 { --c: var(--butter); --c-soft: var(--butter-soft); } .kb-1 { --c: var(--blush); --c-soft: var(--blush-soft); } .kb-2 { --c: var(--sky); --c-soft: var(--sky-soft); } .kb-3 { --c: #C9B3DA; --c-soft: color-mix(in oklab, #C9B3DA 30%, var(--paper)); } .kb-4 { --c: var(--sage); --c-soft: var(--sage-soft); }
.kb-col header { display: flex; justify-content: space-between; align-items: center; } .kb-col h3 { font: italic 400 1.3rem var(--serif); }
.kb-n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .3rem; border-radius: 99px; background: var(--paper); font-size: .75rem; font-weight: 700; }
.kb-list { display: grid; gap: .5rem; }
.kb-card { position: relative; display: grid; gap: .25rem; padding: .7rem .75rem .45rem; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-1); border-left: 4px solid var(--pf); }
.pf-tiktok { --pf: #4B1B29; } .pf-instagram { --pf: var(--rose); } .pf-youtube { --pf: #D9574B; }
[data-theme="night"] .pf-tiktok { --pf: #FBF0EE; }
.kb-plat { font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.kb-card b { font-weight: 600; font-size: .88rem; } .kb-card small { color: var(--ink2); }
.kb-move { display: flex; justify-content: space-between; margin: 0 -.3rem; }
.kb-add input { all: unset; box-sizing: border-box; width: 100%; padding: .55rem .7rem; border-radius: 10px; border: 1.5px dashed color-mix(in oklab, var(--c) 80%, var(--ink3)); font-size: .85rem; background: color-mix(in oklab, var(--paper) 60%, transparent); }
.kb-add input:focus { border-style: solid; background: var(--paper); }
.sp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .6rem; }
.sp-sum > span { display: grid; padding: .6rem .8rem; border-radius: 12px; background: var(--butter-soft); } .sp-sum b { font: 400 1.5rem var(--serif); } .sp-sum small { color: var(--ink2); }
.st-paid { background: var(--sage-soft); color: var(--sage-ink); } .st-signed { background: var(--sky-soft); color: var(--sky-ink); } .st-talking { background: var(--butter-soft); color: var(--butter-ink); } .st-passed { background: var(--paper3); color: var(--ink3); }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.br-list li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem .3rem .35rem .7rem; border-radius: 10px; background: var(--paper2); font-size: .88rem; }
.tt { display: grid; grid-template-columns: 46px repeat(5, minmax(70px, 1fr)); grid-template-rows: 26px repeat(var(--rows), 22px); gap: 0 4px; overflow-x: auto; }
.tt > span:first-child { grid-row: 1; grid-column: 1; }
.tt-h { grid-row: 1; text-align: center; font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.tt-t { grid-column: 1; font-size: .7rem; color: var(--ink3); border-top: 1px dashed var(--hair); padding-top: 2px; }
.tt-b { all: unset; box-sizing: border-box; cursor: pointer; margin: 1px 0; padding: .3rem .45rem; border-radius: 8px; background: var(--c-soft); border-left: 3px solid var(--c); display: grid; align-content: start; overflow: hidden; font-size: .74rem; }
.tt-b b { font-weight: 650; } .tt-b small { color: var(--ink2); font-size: .66rem; }
.tc-0 { --c: var(--rose); --c-soft: var(--blush-soft); } .tc-1 { --c: var(--sage); --c-soft: var(--sage-soft); } .tc-2 { --c: var(--sky-ink); --c-soft: var(--sky-soft); } .tc-3 { --c: #C9952F; --c-soft: var(--butter-soft); } .tc-4 { --c: var(--ink2); --c-soft: var(--paper3); }
.dl-h { font: 600 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: .9rem 0 .3rem; display: flex; align-items: center; gap: .4rem; }
.dl-h::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--u); }
.u-late { --u: #D9574B; } .u-today { --u: var(--rose); } .u-soon { --u: #E3A33F; } .u-week { --u: var(--sky-ink); } .u-later { --u: var(--sage); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dl-list li { display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; background: var(--paper2); box-shadow: inset 3px 0 0 var(--u); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.course h3 { font: 400 1.45rem var(--serif); margin: .2rem 0; }
.gr-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 .2rem; }
.gr-row > span { display: grid; padding: .5rem .7rem; border-radius: 12px; background: var(--paper2); } .gr-row b { font: 400 1.7rem var(--serif); } .gr-row small { color: var(--ink2); font-size: .72rem; }
.gr-need.no b { color: #D9574B; }
.whatif { display: grid; gap: .2rem; font-size: .78rem; font-weight: 600; color: var(--ink2); margin-top: .4rem; }
.whatif output { font: 400 1.54rem var(--hand); color: var(--rose-ink); }
input[type="range"] { accent-color: var(--rose); width: 100%; }
.pipe { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: .7rem; overflow-x: auto; }
.pipe-col { padding: .6rem; border-radius: 14px; background: var(--paper2); min-height: 120px; display: grid; align-content: start; gap: .45rem; }
.pipe-col h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--ink2); } .pipe-col h3 span { color: var(--ink); }
.pc-2 { background: var(--butter-soft); } .pc-3 { background: var(--sage-soft); } .pc-4 { opacity: .75; }
.app-card { display: grid; gap: .25rem; padding: .6rem .7rem; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-1); }
.app-card button { display: grid; } .app-card b { font-weight: 650; font-size: .88rem; } .app-card span { font-size: .8rem; color: var(--ink2); }
.ap-int, .ap-prep { display: flex; gap: .3rem; align-items: center; color: var(--rose-ink); font-weight: 600; }
.ap-sel { font: 500 .76rem var(--sans); color: var(--ink2); border: 1px solid var(--hair); border-radius: 8px; padding: .25rem 1.6rem .25rem .4rem; background-color: var(--paper2); background-position: right .4rem center; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.ct-card { display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; align-items: start; padding: .8rem; border-radius: 14px; border: 1.5px solid var(--hair); background: var(--paper); }
.ct-card .btn { grid-column: 1 / -1; justify-self: start; }
.ct-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: italic 1.25rem var(--serif); background: var(--c-soft); color: var(--c-ink); }
.av-0 { --c-soft: var(--blush); --c-ink: #6E2F38; } .av-1 { --c-soft: var(--sage); --c-ink: #3C5672; } .av-2 { --c-soft: var(--sky); --c-ink: #22313F; } .av-3 { --c-soft: var(--butter); --c-ink: #4E3D0D; } .av-4 { --c-soft: var(--paper3); --c-ink: var(--ink); }
.ct-t { display: grid; min-width: 0; } .ct-t small { color: var(--ink2); } .ct-t small.over { color: #D9574B; font-weight: 600; }

/* ---------- Finance ---------- */
.nw-hero { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.4rem; padding: 1.6rem 1.8rem; border-radius: 22px; background: var(--paper); border: 1.5px solid var(--hair); box-shadow: var(--shadow-1); }
.nw-num { font: 400 clamp(3rem, 7vw, 4.8rem)/1 var(--serif); margin: .2rem 0; letter-spacing: -.02em; }
.nw-ch { display: inline-flex; gap: .35rem; align-items: center; font-weight: 650; font-size: .88rem; padding: .25rem .65rem; border-radius: 99px; margin: 0; }
.nw-ch.up { background: var(--sage-soft); color: var(--sage-ink); } .nw-ch.down { background: var(--blush-soft); color: var(--rose-ink); }
.nw-split { display: flex; flex-wrap: wrap; gap: .6rem; }
.nw-split > span { display: grid; padding: .6rem .9rem; border-radius: 14px; background: var(--paper2); min-width: 130px; } .nw-split small { color: var(--ink2); font-size: .72rem; } .nw-split b { font: 400 1.4rem var(--serif); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.acc { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: .1rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--c-soft); border: 1.5px solid color-mix(in oklab, var(--c) 50%, transparent); transition: transform .15s; overflow: hidden; }
.acc:hover { transform: translateY(-2px); } .acc:focus-visible { outline: 2.5px solid var(--rose); }
.acc::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: color-mix(in oklab, var(--c) 35%, transparent); }
.ac-0 { --c: var(--blush); --c-soft: var(--blush-soft); } .ac-1 { --c: var(--sage); --c-soft: var(--sage-soft); } .ac-2 { --c: var(--sky); --c-soft: var(--sky-soft); } .ac-3 { --c: var(--butter); --c-soft: var(--butter-soft); } .ac-4 { --c: var(--rose); --c-soft: var(--paper2); }
.acc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); margin-bottom: .4rem; position: relative; z-index: 1; }
.acc-k { font: 600 .64rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); } .acc-t { font-weight: 650; } .acc-v { font: 400 1.7rem var(--serif); } .acc small { color: var(--ink2); font-size: .72rem; }
.acc.new { border: 2px dashed var(--hair); background: transparent; place-content: center; justify-items: center; color: var(--ink2); min-height: 150px; } .acc.new::after { display: none; }
.zb-inc { display: grid; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--ink2); margin-bottom: .6rem; } .zb-inc .input { font: 400 2rem var(--serif); padding: .3rem .7rem; }
.zb-line { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--hair); font-size: .9rem; } .zb-line b { font-weight: 650; }
.zb-left { display: grid; gap: .1rem; margin: .8rem 0; padding: .8rem 1rem; border-radius: 14px; background: var(--paper2); }
.zb-left small { font-weight: 600; color: var(--ink2); } .zb-left b { font: 400 2.2rem var(--serif); } .zb-left > span { font-size: .82rem; color: var(--ink2); }
.zb-left.zero { background: var(--sage-soft); } .zb-left.some { background: var(--butter-soft); } .zb-left.over { background: var(--blush-soft); } .zb-left.over b { color: #C0434A; }
.zb .sticker { top: 1rem; right: 1rem; }
.zb-groups { display: grid; gap: 1rem; }
.zb-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; }
.zb-list li { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; border-bottom: 1px dashed var(--hair); }
.zb-list .meter { margin: .3rem 0 0; height: 5px; }
.zb-amt .input { width: 6.5rem; text-align: right; }
.donut { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.donut-wrap { position: relative; width: 170px; flex: none; } .donut-wrap svg { width: 100%; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-mid b { font: 400 1.4rem var(--serif); } .donut-mid span { font-size: .7rem; color: var(--ink2); }
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; } .donut-key li { display: flex; gap: .5rem; align-items: center; } .donut-key b { margin-left: auto; padding-left: .8rem; font-weight: 650; }
.df { display: grid; gap: .1rem; margin: 0 0 .6rem; } .df b { font: 400 2.2rem/1.1 var(--serif); width: fit-content; } .df small { color: var(--ink2); }
.dx { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink2); margin: .6rem 0 1rem; } .dx b { font: 400 1.3rem var(--serif); color: var(--ink); }
.d-order { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.d-order li { display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem; border-radius: 14px; background: var(--paper2); }
.d-order li.first { background: var(--blush-soft); box-shadow: inset 0 0 0 1.5px var(--rose); }
.do-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); font: italic 1.2rem var(--serif); flex: none; }
.do-v { display: grid; justify-items: end; gap: .3rem; } .do-v .amt { font-weight: 650; }
.d-order .meter { height: 5px; margin: .3rem 0 0; }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.fund { display: grid; gap: .25rem; padding: 1rem; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--hair); }
.fd-emoji { font-size: 1.8rem; line-height: 1; } .fund small { color: var(--ink2); }
.fd-bar { display: block; height: 14px; border-radius: 99px; background: var(--paper3); overflow: hidden; margin: .4rem 0 .2rem; border: 1.5px solid var(--ink); }
.fd-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--c) 0 6px, color-mix(in oklab, var(--c) 70%, #fff) 6px 12px); }
.fd-0 { --c: var(--rose); } .fd-1 { --c: var(--sage); } .fd-2 { --c: var(--sky-ink); } .fd-3 { --c: #D9B04A; } .fd-4 { --c: #B992C9; }
.fd-v { margin: 0 0 .3rem; } .fd-v .amt { font: 400 1.5rem var(--serif); }
.fund .btn { justify-self: start; }
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sub-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--hair); }
.sub-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--cream); font: italic 1.2rem var(--serif); flex: none; }
.sub-v { display: grid; justify-items: end; } .sub-v .amt { font-weight: 650; } .sub-v small { color: var(--ink2); }
.sub-total { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0 0; font-weight: 600; } .sub-total b { font-weight: 650; }
.sub-total.big { border-top: 2px dashed var(--ink3); margin-top: .5rem; padding-top: .7rem; } .sub-total.big b { font: 400 2rem var(--serif); color: var(--rose); }
.worth { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.worth li { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; background: var(--paper2); font-size: .88rem; } .worth span { color: var(--ink2); }

/* ---------- The Library ---------- */
.lib-top { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(auto-fit, minmax(300px, 1.3fr)); gap: 1.2rem; }
.lg-num { font: 400 1.4rem var(--serif); margin: .4rem 0; } .lg-num b { font-size: 3.2rem; font-weight: 400; color: var(--rose); }
.lg-in input { all: unset; width: 3ch; text-align: center; border-bottom: 2px dashed var(--rose); font: inherit; }
.now-reading { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
.nr-cover { aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: -3px 0 0 rgb(0 0 0 / .15) inset, var(--shadow-1); display: grid; }
.nr-cover img { width: 100%; height: 100%; object-fit: cover; }
.nr-t h3 { font: 400 1.5rem/1.1 var(--serif); margin: .2rem 0; } .nr-page { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink2); } .nr-page .input { width: 5rem; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.6rem 1.2rem; padding: .4rem; }
.book { display: grid; gap: .3rem; align-content: start; position: relative; }
.bk-cover { all: unset; cursor: pointer; aspect-ratio: 2 / 3; border-radius: 3px 10px 10px 3px; overflow: hidden; display: grid; box-shadow: inset 4px 0 0 rgb(0 0 0 / .12), 0 14px 22px -14px rgb(75 27 41 / .6); transition: transform .2s; }
.bk-cover:hover { transform: translateY(-4px) rotate(-1deg); } .bk-cover:focus-visible { outline: 2.5px solid var(--rose); }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; }
.bk-spine { display: grid; align-content: space-between; padding: 2.2rem .8rem 1rem; background: var(--c); color: var(--ink-c, #4B1B29); text-align: center; background-image: linear-gradient(90deg, rgb(0 0 0 / .08) 0 8px, transparent 8px), radial-gradient(circle at 50% 120%, rgb(255 255 255 / .35), transparent 60%); }
.bk-spine b { font: italic 400 1.3rem/1.1 var(--serif); } .bk-spine small { font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.sp-blush { --c: var(--blush); } .sp-sage { --c: var(--sage); } .sp-sky { --c: var(--sky); } .sp-rose { --c: var(--rose); --ink-c: #FBF0EE; } .sp-butter { --c: var(--butter); } .sp-ink { --c: #4B1B29; --ink-c: #FBF0EE; }
.bk-st { position: absolute; top: 8px; right: -6px; padding: .2rem .5rem; border-radius: 4px; font: 650 .6rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--paper); box-shadow: var(--shadow-1); transform: rotate(4deg); }
.st-reading { background: var(--butter); color: #3F1724; } .st-read { background: var(--sage); color: #3C5672; } .st-dnf { background: var(--paper3); }
.bk-t { display: grid; } .bk-t b { font-weight: 650; font-size: .88rem; } .bk-t small { color: var(--ink2); }
.tropes { display: flex; flex-wrap: wrap; gap: .25rem; } .tropes span { font-size: .66rem; padding: .1rem .45rem; border-radius: 99px; background: var(--blush-soft); color: var(--rose-ink); font-weight: 600; }
.quote-wall h2 { margin-bottom: .8rem; }
.qw { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.qn { margin: 0; padding: 1.1rem 1.2rem 1rem; transform: rotate(var(--tilt)); box-shadow: var(--shadow-1); background: var(--c); color: #3F1724; border-radius: 2px 2px 14px 2px; }
.qn p { font: 400 1.82rem/1.2 var(--hand); margin: 0 0 .5rem; } .qn cite { font: 600 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; opacity: .75; }
.qn-0 { --c: #F8EEE4; } .qn-1 { --c: #F1C6D3; } .qn-2 { --c: #DCE6F1; } .qn-3 { --c: #F3E8EF; }
.notes { display: grid; gap: 1.2rem; }
.nw-h { font: italic 400 1.5rem var(--serif); display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; } .nw-h::after { content: ""; flex: 1; border-top: 1.5px dashed var(--hair); }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.nb-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: start; gap: .2rem; padding: 1rem 1rem 1rem 2.6rem; border-radius: 14px; border: 1.5px solid var(--hair); box-shadow: var(--shadow-1); min-height: 150px; background-color: var(--paper); }
.nb-card:hover { border-color: var(--rose); } .nb-card b { font-weight: 650; } .nb-card p { margin: 0; font-size: .85rem; color: var(--ink2); line-height: 1.85rem; } .nb-card small { display: flex; gap: .3rem; align-items: center; color: var(--rose-ink); }

/* ---------- Mindset ---------- */
.vb-wrap { position: relative; }
.vboard { position: relative; aspect-ratio: 16 / 9; min-height: 420px; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--hair); background-color: #F4E5D3; background-image: radial-gradient(rgb(180 106 114 / .12) 1.2px, transparent 1.6px); background-size: 18px 18px; box-shadow: inset 0 0 0 8px rgb(255 253 248 / .6); }
[data-theme="night"] .vboard { background-color: #2A2F38; }
.vb-item { position: absolute; margin: 0; padding: 7px 7px 0; background: #FFFBF8; box-shadow: 0 10px 22px -12px rgb(75 27 41 / .6); transform: rotate(var(--rot)); cursor: grab; touch-action: none; transition: box-shadow .15s; }
.vb-item:hover, .vb-item:focus-visible { box-shadow: 0 0 0 3px var(--blush), 0 16px 30px -12px rgb(75 27 41 / .6); outline: none; }
.vb-item.dragging { cursor: grabbing; opacity: .9; }
.vb-photo { overflow: hidden; } .vb-photo img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.vb-item figcaption { font: 400 1.54rem var(--hand); text-align: center; padding: .3rem .2rem .45rem; color: #3F1724; }
.vb-item:not(:has(figcaption)) { padding-bottom: 7px; }
.vb-tools { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--paper); box-shadow: var(--shadow-1); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.vb-item:hover .vb-tools, .vb-item:focus-within .vb-tools { opacity: 1; pointer-events: auto; }
.vb-size { position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--rose); border: 3px solid #fff; cursor: nwse-resize; opacity: 0; } .vb-item:hover .vb-size { opacity: 1; }
.vb-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; font: 400 2.24rem var(--hand); color: var(--ink2); margin: 0; }
.vb-add { display: inline-flex; gap: .4rem; align-items: center; margin-top: .9rem; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); font-weight: 600; font-size: .86rem; cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
.vb-add:focus-within { outline: 2.5px solid var(--rose); }
.vb-help { display: inline-flex; gap: .3rem; align-items: center; margin-left: 1rem; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.mx-col { display: grid; gap: 1.2rem; padding: 1rem; border-radius: 20px; background: var(--c-soft); }
.mx-0 { --c-soft: var(--blush-soft); } .mx-1 { --c-soft: var(--sage-soft); } .mx-2 { --c-soft: var(--sky-soft); }
.mx-col header { text-align: center; } .mx-k { font: 400 1.82rem var(--hand); color: var(--rose-ink); } .mx-col h2 { font-style: italic; font-size: 2rem; }
.shift h3 { font: 400 1.35rem/1.15 var(--serif); margin: .2rem 0 .3rem; }
.aff-hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 24px; text-align: center; background: radial-gradient(circle at 20% 20%, #7A2E44, transparent 55%), radial-gradient(circle at 85% 80%, #A9B7C6, transparent 50%), #4B1B29; color: #FBF0EE; }
.aff-hero .kick { color: #F1C6D3; }
.aff-big { font: italic 400 clamp(1.9rem, 4.5vw, 3.2rem)/1.12 var(--serif); max-width: 24ch; margin: .8rem auto 1.4rem; }
.aff-hero .star { position: absolute; } .aff-hero .s1 { top: 18%; left: 9%; transform: rotate(-12deg); } .aff-hero .s2 { top: 22%; right: 11%; width: 18px; height: 18px; } .aff-hero .s3 { bottom: 16%; left: 18%; width: 16px; height: 16px; fill: var(--blush); }
.aff-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.aff-ul li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem .9rem; border-radius: 10px; background: var(--paper2); font: italic 400 1.15rem var(--serif); }
.jp-q { font-size: 1.6rem; margin: .3rem 0 .6rem; }
.jr-area { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 11rem; padding: 0 0 0 1.2rem; font: 500 1.3rem/1.85rem var(--hand); color: var(--ink); white-space: pre-wrap; }
.jr-area::placeholder { color: var(--ink3); }
.lined .jr-area { background: transparent; }
.grat-l { margin: .6rem 0 0; padding-left: 1.4rem; display: grid; gap: .5rem; } .grat-l li::marker { font: italic 1.2rem var(--serif); color: var(--rose); }
.grat-l input { all: unset; box-sizing: border-box; width: 100%; padding: .35rem 0; border-bottom: 1.5px dashed var(--hair); font: 400 1.75rem var(--hand); }
.sh-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sh-l li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; background: var(--paper2); font-size: .88rem; }
.pj { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.pj button { display: grid; gap: .2rem; padding: .7rem .8rem; border-radius: 12px; background: var(--paper2); width: 100%; box-sizing: border-box; }
.pj small { color: var(--ink2); }
.pj-k { font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-ink); }

/* ---------- Planners ---------- */
.pl-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pl-nav .pill { font: italic 400 1.2rem var(--serif); padding: .25rem 1rem; }
.day-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.3rem; align-items: start; }
.dg { position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: repeat(var(--rows), 26px); }
.dg-h { grid-column: 1; font-size: .72rem; color: var(--ink3); font-weight: 600; border-top: 1px solid var(--hair); padding-top: 3px; }
.dg-slot { all: unset; grid-column: 2; border-top: 1px solid var(--hair); cursor: copy; } .dg-slot:hover { background: var(--blush-soft); } .dg-slot:focus-visible { outline: 2px solid var(--rose); }
.dg-b { all: unset; box-sizing: border-box; grid-column: 2; z-index: 1; margin: 2px 4px 2px 6px; padding: .35rem .6rem; border-radius: 10px; background: var(--c-soft); border-left: 4px solid var(--c); cursor: pointer; display: grid; align-content: start; overflow: hidden; }
.dg-b b { font-weight: 650; font-size: .84rem; } .dg-b small { color: var(--ink2); font-size: .72rem; }
.dg-b:hover { filter: brightness(.97); } .dg-b:focus-visible { outline: 2.5px solid var(--rose); }
.tn-blush { --c: var(--rose); --c-soft: var(--blush-soft); } .tn-sage { --c: var(--sage); --c-soft: var(--sage-soft); } .tn-sky { --c: var(--sky-ink); --c-soft: var(--sky-soft); } .tn-butter { --c: #D9B04A; --c-soft: var(--butter-soft); } .tn-rose { --c: var(--rose); --c-soft: color-mix(in oklab, var(--rose) 22%, var(--paper)); }
.dg-now { position: absolute; left: 50px; right: 0; height: 2px; background: #D9574B; z-index: 2; pointer-events: none; } .dg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #D9574B; }
.day-side { display: grid; gap: 1.2rem; }
.also { display: flex; gap: .45rem; align-items: center; margin: .3rem 0; font-size: .88rem; padding: .35rem .6rem; border-radius: 8px; background: var(--c-soft, var(--paper2)); }
.also .ic { color: var(--rose); }
.week { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: .6rem; overflow-x: auto; }
.wk-day { position: relative; min-height: 260px; padding: .6rem; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--hair); display: flex; flex-direction: column; gap: .5rem; overflow: hidden; }
.wk-day.today { border-color: var(--rose); box-shadow: 0 0 0 2px var(--blush); }
.wk-ph { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--pc); }
.wk-day header { display: flex; align-items: baseline; gap: .4rem; padding-top: .2rem; } .wk-day header span { font: 600 .66rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); } .wk-day header b { font: 400 1.8rem/1 var(--serif); }
.wk-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ev-chip { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: .3rem .5rem; border-radius: 8px; background: var(--c-soft, var(--paper2)); font-size: .76rem; font-weight: 550; line-height: 1.25; }
.ev-chip small { display: block; color: var(--ink2); font-size: .66rem; }
.wk-add { all: unset; cursor: pointer; margin-top: auto; align-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink3); border: 1.5px dashed var(--hair); } .wk-add:hover { color: var(--rose); border-color: var(--rose); }
.evergreen { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .4rem .3rem .8rem; border-radius: 999px; background: var(--sage-soft); color: var(--sage-ink); font-weight: 600; font-size: .82rem; }
.evergreen select { all: unset; cursor: pointer; font: 400 1.2rem var(--serif); color: var(--ink); padding: 0 1.4rem 0 .4rem; background-position: right .2rem center; }
.quarter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mm { padding: .9rem; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--hair); }
.mm h3 { font: italic 400 1.35rem var(--serif); margin-bottom: .4rem; }
.mm-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mm-h { font-size: .62rem; font-weight: 700; color: var(--ink3); }
.mm-d { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: .74rem; }
.mm-d.has { background: var(--blush-soft); } .mm-d.today { background: var(--ink); color: var(--cream); }
.mm.big .mm-d { aspect-ratio: auto; min-height: 50px; border-radius: 8px; place-items: start center; padding-top: .3rem; align-content: start; gap: .25rem; }
.mm.big .mm-d.has { background: var(--paper2); }
.mm-dots { display: flex; gap: 2px; justify-content: center; } .mm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.k-block { --c: var(--rose); } .k-due { --c: #D9574B; } .k-post { --c: #D9B04A; } .k-trip { --c: var(--sky-ink); } .k-goal { --c: var(--sage); } .k-sub { --c: var(--ink3); } .k-care { --c: #C98FB0; }
.legend2 .k-block, .legend2 .k-due, .legend2 .k-post, .legend2 .k-trip, .legend2 .k-goal, .legend2 .k-care { background: var(--c); }
.yg-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.yg-mini li { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: .8rem; align-items: center; font-size: .88rem; } .yg-mini .meter { margin: 0; }
.rt-grid, .goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; align-items: start; }
.routine h2, .ygoal h2 { font-size: 1.7rem; margin: .2rem 0 .3rem; }
.routine.rt-morning { background: linear-gradient(170deg, var(--butter-soft), var(--paper) 45%); } .routine.rt-evening { background: linear-gradient(170deg, var(--blush-soft), var(--paper) 45%); } .routine.rt-shower { background: linear-gradient(170deg, var(--sky-soft), var(--paper) 45%); }
.yg-p { display: flex; gap: .8rem; align-items: center; } .yg-p b { font: 400 2rem var(--serif); color: var(--rose); } .yg-p .meter { flex: 1; }

/* ---------- Lifestyle ---------- */
.trip-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.trip-tabs .chip { background: var(--paper); border: 1.5px solid var(--hair); color: var(--ink); }
.trip-tabs .chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pass { display: grid; grid-template-columns: 1fr 210px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-1); border: 1.5px solid var(--hair); background: var(--paper);
  -webkit-mask: radial-gradient(circle 14px at calc(100% - 210px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at calc(100% - 210px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 14px at calc(100% - 210px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at calc(100% - 210px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.pass-main { padding: 1.4rem 1.8rem; background: linear-gradient(120deg, var(--sky-soft), var(--paper) 60%); }
.pass-dest { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); margin: .3rem 0 .9rem; letter-spacing: -.02em; }
.pass-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: .6rem; }
.pass-row > span { display: grid; } .pass-row small { font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); } .pass-row b { font: 400 1.5rem var(--serif); }
.pass-l { display: flex; gap: .5rem; align-items: center; margin: .3rem 0 0; font-size: .88rem; } .pass-l .ic { color: var(--sky-ink); }
.pass-stub { display: grid; justify-items: center; align-content: center; gap: .1rem; padding: 1.2rem; border-left: 2px dashed var(--hair); background: var(--blush-soft); text-align: center; }
.pass-n { font: 400 4.2rem/1 var(--serif); color: var(--rose); } .pass-stub small { color: var(--ink2); font-weight: 600; }
.barcode { width: 120px; height: 34px; margin-top: .6rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .8; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem 1.1rem; padding: .4rem .2rem; }
.mb-add { min-height: 150px; }
.itin-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: it; }
.itin-l li { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; padding: .6rem .7rem; border-radius: 12px; background: var(--paper2); font-size: .88rem; }
.it-d { display: grid; font: italic 400 1.2rem/1 var(--serif); color: var(--rose); } .it-d small { font: 600 .66rem var(--sans); color: var(--ink2); letter-spacing: .06em; margin-top: .2rem; }
.hit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.3rem; align-items: start; }
.hit-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.hit-l li { display: flex; gap: .7rem; align-items: center; padding: .45rem; border-radius: 12px; background: var(--paper2); }
.hit-l li.done { opacity: .6; } .hit-l li.done b { text-decoration: line-through; }
.hit-img { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; } .hit-img img { width: 100%; height: 100%; object-fit: cover; }
.hit-img.ph { background: var(--blush-soft); color: var(--rose-ink); }
.hit-l .stars .ic { width: 12px; height: 12px; }
.bucket-hero { text-align: center; padding: 1.2rem; }
.bh-n { font: 400 1.6rem var(--serif); margin: .3rem 0; } .bh-n b { font-size: 3.6rem; color: var(--rose); font-weight: 400; }
.bucket-hero .meter { max-width: 420px; margin: .4rem auto; height: 10px; }
.bk-l { list-style: none; margin: 0; padding: 0 0 0 1.4rem; display: grid; }
.bk-l li { display: flex; gap: .7rem; align-items: center; min-height: 1.85rem; padding: .25rem 0; font-size: .95rem; }
.bk-l li small { color: var(--ink2); margin-left: auto; }
.bk-box { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink3); color: transparent; background: var(--paper); }
.bk-box .ic { width: 14px; height: 14px; } .bk-l li.done .bk-box { background: var(--rose); border-color: var(--rose); color: #fff; } .bk-l li.done b { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink2); }

/* ---------- Style & Beauty ---------- */
.closet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; }
.piece { display: grid; gap: .4rem; align-content: start; }
.pc-img { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--paper2); border: 1.5px solid var(--hair); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .pc-img:hover img { transform: scale(1.04); } .pc-img.ph { color: var(--ink3); } .pc-img .ic { width: 30px; height: 30px; }
.pc-img:focus-visible { outline: 2.5px solid var(--rose); }
.pc-t { display: grid; } .pc-t b { font-weight: 650; font-size: .86rem; } .pc-t small { color: var(--ink2); }
.pc-add { aspect-ratio: 3 / 4; }
.outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; align-items: start; }
.of-top { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: start; margin-bottom: .8rem; }
.of-pol { width: 100%; } .of-drop { min-height: 150px; }
.of-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; align-content: start; }
.of-pc { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--paper2); display: grid; place-items: center; text-align: center; } .of-pc img { width: 100%; height: 100%; object-fit: cover; }
.of-pc i { color: var(--ink3); } .of-pc small { font-size: .6rem; padding: 0 .2rem; }
.of-pick { border: 0; padding: 0; margin: .4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; max-height: 320px; overflow-y: auto; }
.of-pick legend { font-size: .82rem; font-weight: 600; color: var(--ink2); margin-bottom: .4rem; }
.of-p { position: relative; display: grid; gap: .2rem; cursor: pointer; font-size: .7rem; text-align: center; }
.of-p input { position: absolute; opacity: 0; }
.of-pi { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--paper2); border: 2px solid transparent; } .of-pi img { width: 100%; height: 100%; object-fit: cover; }
.of-p:has(input:checked) .of-pi { border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush); }
.of-p:has(input:focus-visible) .of-pi { outline: 2.5px solid var(--rose); }
.care-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.care h3 { font: 400 1.4rem var(--serif); margin: .2rem 0; }
.care-n { display: grid; margin: .4rem 0 0; } .care-n b { font: 400 1.89rem var(--hand); } .care-n small { color: var(--ink2); }
.care.c-late { border-color: var(--rose); background: linear-gradient(170deg, var(--blush-soft), var(--paper) 55%); } .care.c-late .care-n b { color: #C0434A; }
.care.c-soon { background: linear-gradient(170deg, var(--butter-soft), var(--paper) 55%); }
.skin-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.skin-l li { display: flex; gap: .7rem; align-items: center; padding: .5rem .6rem; border-radius: 12px; background: var(--paper2); }
.sk-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); font: italic 1.1rem var(--serif); color: var(--rose); flex: none; }
.skin-r .card-head h2 { display: flex; gap: .4rem; align-items: center; }

/* ---------- Analytics ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.kpi { display: grid; gap: .1rem; padding: .9rem 1rem; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--hair); box-shadow: inset 0 4px 0 var(--c); }
.kpi b { font: 400 2rem/1.05 var(--serif); } .kpi small { color: var(--ink2); font-size: .72rem; }
.k-0 { --c: var(--rose); } .k-1 { --c: var(--sage); } .k-2 { --c: var(--sky); } .k-3 { --c: #B992C9; } .k-4 { --c: var(--blush); } .k-5 { --c: var(--butter); }
.an-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; margin-bottom: 1.4rem; }
.an-bal { grid-column: span 6; } .an-heat { grid-column: span 6; } .an-nw, .an-wo { grid-column: span 3; } .an-ms { grid-column: span 4; } .an-rd { grid-column: span 2; }
.bal { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 1.6rem; align-items: center; }
.bal-side { display: grid; gap: .4rem; }
.bal-row { display: grid; grid-template-columns: 170px 1fr 30px; gap: .8rem; align-items: center; font-size: .88rem; font-weight: 600; }
.bal-row small { font-weight: 500; } .bal-row output { font: 400 1.4rem var(--serif); color: var(--rose); text-align: right; }
.radar-chart svg { max-width: 380px; margin: 0 auto; }
.radar-ring { fill: none; stroke: var(--hair); stroke-width: 1; } .radar-ring:last-of-type { stroke: var(--ink3); }
.radar-spoke { stroke: var(--hair); }
.radar-area { fill: color-mix(in oklab, var(--c) 35%, transparent); stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; } .radar-area.prev { fill: color-mix(in oklab, var(--c) 18%, transparent); stroke-dasharray: 5 4; }
.radar-label { font: 600 12px var(--sans); fill: var(--ink); }
.heat-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.an-year { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; font-weight: 600; color: var(--ink2); }
.heat-scroll { overflow-x: auto; padding-bottom: .4rem; }
.heat { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto 1fr; gap: 4px 6px; min-width: 760px; }
.heat-m { grid-column: 2; display: grid; grid-template-columns: repeat(var(--weeks), 1fr); font-size: .66rem; font-weight: 600; color: var(--ink2); }
.heat-d { grid-row: 2; display: grid; grid-template-rows: repeat(7, 1fr); font-size: .6rem; color: var(--ink3); gap: 3px; } .heat-d span { line-height: 1; align-self: center; }
.heat-g { grid-column: 2; display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.heat-g i { aspect-ratio: 1; border-radius: 3px; background: var(--paper3); }
.heat-g i.pad, .heat-g i.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); } .heat-g i.pad { box-shadow: none; }
.heat-g i.l0 { background: var(--paper3); } .heat-g i.l1 { background: #F4D6DC; } .heat-g i.l2 { background: #E9A9B5; } .heat-g i.l3 { background: #CF8590; } .heat-g i.l4 { background: #7A2E44; }
.heat-g i.now { outline: 2px solid var(--ink); outline-offset: 1px; }
[data-theme="night"] .heat-g i.l1 { background: #5A3F4A; } [data-theme="night"] .heat-g i.l2 { background: #7E5160; }
.heat-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: .7rem; font-size: .84rem; color: var(--ink2); } .heat-foot b { font: 400 1.3rem var(--serif); color: var(--ink); }
.heat-key { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; font-size: .72rem; } .heat-key i { width: 12px; height: 12px; border-radius: 3px; }
.heat-key .l0 { background: var(--paper3); } .heat-key .l1 { background: #F4D6DC; } .heat-key .l2 { background: #E9A9B5; } .heat-key .l3 { background: #CF8590; } .heat-key .l4 { background: #7A2E44; }
.streak-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.streak-l li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 .6rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: var(--paper2); }
.streak-l li b { font-size: .88rem; font-weight: 600; } .streak-l .num { grid-row: span 2; font: 400 2rem var(--serif); color: var(--rose); } .streak-l small { grid-column: 2; color: var(--ink2); }
.sk-ic { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blush-soft); color: var(--rose-ink); } .sk-ic .ic { width: 16px; height: 16px; }

/* ---------- Settings and the guide ---------- */
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--hair); flex-wrap: wrap; }
.sr-t { display: grid; } .sr-t small { color: var(--ink2); }
.set-in { width: min(240px, 100%); } .set-save { display: flex; justify-content: flex-end; margin-top: .8rem; }
.tsizes { display: flex; gap: 4px; } .tsizes button { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--hair); font-family: var(--serif); }
.tsizes button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.box .rows .sk-ic { grid-row: auto; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.guide-card { display: grid; gap: .3rem; align-content: start; transition: transform .15s; } .guide-card:hover { transform: translateY(-2px); border-color: var(--rose); }
.g-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blush-soft); color: var(--rose-ink); } .g-ic .ic { width: 20px; height: 20px; }
.guide-card b { font: 400 1.5rem var(--serif); } .guide-card p { margin: 0; color: var(--ink2); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem; } .keys li { display: flex; gap: .7rem; align-items: center; font-size: .88rem; }

/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; } .chart .base { stroke: var(--ink3); stroke-width: 1.5; }
.chart .axis { fill: var(--ink2); font: 500 11.5px var(--sans); }
.chart .hit { fill: transparent; } .chart .mark:focus { outline: none; } .chart .mark:focus .bar-mark, .chart .mark:hover .bar-mark { opacity: .78; }
.c1 { --c: var(--rose); } .c2 { --c: var(--sage); } .c3 { --c: var(--sky); } .c4 { --c: var(--blush); } .c5 { --c: var(--butter); } .c6 { --c: var(--ink2); }
.c1-t { fill: var(--rose) !important; } .c3-t { fill: var(--sky-ink) !important; }
.bar-mark { fill: var(--c, var(--rose)); } .bar-mark.soft { opacity: .75; }
.line-mark { fill: none; stroke: var(--c, var(--rose)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .dot-mark { fill: var(--paper); stroke: var(--c, var(--rose)); stroke-width: 2.5; }
.donut-seg { fill: var(--c); } .donut-empty { fill: none; stroke: var(--paper2); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; color: var(--ink2); font-weight: 600; font-size: .78rem; }
.legend span { display: flex; align-items: center; gap: .4rem; } .key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.tip { position: fixed; z-index: 4500; transform: translate(-50%, -100%); background: #4B1B29; color: #FBF0EE; padding: .4rem .65rem; border-radius: 8px; font-size: .78rem; font-weight: 600; pointer-events: none; white-space: nowrap; }

/* ---------- Modal, toasts ---------- */
dialog#modal { border: 1.5px solid var(--hair); border-radius: 22px; padding: 0; background: var(--paper); color: var(--ink); width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 40px 100px -30px rgb(75 27 41 / .55); }
dialog#modal.narrow { width: min(470px, calc(100vw - 24px)); } dialog#modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog#modal.photo { width: min(1100px, calc(100vw - 16px)); background: #1E0D13; color: #fff; border-color: #1E0D13; }
dialog#modal::backdrop { background: rgb(75 27 41 / .4); backdrop-filter: blur(4px); }
.modal-inner { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.1rem .3rem 1.5rem; }
.modal-head h2 { font-size: 1.9rem; }
.modal-body { padding: .8rem 1.5rem 1.1rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .9rem 1.5rem 1.3rem; border-top: 1px dashed var(--hair); }
.modal-foot .right { display: flex; gap: .5rem; margin-left: auto; }
.quick-modal { padding: 1.4rem 1.5rem 1.5rem; overflow-y: auto; gap: .9rem; }
.q-h { font-size: 2rem; } .lm-close { position: absolute; top: .7rem; right: .7rem; }
.q-tabs { display: flex; gap: .3rem; padding: 3px; border-radius: 999px; background: var(--paper2); }
.q-tab { all: unset; cursor: pointer; flex: 1; display: flex; gap: .35rem; justify-content: center; align-items: center; padding: .5rem; border-radius: 999px; font-weight: 600; font-size: .84rem; color: var(--ink2); }
.q-tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.q-form { display: grid; gap: .8rem; }
.dump-in { font: 400 1.82rem/1.6 var(--hand); min-height: 10rem; }
.q-tones { display: flex; flex-wrap: wrap; gap: .4rem; }
.q-tone { cursor: pointer; } .q-tone input { position: absolute; opacity: 0; } .q-tone span { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--c-soft); border: 2px solid transparent; font-size: .8rem; font-weight: 600; }
.q-tone input:checked + span { border-color: var(--c); } .q-tone input:focus-visible + span { outline: 2.5px solid var(--rose); }
#toasts { position: fixed; z-index: 3000; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: .5rem; align-items: center; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: center; background: #4B1B29; color: #FBF0EE; padding: .8rem 1rem; border-radius: 16px; box-shadow: var(--shadow-2); font-weight: 500; font-size: .9rem; width: 100%; animation: toastIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.toast::before { content: "✦"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #F1C6D3; color: #7A2E44; font-size: .9rem; }
.toast.err::before { content: "!"; background: #E8D2BD; color: #3F1724; font-weight: 800; }
.toast button { all: unset; cursor: pointer; color: #F1C6D3; font-weight: 700; margin-left: auto; }
@keyframes toastIn { from { transform: translateY(18px) scale(.96); opacity: 0; } }

/* ---------- Photos, the editor and the lightbox ---------- */
img.missing { background: repeating-linear-gradient(45deg, var(--paper2) 0 8px, var(--hair) 8px 16px); }
.ed-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.ed-ph { position: relative; margin: 0; width: 104px; height: 104px; border-radius: 12px; overflow: hidden; } .ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: var(--paper); width: 28px; height: 28px; }
.ed-add { width: 104px; height: 104px; border: 2px dashed color-mix(in oklab, var(--rose) 45%, transparent); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; cursor: pointer; font-size: .74rem; font-weight: 650; padding: .4rem; background: var(--blush-soft); color: var(--rose-ink); }
.ed-add .ic { width: 22px; height: 22px; } .ed-add.busy { opacity: .6; }
.pdf-chip { display: inline-flex; gap: .3rem; align-items: center; }
.lightbox { position: relative; padding: 2.8rem 3.2rem 1.2rem; }
.lightbox figure { margin: 0; } .lightbox img { max-height: calc(100dvh - 200px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 6px; border: 8px solid #FFFBF8; border-bottom-width: 30px; }
.lightbox figcaption { display: flex; gap: 1rem; justify-content: center; align-items: baseline; padding: .8rem 0 0; flex-wrap: wrap; } .lightbox .hand { font: 400 2.24rem var(--hand); }
.lightbox .icon-btn { color: #fff; } .lightbox .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lb-close { position: absolute; top: .6rem; right: .6rem; } .lb-prev, .lb-next { position: absolute; top: 45%; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
.lb-tools { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; } .lb-tools .btn { --b: #FBF0EE; color: #3F1724; border-color: #FBF0EE; box-shadow: none; } .lb-tools .btn.ghost { --b: transparent; color: #FBF0EE; }

/* ---------- Feedback ---------- */
.pop { position: fixed; z-index: 4000; pointer-events: none; width: 0; height: 0; }
.pop i { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: popOut .9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes popOut { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 30px)) scale(.6); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall var(--d) cubic-bezier(.25, .6, .45, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 108vh) rotate(var(--r)); } }
.spk { display: inline-block; }
.drop-over { outline: 2px dashed var(--rose) !important; outline-offset: 3px; }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.auth-art { position: relative; display: grid; place-items: center; padding: clamp(1.6rem, 5vw, 4rem); background: var(--paper2); border-right: 1px solid var(--hair); color: var(--ink); }
.aa-page { width: min(520px, 100%); padding: 2.4rem 2.2rem; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-2); }
.aa-title { display: block; font: 700 2.6rem var(--serif); margin-bottom: 1rem; }
.aa-lede { margin: 0 0 1.4rem; padding: .7rem 1rem; font: 400 .98rem/1.5 var(--serif); }
.aa-folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.aa-sub { margin: 0; color: var(--ink2); font-size: .92rem; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 1rem; background: var(--paper); border: 1.5px solid var(--hair); border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-1); }
.auth-card h2 { font-size: 2.6rem; }
.key-input { letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1560px) {
  .hn .ic { display: none; } .hn { padding: .42rem .65rem; } .search { width: 150px; }
}
@media (max-width: 1180px) {
  .search { width: 130px; }
  .home-row { grid-template-columns: 1fr 1fr; } .home-row .phase { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .an-nw, .an-wo, .an-ms, .an-rd { grid-column: span 3; }
  .phase-grid { grid-template-columns: 1fr 1fr; }
  .year-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hubnav { display: none; } .menu-btn { display: grid; } .tb-tools { margin-left: auto; }
  .two-col, .two-col.wide-left, .two-col.wide-right, .home-row.two, .day-cols, .set-cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .bal { grid-template-columns: 1fr; }
  .cyc-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ch-cols { text-align: left; } .ch-next { justify-content: center; }
  .quarter { grid-template-columns: 1fr; } .year-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 46vh; }
}
@media (max-width: 720px) {
  body { font-size: .92rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.on-welcome { padding-bottom: 0; }
  .search { display: none; }
  .topbar { padding: .5rem .8rem; }
  .hub { padding: 1rem .7rem 2rem; }
  .tab-body { padding: 1rem .6rem 1.1rem; border-radius: 0 16px 16px 16px; gap: 1rem; }
  .card { padding: 1rem; }
  .hh-title { font-size: 2.5rem; }
  .home-row { grid-template-columns: 1fr; }
  .habits { grid-template-columns: 1fr; }
  .cover { height: 210px; } .cover-text { max-width: 86%; }
  .tiles { gap: .6rem; } .tile b { font-size: 1.7rem; }
  .agenda { padding: 1.1rem 1.2rem; }
  .ch-cols { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: repeat(4, 1fr); }
  .sleep-log { grid-template-columns: repeat(4, 1fr); }
  .groc-list { columns: 1; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .an-grid { grid-template-columns: 1fr; } .an-grid > * { grid-column: auto !important; }
  .bal-row { grid-template-columns: 1fr 1.2fr 26px; }
  .pass { grid-template-columns: 1fr; -webkit-mask: none; mask: none; } .pass-stub { border-left: 0; border-top: 2px dashed var(--hair); grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .pass-main { padding: 1.2rem; }
  .of-top { grid-template-columns: 110px 1fr; }
  .vboard { aspect-ratio: 3 / 4; min-height: 0; }
  .year-grid { grid-template-columns: 1fr; }
  .nw-hero { padding: 1.2rem; }
  .now-reading { grid-template-columns: 90px 1fr; }
  .shelf, .closet { grid-template-columns: repeat(2, 1fr); gap: 1.2rem .9rem; }
  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1.5px solid var(--hair); }
  .tabbar a, .tabbar button:not(.fab) { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; font-size: .66rem; font-weight: 600; color: var(--ink2); padding: .2rem 0; }
  .tabbar .ic { width: 22px; height: 22px; } .tabbar [aria-current="page"] { color: var(--rose); }
  .fab { all: unset; cursor: pointer; justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--cream); box-shadow: 0 6px 16px -6px rgb(75 27 41 / .6); margin-top: -18px; }
  .lightbox { padding: 2.6rem .6rem 1rem; }
  #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
.jr-prompt.lined, .jr-morning.lined { background-image: none; }
.jr-area { background: repeating-linear-gradient(transparent 0 calc(1.85rem - 1px), var(--hair) calc(1.85rem - 1px) 1.85rem) local !important; border-left: 2px solid color-mix(in oklab, var(--blush) 70%, transparent); padding-left: .9rem; margin-top: .4rem; }
.cyc-form { display: grid; gap: .8rem; }
ol.t3.mini li.done { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink2); }
@media (max-width: 720px) {
  .cover::after { background: linear-gradient(180deg, rgb(255 247 230 / .9), rgb(255 247 230 / .78)); }
  [data-theme="night"] .cover::after { background: rgb(28 38 48 / .86); }
  .cover-text { top: 1.1rem; transform: none; } .cv-hi { font-size: 2.3rem; } .cv-aff { font-size: 1.15rem; }
  .vibe .polaroid { max-width: 190px; }
}
.nw-hero { padding-top: 2.2rem; }
@media (max-width: 720px) {
  .ch-next { display: block; }
  .acc-grid { grid-template-columns: 1fr 1fr; gap: .7rem; } .acc { padding: .8rem; } .acc-v { font-size: 1.4rem; }
  .nw-split > span { min-width: 0; flex: 1 1 40%; }
}
[data-theme="night"] .demo-band { background: #141C24; color: #FBF0EE; }
@media (max-width: 1400px) { .hn { font-size: .76rem; padding: .4rem .55rem; } .search { width: 120px; } .topbar { gap: .6rem; } }
@media (max-width: 1260px) { .hubnav { display: none; } .menu-btn { display: grid; } .tb-tools { margin-left: auto; } .search { width: 200px; } }

/* Click a date: the day peek */
button.mm-d { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: .74rem; }
button.mm-d:hover { background: var(--blush); color: #3F1724; } button.mm-d:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
button.mm-d.has { background: var(--blush-soft); } button.mm-d.today { background: var(--ink); color: var(--cream); }
.mm.big button.mm-d { aspect-ratio: auto; min-height: 50px; border-radius: 8px; place-items: start center; padding-top: .3rem; align-content: start; gap: .25rem; }
.mm.big button.mm-d.has { background: var(--paper2); } .mm.big button.mm-d:hover { background: var(--blush-soft); }
.day-link { text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--rose-ink); }
.peek { display: grid; gap: .35rem; }
.pk-phase { display: flex; gap: .4rem; align-items: center; margin: 0 0 .3rem; padding: .45rem .7rem; border-radius: 10px; background: var(--pc-soft, var(--paper2)); font-size: .86rem; font-weight: 550; }
.pk-h { font: 600 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin: .7rem 0 .2rem; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pk-row { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; background: var(--c-soft, var(--paper2)); }
.pk-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); color: var(--c-ink, var(--rose-ink)); } .pk-ic .ic { width: 15px; height: 15px; }

/* =====================================================================
   HELM layer: Notion-style components (kept last so it wins)
   ===================================================================== */
body { background: var(--cream); color: var(--ink); font: 400 15px/1.55 var(--sans); }
::selection { background: rgb(35 131 226 / .22); color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.kick { font: 600 .68rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
/* Notion colours: callouts (soft), tags (stronger), dots */
.c-gray { --c: var(--cg); --t: var(--tg); } .c-brown { --c: var(--cb); --t: var(--tb); } .c-orange { --c: var(--co); --t: var(--to); } .c-yellow { --c: var(--cy); --t: var(--ty); } .c-green { --c: var(--cgr); --t: var(--tgr); }
.c-blue { --c: var(--cbl); --t: var(--tbl); } .c-purple { --c: var(--cp); --t: var(--tp); } .c-pink { --c: var(--cpk); --t: var(--tpk); } .c-red { --c: var(--cr); --t: var(--tr); }
.callout { background: var(--c, var(--cg)); border-radius: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--t); }
.tag { border: 0; border-radius: 4px; padding: .1rem .45rem; font: 500 .74rem/1.5 var(--sans); background: var(--tg); color: var(--ink); text-transform: none; letter-spacing: 0; }
.tag.t-yellow { background: var(--ty); } .tag.t-blue { background: var(--tbl); } .tag.t-green { background: var(--tgr); } .tag.t-pink { background: var(--tpk); } .tag.t-red { background: var(--tr); }
.tag.late { background: var(--tr); color: var(--ink); } .tag.soon { background: var(--ty); color: var(--ink); } .tag.planned { background: var(--tbl); color: var(--ink); }

/* Top bar: a breadcrumb, search and a few quiet buttons */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .6rem; height: 46px; padding: 0 clamp(.7rem, 2vw, 1.2rem); background: color-mix(in oklab, var(--cream) 94%, transparent); backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid transparent; }
.crumbs { display: flex; align-items: center; gap: .35rem; min-width: 0; font-size: .88rem; }
.tb-brand { text-decoration: none; color: inherit; flex: none; padding: .2rem .35rem; border-radius: 5px; } .tb-brand:hover { background: var(--paper3); }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font: 600 .9rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.wordmark svg { width: 22px; height: 22px; } [data-theme="night"] .wordmark rect { fill: #E3E2DF; } [data-theme="night"] .wordmark g, [data-theme="night"] .wordmark circle:last-child { stroke: #191919; } [data-theme="night"] .wordmark circle:last-child { fill: #191919; }
.wordmark i { display: none; }
.cr-sep { color: var(--ink3); } .cr-here { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .35rem; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cr-here .ic { width: 15px; height: 15px; color: var(--ink2); }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.tb-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 0; background: transparent; color: var(--ink2); }
.tb-btn:hover, .tb-btn[aria-current="page"] { background: var(--paper3); color: var(--ink); } .tb-btn .ic { width: 18px; height: 18px; }
.search { height: 32px; border-radius: 6px; background: var(--paper2); border: 1px solid var(--hair); color: var(--ink3); width: 200px; padding: 0 .6rem; }
.search input { color: var(--ink); font-size: .85rem; } .search input::placeholder { color: var(--ink3); } .search:focus-within { border-color: var(--blue); }
.search-res { border-radius: 8px; border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
.menu-btn { display: none; }
.demo-band { background: var(--paper2); color: var(--ink); border-bottom: 1px solid var(--hair); font-size: .8rem; }
.demo-band a, .demo-band .demo-cta { color: var(--blue); }

/* The page: icon, serif title, hub links, then the description as a callout */
.hub { width: 100%; max-width: 1320px; margin: 0 auto; padding: 2.2rem clamp(1rem, 4vw, 3.4rem) 4rem; }
.hub-head { display: block; margin: 0 0 1.6rem; padding: 0; border: 0; }
.pg-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--c); color: var(--ink); margin-bottom: .7rem; }
.pg-icon .ic { width: 34px; height: 34px; }
.hh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hh-title { font: 700 clamp(2rem, 4vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); text-transform: none; }
.hh-title em { font: inherit; color: inherit; margin: 0; transform: none; display: inline; }
.hh-kick { display: none; }
.hh-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.hubrow { display: flex; gap: .2rem; flex-wrap: wrap; margin: .9rem 0 0; padding: .5rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.hubrow a { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .55rem; border-radius: 5px; color: var(--ink2); text-decoration: none; font-size: .84rem; white-space: nowrap; }
.hubrow a .ic { width: 15px; height: 15px; } .hubrow a:hover { background: var(--paper3); color: var(--ink); }
.hubrow a[aria-current="page"] { background: var(--paper3); color: var(--ink); font-weight: 600; }
.hh-lede { max-width: none; margin: 1rem 0 0; padding: .75rem 1rem; color: var(--ink); font: 400 .95rem/1.5 var(--serif); }
.hh-lede i { font-style: italic; }

/* Hubs with pages: the page's own sidebar on the left */
.hub:has(> .pg-side) { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 2rem; align-items: start; }
.hub:has(> .pg-side) > .hub-head { grid-column: 1 / -1; }
.hub:has(> .pg-side) > :not(.hub-head):not(.pg-side):not(.banner) { grid-column: 2; }
.pg-side { grid-column: 1; grid-row: 2 / span 20; display: grid; gap: 1rem; position: sticky; top: 60px; }
.side-block { padding: .75rem .8rem .85rem; border-radius: 6px; border: 1px solid var(--hair); }
.side-block.callout { border-color: transparent; }
.side-block h3 { display: flex; align-items: center; gap: .4rem; font: 600 .86rem var(--sans); margin: 0 0 .45rem; color: var(--ink); }
.side-block h3 .ic { width: 15px; height: 15px; color: var(--ink2); }
.side-block p { margin: 0; font-size: .86rem; color: var(--ink2); }
.ftabs { display: grid; gap: 1px; margin: 0; padding: 0; overflow: visible; }
.ftab { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .32rem .45rem; border-radius: 5px; font-size: .87rem; color: var(--ink); border: 0; min-height: 0; text-transform: none; letter-spacing: 0; background: none; transform: none; }
.ftab::after { content: none !important; } .ftab .ic { width: 16px; height: 16px; color: var(--ink2); }
.ftab:hover { background: var(--paper3); } .ftab[aria-current="page"] { background: var(--paper3); font-weight: 600; }
.ftab:focus-visible { outline: 2px solid var(--blue); }
.ql { display: grid; gap: .3rem; }
.ql a, .ql button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .3rem .55rem; border-radius: 5px; background: var(--paper); border: 1px solid var(--hair); font-size: .82rem; color: var(--ink); box-shadow: var(--shadow-1); }
.ql a:hover, .ql button:hover { background: var(--paper2); } .ql .ic { width: 14px; height: 14px; color: var(--ink2); }
.ql a:focus-visible, .ql button:focus-visible { outline: 2px solid var(--blue); }
.np-text { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 9rem; font: 400 .86rem/1.85rem var(--sans); color: var(--ink); background: repeating-linear-gradient(transparent 0 calc(1.85rem - 1px), color-mix(in oklab, var(--ink) 12%, transparent) calc(1.85rem - 1px) 1.85rem); white-space: pre-wrap; }
.np-text::placeholder { color: var(--ink3); } .np-text:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab-body { display: grid; gap: 1.3rem; padding: 0; background: none; border: 0; border-radius: 0; }

/* Blocks: cards become Notion blocks with a database-style header bar */
.card, .win { background: var(--paper); border: 1px solid var(--hair); border-radius: 8px; box-shadow: none; padding: 1rem 1.1rem 1.1rem; }
.card > .card-head, .box > .box-head { margin: -1rem -1.1rem .8rem; padding: .5rem 1.1rem; background: var(--paper2); border-bottom: 1px solid var(--hair); border-radius: 8px 8px 0 0; }
.card-head h2, .box h2, .win-bar b { font: 600 1.05rem/1.3 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); }
.card-head h2 .ic { color: var(--ink2); }
.win { padding: 0; overflow: hidden; } .win-body { padding: 1rem 1.1rem 1.1rem; }
.win-bar { padding: .5rem 1.1rem; background: var(--paper2); border-bottom: 1px solid var(--hair); color: var(--ink); }
.win-bar b { text-align: left; } .win-bar::before, .win-bar::after, .win-dots, .win-btns { display: none !important; content: none !important; }
.card.new { border: 1px dashed var(--hair); border-radius: 8px; color: var(--ink2); } .card.new b { font: 600 1rem var(--serif); color: var(--ink); } .card.new:hover { background: var(--paper2); color: var(--ink); border-color: var(--ink3); }
.tape, .pclip, .card .star, .spark { display: none !important; }
.receipt::after, .receipt::before { display: none; } .receipt { border-bottom: 1px solid var(--hair); border-radius: 8px; margin-bottom: 0; }
.ticket { -webkit-mask: none; mask: none; }
.lined { background-image: none; }
.sticker { position: absolute; top: .6rem; right: .6rem; padding: .1rem .45rem; border-radius: 4px; outline: 0; box-shadow: none; border: 0; transform: none; background: var(--ty); color: var(--ink); font: 500 .74rem var(--sans); text-transform: none; letter-spacing: 0; }
.st-sage { background: var(--tgr); } .st-blush { background: var(--tpk); } .st-sky { background: var(--tbl); }
.oval { border-radius: 4px; outline: 0; box-shadow: none; border: 0; background: var(--tg); color: var(--ink); font: 500 .8rem var(--sans); text-transform: none; padding: .2rem .5rem; }
/* Buttons, chips, view tabs */
.btn { border-radius: 6px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); font: 500 .85rem/1.2 var(--sans); padding: .42rem .8rem; box-shadow: var(--shadow-1); text-transform: none; letter-spacing: 0; }
.btn:hover { background: var(--paper2); transform: none; } .btn:active { transform: none; }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; } .btn.solid:hover { background: #1A6FC4; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--paper3); }
.btn.sm { padding: .28rem .6rem; font-size: .8rem; box-shadow: var(--shadow-1); }
.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--hair); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 0; border: 0; background: none; border-radius: 0; }
.segs button { padding: .25rem .6rem; border-radius: 5px; font: 500 .84rem var(--sans); color: var(--ink2); }
.segs button:hover { background: var(--paper3); color: var(--ink); }
.segs button[aria-pressed="true"] { background: var(--paper3); color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 5px 5px 0 0; }
.chip { border-radius: 4px; padding: .15rem .5rem; font: 500 .8rem var(--sans); background: var(--tg); color: var(--ink); border: 0; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--cream); }
.input { border-radius: 6px; border: 1px solid var(--hair); background: var(--paper); box-shadow: inset 0 1px 1px rgb(15 15 15 / .03); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(35 131 226 / .18); outline: none; }
.u-link { color: var(--ink2); text-decoration-color: var(--hair); } .u-link:hover { color: var(--ink); }
.empty-note { border: 1px dashed var(--hair); border-radius: 8px; background: transparent; }
/* Photos: gallery cards instead of polaroids */
.polaroid { transform: none !important; padding: 0; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: none; color: var(--ink); }
.polaroid figcaption { font: 500 .86rem/1.3 var(--sans); text-align: left; padding: .55rem .7rem; min-height: 0; color: var(--ink); }
.polaroid:not(:has(figcaption)) { padding-bottom: 0; }
.pdrop { border: 1px dashed var(--ink3); border-radius: 8px; background: var(--paper2); color: var(--ink2); } .pdrop:hover, .pdrop.drop-over { background: var(--paper3); }
.pd-ic { background: var(--paper); color: var(--ink2); border-radius: 6px; }
/* Stat tiles: plain gallery cards */
.tile { -webkit-mask: none !important; mask: none !important; border: 1px solid var(--hair) !important; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: none; }
.tile:hover { background: var(--paper2); transform: none; }
.tile b { font: 600 1.7rem/1.1 var(--serif); } .tile em { font: italic 400 1.05rem var(--serif); }
.tl-blush { border-top: 3px solid var(--tpk) !important; } .tl-sage { border-top: 3px solid var(--tgr) !important; } .tl-sky { border-top: 3px solid var(--tbl) !important; } .tl-butter { border-top: 3px solid var(--ty) !important; }
.meter { border-radius: 99px; } .hb-meter { border-radius: 99px; }

/* ---------- Home ---------- */
.folders { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.8rem; }
.folder { display: grid; justify-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.fd-art { position: relative; width: 100%; max-width: 116px; aspect-ratio: 5 / 4; border-radius: 3px 8px 6px 6px; background: linear-gradient(170deg, #D2B48C, #BE9A6C); box-shadow: inset 0 -6px 12px rgb(0 0 0 / .08), 0 6px 14px -8px rgb(60 40 20 / .5); display: grid; place-items: center; transition: transform .15s; }
.fd-tab { position: absolute; left: 6%; top: -9%; width: 38%; height: 14%; border-radius: 4px 4px 0 0; background: #C9A87C; }
.fd-label { width: 74%; padding: .45rem .3rem; background: #FBF8F2; box-shadow: 0 1px 2px rgb(0 0 0 / .15); font: italic 500 clamp(.72rem, 1vw, .92rem)/1.1 var(--serif); color: #4A3B2A; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder:hover .fd-art { transform: translateY(-3px); }
.fd-name { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink2); text-align: center; line-height: 1.2; }
.fd-name .dot { flex: none; width: 8px; height: 8px; }
.folder:focus-visible { outline: none; } .folder:focus-visible .fd-art { outline: 2px solid var(--blue); outline-offset: 3px; }
.home-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 290px; gap: 1.6rem; align-items: start; }
.hg-left, .hg-right { display: grid; gap: 1rem; position: sticky; top: 60px; }
.hg-main { display: grid; gap: 1.3rem; min-width: 0; }
.side-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--paper2); border: 1px solid var(--hair); }
.side-photo > img, .side-photo .ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink3); } .sp-ph .ic { width: 40px; height: 40px; }
.side-photo .cover-btn { position: absolute; left: 8px; right: auto; bottom: 8px; display: inline-flex; gap: .35rem; align-items: center; padding: .28rem .55rem; border-radius: 6px; background: rgb(255 255 255 / .92); color: #37352F; font: 500 .76rem var(--sans); cursor: pointer; opacity: 0; transition: opacity .15s; }
.side-photo:hover .cover-btn, .side-photo.empty .cover-btn, .side-photo:focus-within .cover-btn { opacity: 1; }
.welcome h3 { font: 700 1.05rem var(--serif); }
.nav-l { display: grid; gap: 1px; } .nav-l a { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 5px; text-decoration: none; color: var(--ink); font-size: .87rem; }
.nav-l a:hover { background: var(--paper3); } .nav-l .ic { width: 16px; height: 16px; color: var(--ink2); }
.block { padding: 1rem 1.1rem 1.1rem; border-radius: 8px; border: 1px solid var(--hair); background: var(--paper); }
.block.callout { border-color: transparent; }
.blk-h { display: flex; align-items: center; gap: .45rem; font: 600 1.15rem var(--serif); margin: 0; } .blk-h .ic { width: 18px; height: 18px; color: var(--ink2); }
.blk-d { margin: .25rem 0 .9rem; font: italic 400 .86rem var(--serif); color: var(--ink2); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.pcard { display: grid; text-decoration: none; color: var(--ink); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; background: var(--paper); transition: box-shadow .15s; }
.pcard:hover { box-shadow: var(--shadow-2); }
.pc-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #EDE8E1; color: #4A4238; font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1 var(--hand); }
[data-theme="night"] .pc-cover { background: #2C2925; color: #E6DED3; }
.pc-b { display: grid; gap: .35rem; justify-items: start; padding: .6rem .7rem .7rem; } .pc-b b { font-weight: 600; font-size: .88rem; }
.flip { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .9rem; border-radius: 8px; background: var(--paper3); }
.flip > span { position: relative; display: grid; justify-items: center; padding: .6rem .3rem .45rem; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-1); }
.flip > span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in oklab, var(--ink) 10%, transparent); }
.flip b { font: 700 3.4rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .flip small { font: 600 .6rem var(--sans); letter-spacing: .12em; color: var(--ink2); margin-top: .3rem; }
.insights .blk-d { margin-bottom: .7rem; }
.ins-card { padding: .8rem .9rem; border-radius: 6px; background: var(--paper); font-size: .84rem; }
.ins-date { display: block; font: 600 .92rem var(--serif); } .ins-aff { margin: .25rem 0 .6rem; color: var(--ink2); } .ins-aff i { color: var(--ink); }
.ins-card h3 { font: 700 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: .6rem 0 .25rem; }
.ins-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; } .ins-card li { display: flex; gap: .45rem; align-items: center; } .ins-card li .ic { width: 14px; height: 14px; color: var(--ink2); flex: none; }
.quote-card { display: grid; place-items: center; min-height: 180px; padding: 1.4rem; border-radius: 8px; background: var(--cpk); text-align: center; }
.quote-card p { margin: 0; font: 400 2rem/1.25 var(--script); color: #7A5266; } [data-theme="night"] .quote-card p { color: #E8BFD1; }
.hg-right .vibe .polaroid { max-width: none; }
.home-row, .home-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin: 0; }
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.top3 .t3 { margin: 0; }
.vibe-q { font: italic 400 1rem var(--serif); text-align: center; color: var(--ink2); }
/* Handwriting areas read as quiet serif italics */
.ph-next, .cv-aff, .hh-kick, .dh-script { font-family: var(--serif) !important; font-style: italic; }
/* Phone tab bar and drawer */
.tabbar { background: color-mix(in oklab, var(--paper) 94%, transparent); border-top: 1px solid var(--hair); }
.tabbar [aria-current="page"] { color: var(--ink); } .fab { background: var(--ink); color: var(--cream); }
.drawer { background: var(--paper2); border-right: 1px solid var(--hair); }
.dr-link > .ic { background: transparent !important; color: var(--ink2) !important; padding: 0; width: 18px; height: 18px; }
.dr-link[aria-current="page"] { background: var(--paper3); }

@media (max-width: 1240px) {
  .home-grid { grid-template-columns: 220px minmax(0, 1fr); } .hg-right { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .folders { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; } .search { width: 150px; }
  .hub:has(> .pg-side) { display: block; } .pg-side { position: static; margin-bottom: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .home-grid { grid-template-columns: 1fr; } .hg-left, .hg-right { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .home-row, .home-row.two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hub { padding: 1.3rem 1rem 2rem; } .pg-icon { width: 52px; height: 52px; } .hh-title { font-size: 2rem; }
  .hubrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .hubrow::-webkit-scrollbar { display: none; }
  .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem .6rem; }
  .pcards { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: 1fr 1fr; }
  .search { display: none; } .pg-side .np, .hg-left .np { display: none; }
  .flip b { font-size: 2.8rem; }
}
.block.callout, .side-block.callout { background: var(--c); }
.wordmark b { display: inline; font: 600 .9rem var(--sans); color: var(--ink); }
.ph-next { font-size: .95rem !important; color: var(--ink2); }
.ph-name { font: 700 1.5rem var(--serif) !important; }
.week { padding-bottom: .4rem; }
/* Dark mode: keep small coloured labels readable */
[data-theme="night"] .hab.on .hab-st, [data-theme="night"] .hab-st { color: #F09A8E; }
[data-theme="night"] .ct-av { background: var(--t, #373737); color: #F1F0EE; }
[data-theme="night"] .av-0 { --t: var(--tpk); } [data-theme="night"] .av-1 { --t: var(--tgr); } [data-theme="night"] .av-2 { --t: var(--tbl); } [data-theme="night"] .av-3 { --t: var(--ty); } [data-theme="night"] .av-4 { --t: var(--tp); }
[data-theme="night"] .st-read { background: var(--tgr); color: #E3E2DF; } [data-theme="night"] .st-reading { background: var(--ty); color: #E3E2DF; }
[data-theme="night"] button.mm-d.today, [data-theme="night"] .mm.big button.mm-d.today { background: #E3E2DF; color: #191919; }
/* Phone: the page sidebar becomes a compact strip so content comes first */
@media (max-width: 720px) {
  .pg-side { display: block; margin-bottom: 1.1rem; }
  .pg-side > .side-block:not(:first-child) { display: none; }
  .pg-side > .side-block:first-child { padding: .5rem; } .pg-side h3 { display: none; }
  .pg-side .ftabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; } .pg-side .ftabs::-webkit-scrollbar { display: none; }
  .pg-side .ftab { flex: none; white-space: nowrap; }
  .hg-left .side-photo { aspect-ratio: 16 / 9; } .hg-left > .side-block:has(.nav-l), .hg-left > .side-block:has(.ql) { display: none; }
}
.mm.big button.mm-d.today { background: var(--ink); color: var(--cream); }

/* =====================================================================
   HELM × Mac: Notion layout, blue Finder folders, Mac windows, iOS alerts
   ===================================================================== */
:root { --clock: "SF Pro Rounded", -apple-system, "Inter Tight", "Inter", sans-serif; --mac-blue: #0A84FF; --mac-sel: #0A64D8;
  --win-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 14px 30px -16px rgb(0 0 0 / .28); --win-r: 12px;
  --tl: radial-gradient(circle at 6px 6px, #FF5F57 5px, #E2463F 5.5px, transparent 6px), radial-gradient(circle at 23px 6px, #FEBC2E 5px, #DEA123 5.5px, transparent 6px), radial-gradient(circle at 40px 6px, #28C840 5px, #1AAB29 5.5px, transparent 6px); }
[data-theme="night"] { --win-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 30px -14px rgb(0 0 0 / .7); }

/* The blue folder */
.macf { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 2px rgb(10 60 120 / .16)); }
.mf-back { fill: #5AA5EC; } .mf-front { fill: #8DC6F7; } .mf-hi { stroke: #C3E1FB; stroke-width: 1.4; fill: none; }
.macf.mini { width: 18px; flex: none; filter: none; }

/* Hub folders on Home: a row of Finder folders */
.folders { position: relative; gap: .6rem; }
.folder { gap: .35rem; padding: .55rem .3rem .45rem; border-radius: 10px; }
.fd-art { all: unset; display: block; width: 78%; max-width: 92px; transition: transform .15s; }
.folder:hover .fd-art { transform: translateY(-2px); }
.fd-name { display: inline-block; padding: .1rem .45rem; border-radius: 5px; font: 500 .8rem/1.3 var(--sans); color: var(--ink); text-align: center; }
.folder:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.folder:hover .fd-name, .folder:focus-visible .fd-name { background: var(--mac-sel); color: #fff; }
.folder:focus-visible .fd-art { outline: none; }
.fd-cursor { position: absolute; width: 22px; left: calc(61% + 10px); top: 58%; pointer-events: none; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .25)); }

/* The page icon is a blue folder too */
.pg-icon { width: 76px; height: auto; background: none; border-radius: 0; margin-bottom: .5rem; }
.ftab { gap: .55rem; }

/* Boxes: Mac windows with traffic lights */
.card, .win, .block, .side-block { border-radius: var(--win-r); border: 1px solid color-mix(in oklab, var(--ink) 11%, transparent); box-shadow: var(--win-shadow); background: var(--paper); }
.card > .card-head, .win-bar, .block > .blk-h, .side-block > h3 { position: relative; display: flex; align-items: center; gap: .65rem; background: color-mix(in oklab, var(--paper2) 70%, var(--paper)); border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.card > .card-head { border-radius: var(--win-r) var(--win-r) 0 0; }
.card > .card-head::before, .win-bar::before, .block > .blk-h::before, .side-block > h3::before { content: "" !important; display: block !important; flex: none; order: 0 !important; width: 46px; height: 12px; background: var(--tl); }
.card > .card-head h2 { margin-right: auto; }
.win-bar { padding: .55rem 1.1rem; } .win-bar b { order: 1; }
.block { padding: 0 0 1rem; overflow: hidden; } .block > .blk-h { margin: 0 0 .8rem; padding: .55rem 1.1rem; }
.block > :not(.blk-h) { margin-inline: 1.1rem; }
.block > .blk-h .ic { display: none; }
.side-block { padding: 0 0 .7rem; overflow: hidden; } .side-block > h3 { margin: 0 0 .5rem; padding: .45rem .8rem; font-size: .82rem; }
.side-block > h3::before { width: 38px; height: 10px; background: radial-gradient(circle at 5px 5px, #FF5F57 4.2px, transparent 4.8px), radial-gradient(circle at 19px 5px, #FEBC2E 4.2px, transparent 4.8px), radial-gradient(circle at 33px 5px, #28C840 4.2px, transparent 4.8px); }
.side-block > h3 .ic { display: none; }
.side-block > :not(h3) { margin-inline: .8rem; }
.block.callout, .side-block.callout { background: var(--paper); }
.side-block.np { background: #FFFBE6; } [data-theme="night"] .side-block.np { background: #2B2717; }
.ins-card { background: color-mix(in oklab, var(--paper2) 60%, var(--paper)); border-radius: 8px; }
.card.new { box-shadow: none; }

/* Top 3: blue numbers, like a Mac list */
ol.t3 li::before { font: 700 1.2rem/1 var(--sans); font-style: normal; color: var(--mac-blue); }
ol.t3 li.done input { text-decoration-color: var(--mac-blue); }

/* Planner cards: a big blue folder with the title on it */
.pc-cover { background: #EEF1F5; padding: .9rem 1.4rem .4rem; font: inherit; color: inherit; } [data-theme="night"] .pc-cover { background: #23262B; }
.pc-fold { position: relative; display: block; width: 100%; max-width: 210px; }
.pc-fold b { position: absolute; left: 11%; right: 8%; bottom: 14%; font: 600 clamp(1rem, 1.8vw, 1.5rem)/1.05 var(--sans); color: #fff; letter-spacing: -.01em; text-align: left; text-shadow: 0 1px 2px rgb(10 60 120 / .25); }

/* The tall iOS clock and the calendar widget */
.w-clock { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: .3rem; text-align: center; padding: 1.1rem .8rem 1rem; border-radius: 22px; background: linear-gradient(180deg, #1C1C1E, #000); color: #fff; box-shadow: var(--win-shadow); }
.ck-d { font: 600 .82rem var(--sans); color: #FF9F0A; }
.ck-t { display: grid; align-content: center; line-height: .86; }
.ck-t b { display: block; font: 700 6.4rem/.86 var(--clock); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .ck-m { opacity: .92; }
.ck-ap { font: 600 .74rem var(--sans); letter-spacing: .14em; color: #AEAEB2; }
.w-cal { display: block; padding: .85rem .95rem .9rem; border-radius: 22px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); box-shadow: var(--win-shadow); }
.w-cal:hover { box-shadow: 0 10px 24px -12px rgb(0 0 0 / .3); }
.wc-m { display: block; font: 700 .74rem var(--sans); color: #E5382D; letter-spacing: .04em; margin-bottom: .35rem; } [data-theme="night"] .wc-m { color: #FF6961; }
.wc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; font: 500 .74rem/1.75 var(--sans); }
.wc-g i { font-style: normal; color: var(--ink2); font-weight: 600; font-size: .66rem; }
.wc-g span { justify-self: center; width: 1.75em; } .wc-g span.on { background: #E5382D; color: #fff; border-radius: 50%; font-weight: 700; }

/* The greeting as messages */
.imsg { display: grid; gap: .3rem; padding: .2rem 0; }
.bub { position: relative; margin: 0; max-width: 88%; padding: .5rem .8rem; border-radius: 18px; font: 400 .88rem/1.35 var(--sans); }
.bub.out { justify-self: end; background: #0A7CFF; color: #fff; font-weight: 600; border-bottom-right-radius: 5px; }
.bub.in { justify-self: start; background: #E9E9EB; color: #111; border-bottom-left-radius: 5px; } [data-theme="night"] .bub.in { background: #3A3A3C; color: #F2F2F7; }
.imsg-s { justify-self: end; font-size: .68rem; color: var(--ink2); margin-top: -.15rem; }
.imsg .bub.out { order: 0; } .imsg .bub.in { order: 1; } .imsg-s { order: 2; }

/* The affirmation as an iOS alert */
.ios-alert { display: grid; border-radius: 14px; overflow: hidden; background: color-mix(in oklab, var(--paper) 82%, #E6E6EB); border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); box-shadow: var(--win-shadow); text-align: center; }
.ia-body { padding: 1rem 1.1rem .9rem; } .ia-body b { display: block; font: 600 .95rem var(--sans); color: var(--ink); }
.ia-body p { margin: .3rem 0 0; font: 400 .9rem/1.4 var(--sans); color: var(--ink); }
.ia-btn { display: block; padding: .65rem; border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); font: 600 .9rem var(--sans); color: #0A6BD6; text-decoration: none; } [data-theme="night"] .ia-btn { color: #4DA3FF; }
.ia-btn:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }

.hg-right { position: static; }
@media (max-width: 760px) { .fd-cursor { display: none; } .pg-icon { width: 60px; } .ck-t b { font-size: 5.4rem; } }
.pc-cover { aspect-ratio: auto; display: grid; place-items: center; padding: 1rem 1rem .6rem; }
.pc-fold { width: 82%; max-width: 190px; }
.side-block > .np-text, .side-block > textarea { width: calc(100% - 1.6rem); }
.fd-cursor { top: 34%; left: calc(61% + 18px); }

/* =====================================================================
   The cover banner (Notion-style), on every page
   ===================================================================== */
.banner { position: relative; height: clamp(150px, 21vw, 270px); margin: -2.2rem calc(-1 * clamp(1rem, 4vw, 3.4rem)) 0; overflow: hidden; background: #E9EEF3; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--bpos, 50%); }
.banner .bn-default { object-position: 50% 60%; }
.bn-tools { position: absolute; right: clamp(1rem, 4vw, 3.4rem); bottom: .8rem; display: flex; gap: .35rem; opacity: 0; transition: opacity .15s; }
.banner:hover .bn-tools, .banner:focus-within .bn-tools, .banner.drag .bn-tools { opacity: 1; }
@media (hover: none) { .bn-tools { opacity: 1; } }
.bn-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; height: 30px; padding: 0 .7rem; border-radius: 6px; background: rgb(255 255 255 / .9); color: #37352F; font: 500 .8rem var(--sans); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.bn-btn:hover { background: #fff; } .bn-btn:focus-visible { outline: 2px solid var(--mac-blue, #0A84FF); }
.bn-btn .ic { width: 15px; height: 15px; }
.banner.drag { outline: 3px dashed var(--mac-blue, #0A84FF); outline-offset: -6px; }
.banner + .hub-head .pg-icon { position: relative; z-index: 1; margin-top: -42px; }
@media (max-width: 720px) { .banner { margin: -1.3rem -1rem 0; height: 140px; } .bn-tools { right: .7rem; bottom: .6rem; } .bn-btn span { display: none; } .bn-btn { padding: 0 .55rem; } .banner + .hub-head .pg-icon { margin-top: -30px; } }
@media print { .banner { display: none; } }
.hub:has(> .pg-side) > .banner { grid-column: 1 / -1; grid-row: 1; }
.hub:has(> .pg-side):has(> .banner) > .hub-head { grid-row: 2; }
.hub:has(> .pg-side):has(> .banner) > .pg-side { grid-row: 3 / span 20; }
/* the folder icon sits over the banner's edge, but only the icon: the header never covers the banner's buttons */
.banner + .hub-head .pg-icon { margin-top: 0; transform: translateY(-42px); margin-bottom: -34px; }
@media (max-width: 720px) { .banner + .hub-head .pg-icon { margin-top: 0; transform: translateY(-30px); margin-bottom: -24px; } }
.banner { z-index: 1; } .banner + .hub-head .pg-icon { z-index: 2; }
