/* Lumo Planner v2 — LumoMakers brand: Navy #1F2A44 · Butter #FFE8A3 · Sky #A7D3F2 · Coral #FF7A66 · Ivory #FFFDF7
   Warm paper surfaces, soft layered depth, one friendly sun-and-cloud companion. */
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --navy: #1F2A44; --navy-2: #2C3A5C; --butter: #FFE8A3; --butter-2: #F5C94C; --sky: #A7D3F2; --sky-2: #5FA8DD; --coral: #FF7A66; --coral-2: #E85C47; --ivory: #FFFDF7;
  --sage: #CDE8D3; --sage-2: #3E8E5E; --lav: #DED8F7; --lav-2: #6A5CC2;

  --bg: #FBF7EE; --surface: #FFFFFF; --surface2: #F5F0E4; --surface3: #EFE8D9; --text: #1F2A44; --muted: #5A6378; --line: #EAE3D3; --line-2: #DDD4C1;
  --primary: #1F2A44; --on-primary: #FFFDF7;
  --soft: #E3F1FC; --soft-strong: #A7D3F2; --accent-text: #24557F;
  --low: #E2F3E6; --low-t: #22593A; --med: #FFF2C9; --med-t: #6B4E00; --high: #FFE3DD; --high-t: #8C2F1F;
  --e-low: #57B178; --e-med: #E7B53A; --e-high: #FF7A66;
  --warn: #FFE3DD; --warn-t: #8C2F1F; --ok: #E2F3E6; --ok-t: #22593A; --done: #3E8E5E;

  --tint: #FFF4D2; --tint-strong: #F5C94C; --tint-ink: #6B4E00; /* per section, set below */
  --ring-a: #FF7A66; --ring-b: #FFC86B;

  --r-xl: 28px; --r-lg: 24px; --r-md: 18px; --r-sm: 14px;
  --sh-1: 0 1px 1px rgba(31,42,68,.04), 0 2px 8px -2px rgba(31,42,68,.06);
  --sh-2: 0 1px 2px rgba(31,42,68,.04), 0 6px 18px -6px rgba(31,42,68,.10), 0 22px 44px -24px rgba(31,42,68,.16);
  --sh-3: 0 2px 4px rgba(31,42,68,.06), 0 14px 34px -10px rgba(31,42,68,.24), 0 30px 60px -30px rgba(31,42,68,.30);
  --sh-btn: 0 1px 1px rgba(31,42,68,.10), 0 8px 18px -8px rgba(31,42,68,.45);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs: 16px; --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.16,1,.3,1); --t: 180ms;
  --nav-h: 76px; --nav-gap: 12px;
  color-scheme: light;
}
/* section tints: Now = butter, Plan = sky, Focus = coral, Life = sage, Me = lavender */
body[data-section="now"]   { --tint: #FFF3CF; --tint-strong: #F5C94C; --tint-ink: #6B4E00; }
body[data-section="plan"]  { --tint: #E3F1FC; --tint-strong: #5FA8DD; --tint-ink: #24557F; }
body[data-section="focus"] { --tint: #FFE8E2; --tint-strong: #FF7A66; --tint-ink: #9A3422; }
body[data-section="life"]  { --tint: #E2F3E6; --tint-strong: #57B178; --tint-ink: #22593A; }
body[data-section="me"]    { --tint: #ECE8FB; --tint-strong: #8E80DB; --tint-ink: #4B3F8C; }

[data-theme="sunny"] { --soft: #FFF2C9; --soft-strong: #F5D77A; --accent-text: #6B4E00; }
[data-theme="coral"] { --soft: #FFE5DF; --soft-strong: #FFB4A6; --accent-text: #9A3422; }
[data-theme="sage"]  { --soft: #E2F3E6; --soft-strong: #A9D8B6; --accent-text: #22593A; }

[data-mode="dark"] {
  color-scheme: dark;
  --bg: #10172A; --surface: #19223A; --surface2: #222D48; --surface3: #2A3757; --text: #F4F1E8; --muted: #B3BBCD; --line: #2B3756; --line-2: #3A486C;
  --primary: #FFE8A3; --on-primary: #1F2A44;
  --soft: #22385A; --soft-strong: #3D5E8A; --accent-text: #BFE0F7;
  --low: #1C3829; --low-t: #BDE8C9; --med: #3A3320; --med-t: #FFE8A3; --high: #44262A; --high-t: #FFC2B7;
  --warn: #44262A; --warn-t: #FFC2B7; --ok: #1C3829; --ok-t: #BDE8C9; --done: #5DBB81;
  --sh-1: 0 1px 1px rgba(0,0,0,.25), 0 2px 8px -2px rgba(0,0,0,.3);
  --sh-2: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px -8px rgba(0,0,0,.45), 0 22px 44px -24px rgba(0,0,0,.5);
  --sh-3: 0 2px 4px rgba(0,0,0,.3), 0 16px 36px -10px rgba(0,0,0,.6);
  --sh-btn: 0 1px 1px rgba(0,0,0,.3), 0 8px 18px -8px rgba(0,0,0,.6);
}
[data-mode="dark"] body[data-section="now"]   { --tint: #3A3320; --tint-strong: #F5C94C; --tint-ink: #FFE8A3; }
[data-mode="dark"] body[data-section="plan"]  { --tint: #22385A; --tint-strong: #7DBCE8; --tint-ink: #BFE0F7; }
[data-mode="dark"] body[data-section="focus"] { --tint: #44262A; --tint-strong: #FF8E7C; --tint-ink: #FFC2B7; }
[data-mode="dark"] body[data-section="life"]  { --tint: #1C3829; --tint-strong: #6CC48D; --tint-ink: #BDE8C9; }
[data-mode="dark"] body[data-section="me"]    { --tint: #2D2950; --tint-strong: #A89CF0; --tint-ink: #DAD4FF; }
[data-mode="dark"][data-theme="sunny"] { --soft: #3A3320; --soft-strong: #6B5A26; --accent-text: #FFE8A3; }
[data-mode="dark"][data-theme="coral"] { --soft: #44262A; --soft-strong: #7A3B33; --accent-text: #FFC2B7; }
[data-mode="dark"][data-theme="sage"]  { --soft: #1C3829; --soft-strong: #2F5A40; --accent-text: #BDE8C9; }

.calm { --soft: var(--surface2); --soft-strong: var(--line-2); --low: var(--surface2); --med: var(--surface2); --high: var(--surface2); --low-t: var(--text); --med-t: var(--text); --high-t: var(--text); --tint: var(--surface2); --tint-strong: var(--line-2); --ring-a: #9AA6BF; --ring-b: #C7CFDD; --t: 0ms; }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.big-text { --fs: 19px; }
.easy-read body { font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, sans-serif; letter-spacing: .03em; word-spacing: .12em; line-height: 1.75; }
.easy-read h1, .easy-read h2, .easy-read h3 { font-family: Verdana, Tahoma, sans-serif; letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
body.no-scroll { overflow: hidden; }
::selection { background: var(--butter); color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 2.2rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.sm { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
.right { display: flex; justify-content: flex-end; }
.struck { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.gold { color: #D99A00; }
html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }

/* ---------- layout ---------- */
.view { max-width: 680px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 24px) 16px calc(var(--nav-h) + var(--nav-gap) * 2 + env(safe-area-inset-bottom) + 24px); outline: none; }
.view.enter > * { animation: rise 320ms var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: 30ms; } .view.enter > *:nth-child(3) { animation-delay: 60ms; } .view.enter > *:nth-child(n+4) { animation-delay: 90ms; }
@keyframes rise { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { padding: 8px 4px 20px; display: grid; gap: 6px; }
.page-head p.muted { font-size: 1.02rem; max-width: 46ch; }
.done-count { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 12px 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--ok-t); font-weight: 800; font-size: .85rem; box-shadow: var(--sh-1); }
.done-count .ic { width: 1.1em; height: 1.1em; stroke-width: 2.6; color: var(--done); }
.sub-head { gap: 10px; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; width: fit-content; min-height: 44px; padding: 6px 14px 6px 8px; margin-left: -6px; border-radius: 99px; text-decoration: none; font-weight: 800; color: var(--tint-ink); background: var(--tint); transition: transform var(--t) var(--ease); }
.back-btn:active { transform: scale(.97); }
.with-icon { display: flex; align-items: center; gap: 12px; }
.me-head { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.me-head .lumo-art { margin: -6px -4px -8px -8px; }

/* ---------- sky header (Now) ---------- */
.sky { position: relative; margin: calc(-24px - env(safe-area-inset-top)) -16px 0; padding: calc(env(safe-area-inset-top) + 30px) 22px 64px; min-height: 236px; overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.sky-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky-text { position: relative; display: grid; gap: 4px; max-width: 36ch; }
.sky h1 { font-size: 2.4rem; }
.sky-date { font-weight: 800; font-size: .95rem; opacity: .8; text-transform: capitalize; }
.sky-sub { font-size: 1.02rem; opacity: .85; margin-bottom: 8px; }
.sky-sun { fill: #FFD56B; } .sky-glow { fill: #FFF3C4; opacity: .55; }
.sky-evening .sky-sun { fill: #FF9D7E; } .sky-evening .sky-glow { fill: #FFD9C2; opacity: .6; }
.sky-morning .sky-sun { fill: #FFC75A; }
.sky-moon { fill: #FFF1C2; } .sky-night .sky-glow { fill: #3E5288; opacity: .55; }
.sky-star { fill: #FFF6DA; animation: twinkle 4s ease-in-out infinite; } .sky-star.s1 { animation-delay: 1.3s; } .sky-star.s2 { animation-delay: 2.6s; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
.sky-cloud path { fill: #FFFFFF; opacity: .92; }
.sky-evening .sky-cloud path { fill: #FFF1EC; } .sky-night .sky-cloud path { fill: #3A4B7C; opacity: .75; }
.sky-cloud.c1 { animation: drift 38s ease-in-out infinite alternate; } .sky-cloud.c2 { animation: drift 46s ease-in-out infinite alternate-reverse; } .sky-cloud.c3 { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { translate: -10px 0; } to { translate: 18px 0; } }
.sky-hill { fill: var(--bg); opacity: .0; }
.sky-night { color: #F4F1E8; }
[data-mode="dark"] .sky-night .done-count { background: rgba(255,255,255,.14); color: #DFF5E6; }
[data-mode="dark"] .sky { color: #F4F1E8; }
[data-mode="dark"] .sky .done-count { background: rgba(255,255,255,.12); color: #DFF5E6; }
.sky + .card { margin-top: -44px; position: relative; }

/* ---------- navigation: floating bar on phones, rail on large screens ---------- */
.nav { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--nav-gap) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 460px); height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 28px; box-shadow: var(--sh-3); padding: 8px; }
.nav .brand { display: none; }
.nav-items { position: relative; display: flex; height: 100%; }
.nav-pill { position: absolute; left: 0; top: 0; border-radius: 20px; background: var(--tint); transition: transform 360ms var(--spring), background 300ms var(--ease); z-index: 0; pointer-events: none; }
.nav-item { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px;
  color: var(--muted); text-decoration: none; font-weight: 800; font-size: .72rem; letter-spacing: .01em; border-radius: 20px; transition: color var(--t); }
.nav-ic { width: 26px; height: 26px; transition: transform 300ms var(--spring); }
.nav-ic .f { fill: transparent; transition: fill var(--t); }
.nav-item.on { color: var(--tint-ink); }
.nav-item.on .nav-ic { transform: translateY(-1px) scale(1.06); }
.nav-item.on .nav-ic .f { fill: color-mix(in srgb, var(--tint-strong) 55%, transparent); }
.nav-item.on .nav-ic .cut { stroke: var(--tint-ink); }
.nav-item:active .nav-ic { transform: scale(.9); }
.nav-live { position: absolute; top: 6px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2.5px var(--surface); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

@media (min-width: 900px) {
  :root { --nav-h: 0px; --nav-gap: 0px; }
  .nav { left: 16px; top: 16px; bottom: 16px; transform: none; width: 236px; height: auto; display: flex; flex-direction: column; gap: 16px; padding: 18px 12px; border-radius: 28px; }
  .nav .brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
  .nav .brand .lumo-art { margin: -6px -4px -6px -6px; }
  .nav-items { flex-direction: column; height: auto; gap: 4px; }
  .nav-item { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; font-size: 1rem; min-height: 50px; }
  .nav-item:hover:not(.on) { background: var(--surface2); }
  .nav-live { top: 50%; right: 16px; transform: translateY(-50%); }
  .view { margin-left: 268px; margin-right: 0; max-width: none; padding: 40px clamp(24px, 4vw, 64px) 56px; }
  .view > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .sky { margin: -40px auto 0; border-radius: 0 0 var(--r-xl) var(--r-xl); -webkit-mask-image: none; mask-image: none; padding: 48px 36px 76px; }
  .sky + .card { margin-top: -40px; }
}

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-2); }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 12px; }
.card-title .ic { color: var(--tint-ink); width: 1.15em; height: 1.15em; }
.card-title .ic.gold { color: #D99A00; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-title-row .card-title { margin-bottom: 0; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); font-family: var(--font); font-weight: 800; font-size: .78rem; font-variant-numeric: tabular-nums; }
.sub-title { margin: 18px 0 6px; color: var(--muted); font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.kind { background: var(--tint); color: var(--tint-ink); padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 12px; font-size: .94rem; font-weight: 700; line-height: 1.45; }
.hint { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.empty-state { display: flex; align-items: center; gap: 12px; padding: 8px 4px; color: var(--muted); font-weight: 700; }
.empty-state .lumo-art { flex: none; }
.empty-state p { max-width: 36ch; }

/* ---------- Lumo, the companion ---------- */
.lumo-art { display: block; overflow: visible; }
.lm-rays path { stroke: #F5C94C; stroke-width: 5; stroke-linecap: round; }
.lm-sun { fill: #FFE08A; stroke: #F5C94C; stroke-width: 2.5; }
.lm-shine { fill: #FFF6D6; opacity: .9; }
.lm-cheek { fill: #FF9E8C; opacity: .55; }
.lm-blink ellipse, .lm-ink { fill: #1F2A44; }
.lm-stroke { fill: none; stroke: #1F2A44; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.lm-tongue { fill: #FF7A66; }
.lm-cloud path:not(.lm-cloud-lit) { fill: #FFFFFF; stroke: #D6E6F3; stroke-width: 2; }
.lm-cloud-lit { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; opacity: .9; }
.lm-shadow { fill: #1F2A44; opacity: .08; }
.lm-zz path { fill: none; stroke: #8AA4C4; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lm-spark path { fill: #FFC23D; }
[data-mode="dark"] .lm-cloud path:not(.lm-cloud-lit) { fill: #E7EEF8; stroke: #B9C9DF; }
[data-mode="dark"] .lm-shadow { fill: #000; opacity: .25; }
.lm-float { animation: float 5.5s ease-in-out infinite; transform-box: fill-box; }
.lm-rays { transform-origin: 51px 47px; animation: spin 48s linear infinite; }
.lm-blink { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.lm-zz { animation: zz 3s ease-in-out infinite; }
.lm-spark { transform-box: fill-box; transform-origin: center; animation: sparkle 1.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes zz { 0%, 100% { opacity: .4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes sparkle { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
.lumo-say { display: flex; align-items: center; gap: 10px; margin: 0 0 14px -6px; }
.lumo-say .lumo-art { flex: none; }
.say { position: relative; background: var(--surface); border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-weight: 700; line-height: 1.4; box-shadow: var(--sh-1); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }

/* ---------- What now? (hero) ---------- */
.hero { background: linear-gradient(170deg, color-mix(in srgb, var(--soft) 85%, var(--surface)) 0%, var(--surface) 62%); padding: 22px 20px 22px; border-color: color-mix(in srgb, var(--soft-strong) 55%, transparent); }
.hero-title { font-size: 1.85rem; margin-bottom: 10px; }
.pick-btns { display: flex; gap: 10px; margin-top: 6px; }
.pick-btns .btn.primary { flex: 1; white-space: nowrap; min-width: 0; }
.pick .row-btns:not(.links) { display: grid; grid-template-columns: 1fr 1fr; }
.pick .row-btns:not(.links) .btn { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
.pick { display: grid; gap: 12px; animation: rise 280ms var(--ease) both; }
.pick .lumo-say { margin-bottom: 0; }
.pick-title { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.15; font-weight: 600; text-wrap: balance; text-align: center; padding: 6px 8px 2px; }
.pick.none .say { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.idea { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border-radius: 99px; padding: 10px 18px; font-weight: 800; margin: 0 auto; box-shadow: var(--sh-1); }
.idea .ic { color: #D99A00; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.row-btns.links { gap: 4px 16px; }
.link-btn { border: 0; background: none; min-height: 44px; padding: 6px 4px; font-weight: 800; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.link-btn:hover { text-decoration-color: currentColor; }

/* ---------- fields ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > span { font-weight: 800; font-size: .9rem; }
input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); transition: border-color var(--t), box-shadow var(--t), background var(--t); caret-color: var(--coral); }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6378' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--soft-strong) 55%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="range"] { width: 100%; accent-color: var(--coral); min-height: 44px; }
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: grid; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.form-actions .btn.primary { margin-left: auto; }
.inline-add { display: flex; gap: 8px; align-items: flex-end; }
.inline-add input { flex: 1; }
.inline-add.sm input { min-height: 42px; padding: 8px 12px; }
.inline-add .field { margin-bottom: 0; }
.stack-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.stack-form input { flex: 1 1 180px; width: auto; }
.stack-form select, .stack-form input[type="time"], .stack-form input[type="number"], .stack-form input[type="date"] { flex: 1 1 120px; width: auto; }
.stack-form .btn { flex: none; }
.quick { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; padding: 6px 6px 6px 8px; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-2); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.quick input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 48px; }
.quick:focus-within { box-shadow: var(--sh-2), 0 0 0 4px color-mix(in srgb, var(--soft-strong) 55%, transparent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 20px; border-radius: 99px; border: 1.5px solid transparent;
  font-weight: 800; text-decoration: none; transition: transform 160ms var(--ease), background var(--t), box-shadow var(--t), filter var(--t); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--sh-btn); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.soft { background: var(--soft); color: var(--text); border-color: color-mix(in srgb, var(--soft-strong) 70%, transparent); }
.btn.soft:hover { background: color-mix(in srgb, var(--soft-strong) 45%, var(--soft)); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--surface2); }
.btn.danger { color: var(--warn-t); }
.btn.lg { min-height: 56px; padding: 12px 26px; font-size: 1.05rem; }
.btn.xl { min-height: 62px; font-size: 1.18rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .005em; padding: 12px 24px; }
.btn.square { width: 62px; padding: 0; flex: none; }
.btn.square .ic { width: 1.5em; height: 1.5em; }
.btn.sm { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn .ic { width: 1.2em; height: 1.2em; }
.btn.primary .ic { stroke-width: 2.2; }
.btn-stack { display: grid; gap: 8px; }
.btn-stack .btn { justify-content: flex-start; }
.file-btn { cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); flex: none; transition: background var(--t), color var(--t), transform 160ms var(--ease); }
.icon-btn:hover { background: var(--surface2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.filled { background: var(--primary); color: var(--on-primary); width: 48px; height: 48px; box-shadow: var(--sh-btn); }
.icon-btn.filled .ic { stroke-width: 2.4; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm .ic { width: 1em; height: 1em; }
.mic.listening { background: var(--coral); color: #fff; animation: pulse 1.2s ease-in-out infinite; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t), border-color var(--t), color var(--t), transform 160ms var(--spring), box-shadow var(--t); }
.chip:hover { border-color: var(--soft-strong); }
.chip:active { transform: scale(.95); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); box-shadow: 0 6px 14px -8px rgba(31,42,68,.6); }
[data-mode="dark"] .chip[aria-checked="true"], [data-mode="dark"] .chip[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); color: var(--navy); }
.chip .ic { width: 1em; height: 1em; }
.chips.wrap .chip { min-height: 42px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface3); border-radius: 99px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-height: 44px; padding: 8px 12px; font-size: .92rem; border: 0; border-radius: 99px; background: transparent; font-weight: 800; color: var(--muted); white-space: nowrap; transition: background var(--t), color var(--t), box-shadow var(--t); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--tint-ink); box-shadow: var(--sh-1); }

/* ---------- tasks ---------- */
.tasks { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; }
.task { position: relative; border-radius: var(--r-md); overflow: hidden; touch-action: pan-y; }
.task-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; padding: 2px 4px; background: var(--surface); border-radius: var(--r-md); transition: background var(--t); will-change: transform; }
.task:hover .task-inner { background: color-mix(in srgb, var(--surface2) 60%, var(--surface)); }
.swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 800; font-size: .9rem; border-radius: var(--r-md); opacity: 0; transition: opacity 120ms; }
.swipe-bg span { display: inline-flex; align-items: center; gap: 6px; transition: transform 200ms var(--spring); }
.swipe-bg .sb-later { margin-left: auto; }
.task.swiping .swipe-bg { opacity: 1; }
.task.to-done .swipe-bg { background: var(--ok); color: var(--ok-t); } .task.to-done .sb-later { visibility: hidden; }
.task.to-later .swipe-bg { background: var(--soft); color: var(--accent-text); } .task.to-later .sb-done { visibility: hidden; }
.task.armed .swipe-bg span { transform: scale(1.12); }
.task.armed.to-done .swipe-bg { background: color-mix(in srgb, var(--done) 30%, var(--ok)); }
.task-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 10px 4px; display: grid; gap: 5px; border-radius: 12px; }
.task-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; transition: color var(--t); }
.task.is-done .task-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.task-meta.center { justify-content: center; font-size: .9rem; }
.tasks.compact .task-meta { display: none; }
.meta-e { display: inline-flex; align-items: center; gap: 6px; }
.edot { width: 9px; height: 9px; border-radius: 50%; background: var(--e-med); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-med) 25%, transparent); }
.e-low .edot { background: var(--e-low); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-low) 25%, transparent); }
.e-high .edot { background: var(--e-high); box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-high) 25%, transparent); }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); font-variant-numeric: tabular-nums; }
.meta-chip .ic { width: 1em; height: 1em; }
.meta-chip.warn { background: var(--warn); color: var(--warn-t); }
.meta-chip.time { background: var(--soft); color: var(--accent-text); }
.meta-proj { color: var(--accent-text); }
.meta-proj::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; opacity: .6; }
.tick { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
.tick-svg { width: 30px; height: 30px; overflow: visible; }
.tick-svg circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; transition: fill 220ms var(--ease), stroke 220ms var(--ease); }
.tick-svg path { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset 260ms var(--ease) 60ms; }
.tick:hover .tick-svg circle { stroke: var(--done); }
.tick[aria-pressed="true"] .tick-svg circle, .tick.on .tick-svg circle, .task.completing .tick-svg circle { fill: var(--done); stroke: var(--done); }
.tick[aria-pressed="true"] .tick-svg path, .tick.on .tick-svg path, .task.completing .tick-svg path { stroke-dashoffset: 0; }
.tick:active .tick-svg { transform: scale(.9); }
.tick .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; border: 2px solid var(--line-2); color: transparent; stroke-width: 3; }
.tick.sm .tick-svg { width: 26px; height: 26px; }
.tick.sm .ic { width: 24px; height: 24px; }
.tick.sm[aria-pressed="true"] .ic, .tick.sm.on .ic { background: var(--done); border-color: var(--done); color: #fff; }
.task.completing .task-inner { animation: complete 420ms var(--ease) forwards; }
@keyframes complete { 0% { transform: none; } 35% { transform: scale(1.015); } 100% { transform: translateX(14px); opacity: .25; } }
.task.completing .task-title { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.star { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--line-2); border-radius: 50%; transition: color var(--t), transform 220ms var(--spring); }
.star .ic { width: 22px; height: 22px; }
.star:hover { color: var(--muted); }
.star.on { color: #E3A500; }
.star.on .ic { fill: #FFD25E; stroke: #D99A00; }
.star:active { transform: scale(.85) rotate(-12deg); }
.grip { flex: none; width: 30px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--line-2); cursor: grab; touch-action: none; border-radius: 10px; }
.grip:hover { color: var(--muted); }
.task.dragging { z-index: 5; overflow: visible; }
.task.dragging .task-inner { box-shadow: var(--sh-3); background: var(--surface); transform: scale(1.02); }
.tasks.is-sorting .task:not(.dragging) { transition: transform 160ms var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.step { display: flex; align-items: center; gap: 4px; }
.step span { flex: 1; }

/* habits row on Now */
.habit-row { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 16px 6px 8px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; transition: background var(--t), border-color var(--t), color var(--t), transform 200ms var(--spring); }
.habit-chip:active { transform: scale(.95); }
.hc-tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line-2); color: transparent; transition: all 220ms var(--ease); }
.hc-tick .ic { width: 16px; height: 16px; stroke-width: 3; }
.habit-chip.on { background: var(--ok); border-color: transparent; color: var(--ok-t); }
.habit-chip.on .hc-tick { background: var(--done); border: 2px solid var(--done); color: #fff; }
.fresh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface2), var(--surface)); }
.fresh .card-title { margin-bottom: 2px; }
.fresh .lumo-art { margin: -8px -4px -8px -6px; }

/* ---------- plan ---------- */
.dump textarea { margin: 12px 0 8px; }
.dump .form-actions .mic { margin-right: auto; }
.dump-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.dump-item { padding: 12px; border-radius: var(--r-md); background: var(--surface2); display: grid; gap: 8px; animation: rise 260ms var(--ease) both; }
.dump-top { display: flex; gap: 6px; align-items: center; }
.dump-title { font-weight: 800; min-height: 46px !important; background: var(--surface) !important; }
.dump-chips { display: grid; gap: 6px; }
.dump-chips .chips { gap: 5px; }
.dump-chips .chip { min-height: 34px; padding: 3px 12px; font-size: .8rem; border-width: 1px; }
.disclose { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; border: 0; background: none; font-weight: 800; padding: 0; }
.disclose .ic { transition: transform var(--t); }
.disclose[aria-expanded="true"] .ic { transform: rotate(90deg); }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.day-nav h2 { font-size: 1.2rem; text-align: center; text-transform: capitalize; }
.day-nav .icon-btn { background: var(--surface); box-shadow: var(--sh-1); }
.timeline-card { padding: 8px 14px 8px 8px; }
.timeline { position: relative; }
.hour { position: relative; height: var(--hour); display: grid; grid-template-columns: 56px 1fr; border-top: 1px solid var(--line); }
.hour:first-child { border-top: 0; }
.hour .h { font-size: .76rem; color: var(--muted); font-weight: 800; padding: 6px 0 0 8px; font-variant-numeric: tabular-nums; }
.slot-add { border: 0; background: transparent; border-radius: 12px; margin: 3px 0; transition: background var(--t); }
.slot-add:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.slot-add:hover::after { content: '+'; display: grid; place-items: center; height: 100%; color: var(--accent-text); font-weight: 900; font-size: 1.2rem; }
.tblock { position: absolute; left: 60px; right: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; border: 0; border-radius: 14px; padding: 7px 12px; font-weight: 800; overflow: hidden;
  background: var(--soft); box-shadow: inset 4px 0 0 var(--soft-strong), var(--sh-1); line-height: 1.25; transition: transform 160ms var(--ease); }
.tblock:hover { transform: translateY(-1px); }
.tblock b { font-size: .75rem; font-variant-numeric: tabular-nums; opacity: .75; }
.tblock.e-low { background: var(--low); box-shadow: inset 4px 0 0 var(--e-low), var(--sh-1); }
.tblock.e-med { background: var(--med); box-shadow: inset 4px 0 0 var(--e-med), var(--sh-1); }
.tblock.e-high { background: var(--high); box-shadow: inset 4px 0 0 var(--e-high), var(--sh-1); }
.now-line { position: absolute; left: 52px; right: 0; height: 0; border-top: 2px solid var(--coral); z-index: 3; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -6px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent); }
.now-line span { position: absolute; right: 0; top: -22px; font-size: .7rem; font-weight: 900; color: #fff; background: var(--coral); padding: 1px 8px; border-radius: 99px; letter-spacing: .02em; }
.week { display: grid; gap: 10px; }
.week-day { padding: 12px 16px; margin: 0; }
.week-day.is-today { border-color: var(--soft-strong); background: linear-gradient(180deg, var(--soft), var(--surface) 70%); }
.week-head { display: flex; align-items: baseline; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 0; min-height: 38px; text-align: left; text-transform: capitalize; }
.week-head b { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.week-head .count { margin-left: auto; }
.empty.sm { padding: 0; }
@media (min-width: 1100px) { .week { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: .75rem; font-weight: 900; color: var(--muted); padding-bottom: 6px; }
.cal-cell { aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 14px; background: var(--surface2); display: grid; place-items: center; align-content: center; gap: 2px; font-weight: 800; position: relative; font-variant-numeric: tabular-nums; transition: transform 160ms var(--ease), background var(--t); }
.cal-cell:hover { background: var(--soft); }
.cal-cell:active { transform: scale(.94); }
.cal-cell.empty { background: transparent; }
.cal-cell.today { background: var(--navy); color: var(--ivory); box-shadow: var(--sh-btn); }
[data-mode="dark"] .cal-cell.today { background: var(--butter); color: var(--navy); }
.cal-cell .dots { display: flex; gap: 3px; }
.cal-cell .dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.cal-cell.today .dots b { background: var(--butter); }
.cal-cell .bday { position: absolute; top: 3px; right: 3px; font-style: normal; color: var(--coral); }
.cal-cell .bday .ic { width: 13px; height: 13px; }
.project-head { display: grid; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 0; min-height: 44px; }
.project-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.bar { display: block; height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--sky-2)); transition: width .5s var(--ease); }
.project .tasks { margin-top: 10px; }

/* ---------- focus ---------- */
.focus-card { text-align: center; padding: 26px 20px; overflow: hidden; }
.focus-card .field { text-align: left; }
.focus-card.is-break { --ring-a: #57B178; --ring-b: #A7E0BA; background: linear-gradient(180deg, var(--low), var(--surface) 70%); }
.focus-label { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; text-wrap: balance; max-width: 26ch; margin: 0 auto; }
.ring-stage { position: relative; width: min(290px, 76vw); aspect-ratio: 1; margin: 10px auto 14px; display: grid; place-items: center; }
.ring-stage.idle { width: min(232px, 62vw); margin: 0 auto 20px; }
.fring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tk { stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; }
.tk.long { stroke: var(--muted); stroke-width: 2.4; opacity: .55; }
.fr-track { fill: var(--surface); stroke: var(--surface2); stroke-width: 18; }
.fr-fill { fill: none; stroke: url(#fr-g); stroke-width: 18; stroke-linecap: round; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--ring-a) 35%, transparent)); }
.ring-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ring-b) 55%, transparent), transparent 70%); opacity: 0; }
.is-running .ring-glow { animation: breathe-glow 4.5s ease-in-out infinite; }
@keyframes breathe-glow { 0%, 100% { opacity: .25; transform: scale(.92); } 50% { opacity: .85; transform: scale(1.08); } }
.ring-center { position: relative; display: grid; gap: 0; }
.big-time { font-family: var(--font-head); font-weight: 600; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ring-stage.idle .big-time { font-size: 2.5rem; }
.ring-cap { font-weight: 800; color: var(--muted); font-size: .86rem; margin: 4px auto 0; max-width: 9.5em; line-height: 1.3; text-wrap: balance; }
.buddy { display: flex; align-items: center; gap: 10px; margin: 0 auto 18px; padding: 6px 18px 6px 6px; background: var(--surface); border-radius: 99px; width: fit-content; max-width: 100%; box-shadow: var(--sh-1); }
.buddy .lumo-art { margin: -10px -4px -10px 0; }
.buddy-msg { font-weight: 800; text-align: left; }
.toggle { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 0; cursor: pointer; min-height: 52px; border-top: 1px solid var(--line); }
.card > .toggle:first-of-type, .card-title + .toggle { border-top: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line-2); position: relative; transition: background var(--t); }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform 260ms var(--spring); }
.toggle input:checked + .track { background: var(--done); }
.toggle input:checked + .track::after { transform: translateX(20px); }
.toggle input:focus-visible + .track { outline: 3px solid var(--coral); outline-offset: 2px; }
.toggle b { display: block; }
.toggle small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.buddy-toggle { background: var(--tint); border: 0; border-radius: var(--r-md); padding: 8px 14px 8px 6px; margin-bottom: 16px; }
.buddy-toggle .lumo-art { margin: -6px -4px -6px 0; }
.buddy-toggle small { color: var(--tint-ink); opacity: .85; }

/* ---------- life: tool tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: grid; align-content: start; gap: 4px; min-height: 140px; padding: 16px; border-radius: var(--r-lg); text-decoration: none; color: var(--text); background: var(--surface); box-shadow: var(--sh-2);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; transition: transform 220ms var(--spring), box-shadow var(--t); }
.tile::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tile-bg); opacity: .55; transition: transform 400ms var(--ease); }
.tile:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.tile:hover::after { transform: scale(1.15); }
.tile:active { transform: scale(.97); }
.tool-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--tile-bg); color: var(--tile-ink); margin-bottom: 10px; }
.tool-ic .ic { width: 26px; height: 26px; stroke-width: 2; }
.tile-name { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.tile-stat { position: relative; z-index: 1; font-size: .82rem; font-weight: 800; color: var(--muted); line-height: 1.35; }
.t-sage { --tile-bg: #D9F0DF; --tile-ink: #22593A; } .t-butter { --tile-bg: #FFEFC2; --tile-ink: #6B4E00; } .t-sky { --tile-bg: #DCEEFB; --tile-ink: #24557F; }
.t-coral { --tile-bg: #FFE1DA; --tile-ink: #9A3422; } .t-lav { --tile-bg: #E6E1FA; --tile-ink: #4B3F8C; }
[data-mode="dark"] .t-sage { --tile-bg: #1C3829; --tile-ink: #BDE8C9; } [data-mode="dark"] .t-butter { --tile-bg: #3A3320; --tile-ink: #FFE8A3; } [data-mode="dark"] .t-sky { --tile-bg: #22385A; --tile-ink: #BFE0F7; }
[data-mode="dark"] .t-coral { --tile-bg: #44262A; --tile-ink: #FFC2B7; } [data-mode="dark"] .t-lav { --tile-bg: #2D2950; --tile-ink: #DAD4FF; }
.sub-head .tool-ic { margin: 0; width: 44px; height: 44px; border-radius: 14px; }

/* lists */
.plain-list, .check-list, .habit-list, .meal-week { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.plain-list li:first-child { border-top: 0; }
.plain-list li > span:first-child { flex: 1; min-width: 0; font-weight: 700; }
.check-list li { display: flex; align-items: center; gap: 6px; padding: 2px 0; min-height: 50px; }
.check-list.big li { border-top: 1px solid var(--line); padding: 8px 0; flex-wrap: wrap; }
.check-list.big li:first-child { border-top: 0; }
.habit { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.habit-list .habit:first-child { border-top: 0; }
.habit-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.habit-name { font-weight: 800; }
.ring { position: relative; flex: none; width: var(--size); height: var(--size); display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--surface2); stroke-width: 4.5; }
.ring-fill { fill: none; stroke: var(--done); stroke-width: 4.5; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.ring b { position: relative; font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.meal-week li { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.meal-week li:first-child { border-top: 0; }
.meal-week li > div { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-day b { font-family: var(--font-head); font-weight: 600; }
.meal-day.is-today b { color: var(--tint-ink); }
.meal-day.is-today { background: linear-gradient(90deg, var(--tint), transparent); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 14px; border-top-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pill .ic { width: .95em; height: .95em; }
.pill.soft-warn { background: var(--warn); color: var(--warn-t); } .pill.ok { background: var(--ok); color: var(--ok-t); }
.pill.meal { padding: 2px 0 2px 12px; background: var(--med); color: var(--med-t); font-size: .88rem; }
.pill.meal .icon-btn.sm { width: 30px; height: 30px; color: inherit; }
.faces { display: flex; gap: 8px; justify-content: space-between; }
.face { flex: 1; display: grid; place-items: center; min-height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); transition: transform 220ms var(--spring), background var(--t), border-color var(--t), box-shadow var(--t); }
.face:active { transform: scale(.92); }
.face[aria-checked="true"] { background: var(--tint); border-color: var(--tint-strong); transform: translateY(-2px) scale(1.04); box-shadow: var(--sh-1); }
.mface .mf-ink { fill: #1F2A44; }
.mface .mf-line { fill: none; stroke: #1F2A44; stroke-width: 1.9; stroke-linecap: round; }
.mface .mf-line.mf-fill { fill: #1F2A44; }
.mf-1 .mf-bg { fill: #C9D9EE; } .mf-2 .mf-bg { fill: #DCE6F2; } .mf-3 .mf-bg { fill: #FFF0BD; } .mf-4 .mf-bg { fill: #FFE08A; } .mf-5 .mf-bg { fill: #FFC86B; }
.energy-scale .lvl { gap: 8px; padding: 8px 14px; }
.energy-scale .lvl i { display: inline-block; width: 6px; height: calc(6px + var(--lv) * 3px); border-radius: 3px; background: var(--e-low); }
.mood-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 150px; }
.mc { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; }
.mc-bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.mc-bars i { flex: 1; height: var(--h); border-radius: 99px; min-height: 6px; transition: height .5s var(--ease); }
.mc-bars i.m { background: linear-gradient(180deg, #FFB199, var(--coral)); }
.mc-bars i.e { background: linear-gradient(180deg, #CDE7FA, var(--sky-2)); }
.mc-bars i.none { background: var(--surface2); }
.mc span { text-align: center; font-size: .66rem; color: var(--muted); font-weight: 800; }
.mc.is-today span { color: var(--text); }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .82rem; color: var(--muted); font-weight: 800; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.legend i.m { background: var(--coral); } .legend i.e { background: var(--sky-2); }
.safe { text-align: center; background: radial-gradient(120% 90% at 50% 0%, var(--ok) 0%, var(--surface) 70%); padding-top: 24px; }
.safe-label { font-family: var(--font); font-size: .95rem; font-weight: 800; color: var(--ok-t); }
.safe-num { font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.safe-num .cur { font-size: .55em; vertical-align: .55em; margin-right: 2px; color: var(--muted); }
.safe-num .dec { font-size: .5em; color: var(--muted); }
.safe-sub { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: 0 auto; }
.budget-bar { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin: 16px 0 0; }
.budget-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8ED3A4, var(--sage-2)); }
.safe .inline-add { margin-top: 14px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stats3 > div { background: var(--surface); border-radius: var(--r-md); padding: 12px 10px; display: grid; gap: 4px; align-content: space-between; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.stats3 dt { font-size: .76rem; font-weight: 800; color: var(--muted); }
.stats3 dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stats3 dd .dec, .stat .dec { font-size: .72em; color: var(--muted); }
.jars { display: grid; gap: 10px; }
.jar { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface2); }
.jar-glass { width: 46px; height: 62px; border-radius: 10px 10px 16px 16px; border: 2.5px solid var(--soft-strong); position: relative; overflow: hidden; flex: none; background: var(--surface); }
.jar-glass i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--butter), var(--butter-2)); transition: height .6s var(--ease); }
.jar-info { flex: 1; display: grid; gap: 4px; min-width: 0; }
.entry p { margin-top: 6px; white-space: pre-wrap; }
.grateful { display: flex; gap: 6px; align-items: center; color: var(--accent-text); font-weight: 800; }
.goal .bar { margin: 6px 0; }
.bday-name { display: inline-flex; align-items: center; gap: 8px; }
.bday-name .ic { color: var(--coral); }

/* ---------- me ---------- */
.list-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 0; min-height: 58px; border-top: 1px solid var(--line); }
.list-btn:first-of-type { border-top: 0; }
.list-btn b { display: block; } .list-btn small { display: block; color: var(--muted); font-size: .87rem; }
.list-btn.static { cursor: default; }
.list-btn > .ic { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface2); border-radius: var(--r-md); padding: 14px; display: grid; gap: 2px; align-content: space-between; min-height: 84px; }
.stat b { font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 800; }
.stat.wide { grid-column: 1 / -1; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } .stat.wide { grid-column: auto; } }
.about { text-align: center; font-size: .85rem; padding: 10px 20px 0; }
.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.previews.modes { grid-template-columns: repeat(3, 1fr); }
.preview { display: grid; gap: 8px; padding: 8px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); text-align: center; font-weight: 800; font-size: .82rem; transition: border-color var(--t), transform 200ms var(--spring), box-shadow var(--t); }
.preview:active { transform: scale(.96); }
.preview[aria-checked="true"] { border-color: var(--navy); box-shadow: var(--sh-1); }
[data-mode="dark"] .preview[aria-checked="true"] { border-color: var(--butter); }
.pv-name { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pv-name .ic { width: 1em; height: 1em; }
.pv-screen { display: grid; gap: 5px; padding: 7px; border-radius: 10px; background: #FBF7EE; aspect-ratio: 3 / 4; align-content: start; }
.pv-screen i { display: block; border-radius: 5px; }
.pv-head { height: 18px; background: var(--pv-a); }
.pv-card { display: grid; gap: 4px; padding: 5px; background: #fff; box-shadow: 0 1px 3px rgba(31,42,68,.12); }
.pv-card b { display: block; height: 4px; border-radius: 2px; background: #D9D2C2; } .pv-card b + b { width: 60%; }
.pv-btn { height: 10px; width: 70%; margin: 2px auto 0; border-radius: 99px !important; background: #1F2A44; }
.pv-sky { --pv-a: linear-gradient(90deg, #DCEEFB, #A7D3F2); } .pv-sunny { --pv-a: linear-gradient(90deg, #FFF2C9, #FFE08A); } .pv-coral { --pv-a: linear-gradient(90deg, #FFE5DF, #FFB4A6); } .pv-sage { --pv-a: linear-gradient(90deg, #E2F3E6, #A9D8B6); }
.pm-auto .pv-screen { background: linear-gradient(135deg, #FBF7EE 50%, #10172A 50%); }
.pm-light, .pm-auto { --pv-a: #FFE8A3; }
.pm-dark .pv-screen { background: #10172A; } .pm-dark { --pv-a: #3D5E8A; } .pm-dark .pv-card { background: #19223A; } .pm-dark .pv-card b { background: #3A486C; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(16,23,42,.46); opacity: 0; transition: opacity 220ms var(--ease); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 6px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(40px); opacity: 0; transition: transform 300ms var(--spring), opacity 200ms var(--ease); overscroll-behavior: contain; box-shadow: var(--sh-3); }
.sheet-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 6px auto 0; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; background: var(--surface); padding: 10px 0 10px; }
.sheet-head h2 { font-size: 1.35rem; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: var(--r-xl); } .sheet-grab { display: none; } }
.wiz-title { font-size: 1.35rem; margin: 10px 0 4px; }
.wiz-body { margin: 14px 0; }
.progress { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), #FFB199); border-radius: 99px; transition: width .3s var(--ease); }
.eyebrow { font-weight: 800; font-size: .8rem; color: var(--muted); }

/* ---------- welcome ---------- */
.tour-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; background: var(--bg); opacity: 0; transition: opacity 260ms var(--ease); }
.tour-wrap.open { opacity: 1; }
.tour-sky { position: absolute; inset: 0 0 auto; height: 52%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tour-sky .sky-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-card { position: relative; outline: none; width: min(100%, 520px); background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); text-align: center; }
@media (min-width: 700px) { .tour-wrap { place-items: center; } .tour-card { border-radius: var(--r-xl); } }
.tw-screen { display: grid; gap: 10px; justify-items: center; animation: rise 320ms var(--ease) both; }
.tw-art { margin-top: -86px; }
.tw-art.small { margin-top: -64px; }
.tw-screen h2 { font-size: 1.9rem; margin-top: 4px; }
.tw-screen p { color: var(--muted); max-width: 36ch; font-size: 1.05rem; }
.tw-small { font-size: .9rem !important; padding: 10px 14px; background: var(--surface2); border-radius: var(--r-md); }
.tw-input { text-align: center; font-weight: 800; font-size: 1.15rem !important; margin-top: 6px; max-width: 320px; }
.tw-lang { display: grid; gap: 6px; justify-items: center; margin-top: 4px; }
.tw-lang > span { font-weight: 800; font-size: .85rem; color: var(--muted); }
.tw-foot { display: grid; gap: 16px; margin-top: 22px; }
.tw-btns { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tw-btns .btn.primary { min-width: 150px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: width 260ms var(--spring), background var(--t); }
.dots i.on { width: 26px; border-radius: 99px; background: var(--navy); }
[data-mode="dark"] .dots i.on { background: var(--butter); }

/* ---------- toast, mini timer, confetti ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + var(--nav-gap) * 2 + env(safe-area-inset-bottom) + 8px); transform: translate(-50%, 16px) scale(.98); opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--ivory); padding: 12px 8px 12px 18px; border-radius: 18px; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px; max-width: min(92vw, 480px); font-weight: 800;
  transition: transform 260ms var(--spring), opacity 180ms var(--ease); }
.toast:not(:has(button)) { padding-right: 18px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast-btn { border: 0; background: var(--butter); color: var(--navy); font-weight: 900; border-radius: 99px; padding: 8px 16px; min-height: 40px; flex: none; }
[data-mode="dark"] .toast { background: #F4F1E8; color: var(--navy); }
.mini-timer { position: fixed; z-index: 31; right: 16px; bottom: calc(var(--nav-h) + var(--nav-gap) * 2 + env(safe-area-inset-bottom) + 6px); display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 99px;
  background: var(--coral); color: var(--navy); font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 10px 24px -8px rgba(232,92,71,.6); min-height: 46px; }
.mini-timer[hidden] { display: none; }
@media (min-width: 900px) { .mini-timer { bottom: 24px; right: 28px; } .toast { bottom: 28px; left: calc(50% + 134px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.confetti i { position: absolute; width: 8px; height: 10px; border-radius: 2px; animation: pop 1s var(--ease) forwards; }
@keyframes pop { 0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 80px)) rotate(var(--r)) scale(1); opacity: 0; } }

@media (max-width: 420px) { .btn.xl { font-size: 1.08rem; padding: 12px 18px; } }
@media (max-width: 380px) { h1, .sky h1 { font-size: 1.85rem; } .hero-title { font-size: 1.55rem; } .grid2 { grid-template-columns: 1fr; } .chip { padding: 8px 14px; } .previews { grid-template-columns: repeat(2, 1fr); } }
