/* =====================================================================
   MUSE — the "That Girl" life planner
   A scrapbook on grid paper: vanilla cream pages, washi tape, polaroids,
   receipts and ticket stubs, binder folder tabs and little Y2K windows.
   Palette: Vanilla Cream, Blush Petal, Rosewood, Sage Leaf, Misty Sky and
   Midnight Lagoon. Instrument Serif for headings, Inter for reading,
   Caveat for the handwriting.
   ===================================================================== */
:root, [data-theme="muse"] {
  --cream: #FFF7E6; --paper: #FFFDF8; --paper2: #FBF0DB; --paper3: #F3E4C8; --grid: rgb(169 183 198 / .22);
  --ink: #2D3A47; --ink2: #5D6975; --ink3: #8E99A4; --hair: #EBDCC0;
  --blush: #F7C8D3; --blush-soft: #FCE7EC; --rose: #B46A72; --rose-ink: #8E4A53;
  --sage: #A8B58A; --sage-soft: #EAEFDC; --sage-ink: #56653A;
  --sky: #A9B7C6; --sky-soft: #E4EAF1; --sky-ink: #465A70;
  --butter: #F3DB98; --butter-soft: #FBF1D2; --butter-ink: #7A5F16;
  --night: #2D3A47; --on-night: #FFF7E6;
  --shadow-1: 0 1px 0 rgb(45 58 71 / .05), 0 8px 22px -14px rgb(45 58 71 / .28);
  --shadow-2: 0 26px 60px -24px rgb(45 58 71 / .45);
  --r: 20px; --r-sm: 12px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  color-scheme: light;
}
[data-theme="night"] {
  --cream: #1C2630; --paper: #273441; --paper2: #2F3D4B; --paper3: #3A4958; --grid: rgb(169 183 198 / .07);
  --ink: #FFF7E6; --ink2: #C3CBD3; --ink3: #8E99A4; --hair: #3A4958;
  --blush: #E9A9B8; --blush-soft: #4A3540; --rose: #E3A0A9; --rose-ink: #F2B9C1;
  --sage: #A8B58A; --sage-soft: #36412F; --sage-ink: #C8D4A8;
  --sky: #A9B7C6; --sky-soft: #33414F; --sky-ink: #C9D5E2;
  --butter: #E6CC85; --butter-soft: #463F2A; --butter-ink: #F1DCA1;
  --night: #FFF7E6; --on-night: #2D3A47;
  --shadow-1: 0 1px 0 rgb(0 0 0 / .2), 0 10px 24px -14px rgb(0 0 0 / .6); --shadow-2: 0 26px 60px -24px 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); font: 400 .95rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-color: var(--cream); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.005em; }
h2 { font-size: 1.65rem; }
h3 { font: 650 1rem/1.25 var(--sans); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose); }
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: #2D3A47; }
: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: italic 4rem var(--serif); color: var(--rose); }
.error-text { color: var(--rose-ink); font-weight: 650; }
.kick { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.lede { color: var(--ink2); max-width: 62ch; }
.hl { background: linear-gradient(176deg, transparent 54%, var(--blush) 54%, var(--blush) 90%, transparent 90%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="night"] .hl { background: linear-gradient(176deg, transparent 56%, #6E4250 56%, #6E4250 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: 500 1.25rem/1.2 var(--hand); color: var(--ink2); }
.empty { padding: 1rem; text-align: center; color: var(--ink2); }

/* ---------- Controls ---------- */
.btn { --b: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--b); color: var(--ink); font: 600 .88rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .14s, box-shadow .14s, background .14s; white-space: nowrap; user-select: none; box-shadow: 0 2px 0 var(--ink); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn.solid { --b: var(--ink); color: var(--cream); }
[data-theme="night"] .btn.solid { --b: var(--blush); color: #2D3A47; border-color: var(--blush); box-shadow: 0 2px 0 #B46A72; }
.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: #FFF7E6; border-color: rgb(255 247 230 / .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: #2D3A47; }
.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: 1.5px solid var(--hair); border-radius: var(--r); padding: 1.15rem 1.25rem 1.25rem; 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.55rem; }
.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, #F7C8D3 0 9px, #FBE0E6 9px 18px); }
.tp-sage { background-color: #DCE3C8; background-image: linear-gradient(90deg, rgb(168 181 138 / .55) 50%, transparent 50%), linear-gradient(rgb(168 181 138 / .55) 50%, transparent 50%); background-size: 12px 12px; }
.tp-sky { background: radial-gradient(circle, #FFFDF8 2.2px, transparent 2.6px) 0 0 / 11px 11px, #BCC8D5; }
.tp-butter { background: repeating-linear-gradient(-45deg, #F3DB98 0 6px, #F9EBC4 6px 12px); }
.tp-rose { background: repeating-linear-gradient(90deg, #D69AA2 0 5px, #E8BEC3 5px 14px); }
[data-theme="night"] .tape { opacity: .7; }
/* Notebook lines */
.lined { background-image: linear-gradient(90deg, transparent 2.1rem, color-mix(in oklab, var(--blush) 70%, transparent) 2.1rem 2.2rem, transparent 2.2rem), repeating-linear-gradient(var(--paper) 0 1.85rem, var(--hair) 1.85rem calc(1.85rem + 1px)); background-position: 0 .6rem; }
/* A receipt with a torn zig-zag bottom */
.receipt { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 12px; }
.receipt::after { content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -11px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px; background-repeat: repeat-x; filter: drop-shadow(0 2px 0 var(--hair)); }
/* A ticket with punched notches */
.ticket { -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 13px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
/* Polaroids */
.polaroid { position: relative; margin: 0; padding: 10px 10px 0; background: #FFFEFB; border-radius: 3px; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 12px 24px -12px rgb(45 58 71 / .45); transform: rotate(var(--tilt, -2deg)); transition: transform .2s; color: #2D3A47; }
.polaroid:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.pol-img { aspect-ratio: 1; overflow: hidden; background: #F3ECE0; 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, #FCE7EC 0 10px, #FFF7E6 10px 20px); }
.pol-open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.polaroid figcaption { font: 600 1.25rem/1 var(--hand); text-align: center; padding: .55rem .3rem .65rem; min-height: 2.2rem; color: #2D3A47; }
.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: #2D3A47; }
.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: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--blush); overflow: hidden; min-width: 0; }
[data-theme="night"] .win { border-color: var(--ink3); box-shadow: 4px 4px 0 #6E4250; }
.win-bar { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; background: linear-gradient(90deg, var(--blush), var(--sky)); border-bottom: 1.5px solid var(--ink); color: #2D3A47; }
[data-theme="night"] .win-bar { border-color: var(--ink3); }
.win-bar b { font: 600 .78rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-dots { display: flex; gap: 5px; } .win-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.2px solid #2D3A47; background: #FFF7E6; } .win-dots i:first-child { background: #B46A72; } .win-dots i:nth-child(2) { background: #F3DB98; } .win-dots i:nth-child(3) { background: #A8B58A; }
.win-btns { display: flex; gap: 3px; } .win-btns i { display: grid; place-items: center; width: 18px; height: 16px; border: 1.2px solid #2D3A47; border-radius: 4px; background: #FFF7E6; font: 700 .62rem/1 var(--sans); font-style: normal; }
.win-body { padding: 1rem 1.1rem 1.1rem; }
/* Stickers and stars */
.sticker { position: absolute; z-index: 3; top: -10px; right: 14px; padding: .35rem .7rem; border-radius: 999px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; transform: rotate(var(--rot)); box-shadow: 0 2px 0 rgb(45 58 71 / .25); background: var(--butter); color: #2D3A47; }
.st-sage { background: var(--sage); color: #22301A; } .st-blush { background: var(--blush); } .st-sky { background: var(--sky); }
.star { width: 26px; height: 26px; fill: var(--butter); stroke: #2D3A47; 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); }

/* ---------- The desk (front page) ---------- */
body.on-desk { background-color: var(--cream); }
.desk-page { min-height: 100vh; display: flex; flex-direction: column; }
.desk-head { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem clamp(1rem, 3vw, 2.4rem) .6rem; max-width: 1320px; width: 100%; margin: 0 auto; }
.desk-brand { text-decoration: none; }
.wordmark { font: 400 2.1rem/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.wordmark i { font-style: italic; color: var(--rose); }
.wordmark.big { font-size: clamp(4rem, 9vw, 6.5rem); }
.desk-hello { margin: 0; display: grid; line-height: 1.15; }
.dh-script { font: 600 1.55rem/1 var(--hand); color: var(--rose); }
.desk-hello > span:last-child { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); font-weight: 600; }
.desk-tools { margin-left: auto; display: flex; gap: .2rem; }
.desk-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(.6rem, 3vw, 2.4rem) 2rem; }
.desk-stage { position: relative; max-width: max(560px, calc((100vh - 170px) * 1.3333)); margin: 0 auto; }
.desk-frame { position: relative; container-type: inline-size; border-radius: 24px; overflow: hidden; border: 1.5px solid var(--hair); box-shadow: 0 30px 70px -40px rgb(45 58 71 / .55), 0 2px 0 var(--hair); background: #F6E6D4; }
.desk-img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.desk-label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; text-decoration: none; animation: labelIn .6s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: var(--d); }
.desk-label span { display: inline-block; white-space: nowrap; padding: .62em 1.15em; border-radius: 999px; font: 650 clamp(.62rem, 1.18cqi, .92rem)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #2D3A47;
  background: rgb(255 249 238 / .8); -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 6px 18px -8px rgb(45 58 71 / .45), inset 0 1px 0 #fff; transition: transform .22s cubic-bezier(.2, 1.4, .4, 1), box-shadow .22s, background .22s; }
.desk-label span::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--rose); margin-right: .55em; vertical-align: .05em; box-shadow: 0 0 0 .22em rgb(180 106 114 / .18); }
.desk-label:hover span, .desk-label:focus-visible span { transform: translateY(-4px) scale(1.05); background: rgb(255 253 248 / .96); box-shadow: 0 0 0 4px rgb(247 200 211 / .65), 0 14px 30px -8px rgb(180 106 114 / .6); }
.desk-label:focus-visible { outline: none; }
@keyframes labelIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.9); } }
.desk-hint { display: flex; gap: .4rem; align-items: center; justify-content: center; margin: .9rem 0 0; font: 600 1.25rem var(--hand); color: var(--ink2); }
.desk-list { display: none; list-style: none; margin: 1rem 0 0; padding: 0; grid-template-columns: 1fr 1fr; gap: .55rem; }
.dl-t { display: flex; gap: .65rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--hair); text-decoration: none; box-shadow: var(--shadow-1); }
.dl-t > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--c-soft, var(--blush-soft)); color: var(--c-ink, var(--rose-ink)); }
.dl-t span { display: grid; min-width: 0; } .dl-t b { font-size: .88rem; font-weight: 650; } .dl-t small { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t0 { --c-soft: var(--blush-soft); --c-ink: var(--rose-ink); } .t1 { --c-soft: var(--sage-soft); --c-ink: var(--sage-ink); } .t2 { --c-soft: var(--sky-soft); --c-ink: var(--sky-ink); } ol.t3 { --c-soft: var(--butter-soft); --c-ink: var(--butter-ink); } .t4 { --c-soft: var(--paper3); --c-ink: var(--ink); }
.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: color-mix(in oklab, var(--cream) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--hair); }
.tb-brand { text-decoration: none; flex: none; } .tb-brand .wordmark { font-size: 1.75rem; }
.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: .4rem; padding: .42rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .8rem; color: var(--ink2); border: 1.5px solid transparent; }
.hn .ic { width: 15px; height: 15px; }
.hn:hover { background: var(--paper); color: var(--ink); border-color: var(--hair); }
.hn[aria-current="page"] { background: var(--ink); color: var(--cream); }
.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 var(--hair); background: var(--paper); color: var(--ink); }
.tb-btn:hover { border-color: var(--ink); } .tb-btn[aria-current="page"] { background: var(--blush); border-color: var(--rose); }
.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: var(--paper); border: 1.5px solid var(--hair); width: 190px; color: var(--ink3); }
.search:focus-within { border-color: var(--rose); }
.search input { all: unset; flex: 1; min-width: 0; color: var(--ink); font-size: .86rem; }
.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(45 58 71 / .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 { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hh-kick { display: block; font: 600 1.45rem/1 var(--hand); color: var(--rose); transform: rotate(-2deg); transform-origin: left; margin-bottom: .1rem; }
.hh-title { font: 400 clamp(2.6rem, 5.6vw, 4rem)/.95 var(--serif); letter-spacing: -.02em; }
.hh-title em { font-style: italic; color: var(--rose); }
.hh-lede { color: var(--ink2); max-width: 60ch; margin: .5rem 0 0; }
.hh-actions { display: flex; gap: .5rem; }
.ftabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 0; margin-bottom: -1.5px; position: relative; z-index: 1; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: none; position: relative; padding: .55rem 1.15rem .6rem; border: 1.5px solid var(--hair); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--c-soft); color: var(--c-ink); text-decoration: none; font-weight: 650; font-size: .84rem; transform: translateY(5px); transition: transform .15s; }
.ftab:hover { transform: translateY(1px); }
.ftab[aria-current="page"] { background: var(--paper); color: var(--ink); transform: none; z-index: 2; }
.ftab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--paper); }
.ft-0 { --c-soft: var(--blush-soft); --c-ink: var(--rose-ink); } .ft-1 { --c-soft: var(--sage-soft); --c-ink: var(--sage-ink); } .ft-2 { --c-soft: var(--sky-soft); --c-ink: var(--sky-ink); } .ft-3 { --c-soft: var(--butter-soft); --c-ink: var(--butter-ink); } .ft-4 { --c-soft: var(--paper3); --c-ink: var(--ink); }
.tab-body { position: relative; padding: 1.4rem clamp(.8rem, 2vw, 1.6rem) 1.6rem; background: color-mix(in oklab, var(--paper) 55%, transparent); border: 1.5px solid var(--hair); border-radius: 0 22px 22px 22px; 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); }

/* ---------- Muse 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 .cover-default { object-position: 50% 60%; filter: saturate(.9); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 247 230 / .94) 0%, rgb(255 247 230 / .78) 38%, rgb(255 247 230 / 0) 72%); pointer-events: none; }
[data-theme="night"] .cover::after { background: linear-gradient(90deg, rgb(28 38 48 / .94) 0%, rgb(28 38 48 / .74) 40%, rgb(28 38 48 / 0) 74%); }
.cover .tape { z-index: 4; }
.cover-text { position: absolute; z-index: 2; left: clamp(1.2rem, 4vw, 3rem); top: 50%; transform: translateY(-50%); max-width: min(520px, 70%); }
.cv-date { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.cv-hi { font: 400 clamp(2.2rem, 5vw, 3.8rem)/.95 var(--serif); margin: .25rem 0 .5rem; letter-spacing: -.02em; }
.cv-hi em { font-style: italic; color: var(--rose); }
.cv-aff { font: 600 1.35rem/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: #2D3A47; 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: 600 1.2rem 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: #2D3A47; 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: 600 1.15rem 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: 1rem 1.1rem; border-radius: 18px; 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) rotate(-.4deg); }
.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: 600 1.1rem 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: 600 1.3rem/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: #2D3A47; } .pf-instagram { --pf: var(--rose); } .pf-youtube { --pf: #D9574B; }
[data-theme="night"] .pf-tiktok { --pf: #FFF7E6; }
.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: 600 1.1rem 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: #22301A; } .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(--ink3); font-size: .7rem; }
.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(45 58 71 / .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, #2D3A47); 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: #FFF7E6; } .sp-butter { --c: var(--butter); } .sp-ink { --c: #2D3A47; --ink-c: #FFF7E6; }
.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: #2D3A47; } .st-read { background: var(--sage); color: #22301A; } .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: #2D3A47; border-radius: 2px 2px 14px 2px; }
.qn p { font: 600 1.3rem/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: #FBE3A8; } .qn-1 { --c: #F9D3DC; } .qn-2 { --c: #D9E4C1; } .qn-3 { --c: #D6E0EC; }
.notes { display: grid; gap: 1.2rem; }
.nw-h { font: italic 400 1.5rem var(--serif); display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; } .nw-h::after { content: ""; flex: 1; border-top: 1.5px dashed var(--hair); }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.nb-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: start; gap: .2rem; padding: 1rem 1rem 1rem 2.6rem; border-radius: 14px; border: 1.5px solid var(--hair); box-shadow: var(--shadow-1); min-height: 150px; background-color: var(--paper); }
.nb-card:hover { border-color: var(--rose); } .nb-card b { font-weight: 650; } .nb-card p { margin: 0; font-size: .85rem; color: var(--ink2); line-height: 1.85rem; } .nb-card small { display: flex; gap: .3rem; align-items: center; color: var(--rose-ink); }

/* ---------- Mindset ---------- */
.vb-wrap { position: relative; }
.vboard { position: relative; aspect-ratio: 16 / 9; min-height: 420px; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--hair); background-color: #F4E5D3; background-image: radial-gradient(rgb(180 106 114 / .12) 1.2px, transparent 1.6px); background-size: 18px 18px; box-shadow: inset 0 0 0 8px rgb(255 253 248 / .6); }
[data-theme="night"] .vboard { background-color: #2A2F38; }
.vb-item { position: absolute; margin: 0; padding: 7px 7px 0; background: #FFFEFB; box-shadow: 0 10px 22px -12px rgb(45 58 71 / .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(45 58 71 / .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: 600 1.1rem var(--hand); text-align: center; padding: .3rem .2rem .45rem; color: #2D3A47; }
.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: 600 1.6rem 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: 600 1.3rem 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%, #B46A72, transparent 55%), radial-gradient(circle at 85% 80%, #A9B7C6, transparent 50%), #2D3A47; color: #FFF7E6; }
.aff-hero .kick { color: #F7C8D3; }
.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: 600 1.25rem 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: 600 1.35rem 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: #B46A72; }
.heat-g i.now { outline: 2px solid var(--ink); outline-offset: 1px; }
[data-theme="night"] .heat-g i.l1 { background: #5A3F4A; } [data-theme="night"] .heat-g i.l2 { background: #7E5160; }
.heat-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: .7rem; font-size: .84rem; color: var(--ink2); } .heat-foot b { font: 400 1.3rem var(--serif); color: var(--ink); }
.heat-key { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; font-size: .72rem; } .heat-key i { width: 12px; height: 12px; border-radius: 3px; }
.heat-key .l0 { background: var(--paper3); } .heat-key .l1 { background: #F4D6DC; } .heat-key .l2 { background: #E9A9B5; } .heat-key .l3 { background: #CF8590; } .heat-key .l4 { background: #B46A72; }
.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: #2D3A47; color: #FFF7E6; 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(45 58 71 / .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: #1C2630; color: #fff; border-color: #1C2630; }
dialog#modal::backdrop { background: rgb(45 58 71 / .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: 500 1.3rem/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: #2D3A47; color: #FFF7E6; 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: #F7C8D3; color: #B46A72; font-size: .9rem; }
.toast.err::before { content: "!"; background: #F3DB98; color: #2D3A47; font-weight: 800; }
.toast button { all: unset; cursor: pointer; color: #F7C8D3; 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 #FFFEFB; 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: 600 1.6rem 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: #FFF7E6; color: #2D3A47; border-color: #FFF7E6; box-shadow: none; } .lb-tools .btn.ghost { --b: transparent; color: #FFF7E6; }

/* ---------- 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; background: #F6E6D4; display: grid; }
.aa-desk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 247 230 / 0) 30%, rgb(255 247 230 / .92) 72%); }
.aa-over { position: relative; z-index: 1; align-self: end; padding: clamp(1.6rem, 4vw, 3.4rem); color: #2D3A47; }
.aa-over .wordmark { color: #2D3A47; }
.aa-lede { max-width: 46ch; font-size: 1.05rem; margin: .6rem 0 1rem; color: #4A5663; }
.aa-stats { display: flex; flex-wrap: wrap; gap: .6rem; } .aa-stats > span { display: grid; padding: .6rem .9rem; border-radius: 14px; background: rgb(255 253 248 / .85); font-size: .8rem; color: #5D6975; border: 1px solid #EBDCC0; } .aa-stats b { font: 400 1.6rem/1 var(--serif); color: #B46A72; }
.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-desk { 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(45 58 71 / .6); margin-top: -18px; }
  .desk-head { flex-wrap: wrap; gap: .4rem .8rem; padding: .8rem .9rem .5rem; } .desk-tools { margin-left: auto; }
  .desk-head .wordmark { font-size: 1.8rem; } .dh-script { font-size: 1.3rem; }
  .desk-main { padding: 0 .5rem 2rem; }
  .desk-frame { border-radius: 16px; }
  .desk-label span { padding: .5em .75em; font-size: clamp(.5rem, 2.25cqi, .7rem); letter-spacing: .03em; }
  .desk-label span::before { display: none; }
  .desk-list { display: grid; }
  .lightbox { padding: 2.6rem .6rem 1rem; }
  #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .desk-label span { font-size: .5rem; padding: .45em .6em; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
.jr-prompt.lined, .jr-morning.lined { background-image: none; }
.jr-area { background: repeating-linear-gradient(transparent 0 calc(1.85rem - 1px), var(--hair) calc(1.85rem - 1px) 1.85rem) local !important; border-left: 2px solid color-mix(in oklab, var(--blush) 70%, transparent); padding-left: .9rem; margin-top: .4rem; }
.cyc-form { display: grid; gap: .8rem; }
ol.t3.mini li.done { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink2); }
@media (max-width: 720px) {
  .cover::after { background: linear-gradient(180deg, rgb(255 247 230 / .9), rgb(255 247 230 / .78)); }
  [data-theme="night"] .cover::after { background: rgb(28 38 48 / .86); }
  .cover-text { top: 1.1rem; transform: none; } .cv-hi { font-size: 2.3rem; } .cv-aff { font-size: 1.15rem; }
  .vibe .polaroid { max-width: 190px; }
  .desk-tools .btn { padding: .35rem .5rem; }
}
.nw-hero { padding-top: 2.2rem; }
@media (max-width: 720px) {
  .ch-next { display: block; }
  .acc-grid { grid-template-columns: 1fr 1fr; gap: .7rem; } .acc { padding: .8rem; } .acc-v { font-size: 1.4rem; }
  .nw-split > span { min-width: 0; flex: 1 1 40%; }
}
[data-theme="night"] .demo-band { background: #141C24; color: #FFF7E6; }
@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; } }

/* ---------- The desk, full screen (laptops and tablets in landscape) ----------
   The photo covers the whole screen under a see-through header. Labels are pinned to the photo,
   then nudged inside the visible area if a wide screen crops an edge. On very wide screens the
   crop is capped and the sides show a soft blurred copy of the desk instead. */
@media (min-width: 721px) {
  body.on-desk { overflow: hidden; }
  .desk-page { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
  .desk-page > .demo-band { grid-row: 1; }
  .desk-head { grid-row: 2; grid-column: 1; align-self: start; z-index: 5; max-width: none; padding: .9rem clamp(1rem, 3vw, 2.4rem) 2.2rem;
    background: linear-gradient(180deg, rgb(255 247 230 / .92), rgb(255 247 230 / .6) 60%, transparent); }
  .desk-main { grid-row: 2; grid-column: 1; position: relative; max-width: none; padding: 0; min-height: 0; }
  .desk-stage { position: absolute; inset: 0; max-width: none; margin: 0; container-type: size; overflow: hidden; background: #F6E6D4; }
  .desk-stage::before { content: ""; position: absolute; inset: -40px; background: url(../img/desk-800.webp) center / cover; filter: blur(28px) saturate(1.1); opacity: .9; }
  .desk-frame { position: absolute; left: 50%; top: 50%; container-type: normal; border: 0; border-radius: 0; box-shadow: none; background: none;
    width: min(max(100cqw, 133.333cqh), 160cqh); height: min(max(75cqw, 100cqh), 120cqh); transform: translate(-50%, -50%); }
  .desk-img { width: 100%; height: 100%; object-fit: cover; }
  .desk-label { left: clamp(calc(50% - 50cqw + 80px), var(--x), calc(50% + 50cqw - 80px)); top: clamp(calc(50% - 50cqh + 92px), var(--y), calc(50% + 50cqh - 56px)); }
  .desk-label span { font-size: clamp(.66rem, 1cqi, .95rem); }
  .desk-hint { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: .3rem .9rem; border-radius: 999px; background: rgb(255 249 238 / .82); backdrop-filter: blur(6px); color: #5D6975; }
  [data-theme="night"] .desk-head { background: linear-gradient(180deg, rgb(28 38 48 / .9), rgb(28 38 48 / .5) 60%, transparent); }
}
/* 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: #2D3A47; } 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; }
