/* =====================================================================
   LUXE — the all-in-one "That Girl" life planner
   Bordeaux, blush, powder blue and cream. Tall serif headlines with a
   script accent, oval ✱ stamps, ON pills, stamp-edged photos, folder
   pockets of stacked cards, stripes and a window-pane grid.
   Instrument Serif for headlines, Pinyon Script for the flourishes,
   DM Sans for reading.
   ===================================================================== */
:root, [data-theme="powder"] {
  --v-paper: #FCF8F3; --v-surface: #FFFDF9; --v-surface2: #F5EFE7; --ink: #1F1C2C; --ink2: #4A4558; --muted: #6E6780; --line: #1F1C2C; --hair: #E8E0D4; --v-grid: rgb(31 28 44 / .045);
  --t1: #BFDCF5; --t2: #F9C9DF; --t3: #F6E3A1; --t4: #CBE6CF; --t5: #DCCEF3; --t6: #F8D2BC; --on: #1F1C2C;
  --accent: #2A65A6; --accent2: #B83D76; --good: #2E7D4F; --warn: #A3620A; --bad: #B4232F;
  --vc1: #3B74B5; --vc2: #D0558D; --vc3: #B07E0A; --vc4: #3E9468; --vc5: #8661C6;
  --stripe-a: var(--t1); --stripe-b: #D7E9F8;
}
[data-theme="lilac"] {
  --v-paper: #FBF8FC; --v-surface: #FFFEFF; --v-surface2: #F3EEF6; --ink: #26213A; --ink2: #4D4762; --muted: #6E6784; --line: #26213A; --hair: #E7E0EC; --v-grid: rgb(38 33 58 / .045);
  --t1: #D9CCF4; --t2: #F8E7A6; --t3: #C7EBDA; --t4: #F6CFE0; --t5: #CFE0F7; --t6: #F7D7C2; --on: #26213A;
  --accent: #6345B0; --accent2: #A83F72; --good: #2E7D4F; --warn: #9A5C08; --bad: #B4232F;
  --vc1: #7A5BC8; --vc2: #C9548A; --vc3: #B98A10; --vc4: #3A9071; --vc5: #3F7FC0;
  --stripe-a: var(--t1); --stripe-b: #E8DFF8;
}
[data-theme="matcha"] {
  --v-paper: #F8F6EE; --v-surface: #FFFEF9; --v-surface2: #EFEDE2; --ink: #22301F; --ink2: #47533F; --muted: #646F5C; --line: #22301F; --hair: #E2DFD0; --v-grid: rgb(34 48 31 / .045);
  --t1: #C9DDBF; --t2: #F6D2B8; --t3: #EFE4C7; --t4: #D3E3EC; --t5: #E7D9EE; --t6: #F1C9C1; --on: #22301F;
  --accent: #3C6838; --accent2: #A6542A; --good: #2E7D4F; --warn: #94600C; --bad: #A9302C;
  --vc1: #4F8A45; --vc2: #D07443; --vc3: #9C7E14; --vc4: #4C86A8; --vc5: #9A69A6;
  --stripe-a: var(--t1); --stripe-b: #DCE8D4;
}
[data-theme="apricot"] {
  --v-paper: #FFF8F1; --v-surface: #FFFDFA; --v-surface2: #F8EDE2; --ink: #2C211B; --ink2: #554238; --muted: #7A675D; --line: #2C211B; --hair: #F0E2D4; --v-grid: rgb(44 33 27 / .045);
  --t1: #FFD3B0; --t2: #F9B8B0; --t3: #C9E2F5; --t4: #F8E6A0; --t5: #D5EBCB; --t6: #E6D3F2; --on: #2C211B;
  --accent: #A9452A; --accent2: #2F6CB0; --good: #2E7D4F; --warn: #94560A; --bad: #B4232F;
  --vc1: #CC6A2F; --vc2: #3E7DB8; --vc3: #C2483F; --vc4: #3E9468; --vc5: #8661C6;
  --stripe-a: var(--t1); --stripe-b: #FFE3CC;
}
[data-theme="velvet"] {
  --v-paper: #1D1824; --v-surface: #262030; --v-surface2: #2F2839; --ink: #F4EEF6; --ink2: #D8CEDF; --muted: #AFA3B9; --line: #E9DDF0; --hair: #3B3346; --v-grid: rgb(255 255 255 / .035);
  --t1: #A9CDF2; --t2: #F3A9CC; --t3: #F1DC92; --t4: #A9DDBB; --t5: #CDB8F2; --t6: #F5BE9C; --on: #1D1824;
  --accent: #9CC9F5; --accent2: #F5B3D3; --good: #7FD39E; --warn: #F2C470; --bad: #FF8A93;
  --vc1: #7FB4EC; --vc2: #EE8DBC; --vc3: #E8C55A; --vc4: #6FCB97; --vc5: #B79AF0;
  --stripe-a: #2C2440; --stripe-b: #251F33; --v-shadow: 3px 3px 0 #0E0B12; --tk: .38;
}
[data-theme="oxford"] {
  --v-paper: #F5F3EE; --v-surface: #FDFCF9; --v-surface2: #ECE9E2; --ink: #18233A; --ink2: #3F4A5E; --muted: #5A6373; --line: #18233A; --hair: #E1DDD4; --v-grid: rgb(24 35 58 / .045);
  --t1: #D6DCE6; --t2: #E5DCCB; --t3: #DCCB9E; --t4: #CFD8CC; --t5: #DCD3DF; --t6: #E3CDBF; --on: #18233A;
  --accent: #22406E; --accent2: #7D5E1E; --good: #2E6E4A; --warn: #8A5A0E; --bad: #A12A2A;
  --vc1: #2F558C; --vc2: #A9842E; --vc3: #6E8A6A; --vc4: #9C5B48; --vc5: #6A6E9C;
  --stripe-a: #DEE3EB; --stripe-b: #EBEEF2;
}
[data-theme="olive"] {
  --v-paper: #F3F1E8; --v-surface: #FCFBF6; --v-surface2: #E9E6D9; --ink: #262A1C; --ink2: #4A4E3C; --muted: #5E6152; --line: #262A1C; --hair: #DFDBCB; --v-grid: rgb(38 42 28 / .045);
  --t1: #D5D9BC; --t2: #E6D7B8; --t3: #CFC6A8; --t4: #C6D4CB; --t5: #DCD2C4; --t6: #E2C9B0; --on: #262A1C;
  --accent: #4C5826; --accent2: #85562A; --good: #3C6E3A; --warn: #8A5A0E; --bad: #A12A2A;
  --vc1: #5E6E2E; --vc2: #B07A3A; --vc3: #6A8778; --vc4: #9C5B48; --vc5: #8C7A5A;
  --stripe-a: #DEE1CB; --stripe-b: #E9EBDB;
}
[data-theme="slate"] {
  --v-paper: #F2F3F4; --v-surface: #FCFCFD; --v-surface2: #E8EAEC; --ink: #1D2328; --ink2: #434B53; --muted: #5C646C; --line: #1D2328; --hair: #DDE0E3; --v-grid: rgb(29 35 40 / .045);
  --t1: #D3DAE1; --t2: #DDDBD6; --t3: #C3CDD5; --t4: #D3DDD6; --t5: #D9D5DE; --t6: #E2D6CC; --on: #1D2328;
  --accent: #34526E; --accent2: #6A5A48; --good: #2E6E4A; --warn: #8A5A0E; --bad: #A12A2A;
  --vc1: #3E6489; --vc2: #8C7660; --vc3: #5E8A86; --vc4: #A0584A; --vc5: #6E6A94;
  --stripe-a: #DCE1E6; --stripe-b: #E9ECEF;
}
[data-theme="espresso"] {
  --v-paper: #F6F1EA; --v-surface: #FDFBF8; --v-surface2: #EDE5DA; --ink: #2A1F18; --ink2: #50423A; --muted: #6E6058; --line: #2A1F18; --hair: #E4DACD; --v-grid: rgb(42 31 24 / .045);
  --t1: #E3D2BF; --t2: #D9CBB8; --t3: #D3B798; --t4: #D2D8C6; --t5: #DDD0D6; --t6: #E6C7B3; --on: #2A1F18;
  --accent: #6B3F22; --accent2: #3F5B6B; --good: #3C6E3A; --warn: #8A5A0E; --bad: #A12A2A;
  --vc1: #7B4A2A; --vc2: #4A6E80; --vc3: #B08A4A; --vc4: #6E8A5E; --vc5: #9A6A7A;
  --stripe-a: #EADDCF; --stripe-b: #F2E9DE;
}
[data-theme="graphite"] {
  --v-paper: #18191B; --v-surface: #212326; --v-surface2: #2A2D31; --ink: #ECEAE6; --ink2: #D0CDC7; --muted: #A3A09A; --line: #D8D5CF; --hair: #34373B; --v-grid: rgb(255 255 255 / .03);
  --t1: #B8C6D3; --t2: #D7C08E; --t3: #A9BFAE; --t4: #C9B6A6; --t5: #B9B4CC; --t6: #D0B7A0; --on: #18191B;
  --accent: #B8C9DA; --accent2: #DCC694; --good: #8FCB9F; --warn: #E2B866; --bad: #F08A8A;
  --vc1: #8FB0CF; --vc2: #D6B46A; --vc3: #8FB89A; --vc4: #CF9A82; --vc5: #A9A2D6;
  --stripe-a: #23272C; --stripe-b: #1E2124; --v-shadow: 3px 3px 0 #000; --tk: .38;
}

/* Vita's palettes, mapped onto Luxe's colour names so every component follows the palette. */
:root { --v-shadow: 3px 3px 0 var(--line); --tk: 1; }
:root, [data-theme] {
  --cream: var(--v-paper); --paper: var(--v-surface); --paper2: var(--v-surface2); --paper3: color-mix(in srgb, var(--ink) 7%, var(--v-surface2)); --grid: var(--v-grid);
  --ink3: var(--muted);
  --blush: var(--t2); --blush-soft: color-mix(in srgb, var(--t2) 38%, var(--v-surface)); --rose: var(--accent2); --rose-ink: var(--accent2);
  --sage: var(--t4); --sage-soft: color-mix(in srgb, var(--t4) 38%, var(--v-surface)); --sage-ink: var(--good);
  --sky: var(--t5); --sky-soft: color-mix(in srgb, var(--t5) 38%, var(--v-surface)); --sky-ink: var(--accent);
  --butter: var(--t3); --butter-soft: color-mix(in srgb, var(--t3) 38%, var(--v-surface)); --butter-ink: var(--warn);
  --wine: var(--ink); --on-wine: var(--v-paper); --blue: var(--t1); --blue-soft: color-mix(in srgb, var(--t1) 38%, var(--v-surface)); --pink: var(--t2);
  --night: var(--ink); --on-night: var(--v-surface);
  --shadow-1: var(--v-shadow); --shadow-2: 0 22px 44px -22px rgb(0 0 0 / .4);
  --r: 18px; --r-sm: 12px; --bw: 1.5px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Yellowtail", "Brush Script MT", cursive;
  color-scheme: light;
}
:is([data-theme="velvet"], [data-theme="graphite"]) { --blush-soft: color-mix(in srgb, var(--t2) 16%, var(--v-surface)); --sage-soft: color-mix(in srgb, var(--t4) 16%, var(--v-surface)); --sky-soft: color-mix(in srgb, var(--t5) 16%, var(--v-surface)); --butter-soft: color-mix(in srgb, var(--t3) 16%, var(--v-surface)); --blue-soft: color-mix(in srgb, var(--t1) 16%, var(--v-surface)); --shadow-2: 0 22px 44px -18px rgb(0 0 0 / .8); 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); letter-spacing: -.01em; }
h2 { font-size: 1.65rem; text-transform: uppercase; letter-spacing: .005em; line-height: 1; }
h3 { font: 650 1rem/1.25 var(--sans); }
h1 em, h2 em, h3 em { font: 400 1.75em/1 var(--hand); font-style: normal; text-transform: none; color: var(--rose); letter-spacing: 0; }
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; }
:is([data-theme="velvet"], [data-theme="graphite"]) .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); }
:is([data-theme="velvet"], [data-theme="graphite"]) .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); }
:is([data-theme="velvet"], [data-theme="graphite"]) .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 Luxe"; 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); }

/* ---------- Welcome (the front page): a folder pocket of hub cards ---------- */
body.on-welcome { background: var(--wine); }
.wl-page { min-height: 100vh; display: flex; flex-direction: column; color: var(--on-wine);
  background-color: var(--wine); background-image: linear-gradient(rgb(251 240 238 / .13) 1.5px, transparent 1.5px), linear-gradient(90deg, rgb(251 240 238 / .13) 1.5px, transparent 1.5px); background-size: 92px 92px; background-position: -1px -1px; }
.wl-head { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem clamp(1rem, 3.5vw, 3rem) .4rem; }
.wl-brand { text-decoration: none; color: inherit; } .wl-brand .wordmark { color: var(--on-wine); font-size: 2.4rem; }
.wl-date { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.wl-tools { margin-left: auto; display: flex; gap: .4rem; }
.wl-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: 1rem clamp(1rem, 3.5vw, 3rem) 2.4rem; max-width: 1500px; width: 100%; margin: 0 auto; }
.pocket-wrap { container-type: inline-size; }
.pocket { position: relative; height: 66cqi; min-height: 380px; }
.hcard { --bg: #FFFBF8; --fg: #3F1724; position: absolute; top: calc(var(--row) * 9cqi + 2cqi); left: calc(var(--col) * 18.5cqi + var(--row) * 3cqi); width: 22.5cqi; height: 46cqi; padding: 2.2cqi 2.2cqi; border-radius: 1.6cqi 1.6cqi 0 0; background: var(--bg); color: var(--fg);
  text-decoration: none; box-shadow: 0 -2px 0 rgb(0 0 0 / .04), 0 18px 30px -18px rgb(0 0 0 / .55); transform: rotate(var(--tilt, 0deg)); transition: transform .28s cubic-bezier(.2, 1.3, .4, 1), box-shadow .2s; z-index: calc(1 + var(--row) * 10 + var(--col)); animation: cardIn .6s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: var(--d); display: grid; align-content: start; gap: .7cqi; }
.hcard.r0 { --row: 0; } .hcard.r1 { --row: 1; }
.hcard.c0 { --col: 0; --tilt: -3deg; } .hcard.c1 { --col: 1; --tilt: 2deg; } .hcard.c2 { --col: 2; --tilt: -1deg; } .hcard.c3 { --col: 3; --tilt: 3deg; } .hcard.c4 { --col: 4; --tilt: -2deg; }
.hcard.r1.c0 { --tilt: 2deg; } .hcard.r1.c1 { --tilt: -2deg; } .hcard.r1.c2 { --tilt: 1deg; } .hcard.r1.c3 { --tilt: -3deg; } .hcard.r1.c4 { --tilt: 2deg; }
.hcard:hover, .hcard:focus-visible { transform: translateY(-7cqi) rotate(0deg); z-index: 40; box-shadow: 0 24px 40px -18px rgb(0 0 0 / .65); outline: none; }
.hcard:focus-visible .hc-top b { text-decoration: underline; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10cqi) rotate(var(--tilt)); } }
.t-cream { --bg: #FFFBF8; --fg: #3F1724; } .t-blush { --bg: #F1C6D3; --fg: #3F1724; } .t-wine { --bg: #6B2A3C; --fg: #FBF0EE; } .t-blue { --bg: #DCE6F1; --fg: #3F1724; }
.hc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1cqi; }
.hc-top b { font: 400 clamp(.85rem, 3cqi, 1.6rem)/.92 var(--serif); text-transform: uppercase; letter-spacing: .01em; }
.hc-ast { font: 400 clamp(.9rem, 3.4cqi, 1.8rem)/1 var(--sans); font-style: normal; }
.hc-meta { display: flex; justify-content: space-between; align-items: center; font: 600 clamp(.5rem, 1.3cqi, .66rem) var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; border-top: 1px solid currentColor; padding-top: .8cqi; }
.hc-n { font: 600 clamp(.55rem, 1.4cqi, .7rem) var(--sans); letter-spacing: .1em; }
.hc-line { font: 400 clamp(.9rem, 2.6cqi, 1.4rem)/1.1 var(--hand); opacity: .9; }
.hcard.r0 .hc-line, .hcard.r0 .hc-meta small { visibility: hidden; } .hcard.r0:hover .hc-line, .hcard.r0:focus-visible .hc-line, .hcard.r0:hover .hc-meta small { visibility: visible; }
.pocket-front { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: 40cqi; border-radius: 0 0 1.4cqi 1.4cqi; background: #B8CADD; color: #3F1724;
  -webkit-mask: radial-gradient(circle 7cqi at 50% 0, transparent 98%, #000); mask: radial-gradient(circle 7cqi at 50% 0, transparent 98%, #000);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .5); display: grid; align-content: center; justify-items: center; text-align: center; padding: 8cqi 6cqi 4cqi; pointer-events: none; }
.pf-quote { margin: 0; font: 400 clamp(1.1rem, 4.2cqi, 2.3rem)/1.05 var(--serif); max-width: 18ch; }
.pf-hint { margin-top: 1.6cqi; font: 600 clamp(.55rem, 1.4cqi, .72rem) var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.pocket-front .clip { position: absolute; top: -3.4cqi; right: 9cqi; width: 7cqi; height: 9cqi; border: .9cqi solid #2A0F18; border-bottom: 0; border-radius: 1.4cqi 1.4cqi 0 0; }
.pocket-front .clip::after { content: ""; position: absolute; left: -1.6cqi; right: -1.6cqi; top: 4.8cqi; height: 3.6cqi; background: #2A0F18; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.wl-side { position: relative; display: grid; gap: 1.2rem; justify-items: start; min-width: 0; }
.wl-title { margin: 0; display: grid; font: 400 clamp(4rem, 9vw, 8.4rem)/.82 var(--serif); letter-spacing: -.02em; color: var(--on-wine); }
.wl-title em { font: 400 clamp(1.8rem, 3.4vw, 3.2rem)/1 var(--hand); color: var(--pink); justify-self: end; margin: -.6rem 0 -.8rem; transform: rotate(-6deg); }
.wl-luxe { display: flex; align-items: center; gap: .18em; }
.wl-n { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--on-wine); color: var(--wine); font: 600 .13em/1 var(--sans); font-style: normal; letter-spacing: .05em; }
.wl-pill { display: flex; align-items: center; gap: .9rem; padding: .35rem .35rem .35rem 1.2rem; border: 1.5px solid var(--on-wine); border-radius: 999px; }
.wl-pill span { font: 400 1.15rem/.95 var(--serif); text-transform: uppercase; } .wl-pill small { font: 600 .62rem var(--sans); letter-spacing: .1em; opacity: .8; }
.wl-pill b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--on-wine); color: var(--wine); font: 400 1.05rem var(--serif); text-transform: uppercase; }
.wl-photo { position: absolute; right: 0; top: 4%; width: clamp(130px, 13vw, 200px); aspect-ratio: 4 / 5; margin: 0; padding: 10px; background: #FBF0EE; transform: rotate(5deg); box-shadow: var(--shadow-2); }
.wl-photo img, .wl-ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; background: #F1C6D3; color: #6B2A3C; font-size: 3rem; }
.wl-oval { position: absolute; right: 2%; top: calc(4% + clamp(170px, 17vw, 260px)); transform: rotate(-8deg); }
.wl-hello { max-width: 40ch; margin: .4rem 0 0; color: rgb(251 240 238 / .82); font-size: .98rem; }
.wl-script { display: block; font: 400 2.2rem/1.1 var(--hand); color: var(--pink); margin-bottom: .2rem; }
.wl-list { display: none; list-style: none; margin: 0; padding: 0; gap: .5rem; }
.wl-tab { --bg: #FFFBF8; --fg: #3F1724; display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 16px 16px 6px 6px; background: var(--bg); color: var(--fg); text-decoration: none; }
.wl-tab span:nth-child(2) { display: grid; flex: 1; } .wl-tab b { font: 400 1.35rem/1 var(--serif); text-transform: uppercase; } .wl-tab small { font: 400 1.15rem/1.1 var(--hand); opacity: .85; }
/* Oval stamps: ✱ LUXE */
.oval { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.3em; border-radius: 50%; background: var(--paper); color: var(--rose-ink); border: 1.5px solid currentColor; outline: 1.5px solid var(--paper); box-shadow: 0 0 0 4px currentColor; font: 400 1.05rem/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.oval i { font: 400 1em var(--sans); font-style: normal; }
.oval.dark { background: var(--wine); color: var(--on-wine); outline-color: var(--wine); }
.wl-oval { background: #FBF0EE; color: #4B1B29; outline-color: #FBF0EE; }
/* Stamp edges (postage perforations) */
.stampy { -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; }
.wordmark { display: inline-flex; align-items: flex-start; gap: .08em; font: 400 2.1rem/.9 var(--serif); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.wordmark i { font: 400 .45em/1 var(--sans); font-style: normal; margin-top: .1em; }
.wordmark.big { font-size: clamp(4rem, 9vw, 6.5rem); }
.demo-band { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; padding: .45rem 1rem; background: var(--ink); color: var(--cream); font-size: .82rem; text-align: center; }
.demo-band a, .demo-band .demo-cta { color: var(--blush); font-weight: 650; }

/* ---------- 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); }
:is([data-theme="velvet"], [data-theme="graphite"]) .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); }

/* ---------- Luxe 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; }
:is([data-theme="velvet"], [data-theme="graphite"]) .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: #D9574B; 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; }
:is([data-theme="velvet"], [data-theme="graphite"]) .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); }
:is([data-theme="velvet"], [data-theme="graphite"]) .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(130px, 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; }
:is([data-theme="velvet"], [data-theme="graphite"]) .heat-g i.l1 { background: #5A3F4A; } :is([data-theme="velvet"], [data-theme="graphite"]) .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; overflow: hidden; display: grid; min-height: 100%; background-color: #4B1B29; background-image: linear-gradient(rgb(251 240 238 / .13) 1.5px, transparent 1.5px), linear-gradient(90deg, rgb(251 240 238 / .13) 1.5px, transparent 1.5px); background-size: 92px 92px; color: #FBF0EE; }
.aa-cards { position: absolute; top: 9%; left: 9%; width: min(420px, 70%); height: 260px; }
.aa-c { position: absolute; top: 0; width: 46%; height: 200px; padding: .9rem; border-radius: 10px 10px 0 0; display: flex; justify-content: space-between; align-items: flex-start; color: #3F1724; box-shadow: 0 18px 30px -18px rgb(0 0 0 / .6); }
.aa-c b { font: 400 1.5rem/1 var(--serif); text-transform: uppercase; } .aa-c i { font: 400 1.4rem var(--sans); font-style: normal; }
.aa-c.c1 { left: 0; background: #FFFBF8; transform: rotate(-4deg); } .aa-c.c2 { left: 27%; background: #F1C6D3; transform: rotate(2deg); top: 8px; } .aa-c.c3 { left: 54%; background: #6B2A3C; color: #FBF0EE; transform: rotate(5deg); }
.aa-pocket { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; padding: 2.6rem 1.6rem 1rem; border-radius: 0 0 12px 12px; background: #B8CADD; color: #3F1724; display: grid; place-items: center; text-align: center; font: 400 1.4rem/1.05 var(--serif); -webkit-mask: radial-gradient(circle 34px at 50% 0, transparent 98%, #000); mask: radial-gradient(circle 34px at 50% 0, transparent 98%, #000); }
.aa-over { position: relative; z-index: 1; align-self: end; padding: clamp(1.6rem, 4vw, 3.4rem); color: #FBF0EE; }
.aa-kick { display: block; font: 400 2.4rem/1 var(--hand); color: #EFC7D3; margin-bottom: -.4rem; }
.aa-over .wordmark { color: #FBF0EE; }
.aa-lede { max-width: 46ch; font-size: 1.05rem; margin: .8rem 0 1rem; color: rgb(251 240 238 / .82); }
.aa-stats { display: flex; flex-wrap: wrap; gap: .6rem; } .aa-stats > span { display: grid; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid rgb(251 240 238 / .6); font-size: .8rem; color: #FBF0EE; } .aa-stats b { font: 400 1.4rem/1 var(--serif); }
.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)); }
  :is([data-theme="velvet"], [data-theme="graphite"]) .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%; }
}
:is([data-theme="velvet"], [data-theme="graphite"]) .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; }
/* ---------- Welcome on tablets and phones ---------- */
@media (max-width: 1100px) {
  .wl-main { grid-template-columns: 1fr; }
  .wl-side { order: -1; } .wl-photo { top: 0; } .wl-oval { top: auto; bottom: 0; }
}
@media (max-width: 720px) {
  .pocket-wrap { display: none; } .wl-list { display: grid; }
  .wl-head { flex-wrap: wrap; padding: 1rem 1rem .2rem; } .wl-date { order: 3; width: 100%; } .wl-tools .btn { padding: .35rem .6rem; }
  .wl-main { padding: .6rem 1rem 2rem; gap: 1.4rem; }
  .wl-photo { width: 110px; right: 0; top: -.4rem; } .wl-oval { display: none; }
  .wl-title { font-size: 4.2rem; } .wl-title em { font-size: 1.9rem; justify-self: start; margin-left: 5rem; }
  .wl-pill span { font-size: 1rem; }
}

.mm.big button.mm-d.today, button.mm-d.today { background: var(--ink); color: var(--cream); }
@media (max-width: 720px) { .cover-frame { display: none; } .cover.default::after { width: 100%; } }

/* =====================================================================
   LUXE — Aura's layout in Vita's design
   Fraunces with one italic word in the accent, Figtree for reading,
   Yellowtail for a handwritten touch. Cream grid paper, ink-outlined
   cards with a hard offset shadow, pinstripe panels, pastel tints and
   four-point sparkles. Ten Vita palettes.
   ===================================================================== */
body { background-color: var(--cream); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
html { background: var(--cream); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h2 { text-transform: none; font-size: 1.45rem; line-height: 1.1; }
h1 em, h2 em, h3 em { font: italic 500 1em/1 var(--serif); color: var(--accent2); text-transform: none; letter-spacing: -.01em; }
.spk { fill: currentColor; }
:focus-visible { outline-color: var(--accent); }

/* ---------- buttons, chips, tags, inputs ---------- */
.btn { border: var(--bw) solid var(--line); font-weight: 600; }
.btn:hover { box-shadow: 2px 2px 0 var(--line); }
.btn.solid { background: var(--ink); color: var(--v-surface); border-color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { border-color: var(--line); box-shadow: none; }
.chip { border: var(--bw) solid var(--line); background: var(--v-surface); color: var(--ink); font-weight: 600; }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--v-surface); }
.chip[disabled] { opacity: .5; cursor: default; }
.tag { border: 1px solid color-mix(in srgb, var(--line) 25%, transparent); background: color-mix(in srgb, var(--t1) 45%, var(--v-surface)); color: var(--ink); }
.tag.sage { background: color-mix(in srgb, var(--t4) 50%, var(--v-surface)); }
.input { border: var(--bw) solid color-mix(in srgb, var(--line) 35%, transparent); background: var(--v-surface); border-radius: 12px; }
.input:focus { border-color: var(--line); }
.bad { color: var(--bad); }

/* ---------- cards ---------- */
.card { border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--v-shadow); background: var(--v-surface); }
.card-head h2 { font-size: 1.4rem; }
.card-head h2 .ic { color: var(--accent2); }
.kick { font-size: .66rem; letter-spacing: .14em; color: var(--muted); }

/* ---------- page header: a kicker pill, a Fraunces title with an italic word ---------- */
.hub-head { margin-bottom: 1.2rem; }
.hh-kick { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .3rem .8rem .3rem .65rem; margin-bottom: .8rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--t2); color: var(--ink); font: 700 .66rem/1.2 var(--sans); letter-spacing: .16em; }
.hh-kick::before { content: ""; width: 12px; height: 12px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hh-title { font: 600 clamp(2.4rem, 5vw, 3.9rem)/1.02 var(--serif); letter-spacing: -.025em; text-transform: none; color: var(--ink); }
.hh-title em { font: italic 500 1em/1 var(--serif); color: var(--accent2); margin-left: .05em; }
.hh-lede { color: var(--ink2); max-width: 62ch; }

/* ---------- section tabs: Vita's underlined tabs ---------- */
.ftabs { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: .2rem 0 1.4rem; padding: 0 .2rem; border-bottom: var(--bw) solid var(--hair); }
.ftab, .ftab[class*="ft-"] { all: unset; box-sizing: border-box; cursor: pointer; padding: .55rem .1rem .6rem; margin-bottom: calc(-1 * var(--bw)); border-bottom: 2.5px solid transparent; font: 600 .9rem var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; background: none !important; }
.ftab::after, .ftab::before { content: none !important; display: none !important; }
.ftab:hover { color: var(--ink); }
.ftab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent2); }
.ftab:focus-visible { outline: 2.5px solid var(--accent); }

/* ---------- the sidebar (desktop) ---------- */
.side { display: none; }
@media (min-width: 1101px) {
  body.with-side .side { display: flex; flex-direction: column; gap: .8rem; position: fixed; inset: 0 auto 0 0; width: 270px; padding: 1.1rem .9rem 1rem; background: color-mix(in srgb, var(--v-surface) 70%, var(--cream)); border-right: var(--bw) solid var(--hair); overflow-y: auto; z-index: 40; scrollbar-width: thin; }
  body.with-side .main-col { margin-left: 270px; }
  body.with-side .tb-brand, body.with-side .hubnav, body.with-side .menu-btn { display: none !important; }
  body.with-side .topbar { background: color-mix(in srgb, var(--cream) 88%, transparent); color: var(--ink); border-bottom: var(--bw) solid var(--hair); backdrop-filter: blur(8px); justify-content: flex-end; }
  body.with-side .tb-tools { margin-left: auto; }
}
.side-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); padding: .1rem .3rem; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: var(--bw) solid var(--line); border-radius: 12px; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 5px, var(--stripe-b) 5px 10px); color: var(--ink); box-shadow: 2px 2px 0 var(--line); }
.logo .spk { width: 20px; height: 20px; }
.side-brand b { display: block; font: 600 1.45rem/1 var(--serif); } .side-brand small { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
.side-dump { display: flex; align-items: center; gap: .3rem; padding: .25rem .25rem .25rem .8rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--v-surface); }
.side-dump input { all: unset; flex: 1; min-width: 0; font-size: .86rem; color: var(--ink); } .side-dump input::placeholder { color: var(--muted); }
.sd-go { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--v-surface); } .sd-go .ic { width: 15px; height: 15px; }
.side-nav, .side-foot { display: grid; gap: 1px; }
.side-foot { margin-top: auto; padding-top: .6rem; border-top: var(--bw) dashed var(--hair); }
.side-link { display: flex; align-items: center; gap: .6rem; padding: .48rem .65rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.side-link .ic { width: 17px; height: 17px; color: var(--ink2); }
.side-link span { flex: 1; min-width: 0; }
.sl-n { font: 600 .66rem var(--sans); color: var(--muted); letter-spacing: .05em; }
.side-link:hover { background: var(--v-surface2); }
.side-link[aria-current="page"] { background: color-mix(in srgb, var(--t1) 60%, var(--v-surface)); font-weight: 700; box-shadow: inset 0 0 0 var(--bw) var(--line); }

/* ---------- the top bar on hub pages ---------- */
.topbar { background: var(--v-surface); color: var(--ink); border-bottom: var(--bw) solid var(--line); }
.topbar .wordmark { color: var(--ink); }
.tb-btn { color: var(--ink); border-color: color-mix(in srgb, var(--line) 30%, transparent); }
.search { background: var(--v-surface2); color: var(--ink); border-color: color-mix(in srgb, var(--line) 25%, transparent); }
.search input { color: var(--ink); } .search input::placeholder { color: var(--muted); }
.hn { color: var(--ink2); } .hn[aria-current="page"] { color: var(--ink); border-color: var(--ink); } .hn[aria-current="page"] b { background: var(--ink); color: var(--v-surface); }
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.wordmark i { color: var(--accent2); font-style: normal; }

/* ---------- the welcome page, Vita colours ---------- */
body.on-welcome { background-color: var(--cream); }
.wl-page { color: var(--ink); }
.wl-brand .wordmark { color: var(--ink); }
.wl-date { color: var(--ink2); opacity: 1; }
.btn.on-dark { background: var(--v-surface); color: var(--ink); border-color: var(--line); }
.pocket { height: 74cqi; }
.hcard { --bg: var(--v-surface); --fg: var(--ink); border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--line); top: calc(var(--row) * 8.5cqi + 2cqi); left: calc(var(--col) * 18cqi + var(--row) * 2cqi); }
.hcard.r2 { --row: 2; }
.hcard.r2.c0 { --tilt: -1.5deg; } .hcard.r2.c1 { --tilt: 1.5deg; } .hcard.r2.c2 { --tilt: -2deg; } .hcard.r2.c3 { --tilt: 1deg; } .hcard.r2.c4 { --tilt: -1deg; }
.hcard.r1 .hc-line, .hcard.r1 .hc-meta small { visibility: hidden; } .hcard.r1:hover .hc-line, .hcard.r1:focus-visible .hc-line, .hcard.r1:hover .hc-meta small { visibility: visible; }
.hcard.t-cream, .wl-tab.t-cream { --bg: var(--v-surface); --fg: var(--ink); }
.hcard.t-blush, .wl-tab.t-blush { --bg: var(--t2); --fg: var(--on); }
.hcard.t-blue, .wl-tab.t-blue { --bg: var(--t1); --fg: var(--on); }
.hcard.t-butter, .wl-tab.t-butter { --bg: var(--t3); --fg: var(--on); }
.hcard.t-sage, .wl-tab.t-sage { --bg: var(--t4); --fg: var(--on); }
.hcard.t-wine, .wl-tab.t-wine { --bg: var(--ink); --fg: var(--v-surface); }
.hcard, .wl-tab { background: var(--bg) !important; color: var(--fg) !important; }
.hc-top b, .wl-tab b { font-family: var(--serif) !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: -.01em; }
.hc-ast { color: var(--accent2); }
.hcard.t-wine .hc-ast { color: var(--t2); }
.hc-line, .wl-tab small { font-family: var(--hand) !important; }
.hcard:hover, .hcard:focus-visible { box-shadow: 5px 6px 0 var(--line); }
.pocket-front { height: 40cqi; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 2.2cqi, var(--stripe-b) 2.2cqi 4.4cqi) !important; color: var(--ink) !important; border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.pocket-front .clip { border-color: var(--ink) !important; } .pocket-front .clip::after { background: var(--ink) !important; }
.pf-quote { background: var(--v-surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: 14px; padding: .8rem 1.1rem; font-family: var(--serif) !important; font-weight: 500 !important; box-shadow: 3px 3px 0 var(--line); text-transform: none !important; }
.pf-hint { color: var(--ink) !important; background: var(--v-surface); padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); }
.wl-title { color: var(--ink); font: 600 clamp(3.4rem, 7.4vw, 6.8rem)/.88 var(--serif); letter-spacing: -.03em; }
.wl-title em { font: italic 500 clamp(1.8rem, 3.2vw, 3rem)/1 var(--serif); color: var(--accent2); transform: rotate(-4deg); }
.wl-n { background: var(--ink); color: var(--v-surface); border: var(--bw) solid var(--line); }
.wl-pill { border-color: var(--line); background: var(--v-surface); box-shadow: 3px 3px 0 var(--line); }
.wl-pill span { font-family: var(--serif); font-weight: 600; text-transform: none; }
.wl-pill b { background: var(--ink); color: var(--v-surface); font-family: var(--serif); text-transform: none; }
.wl-photo { background: var(--v-surface); border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.wl-photo img, .wl-ph { background: var(--t2); color: var(--ink); }
.oval, .wl-oval { background: var(--v-surface) !important; color: var(--ink) !important; border: var(--bw) solid var(--line); outline-color: var(--line) !important; font-family: var(--serif); }
.wl-hello { color: var(--ink2); }
.wl-script { font-family: var(--hand); color: var(--accent2); }
.wl-tab { border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.wl-page .demo-band { background: var(--ink); color: var(--v-surface); }

/* ---------- shared pieces for the new hubs ---------- */
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.2rem; }
.two-col { margin-bottom: 1.2rem; }
.tab-body > .card, .tab-body > section { margin-bottom: 1.2rem; }
.plain-l { list-style: none; margin: 0; padding: 0; display: grid; }
.plain-l li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--hair); }
.plain-l li:last-child { border-bottom: 0; }
.plain-l li > span:not(.avatar):not(.bd-day):not(.v-ic) { flex: 1; min-width: 0; display: grid; }
.plain-l li .meter { flex: 1; }
.room-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.room-tabs .chip small { margin-left: .2rem; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: var(--bw) solid var(--line); background: var(--t2); font: 600 1rem var(--serif); color: var(--ink); }
.avatar.big { width: 56px; height: 56px; font-size: 1.4rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.masonry { columns: 4 200px; column-gap: .8rem; }
.masonry.big { columns: 3 240px; }
.m-tile { all: unset; cursor: zoom-in; display: block; break-inside: avoid; margin-bottom: .8rem; border: var(--bw) solid var(--line); border-radius: 14px; overflow: hidden; background: var(--v-surface2); box-shadow: 2px 2px 0 var(--line); }
.m-tile img { width: 100%; height: auto; display: block; }
.m-tile:hover { box-shadow: 4px 4px 0 var(--line); transform: translateY(-1px); }
.m-tile:focus-visible { outline: 3px solid var(--accent); }
.m-add { break-inside: avoid; margin-bottom: .8rem; min-height: 140px; }
.m-note { all: unset; cursor: pointer; box-sizing: border-box; display: block; width: 100%; break-inside: avoid; margin-bottom: .8rem; padding: 1rem 1.1rem 1.3rem; border: var(--bw) solid var(--line); border-radius: 4px 4px 16px 4px; font: 400 1.45rem/1.2 var(--hand); color: var(--on); box-shadow: 2px 3px 0 var(--line); }
.m-note.n0 { background: var(--t3); transform: rotate(-1.5deg); } .m-note.n1 { background: var(--t2); transform: rotate(1deg); } .m-note.n2 { background: var(--t4); transform: rotate(-.5deg); } .m-note.n3 { background: var(--t1); transform: rotate(1.5deg); }

/* The Sanctuary */
.reset-card { background: color-mix(in srgb, var(--t4) 22%, var(--v-surface)); }
.rz h3 { margin: .8rem 0 .1rem; font: 700 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ch-h { display: flex; align-items: center; gap: .4rem; margin: .7rem 0 .3rem; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chores { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.chore { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .5rem .6rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--v-surface); }
.chore.late { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--v-surface)); } .chore.today { border-color: var(--line); }
.ch-done { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: var(--bw) solid var(--line); color: transparent; } .ch-done:hover { color: var(--ink); background: var(--t4); } .ch-done .ic { width: 15px; height: 15px; }
.ch-t { display: grid; min-width: 0; } .ch-due { text-align: right; font-size: .8rem; }
.stock-l { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.stock-l li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; align-items: center; gap: .8rem; padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--hair); }
.stock-l li.low { border-color: var(--accent2); background: color-mix(in srgb, var(--t2) 22%, var(--v-surface)); }
.sk-t { display: grid; min-width: 0; } .sk-n { display: flex; align-items: center; gap: .3rem; } .sk-n b { min-width: 1.6rem; text-align: center; font-size: 1.1rem; } .sk-n small { color: var(--muted); font-size: .7rem; }
.shop-list .plain-l li .btn { flex: none; }
.room-board .kick { margin-bottom: .2rem; } .room-vision { color: var(--ink2); margin: -.2rem 0 1rem; font-style: italic; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.wish { display: grid; gap: .35rem; align-content: start; padding: .7rem; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--v-surface); }
.wish.bought { opacity: .65; }
.wish-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--v-surface2); color: var(--muted); } .wish-ph img { width: 100%; height: 100%; object-fit: cover; } .wish-ph .ic { width: 34px; height: 34px; }
.wish-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.wish-foot .tag { cursor: pointer; font: inherit; font-size: .7rem; font-weight: 700; }

/* Memory Archive */
.sb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sb-bar .lede { margin: 0; }
.roll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.roll { display: grid; gap: .5rem; }
.roll-cover { all: unset; cursor: pointer; display: block; padding: 10px; background: var(--v-surface); border: var(--bw) solid var(--line); border-radius: 16px; box-shadow: var(--v-shadow); }
.roll-cover:hover { transform: translateY(-2px) rotate(-.5deg); box-shadow: 5px 5px 0 var(--line); }
.roll-mosaic { display: grid; gap: 5px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.roll-mosaic.n2 { grid-template-columns: 1fr 1fr; } .roll-mosaic.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .roll-mosaic.n3 img:first-child { grid-row: span 2; } .roll-mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.roll-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.roll-empty { display: grid; place-items: center; background: var(--v-surface2); color: var(--muted); } .roll-empty .ic { width: 40px; height: 40px; }
.roll-meta { display: grid; padding: 0 .3rem; } .roll-meta b { font: 600 1.15rem var(--serif); }
.roll-cap { color: var(--ink2); margin: -.2rem 0 1rem; }
.line-today { background: color-mix(in srgb, var(--t3) 30%, var(--v-surface)); }
.line-form { display: flex; flex-wrap: wrap; gap: .5rem; } .line-in { flex: 1 1 260px; font-family: var(--serif); font-size: 1.05rem; } .line-form select { flex: 0 1 190px; }
.otd { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.otd li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.otd-y { padding: .2rem .55rem; border-radius: 999px; background: var(--ink); color: var(--v-surface); font: 700 .75rem var(--sans); }
.otd p { margin: 0; font: italic 500 1.05rem/1.35 var(--serif); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--hair); }
.lines li:last-child { border-bottom: 0; }
.ln-d { display: grid; justify-items: center; line-height: 1; } .ln-d b { font: 600 1.4rem var(--serif); } .ln-d small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ln-t { text-align: left; font-size: .98rem; }
.yr-years { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.yr-hero { position: relative; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: repeating-linear-gradient(90deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px); box-shadow: var(--v-shadow); }
.yr-title { font: 600 clamp(2.4rem, 5vw, 3.8rem)/1 var(--serif); margin: .2rem 0 1rem; }
.yr-stats { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.yr-stats span { display: grid; min-width: 110px; padding: .6rem .9rem; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--v-surface); }
.yr-stats b { font: 600 1.8rem/1 var(--serif); } .yr-stats small { color: var(--muted); font-size: .75rem; }
.yr-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.yr-col.yr-wins { background: color-mix(in srgb, var(--t3) 30%, var(--v-surface)); } .yr-col.yr-moments { background: color-mix(in srgb, var(--t2) 30%, var(--v-surface)); } .yr-col.yr-lessons { background: color-mix(in srgb, var(--t1) 30%, var(--v-surface)); } .yr-col.yr-next { background: color-mix(in srgb, var(--t4) 30%, var(--v-surface)); }
.yr-l { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }

/* Creator Studio */
.pp-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; align-items: start; margin-bottom: .6rem; }
.pp-col { display: grid; gap: .6rem; padding: .8rem; min-height: 220px; border: var(--bw) dashed color-mix(in srgb, var(--line) 35%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--v-surface2) 70%, transparent); }
.pp-col header { display: flex; align-items: center; gap: .45rem; } .pp-col header h3 { flex: 1; font: 600 1.05rem var(--serif); } .pp-col header .ic { color: var(--accent2); }
.pp-col .count { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--v-surface); font: 700 .72rem var(--sans); }
.pp-col.col-doing { background: color-mix(in srgb, var(--t1) 25%, var(--v-surface)); } .pp-col.col-done { background: color-mix(in srgb, var(--t4) 25%, var(--v-surface)); }
.pp-col.drop-over { border-style: solid; border-color: var(--line); }
.pp-list { display: grid; gap: .6rem; }
.pp-card { display: grid; gap: .35rem; padding: .8rem; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--v-surface); box-shadow: 2px 2px 0 var(--line); cursor: grab; }
.pp-card h3 { font: 600 1rem/1.25 var(--serif); }
.pp-ph { display: block; height: 90px; margin: -.3rem -.3rem .2rem; border-radius: 10px; overflow: hidden; } .pp-ph img { width: 100%; height: 100%; object-fit: cover; }
.pp-due { color: var(--ink2); } .pp-due .ic { width: 13px; height: 13px; }
.pp-acts { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-top: .2rem; }
.pp-empty { margin: 0; padding: 1rem .5rem; text-align: center; color: var(--muted); font-size: .82rem; border: 1px dashed var(--hair); border-radius: 12px; }
.steps.tight button { padding: .2rem .15rem; font-size: .84rem; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; opacity: .92; }
.dragging { opacity: .35; }
.sk-bar { margin-bottom: 1rem; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.sk-lvl { display: flex; align-items: baseline; gap: .15rem; padding: .3rem .7rem; border: var(--bw) solid var(--line); border-radius: 999px; background: var(--t1); color: var(--on); }
.sk-lvl b { font: 600 1.3rem var(--serif); }
.tree { list-style: none; margin: 1rem 0 .4rem; padding: 0 0 0 .2rem; display: grid; gap: .55rem; position: relative; }
.tree::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px; background: var(--hair); }
.tree li { position: relative; display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.node { all: unset; cursor: pointer; position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--v-surface); font: 700 .75rem var(--sans); color: var(--ink2); }
.tree li.on .node { background: var(--accent2); border-color: var(--accent2); color: var(--v-surface); } .tree li.on > span { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--accent2); }
.tree li.next .node { background: var(--t3); color: var(--on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t3) 55%, transparent); }
.node .ic { width: 14px; height: 14px; } .node:focus-visible { outline: 3px solid var(--accent); }
.res-h { display: flex; align-items: center; gap: .4rem; margin: .9rem 0 .4rem; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.res-l { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.res-l li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; } .res-l li > a, .res-l li > .link-plain { flex: 1; min-width: 0; } .res-l li.done > a, .res-l li.done > .link-plain { text-decoration: line-through; color: var(--muted); }
.res-l a { color: var(--ink); } .res-l a .ic { width: 12px; height: 12px; }
.res-st { all: unset; cursor: pointer; padding: .12rem .55rem; border-radius: 999px; border: 1px solid var(--line); font: 700 .68rem var(--sans); }
.res-st.st-doing { background: var(--t1); color: var(--on); } .res-st.st-done { background: var(--t4); color: var(--on); }
.canvas { padding: 1.3rem; border: var(--bw) solid var(--line); border-radius: var(--r); background-color: var(--v-surface); background-image: radial-gradient(color-mix(in srgb, var(--line) 18%, transparent) 1px, transparent 1.5px); background-size: 18px 18px; box-shadow: var(--v-shadow); }
.cv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.sw { display: grid; justify-items: center; gap: .2rem; } .sw i { width: 34px; height: 34px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--sw, repeating-linear-gradient(45deg, var(--v-surface2) 0 4px, var(--v-surface) 4px 8px)); } .sw small { font-size: .62rem; color: var(--muted); }

/* The Socialite */
.invite { display: grid; grid-template-columns: 1fr auto; margin-bottom: 1.2rem; border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--v-shadow); background: var(--v-surface); }
.inv-main { padding: 1.4rem 1.6rem; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--t2) 45%, var(--v-surface)) 0 12px, var(--v-surface) 12px 24px); }
.inv-t { font: 600 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--serif); margin: .3rem 0 .6rem; }
.inv-l { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; font-weight: 600; } .inv-l .ic { width: 16px; height: 16px; }
.inv-theme { font: italic 500 1.1rem var(--serif); color: var(--accent2); margin: .6rem 0 0; }
.inv-stub { display: grid; align-content: center; justify-items: center; gap: .2rem; min-width: 160px; padding: 1.2rem; border-left: 2px dashed var(--line); background: var(--v-surface); text-align: center; }
.inv-n { font: 600 3.4rem/1 var(--serif); }
.menu-l { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; counter-reset: m; text-align: center; }
.menu-l li { font: italic 500 1.08rem/1.3 var(--serif); padding-bottom: .5rem; border-bottom: 1px dashed var(--hair); } .menu-l li:last-child { border: 0; }
.menu-card { background: color-mix(in srgb, var(--t3) 25%, var(--v-surface)); }
.guest-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.guest-l li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--hair); }
.rsvp { all: unset; cursor: pointer; padding: .18rem .65rem; border-radius: 999px; border: 1px solid var(--line); font: 700 .72rem var(--sans); background: var(--v-surface); }
.rsvp.r-yes { background: var(--t4); color: var(--on); } .rsvp.r-maybe { background: var(--t3); color: var(--on); } .rsvp.r-no { background: var(--v-surface2); color: var(--muted); text-decoration: line-through; }
.allergy { margin: .8rem 0 0; padding: .5rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, var(--v-surface)); } .allergy .ic { color: var(--warn); }
.gift-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: .4rem 0 1rem; }
.gift-groups { columns: 3 260px; column-gap: 1.1rem; }
.gift-group { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 1.1rem; }
.gg-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; } .gg-head h3 { font: 600 1.25rem var(--serif); }
.gift { display: flex; gap: .7rem; padding: .75rem; margin-bottom: .6rem; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--v-surface); box-shadow: 2px 2px 0 var(--line); }
.gift.st-given { opacity: .62; }
.gift-ph { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); } .gift-ph img { width: 100%; height: 100%; object-fit: cover; }
.gift-b { display: grid; gap: .2rem; flex: 1; min-width: 0; }
.gift-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.gift-st { all: unset; cursor: pointer; padding: .14rem .6rem; border-radius: 999px; border: 1px solid var(--line); font: 700 .7rem var(--sans); background: var(--t3); color: var(--on); }
.gift.st-bought .gift-st { background: var(--t1); } .gift.st-wrapped .gift-st { background: var(--t2); } .gift.st-given .gift-st { background: var(--t4); }
.bd-day { display: grid; justify-items: center; flex: none; width: 46px; padding: .3rem 0; border: var(--bw) solid var(--line); border-radius: 12px; background: var(--t2); color: var(--on); line-height: 1; } .bd-day b { font: 600 1.3rem var(--serif); } .bd-day small { font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.reach li .btn { flex: none; }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.friend { display: grid; gap: .7rem; align-content: start; padding: 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--v-surface); box-shadow: var(--v-shadow); }
.fr-top { display: flex; align-items: center; gap: .7rem; } .fr-top h3 { font: 600 1.2rem var(--serif); }
.fr-facts { margin: 0; display: grid; gap: .4rem; } .fr-facts div { display: grid; grid-template-columns: 104px 1fr; gap: .4rem; font-size: .86rem; }
.fr-facts dt { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 600; } .fr-facts dt .ic { width: 14px; height: 14px; } .fr-facts dd { margin: 0; }
.fr-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; border-top: 1px dashed var(--hair); }

/* The Reset */
.dc-start { margin-bottom: 1.2rem; } .dc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.dc.done { background: color-mix(in srgb, var(--t4) 25%, var(--v-surface)); }
.steps.numbered { counter-reset: s; } .steps.numbered .cb { border-radius: 50%; }
.vault { margin-bottom: 1.2rem; padding: 1.3rem 1.4rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--ink); color: var(--v-surface); box-shadow: var(--v-shadow); }
.vault .kick { color: color-mix(in srgb, var(--v-surface) 70%, transparent); }
.vault h2 { color: var(--v-surface); } .vault h2 em { color: var(--t2); }
.vault-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.vault-lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--t3); color: var(--t3); background: repeating-conic-gradient(color-mix(in srgb, var(--t3) 15%, transparent) 0 10deg, transparent 10deg 20deg); } .vault-lock .ic { width: 24px; height: 24px; }
.vault-stats { display: flex; gap: .5rem; margin-left: auto; }
.vault-stats span { display: grid; justify-items: center; min-width: 80px; padding: .4rem .7rem; border: 1px solid color-mix(in srgb, var(--v-surface) 30%, transparent); border-radius: 12px; } .vault-stats b { font: 600 1.5rem/1 var(--serif); } .vault-stats small { font-size: .68rem; opacity: .75; }
.vault-stats .bad b { color: var(--t2); }
.vault-l { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.vault-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 14px; background: var(--v-surface); color: var(--ink); border-left: 5px solid var(--t1); }
.vault-row.st-booked { border-left-color: var(--t4); } .vault-row.late { border-left-color: var(--bad); }
.v-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--v-surface2); color: var(--ink); flex: none; } .v-ic .ic { width: 18px; height: 18px; } .v-ic.sm { width: 28px; height: 28px; }
.v-t { display: grid; min-width: 0; } .v-due { display: grid; justify-items: end; font-size: .84rem; } .v-due small { color: var(--muted); font-size: .7rem; }
.v-acts { display: flex; gap: .3rem; }
.vault .inline .btn { background: var(--v-surface); color: var(--ink); }
.dump-card { background: color-mix(in srgb, var(--t5) 25%, var(--v-surface)); }
.dump-form { display: grid; gap: .5rem; } .dump-form .btn { justify-self: start; }
.th-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.thought { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .55rem .6rem .55rem .8rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--v-surface); }
.th-t { display: grid; } .th-acts { display: flex; gap: .25rem; align-items: center; }
.th-sort { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem; padding-top: .4rem; border-top: 1px dashed var(--hair); }
.th-sort .chip { display: inline-grid; grid-auto-flow: column; align-items: center; } .th-sort .chip small { margin-left: .3rem; font-weight: 500; }
.treasure { background: color-mix(in srgb, var(--t3) 22%, var(--v-surface)); }

/* ---------- dark palettes ---------- */
:is([data-theme="velvet"], [data-theme="graphite"]) .vault { background: var(--v-surface2); color: var(--ink); }
:is([data-theme="velvet"], [data-theme="graphite"]) .vault h2, :is([data-theme="velvet"], [data-theme="graphite"]) .vault .kick { color: var(--ink); }
:is([data-theme="velvet"], [data-theme="graphite"]) .vault .inline .btn { background: var(--ink); color: var(--v-paper); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) { .pp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .three-col { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .pp-board, .yr-cols { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; } .inv-stub { border-left: 0; border-top: 2px dashed var(--line); }
  .vault-row { grid-template-columns: auto 1fr; } .v-due { justify-items: start; grid-column: 2; } .v-acts { grid-column: 1 / -1; }
  .stock-l li { grid-template-columns: 1fr auto; } .stock-l li .meter { grid-column: 1 / -1; grid-row: 2; }
  .lines li { grid-template-columns: 44px 1fr; } .lines li .tag { grid-column: 2; justify-self: start; }
  .masonry { columns: 2 140px; } .gift-groups { columns: 1; }
  .ftabs { gap: 1rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .ftab { flex: none; }
}
/* the welcome page sits on Vita's cream grid paper */
body.on-welcome { background: var(--cream); }
.wl-page { color: var(--ink); background-color: var(--cream); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-position: 0 0; }
.wl-hello { color: var(--ink2); }
.wl-title em { color: var(--accent2); justify-self: start; margin: -.3rem 0 -.4rem 1.2em; }
.wl-side { overflow: visible; }
.pocket-front { -webkit-mask: none; mask: none; border-radius: 0 0 var(--r) var(--r); }
.pocket-front::before { content: ""; position: absolute; left: 50%; top: -2px; width: 14cqi; height: 7cqi; transform: translateX(-50%); border: var(--bw) solid var(--line); border-top: 0; border-radius: 0 0 7cqi 7cqi; background: var(--cream); }
.wl-title { font-size: clamp(3rem, 5.6vw, 5.6rem); }
.wl-photo { z-index: 2; }
.two-col > *, .three-col > * { min-width: 0; }
.stock-l li { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; gap: .6rem; }
.sk-n { gap: .1rem; } .sk-n .icon-btn { width: 30px; height: 30px; } .sk-n small { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-stats .bad small { color: var(--t2); opacity: 1; }
/* the preview band sits above the sidebar */
@media (min-width: 1101px) { body.with-side.is-demo .side { top: 31px; } }

/* theme picker: Vita's palette cards */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.pal { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .25rem; align-content: start; padding: .6rem; border: var(--bw) solid color-mix(in srgb, var(--line) 30%, transparent); border-radius: 14px; background: var(--v-surface); color: var(--ink); }
.pal:hover { border-color: var(--line); }
.pal[aria-pressed="true"] { border-color: var(--line); box-shadow: 3px 3px 0 var(--line); background: color-mix(in srgb, var(--t1) 30%, var(--v-surface)); }
.pal:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pal-sw { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-bottom: .25rem; }
.pal-sw i { flex: 1; }
.pal b { font: 600 .95rem var(--serif); } .pal small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
/* pastel fills always carry the dark "on" ink, in every palette */
.hh-kick, .avatar, .sk-lvl, .otd-y { color: var(--on); }
.otd-y { background: var(--t3); }
:is([data-theme="velvet"], [data-theme="graphite"]) .side-link[aria-current="page"] { background: color-mix(in srgb, var(--t1) 22%, var(--v-surface)); color: var(--ink); }
@media (max-width: 700px) {
  .plain-l.reach li { flex-wrap: wrap; } .plain-l.reach li > span:not(.avatar) { flex: 1 1 calc(100% - 60px); }
  .plain-l.reach li .btn { margin-left: 48px; }
  .plain-l li { flex-wrap: wrap; }
}
/* sign-in: Vita's cream grid with a pinstripe pocket */
.auth { background: var(--cream); }
.auth-art { background-color: color-mix(in srgb, var(--t1) 45%, var(--v-surface)); background-image: linear-gradient(color-mix(in srgb, var(--line) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 10%, transparent) 1px, transparent 1px); background-size: 28px 28px; color: var(--ink); border-right: var(--bw) solid var(--line); }
.aa-c { border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--line); color: var(--on); }
.aa-c b { font-family: var(--serif); font-weight: 600; text-transform: none; font-size: 1.3rem; }
.aa-c i { color: var(--accent2); }
.aa-c.c1 { background: var(--v-surface); color: var(--ink); } .aa-c.c2 { background: var(--t2); } .aa-c.c3 { background: var(--ink); color: var(--v-surface); } .aa-c.c3 i { color: var(--t2); }
.aa-pocket { -webkit-mask: none; mask: none; background: repeating-linear-gradient(90deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px); border: var(--bw) solid var(--line); box-shadow: 4px 4px 0 var(--line); color: var(--ink); font-weight: 500; }
.aa-pocket::first-line { background: none; }
.aa-over, .aa-over .wordmark { color: var(--ink); }
.aa-kick { color: var(--accent2); }
.aa-lede { color: var(--ink2); }
.aa-stats > span { border-color: var(--line); background: var(--v-surface); color: var(--ink); box-shadow: 2px 2px 0 var(--line); }
.aa-stats b { font-weight: 600; }
.auth-card { border: var(--bw) solid var(--line); box-shadow: var(--v-shadow); background: var(--v-surface); }
