/* =====================================================================
   SHIFT · the ultimate glow-up planner
   Our own take on the scrapbook mood board: cream grid paper, pop-up "reminder" windows with
   tinted title bars and offset shadows, speech-bubble tags, folder tabs, hand-drawn frames
   (striped, dashed, scalloped, loopy, ticket), organic stickers and four-point sparkles,
   selection handles on the vision board. Gloock for display, Instrument Serif italics,
   Space Mono for labels, Ms Madi for the odd handwritten word, Inter Tight for reading.
   ===================================================================== */
:root, [data-theme="glow"] {
  --bg: #FFF8EE; --grid: rgba(255, 143, 198, .2); --paper: #FFFFFF; --paper-2: #FFF1F6; --ink: #1C1A1F; --ink-2: #4B4550; --ink-3: #6B6470;
  --line: #EEE3DA; --line-2: #D9CCC2; --edge: #1C1A1F;
  --pink: #FF8FC6; --pink-2: #FFC8E1; --pink-3: #FFE6F1; --pink-ink: #B0185E;
  --lilac: #BCC2F4; --lilac-2: #E3E6FC; --lilac-ink: #3D44A0;
  --orange: #FE8E01; --orange-2: #FFD9A8; --yellow: #FFE45C; --butter: #FFFCCF; --mint: #C5E0D5; --mint-2: #E4F2EC; --blue: #A9D4F5; --blue-2: #DFF0FC; --lime: #DDF28A; --red: #F25C6E;
  --good: #1F6B44; --good-bg: #DDF1E5; --warn: #8A4E00; --warn-bg: #FFF0D6; --bad: #B0232F; --bad-bg: #FDE2E4;
  --primary: var(--pink); --on-primary: #1C1A1F; --accent: var(--lilac-ink); --accent-soft: var(--lilac-2);
  --shade: #E4729F; --side-bg: #FFFFFF;
  --c1: #E25595; --c2: #5D67C9; --c3: #E08A00; --c4: #3E9468; --c5: #F25C6E; --c6: #7FA9DE;
  --ph-menstrual: #F25C6E; --ph-follicular: #7CC79A; --ph-ovulation: #FFC93C; --ph-luteal: #9AA4EE;
  --f-disp: 'Gloock', 'DM Serif Display', Georgia, serif; --f-ital: 'Instrument Serif', Georgia, serif; --f-mono: 'Space Mono', ui-monospace, monospace; --f-script: 'Ms Madi', 'Brush Script MT', cursive; --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 0 rgba(28, 26, 31, .04), 0 16px 32px -24px rgba(28, 26, 31, .45); color-scheme: light;
}
[data-theme="bubblegum"] { --bg: #FFE3EE; --grid: rgba(255, 255, 255, .75); --paper-2: #FFF0F6; --line: #F6D4E2; --line-2: #E9B9CC; --shade: #D9578F; --side-bg: #FFF5F9; }
[data-theme="periwinkle"] { --bg: #EEF0FF; --grid: rgba(188, 194, 244, .45); --paper-2: #F3F4FF; --line: #DDE0F7; --line-2: #C2C7EE; --ink: #23224A; --ink-2: #4A4A72; --ink-3: #66668C; --edge: #23224A; --primary: var(--lilac); --shade: #7B84D9; --pink-ink: #A01C5C; }
[data-theme="sorbet"] { --bg: #FFF4EA; --grid: rgba(254, 142, 1, .13); --paper-2: #FFF6EC; --line: #F3E2D1; --line-2: #E4CBB2; --ink: #2A1E14; --ink-2: #5A4636; --ink-3: #75604F; --edge: #2A1E14; --primary: var(--orange-2); --shade: #E88A2B; --pink-ink: #A3195B; }
[data-theme="night"] {
  --bg: #16141B; --grid: rgba(255, 143, 198, .07); --paper: #221F2A; --paper-2: #2B2734; --ink: #F4F0F6; --ink-2: #CBC4D2; --ink-3: #A39BAC; --line: #36313F; --line-2: #4B4555; --edge: #8E86A0;
  --pink-3: #3A2232; --pink-ink: #FF9ECF; --lilac-2: #2A2C4C; --lilac-ink: #BCC2F4; --mint-2: #1E3029; --blue-2: #1D2C3B;
  --good: #8FDDB0; --good-bg: #1D3227; --warn: #FFCB6B; --warn-bg: #3A2F18; --bad: #FF9AA2; --bad-bg: #3D2226; --shade: #8A3A62; --side-bg: #1C1A22;
  --c1: #FF8FC6; --c2: #BCC2F4; --c3: #FFC93C; --c4: #8FDDB0; --c5: #F25C6E; --c6: #A9D4F5; --shadow: 0 16px 32px -20px rgba(0, 0, 0, .8); color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--bg); background-image: linear-gradient(var(--grid) 1.2px, transparent 1.2px), linear-gradient(90deg, var(--grid) 1.2px, transparent 1.2px); background-size: 30px 30px; color: var(--ink); font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
.plain body { background-image: none; }
img { max-width: 100%; display: block; }
a { color: var(--pink-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; color: var(--ink); font-weight: 700; }
h3 { font-size: 16.5px; } p { margin: .4rem 0; }
.small { font-size: 13.5px; } .muted { color: var(--ink-2); } .num { font-variant-numeric: tabular-nums; } .pre { white-space: pre-wrap; } .grow { flex: 1; } .center { text-align: center; justify-content: center; }
.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; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.boot { display: grid; place-items: center; min-height: 100vh; font: 84px var(--f-disp); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--lilac-ink); outline-offset: 2px; border-radius: 6px; }
.error-text { color: var(--bad); font-weight: 600; } .ok { color: var(--good); } .blue-t { color: var(--lilac-ink); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
kbd { font: 700 12px var(--f-mono); background: var(--paper); border: 1.5px solid var(--edge); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; }
.kick { display: inline-block; font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: lowercase; color: var(--pink-ink); }
.h-sm { font: 700 12px var(--f-mono); letter-spacing: .08em; text-transform: lowercase; color: var(--pink-ink); margin: 16px 0 6px; }
.section-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 400 32px/1.05 var(--f-disp); margin: 28px 0 14px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; } .section-head h2 { font: 400 28px var(--f-disp); }

/* ---------- The visual vocabulary ---------- */
.pop { position: relative; background: var(--paper); border: 1.5px solid var(--edge); border-radius: var(--r); box-shadow: 5px 5px 0 var(--tone-d, var(--shade)); min-width: 0; margin-bottom: 18px; overflow: hidden; }
.pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px; background: var(--tone, var(--pink)); border-bottom: 1.5px solid var(--edge); color: #1C1A1F; }
.pop-t { font: 700 12.5px var(--f-mono); letter-spacing: .06em; text-transform: lowercase; }
.pop-t::before { content: '✦ '; }
.pop-x { display: flex; gap: 5px; } .pop-x i { width: 10px; height: 10px; border: 1.5px solid #1C1A1F; border-radius: 50%; background: rgba(255,255,255,.7); }
.pop-act { display: flex; gap: 6px; } .pop-act .btn { min-height: 28px; padding: 2px 10px; font-size: 12.5px; background: rgba(255,255,255,.75); }
.pop-body { padding: 16px 18px 18px; min-width: 0; }
.pop.pink { --tone: var(--pink); --tone-d: var(--shade); } .pop.lilac { --tone: var(--lilac); --tone-d: #8E95DE; } .pop.yellow { --tone: var(--yellow); --tone-d: #E2B828; } .pop.mint { --tone: var(--mint); --tone-d: #8FBDA9; }
.pop.blue { --tone: var(--blue); --tone-d: #6FA8D6; } .pop.orange { --tone: var(--orange-2); --tone-d: var(--orange); } .pop.lime { --tone: var(--lime); --tone-d: #A8C24A; }
[data-theme="night"] .pop { --tone-d: #000; }
.bub { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border-radius: 12px; font: 600 13px var(--f-body); color: #1C1A1F; background: var(--b, var(--pink-2)); border: 1px solid rgba(28,26,31,.18); white-space: nowrap; line-height: 1.3; }
.bub::after { content: ''; position: absolute; left: 14px; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: inherit; border-bottom: inherit; transform: rotate(45deg); border-bottom-right-radius: 2px; }
.bub.down::after { left: auto; right: 16px; }
.bub.sm { padding: 2px 10px; font-size: 12px; border-radius: 10px; } .bub.sm::after, .bub.xs::after { display: none; } .bub.xs { padding: 1px 8px; font-size: 11.5px; border-radius: 8px; }
.bub.pink { --b: var(--pink-2); } .bub.lilac { --b: var(--lilac); } .bub.lime { --b: var(--lime); } .bub.yellow { --b: var(--butter); border-color: #E7DC8E; } .bub.blue { --b: var(--blue); } .bub.mint { --b: var(--mint); } .bub.orange { --b: var(--orange-2); } .bub.red { --b: #FFC0C6; }
.bub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.btnish { cursor: pointer; font: 600 13px var(--f-body); }
.stk { display: block; width: 100%; height: 100%; overflow: visible; }
.spk { display: inline-block; width: 28px; height: 28px; fill: var(--yellow); stroke: var(--edge); stroke-width: 4; vertical-align: top; }
.plain .spk, .plain .win-stk, .plain .adv-stk, .plain .nsv-stk, .plain .jd-stk { display: none; }
/* hand-drawn frames */
.frame { position: relative; }
.pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: pointer; overflow: hidden; border-radius: 12px; aspect-ratio: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.empty { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; text-align: center; padding: 12px; background: var(--paper); }
.pic.empty .ic { width: 28px; height: 28px; color: var(--pink-ink); } .pic.empty:hover { border-color: var(--pink); background: var(--pink-3); }
.pic.big { aspect-ratio: 4 / 5; }
[data-drop].drag { outline: 3px solid var(--lilac-ink); outline-offset: 2px; }
.tear { display: flex; gap: 6px; flex-wrap: wrap; border-top: 2px dashed var(--line-2); padding-top: 10px; }
.tear-tab { border: 1px solid var(--line-2); background: var(--paper); padding: 16px 8px; writing-mode: vertical-rl; font: 700 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; transform: rotate(var(--r)); cursor: pointer; }
.pring { position: relative; display: inline-grid; place-items: center; width: 130px; height: 130px; flex: none; }
.pring svg { position: absolute; inset: 0; transform: rotate(-90deg); } .pr-bg { fill: none; stroke: var(--paper-2); stroke-width: 12; } .pr-fg { fill: none; stroke: var(--pink); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transition: stroke-dashoffset .6s; }
.pring b { font: 400 30px var(--f-disp); line-height: 1; position: relative; } .pring small { position: relative; font: 700 10.5px var(--f-mono); color: var(--ink-2); margin-top: -18px; }
.pring { grid-template-rows: auto auto; align-content: center; } .pring small { margin-top: 2px; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 17px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--paper); color: var(--ink); font: 650 14px var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .15s; }
.btn:hover { background: var(--paper-2); } .btn:active { transform: translate(1px, 1px); }
.btn.solid { background: var(--primary); color: var(--on-primary); box-shadow: 2px 2px 0 var(--edge); } .btn.solid:hover { box-shadow: 3px 3px 0 var(--edge); background: var(--primary); filter: saturate(1.08); }
.btn.solid:active { box-shadow: 0 0 0 var(--edge); transform: translate(2px, 2px); }
.btn.blue { background: var(--lilac); color: #1C1A1F; box-shadow: 2px 2px 0 var(--edge); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--paper-2); }
.btn.danger, .icon-btn.danger { color: var(--bad); } .btn.sm { min-height: 32px; padding: 3px 13px; font-size: 13px; } .btn.big { min-height: 54px; padding: 10px 28px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; } .btn.busy, label.busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn:hover { background: var(--paper-2); } .icon-btn[disabled] { opacity: .3; } .icon-btn.armed { background: var(--bad-bg); color: var(--bad); }
.icon-btn.flip .ic { transform: scaleX(-1); }
.link, .link-plain { background: none; border: 0; padding: 0; font: inherit; color: var(--pink-ink); cursor: pointer; text-align: left; }
.link { text-decoration: underline; text-underline-offset: 3px; } .link-plain { color: inherit; font-weight: 650; } .link-plain:hover { color: var(--pink-ink); }
.input { width: 100%; min-height: 42px; padding: 9px 13px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font: 15px var(--f-body); }
.input:focus { border-color: var(--edge); outline: none; box-shadow: 0 0 0 3px var(--pink-2); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.input.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; width: auto; }
.input.line { border-width: 0 0 1.5px; border-radius: 0; background: transparent; padding-left: 2px; } .input.line.done { text-decoration: line-through; color: var(--ink-3); }
textarea.input { min-height: 70px; resize: vertical; line-height: 1.5; }
textarea.lined { background-image: repeating-linear-gradient(transparent 0 26px, var(--line) 26px 27px); line-height: 27px; padding-top: 4px; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child { font: 700 11px var(--f-mono); letter-spacing: .06em; text-transform: lowercase; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .wide, .field.wide, .switch.wide { grid-column: 1 / -1; }
.switch { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .switch input { width: 20px; height: 20px; accent-color: var(--pink-ink); margin-top: 2px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip, .chip-btn { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font: 600 13.5px var(--f-body); cursor: pointer; text-decoration: none; }
.chip:has(input:checked), .chip-btn.on { background: var(--pink-2); border-color: var(--edge); color: #1C1A1F; } .chip input { accent-color: var(--pink-ink); }
.rating, .scale { display: flex; gap: 6px; flex-wrap: wrap; } .rate { position: relative; cursor: pointer; } .rate input { position: absolute; opacity: 0; }
.rate span[aria-hidden] { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 700 15px var(--f-body); background: var(--paper); }
.rate input:checked + span { background: var(--pink-2); border-color: var(--edge); } .rate input:focus-visible + span { outline: 2px solid var(--lilac-ink); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .stack { display: flex; flex-direction: column; gap: 14px; } .right { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cfield { display: flex; align-items: center; gap: 8px; } .cfield input[type=color] { width: 44px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--paper); cursor: pointer; flex: none; }
.cfield .hex { width: 110px; font: 700 14px var(--f-mono); text-transform: uppercase; } .cfield .hex.sm { width: 92px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--edge); flex: none; } .hex-err { color: var(--bad); font-size: 12.5px; font-weight: 600; } .hex-err:empty { display: none; }

/* ---------- Shell ---------- */
#root { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--side-bg); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; z-index: 40; border-right: 1.5px solid var(--edge); scrollbar-width: thin; }
.side-top { padding: 20px 20px 14px; border-bottom: 1.5px dashed var(--line-2); } .side-top .brand { text-decoration: none; color: inherit; display: inline-flex; }
.side-tag { display: block; margin-top: 4px; font: 21px/1.05 var(--f-script); color: var(--pink-ink); }
.logo { display: inline-flex; align-items: flex-start; gap: 2px; color: var(--ink); } .logo b { font: 400 50px/1 var(--f-disp); letter-spacing: -.02em; } .logo b i { font-style: normal; color: var(--pink); }
.logo svg { width: 24px; height: 24px; fill: var(--yellow); stroke: var(--edge); stroke-width: 5; margin: -2px 0 0 2px; } .logo.sm b { font-size: 32px; } .logo.sm svg { width: 16px; height: 16px; }
.side-timers { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.side-nav { padding: 2px 12px 10px; flex: 1; } .side-group { margin-top: 12px; }
.side-hub { display: block; padding: 4px 12px 4px; font: 700 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 14px var(--f-body); border: 1.5px solid transparent; background: none; cursor: pointer; text-align: left; }
.side-link .ic { width: 19px; height: 19px; } .side-link:hover { background: var(--paper-2); }
.side-link[aria-current="page"] { background: var(--pink-2); border-color: var(--edge); box-shadow: 2px 2px 0 var(--edge); color: #1C1A1F; }
.side-lock { margin-left: auto; color: var(--ink-3); } .side-lock .ic { width: 14px; height: 14px; }
.side-foot { padding: 8px 12px 20px; border-top: 1.5px dashed var(--line-2); }
.main-col { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 24px 38px 64px; flex: 1; }
.foot { text-align: center; color: var(--ink-3); padding: 20px; font: 12px var(--f-mono); }
.top, .tabbar, .scrim { display: none; }
.demo-band { background: var(--edge); color: var(--bg); text-align: center; padding: 7px 16px; font: 12.5px var(--f-mono); } .demo-band a { color: var(--pink); font-weight: 700; margin-left: 8px; }
[data-theme="night"] .demo-band { background: var(--paper-2); color: var(--ink); }
.j-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 38px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1.5px dashed var(--line-2); }
.j-pick { position: relative; display: flex; align-items: center; flex: 0 1 380px; min-width: 0; } .j-pick > .ic { position: absolute; left: 13px; color: var(--pink-ink); pointer-events: none; }
.j-pick .input { padding-left: 40px; border-radius: 999px; border-color: var(--edge); font-weight: 700; min-height: 40px; background-color: var(--paper); }
.j-day { font: 12.5px var(--f-mono); color: var(--ink-2); } .j-day b { color: var(--ink); font-size: 15px; }
.j-cd { font: 700 12.5px var(--f-mono); background: var(--butter); border: 1.5px solid var(--edge); border-radius: 999px; padding: 3px 12px; color: #1C1A1F; white-space: nowrap; }
.j-none { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink-2); }

/* ---------- Page furniture ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 8px 0 22px; flex-wrap: wrap; }
.script-kicker { display: block; font: 34px/1 var(--f-script); color: var(--pink-ink); margin: 0 0 2px 4px; transform: rotate(-2deg); transform-origin: left; }
.page-head h1 { font: 400 clamp(40px, 5vw, 68px)/.98 var(--f-disp); letter-spacing: -.015em; }
.lede { max-width: 66ch; color: var(--ink-2); margin-top: 10px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--f-mono); color: var(--ink-2); text-decoration: none; margin-bottom: 12px; } .back:hover { color: var(--pink-ink); }
/* folder tabs */
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin: 0 0 22px; padding-left: 10px; border-bottom: 1.5px solid var(--edge); }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px 8px; margin: 0 -6px -1.5px 0; color: var(--ink); text-decoration: none; font: 650 13.5px var(--f-body); background: var(--paper); border: 1.5px solid var(--edge); border-bottom-color: var(--edge); border-radius: 16px 16px 0 0; }
.tabs a:nth-child(3n+1) { background: var(--pink-3); } .tabs a:nth-child(3n+2) { background: var(--butter); } .tabs a:nth-child(3n) { background: var(--lilac-2); }
[data-theme="night"] .tabs a { background: var(--paper-2) !important; }
.tabs a:hover { z-index: 2; transform: translateY(-2px); }
.tabs a[aria-current="page"] { background: var(--pink) !important; color: #1C1A1F; z-index: 3; border-bottom-color: var(--pink); padding-top: 11px; margin-top: -2px; }
.tabs a small { font: 700 11px var(--f-mono); opacity: .7; }
.card { position: relative; background: var(--paper); border: 1.5px solid var(--edge); border-radius: var(--r); padding: 18px 20px; box-shadow: 4px 4px 0 var(--line-2); min-width: 0; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; } .card-head h2 { font: 400 26px/1.05 var(--f-disp); }
.card .script-kicker { font-size: 26px; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.label { display: block; font: 700 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 3px; }
.grid { display: grid; gap: 18px; margin-bottom: 4px; } .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.empty { text-align: center; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink-2); margin-bottom: 18px; }
.empty-doodle { width: 110px; height: 82px; margin: 0 auto 8px; display: block; } .ed-card { fill: var(--pink-2); stroke: var(--edge); stroke-width: 2.5; } .ed-star { fill: var(--yellow); stroke: var(--edge); stroke-width: 2.5; stroke-linejoin: round; } .ed-line { fill: none; stroke: var(--lilac-ink); stroke-width: 2.5; stroke-linecap: round; }
.empty p { max-width: 46ch; margin: 0 auto 12px; font: 24px/1.15 var(--f-ital); font-style: italic; color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: 600 12px var(--f-body); border: 1px solid var(--line-2); white-space: nowrap; }
.tt-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--lilac-2); color: var(--ink); font-size: 13.5px; margin: 0 0 16px; border: 1.5px solid var(--edge); }
.tt-note .ic { margin-top: 2px; flex: none; color: var(--lilac-ink); } .tt-note.gentle { background: var(--pink-3); } .tt-note.gentle .ic { color: var(--pink-ink); } .tt-note.warnish { background: var(--warn-bg); } .tt-note.warnish .ic { color: var(--warn); }
.tt-note.phase { background: var(--paper); border-style: dashed; } .tt-note.phase .ic { color: var(--ink); }
.tt-note.ph-menstrual { border-color: var(--ph-menstrual); } .tt-note.ph-follicular { border-color: var(--ph-follicular); } .tt-note.ph-ovulation { border-color: #D9A400; } .tt-note.ph-luteal { border-color: var(--ph-luteal); }
.shown { margin: 8px 2px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink-2); color: #1C1A1F; font: 700 14px var(--f-body); flex: none; overflow: hidden; border: 1.5px solid var(--edge); } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: #A86F00; letter-spacing: 1px; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 6px 0; border: 1px solid var(--line); flex: 1; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--pink); border-radius: inherit; transition: width .4s; }
.bar.good > i { background: #7CC79A; } .bar.bad > i { background: var(--red); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { position: relative; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 12px 16px 12px; box-shadow: 3px 3px 0 var(--line-2); min-width: 0; }
.metric b { display: block; font: 400 32px/1.1 var(--f-disp); margin: 2px 0; } .metric b.long { font-size: 22px; } .metric small { color: var(--ink-2); font-size: 12.5px; } .metric.neg b { color: var(--bad); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bigstat { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; text-align: center; } .bigstat b { display: block; font: 400 28px var(--f-disp); } .bigstat span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tt-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0; } .tt-kv div { display: contents; } .tt-kv dt { font: 700 12px var(--f-mono); color: var(--ink-2); } .tt-kv dd { margin: 0; text-align: right; font-weight: 650; }
.tt-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--edge); }
.tt-seg button { border: 0; background: transparent; color: var(--ink); padding: 6px 14px; border-radius: 999px; font: 650 13px var(--f-body); cursor: pointer; } .tt-seg.sm button { padding: 3px 10px; font-size: 12px; }
.tt-seg button[aria-pressed="true"] { background: var(--pink); color: #1C1A1F; }
.tt-rows, .todos, .hlist, .sclist, .mlist, .glog, .people, .signs, .letters, .adv, .diary, .stacks, .laps, .bedtimes, .tips, .rep-wins, .ing-rules { list-style: none; margin: 0; padding: 0; }
.tt-rows li, .todos li, .hlist li, .people li, .mlist li, .diary li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1.5px dashed var(--line); flex-wrap: wrap; }
.tt-rows li:last-child, .todos li:last-child, .hlist li:last-child, .people li:last-child, .mlist li:last-child, .diary li:last-child { border-bottom: 0; }
.tt-main { flex: 1; min-width: 140px; display: flex; flex-direction: column; color: inherit; text-decoration: none; } .tt-main small { color: var(--ink-2); }
.todos li.done .link-plain, .todos li.done > span { text-decoration: line-through; color: var(--ink-3); } .todos li.muted { opacity: .6; }
.d-date { font: 700 12px var(--f-mono); color: var(--ink-2); min-width: 70px; }
.tt-check { list-style: none; margin: 0; padding: 0; } .tt-check li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tt-check li:last-child { border: 0; } .tt-check li > span { flex: 1; padding-top: 3px; } .tt-check li.done > span { text-decoration: line-through; color: var(--ink-3); }
.tt-tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--edge); background: var(--paper); color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tt-tick.on { background: var(--pink); color: #1C1A1F; } .tt-tick.sm { width: 22px; height: 22px; border-radius: 6px; }
.tt-scroll { overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--paper); margin-bottom: 14px; }
.tt-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tt-tbl th { text-align: left; font: 700 11px var(--f-mono); letter-spacing: .06em; text-transform: lowercase; color: var(--ink-2); background: var(--paper-2); padding: 10px 12px; white-space: nowrap; }
.tt-tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; } .tt-tbl .num, .tt-tbl th.num { text-align: right; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1 1 240px; display: flex; } .toolbar .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.toolbar .search .input { padding-left: 40px; border-radius: 999px; } .toolbar .filter { flex: 0 1 190px; } .toolbar .filter .input { border-radius: 999px; }
.day-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; } .day-nav h2, .day-nav h3 { font: 400 28px var(--f-disp); } .day-nav h3 { font-size: 22px; } .day-nav em { font-family: var(--f-ital); font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; margin-top: 8px; color: var(--ink-2); } .legend span { display: inline-flex; gap: 6px; align-items: center; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.15); }

/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; } .chart .base { stroke: var(--ink-3); stroke-width: 1.2; } .chart .axis { font: 10.5px var(--f-mono); fill: var(--ink-2); } .chart .hit { fill: transparent; }
.bar-mark.c1, .donut-seg.c1, .key.c1 { fill: var(--c1); background: var(--c1); } .bar-mark.c2, .donut-seg.c2, .key.c2 { fill: var(--c2); background: var(--c2); } .bar-mark.c3, .donut-seg.c3, .key.c3 { fill: var(--c3); background: var(--c3); }
.bar-mark.c4, .donut-seg.c4, .key.c4 { fill: var(--c4); background: var(--c4); } .bar-mark.c5, .donut-seg.c5, .key.c5 { fill: var(--c5); background: var(--c5); } .bar-mark.c6, .donut-seg.c6, .key.c6 { fill: var(--c6); background: var(--c6); }
.line-mark { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .line-mark.c1 { stroke: var(--c1); } .line-mark.c2 { stroke: var(--c2); } .dot-mark { stroke: var(--paper); stroke-width: 2; } .dot-mark.c1 { fill: var(--c1); } .dot-mark.c2 { fill: var(--c2); }
.mark:focus { outline: none; } .mark:hover .bar-mark { filter: brightness(1.1); }
.donut .donut-wrap { position: relative; max-width: 200px; margin: 0 auto; } .donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-mid b { font: 400 21px var(--f-disp); } .donut-mid span { font: 700 10px var(--f-mono); text-transform: uppercase; color: var(--ink-2); }
.donut-seg { stroke: var(--paper); stroke-width: 2; } .donut-key { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; font-size: 13.5px; } .donut-key li { display: flex; align-items: center; gap: 8px; } .donut-key b { margin-left: auto; font-size: 12.5px; }
.tip { position: fixed; z-index: 100; transform: translate(-50%, -100%); background: var(--edge); color: var(--bg); font: 600 12px var(--f-body); padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }

/* ---------- Modal, toasts, lightbox ---------- */
dialog#modal { border: 0; padding: 0; background: transparent; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); overflow: visible; }
dialog#modal.narrow { width: min(480px, calc(100vw - 24px)); } dialog#modal.wide { width: min(980px, calc(100vw - 24px)); } dialog#modal.photo { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(28, 26, 31, .45); backdrop-filter: blur(2px); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 32px); background: var(--paper); border-radius: 20px; overflow: hidden; border: 1.5px solid var(--edge); box-shadow: 6px 6px 0 var(--shade); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; background: var(--pink); border-bottom: 1.5px solid var(--edge); color: #1C1A1F; }
.modal-head h2 { font: 400 24px/1.1 var(--f-disp); color: #1C1A1F; } .modal-head .icon-btn { border: 1.5px solid #1C1A1F; width: 30px; height: 30px; }
.modal-body { padding: 18px 20px; overflow-y: auto; } .modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1.5px dashed var(--line-2); flex-wrap: wrap; }
.ed-photos { display: flex; flex-wrap: wrap; gap: 10px; } .ed-ph { position: relative; margin: 0; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--paper-2); border: 1.5px solid var(--edge); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; } .ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.92); width: 28px; height: 28px; color: #1C1A1F; }
.ed-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 110px; min-height: 110px; padding: 12px; border: 2px dashed var(--pink); border-radius: 12px; color: var(--pink-ink); background: var(--pink-3); cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; } .ed-add .ic { width: 26px; height: 26px; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--edge); box-shadow: 4px 4px 0 var(--pink); font-weight: 600; max-width: min(560px, calc(100vw - 24px)); animation: toastIn .25s ease; }
.toast.err { background: var(--bad-bg); box-shadow: 4px 4px 0 var(--red); } .toast button { background: var(--pink-2); color: #1C1A1F; border: 1.5px solid var(--edge); border-radius: 999px; padding: 3px 12px; font-weight: 800; cursor: pointer; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.pop-fx { position: fixed; z-index: 300; pointer-events: none; }
i.pop-p { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: popOut .9s ease-out forwards; }
@keyframes popOut { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
body.ding::after { content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none; border: 10px solid var(--pink); animation: ding .5s ease-in-out 6 alternate; }
@keyframes ding { from { opacity: 1; } to { opacity: 0; } }
@keyframes pulse { to { box-shadow: 0 0 0 6px var(--pink-2); } }
@keyframes wiggle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.lightbox { position: relative; background: var(--paper); border-radius: 18px; padding: 16px; border: 1.5px solid var(--edge); }
.lightbox figure { margin: 0; } .lightbox img { max-height: calc(100vh - 190px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; align-items: baseline; }
.lb-close { position: absolute; top: 22px; right: 22px; background: var(--paper); z-index: 2; } .lb-prev, .lb-next { position: absolute; top: 45%; background: var(--paper); border: 1.5px solid var(--edge); } .lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 10px; }
.pdf-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; background: var(--pink-3); color: var(--pink-ink); }

/* ---------- Home ---------- */
.hello { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: center; margin: 6px 0 22px; }
.hello-date { display: inline-block; font: 700 12px var(--f-mono); letter-spacing: .08em; text-transform: lowercase; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 999px; padding: 3px 12px; }
.hello-hi { position: relative; font: 400 clamp(48px, 6.4vw, 92px)/.95 var(--f-disp); letter-spacing: -.02em; margin: 12px 0 4px; }
.hello-hi em { font-family: var(--f-ital); font-style: italic; font-weight: 400; background: linear-gradient(transparent 58%, var(--pink-2) 58% 92%, transparent 92%); padding: 0 6px; }
.hello-hi .spk { width: 44px; height: 44px; position: relative; top: -10px; margin-left: 6px; }
.hello-tag { font: 34px/1.1 var(--f-script); color: var(--pink-ink); margin: 6px 0 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.hello-r { position: relative; }
.avatar-xl { position: absolute; z-index: 3; top: -26px; right: 14px; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--edge); padding: 0; cursor: pointer; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6.5px var(--edge); }
.avatar-xl img, .avatar-sm img { width: 100%; height: 100%; object-fit: cover; } .avatar-sm { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--edge); padding: 0; cursor: pointer; }
.aff-pop .pop-body { padding: 22px 22px 18px; } .aff { font: italic 400 26px/1.25 var(--f-ital); margin: 0 0 12px; } .aff.big { font-size: 34px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 24px; align-items: start; }
.jr { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; } .jr-t { font: 400 30px/1.05 var(--f-disp); margin-bottom: 4px; } .becoming { font-family: var(--f-ital); font-style: italic; font-size: 19px; margin: 2px 0 8px; } .becoming.big { font-size: 24px; }
.cd { display: flex; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; } .cd-u { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 6px 4px; background: var(--butter); border: 1.5px solid var(--edge); border-radius: 12px; color: #1C1A1F; }
.cd-u b { font: 400 26px/1 var(--f-disp); } .cd-u small { font: 700 9.5px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; } .cd-done { font: 30px var(--f-script); color: var(--pink-ink); }
.gs { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; } .gs-n { font: 400 72px/1 var(--f-disp); } .gs-n.sm { font-size: 46px; } .gs-of { font: 700 14px var(--f-mono); color: var(--ink-2); margin-right: 10px; }
.hlist li { flex-wrap: nowrap; } .hlist .tt-main { min-width: 0; }
.htick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); display: grid; place-items: center; color: #1C1A1F; cursor: pointer; padding: 0; }
.htick.on { background: var(--hc, var(--pink)); } .htick.rest { opacity: .45; border-style: dashed; }
.sclist li a { display: grid; grid-template-columns: 1fr 120px 44px; gap: 10px; align-items: center; padding: 8px 0; color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); } .sclist li:last-child a { border: 0; } .sclist small { font: 700 12px var(--f-mono); text-align: right; }
.moodrow { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 8px; }
.mface { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; color: var(--ink); }
.mface span { font-size: 26px; line-height: 1; } .mface small { font: 700 10px var(--f-mono); } .mface:hover { border-color: var(--edge); } .mface.on { background: var(--blue); border-color: var(--edge); box-shadow: 2px 2px 0 var(--edge); color: #1C1A1F; }
.moodrow.big .mface span { font-size: 38px; } .moodrow.big .mface { padding: 12px 4px; }
.cyc-now { display: flex; align-items: center; gap: 8px; } .cyc-now b { font: 400 24px var(--f-disp); } .cyc-now small { font: 700 12px var(--f-mono); color: var(--ink-2); }
.phase-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--edge); } .ph-menstrual { --ph: var(--ph-menstrual); } .ph-follicular { --ph: var(--ph-follicular); } .ph-ovulation { --ph: var(--ph-ovulation); } .ph-luteal { --ph: var(--ph-luteal); }
.phase-dot, .ws-k, .mc-ph { background: var(--ph, var(--line-2)); }
.phase-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--ph); color: #1C1A1F; font: 700 12.5px var(--f-mono); border: 1.5px solid var(--edge); } .phase-chip.sm { font-size: 11px; padding: 1px 9px; }
.water-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); } .water-mini .ic { color: var(--c2); }
.setup-card { margin-top: 10px; }
.welcome { max-width: 1060px; margin: 20px auto; } .wel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: start; }
.wel-l { position: relative; } .wel-t { font: 400 clamp(40px, 5vw, 64px)/1 var(--f-disp); } .wel-t em { font-family: var(--f-ital); font-weight: 400; color: var(--pink-ink); } .wel-stk { width: 120px; height: 120px; margin-top: 20px; transform: rotate(12deg); }
.wel-stk path, .stk path { stroke: var(--edge); stroke-width: 2.5; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .qa-grid .btn { flex-direction: column; min-height: 84px; border-radius: 16px; white-space: normal; } .qa-grid .btn .ic { width: 24px; height: 24px; }

/* ---------- Vision board ---------- */
.vb-wrap { position: relative; margin-bottom: 8px; }
.vb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vb-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .vb-pick .kick { font: 30px/1 var(--f-script); color: var(--pink-ink); text-transform: none; letter-spacing: 0; margin-right: 4px; }
.vb-sel { width: auto; min-width: 200px; font-weight: 700; border-radius: 999px; border-color: var(--edge); }
.vb-right { display: flex; gap: 8px; } .vb-title { font: 400 30px var(--f-disp); }
.vb-add, .vb-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px 16px 0 0; border-bottom: 0; }
.vb-tools { background: var(--lilac-2); border-radius: 0; } .vb-tools + .vb-canvas, .vb-add + .vb-canvas { border-top-left-radius: 0; border-top-right-radius: 0; }
.vt-col { display: inline-flex; align-items: center; gap: 4px; } .vt-col input[type=color] { width: 32px; height: 30px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 1px; background: var(--paper); cursor: pointer; } .vt-col .hex { font: 700 12px var(--f-mono); width: 86px; text-transform: uppercase; }
.vt-size { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 4px; background: var(--paper); } .vt-size b { min-width: 28px; text-align: center; font: 700 12px var(--f-mono); }
.vb-canvas { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; border: 1.5px solid var(--edge); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--shade); touch-action: none; user-select: none; -webkit-user-select: none; }
.vb-canvas.vb-none { display: grid; place-items: center; background: var(--paper); }
.vb-bgimg { position: absolute; inset: 0; } .vb-bgimg img { width: 100%; height: 100%; object-fit: cover; }
.vb-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; padding: 20px; pointer-events: none; } .vb-none .vb-empty { position: static; pointer-events: auto; } .vb-empty b { font: italic 400 30px var(--f-ital); } .vb-empty span { color: var(--ink-2); max-width: 40ch; margin: 0 auto; } .vb-empty .btn { justify-self: center; }
.vbi { position: absolute; transform: rotate(var(--rot, 0deg)); transform-origin: center; cursor: grab; outline: none; }
.vbi:focus-visible { outline: 2px dashed var(--lilac-ink); outline-offset: 3px; }
.locked .vbi, .view .vbi { cursor: default; }
.vbi.sel { outline: 2px solid #3D8BFF; outline-offset: 2px; } .vbi.dragging { cursor: grabbing; opacity: .92; }
.vh { position: absolute; width: 16px; height: 16px; background: #3D8BFF; border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 5; touch-action: none; }
.vh.nw { left: -10px; top: -10px; cursor: nwse-resize; } .vh.ne { right: -10px; top: -10px; cursor: nesw-resize; } .vh.sw { left: -10px; bottom: -10px; cursor: nesw-resize; } .vh.se { right: -10px; bottom: -10px; cursor: nwse-resize; }
.vrot { position: absolute; left: 50%; top: -34px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 2.5px solid #3D8BFF; cursor: grab; z-index: 5; touch-action: none; } .vrot::after { content: ''; position: absolute; left: 50%; top: 16px; width: 2px; height: 16px; background: #3D8BFF; margin-left: -1px; }
.vb-ph { width: 100%; height: 100%; } .vb-ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.vb-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--paper-2); color: var(--ink-3); }
.vb-ph.fr-polaroid { background: #fff; padding: 5% 5% 20%; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 24px -12px rgba(0,0,0,.45); position: relative; }
.vb-cap { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font: 3.1cqw/1 var(--f-script); color: #1C1A1F; white-space: nowrap; overflow: hidden; }
.vb-ph.fr-dash { border: .5cqw dashed #3B8B3E; padding: .9cqw; background: #fff; }
.vb-ph.fr-stripe { padding: 1.4cqw; background: repeating-linear-gradient(90deg, #F25C6E 0 .7cqw, #FFE6EA .7cqw 1.4cqw); border-radius: 4px; }
.vb-ph.fr-stripe img { border-radius: 40% 40% 36% 36% / 22% 22% 18% 18%; }
.vb-ph.fr-ticket { padding: 1cqw; background: #fff; border: .45cqw double #6B7BC4; -webkit-mask: radial-gradient(circle 1.6cqw at 0 0, #0000 98%, #000) top left, radial-gradient(circle 1.6cqw at 100% 0, #0000 98%, #000) top right, radial-gradient(circle 1.6cqw at 0 100%, #0000 98%, #000) bottom left, radial-gradient(circle 1.6cqw at 100% 100%, #0000 98%, #000) bottom right; -webkit-mask-size: 51% 51%; -webkit-mask-repeat: no-repeat; mask: radial-gradient(circle 1.6cqw at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat, radial-gradient(circle 1.6cqw at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat; }
.vb-ph.fr-loops { padding: 1cqw; background: #fff; border: .7cqw dotted #F4C430; border-radius: 1.6cqw; }
.vb-ph.fr-wavy, .vb-ph.fr-scallop { --s: 1.1cqw; padding: calc(var(--s) * 1.6); background: var(--fc, #FF8FC6); -webkit-mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); mask: radial-gradient(circle var(--s), #000 97%, #0000) 0 0 / calc(var(--s) * 2) calc(var(--s) * 2) round, linear-gradient(#000 0 0) no-repeat 50% / calc(100% - var(--s) * 2) calc(100% - var(--s) * 2); }
.vb-ph.fr-scallop { --fc: #9DB0E8; --s: 1.5cqw; } .vb-ph.fr-wavy img { border: .5cqw solid #fff; }
.vb-ph.fr-none img { border-radius: 2px; }
.vb-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1.05; overflow: hidden; padding: 2%; white-space: normal; word-break: break-word; }
.vb-text[style*="text-align:left"] { justify-content: flex-start; } .vb-text[style*="text-align:right"] { justify-content: flex-end; }
.vb-text.ts-bubble { background: var(--tb); border: .25cqw solid #1C1A1F; border-radius: 1.8cqw; position: relative; overflow: visible; padding: 4%; }
.vb-text.ts-bubble::after { content: ''; position: absolute; left: 14%; bottom: -1.2cqw; width: 2cqw; height: 2cqw; background: var(--tb); border-right: .25cqw solid #1C1A1F; border-bottom: .25cqw solid #1C1A1F; transform: rotate(45deg); }
.vb-text.ts-label { background: var(--tb); border: .2cqw solid #1C1A1F; border-radius: 999px; padding: 2% 5%; }
.vb-text.ts-note { background: var(--tb); box-shadow: .3cqw .5cqw 1cqw rgba(0,0,0,.18); padding: 6%; }
.vb-text.ts-pop { background: #fff; border: .25cqw solid #1C1A1F; border-radius: 1.4cqw; padding: 14% 5% 5%; box-shadow: .5cqw .5cqw 0 var(--tb); position: relative; overflow: visible; }
.vb-text.ts-pop::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--tb); border-bottom: .25cqw solid #1C1A1F; border-radius: 1.2cqw 1.2cqw 0 0; }
.vb-stk path, .vb-shape path { stroke: #1C1A1F; stroke-width: 2; } .vb-shape path { stroke: none; }
.vb-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 7cqw; line-height: 1; }
.vb-block { display: block; width: 100%; height: 100%; } .vb-block.sh-round { border-radius: 2cqw; } .vb-block.sh-pill { border-radius: 999px; } .vb-block.sh-rect { border-radius: 0; }
.vb-hint { margin-top: 12px; }
.stk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.stk-btn { aspect-ratio: 1; padding: 8px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; } .stk-btn:hover { border-color: var(--edge); background: var(--paper-2); } .stk-btn.emo { font-size: 28px; padding: 0; }
.grads { display: flex; gap: 8px; flex-wrap: wrap; } .grad { width: 48px; height: 36px; border-radius: 10px; border: 1.5px solid var(--edge); cursor: pointer; }
.lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lay-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--paper); cursor: pointer; text-align: left; color: var(--ink); font: inherit; } .lay-card:hover { background: var(--pink-3); } .lay-card small { color: var(--ink-2); }
.lay-pv { position: relative; width: 100%; aspect-ratio: 16/10; background: var(--paper-2); border-radius: 8px; margin-bottom: 4px; } .lay-pv i { position: absolute; background: var(--pink-2); border: 1px solid var(--edge); }
.lp-grid i:nth-child(1) { left: 6%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(2) { left: 37%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(3) { left: 68%; top: 8%; width: 26%; height: 38%; } .lp-grid i:nth-child(4) { left: 6%; top: 54%; width: 26%; height: 38%; }
.lp-collage i:nth-child(1) { left: 6%; top: 10%; width: 30%; height: 50%; transform: rotate(-6deg); } .lp-collage i:nth-child(2) { left: 30%; top: 30%; width: 32%; height: 52%; transform: rotate(4deg); background: var(--lilac); } .lp-collage i:nth-child(3) { left: 62%; top: 8%; width: 28%; height: 44%; transform: rotate(-3deg); background: var(--butter); } .lp-collage i:nth-child(4) { left: 66%; top: 58%; width: 18%; height: 30%; border-radius: 50%; background: var(--yellow); }
.lp-polaroid i { background: #fff; width: 18%; height: 44%; top: 26%; } .lp-polaroid i:nth-child(1) { left: 8%; transform: rotate(-5deg); } .lp-polaroid i:nth-child(2) { left: 30%; transform: rotate(3deg); } .lp-polaroid i:nth-child(3) { left: 52%; transform: rotate(-2deg); } .lp-polaroid i:nth-child(4) { left: 74%; transform: rotate(5deg); }
.lp-minimal i:nth-child(1) { left: 25%; top: 40%; width: 50%; height: 8%; background: var(--edge); } .lp-minimal i:nth-child(2) { left: 6%; top: 8%; width: 12%; height: 22%; } .lp-minimal i:nth-child(3) { left: 82%; top: 62%; width: 12%; height: 22%; } .lp-minimal i:nth-child(4) { display: none; }
/* Visualize */
.viz { position: fixed; inset: 0; z-index: 400; background: #0F0D12; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; gap: 18px; }
.viz-board { width: min(100%, calc((100vh - 120px) * 1.6)); } .viz-board .vb-canvas { box-shadow: 0 30px 80px -30px rgba(255,143,198,.5); border-color: #fff; }
.viz-bar { display: flex; align-items: center; gap: 16px; color: #fff; flex-wrap: wrap; justify-content: center; } .viz-cue { font: italic 22px var(--f-ital); } .viz-clock { font: 700 20px var(--f-mono); background: var(--pink); color: #1C1A1F; border-radius: 999px; padding: 4px 14px; }
.viz-breathe { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); animation: breathe 10s ease-in-out infinite; } @keyframes breathe { 0%, 100% { transform: scale(.6); } 50% { transform: scale(1.4); } }
.viz .btn { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Goals, wins, habits ---------- */
.goals, .mfs, .journeys, .sgoals { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-bottom: 18px; }
.goal, .mf, .jcard, .sgoal, .prod, .libw, .bookc, .cl-item, .outfit { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--edge); border-radius: var(--r); overflow: hidden; box-shadow: 4px 4px 0 var(--line-2); }
.goal-link { position: absolute; inset: 0; z-index: 2; } .goal .pic, .mf .pic, .jcard .pic, .sgoal .pic { border-radius: 0; aspect-ratio: 16 / 9; } .goal .pic.empty, .jcard .pic.empty { position: relative; z-index: 3; }
.goal-b, .mf-b, .jc-b, .sg-b, .prod-b, .lib-b, .bk-b, .cl-b { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 3; pointer-events: none; }
.goal-b *, .jc-b * { pointer-events: auto; } .goal-b, .jc-b { pointer-events: none; } .goal-b h3, .mf-b h3, .jc-b h3, .sg-b h3 { font: 400 23px/1.1 var(--f-disp); } .mf-b, .sg-b, .prod-b, .lib-b, .bk-b, .cl-b { pointer-events: auto; }
.goal.done { background: var(--mint-2); } .goal-p { display: flex; align-items: center; gap: 10px; } .goal-p b { font: 700 13px var(--f-mono); } .goal-p.big .bar { height: 14px; }
.gd-head, .jd-head { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 20px; }
.gd-t, .jd-t { font: 400 clamp(36px, 4.4vw, 58px)/1 var(--f-disp); margin: 4px 0 8px; } .why { font: italic 22px/1.3 var(--f-ital); margin: 6px 0 12px; }
.celebrate { font-size: 15px; }
.ms { padding: 10px 0; border-bottom: 1.5px dashed var(--line); } .ms:last-child { border: 0; } .ms-h { display: flex; align-items: center; gap: 10px; } .ms-h b { flex: 1; }
.smart { display: grid; gap: 10px; margin: 0 0 12px; } .smart div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; } .smart dt { font: 700 13px var(--f-mono); } .smart dt b { font: 400 22px var(--f-disp); color: var(--pink-ink); } .smart dd { margin: 0; }
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin: 8px 0 18px; }
.win-card { position: relative; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 18px; padding: 18px; transform: rotate(var(--r)); box-shadow: 5px 5px 0 var(--pink-2); } .win-card h3 { font: 400 22px/1.1 var(--f-disp); margin: 4px 0; } .win-card .pic { margin-bottom: 10px; }
.win-stk { position: absolute; top: -18px; right: -14px; width: 54px; height: 54px; z-index: 2; }
.hgrid-wrap { margin-bottom: 10px; } .hgrid { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.hgrid th { font: 700 11px var(--f-mono); color: var(--ink-2); padding: 10px 8px; background: var(--paper-2); text-align: center; text-transform: lowercase; } .hgrid th:first-child { text-align: left; padding-left: 14px; }
.hgrid th span, .hgrid th small { display: block; } .hgrid th small { font-size: 14px; color: var(--ink); } .hgrid th.today, .hgrid td.today { background: var(--pink-3); }
.hgrid td { padding: 8px; border-top: 1px solid var(--line); text-align: center; } .hgrid td.num { font: 700 13px var(--f-mono); } .hgrid td.num small { display: block; font-size: 10px; color: var(--ink-3); }
.hname { text-align: left !important; display: flex; gap: 10px; align-items: flex-start; padding-left: 14px !important; } .hname > span { display: flex; flex-direction: column; } .hdot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--edge); flex: none; margin-top: 5px; }
.hfut { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.hm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .hm-head h2 { font: 400 28px var(--f-disp); }
.hm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin-bottom: 22px; } .hm-dow, .mc-dow { font: 700 11px var(--f-mono); color: var(--ink-2); text-align: center; text-transform: lowercase; }
.hm { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font: 700 12px var(--f-mono); background: color-mix(in srgb, var(--pink) calc(var(--p) * 100%), var(--paper)); border: 1.5px solid var(--line-2); color: var(--ink); } .hm.today { border-color: var(--edge); border-width: 2.5px; } .hm.fut { opacity: .4; }
.hm-list { display: flex; flex-direction: column; gap: 8px; } .hm-row { display: grid; grid-template-columns: 240px 1fr; gap: 12px; align-items: center; }
.hm-name { display: flex; gap: 8px; align-items: center; font-weight: 650; font-size: 14px; } .hm-name small { margin-left: auto; font: 700 11.5px var(--f-mono); color: var(--ink-2); }
.hm-strip { display: grid; grid-template-columns: repeat(31, 1fr); gap: 3px; } .hm-strip i { aspect-ratio: 1; border-radius: 4px; background: var(--paper); border: 1px solid var(--line-2); } .hm-strip i.on { background: var(--hc); border-color: var(--edge); } .hm-strip i.rest { background: transparent; border-style: dashed; } .hm-strip i.fut { opacity: .35; }
.stack-f { display: flex; flex-direction: column; gap: 10px; } .stack-line { display: flex; align-items: center; gap: 10px; margin: 0; } .stack-line span { font: italic 24px var(--f-ital); white-space: nowrap; min-width: 70px; }
.stacks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); } .stacks .arrow { font: 700 18px var(--f-mono); }
.hcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.hcat { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 12px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--paper); cursor: pointer; color: var(--ink); font: inherit; }
.hcat i { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; background: var(--hc); border: 1.5px solid var(--edge); } .hcat code { font: 700 11.5px var(--f-mono); color: var(--ink-2); } .hcat small { color: var(--ink-2); }

/* ---------- Planner & self-care ---------- */
.dpage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.top3 { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; } .top3 li { display: flex; align-items: center; gap: 10px; }
.tq { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; } .tq .input:first-child { flex: 1 1 160px; } .tq input[type=time] { width: auto; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.wcol { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; } .wcol.today { background: var(--pink-3); box-shadow: 3px 3px 0 var(--pink); } .wcol.drop-over { background: var(--lilac-2); }
.wcol header { display: flex; align-items: baseline; gap: 6px; } .wcol header b { font: 700 12px var(--f-mono); text-transform: lowercase; } .wcol header span { font: 400 26px var(--f-disp); }
.cm { width: 10px; height: 10px; border-radius: 50%; margin-left: auto; } .cm.cm-period, .key.cm-period { background: var(--ph-menstrual); } .cm.cm-predicted, .key.cm-predicted { background: transparent; border: 2px dashed var(--ph-menstrual); } .cm.cm-fertile, .key.cm-fertile { background: var(--ph-follicular); } .cm.cm-ovulation, .key.cm-ovulation { background: var(--ph-ovulation); }
.wcards { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wcard { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 8px 22px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 13.5px; } .wcard.done .link-plain { text-decoration: line-through; color: var(--ink-3); } .wcard small { color: var(--ink-2); font: 11px var(--f-mono); width: 100%; }
.wcard .grip { position: absolute; left: 4px; top: 9px; color: var(--ink-3); cursor: grab; touch-action: none; } .wcard .grip .ic { width: 14px; height: 14px; }
.wcard.extra { background: var(--mint-2); } .wcard.oc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; } .wcard .btn.sm { min-height: 26px; padding: 1px 10px; font-size: 12px; }
.w-add { border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-2); border-radius: 12px; padding: 6px; font: 600 12.5px var(--f-body); cursor: pointer; } .w-add:hover { border-color: var(--edge); color: var(--ink); }
.dragging { opacity: .5; } .drag-ghost { position: fixed; z-index: 500; pointer-events: none; opacity: .92; transform: rotate(-2deg); } body.is-dragging { user-select: none; cursor: grabbing; }
.mcal, .ccal, .moodcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mc { min-height: 96px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); padding: 6px; display: flex; flex-direction: column; gap: 3px; position: relative; min-width: 0; } .mc.blank { border: 0; background: transparent; } .mc.today { border-color: var(--edge); box-shadow: 2px 2px 0 var(--pink); }
.mc.cm-period { background: color-mix(in srgb, var(--ph-menstrual) 18%, var(--paper)); } .mc.cm-predicted { background: repeating-linear-gradient(-45deg, var(--paper) 0 6px, color-mix(in srgb, var(--ph-menstrual) 14%, var(--paper)) 6px 12px); } .mc.cm-fertile { background: color-mix(in srgb, var(--ph-follicular) 16%, var(--paper)); } .mc.cm-ovulation { background: color-mix(in srgb, var(--ph-ovulation) 24%, var(--paper)); }
.mc-n { font: 700 12px var(--f-mono); } .mc-ph { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.mc-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 1px 5px; font: 600 11px var(--f-body); background: var(--pink-2); color: #1C1A1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mc-ev.ev-goal, .key.ev-goal { background: var(--lilac); } .mc-ev.ev-ms { background: var(--butter); } .mc-ev.ev-jr, .key.ev-jr { background: var(--lime); } .key.ev-kd { background: var(--pink-2); } .mc-t { font: 10.5px var(--f-mono); color: var(--ink-2); margin-top: auto; }
.rts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 20px; margin-bottom: 8px; }
.rt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; } .rt-h h3 { font: 400 24px/1.1 var(--f-disp); } .rt-meta { font: 700 12px var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.rt-steps { list-style: none; padding: 0; margin: 0 0 6px; } .rt-steps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .rt-steps li > span { flex: 1; } .rt-steps li small { font: 11px var(--f-mono); color: var(--ink-2); } .rt-steps li.done > span { text-decoration: line-through; color: var(--ink-3); }
.pnote { color: var(--lilac-ink); font-weight: 600; text-decoration: none; }
.rguide { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(28, 26, 31, .55); padding: 18px; }
.rg-card { position: relative; width: min(520px, 100%); background: var(--paper); border: 1.5px solid var(--edge); border-radius: 24px; padding: 30px 26px 20px; text-align: center; box-shadow: 8px 8px 0 var(--pink); }
.rg-card h2 { font: 400 clamp(34px, 6vw, 52px)/1.05 var(--f-disp); margin: 8px 0; } .rg-clock { display: block; font: 700 40px var(--f-mono); margin: 8px 0 14px; color: var(--pink-ink); }
.rg-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; } .rg-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--edge); } .rg-dots i.on { background: var(--pink); } .rg-dots i.cur { background: var(--yellow); transform: scale(1.3); }
.rg-stk { width: 80px; height: 80px; margin: 0 auto; }
.clists { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 0 20px; } .pop.clist.focus { outline: 3px solid var(--lilac-ink); outline-offset: 3px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; } .idea-col h3 { margin-bottom: 12px; } .idea-col ul { list-style: none; margin: 0; padding: 0; } .idea-col li { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px dashed var(--line); } .idea-col li .link-plain { flex: 1; font-weight: 500; }
.pickme { text-align: center; padding: 10px 0; } .pickme h2 { font: italic 400 32px/1.15 var(--f-ital); margin: 10px 0; } .pm-stk { width: 70px; height: 70px; margin: 0 auto; }

/* ---------- Cycle ---------- */
.cy-top { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 0 20px; }
.wheel-wrap { display: grid; grid-template-columns: minmax(180px, 260px) auto; gap: 18px; align-items: center; } .wheel { width: 100%; }
.ws { fill: none; stroke: var(--ph); stroke-width: 22; } .w-dot { fill: var(--paper); stroke: var(--edge); stroke-width: 3; } .w-day { font: 400 44px var(--f-disp); fill: var(--ink); text-anchor: middle; } .w-lab { font: 700 10px var(--f-mono); fill: var(--ink-2); text-anchor: middle; text-transform: uppercase; }
.wheel-key { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; } .wheel-key span { display: flex; align-items: center; gap: 8px; } .ws-k { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--edge); }
.cy-h { font: 400 40px/1.05 var(--f-disp); margin: 8px 0 4px; } .cy-h small { font: italic 18px var(--f-ital); color: var(--ink-2); }
.cc { aspect-ratio: 1; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; color: var(--ink); position: relative; font: inherit; }
.cc b { font: 700 14px var(--f-mono); } .cc small { font: 10px var(--f-mono); color: var(--ink-2); } .cc.today { border-color: var(--edge); border-width: 2.5px; }
.cc.cm-period { background: var(--ph-menstrual); color: #1C1A1F; border-color: var(--edge); } .cc.cm-period small { color: #1C1A1F; } .cc.cm-predicted { border: 2px dashed var(--ph-menstrual); background: color-mix(in srgb, var(--ph-menstrual) 10%, var(--paper)); } .cc.cm-fertile { background: color-mix(in srgb, var(--ph-follicular) 30%, var(--paper)); } .cc.cm-ovulation { background: var(--ph-ovulation); color: #1C1A1F; }
.cc-sym { position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac-ink); display: inline-block; }
.pguide { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 14px; }
.pg { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 18px; padding: 14px 16px; box-shadow: 4px 4px 0 var(--ph); } .pg header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; } .pg dl { margin: 0; display: grid; gap: 8px; } .pg dt { font: 700 11px var(--f-mono); color: var(--ink-2); text-transform: lowercase; } .pg dd { margin: 0; font-size: 14px; }
.pat td { text-align: center; } .pat td:first-child { text-align: left; } .pat th small { display: block; font-weight: 400; }
.pat-c { display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--pink) calc(var(--p) * 100%), var(--paper-2)); font: 700 12px var(--f-mono); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 18px; }

/* ---------- Manifestation & mood ---------- */
.mf .pic { aspect-ratio: 16 / 10; } .feel { font: italic 17px var(--f-ital); color: var(--pink-ink); margin: 0; }
.methods { align-items: start; }
.p369 { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); } .p369 > span:first-child { font: 700 12px var(--f-mono); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--edge); background: var(--paper); } .dots i.on { background: var(--yellow); }
.p55 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; } .p55-d { text-align: center; padding: 8px 4px; border: 1.5px solid var(--line-2); border-radius: 12px; } .p55-d small { font: 700 10px var(--f-mono); color: var(--ink-2); } .p55-d b { display: block; font: 400 26px var(--f-disp); } .p55-d.cur { border-color: var(--edge); background: var(--butter); } .p55-d.done { background: var(--mint); }
.p55-d .bar { display: block; margin: 4px 0 0; height: 6px; min-width: 0; }
.adv li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); } .adv li span { flex: 1; font: italic 18px var(--f-ital); } .adv-stk { width: 22px; height: 22px; flex: none; }
.letters li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .letters li.sealed .ic { color: var(--pink-ink); } .letter-read p { font: italic 20px/1.5 var(--f-ital); }
.affs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.aff-card { position: relative; padding: 14px 40px 12px 16px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--paper); } .aff-card.fav { background: var(--pink-3); box-shadow: 3px 3px 0 var(--pink); } .aff-card p { font: italic 19px/1.3 var(--f-ital); margin: 0 0 6px; } .aff-card small { font: 700 11px var(--f-mono); color: var(--ink-2); }
.aff-card > .icon-btn:last-child { position: absolute; right: 6px; bottom: 6px; } .aff-fav { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--pink-ink); cursor: pointer; padding: 4px; } .aff-fav .ic { width: 22px; height: 22px; }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .signs li { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px; transform: rotate(var(--r)); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .signs li b { font: 400 20px/1.15 var(--f-disp); }
.breathe { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.br-orb { width: 190px; height: 190px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #fff, var(--pink-2) 45%, var(--lilac)); border: 1.5px solid var(--edge); transform: scale(.72); transition: transform var(--secs, 4s) ease-in-out; box-shadow: 0 0 0 10px var(--paper-2); }
.br-orb[data-phase="in"] { transform: scale(1); } .br-orb[data-phase="hold"] { transition-duration: .3s; } .br-orb[data-phase="out"] { transform: scale(.72); }
.br-orb span { font: italic 20px var(--f-ital); color: #1C1A1F; } .br-orb b { font: 400 40px var(--f-disp); color: #1C1A1F; }
.feel-chips { margin: 6px 0 12px; }
.mlist li { flex-wrap: nowrap; } .mf-e { font-size: 24px; flex: none; }
.prompt-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.entry { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px 16px; background-image: repeating-linear-gradient(transparent 0 27px, var(--line) 27px 28px); background-position: 0 62px; }
.entry header { display: flex; align-items: center; gap: 4px; } .entry header .kick { flex: 1; } .entry h3 { font: 400 22px/1.15 var(--f-disp); margin: 4px 0; } .prompt { font: italic 16px var(--f-ital); color: var(--pink-ink); margin: 0 0 4px; }
.moodcal { gap: 4px; } .mcd { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font: 700 11px var(--f-mono); color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); font-size: 11px; }
.mcd.m1 { background: #FFD6DC; font-size: 18px; } .mcd.m2 { background: #FFE6C9; font-size: 18px; } .mcd.m3 { background: var(--butter); font-size: 18px; } .mcd.m4 { background: #DDF1E5; font-size: 18px; } .mcd.m5 { background: var(--lime); font-size: 18px; } .mcd.today { border: 2px solid var(--edge); }
[data-theme="night"] .mcd[class*=" m"]:not(.m0) { color: #1C1A1F; }
.phstrip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; margin: 6px 0 0 44px; } .phstrip i { height: 8px; border-radius: 3px; background: var(--ph, var(--line)); }
.glog li { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; } .glog b { font: 700 12px var(--f-mono); }
.dump { min-height: 260px; background-image: repeating-linear-gradient(transparent 0 26px, var(--line) 26px 27px); line-height: 27px; }
.mood-sum { display: flex; gap: 14px; align-items: flex-end; height: 110px; } .mood-sum span { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; justify-content: flex-end; } .mood-sum i { width: 70%; height: calc(var(--p) * 60px + 4px); background: var(--lilac); border: 1.5px solid var(--edge); border-radius: 8px 8px 2px 2px; } .mood-sum small { font: 700 11px var(--f-mono); }

/* ---------- Skincare & beauty ---------- */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 18px; }
.prod .pic { border-radius: 0; aspect-ratio: 1; } .prod.expired { box-shadow: 4px 4px 0 var(--red); } .prod.soon { box-shadow: 4px 4px 0 var(--orange); } .prod.finished { opacity: .7; }
.prod-b h3 { font: 400 20px/1.15 var(--f-disp); } .ingr { color: var(--lilac-ink); font-style: italic; margin: 2px 0; }
.pmeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 6px 0 0; } .pmeta dt { font: 700 10px var(--f-mono); color: var(--ink-3); text-transform: lowercase; } .pmeta dd { margin: 0; font-size: 13px; font-weight: 600; }
.ing-rules li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.diary li { flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 14px 0 18px; } .pg-item { margin: 0; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 8px; } .pg-item .pic { aspect-ratio: 3 / 4; border-radius: 10px; }
.pg-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 0; } .pg-item figcaption b { font: 700 12px var(--f-mono); } .pg-item figcaption small { color: var(--ink-2); font-size: 12.5px; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; } .cmp-pick label { display: flex; align-items: center; gap: 6px; font: 700 12px var(--f-mono); }
.cmp-slide { position: relative; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--edge); margin: 0 auto 8px; }
.cmp-a, .cmp-b { position: absolute; inset: 0; } .cmp-a img, .cmp-b img { width: 100%; height: 100%; object-fit: cover; } .cmp-b { clip-path: inset(0 0 0 var(--x)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1.5px var(--edge); pointer-events: none; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-tag { position: absolute; bottom: 10px; font: 700 12px var(--f-mono); background: rgba(255,255,255,.9); color: #1C1A1F; border-radius: 999px; padding: 2px 10px; border: 1.5px solid #1C1A1F; pointer-events: none; } .cmp-tag.l { left: 10px; } .cmp-tag.r { right: 10px; }
.cmp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .cmp-side figure { margin: 0; } .cmp-side img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--edge); } .cmp-side figcaption { margin-top: 6px; }
.mboard { columns: 4 200px; column-gap: 18px; margin: 14px 0; } .mpin { break-inside: avoid; margin: 0 0 18px; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 14px; padding: 8px; transform: rotate(var(--r)); } .mpin .pic { aspect-ratio: auto; min-height: 120px; } .mpin .pic img { height: auto; }
.mpin figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 2px 0; font: italic 16px var(--f-ital); }

/* ---------- Fitness, nourish, sleep ---------- */
.wcard.t-cardio { border-left: 4px solid var(--c5); } .wcard.t-pilates { border-left: 4px solid var(--c1); } .wcard.t-yoga { border-left: 4px solid var(--c2); } .wcard.t-walking { border-left: 4px solid var(--c4); } .wcard.t-strength { border-left: 4px solid var(--c3); }
.feel-big { font-size: 64px; margin: 0; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 18px; } .libw .pic { border-radius: 0; aspect-ratio: 16 / 10; } .lib-b h3 { font: 400 22px/1.1 var(--f-disp); } .moves { margin: 6px 0; padding-left: 20px; font-size: 13.5px; }
.iv-face { text-align: center; padding: 16px; border-radius: 18px; border: 1.5px solid var(--edge); background: var(--paper-2); margin-bottom: 14px; } .iv-face.work { background: var(--orange-2); } .iv-face.rest { background: var(--mint); } .iv-face.done { background: var(--lime); }
.iv-face span { display: block; font: 700 13px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; } .iv-face b { display: block; font: 400 64px/1.1 var(--f-disp); } .iv-face small { font: 12px var(--f-mono); }
.sw-clock { display: block; text-align: center; font: 700 52px var(--f-mono); margin: 10px 0 16px; } .laps { margin-top: 12px; } .laps li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font: 13px var(--f-mono); }
.nsvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 14px; } .nsv { position: relative; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 18px 14px 12px; transform: rotate(var(--r)); box-shadow: 4px 4px 0 var(--mint); display: flex; flex-direction: column; gap: 4px; } .nsv b { font: 400 20px/1.2 var(--f-disp); } .nsv small { font: 11px var(--f-mono); color: var(--ink-2); } .nsv-stk { position: absolute; top: -14px; right: -10px; width: 40px; height: 40px; }
.water { text-align: center; } .glasses { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.glass { width: 42px; height: 52px; border: 1.5px solid var(--edge); border-radius: 6px 6px 14px 14px; background: var(--paper); color: var(--line-2); cursor: pointer; display: grid; place-items: center; } .glass.on { background: var(--blue); color: #1C1A1F; } .glass .ic { width: 20px; height: 20px; }
.water .big { font: 400 40px var(--f-disp); }
.more { display: flex; flex-direction: column; gap: 8px; } .more-i { display: grid; grid-template-columns: 110px 1fr 26px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; } .more-i b { font: 700 13px var(--f-mono); text-align: right; }
.more .dots i.on.t0 { background: var(--pink); } .more .dots i.on.t1 { background: #7CC79A; } .more .dots i.on.t2 { background: var(--lilac); } .more .dots i.on.t3 { background: var(--orange-2); } .more .dots i.on.t4 { background: var(--blue); } .more .dots i.on.t5 { background: var(--yellow); }
.meal-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); } .meal-row .kick { font-size: 11px; } .meal-i { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-right: 10px; }
.meal-row > :nth-child(2) ~ .meal-i { grid-column: 2; }
.mplan { width: 100%; border-collapse: collapse; min-width: 820px; } .mplan th { font: 700 11px var(--f-mono); padding: 8px; background: var(--paper-2); text-transform: lowercase; } .mplan tbody th { text-align: left; } .mplan td { border-top: 1px solid var(--line); border-left: 1px dashed var(--line); padding: 6px; vertical-align: top; }
.mp-i { display: block; width: 100%; text-align: left; margin-bottom: 4px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--butter); font: 600 12.5px var(--f-body); cursor: pointer; color: #1C1A1F; } .mp-add { border: 1px dashed var(--line-2); background: none; border-radius: 8px; width: 100%; color: var(--ink-3); cursor: pointer; padding: 2px; }
.aisles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 14px; } .aisles section { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 12px 14px; }
.todos li > span:not(.tt-main) { flex: 1; }
.bedtimes li { display: flex; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); margin-bottom: 8px; } .bedtimes li.best { background: var(--lilac-2); border-color: var(--edge); } .bedtimes b { font: 400 34px var(--f-disp); } .bedtimes span { font-size: 13.5px; color: var(--ink-2); }
.big-time { font: 700 24px var(--f-mono); max-width: 200px; margin-bottom: 12px; }
.tips li { padding: 6px 0 6px 22px; position: relative; } .tips li::before { content: '✦'; position: absolute; left: 0; color: var(--pink-ink); }
.tt-rows li .bar { max-width: 120px; }

/* ---------- Style & gallery ---------- */
.closet, .outfits, .books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.cl-item .pic, .bookc .pic { border-radius: 0; aspect-ratio: 3 / 4; } .cl-item.bought, .cl-item.passed { opacity: .6; } .cl-b b { font-size: 15px; }
.outfit .of-ph { border-radius: 0; aspect-ratio: 3 / 4; } .of-pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 3 / 4; background: var(--paper-2); } .of-pieces img { width: 100%; height: 100%; object-fit: cover; } .of-pieces span { display: grid; place-items: center; font-size: 12px; padding: 6px; text-align: center; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; } .ob-pc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; } .ob-pc:has(input:checked) { border-color: var(--edge); background: var(--pink-3); box-shadow: 2px 2px 0 var(--pink); }
.ob-pc input { position: absolute; top: 8px; left: 8px; accent-color: var(--pink-ink); width: 18px; height: 18px; } .ob-pc img, .ob-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); } .ob-pc small { font-size: 12px; }
.kw { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; } .kw .bub { padding-right: 6px; } .kw-x { border: 0; background: none; cursor: pointer; padding: 0 2px; display: grid; place-items: center; } .kw-x .ic { width: 12px; height: 12px; }
.declutter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; } .declutter section { background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 12px 14px; } .declutter .todos li { flex-wrap: wrap; }
.cpw-out { font-size: 15px; margin-top: 12px; } .cpw-out b { font: 400 30px var(--f-disp); }

/* ---------- Money, mindset, space ---------- */
.sgoal .pic { aspect-ratio: 16 / 9; } .sg-b .tq { margin: 6px 0 0; } .sg-b .tq .input { min-height: 34px; }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ns { aspect-ratio: 1; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); font: 700 12px var(--f-mono); color: var(--ink-2); cursor: pointer; } .ns.ok { background: var(--lime); border-color: var(--edge); color: #1C1A1F; font-size: 16px; } .ns.spent { background: var(--pink-3); color: var(--ink-3); } .ns.today { border-color: var(--edge); border-width: 2.5px; } .ns[disabled] { opacity: .45; cursor: default; }
.calc-out { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--butter); border: 1.5px solid var(--edge); display: flex; flex-direction: column; color: #1C1A1F; } .calc-out b { font: 400 44px var(--f-disp); line-height: 1.1; }
.bookc .bk-b h3 { font: 400 19px/1.15 var(--f-disp); } .take { font-style: italic; }
.notes-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 14px; }
.sticky { padding: 16px 14px 12px; transform: rotate(var(--r)); box-shadow: 0 10px 20px -12px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px; color: #1C1A1F; background: var(--butter); } .sticky p { font: italic 20px/1.3 var(--f-ital); margin: 0; } .sticky small { font: 11px var(--f-mono); }
.sticky.s-compliment { background: var(--pink-2); } .sticky.s-proud { background: var(--butter); } .sticky.s-brave { background: var(--lilac); } .sticky .kick { color: #1C1A1F; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 20px; } .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; } .ba figure { margin: 0; } .ba .pic { aspect-ratio: 4 / 3; } .ba figcaption { margin-top: 4px; }
.people li .btn.sm { min-height: 28px; }

/* ---------- Journeys & reviews ---------- */
.jcard { transform: rotate(var(--r)); transition: transform .2s; } .jcard:hover { transform: rotate(0deg) translateY(-3px); } .jcard.cur { box-shadow: 5px 5px 0 var(--pink); }
.focus { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; } .focus span { font: 700 10.5px var(--f-mono); padding: 1px 8px; border-radius: 999px; background: var(--lilac-2); border: 1px solid var(--line-2); text-transform: lowercase; }
.jd-cover { position: relative; } .jd-stk { position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; transform: rotate(14deg); }
.jd-ring { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0; } .jd-info .tt-seg { margin: 6px 0 14px; }
.reflect { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; } .reflect > div { padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; } .reflect p { font-size: 14.5px; margin: 4px 0 0; }
.report .pop-body { padding: 22px 24px; } .rep-h { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; } .rep-cov { width: 160px; flex: none; } .rep-cov img { border-radius: 14px; border: 1.5px solid var(--edge); aspect-ratio: 4/3; object-fit: cover; } .rep-t { font: 400 clamp(32px, 4vw, 52px)/1.02 var(--f-disp); }
.rep-wins li { padding: 4px 0; } .rep-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .rep-gal figure { margin: 0; } .rep-gal img { aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); } .rep-gal figcaption { font: 10.5px var(--f-mono); color: var(--ink-2); margin-top: 3px; }

/* ---------- Timers ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 16px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--paper); cursor: pointer; color: var(--ink); font: inherit; box-shadow: 3px 3px 0 var(--pink-2); } .preset:hover { background: var(--pink-3); } .preset b { font-weight: 750; } .preset small { color: var(--ink-2); font: 11px var(--f-mono); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 10px 0 18px; }
.tcard { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--paper); border: 1.5px solid var(--edge); border-radius: var(--r); box-shadow: 4px 4px 0 var(--lilac); }
.tc-ring svg { width: 100px; height: 100px; transform: rotate(-90deg); } .tr-bg { fill: none; stroke: var(--paper-2); stroke-width: 12; } .tr-fg { fill: none; stroke: var(--pink); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.tc-body h3 { font: 400 20px var(--f-disp); } .tc-clock { display: block; font: 700 36px/1.1 var(--f-mono); margin: 2px 0 8px; } .tc-btns { display: flex; flex-wrap: wrap; gap: 6px; } .tc-btns .btn { min-height: 32px; padding: 3px 12px; font-size: 13px; }
.tcard.ringing { background: var(--pink-3); animation: pulse 1s ease-in-out infinite alternate; } .tcard.done { opacity: .75; }
.tmini { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--paper); overflow: hidden; }
.tmini::before { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--pink); } .tmini .tm-n { flex: 1; font-weight: 700; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tmini b { font: 700 15px var(--f-mono); }
.tmini.ringing { background: var(--pink); animation: pulse 1s ease-in-out infinite alternate; }

/* ---------- Lock, settings, guide ---------- */
.lock-wrap { max-width: 460px; margin: 40px auto; } .lock { text-align: center; } .lock h2 { font: 400 30px var(--f-disp); margin: 8px 0; } .lock-stk { width: 70px; height: 70px; margin: 0 auto; }
.pin-form { display: flex; gap: 8px; justify-content: center; margin: 16px 0 8px; } .pin-in { max-width: 180px; text-align: center; font: 700 24px var(--f-mono); letter-spacing: .3em; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.theme-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--paper); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.theme-opt[aria-pressed="true"] { border-color: var(--edge); box-shadow: 3px 3px 0 var(--pink); } .theme-opt small { color: var(--ink-2); } .theme-opt b { font: 400 21px var(--f-disp); }
.theme-sw { display: flex; border-radius: 999px; overflow: hidden; margin-bottom: 4px; border: 1.5px solid var(--edge); } .theme-sw i { width: 26px; height: 22px; }
.settings { align-items: start; } .settings > .card { grid-column: 1 / -1; }
.guide-flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.flow { display: block; background: var(--paper); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: 4px 4px 0 var(--pink-2); } .flow:hover { box-shadow: 4px 4px 0 var(--pink); } .flow-n { font: 400 28px var(--f-disp); color: var(--pink-ink); margin-right: 6px; } .flow b { font-size: 16px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 18px; }

/* ---------- Sign-in ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px 40px; border-right: 1.5px solid var(--edge); overflow: hidden; }
.aa-card { width: min(520px, 100%); background: var(--pink); border: 1.5px solid var(--edge); border-radius: 24px; box-shadow: 8px 8px 0 var(--edge); transform: rotate(-3deg); overflow: hidden; color: #1C1A1F; }
.aa-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--butter); border-bottom: 1.5px solid var(--edge); font: 700 14px var(--f-mono); } .aa-bar i { font-style: normal; width: 22px; height: 22px; border: 1.5px solid var(--edge); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.aa-body { padding: 26px 30px 34px; text-align: center; } .aa-kick { font: 700 13px var(--f-mono); letter-spacing: .08em; } .aa-title { font: 400 clamp(84px, 11vw, 140px)/.9 var(--f-disp); margin: 8px 0 4px; } .aa-title i { font-style: normal; color: var(--butter); -webkit-text-stroke: 2px #1C1A1F; }
.aa-tag { font: 40px/1 var(--f-script); margin: 0; }
.aa-bub { position: absolute; font: 600 14px var(--f-body); padding: 6px 14px; border-radius: 14px; border: 1.5px solid var(--edge); color: #1C1A1F; } .aa-bub::after { content: ''; position: absolute; left: 16px; bottom: -7px; width: 12px; height: 12px; background: inherit; border-right: 1.5px solid var(--edge); border-bottom: 1.5px solid var(--edge); transform: rotate(45deg); }
.aa-bub.b1 { top: 12%; left: 8%; background: var(--lime); transform: rotate(-6deg); } .aa-bub.b2 { top: 18%; right: 10%; background: var(--lilac); transform: rotate(5deg); } .aa-bub.b3 { bottom: 22%; left: 12%; background: var(--blue); transform: rotate(3deg); }
.aa-stk { position: absolute; width: 70px; height: 70px; stroke: var(--edge); stroke-width: 3; } .aa-stk.s1 { fill: var(--yellow); bottom: 26%; right: 12%; } .aa-stk.s2 { fill: var(--pink); top: 32%; left: 6%; width: 52px; height: 52px; }
.aa-lede { max-width: 46ch; text-align: center; margin-top: 40px; color: var(--ink-2); font-weight: 500; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: min(420px, 100%); background: var(--paper); border: 1.5px solid var(--edge); border-radius: 20px; padding: 26px 26px 20px; box-shadow: 6px 6px 0 var(--lilac); }
.auth-card h2 { font: 400 34px var(--f-disp); margin-bottom: 10px; } .key-input { text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-mono); }

/* ---------- Print ---------- */
@media print {
  .side, .top, .tabbar, .foot, .demo-band, .j-bar, .head-actions, .toolbar, #toasts, .tabs, .no-print, .btn, .icon-btn, .inline label { display: none !important; }
  .main-col { margin: 0; } main { padding: 0; max-width: none; } body { background: #fff !important; } .pop { box-shadow: none; break-inside: avoid; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 1240px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-grid .span2 { grid-column: 1 / -1; } .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cy-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .25s; width: 290px; } body.nav-on .side { box-shadow: 10px 0 30px rgba(0,0,0,.2); transform: none; }
  body.nav-on .scrim { display: block; position: fixed; inset: 0; background: rgba(28, 26, 31, .4); z-index: 39; }
  .main-col { margin-left: 0; }
  .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 8px 10px; background: var(--paper); border-bottom: 1.5px solid var(--edge); } .top .brand { text-decoration: none; color: inherit; }
  .j-bar { top: 57px; padding: 8px 16px; gap: 8px; flex-wrap: nowrap; } .j-pick { flex: 1 1 auto; } .j-bar .grow, .j-day { display: none; } .j-bar .btn.ghost { font-size: 0; gap: 0; padding: 0 8px; min-height: 36px; } .j-bar .btn.ghost .ic { font-size: 18px; } .j-cd { font-size: 11px; padding: 3px 8px; }
  main { padding: 18px 16px 100px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--paper); border-top: 1.5px solid var(--edge); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 10.5px var(--f-mono); color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 4px 8px; cursor: pointer; min-width: 56px; }
  .tabbar .ic { width: 22px; height: 22px; } .tabbar [aria-current="page"] { color: var(--pink-ink); }
  .tabbar .fab { width: 56px; height: 56px; min-width: 0; border-radius: 50%; background: var(--pink); color: #1C1A1F; border: 1.5px solid var(--edge); margin-top: -24px; justify-content: center; box-shadow: 3px 3px 0 var(--edge); }
  .foot { padding-bottom: 90px; }
  .grid.two, .grid.three, .home-grid, .dpage, .hello, .gd-head, .jd-head, .wel { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; }
  .hello-r { margin-top: 26px; }
  .week { grid-template-columns: repeat(7, minmax(160px, 70vw)); scroll-snap-type: x mandatory; } .wcol { scroll-snap-align: start; }
  .hm-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .declutter { grid-template-columns: minmax(0, 1fr); }
  .vb-tools { overflow-x: auto; flex-wrap: nowrap; } .vb-tools > * { flex: none; }
  #toasts { bottom: 90px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .page-head { margin-bottom: 16px; } .page-head h1 { font-size: 40px; } .head-actions { width: 100%; } .head-actions .btn { flex: 1 1 auto; }
  .hello-hi { font-size: 48px; } .hello-tag { font-size: 28px; } .avatar-xl { width: 60px; height: 60px; top: -22px; }
  .pop-body { padding: 14px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .metric b { font-size: 26px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0; scrollbar-width: none; } .tabs a { padding: 8px 14px 7px; font-size: 12.5px; flex: none; } .tabs a .ic { display: none; }
  .toolbar .filter { flex: 1 1 140px; }
  .modal-body { padding: 14px 16px; } .modal-foot { padding: 10px 16px 14px; }
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { border-right: 0; padding: 50px 20px 24px; } .aa-lede { margin-top: 26px; } .aa-bub { font-size: 12px; } .aa-bub.b3 { display: none; }
  .tcard { grid-template-columns: 76px 1fr; } .tc-ring svg { width: 76px; height: 76px; } .tc-clock { font-size: 28px; }
  .vb-add .btn.sm { padding: 3px 10px; } .vb-pick .kick { font-size: 24px; } .vb-sel { min-width: 0; flex: 1; } .vb-right { width: 100%; } .vb-right .btn { flex: 1; }
  .mc { min-height: 54px; padding: 3px; } .mc-ev { display: none; } .mc-t { display: none; } .mcal, .ccal { gap: 3px; } .cc { min-height: 38px; border-radius: 8px; }
  .wheel-wrap { grid-template-columns: minmax(0, 1fr); } .wheel { max-width: 240px; margin: 0 auto; } .wheel-key { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .reflect, .ba, .cmp-side { grid-template-columns: minmax(0, 1fr); } .ing-rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .smart div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .p369 { grid-template-columns: 70px 1fr auto; }
  .gs-n { font-size: 60px; } .moodrow .mface span { font-size: 22px; } .moodrow.big .mface span { font-size: 30px; }
  .meal-row { grid-template-columns: 80px 1fr auto; } .more-i { grid-template-columns: 90px 1fr 22px; }
  .rep-h { flex-direction: column; align-items: flex-start; } .phstrip { margin-left: 0; }
  .goals, .mfs, .journeys, .sgoals, .rts, .clists, .rooms { grid-template-columns: minmax(0, 1fr); }
  .closet, .outfits, .books, .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sclist li a { grid-template-columns: 1fr 80px 40px; }
}
.inline + .grid, .inline + .methods, .inline + section, .inline + .pop { margin-top: 18px; }
[data-theme="night"] .p55-d.cur, [data-theme="night"] .p55-d.done, [data-theme="night"] .iv-face.work, [data-theme="night"] .iv-face.rest, [data-theme="night"] .iv-face.done { color: #1C1A1F; }
[data-theme="night"] .p55-d.cur small, [data-theme="night"] .p55-d.done small { color: #1C1A1F; }
[data-theme="night"] .hello-hi em { background: linear-gradient(transparent 58%, var(--pink-3) 58% 92%, transparent 92%); }
.pop-act .btn { color: #1C1A1F; border-color: #1C1A1F; }
select.input.sm { padding-right: 30px; background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; }
