/* Cradle — calm by default, alive on interaction.
   Default state: quiet, precise, premium (Apple Weather / Linear / Notion register).
   Solid surfaces, hairline borders, one accent, tabular numbers. Blur only on the
   two things that float (top bar, quick-log capsule). All warmth comes from the
   hand-drawn doodles, which only appear when the parent does something. */

:root {
  --ground: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --hover: rgba(20, 20, 30, .045);
  --border: #e6e6ea;
  --border-strong: #d6d6dc;
  --divider: rgba(20, 20, 30, .07);
  --text: #1a1a1f;
  --text-dim: #6b6b75;
  --text-faint: #a0a0a9;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 93, 80, .10);
  --feed: #a8702b;
  --sleep: #5b6ccf;
  --diaper: #3d8a66;
  --pump: #a8628f;
  --danger: #c4554d;
  --feed-tint: rgba(168, 112, 43, .10);
  --sleep-tint: rgba(91, 108, 207, .10);
  --diaper-tint: rgba(61, 138, 102, .10);
  --pump-tint: rgba(168, 98, 143, .10);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(20, 20, 30, .04);
  --shadow-float: 0 1px 2px rgba(20, 20, 30, .06), 0 10px 30px rgba(20, 20, 30, .12);
  --glass: rgba(247, 247, 248, .82);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* legacy aliases used by older rules */
  --glass-strong: var(--surface); --glass-border: var(--border); --glass-highlight: transparent;
  --panel-shadow: var(--shadow-1); --float-shadow: var(--shadow-float);
}
[data-theme="dark"] {
  --ground: #0e0e11;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --hover: rgba(255, 255, 255, .05);
  --border: #26262c;
  --border-strong: #35353c;
  --divider: rgba(255, 255, 255, .07);
  --text: #ececef;
  --text-dim: #9a9aa3;
  --text-faint: #5e5e66;
  --accent: #8fbfa9;
  --accent-ink: #0e1a16;
  --accent-soft: rgba(143, 191, 169, .12);
  --feed: #cf9c55;
  --sleep: #97a4ef;
  --diaper: #6cb392;
  --pump: #c489b1;
  --danger: #d9776f;
  --feed-tint: rgba(207, 156, 85, .12);
  --sleep-tint: rgba(151, 164, 239, .12);
  --diaper-tint: rgba(108, 179, 146, .12);
  --pump-tint: rgba(196, 137, 177, .12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 36px rgba(0, 0, 0, .5);
  --glass: rgba(14, 14, 17, .82);
}

/* ---------- skins: same tokens, different worlds. Light doodle art in the background. ----------
   Mellow: warm cream + terracotta · Scandi: cool pale grey-blue + steel · Japandi: stone + moss. */
[data-skin="mellow"] {
  --ground: #fbf6ef; --surface: #fffdf9; --surface-2: #f5ede3; --hover: rgba(120, 80, 50, .06);
  --border: #ecdfd2; --border-strong: #dcc9b8; --divider: rgba(120, 80, 50, .09);
  --text: #2b2521; --text-dim: #7a6b62; --text-faint: #ad9d92;
  --accent: #c0785a; --accent-ink: #fff8f2; --accent-soft: rgba(192, 120, 90, .12);
  --glass: rgba(251, 246, 239, .84);
  --skin-art-opacity: .55;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%23c0785a' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 40c2-6 6-6 8 0M40 46c-3 3-7 3-10 0'/%3E%3Cpath d='M150 30l1.5 4 4 .6-3 2.8.8 4-3.3-2-3.3 2 .8-4-3-2.8 4-.6z'/%3E%3Cpath d='M60 150c4-8 14-8 18 0 6-2 10 4 6 8H56c-4-4 0-10 4-8z'/%3E%3Cpath d='M180 120c-2-4 3-7 6-4M186 116c1 3-2 6-5 5'/%3E%3Cpath d='M100 90c3-3 8-3 10 1M104 98h.1M108 98h.1'/%3E%3Cpath d='M40 200l1.2 3.2 3.4.4-2.5 2.3.7 3.3-2.8-1.7-2.8 1.7.7-3.3-2.5-2.3 3.4-.4z'/%3E%3C/svg%3E");
}
[data-skin="mellow"][data-theme="dark"] {
  --ground: #1b1613; --surface: #241e1a; --surface-2: #2d2520; --hover: rgba(255, 220, 190, .06);
  --border: #352c26; --border-strong: #46392f; --divider: rgba(255, 220, 190, .08);
  --text: #f2eae3; --text-dim: #a89a8f; --text-faint: #6a5e55;
  --accent: #e2a385; --accent-ink: #1b1613; --accent-soft: rgba(226, 163, 133, .13);
  --glass: rgba(27, 22, 19, .84);
  --skin-art-opacity: .35;
}
[data-skin="scandi"] {
  --ground: #f3f5f7; --surface: #ffffff; --surface-2: #eaeef2; --hover: rgba(40, 60, 90, .05);
  --border: #dfe5eb; --border-strong: #cdd6df; --divider: rgba(40, 60, 90, .08);
  --text: #1f2933; --text-dim: #66717d; --text-faint: #9aa5b1;
  --accent: #4f6d8a; --accent-ink: #ffffff; --accent-soft: rgba(79, 109, 138, .11);
  --glass: rgba(243, 245, 247, .84);
  --skin-art-opacity: .5;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%234f6d8a' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 60c10-14 20-18 32-20M50 50c-1 6 2 10 6 12M60 42c-2 6 1 10 5 12M70 38c-1 5 2 8 6 9'/%3E%3Cpath d='M170 150c-8 12-18 16-30 18M160 158c1-6-2-10-6-12M150 166c2-6-1-10-5-12'/%3E%3Cpath d='M120 90a5 5 0 1 0 .1 0M96 210a3 3 0 1 0 .1 0M200 60a3 3 0 1 0 .1 0'/%3E%3Cpath d='M30 180l14-4M36 172l2 12'/%3E%3C/svg%3E");
}
[data-skin="scandi"][data-theme="dark"] {
  --ground: #111417; --surface: #191d22; --surface-2: #21262c; --hover: rgba(200, 220, 240, .06);
  --border: #262c33; --border-strong: #343c45; --divider: rgba(200, 220, 240, .08);
  --text: #e9edf1; --text-dim: #98a3ae; --text-faint: #5b6570;
  --accent: #8fb0cc; --accent-ink: #0f1419; --accent-soft: rgba(143, 176, 204, .13);
  --glass: rgba(17, 20, 23, .84);
  --skin-art-opacity: .3;
}
[data-skin="japandi"] {
  --ground: #f1ede6; --surface: #faf8f4; --surface-2: #e9e3d9; --hover: rgba(70, 60, 40, .06);
  --border: #e0d8cb; --border-strong: #cfc4b3; --divider: rgba(70, 60, 40, .09);
  --text: #2a2824; --text-dim: #706a60; --text-faint: #a39b8e;
  --accent: #6b7a5a; --accent-ink: #f8f6f1; --accent-soft: rgba(107, 122, 90, .12);
  --glass: rgba(241, 237, 230, .84);
  --skin-art-opacity: .5;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%236b7a5a' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 70c-16 4-28 20-22 36 6 16 26 22 40 12 12-9 14-27 4-38'/%3E%3Cpath d='M190 40v60M184 46l6-6 6 6M190 100c-1 5 2 9 7 10'/%3E%3Cpath d='M40 200h60M52 208h36M62 216h16'/%3E%3Cpath d='M200 190c-10 0-18 8-18 18s8 18 18 18'/%3E%3C/svg%3E");
}
[data-skin="japandi"][data-theme="dark"] {
  --ground: #171613; --surface: #201e1a; --surface-2: #29261f; --hover: rgba(230, 220, 190, .06);
  --border: #322e27; --border-strong: #433d33; --divider: rgba(230, 220, 190, .08);
  --text: #ede9e1; --text-dim: #a19a8c; --text-faint: #625c51;
  --accent: #a4b08a; --accent-ink: #171613; --accent-soft: rgba(164, 176, 138, .13);
  --glass: rgba(23, 22, 19, .84);
  --skin-art-opacity: .3;
}
[data-skin="sage"] {
  --ground: #f2f5f1; --surface: #fbfcfa; --surface-2: #e8eee8; --hover: rgba(40, 80, 55, .06);
  --border: #dde5dd; --border-strong: #c9d5ca; --divider: rgba(40, 80, 55, .09);
  --text: #212823; --text-dim: #66736a; --text-faint: #98a59c;
  --accent: #5f8a6e; --accent-ink: #f6faf6; --accent-soft: rgba(95, 138, 110, .12);
  --glass: rgba(242, 245, 241, .84);
  --skin-art-opacity: .55;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%235f8a6e' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 60c2-14 12-22 26-22-1 14-10 22-26 22zM42 58c6-6 12-10 18-14'/%3E%3Cpath d='M170 140c-2 14-12 22-26 22 1-14 10-22 26-22zM168 142c-6 6-12 10-18 14'/%3E%3Cpath d='M120 40l1 3 3 .4-2.2 2 .6 3-2.4-1.4-2.4 1.4.6-3-2.2-2 3-.4z'/%3E%3Cpath d='M60 190c8-4 16-4 24 0'/%3E%3Cpath d='M200 70a3 3 0 1 0 .1 0M90 120a2.5 2.5 0 1 0 .1 0'/%3E%3C/svg%3E");
}
[data-skin="sage"][data-theme="dark"] {
  --ground: #111512; --surface: #181d19; --surface-2: #202621; --hover: rgba(200, 240, 210, .06);
  --border: #262d27; --border-strong: #343e36; --divider: rgba(200, 240, 210, .08);
  --text: #e8efe9; --text-dim: #98a79c; --text-faint: #5b685e;
  --accent: #93bfa0; --accent-ink: #101410; --accent-soft: rgba(147, 191, 160, .13);
  --glass: rgba(17, 21, 18, .84);
  --skin-art-opacity: .4;
}
[data-skin="dusk"] {
  --ground: #f4f2f8; --surface: #fcfbfe; --surface-2: #ebe8f2; --hover: rgba(70, 60, 110, .06);
  --border: #e2ddec; --border-strong: #cfc8de; --divider: rgba(70, 60, 110, .09);
  --text: #25222f; --text-dim: #6b6679; --text-faint: #9d98ab;
  --accent: #6f66a3; --accent-ink: #f8f6fd; --accent-soft: rgba(111, 102, 163, .12);
  --glass: rgba(244, 242, 248, .84);
  --skin-art-opacity: .55;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%236f66a3' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 50c-8 2-13 9-11 17s10 12 18 9c-7-2-11-8-10-14 0-5 1-9 3-12z'/%3E%3Cpath d='M180 150c-8 2-13 9-11 17s10 12 18 9c-7-2-11-8-10-14 0-5 1-9 3-12z'/%3E%3Cpath d='M150 40l1.2 3.2 3.4.4-2.5 2.3.7 3.3-2.8-1.7-2.8 1.7.7-3.3-2.5-2.3 3.4-.4z'/%3E%3Cpath d='M70 180h.1M200 90h.1M110 120h.1M40 140h.1' stroke-width='2.4'/%3E%3Cpath d='M90 70c6 6 6 10 0 16'/%3E%3C/svg%3E");
}
[data-skin="dusk"][data-theme="dark"] {
  --ground: #131218; --surface: #1b1922; --surface-2: #24212c; --hover: rgba(220, 210, 255, .06);
  --border: #2a2733; --border-strong: #3a3646; --divider: rgba(220, 210, 255, .08);
  --text: #ebe8f3; --text-dim: #a09bb0; --text-faint: #625d70;
  --accent: #b1a7e0; --accent-ink: #131218; --accent-soft: rgba(177, 167, 224, .13);
  --glass: rgba(19, 18, 24, .84);
  --skin-art-opacity: .4;
}
[data-skin="sea"] {
  --ground: #eff5f5; --surface: #fafdfd; --surface-2: #e3eded; --hover: rgba(30, 90, 100, .06);
  --border: #d9e6e6; --border-strong: #c3d6d6; --divider: rgba(30, 90, 100, .09);
  --text: #1f2a2c; --text-dim: #627375; --text-faint: #94a6a7;
  --accent: #3f7f86; --accent-ink: #f3fafa; --accent-soft: rgba(63, 127, 134, .12);
  --glass: rgba(239, 245, 245, .84);
  --skin-art-opacity: .55;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%233f7f86' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 60c8-8 16-8 24 0s16 8 24 0'/%3E%3Cpath d='M140 170c8-8 16-8 24 0s16 8 24 0'/%3E%3Cpath d='M170 50c-6 2-9 8-6 13 3 4 9 4 12 0'/%3E%3Cpath d='M60 160c2-8 10-12 18-8-2 8-10 12-18 8z'/%3E%3Cpath d='M110 110a3 3 0 1 0 .1 0M200 120a2 2 0 1 0 .1 0M90 210a2.5 2.5 0 1 0 .1 0'/%3E%3C/svg%3E");
}
[data-skin="sea"][data-theme="dark"] {
  --ground: #0f1516; --surface: #161e1f; --surface-2: #1e2729; --hover: rgba(200, 240, 245, .06);
  --border: #24302f; --border-strong: #33403f; --divider: rgba(200, 240, 245, .08);
  --text: #e6efef; --text-dim: #97a9aa; --text-faint: #5a6a6b;
  --accent: #86c2c8; --accent-ink: #0f1516; --accent-soft: rgba(134, 194, 200, .13);
  --glass: rgba(15, 21, 22, .84);
  --skin-art-opacity: .4;
}
/* The default skin gets art too: a very faint scatter of the cradle doodles. */
[data-skin="default"], :root:not([data-skin]) {
  --skin-art-opacity: .35;
  --skin-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%232f5d50' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 50c-6 2-10 8-8 14s8 9 14 7c-5-2-8-6-7-11 0-4 0-7 1-10z'/%3E%3Cpath d='M190 170l1.2 3.2 3.4.4-2.5 2.3.7 3.3-2.8-1.7-2.8 1.7.7-3.3-2.5-2.3 3.4-.4z'/%3E%3Cpath d='M200 60c-2 6-2 10 0 16M196 70h8'/%3E%3Cpath d='M60 190c8-5 16-5 24 0'/%3E%3Cpath d='M130 110h.1M90 150h.1M170 220h.1' stroke-width='2.2'/%3E%3C/svg%3E");
}
[data-skin="default"][data-theme="dark"], :root:not([data-skin])[data-theme="dark"] { --skin-art-opacity: .3; }
/* Painted on the root so it sits under everything on every browser (iOS Safari drops a
   fixed pseudo-element behind a body background). */
html { background-color: var(--ground); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--skin-art, none); background-size: 240px 240px;
  opacity: calc(var(--skin-art-opacity, 0) * .32);
}
body > * { position: relative; z-index: 1; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button, input[type="range"] { min-height: 44px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
input, select, textarea {
  /* 16px minimum: below that, iOS Safari zooms the page on focus */
  font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-width: 0;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
::placeholder { color: var(--text-faint); }
a { color: var(--accent); }

#app { max-width: 620px; margin: 0 auto; padding: 0 18px calc(100px + env(safe-area-inset-bottom)); }

/* ---------- surfaces (one recipe, no blur) ---------- */
.glass, .status-grid, .timeline, .insights, .chart-card, .rhythm, .sheet, .toast, .sched, .entry, .composer, .prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

/* ---------- doodles ---------- */
svg.dd { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; display: inline-block; vertical-align: -.15em; overflow: visible; }
.doodle-icon { font-size: 18px; flex: none; }
.doodle-lg { font-size: 44px; }
.doodle-xl { font-size: 72px; }
.dd-burst {
  position: fixed; z-index: 60; pointer-events: none; color: var(--accent);
  transform: translate(-50%, -50%); width: 0; height: 0; display: grid; place-items: center;
}
.dd-burst-icon { font-size: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12)); }
.dd-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  border: 1.6px solid currentColor; opacity: 0;
  animation: dd-spark .75s cubic-bezier(.2, .7, .3, 1) both;
}
/* behaviours */
@keyframes dd-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(.5) rotate(-10deg); }
  30%  { opacity: 1; transform: translateY(-8px) scale(1.12) rotate(4deg); }
  60%  { transform: translateY(-14px) scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translateY(-26px) scale(.9) rotate(0); }
}
@keyframes dd-wiggle {
  0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 55% { transform: rotate(7deg); } 80% { transform: rotate(-3deg); }
}
@keyframes dd-scribble { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dd-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes dd-peek {
  0%   { opacity: 0; transform: translateY(18px) rotate(-12deg); }
  25%  { opacity: 1; transform: translateY(-4px) rotate(3deg); }
  75%  { opacity: 1; transform: translateY(-4px) rotate(-2deg); }
  100% { opacity: 0; transform: translateY(18px) rotate(6deg); }
}
@keyframes dd-walk {
  0%   { opacity: 0; transform: translateX(-44px) rotate(-6deg); }
  15%  { opacity: 1; }
  25%  { transform: translateX(-24px) translateY(-3px) rotate(5deg); }
  50%  { transform: translateX(0) translateY(0) rotate(-5deg); }
  75%  { transform: translateX(24px) translateY(-3px) rotate(5deg); }
  100% { opacity: 0; transform: translateX(44px) rotate(-6deg); }
}
@keyframes dd-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@keyframes dd-fade { to { opacity: 0; } }
.dd-burst.dd-pop .dd-burst-icon { animation: dd-pop .8s cubic-bezier(.2, .8, .3, 1) both; }
.dd-burst.dd-wiggle .dd-burst-icon { animation: dd-wiggle .7s ease both; }
.dd-burst.dd-scatter .dd-burst-icon { animation: dd-pop .9s cubic-bezier(.2, .8, .3, 1) both; }
.dd-burst.dd-peek .dd-burst-icon { animation: dd-peek 1.6s cubic-bezier(.2, .8, .3, 1) both; }
.dd-burst.dd-walk .dd-burst-icon { animation: dd-walk 1.3s ease-in-out both; }
.dd-burst.dd-scribble .dd-burst-icon path { stroke-dasharray: 1; animation: dd-scribble .7s ease-out both; }
.dd-burst.dd-scribble .dd-burst-icon { animation: dd-fade .3s ease .8s both; }
svg.dd.dd-wiggle { animation: dd-wiggle .6s ease both; transform-origin: 50% 60%; }
svg.dd.dd-float { animation: dd-float 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
svg.dd.dd-scribble path { stroke-dasharray: 1; animation: dd-scribble .9s ease-out both; }
svg.dd.dd-pop { animation: dd-pop .8s cubic-bezier(.2, .8, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .dd-burst { display: none; }
  svg.dd, svg.dd path { animation: none !important; }
  * { transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  transition: background .12s, border-color .12s, transform .08s; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; padding: 11px 16px; }
.google-btn { margin-top: 8px; }
.error { color: var(--danger); font-size: 13.5px; min-height: 1em; }
.error-state { display: grid; gap: 12px; justify-items: center; }

/* ---------- auth / onboarding ---------- */
.auth-wrap, .onboard { min-height: 100vh; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; gap: 12px; }
.logo { display: flex; justify-content: center; color: var(--accent); font-size: 44px; }
.auth-wrap h1, .onboard h1 { text-align: center; font-size: 24px; letter-spacing: -.4px; font-weight: 600; margin-top: -2px; }
.tagline, .onboard p { text-align: center; color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; }
.auth-card { display: grid; gap: 10px; }
.auth-switch { text-align: center; color: var(--text-dim); margin-top: 10px; font-size: 14px; }
.auth-switch button { color: var(--accent); font-weight: 500; }
.or { text-align: center; color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 5;
  margin: 0 -18px 14px; padding: 10px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.baby-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.2px; border-radius: var(--radius-sm); padding: 4px 10px 4px 4px; margin-left: -4px; }
.baby-switch:hover { background: var(--hover); }
.baby-switch .age { font-size: 12px; font-weight: 400; color: var(--text-dim); display: block; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-dim); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:hover svg.dd { animation: dd-wiggle .5s ease both; }

/* ---------- tab bar ---------- */
.tabbar { display: flex; gap: 2px; padding: 3px; margin: 0 0 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.tabbar .tab {
  flex: 1; min-height: 34px; padding: 6px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); transition: background .15s, color .15s, box-shadow .15s;
}
.tabbar .tab:hover { color: var(--text); }
.tabbar .tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }

/* ---------- status panel ---------- */
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; margin: 0 0 10px; }
.status-card { padding: 13px 16px; text-align: left; transition: background .15s; position: relative; min-height: 0; }
.status-card:hover { background: var(--hover); }
.status-card:hover .doodle-icon { animation: dd-wiggle .5s ease both; }
.status-card:nth-child(2n)::before, .status-card:nth-child(n+3)::after { content: ""; position: absolute; background: var(--divider); }
.status-card:nth-child(2n)::before { left: 0; top: 12px; bottom: 12px; width: 1px; }
.status-card:nth-child(n+3)::after { top: 0; left: 14px; right: 14px; height: 1px; }
.status-card .kind { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.k-feed .kind .dd { color: var(--feed); } .k-sleep .kind .dd { color: var(--sleep); } .k-diaper .kind .dd { color: var(--diaper); } .k-pump .kind .dd { color: var(--pump); }
.status-card .ago { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.5px; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-card .sub { display: block; font-size: 12px; color: var(--text-faint); margin-top: 1px; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-card.asleep { background: var(--sleep-tint); }
.status-card.asleep .kind .dd { animation: dd-float 3.2s ease-in-out infinite; }
.pulse { display: none; }
.stage-note { color: var(--text-dim); font-size: 13px; margin: -2px 4px 12px; }
.stage-toddler .k-feed, .stage-toddler .k-pump { opacity: .85; }

/* ---------- rhythm strip ---------- */
.rhythm { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-dim); padding: 9px 14px; margin-bottom: 10px; }
.rhythm .r-item { display: flex; align-items: center; gap: 7px; }
.rhythm .r-icon { display: inline-flex; font-size: 15px; color: var(--text-dim); }
.rhythm strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rhythm .r-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- smart bar ---------- */
.smartbar { position: relative; margin-bottom: 20px; }
.smartbar input { padding-right: 84px; background: var(--surface); }
.smartbar .sb-actions { position: absolute; right: 5px; top: 5px; display: flex; gap: 2px; }
.smartbar .sb-btn { width: 34px; height: 34px; min-height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--text-dim); }
.smartbar .sb-btn:hover { background: var(--hover); color: var(--text); }
.smartbar .sb-btn.listening { background: var(--accent-soft); color: var(--accent); }
.smartbar .sb-btn.listening svg.dd { animation: dd-float 1.2s ease-in-out infinite; }
.parse-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.parse-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); }
.parse-chip strong { color: var(--text); font-weight: 500; }

/* ---------- sections ---------- */
.section-title { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 26px 2px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title .today-stats { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-dim); font-size: 12.5px; }

/* ---------- insights ---------- */
.insights { display: grid; overflow: hidden; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.45; }
.insight + .insight { border-top: 1px solid var(--divider); }
.insight .i-icon { display: inline-flex; font-size: 17px; flex: none; margin-top: 1px; color: var(--text-dim); }
.insight strong { color: var(--text); font-weight: 600; }

/* ---------- timeline ---------- */
.timeline { overflow: hidden; }
.timeline > .btn-ghost { width: 100%; border-radius: 0; padding: 10px; font-size: 13px; border-top: 1px solid var(--divider); }
.event-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 9px 14px; transition: background .12s; }
.event-row:hover { background: var(--hover); }
.event-row:hover .event-dot .dd { animation: dd-wiggle .5s ease both; }
.event-row + .event-row, .event-row + .day-divider, .day-divider + .event-row { border-top: 1px solid var(--divider); }
.event-dot { width: 30px; height: 30px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--surface-2); color: var(--text-dim); }
.event-dot.d-feed { background: var(--feed-tint); color: var(--feed); }
.event-dot.d-sleep { background: var(--sleep-tint); color: var(--sleep); }
.event-dot.d-diaper { background: var(--diaper-tint); color: var(--diaper); }
.event-dot.d-pump { background: var(--pump-tint); color: var(--pump); }
.event-main { flex: 1; min-width: 0; }
.event-title { font-weight: 500; font-size: 14px; }
.event-sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.empty { color: var(--text-faint); text-align: center; padding: 26px 16px; font-size: 14px; display: grid; gap: 10px; justify-items: center; }
.empty .doodle-lg { color: var(--text-faint); }
.day-divider { font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 8px 14px 6px; text-transform: uppercase; letter-spacing: .08em; background: var(--surface-2); }

/* ---------- chart ---------- */
.chart-card { padding: 16px; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 96px; }
.chart .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.chart .bar { width: 52%; border-radius: 3px; min-height: 2px; }
.chart .bar.b-feed { background: var(--feed); opacity: .7; }
.chart .bar.b-sleep { background: var(--sleep); opacity: .7; }
.chart .lbl { font-size: 10.5px; color: var(--text-faint); }
.chart .val { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; opacity: .7; }

/* ---------- floating quick-log capsule (the one thing that floats) ---------- */
.quickbar {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100% - 28px)); z-index: 10; border-radius: 999px; padding: 5px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border); box-shadow: var(--shadow-float);
}
.quickbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 999px; padding: 6px 4px 5px; font-size: 11px; font-weight: 500; color: var(--text-dim); transition: background .15s, color .15s, transform .08s; }
.quick-btn:hover { background: var(--hover); color: var(--text); }
.quick-btn:active { transform: scale(.94); }
.quick-btn .quick-marker { display: inline-flex; font-size: 20px; }
.quick-btn.q-feed .quick-marker { color: var(--feed); } .quick-btn.q-sleep .quick-marker { color: var(--sleep); }
.quick-btn.q-diaper .quick-marker { color: var(--diaper); } .quick-btn.q-pump .quick-marker { color: var(--pump); }
.quick-btn.active-sleep { background: var(--sleep-tint); color: var(--sleep); }
.quick-btn.active-sleep .quick-marker .dd { animation: dd-float 3.2s ease-in-out infinite; }

/* ---------- Book ---------- */
.prompt-card { padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; }
.prompt-card .p-icon { color: var(--accent); font-size: 20px; margin-top: 2px; }
.prompt-card .p-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 3px; }
.prompt-card p { font-size: 14.5px; color: var(--text); }
.composer { padding: 14px 16px; margin-bottom: 8px; display: grid; gap: 10px; }
.kind-row { display: flex; gap: 6px; }
.kind-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--text-dim); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.kind-chip .dd { font-size: 15px; }
.kind-chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.composer textarea { resize: vertical; min-height: 68px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb { position: relative; display: inline-block; }
.photo-thumb img, .e-photo { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.entry .e-photo { width: 96px; height: 96px; }
.photo-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; min-height: 0; border-radius: 50%; background: var(--text); color: var(--ground); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.entries { display: grid; gap: 8px; }
.entry { padding: 13px 16px; }
.entry header { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-faint); margin-bottom: 6px; }
.entry .e-kind { display: inline-flex; font-size: 15px; color: var(--text-dim); }
.entry .e-date { font-weight: 600; color: var(--text-dim); }
.entry .e-delete, .sched-item .e-delete { margin-left: auto; width: 26px; height: 26px; min-height: 0; border-radius: 6px; font-size: 11px; color: var(--text-faint); display: flex; align-items: center; justify-content: center; }
.entry .e-delete:hover, .sched-item .e-delete:hover { background: var(--hover); color: var(--danger); }
.entry p { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; white-space: pre-wrap; }
.milestone-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--feed-tint); color: var(--feed); margin-bottom: 8px; }

/* ---------- Ask ---------- */
.lang-row { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 8px; }
.lang-btn { font-size: 12.5px; padding: 4px 10px; min-height: 30px; }
.sched { overflow: hidden; }
.sched-item { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.sched-item + .sched-item, .sched-item + .appt-form, .sched .btn-ghost { border-top: 1px solid var(--divider); }
.sched-item.past { opacity: .45; }
.s-icon { width: 32px; height: 32px; border-radius: 8px; flex: none; font-size: 17px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-dim); }
.s-main { flex: 1; min-width: 0; }
.s-title { font-weight: 600; font-size: 14px; }
.s-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; margin-top: 2px; }
.s-date { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-note { font-size: 12px; color: var(--text-faint); margin: 8px 4px 0; }
.sched .btn-ghost { width: 100%; border-radius: 0; }
.appt-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto; gap: 8px; padding: 12px 14px; }
.ics-url { display: block; font-size: 11px; color: var(--text-dim); word-break: break-all; background: var(--surface-2); border-radius: 6px; padding: 6px 10px; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, monospace; }
@media (max-width: 520px) { .appt-form { grid-template-columns: 1fr; } }

/* ---------- quiet pages: rhythm record, lullabies, expecting ---------- */
.streak-page, .music-page, .expecting-page { padding-bottom: 24px; }
.streak-hero, .music-card, .expecting-card { padding: 28px 22px; text-align: center; }
.streak-hero .doodle-xl, .music-card .doodle-xl, .expecting-card .doodle-xl { color: var(--accent); display: block; margin: 0 auto 12px; }
.streak-hero strong { display: block; font-size: 44px; letter-spacing: -.06em; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.streak-hero p, .music-card p, .expecting-card p:not(.eyebrow) { color: var(--text-dim); font-size: 14px; max-width: 380px; margin: 0 auto; }
.streak-note { color: var(--text-faint); font-size: 12.5px; margin: 14px 4px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.music-card h2, .expecting-card h1 { margin: 6px 0 10px; font-size: 22px; letter-spacing: -.3px; font-weight: 600; }
.track-list { display: grid; gap: 14px; margin-top: 20px; text-align: left; }
.track-list label { color: var(--text); font-size: 14px; font-weight: 500; display: grid; gap: 6px; }
.music-player { width: 100%; accent-color: var(--accent); }
.music-attribution { display: block; color: var(--text-faint); font-size: 11px; margin-top: 16px; line-height: 1.5; }
.expecting-card h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.1; letter-spacing: -.5px; }
.expecting-card small { display: block; margin-top: 18px; color: var(--text-dim); font-size: 13px; }

/* ---------- sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 14, .38); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .14s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; border-radius: 16px 16px 0 0; border-bottom: 0; width: 100%; max-width: 520px;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  animation: rise .2s cubic-bezier(.2, .8, .3, 1); max-height: 85vh; overflow-y: auto; touch-action: pan-y;
  box-shadow: var(--shadow-float);
}
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay, .sheet { animation: none; } }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 6px auto 14px; }
.sheet-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; min-height: 0; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.sheet-close:hover { background: var(--hover); color: var(--text); }
.sheet h2 { font-size: 16.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sheet h2 .dd { color: var(--accent); font-size: 19px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice {
  padding: 12px 6px; border-radius: var(--radius-sm); text-align: center;
  background: var(--surface-2); border: 1px solid transparent; font-weight: 500; font-size: 13.5px;
  display: flex; flex-direction: column; gap: 4px; align-items: center; transition: background .15s, border-color .15s;
}
.choice .dd { font-size: 22px; color: var(--text-dim); }
.choice:hover { background: var(--hover); }
.choice:hover .dd { animation: dd-wiggle .5s ease both; }
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice.suggested { border-color: var(--border-strong); }
.choice.suggested::after { content: "suggested"; font-size: 9.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-bottom: 5px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.sheet .btn-block { margin-top: 4px; }
.slider-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.slider-row input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; min-height: 0; border-radius: 3px; background: var(--border-strong); border: none; padding: 0; flex: 1; box-shadow: none; }
.slider-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slider-val { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 76px; text-align: right; }
.invite-code { font-size: 30px; font-weight: 700; letter-spacing: .16em; text-align: center; padding: 16px; background: var(--surface-2); border-radius: var(--radius); border: 1px dashed var(--border-strong); margin: 10px 0; user-select: all; font-variant-numeric: tabular-nums; }
.menu-list { display: grid; gap: 1px; }
.menu-list .btn { justify-content: flex-start; gap: 10px; background: transparent; border-color: transparent; padding: 9px 10px; font-weight: 400; font-size: 14.5px; }
.menu-list .btn .dd { color: var(--text-dim); font-size: 17px; }
.menu-list .btn:hover { background: var(--hover); }
.menu-list .btn:hover .dd { color: var(--accent); }
.menu-sep { height: 1px; background: var(--divider); margin: 6px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  z-index: 30; animation: fade .14s ease; white-space: nowrap; display: flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--ground); border-color: transparent; box-shadow: var(--shadow-float);
}
.toast .dd { color: var(--accent); font-size: 16px; }
[data-theme="dark"] .toast .dd { color: #0e1a16; }
.toast .undo { color: var(--accent); margin-left: 4px; font-weight: 600; min-height: 0; }
[data-theme="dark"] .toast .undo { color: #2f5d50; }

/* ---------- expecting mode ---------- */
.week-card { padding: 18px 18px 16px; margin-bottom: 4px; }
.week-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.week-card h1 { font-size: clamp(22px, 5.5vw, 28px); line-height: 1.15; letter-spacing: -.5px; font-weight: 600; margin: 4px 0 8px; max-width: 22ch; }
.week-doodle { color: var(--accent); flex: none; }
.week-dev { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.week-stats { display: flex; gap: 18px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.week-stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.week-bar { height: 4px; border-radius: 2px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.week-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.activity {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 500; color: var(--text-dim); transition: background .15s, border-color .15s;
}
.activity .dd { font-size: 22px; color: var(--accent); }
.activity:hover { background: var(--surface-2); }
.activity:hover .dd { animation: dd-wiggle .5s ease both; }
.activity.done { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.activity .tick { position: absolute; top: 6px; right: 8px; font-size: 12px; color: var(--accent); }
.activity-tip { color: var(--text-faint); font-size: 12.5px; margin: 8px 4px 0; line-height: 1.45; }
.read-link { text-decoration: none; color: inherit; }
.read-link:hover { background: var(--hover); }
@media (max-width: 420px) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ask ---------- */
.ask { padding: 12px 14px 10px; margin-bottom: 10px; display: grid; gap: 10px; }
.ask-input { position: relative; }
.ask-input input { padding-right: 48px; }
.ask-input .sb-btn { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; min-height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--text-dim); }
.ask-input .sb-btn:hover { background: var(--hover); color: var(--text); }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-sugg .parse-chip { cursor: pointer; min-height: 30px; }
.ask-sugg .parse-chip:hover { background: var(--surface-2); color: var(--text); }
.ask-note { font-size: 12px; color: var(--text-faint); line-height: 1.45; }
.ask-card { padding: 14px 16px; margin-bottom: 10px; }
.ask-card .ask-q { font-size: 12.5px; color: var(--text-faint); margin-bottom: 8px; }
.ask-card h3 { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ask-card h3 .dd { color: var(--accent); font-size: 18px; }
.ask-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; }
.ask-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--text-faint); }
.ask-meta a { color: var(--accent); text-decoration: none; }
.ask-card.locked { border-style: dashed; }
.ask-card.danger { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.ask-card.danger h3 .dd { color: var(--danger); }
.ask-steps { padding-left: 20px; font-size: 14px; margin-bottom: 12px; }
.ask-steps li { margin-bottom: 4px; }
.ask-card.danger .btn-primary { background: var(--danger); }

/* ---------- Library & development ---------- */
.article-list { display: grid; gap: 8px; }
.article-card { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; }
.article-card > .dd { font-size: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.article-card.locked > .dd { color: var(--text-faint); }
.article-card span { display: grid; gap: 2px; min-width: 0; }
.article-card strong { font-size: 14.5px; }
.article-card small { font-size: 12.5px; color: var(--text-dim); }
.article-card em { font-style: normal; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.article-card:hover { background: var(--surface-2); }
.article { padding: 22px 20px 18px; }
.article h1 { font-size: 24px; letter-spacing: -.4px; line-height: 1.2; margin: 6px 0 8px; font-weight: 600; }
.article-summary { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; }
.article p { font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; max-width: 62ch; }
.article-sources { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--divider); padding-top: 12px; margin-top: 6px; }
.article-sources a { color: var(--accent); text-decoration: none; }
.article-lock { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 0 6px; color: var(--text-dim); }
.article-lock .doodle-lg { color: var(--text-faint); }
.dd.flip { transform: scaleX(-1); }
.dev-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 10px; }
.dev-card > .dd:first-child { font-size: 22px; color: var(--accent); flex: none; }
.dev-card > .dd:last-child { color: var(--text-faint); }
.dev-card span { flex: 1; display: grid; min-width: 0; }
.dev-card em { font-style: normal; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.dev-card strong { font-size: 15px; }
.dev-card small { font-size: 12.5px; color: var(--text-dim); }
.dev-card:hover { background: var(--surface-2); }
.dev-hero { padding: 22px 20px; text-align: center; }
.dev-hero .doodle-xl { color: var(--accent); display: block; margin: 0 auto 10px; }
.dev-hero h2 { font-size: 22px; letter-spacing: -.3px; margin: 4px 0 8px; font-weight: 600; }
.dev-hero p { font-size: 14.5px; color: var(--text-dim); max-width: 46ch; margin: 0 auto 8px; line-height: 1.55; }
.dev-hero .dev-doing { color: var(--text); }
.dev-caveat { font-size: 12.5px; color: var(--text-faint); margin: 10px 4px 0; line-height: 1.45; }
.dev-path { overflow: hidden; }
.dev-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; }
.dev-step + .dev-step { border-top: 1px solid var(--divider); }
.dev-step.past { opacity: .5; }
.dev-step.now { background: var(--accent-soft); }
.dev-step .dev-wk { font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 44px; padding-top: 2px; }
.dev-step div { flex: 1; min-width: 0; }
.dev-step strong { font-size: 14px; display: block; }
.dev-step small { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.dev-step > .dd { color: var(--accent); font-size: 16px; margin-top: 2px; }
.dev-step.past > .dd { color: var(--text-faint); }

/* ---------- nudges ---------- */
.nudge { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 10px; border-color: var(--accent-soft); background: var(--accent-soft); }
.nudge > .dd { font-size: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.nudge-body { flex: 1; min-width: 0; }
.nudge-body p { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.nudge-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nudge-actions .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.link-btn.faint { color: var(--text-faint); font-size: 12.5px; text-decoration: none; margin-left: auto; }

/* ---------- birth moment, breathe ---------- */
.born-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 10px; border-color: var(--accent); }
.born-card > .dd:first-child { font-size: 26px; color: var(--accent); flex: none; }
.born-card > .dd:last-child { color: var(--text-faint); }
.born-card span { flex: 1; display: grid; }
.born-card strong { font-size: 15px; }
.born-card small { color: var(--text-dim); font-size: 12.5px; }
.born-card:hover { background: var(--accent-soft); }
.breathe-stage { display: grid; justify-items: center; gap: 6px; padding: 18px 0 22px; }
.breathe-ring {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 44px; margin-bottom: 8px;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 8%, transparent);
  transition: transform var(--dur, 4s) ease-in-out;
}
.breathe-ring.breathe-in { transform: scale(1.22); }
.breathe-ring.breathe-out { transform: scale(.86); }
.breathe-ring.hold { transform: scale(1.22); }
.breathe-word { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.breathe-count { font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1; }
.breathe-round { color: var(--text-faint); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .breathe-ring { transition: none; } }

/* ---------- appearance / skins ---------- */
.skin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.skin-card { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); text-align: left; }
.skin-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.skin-card.locked { opacity: .75; }
.skin-swatch { height: 46px; border-radius: 8px; border: 1px solid rgba(0,0,0,.06); display: flex; align-items: flex-end; padding: 6px; gap: 4px; }
.skin-swatch i { display: block; width: 14px; height: 14px; border-radius: 50%; }
.skin-card strong { font-size: 13.5px; }
.skin-card small { font-size: 11.5px; color: var(--text-dim); }
.skin-card .skin-lock { position: absolute; top: 8px; right: 8px; font-size: 11px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 4px; }
.skin-card .skin-lock .dd { font-size: 13px; }

/* ---------- Plus, email updates, editions ---------- */
.lock-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; margin-bottom: 10px; color: var(--text-dim); }
.lock-card > .dd { font-size: 18px; color: var(--text-faint); flex: none; }
.lock-card span { flex: 1; display: grid; }
.lock-card strong { color: var(--text); font-size: 14px; font-weight: 600; }
.lock-card small { font-size: 12.5px; }
.lock-card em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 8px; }
.lock-card:hover { background: var(--surface-2); }
.plus-list { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; }
.plus-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.plus-list li .dd { color: var(--accent); font-size: 17px; flex: none; margin-top: 2px; }
.plus-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.plus-price strong { font-size: 28px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.plus-price span { color: var(--text-dim); font-size: 13px; }
.menu-hint { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.link-btn { color: var(--accent); font-size: inherit; min-height: 0; text-decoration: underline; text-underline-offset: 2px; }
.freq-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.freq { min-height: 36px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.freq.selected { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 2px; font-size: 14px; }
.toggle-row > span:first-child { display: flex; gap: 8px; align-items: flex-start; }
.toggle-row > span:first-child .dd { color: var(--accent); font-size: 17px; flex: none; margin-top: 1px; }
.toggle-row small { display: block; color: var(--text-dim); font-size: 12px; }
.toggle { width: 42px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; flex: none; transition: background .15s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle.on { background: var(--accent); }
.toggle.on i { transform: translateX(16px); }
.outbox { display: grid; gap: 2px; }
.outbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 2px; }
.outbox-row .dd { color: var(--text-dim); font-size: 15px; flex: none; }
.outbox-row .o-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outbox-row small { color: var(--text-faint); white-space: nowrap; }
.editions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 2px 10px; font-size: 12px; }
.ed-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }
.edition { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-faint); background: var(--surface); }
.edition .dd { font-size: 13px; }
.edition.ready { color: var(--text); border-color: var(--accent); }
.edition.ready .dd { color: var(--accent); }

/* ---------- one-year graduation, catalog, print sheet ---------- */
.graduation { display: flex; gap: 16px; padding: 18px; margin-bottom: 12px; align-items: flex-start; }
.graduation .doodle-lg { color: var(--accent); flex: none; margin-top: 4px; }
.graduation h3 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; margin: 2px 0 6px; }
.graduation p:not(.eyebrow) { color: var(--text-dim); font-size: 13.5px; margin-bottom: 12px; }
.graduation .row .btn { flex: 1; }
.catalog { padding: 14px 16px; margin-bottom: 10px; display: grid; gap: 12px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-head strong { font-size: 14px; font-weight: 600; }
.catalog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.catalog-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.catalog-firsts { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-firsts .milestone-chip { margin: 0; }
.sheet-copy { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.sheet-note { color: var(--text-faint); font-size: 12.5px; margin-top: 10px; text-align: center; }
.choice.format { align-items: flex-start; text-align: left; padding: 12px 14px; gap: 2px; }
.choice.format strong { font-size: 14px; }
.choice.format .price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.choice.format small { color: var(--text-dim); font-size: 12px; font-weight: 400; }
@media (max-width: 520px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } .graduation { flex-direction: column; } }

/* ---------- streak summary (header), collection, playlist, tune moment ---------- */
.streak-summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 3px 10px 3px 8px; border-radius: var(--radius-sm); color: var(--accent);
}
.streak-summary:hover { background: var(--hover); }
.streak-summary:hover svg.dd { animation: dd-wiggle .5s ease both; }
.streak-summary .dd { font-size: 18px; }
.streak-summary span:last-child { display: grid; text-align: left; line-height: 1.05; }
.streak-summary strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.streak-summary small { color: var(--text-dim); font-size: 10px; }
.streak-stats { display: flex; gap: 18px; justify-content: center; margin-top: 12px !important; font-size: 13px; color: var(--text-dim); }
.streak-stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.collection { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.collection-item { display: grid; justify-items: center; gap: 4px; padding: 16px 8px; opacity: .5; text-align: center; }
.collection-item.collected { opacity: 1; }
.collection-item strong { font-size: 13px; }
.collection-item small { color: var(--text-faint); font-size: 12px; }
.collection-doodle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 26px; }
.playlist-progress { margin: 16px 0 6px; color: var(--text-dim); font-size: 13px; }
.playlist-progress strong { color: var(--accent); font-size: 18px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.track-list label .dd { color: var(--accent); font-size: 16px; margin-right: 4px; }
.track-artist { color: var(--text-faint); font-size: 12px; font-weight: 400; margin-left: 6px; }
.track-locked { color: var(--text-faint); font-size: 12px; font-weight: 400; }
.locked-tracks { display: grid; gap: 2px; text-align: left; margin-top: 14px; }
.locked-tracks > div { display: flex; align-items: center; gap: 8px; min-height: 30px; color: var(--text-faint); font-size: 13px; }
.locked-tracks > div .dd { font-size: 14px; }
.locked-tracks > div.unlocked { color: var(--text); }
.locked-tracks > div.unlocked .dd { color: var(--accent); }
.locked-tracks small { margin-left: auto; font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.celebration { position: fixed; inset: 0; z-index: 55; pointer-events: none; display: grid; place-items: center; background: color-mix(in srgb, var(--ground) 55%, transparent); animation: celebration-in 1.8s ease both; }
.celebration-card { display: grid; justify-items: center; gap: 4px; padding: 22px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-float); text-align: center; max-width: 300px; }
.celebration-card .dd-hero { font-size: 44px; color: var(--accent); }
.celebration-card strong { font-size: 17px; font-weight: 600; }
.celebration-card small { color: var(--text-dim); font-size: 12.5px; line-height: 1.4; }
@keyframes celebration-in { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .celebration { animation: none; } }

@media (min-width: 700px) {
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .status-card:nth-child(2n)::before { display: none; }
  .status-card:nth-child(n+2)::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--divider); display: block; }
  .status-card:nth-child(n+3)::after { display: none; }
}

/* ---- predictions under status cards ---- */
.status-card .next { display: block; font-size: 11.5px; color: var(--accent); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.status-card .next strong { font-weight: 600; }
.status-card .next.dim { color: var(--text-faint); }

/* ---- pregnancy: symptom tiles ---- */
.activity.track { border-style: dashed; }
.activity.track.done { border-style: solid; }
.activity .count { position: absolute; top: 5px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.activity-tip b { color: var(--text); font-weight: 600; }

/* ---- Stats ---- */
.stats-head { display: grid; gap: 8px; margin-bottom: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; min-height: 30px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 12.5px; font-weight: 500; transition: background .15s, color .15s; }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-tile { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2px; position: relative; overflow: hidden; }
.stat-tile::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--tile, var(--accent)); opacity: .8; }
.stat-tile small { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.stat-tile strong { font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-tile strong em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.stat-tile .delta { font-size: 11px; color: var(--text-faint); }
.stat-tile .delta.up { color: var(--accent); }
.stat-tile .delta.down { color: var(--feed); }
.predict-list { display: grid; }
.predict-card { display: flex; gap: 12px; padding: 11px 14px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.predict-card + .predict-card { border-top: 1px solid var(--divider); }
.predict-card .pc-icon { font-size: 18px; flex: none; margin-top: 1px; color: var(--text-dim); }
.predict-card.k-feed .pc-icon { color: var(--feed); } .predict-card.k-sleep .pc-icon { color: var(--sleep); } .predict-card.k-diaper .pc-icon { color: var(--diaper); } .predict-card.k-pump .pc-icon { color: var(--pump); }
.predict-card b { font-weight: 600; display: block; font-size: 13px; }
.predict-card .pc-body { color: var(--text-dim); }
.predict-card .pc-body strong { color: var(--text); font-weight: 600; }
.predict-card .pm { color: var(--text-faint); font-size: 12px; }
.predict-card .pc-sub { font-size: 12px; color: var(--text-faint); }
.bar-chart { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; height: 110px; }
.bc-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bc-stack { display: flex; flex-direction: column-reverse; width: 60%; height: calc(100% - 30px); justify-content: flex-start; }
.bc-stack span { display: block; width: 100%; border-radius: 2px 2px 0 0; opacity: .85; min-height: 0; }
.bc-stack span + span { border-radius: 2px 2px 0 0; }
.bc-stack span:first-child { border-radius: 2px; }
.bc-val { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; height: 14px; }
.bc-lbl { font-size: 10px; color: var(--text-faint); height: 14px; margin-top: 3px; white-space: nowrap; }
.bar-chart + .bar-chart { margin-top: 14px; }
.strip-title { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 16px 0 6px; }
.hour-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 26px; position: relative; margin-bottom: 14px; }
.hour-strip span { display: block; border-radius: 2px; background: var(--text); opacity: calc(.06 + var(--v) * .6); }
.k-feed .hour-strip span { background: var(--feed); } .k-sleep .hour-strip span { background: var(--sleep); } .k-diaper .hour-strip span { background: var(--diaper); } .k-pump .hour-strip span { background: var(--pump); }
.hour-strip i { position: absolute; top: 100%; font-style: normal; font-size: 10px; color: var(--text-faint); margin-top: 2px; transform: translateX(-50%); }
.hour-strip i:nth-of-type(1) { left: 0; transform: none; } .hour-strip i:nth-of-type(2) { left: 25%; } .hour-strip i:nth-of-type(3) { left: 50%; } .hour-strip i:nth-of-type(4) { left: 75%; } .hour-strip i:nth-of-type(5) { left: 100%; transform: translateX(-100%); }
@media (max-width: 420px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } .tabbar .tab { padding-inline: 4px; font-size: 13px; } }

/* ---- onboarding ---- */
.onboard { gap: 14px; }
.ob-lead { text-align: center; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; max-width: 34ch; margin: -4px auto 4px; }
.ob-points { display: grid; gap: 10px; margin: 6px 0 10px; }
.ob-points > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-dim); line-height: 1.45; }
.ob-points .dd { color: var(--accent); font-size: 20px; flex: none; margin-top: 1px; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.ob-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background .2s, width .2s; }
.ob-dots span.on { width: 18px; border-radius: 3px; background: var(--accent); }
.ob-dots span.done { background: var(--accent); opacity: .45; }
.ob-choice { display: grid; gap: 10px; }
.ob-card { display: grid; justify-items: center; gap: 4px; padding: 18px 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: border-color .15s, background .15s; }
.ob-card .doodle-lg { color: var(--accent); margin-bottom: 4px; }
.ob-card strong { font-size: 16px; font-weight: 600; }
.ob-card small { font-size: 12.5px; color: var(--text-dim); }
.ob-card:hover { background: var(--surface-2); }
.ob-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.ob-chips { justify-content: center; }
.ob-note { text-align: center; color: var(--text-faint); font-size: 12.5px; line-height: 1.45; max-width: 36ch; margin: 0 auto; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ob-foot .btn-ghost { font-size: 12.5px; }
.ob-back .dd { transform: scaleX(-1); }
.dd.flip { transform: scaleX(-1); }
.sheet-intro { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; margin: -4px 0 12px; }

/* ---- charity ---- */
.charity-list { display: grid; gap: 8px; }
.charity-card { position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.charity-card:hover { background: var(--surface-2); }
.charity-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.charity-card .c-icon { font-size: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.charity-card .c-main { display: grid; gap: 1px; min-width: 0; }
.charity-card strong { font-size: 14px; font-weight: 600; }
.charity-card em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.charity-card small { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; margin-top: 3px; }
.charity-card .tick { position: absolute; top: 10px; right: 12px; color: var(--accent); font-size: 14px; }

/* ---- development: tappable windows ---- */
.dev-step { width: 100%; text-align: left; cursor: pointer; transition: background .15s; }
.dev-step:hover { background: var(--surface-2); }
.dev-step.open { background: var(--accent-soft); }
.dev-step.ahead > .dd:last-child { color: var(--text-faint); }
.dev-hero.dev-past .doodle-xl { color: var(--text-faint); }
.dev-hero.dev-ahead .doodle-xl { color: var(--text-dim); }
.dev-hero .lang-btn { margin-top: 6px; }

/* ---- timeline items expand ---- */
button.sched-item { width: 100%; text-align: left; cursor: pointer; transition: background .15s; }
button.sched-item:hover { background: var(--hover); }
.sched-item.open { background: var(--surface-2); }
.sched-item.past.open { opacity: .8; }
.s-chev { display: inline-block; color: var(--text-faint); font-size: 12px; margin-top: 4px; }
.s-chev .dd.rot-down { transform: rotate(90deg); } .s-chev .dd.rot-up { transform: rotate(-90deg); }
.sched-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); display: grid; gap: 10px; }
.sd-block { display: grid; gap: 4px; }
.sd-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sd-block ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-dim); line-height: 1.5; display: grid; gap: 3px; }
.sd-block li::marker { color: var(--text-faint); }
.sd-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-links a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 12.5px; }
.sd-links a em { font-style: normal; font-size: 10px; color: var(--text-faint); letter-spacing: .06em; }
.sd-links a:hover { background: var(--hover); }
.sd-empty { font-size: 12.5px; color: var(--text-faint); }

/* ---- a notch more doodle ---- */
.stat-tile .st-icon { position: absolute; top: 11px; right: 12px; font-size: 16px; color: var(--tile, var(--accent)); opacity: .75; }
.book-modes { margin-bottom: 12px; }
.book-modes .chip { display: inline-flex; align-items: center; gap: 6px; }
.book-modes .chip .dd { font-size: 15px; }
.book-modes .menu-hint { font-size: 11px; opacity: .7; }
