/* NurseReset — design tokens, components and animations.
   Layout: a pocket kit. Fixed brand bar + mode switcher on top, one view per reset-card deck,
   a thumb-reachable tab bar on phones that becomes a header nav on desktop. */

/* ===================== Tokens ===================== */
:root {
  /* neutrals: airy, with a soft lavender bias */
  --bg: #F7F6FD;
  --surface: #FFFFFF;
  --surface-2: #F4F4FB;
  --surface-3: #E8E9F5;
  --ink: #1A2742;
  --ink-2: #4B5A76;
  --ink-3: #66748D;
  --line: #E1E3F0;
  --line-2: #CDD1E3;
  --on-c: #FFFFFF;
  --bar-bg: rgba(247, 246, 253, 0.86);
  --orb-hi: rgba(255, 255, 255, 0.85);
  --sheen: rgba(255, 255, 255, 0.55);

  /* palette: base / soft tint / ink (text-safe) / line */
  --sky: #60A5FA;   --sky-soft: #E0F2FE;   --sky-ink: #1D5FAE;   --sky-line: #B9DDFB;
  --lav: #C084FC;   --lav-soft: #F3E8FF;   --lav-ink: #7333B0;   --lav-line: #E2CAFC;
  --gold: #FACC15;  --gold-soft: #FEF9C3;  --gold-ink: #745500;  --gold-line: #F3DE7A;
  --sage: #4ADE80;  --sage-soft: #DCFCE7;  --sage-ink: #17683B;  --sage-line: #A9EBC0;
  --rose: #F472B6;  --rose-soft: #FCE7F3;  --rose-ink: #A1235E;  --rose-line: #F6C2DD;
  --amber: #FB923C; --amber-soft: #FFEDD5; --amber-ink: #9A4210; --amber-line: #FBCB9C;

  /* mode accent (Everyday = serene blue) */
  --accent: var(--sky); --accent-soft: var(--sky-soft); --accent-ink: var(--sky-ink); --accent-line: var(--sky-line);

  /* printed paper never changes theme */
  --paper: #FFFFFF;
  --paper-ink: #1A2742;
  --paper-mute: #5B6B85;
  --paper-line: #CBD5E1;
  --night-card: #0F172A;
  --night-card-ink: #FDBA74;

  --shadow-sm: 0 1px 2px rgba(26, 39, 66, 0.06);
  --shadow: 0 1px 2px rgba(26, 39, 66, 0.05), 0 10px 28px -16px rgba(26, 39, 66, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(26, 39, 66, 0.35);
  --glow: 0px;
  /* clay surfaces: top highlight, soft inner depth, floating drop shadow */
  --hi: rgba(255, 255, 255, 0.95);
  --clay: inset 0 2px 0 var(--hi), inset 0 -4px 12px rgba(76, 70, 150, 0.05), 0 16px 34px -20px rgba(60, 58, 130, 0.3), 0 3px 8px -4px rgba(60, 58, 130, 0.1);
  --clay-sm: inset 0 1.5px 0 var(--hi), inset 0 -3px 8px rgba(76, 70, 150, 0.05), 0 10px 20px -14px rgba(60, 58, 130, 0.3), 0 2px 5px -3px rgba(60, 58, 130, 0.1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Nunito", "Plus Jakarta Sans", ui-rounded, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --radius: 26px;
  --header-h: 120px;
  --tabbar-h: 68px;

  /* the current category colour; views and cards override these */
  --c: var(--accent); --c-soft: var(--accent-soft); --c-ink: var(--accent-ink); --c-line: var(--accent-line);
}

:root[data-mode="exam"]  { --accent: var(--lav);   --accent-soft: var(--lav-soft);   --accent-ink: var(--lav-ink);   --accent-line: var(--lav-line); }
:root[data-mode="duty"]  { --accent: var(--sage);  --accent-soft: var(--sage-soft);  --accent-ink: var(--sage-ink);  --accent-line: var(--sage-line); }
:root[data-mode="night"] { --accent: var(--amber); --accent-soft: var(--amber-soft); --accent-ink: var(--amber-ink); --accent-line: var(--amber-line); }

/* Night-Shift Reset: deep navy, warm low-blue text, glowing accents. The only dark palette. */
:root[data-mode="night"] {
  --bg: #0F172A; --surface: #162139; --surface-2: #1B2843;
  --surface-3: #243454; --ink: #F7EFE4; --ink-2: #CDC4B7; --ink-3: #9A938A; --line: #26365A; --line-2: #34466E;
  --on-c: #0F172A; --bar-bg: rgba(15, 23, 42, 0.84); --orb-hi: rgba(255, 255, 255, 0.28); --sheen: rgba(255, 255, 255, 0.05);
  --sky: #7CC4FF;   --sky-soft: rgba(96, 165, 250, 0.15);  --sky-ink: #BFE1FF;  --sky-line: rgba(124, 196, 255, 0.38);
  --lav: #D8A8FF;   --lav-soft: rgba(192, 132, 252, 0.15); --lav-ink: #EBD5FF;  --lav-line: rgba(216, 168, 255, 0.38);
  --gold: #FDE047;  --gold-soft: rgba(250, 204, 21, 0.13); --gold-ink: #FDEBA6; --gold-line: rgba(253, 224, 71, 0.34);
  --sage: #6EE7A0;  --sage-soft: rgba(74, 222, 128, 0.13); --sage-ink: #B9F6D2; --sage-line: rgba(110, 231, 160, 0.34);
  --rose: #F9A8D4;  --rose-soft: rgba(244, 114, 182, 0.15); --rose-ink: #FCD3E8; --rose-line: rgba(249, 168, 212, 0.38);
  --amber: #FDBA74; --amber-soft: rgba(251, 146, 60, 0.15); --amber-ink: #FED9B0; --amber-line: rgba(253, 186, 116, 0.38);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.015), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  --glow: 22px;
  --hi: rgba(255, 255, 255, 0.07);
  --clay: inset 0 1px 0 var(--hi), inset 0 -4px 12px rgba(0, 0, 0, 0.25), 0 18px 36px -22px rgba(0, 0, 0, 0.85);
  --clay-sm: inset 0 1px 0 var(--hi), inset 0 -3px 8px rgba(0, 0, 0, 0.2), 0 10px 22px -14px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* category scopes */
.cat-mind     { --c: var(--lav);   --c-soft: var(--lav-soft);   --c-ink: var(--lav-ink);   --c-line: var(--lav-line); }
.cat-study    { --c: var(--gold);  --c-soft: var(--gold-soft);  --c-ink: var(--gold-ink);  --c-line: var(--gold-line); }
.cat-clinical { --c: var(--sage);  --c-soft: var(--sage-soft);  --c-ink: var(--sage-ink);  --c-line: var(--sage-line); }
.cat-body     { --c: var(--rose);  --c-soft: var(--rose-soft);  --c-ink: var(--rose-ink);  --c-line: var(--rose-line); }
.cat-sky      { --c: var(--sky);   --c-soft: var(--sky-soft);   --c-ink: var(--sky-ink);   --c-line: var(--sky-line); }
.cat-night    { --c: var(--amber); --c-soft: var(--amber-soft); --c-ink: var(--amber-ink); --c-line: var(--amber-line); }
.cat-accent   { --c: var(--accent); --c-soft: var(--accent-soft); --c-ink: var(--accent-ink); --c-line: var(--accent-line); }

/* ===================== Reset ===================== */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--line); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img, svg, video, iframe { display: block; max-width: 100%; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--c-soft); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== Base ===================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}
body::before { /* paints the status-bar band above the fixed header on notched phones */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bar-bg);
}

.shell-x {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.main {
  padding-block: calc(var(--header-h) + 18px) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
  outline: none;
}
@media (min-width: 1024px) {
  .main { padding-block: calc(var(--header-h) + 28px) 48px; }
}

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-ink); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-ink); text-decoration: none; }
.link .ic { width: 18px; height: 18px; transition: transform 0.2s ease; }
.link:hover .ic { transform: translateX(3px); }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ===================== Controls ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none;
  transition: transform 0.15s ease, filter 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-ink); color: var(--on-c);
  box-shadow: 0 8px 18px -10px var(--c), 0 0 var(--glow) -6px var(--c);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-soft { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn[disabled], .icon-btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn.is-ready { animation: readyPulse 1.6s ease-in-out infinite; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.15s ease, color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn-lg { width: 54px; height: 54px; }
.icon-btn-lg .ic { width: 22px; height: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: var(--c-ink); }
.chip[aria-pressed="true"] { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.chip[disabled] { opacity: 0.5; cursor: not-allowed; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch-track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.25s;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.switch input:checked + .switch-track { background: var(--c-ink); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--c); outline-offset: 2px; }

.field {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 14px; font-size: 16px; line-height: 1.4;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--c); }
textarea.field { resize: vertical; min-height: 64px; }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }

.meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--c); transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); }

/* ===================== Header ===================== */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none; }
.topbar-row, .modebar { pointer-events: auto; background: var(--bar-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.topbar-row { position: relative; z-index: 2; padding-top: env(safe-area-inset-top, 0px); }
.topbar-row > .shell-x { height: 62px; }
.modebar {
  position: relative; z-index: 1; border-bottom: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.25s ease;
}
.modebar > .shell-x { padding-block: 2px 10px; }
.topbar.is-compact .modebar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.topbar.is-compact .topbar-row { box-shadow: 0 1px 0 var(--line); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--accent-ink); filter: drop-shadow(0 0 calc(var(--glow) / 3) var(--accent)); transition: color 0.4s; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.brand-tag { margin-top: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); white-space: nowrap; }

.desk-nav { display: none; }
@media (min-width: 1024px) {
  .desk-nav { display: flex; gap: 4px; margin-left: 24px; }
  .desk-nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
  .desk-nav a:hover { color: var(--c-ink); }
  .desk-nav a[aria-current="page"] { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
}

.modebar-group {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; max-width: 600px;
  border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.mode-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 38px; padding: 4px 6px;
  border-radius: 999px; font-size: clamp(12px, 3.4vw, 14px); font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.3s;
}
.mode-btn .ic { width: 17px; height: 17px; }
.mode-btn[data-mode="exam"]  { --c: var(--lav);   --c-ink: var(--lav-ink); }
.mode-btn[data-mode="duty"]  { --c: var(--sage);  --c-ink: var(--sage-ink); }
.mode-btn[data-mode="night"] { --c: var(--amber); --c-ink: var(--amber-ink); }
.mode-btn:hover { color: var(--c-ink); }
.mode-btn[aria-pressed="true"] { background: var(--c-ink); color: var(--on-c); box-shadow: 0 4px 14px -6px var(--c), 0 0 var(--glow) -4px var(--c); }
.mode-btn[data-mode="night"][aria-pressed="false"] .ic { color: var(--ink-2); }

/* ===================== Views ===================== */
.view { display: flex; flex-direction: column; gap: 16px; animation: viewIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.view[data-view="home"] { gap: 32px; }
.view-head { display: flex; align-items: flex-start; gap: 14px; }
.view-num {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px;
  background: var(--c-ink); color: var(--on-c); font-size: 21px; font-weight: 800;
  box-shadow: 0 0 var(--glow) -4px var(--c);
}
.view-title { margin-top: 4px; font-size: clamp(25px, 6.2vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none;
  background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line);
}

.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.span-2 { grid-column: 1 / -1; }

.tool {
  display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(16px, 4.4vw, 26px);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 var(--glow) -16px var(--c);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.tool-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-head > .min-w-0 { flex: 1 1 160px; }
.tool-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px;
  background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line);
}
.tool-icon .ic { width: 22px; height: 22px; }
.tool-title { margin-top: 2px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.tool-lede { font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.tool-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tool-meta { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tool-note { font-size: 13px; color: var(--ink-3); }

/* ===================== Home ===================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px 22px 112px; border-radius: 30px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 calc(var(--glow) * 2) -20px var(--accent);
  transition: background-color 0.4s;
}
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--font-hand); font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent-ink); }
.hero-title { margin-top: 2px; font-size: clamp(40px, 11.5vw, 76px); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
.hero-sub { margin-top: 16px; max-width: 34ch; font-size: 17px; color: var(--ink-2); }
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn-primary { --c: var(--accent); --c-ink: var(--accent-ink); }
.hero .btn-ghost { background: var(--surface); }
.scan-note {
  position: absolute; z-index: 2; right: 18px; bottom: 20px; display: flex; align-items: flex-end; gap: 2px;
  font-family: var(--font-hand); font-size: 23px; font-weight: 700; line-height: 0.9; text-align: right;
  color: var(--accent-ink); transform: rotate(-7deg);
}
.scan-note svg { width: 54px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-waves { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: 96px; }
.hero-waves .w1 { fill: var(--lav-line); opacity: 0.7; }
.hero-waves .w2 { fill: var(--sky-line); opacity: 0.75; }
.hero-waves .w3 { fill: var(--rose-line); opacity: 0.85; }
@media (min-width: 768px) {
  .hero { padding: 48px 48px 120px; }
  .scan-note { right: 56px; top: 50%; bottom: auto; font-size: 34px; transform: translateY(-60%) rotate(-7deg); }
  .scan-note svg { width: 80px; height: 50px; }
}

.block-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.block-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.block-sub { font-size: 14.5px; color: var(--ink-3); }


.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.reset-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 206px; padding: 16px;
  border-radius: 22px; background: var(--c-soft); color: var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--c-line), 0 0 var(--glow) -12px var(--c);
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.3s;
}
.reset-card::before { /* laminated sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, var(--sheen), transparent 42%);
}
.reset-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: inset 0 0 0 1px var(--c-line), 0 18px 34px -20px var(--c), 0 0 var(--glow) -8px var(--c); }
.reset-card-icon {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.reset-card-icon .ic { width: 24px; height: 24px; }
.reset-card-name { position: relative; display: flex; flex-direction: column; font-size: 25px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.reset-card-name small { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink); }
.reset-card-desc { position: relative; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.reset-card-go { position: relative; margin-top: auto; align-self: flex-end; width: 22px; height: 22px; color: var(--c-ink); transition: transform 0.25s; }
.reset-card:hover .reset-card-go { transform: translateX(4px); }

.mode-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .mode-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.mode-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.mode-card.is-active { border-color: var(--c); box-shadow: 0 0 0 3px var(--c-soft), 0 0 calc(var(--glow) + 10px) -10px var(--c); }
.mode-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--c-soft); color: var(--c-ink); }
.mode-card[data-mode-card="night"] .mode-card-head { background: var(--night-card); color: var(--night-card-ink); }
.mode-card-head .ic { width: 24px; height: 24px; }
.mode-card-title { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mode-card-sub { font-size: 13px; font-weight: 500; opacity: 0.9; }
.mode-card-state { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface); color: var(--c-ink); }
.mode-card-state .ic { width: 14px; height: 14px; stroke-width: 3; }
.mode-kit { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 6px; }
.mode-kit a {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s, box-shadow 0.2s;
}
.mode-kit a .ic { width: 14px; height: 14px; stroke-width: 2.6; color: var(--c-ink); }
.mode-kit a:hover { color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.mode-card-foot { margin-top: auto; padding: 12px 16px 16px; }
.mode-card-foot .btn { width: 100%; }

.reminder { position: relative; overflow: hidden; padding: 24px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.reminder::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: var(--c-soft); }
.reminder > * { position: relative; z-index: 1; }
.reminder-text { margin: 8px 0 14px; max-width: 30ch; font-family: var(--font-hand); font-size: clamp(30px, 7.5vw, 42px); font-weight: 700; line-height: 1.05; color: var(--ink); text-wrap: balance; }

/* ===================== Mind: breathing ===================== */
.breath-stage { position: relative; display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; margin: 2px auto 0; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial-track { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.dial-bar { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.35s linear, stroke 0.4s; filter: drop-shadow(0 0 calc(var(--glow) / 3) var(--c)); }
.breath-orb {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, var(--orb-hi), transparent 44%),
    radial-gradient(circle at 50% 58%, var(--c) 0%, var(--c-soft) 74%);
  box-shadow: 0 0 0 10px var(--c-soft), 0 24px 60px -24px var(--c), 0 0 calc(var(--glow) * 2) -6px var(--c);
  transform: scale(0.56);
  transition-property: transform; transition-duration: 1s; transition-timing-function: cubic-bezier(0.45, 0.05, 0.35, 1);
  will-change: transform;
}
.breath-stage[data-phase="idle"] .breath-orb { animation: orbIdle 5s ease-in-out infinite; }
.breath-halo { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-line); opacity: 0; }
.breath-stage[data-phase="hold"] .breath-halo { animation: halo 2s ease-out infinite; }
.breath-readout { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; }
.breath-phase { font-size: 16px; font-weight: 800; color: var(--ink); }
.breath-count { font-size: 46px; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.breath-stage[data-phase="idle"] .breath-count { font-size: 22px; color: var(--c-ink); letter-spacing: 0.04em; }
.breath-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.breath-steps li {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.breath-steps b { font-size: 17px; font-weight: 800; color: var(--ink-2); }
.breath-steps li.is-active { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); transform: translateY(-2px); }
.breath-steps li.is-active b { color: var(--c-ink); }

/* ===================== Mind: grounding ===================== */
.g-progress { display: flex; gap: 6px; }
.g-progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); transition: background-color 0.35s; }
.g-progress i.is-current { background: var(--c-line); }
.g-progress i.is-done { background: var(--c); }
.g-viewport { overflow: hidden; border-radius: 20px; background: var(--c-soft); box-shadow: inset 0 0 0 1px var(--c-line); touch-action: pan-y; }
.g-track { display: flex; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.g-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 318px; padding: 22px 18px; text-align: center; }
.g-num {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); color: var(--c-ink); font-size: 32px; font-weight: 800; box-shadow: 0 6px 16px -10px var(--c), inset 0 0 0 2px var(--c-line);
}
.g-big { width: 52px; height: 52px; color: var(--c-ink); stroke-width: 1.6; }
.g-sense { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-ink); }
.g-sense .ic { width: 18px; height: 18px; }
.g-prompt { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.g-hint { max-width: 36ch; font-size: 14px; color: var(--ink-2); }
.g-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 6px 0; }
.g-dot {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--on-c); border: 2px dashed var(--c-line);
  transition: background-color 0.25s, border-color 0.25s, transform 0.2s;
}
.g-dot:active { transform: scale(0.9); }
.g-dot .ic { width: 22px; height: 22px; stroke-width: 3; opacity: 0; transform: scale(0.3); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.g-dot[aria-pressed="true"] { background: var(--c-ink); border: 2px solid var(--c-ink); animation: pop 0.35s ease; box-shadow: 0 0 var(--glow) -6px var(--c); }
.g-dot[aria-pressed="true"] .ic { opacity: 1; transform: none; }
.g-count { font-size: 13px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* ===================== Flip cards ===================== */
.flip { display: block; width: 100%; perspective: 1200px; text-align: inherit; border-radius: 22px; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; display: flex; min-width: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 22px; }
.flip-back { transform: rotateY(180deg); }

.talk-face { min-height: 236px; padding: 22px; align-items: center; justify-content: center; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--c-line), 0 0 var(--glow) -10px var(--c); }
.talk-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; align-self: stretch;
  margin: -22px; padding: 22px; border-radius: 22px;
  background:
    radial-gradient(circle at 20% 15%, var(--surface) 0 3px, transparent 4px) 0 0 / 26px 26px,
    var(--c-soft);
}
.talk-cover-mark { width: 54px; height: 54px; color: var(--c-ink); }
.talk-cover-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.talk-cover-hint { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.talk-body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.talk-tag { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--c-soft); color: var(--c-ink); }
.talk-text { max-width: 26ch; font-size: clamp(20px, 5.4vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.talk-heart { width: 22px; height: 22px; color: var(--c); fill: var(--c-soft); }

.tech-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 80%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin-inline: -2px; scrollbar-width: thin;
}
.tech-row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .tech-row { grid-auto-columns: minmax(240px, 46%); } }
@media (min-width: 1024px) { .tech-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.tech-face { min-height: 226px; flex-direction: column; gap: 10px; padding: 18px; text-align: left; }
.tech-front { background: var(--c-soft); box-shadow: inset 0 0 0 1px var(--c-line); }
.tech-back { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--c-line), 0 0 var(--glow) -12px var(--c); }
.tech-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.tech-name { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.tech-tag { font-size: 14.5px; color: var(--ink-2); }
.tech-hint { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--c-ink); }
.tech-hint .ic { width: 16px; height: 16px; }
.tech-steps { display: flex; flex-direction: column; gap: 7px; counter-reset: step; }
.tech-step { position: relative; display: block; padding-left: 30px; font-size: 14px; line-height: 1.4; color: var(--ink-2); counter-increment: step; }
.tech-step::before {
  content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line);
}

/* ===================== Study: pomodoro ===================== */
.pomo-stage { position: relative; display: grid; place-items: center; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto; }
.pomo-stage[data-kind="short"], .pomo-stage[data-kind="long"] { --c: var(--sage); --c-ink: var(--sage-ink); --c-soft: var(--sage-soft); --c-line: var(--sage-line); }
.pomo-stage.is-running .dial-bar { filter: drop-shadow(0 0 calc(var(--glow) / 2 + 2px) var(--c)); }
.pomo-readout { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pomo-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-ink); }
.pomo-time { font-size: clamp(52px, 16vw, 66px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pomo-next { font-size: 13.5px; color: var(--ink-3); }
.pomo-plan { display: flex; justify-content: center; align-items: center; gap: 6px; }
.pomo-plan li { height: 10px; border-radius: 5px; background: var(--surface-3); transition: background-color 0.3s, width 0.3s; }
.pomo-plan li[data-kind="focus"] { width: 36px; }
.pomo-plan li[data-kind="short"] { width: 14px; }
.pomo-plan li[data-kind="long"] { width: 26px; }
.pomo-plan li.is-done { background: var(--c); }
.pomo-plan li[data-kind="short"].is-done, .pomo-plan li[data-kind="long"].is-done { background: var(--sage); }
.pomo-plan li.is-current { background: var(--c-line); animation: blink 1.6s ease-in-out infinite; }
.pomo-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.play-btn {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--c-ink); color: var(--on-c); box-shadow: 0 12px 26px -12px var(--c), 0 0 var(--glow) -4px var(--c);
  transition: transform 0.15s ease, filter 0.2s;
}
.play-btn:hover { filter: brightness(1.1); }
.play-btn:active { transform: scale(0.94); }
.play-btn .ic { width: 32px; height: 32px; }

/* ===================== Study: recall pad ===================== */
.pad { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface-2); border: 1.5px dashed var(--c-line); }
.pad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pad-title { font-size: 17px; font-weight: 800; }
.pad-steps { display: flex; flex-wrap: wrap; gap: 6px; counter-reset: ps; }
.pad-steps li { counter-increment: ps; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-3); transition: background-color 0.3s, color 0.3s; }
.pad-steps li::before { content: counter(ps) ". "; }
.pad-steps li.is-done { color: var(--c-ink); }
.pad-steps li.is-active { background: var(--c-ink); color: var(--on-c); }
.pad-step { display: flex; flex-direction: column; gap: 12px; animation: viewIn 0.35s ease; }
.pad-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pad-row .field { flex: 1 1 220px; }
.pad-q { font-size: 15.5px; color: var(--ink-2); }
.pad-q strong { color: var(--ink); }
.pad-points { display: grid; gap: 8px; }
.pad-points li, .pad-marks li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pad-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 800; background: var(--c-soft); color: var(--c-ink); }
.pad-marks { display: flex; flex-direction: column; gap: 8px; }
.pad-marks li { flex-wrap: wrap; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pad-mark-text { flex: 1 1 180px; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); transition: background-color 0.2s, color 0.2s; }
.seg button .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.seg button[data-v="got"][aria-pressed="true"] { background: var(--sage-soft); color: var(--sage-ink); box-shadow: inset 0 0 0 1px var(--sage-line); }
.seg button[data-v="miss"][aria-pressed="true"] { background: var(--rose-soft); color: var(--rose-ink); box-shadow: inset 0 0 0 1px var(--rose-line); }
.pad-score { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pad-advice { font-size: 15px; color: var(--ink-2); }
.pad-schedule { display: flex; flex-wrap: wrap; gap: 8px; }
.pad-schedule li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 14px; font-weight: 700; }
.pad-schedule small { font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* ===================== Checklists ===================== */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tab { min-height: 38px; padding: 6px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.15; color: var(--ink-2); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--c-ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--c-line); }
.tab-panel { display: flex; flex-direction: column; gap: 12px; }
.check-progress { display: flex; align-items: center; gap: 12px; }
.check-progress .meter { flex: 1; height: 8px; border-radius: 4px; }
.check-count { font-size: 13.5px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.checklist { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin-inline: -10px; border-radius: 14px; cursor: pointer; transition: background-color 0.2s; }
.check:hover { background: var(--surface-2); }
.check-box {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid var(--line-2); color: var(--on-c); transition: background-color 0.2s, border-color 0.2s;
}
.check-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.35s ease 0.05s; }
.check input:checked + .check-box { background: var(--c-ink); border-color: var(--c-ink); animation: pop 0.32s ease; box-shadow: 0 0 var(--glow) -6px var(--c); }
.check input:checked + .check-box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check-box { outline: 3px solid var(--c); outline-offset: 2px; }
.check-text { display: flex; flex-direction: column; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; transition: color 0.2s; }
.check-text small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.check input:checked ~ .check-text { color: var(--ink-3); }
.check input:checked ~ .check-text > span { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--c-line); }
.check-done { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); animation: viewIn 0.4s ease; }
.check-done .ic { width: 26px; height: 26px; }
.check-done b { display: block; color: var(--ink); }
.check-done span { font-size: 14px; }
.check-reset { align-self: flex-start; }

/* ===================== Printables ===================== */
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.print-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.print-thumb { position: relative; height: 150px; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.print-thumb .paper { position: absolute; top: 0; left: 0; transform-origin: top left; box-shadow: none; pointer-events: none; }
.print-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; background: linear-gradient(transparent, var(--paper)); }
.print-name { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.print-desc { font-size: 13px; color: var(--ink-3); }
.print-actions { display: flex; gap: 8px; margin-top: auto; }
.print-actions .btn { flex: 1; }

.paper-stage { padding: 14px; background: var(--surface-3); overflow: hidden; }
.paper-scaler { transform-origin: top left; }
.paper-scaler .paper { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.35); }

/* printable sheets (always print on white) */
.paper {
  --pp: #FACC15; --pp-soft: #FEF9C3; --pp-ink: #6B4F00;
  display: flex; flex-direction: column; gap: 12px; width: 794px; min-height: 1123px; padding: 40px 46px 30px;
  background: var(--paper); color: var(--paper-ink); font-family: var(--font-sans); font-size: 12.5px; line-height: 1.42;
}
.paper.pp-lav  { --pp: #C084FC; --pp-soft: #F3E8FF; --pp-ink: #6A2CA6; }
.paper.pp-sage { --pp: #4ADE80; --pp-soft: #DCFCE7; --pp-ink: #17683B; }
.paper.pp-sky  { --pp: #60A5FA; --pp-soft: #E0F2FE; --pp-ink: #1D5FAE; }
.pp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--pp); }
.pp-logo { width: 40px; height: 40px; flex: none; color: var(--pp-ink); }
.pp-brand { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pp-ink); }
.pp-title { font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--paper-ink); }
.pp-meta { margin-left: auto; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: var(--paper-mute); }
.pp-meta span { display: inline-block; min-width: 180px; padding-bottom: 2px; border-bottom: 1px solid var(--paper-line); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pp-box { padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--paper-line); }
.pp-box.pp-tint { background: var(--pp-soft); border-color: var(--pp); }
.pp-box h3 { margin-bottom: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pp-ink); }
.pp-table { width: 100%; font-size: 12px; }
.pp-table th, .pp-table td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--paper-line); }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-table thead th { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pp-ink); background: var(--pp-soft); border-bottom: 1.5px solid var(--pp); }
.pp-table.pp-grid-lines td, .pp-table.pp-grid-lines th { border: 1px solid var(--paper-line); text-align: center; }
.pp-table.pp-grid-lines td:first-child, .pp-table.pp-grid-lines th:first-child { text-align: left; }
.pp-tip { margin-top: 6px; font-size: 11.5px; color: var(--paper-mute); }
.pp-lines { min-height: 78px; background-image: repeating-linear-gradient(transparent 0 23px, var(--paper-line) 23px 24px); }
.pp-cb { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #94A3B8; border-radius: 3px; vertical-align: -2px; }
.pp-dot { display: inline-block; width: 11px; height: 11px; margin: 0 1px; border: 1.5px solid #94A3B8; border-radius: 50%; vertical-align: -1px; }
.pp-list { display: flex; flex-direction: column; gap: 4px; }
.pp-list li { display: flex; gap: 8px; }
.pp-hand { font-family: var(--font-hand); font-size: 20px; font-weight: 700; color: var(--pp-ink); }
.pp-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid var(--paper-line); font-size: 10.5px; color: var(--paper-mute); }
.pp-map { position: relative; height: 760px; }
.pp-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-map line { stroke: var(--pp); stroke-width: 2.5; stroke-dasharray: 6 6; }
.pp-node { position: absolute; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--paper-line); }
.pp-node h3 { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pp-ink); }
.pp-node p { font-size: 10.5px; color: var(--paper-mute); }
.pp-node .pp-lines { flex: 1; margin-top: 6px; min-height: 0; }
.pp-node.pp-center { background: var(--pp-soft); border: 2.5px solid var(--pp); }

/* ===================== Clinical: reflection, videos ===================== */
.reflect { display: flex; flex-direction: column; gap: 8px; }
.reflect .field + .field-label { margin-top: 6px; }
.past { border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.past summary { padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style-position: inside; }
.past-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.past-list li { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.past-list b { display: block; margin-bottom: 2px; color: var(--ink); }
.past-list p + p { margin-top: 2px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.video-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.25s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--c-line), 0 18px 32px -20px var(--c); }
.video-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(circle at 85% 120%, var(--c-line), transparent 55%),
    linear-gradient(135deg, var(--c-soft), var(--surface-2));
}
.video-thumb .v-art { position: absolute; right: 10px; bottom: 6px; width: 64px; height: 64px; color: var(--c-ink); opacity: 0.3; stroke-width: 1.4; }
.video-play { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); color: var(--c-ink); box-shadow: 0 8px 20px -10px var(--c), 0 0 var(--glow) -6px var(--c); transition: transform 0.25s; }
.video-play .ic { width: 24px; height: 24px; margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.08); }
.video-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface); color: var(--c-ink); }
.video-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.video-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.video-src { font-size: 12.5px; color: var(--ink-3); }

/* ===================== Body: hydration ===================== */
.drops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; justify-items: center; }
.drop { position: relative; width: 100%; max-width: 62px; aspect-ratio: 40 / 52; border-radius: 40% 40% 50% 50%; transition: transform 0.2s ease; }
.drop:active { transform: scale(0.9); }
.drop svg { width: 100%; height: 100%; overflow: visible; }
.drop-outline { fill: var(--surface-2); stroke: var(--sky-line); stroke-width: 2; transition: stroke 0.3s; }
.drop-fill { transform: translateY(54px); transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1); }
.drop-wave { fill: var(--sky); animation: wave 2.6s linear infinite; }
.drop-shine { fill: none; stroke: var(--orb-hi); stroke-width: 2.4; stroke-linecap: round; opacity: 0; transition: opacity 0.3s 0.3s; }
.drop-num { position: absolute; left: 0; right: 0; bottom: 16%; font-size: 12.5px; font-weight: 800; text-align: center; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.drop[aria-pressed="true"] .drop-fill { transform: translateY(1px); }
.drop[aria-pressed="true"] .drop-outline { stroke: var(--sky); }
.drop[aria-pressed="true"] .drop-shine { opacity: 1; }
.drop[aria-pressed="true"] .drop-num { color: var(--on-c); }
.drop[aria-pressed="true"] svg { filter: drop-shadow(0 0 calc(var(--glow) / 3) var(--sky)); }
.drops.is-goal .drop { animation: hop 0.6s ease calc(var(--i) * 60ms); }
.hydro-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hydro-summary p { font-size: 15px; color: var(--ink-2); }
.hydro-summary b { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===================== Body: stretch ===================== */
.stretch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; }
.stretch-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: 20px; background: var(--c-soft); box-shadow: inset 0 0 0 1px var(--c-line); }
.stretch-card .fig { width: 100%; max-width: 120px; margin: 0 auto 4px; }
@media (max-width: 639px) {
  .stretch-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .stretch-card .fig { grid-row: 1 / span 3; width: 76px; margin: 0; }
}
.stretch-name { font-size: 16px; font-weight: 800; }
.stretch-time { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink); }
.stretch-how { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

.fig { display: block; aspect-ratio: 120 / 140; color: var(--c-ink); overflow: visible; }
.fig .ln { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fig .hd { fill: var(--surface); stroke: currentColor; stroke-width: 5.5; }
.fig .floor { stroke: var(--c-line); stroke-width: 3; stroke-linecap: round; }
.fig .mv { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 2 6; opacity: 0.9; }
.fig .wall { stroke: var(--c-line); stroke-width: 4; stroke-linecap: round; }
.fig-neck .f-head { transform-origin: 60px 44px; animation: neckRoll 5s ease-in-out infinite; }
.fig-shoulder .f-shoulders { animation: shoulderRoll 2.6s ease-in-out infinite; }
.fig-arm .f-arm-r { transform-origin: 78px 50px; animation: armAcross 5s ease-in-out infinite; }
.fig-arm .f-fore-l { transform-origin: 42px 68px; animation: armHold 5s ease-in-out infinite; }
.fig-back .f-upper { transform-origin: 60px 86px; animation: sideBend 6s ease-in-out infinite; }
.fig-leg .f-shin { transform-origin: 56px 110px; animation: quadPull 5s ease-in-out infinite; }
.is-paused .fig * { animation-play-state: paused !important; }

.routine {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 22px;
  background: var(--c-soft); box-shadow: inset 0 0 0 1.5px var(--c-line), 0 0 calc(var(--glow) + 6px) -10px var(--c); animation: viewIn 0.4s ease;
}
@media (min-width: 640px) { .routine { grid-template-columns: 200px minmax(0, 1fr); align-items: center; } }
.routine-figure { display: grid; place-items: center; width: min(100%, 200px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--c-line); }
.routine-figure .fig { width: 64%; }
.routine-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.routine-name { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.routine-cue { min-height: 2.8em; font-size: 16px; color: var(--ink-2); }
.routine-time { display: flex; align-items: center; gap: 12px; }
.routine-time span:first-child { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.routine-time .meter { flex: 1; height: 8px; border-radius: 4px; background: var(--surface); }

/* ===================== Body: wellness log ===================== */
.log-hand { font-family: var(--font-hand); font-size: 30px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.week-nav { display: flex; align-items: center; gap: 6px; }
.week-label { min-width: 9.5em; font-size: 13.5px; font-weight: 700; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.log-wrap { overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.log-table { width: 100%; min-width: 296px; font-size: 14px; }
.log-table thead th { padding: 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
.log-table td, .log-table tbody th { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line); }
.log-table tbody th { width: 58px; padding-left: 12px; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.log-table tbody th small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink); }
.log-table tr.is-today > * { background: var(--c-soft); }
.log-table tr.is-today th { color: var(--ink); }
.log-cell {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 2px solid var(--line-2); color: var(--on-c); transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.log-cell:active { transform: scale(0.9); }
.log-cell .ic { width: 20px; height: 20px; stroke-width: 3; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.log-cell[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); box-shadow: 0 0 var(--glow) -6px var(--c); }
.log-cell[aria-pressed="true"] .ic { opacity: 1; transform: none; }
.mood-cell {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-3); border: 2px dashed var(--line-2); transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.mood-cell:active { transform: scale(0.9); }
.mood-cell .ic { width: 16px; height: 16px; }
.mood-cell[data-mood] { border-style: solid; }
.mood-good  { --m: var(--sage-ink); --m-soft: var(--sage-soft); --m-line: var(--sage-line); }
.mood-ok    { --m: var(--gold-ink); --m-soft: var(--gold-soft); --m-line: var(--gold-line); }
.mood-tired { --m: var(--lav-ink);  --m-soft: var(--lav-soft);  --m-line: var(--lav-line); }
.mood-cell[data-mood] { color: var(--m); background: var(--m-soft); border-color: var(--m-line); }
.mood-face { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.log-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.log-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.log-summary li { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.log-summary b { color: var(--c-ink); }
.log-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.log-legend span { display: inline-flex; align-items: center; gap: 4px; }
.log-legend .mood-face { width: 20px; height: 20px; color: var(--m); }
.progress-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-hand); font-size: 26px; font-weight: 700; color: var(--c-ink); }
.progress-note .ic { width: 20px; height: 20px; fill: var(--c-soft); }

/* ===================== Footer, tab bar, toasts, modals ===================== */
.site-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.site-foot-brand { display: flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--ink-2); text-decoration: none; }
.site-foot-brand .brand-mark { width: 30px; height: 30px; filter: none; }
.site-foot-brand b { color: var(--ink); }
.site-foot-note { max-width: 70ch; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: var(--bar-bg); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 14px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.tabbar a .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 4px 14px; border-radius: 999px; transition: background-color 0.25s, box-shadow 0.25s; }
.tabbar a[aria-current="page"] { color: var(--c-ink); }
.tabbar a[aria-current="page"] .ic { background: var(--c-soft); box-shadow: inset 0 0 0 1px var(--c-line), 0 0 var(--glow) -6px var(--c); }
@media (min-width: 1024px) { .tabbar { display: none; } }

.toasts {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none;
}
@media (min-width: 1024px) { .toasts { bottom: 28px; } }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 11px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.toast.is-out { animation: toastOut 0.35s ease forwards; }

.modal {
  width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal[open] { animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal::backdrop { background: rgba(15, 23, 42, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-wide { width: min(900px, calc(100vw - 24px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; }
.modal-title { margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

#printArea { display: none; }

/* ===================== Landing (first screen) ===================== */
.landing { display: none; }
:root[data-view="landing"] .landing { display: flex; }
:root[data-view="landing"] .topbar,
:root[data-view="landing"] .main,
:root[data-view="landing"] .tabbar,
:root[data-view="landing"] .skip-link,
:root[data-view="landing"] body::before { display: none; }

.landing {
  position: relative; isolation: isolate; overflow: hidden; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--bg);
  background-image:
    radial-gradient(36rem 22rem at 100% 0%, var(--lav-soft), transparent 65%),
    radial-gradient(32rem 22rem at -10% 24%, var(--accent-soft), transparent 62%),
    radial-gradient(30rem 18rem at 70% 80%, var(--rose-soft), transparent 65%);
}
.landing-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 30px; padding-bottom: 150px; }
.landing-top { display: flex; align-items: center; }
.landing-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.landing-logo {
  width: 46px; height: 46px; flex: none; overflow: visible; color: var(--accent-ink);
  filter: drop-shadow(0 0 calc(var(--glow) / 2) var(--accent));
  transform-origin: 50% 60%; animation: beat 1.1s ease-in-out 1.6s 2;
}
.landing-logo .draw { stroke-dasharray: 1; animation: draw 1.2s cubic-bezier(0.6, 0.1, 0.3, 1) 0.15s backwards; }
.landing-logo .draw-late { animation-duration: 0.6s; animation-delay: 1s; }
.landing-logo .dot { transform-box: fill-box; transform-origin: center; animation: dotIn 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1.25s backwards; }

.landing-hero { display: grid; gap: 18px; }
.landing-copy { min-width: 0; }
.landing-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.landing-hand { margin-top: 10px; font-family: var(--font-hand); font-size: clamp(30px, 8vw, 46px); font-weight: 700; line-height: 1; color: var(--accent-ink); }
.landing-title { margin-top: 2px; font-size: clamp(46px, 13.5vw, 98px); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em; text-wrap: balance; }
.landing-sub { margin-top: 16px; max-width: 34ch; font-size: 18px; color: var(--ink-2); text-wrap: balance; }
.landing-sub strong { color: var(--ink); font-weight: 700; }
.landing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn-lg .ic { width: 20px; height: 20px; transition: transform 0.2s ease; }
.btn-lg:hover .ic { transform: translateX(3px); }
.landing-note { display: flex; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.landing-note li + li::before { content: "\00B7"; margin: 0 8px; }
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--d, 0) * 80ms + 250ms); }

/* the four reset cards, fanned like the open kit box */
.deck { position: relative; order: -1; height: 150px; --w: min(84px, 22vw); --h: 112px; --spread: min(76px, 20vw); --tilt: 4deg; }
.deck-card {
  position: absolute; left: 50%; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: var(--w); height: var(--h); padding: 10px 8px 8px; border-radius: 16px;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--c-soft), var(--c-soft)), var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--c-line), 0 16px 30px -18px rgba(15, 23, 42, 0.45), 0 0 var(--glow) -8px var(--c);
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + var(--x) * var(--spread))) translateY(calc(var(--y) * 12px)) rotate(calc(var(--x) * var(--tilt)));
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
  animation: deal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--n) * 110ms + 120ms);
}
.deck-card:hover, .deck-card:focus-visible {
  z-index: 5;
  transform: translateX(calc(-50% + var(--x) * var(--spread))) translateY(calc(var(--y) * 12px - 16px)) rotate(calc(var(--x) * var(--tilt)));
}
.deck-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.deck-icon .ic { width: 15px; height: 15px; }
.deck-label { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
.deck-label small { font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink); }
.deck-heart { margin-top: auto; align-self: center; width: 12px; height: 12px; color: var(--c-ink); fill: currentColor; stroke: none; }

.landing-blocks { display: grid; gap: 26px; }
.landing-h2 { margin-bottom: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); }
.landing-modes { display: grid; gap: 10px; }
.lmode {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 20px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s;
}
.lmode:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--c-line), 0 14px 26px -18px var(--c); }
.lmode[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--c), 0 0 var(--glow) -8px var(--c); }
.lmode-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.lmode-icon .ic { width: 22px; height: 22px; }
.lmode[data-landing-mode="night"] .lmode-icon { background: var(--night-card); color: var(--night-card-ink); box-shadow: none; }
.lmode-text { display: flex; flex-direction: column; min-width: 0; }
.lmode-text b { font-size: 16.5px; font-weight: 800; }
.lmode-text small { font-size: 14px; color: var(--ink-3); }
.lmode-go { margin-left: auto; color: var(--c-ink); transition: transform 0.2s ease; }
.lmode:hover .lmode-go { transform: translateX(3px); }

.landing-res { display: grid; gap: 8px; }
.landing-res a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px;
  font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s ease, box-shadow 0.2s;
}
.landing-res a:hover { transform: translateX(3px); box-shadow: inset 0 0 0 1.5px var(--sky-line); }
.landing-res .tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-soft); color: var(--sky-ink); }
.landing-res .tick .ic { width: 15px; height: 15px; stroke-width: 3; }

.landing-waves { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.landing-waves .w1 { fill: var(--lav-line); opacity: 0.7; }
.landing-waves .w2 { fill: var(--sky-line); opacity: 0.75; }
.landing-waves .w3 { fill: var(--rose-line); opacity: 0.85; }
.landing-scan {
  position: absolute; z-index: 2; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; align-items: flex-end; gap: 2px; font-family: var(--font-hand); font-size: 24px; font-weight: 700; line-height: 0.95;
  text-align: right; color: var(--accent-ink); transform: rotate(-6deg);
}
.landing-scan svg { width: 54px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .landing-inner { gap: 40px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 400px; }
  .deck { order: 0; height: 280px; --w: 128px; --h: 176px; --spread: 116px; --tilt: 5deg; }
  .deck-card { gap: 10px; padding: 16px 14px 12px; border-radius: 20px; }
  .deck-icon { width: 40px; height: 40px; }
  .deck-icon .ic { width: 20px; height: 20px; }
  .deck-label { font-size: 22px; }
  .deck-label small { font-size: 10px; }
  .deck-heart { width: 18px; height: 18px; }
  .landing-blocks { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .landing-scan { font-size: 30px; right: max(48px, env(safe-area-inset-right, 0px)); }
  .landing-scan svg { width: 72px; height: 46px; }
}

/* ===================== Clay & delight layer =====================
   Soft clay surfaces, springy presses, rounded display type and an aurora backdrop,
   following the UI/UX Pro Max guidance for mental-health, habit and hydration apps. */

/* rounded, friendly display face (timers keep the tabular body face) */
.brand-name, .hero-title, .landing-title, .view-title, .block-title, .tool-title, .reset-card-name, .deck-label,
.modal-title, .pad-title, .pad-score, .routine-name, .g-prompt, .g-num, .view-num, .tech-name, .print-name,
.stretch-name, .mode-card-title, .lmode-text b, .checkin-title, .wins-count b, .wins-msg, .win-text b,
.talk-text, .talk-cover-title, .check-done b, .mood-opt, .checkin-tip b {
  font-family: var(--font-display);
}
.hero-title, .landing-title { font-weight: 900; letter-spacing: -0.03em; }
.view-title, .block-title, .checkin-title { font-weight: 900; letter-spacing: -0.015em; }
.tool-title, .tech-name, .routine-name, .g-prompt, .print-name, .stretch-name { font-weight: 800; letter-spacing: -0.005em; }
.brand-name { font-weight: 900; letter-spacing: -0.01em; }
.talk-text { font-weight: 800; letter-spacing: 0; }

/* aurora: slow pastel light behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 75vmax; height: 75vmax; border-radius: 50%; opacity: 0.8; animation: aurora 12s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { top: -38vmax; right: -28vmax; background: radial-gradient(closest-side, var(--lav-line), transparent); }
.aurora i:nth-child(2) { top: 16vh; left: -42vmax; background: radial-gradient(closest-side, var(--sky-line), transparent); animation-duration: 15s; animation-delay: -5s; }
.aurora i:nth-child(3) { bottom: -44vmax; right: -24vmax; background: radial-gradient(closest-side, var(--rose-line), transparent); animation-duration: 18s; animation-delay: -9s; }
.landing { background: none; }

/* clay surfaces */
.tool, .mode-card, .reminder { border: 0; box-shadow: var(--clay), 0 0 var(--glow) -16px var(--c); }
.hero { box-shadow: inset 0 2px 0 var(--hi), inset 0 0 0 1px var(--accent-line), 0 18px 40px -26px var(--accent), 0 0 calc(var(--glow) * 2) -20px var(--accent); }
.reset-card { box-shadow: inset 0 2px 0 var(--hi), inset 0 -6px 14px rgba(70, 60, 140, 0.06), 0 16px 30px -20px var(--c), 0 0 var(--glow) -12px var(--c); }
.reset-card:hover { box-shadow: inset 0 2px 0 var(--hi), inset 0 -6px 14px rgba(70, 60, 140, 0.06), 0 24px 38px -20px var(--c), 0 0 var(--glow) -8px var(--c); }
.deck-card { box-shadow: inset 0 2px 0 var(--hi), inset 0 -5px 12px rgba(70, 60, 140, 0.07), 0 16px 30px -18px rgba(15, 23, 42, 0.4), 0 0 var(--glow) -8px var(--c); }
.lmode, .landing-res a, .video-card { box-shadow: var(--clay-sm); }
.lmode:hover { box-shadow: var(--clay-sm), 0 16px 28px -18px var(--c); }
.landing-res a:hover { box-shadow: var(--clay-sm), 0 14px 24px -18px var(--sky); }
.video-card:hover { box-shadow: var(--clay-sm), 0 20px 34px -20px var(--c); }
.print-card { background: var(--surface); box-shadow: var(--clay-sm); }
.stretch-card { box-shadow: inset 0 2px 0 var(--hi), inset 0 0 0 1px var(--c-line); }
.field { box-shadow: inset 0 2px 4px rgba(53, 66, 120, 0.07), inset 0 0 0 1px var(--line-2); }

/* springy, squishy controls */
.btn { transition: transform 0.3s var(--spring), filter 0.2s ease, box-shadow 0.25s ease, background-color 0.2s; }
.btn:active { transform: translateY(1px) scale(0.97); transition-duration: 0.08s; }
.btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 10px 20px -10px var(--c), 0 0 var(--glow) -6px var(--c);
}
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.16), 0 5px 10px -8px var(--c); }
.btn-soft { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--c-line), inset 0 -2px 0 var(--c-line); }
.btn-ghost { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--line), 0 6px 14px -10px rgba(53, 66, 120, 0.3); }
.icon-btn { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--line), 0 6px 12px -9px rgba(53, 66, 120, 0.35); transition: transform 0.3s var(--spring), color 0.2s, box-shadow 0.2s; }
.icon-btn:active { transform: scale(0.9); }
.chip { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--line); transition: transform 0.3s var(--spring), background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1.5px var(--c-line), inset 0 -2px 0 var(--c-line); }
.play-btn {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.16), 0 14px 26px -12px var(--c), 0 0 var(--glow) -4px var(--c);
  transition: transform 0.3s var(--spring), filter 0.2s;
}
.modebar-group { box-shadow: inset 0 2px 5px rgba(53, 66, 120, 0.08), inset 0 0 0 1px var(--line); }
.mode-btn { transition: background-color 0.25s, color 0.25s, box-shadow 0.3s, transform 0.3s var(--spring); }
.mode-btn:active { transform: scale(0.95); }
.mode-btn[aria-pressed="true"] {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 6px 14px -6px var(--c), 0 0 var(--glow) -4px var(--c);
}
.tabbar a { transition: color 0.2s, transform 0.3s var(--spring); }
.tabbar a:active { transform: scale(0.92); }
.tabbar a[aria-current="page"] .ic { box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--c-line), 0 0 var(--glow) -6px var(--c); }
.check-box { border-radius: 9px; }
.check input:checked + .check-box { animation: pop 0.4s var(--spring); }
.reset-card, .lmode, .landing-res a, .video-card { transition: transform 0.35s var(--spring), box-shadow 0.3s; }

/* Pip, the NurseReset buddy */
.pip { position: relative; display: block; flex: none; width: var(--pip-size, 64px); aspect-ratio: 1; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.pip-svg { width: 100%; height: 100%; overflow: visible; }
.pip-body { transform-origin: 60px 112px; animation: pipBob 3.2s ease-in-out infinite; }
.pip-shadow { fill: rgba(40, 30, 90, 0.16); transform-origin: 60px 116px; animation: pipShadow 3.2s ease-in-out infinite; }
.pip-eyes { transform-origin: 60px 60px; animation: pipBlink 5s infinite; }
.pip-face path, .pip-face ellipse { stroke-linecap: round; stroke-linejoin: round; }
.pip-arm { display: none; }
.pip.is-waving .pip-arm { display: inline; transform-origin: 100px 62px; animation: pipWave 1.4s ease-in-out 3; }
.pip.is-bouncing .pip-body { animation: pipBounce 0.65s var(--spring); }
.pip:focus-visible { outline-offset: 4px; border-radius: 50%; }
.pip-bubble {
  position: relative; max-width: 240px; padding: 9px 13px; border-radius: 16px 16px 16px 5px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: var(--clay-sm);
}
.pip-bubble:empty { display: none; }
.pip-bubble.is-new { animation: bubbleIn 0.5s var(--spring); }
.pip-wrap { position: relative; margin-left: auto; }
.pip-wrap .pip { --pip-size: 60px; }
.pip-bubble-float { position: absolute; z-index: 4; top: calc(100% + 2px); right: 6px; width: max-content; max-width: min(300px, 82vw); border-radius: 16px 5px 16px 16px; text-wrap: balance; }
.hero-sub { text-wrap: balance; }
@media (min-width: 900px) {
  .pip-wrap .pip { --pip-size: 78px; }
  .checkin .mood-pick { max-width: 620px; }
  .checkin-tip { max-width: 760px; }
}
.landing-top { justify-content: space-between; gap: 12px; }

/* landing sparkles */
.sparkle { position: absolute; z-index: 6; left: var(--sx); top: var(--sy); width: 20px; height: 20px; color: var(--accent); stroke-width: 1.6; animation: twinkle 2.8s ease-in-out var(--sd) infinite; pointer-events: none; }

/* mood check-in (landing + home) */
.checkin { display: flex; flex-direction: column; gap: 14px; }
.checkin-title { font-size: 23px; line-height: 1.15; }
.checkin-sub { margin-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.mood-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mood-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 8px 12px; border-radius: 22px;
  font-size: 16px; font-weight: 800; color: var(--ink); background: var(--surface); box-shadow: var(--clay-sm);
  transition: transform 0.35s var(--spring), box-shadow 0.25s, background-color 0.25s;
}
.mood-opt:hover { transform: translateY(-3px); }
.mood-opt:active { transform: scale(0.94); transition-duration: 0.08s; }
.mood-opt-face { display: grid; place-items: center; color: var(--m); }
.mood-opt-face .mood-face { width: 46px; height: 46px; stroke-width: 1.7; }
.mood-opt[aria-pressed="true"] { background: var(--m-soft); box-shadow: inset 0 2px 0 var(--hi), inset 0 0 0 2px var(--m-line), 0 12px 22px -14px var(--m); }
.mood-opt[aria-pressed="true"] .mood-opt-face { animation: wiggle 0.7s var(--spring); }
.mood-pick-sm { gap: 8px; }
.mood-pick-sm .mood-opt { flex-direction: row; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 16px; font-size: 14.5px; }
.mood-pick-sm .mood-opt-face .mood-face { width: 26px; height: 26px; }
.checkin-tip {
  --c: var(--m); --c-ink: var(--m); --c-soft: var(--m-soft); --c-line: var(--m-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 22px;
  background: var(--m-soft); box-shadow: inset 0 2px 0 var(--hi), inset 0 0 0 1.5px var(--m-line); animation: bubbleIn 0.55s var(--spring);
}
.checkin-tip > div { flex: 1 1 220px; min-width: 0; }
.checkin-tip b { display: block; font-size: 19px; font-weight: 900; color: var(--ink); }
.checkin-tip p { font-size: 15px; color: var(--ink-2); }

/* Today's little wins (home) */
.wins { display: flex; flex-direction: column; gap: 16px; padding: clamp(16px, 4.4vw, 24px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--clay); }
.wins-top { display: flex; align-items: center; gap: 16px; }
.wins-ring { position: relative; display: grid; place-items: center; flex: none; width: 132px; height: 132px; }
.wins-ring .dial-track { stroke-width: 11; }
.wins-ring .dial-bar { stroke: url(#winsGrad); stroke-width: 11; transition: stroke-dashoffset 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); filter: drop-shadow(0 0 calc(var(--glow) / 3) var(--sky)); }
/* progress rings start empty (circumference = 2πr) until script sets their progress */
#winsBar { stroke-dasharray: 565.5; stroke-dashoffset: 565.5; }
#breathBar { stroke-dasharray: 590.6; stroke-dashoffset: 590.6; }
#pomoBar { stroke-dasharray: 578.1; stroke-dashoffset: 578.1; }
.wins-ring .pip { --pip-size: 88px; }
.wins-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wins-count { font-size: 14.5px; font-weight: 600; color: var(--ink-3); }
.wins-count b { margin-right: 4px; font-size: 36px; font-weight: 900; line-height: 1; color: var(--ink); }
.wins-msg { font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.wins-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.win {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; height: 100%; padding: 10px 2px 8px; border-radius: 18px;
  color: var(--ink); text-align: center; text-decoration: none; background: var(--surface-2);
  box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1px var(--line); transition: transform 0.35s var(--spring), background-color 0.25s, box-shadow 0.25s;
}
a.win:hover, button.win:hover { transform: translateY(-2px); }
a.win:active, button.win:active { transform: scale(0.96); transition-duration: 0.08s; }
.win-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.win-icon .ic { width: 20px; height: 20px; }
.win-text { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.2; }
.win-text b { font-size: 13.5px; font-weight: 800; }
.win-text small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .wins-list { gap: 10px; }
  .win-text b { font-size: 15px; }
  .win-text small { font-size: 12.5px; }
}
.win[data-done="true"] { background: var(--c-soft); box-shadow: inset 0 1.5px 0 var(--hi), inset 0 0 0 1.5px var(--c-line); }
.win[data-done="true"] .win-icon { background: var(--c-ink); color: var(--on-c); box-shadow: 0 0 var(--glow) -6px var(--c); animation: pop 0.45s var(--spring); }
.win[data-done="true"] .win-icon .ic { stroke-width: 3; }
.mood-row { display: flex; flex-direction: column; gap: 8px; }
.mood-row-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.week-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.week-dots { display: flex; gap: 6px; }
.week-dots li { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.week-dots li.is-on { color: var(--on-c); background: var(--accent-ink); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.3), 0 0 var(--glow) -6px var(--accent); }
.week-dots li.is-today { outline: 2px solid var(--accent); outline-offset: 2px; }
.week-msg { font-size: 14px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 389px) {
  .wins-ring { width: 112px; height: 112px; }
  .wins-ring .pip { --pip-size: 74px; }
  .wins-count b { font-size: 30px; }
}

/* celebrations */
.confetti { position: fixed; inset: 0; z-index: 95; width: 100vw; height: 100vh; pointer-events: none; }

/* ===================== Visibility utilities (after components so they win) ===================== */
.show-sm-down { display: inline-flex; }
.hide-sm-down { display: none; }
@media (min-width: 640px) { .show-sm-down { display: none; } .hide-sm-down { display: inline-flex; } }

/* ===================== Keyframes ===================== */
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes orbIdle { 0%, 100% { transform: scale(0.56); } 50% { transform: scale(0.62); } }
@keyframes halo { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-10px) scale(1.06); } }
@keyframes blink { 50% { opacity: 0.45; } }
@keyframes readyPulse { 0%, 100% { box-shadow: 0 8px 18px -10px var(--c), 0 0 0 0 var(--c-line); } 50% { box-shadow: 0 8px 18px -10px var(--c), 0 0 0 7px transparent; } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { transform: scale(0); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.14); } 40% { transform: scale(0.98); } 60% { transform: scale(1.08); } }
@keyframes rise { from { transform: translateY(18px); } }
@keyframes deal { from { transform: translateX(-50%) translateY(46px) rotate(0deg) scale(0.92); } }
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); } }
@keyframes pipBob { 50% { transform: translateY(-4px); } }
@keyframes pipShadow { 50% { transform: scaleX(0.84); opacity: 0.7; } }
@keyframes pipBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes pipWave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 70% { transform: rotate(14deg); } }
@keyframes pipBounce { 0% { transform: scale(1); } 30% { transform: translateY(3px) scale(1.12, 0.88); } 60% { transform: translateY(-8px) scale(0.95, 1.08); } 100% { transform: scale(1); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px) scale(0.92); } }
@keyframes twinkle { 0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.12); } 60% { transform: rotate(9deg); } }
@keyframes neckRoll { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-26deg); } 50% { transform: translateY(3px) rotate(0); } 75% { transform: rotate(26deg); } }
@keyframes shoulderRoll { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(0, -7px); } 50% { transform: translate(-2px, -3px); } 75% { transform: translate(0, 2px); } }
@keyframes armAcross { 0%, 12%, 88%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(80deg); } }
@keyframes armHold { 0%, 12%, 88%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(-125deg); } }
@keyframes sideBend { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(0); } 75% { transform: rotate(14deg); } }
@keyframes quadPull { 0%, 12%, 88%, 100% { transform: rotate(0); } 32%, 68% { transform: rotate(150deg); } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .pip-body, .pip-shadow, .pip-eyes, .pip-arm, .sparkle, .mood-opt-face, .pip-bubble, .checkin-tip,
  .rise, .deck-card, .landing-logo, .landing-logo .draw, .landing-logo .dot,
  .view, .pad-step, .check-done, .routine,
  .breath-stage[data-phase="idle"] .breath-orb, .breath-halo, .drop-wave,
  .stretch-grid .fig *, .pomo-plan li, .btn.is-ready, .drops.is-goal .drop { animation: none !important; }
  .reset-card:hover, .video-card:hover, .stat:hover { transform: none; }
  .flip-inner, .g-track { transition-duration: 0.15s; }
}

/* ===================== Print: only the chosen sheet ===================== */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #FFFFFF !important; }
  body::before { display: none; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea .paper { width: 210mm; height: 296mm; min-height: 0; overflow: hidden; padding: 10.5mm 12mm 8mm; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
