/* ==========================================================================
   RITUAL — personal wellness & productivity
   style.css · Phase 1 (design system + all five pages)

   Contents
   01. Design tokens (palette, type, spacing, motion)
   02. Theme tokens — light / dark
   03. Reset & base
   04. Typography & utilities
   05. Layout
   06. Header, brand & navigation
   07. Theme toggle
   08. Buttons, pills, chips & status
   09. Cards & shared page hero
   10. Today page
   11. Calendar page
   12. Grocery page
   13. Journal page
   14. Recipes page
   15. Footer ribbon & toast
   16. Motion (keyframes, reveal, reduced motion)
   17. Phase 2 — stars, previous notes, multi-workout days, gym
       exercises, calendar workout types, journal samples
   18. Phase 3 — follow-up reminders, special events, read-only
       journal & check-in states, rest/event calendar markers
   19. Phase 4 — read-only star ratings
   20. Phase 6 — Coming Soon page, Calendar start boundary,
       Christmas Day theme & Calendar Christmas greeting
   21. Phase 7 — journal confirmation dialog, New Year’s Eve &
       30th-birthday celebrations (Christmas styles above unchanged)
   22. Phase 8 — daily quotes, New Year’s Day & Valentine’s Day
   23. Phase 9 — personal celebrations (birthdays & first anniversary).
       The top mobile menu lives in section 06.
   24. Phase 10 — Sundays, equipment, "to be defined", Miami travel day
   25. Phase 10 — plans & appointments (Today card, Calendar panel, form)
   26. Phase 10 — monthly journal & export status
   27. Phase 10 — storage / cloud-sync status
   28. Phase 11 — learning & creative activities, nails, password gate
   ========================================================================== */

/* ---------- 01. DESIGN TOKENS ------------------------------------------- */
:root {
  /* The only four brand colours */
  --burgundy: #4B1923;
  --pink: #EBC8CD;
  --white: #FFFFFF;
  --beige: #F0E6E1;

  /* Channel versions for transparency */
  --burgundy-rgb: 75 25 35;
  --pink-rgb: 235 200 205;
  --beige-rgb: 240 230 225;
  --white-rgb: 255 255 255;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --fs-xl: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.9rem, 1.4rem + 6vw, 6.75rem);
  --fs-page: clamp(2.8rem, 1.3rem + 6.2vw, 7rem);

  /* Spacing & shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --gap: clamp(14px, 2vw, 24px);
  --pad-card: clamp(20px, 3vw, 36px);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: clamp(28px, 4vw, 44px);
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --tap: 44px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 520ms;
}

/* ---------- 02. THEME TOKENS -------------------------------------------- */
/* Light (default) */
:root,
:root[data-theme="light"] {
  color-scheme: light;

  --bg: var(--beige);
  --surface: var(--white);
  --surface-sunk: var(--beige);
  --ink: var(--burgundy);
  --ink-2: rgb(var(--burgundy-rgb) / 0.74);
  --ink-3: rgb(var(--burgundy-rgb) / 0.56);
  --line: rgb(var(--burgundy-rgb) / 0.12);
  --line-2: rgb(var(--burgundy-rgb) / 0.26);

  --accent: var(--pink);
  --on-accent: var(--burgundy);
  --accent-soft: rgb(var(--pink-rgb) / 0.6);

  /* Feature = the bold, inverted blocks (hero, details, ribbon) */
  --feature-bg: var(--burgundy);
  --feature-ink: var(--beige);
  --feature-hi: var(--pink);
  --feature-chip-bg: var(--pink);
  --feature-chip-ink: var(--burgundy);

  /* Tint = soft pink cards */
  --tint-bg: var(--pink);
  --tint-ink: var(--burgundy);
  --tint-chip: rgb(var(--white-rgb) / 0.55);

  --btn-bg: var(--burgundy);
  --btn-ink: var(--beige);

  --nav-bg: var(--burgundy);
  --nav-ink: rgb(var(--beige-rgb) / 0.78);
  --nav-ink-hover: var(--beige);
  --nav-ink-active: var(--burgundy);
  --nav-indicator: var(--pink);

  --toggle-track: var(--white);
  --toggle-knob: var(--burgundy);
  --toggle-icon: var(--pink);

  --header-bg: rgb(var(--beige-rgb) / 0.8);
  --star-on: var(--burgundy);
  --focus-ring: var(--burgundy);
  --focus-halo: rgb(var(--pink-rgb) / 0.9);

  --shadow-sm: 0 1px 0 rgb(var(--burgundy-rgb) / 0.03), 0 10px 30px -22px rgb(var(--burgundy-rgb) / 0.35);
  --shadow-lg: 0 2px 0 rgb(var(--burgundy-rgb) / 0.03), 0 28px 50px -28px rgb(var(--burgundy-rgb) / 0.45);
}

/* Dark — designed, not inverted */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: var(--burgundy);
  --surface: color-mix(in srgb, var(--burgundy) 90%, var(--pink));
  --surface-sunk: var(--burgundy);
  --ink: var(--beige);
  --ink-2: rgb(var(--beige-rgb) / 0.78);
  --ink-3: rgb(var(--beige-rgb) / 0.6);
  --line: rgb(var(--pink-rgb) / 0.16);
  --line-2: rgb(var(--pink-rgb) / 0.34);

  --accent: var(--pink);
  --on-accent: var(--burgundy);
  --accent-soft: rgb(var(--pink-rgb) / 0.16);

  --feature-bg: var(--pink);
  --feature-ink: var(--burgundy);
  --feature-hi: var(--burgundy);
  --feature-chip-bg: var(--burgundy);
  --feature-chip-ink: var(--pink);

  --tint-bg: color-mix(in srgb, var(--burgundy) 82%, var(--pink));
  --tint-ink: var(--beige);
  --tint-chip: rgb(var(--pink-rgb) / 0.12);

  --btn-bg: var(--pink);
  --btn-ink: var(--burgundy);

  --nav-bg: color-mix(in srgb, var(--burgundy) 84%, var(--pink));
  --nav-ink: rgb(var(--beige-rgb) / 0.78);
  --nav-ink-hover: var(--beige);
  --nav-ink-active: var(--burgundy);
  --nav-indicator: var(--pink);

  --toggle-track: color-mix(in srgb, var(--burgundy) 86%, var(--pink));
  --toggle-knob: var(--pink);
  --toggle-icon: var(--burgundy);

  --header-bg: rgb(var(--burgundy-rgb) / 0.82);
  --star-on: var(--pink);
  --focus-ring: var(--pink);
  --focus-halo: rgb(var(--pink-rgb) / 0.35);

  --shadow-sm: 0 10px 30px -22px rgb(20 5 9 / 0.7);
  --shadow-lg: 0 30px 60px -30px rgb(20 5 9 / 0.85);
}

/* No-JS fallback: follow the OS when no manual theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: var(--burgundy);
    --surface: color-mix(in srgb, var(--burgundy) 90%, var(--pink));
    --surface-sunk: var(--burgundy);
    --ink: var(--beige);
    --ink-2: rgb(var(--beige-rgb) / 0.78);
    --ink-3: rgb(var(--beige-rgb) / 0.6);
    --line: rgb(var(--pink-rgb) / 0.16);
    --line-2: rgb(var(--pink-rgb) / 0.34);
    --accent-soft: rgb(var(--pink-rgb) / 0.16);
    --feature-bg: var(--pink);
    --feature-ink: var(--burgundy);
    --feature-hi: var(--burgundy);
    --feature-chip-bg: var(--burgundy);
    --feature-chip-ink: var(--pink);
    --tint-bg: color-mix(in srgb, var(--burgundy) 82%, var(--pink));
    --tint-ink: var(--beige);
    --tint-chip: rgb(var(--pink-rgb) / 0.12);
    --btn-bg: var(--pink);
    --btn-ink: var(--burgundy);
    --nav-bg: color-mix(in srgb, var(--burgundy) 84%, var(--pink));
    --header-bg: rgb(var(--burgundy-rgb) / 0.82);
    --star-on: var(--pink);
    --focus-ring: var(--pink);
  }
}

/* ---------- 03. RESET & BASE -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg);
  color: var(--ink);
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--pink);
  color: var(--burgundy);
}

[hidden] { display: none !important; }

/* ---------- 04. TYPOGRAPHY & UTILITIES ---------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.display em,
.page-hero__title em,
.hero__title em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.heart {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  transform: translateY(-0.04em);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus { transform: none; }

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed currentColor;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
  white-space: nowrap;
}

/* ---------- 05. LAYOUT --------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  flex: 1;
  width: 100%;
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: var(--space-7);
}

.stack > * + * { margin-top: var(--gap); }

/* ---------- 06. HEADER, BRAND & NAVIGATION ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}

/* Blur lives on a pseudo-element so the mobile menu panel isn't trapped */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out);
}

.site-header.is-scrolled::before { border-bottom-color: var(--line); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-height: var(--tap);
  padding-block: 6px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72em;
  display: inline-block;
  transition: transform var(--dur-3) var(--ease-spring);
}

.brand:hover .brand__mark { transform: scale(1.25) rotate(-10deg); }

.nav {
  --x: 0px;
  --w: 0px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  box-shadow: var(--shadow-sm);
}

.nav__indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: var(--w);
  transform: translateX(var(--x));
  border-radius: var(--radius-pill);
  background: var(--nav-indicator);
  opacity: 0;
  transition:
    transform 600ms var(--ease-out),
    width 600ms var(--ease-out),
    opacity var(--dur-2) ease;
}

.nav.is-ready .nav__indicator { opacity: 1; }
.nav.no-anim .nav__indicator { transition: none; }

.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--nav-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) ease;
}

.nav__link:hover { color: var(--nav-ink-hover); }
.nav__link[aria-current="page"] { color: var(--nav-ink-active); }

/* Without JS the active page still gets a pill */
.nav:not(.is-ready) .nav__link[aria-current="page"] { background: var(--nav-indicator); }

.nav__link .icon {
  width: 19px;
  height: 19px;
  transition: transform var(--dur-3) var(--ease-spring);
}

.nav__link:hover .icon { transform: translateY(-1px) rotate(-6deg); }

.nav__link:focus-visible {
  outline-color: var(--nav-indicator);
  outline-offset: 1px;
}

/* Laptop: slightly tighter */
@media (min-width: 900px) and (max-width: 1080px) {
  .nav__link { padding: 0 14px; }
}

/* Menu button — only shown on tablets & phones (see below) */
.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nav-bg);
  color: var(--nav-ink-hover);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color var(--dur-2) ease, transform var(--dur-2) var(--ease-spring);
}

.menu-toggle:hover { transform: scale(1.05); }
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.menu-toggle__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  overflow: visible;
}

.menu-toggle__line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) ease;
}

/* Open: the three lines fold into an X */
.is-menu-open .menu-toggle { background: var(--nav-indicator); color: var(--nav-ink-active); }
.is-menu-open .menu-toggle__line--1 { transform: translateY(5px) rotate(45deg); }
.is-menu-open .menu-toggle__line--2 { opacity: 0; transform: scaleX(0.2); }
.is-menu-open .menu-toggle__line--3 { transform: translateY(-5px) rotate(-45deg); }

/* Tablet & phone: navigation stays at the TOP. Logo left, theme toggle and
   menu button right; the five links open in a panel just below the header.
   (Phase 9 — replaces the Phase 1–8 floating bottom tab bar.) */
@media (max-width: 899px) {
  :root { --header-h: 64px; }

  .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand { grid-column: 1; grid-row: 1; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: inline-grid; grid-column: 3; grid-row: 1; }

  /* Without JavaScript the links stay visible as a scrollable row */
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav__indicator { display: none; }
  .nav .nav__link[aria-current="page"] { background: var(--nav-indicator); }

  /* With JavaScript: a dropdown panel under the header */
  .has-menu .nav {
    position: absolute;
    top: calc(100% + 4px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px;
    overflow: visible;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
  }

  /* Transitions switch on after the first paint, so pages load already closed */
  .has-menu.menu-ready .nav {
    transition:
      opacity var(--dur-2) ease,
      transform var(--dur-2) var(--ease-out),
      visibility 0s linear var(--dur-2);
  }

  .has-menu.has-menu.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .has-menu .nav__link {
    justify-content: flex-start;
    gap: 14px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
  }

  .has-menu .nav__link:hover { background: rgb(var(--beige-rgb) / 0.08); }
  .has-menu .nav__link[aria-current="page"] { background: var(--nav-indicator); }
  .has-menu .nav__link .icon { width: 21px; height: 21px; }
  .has-menu .nav__link:focus-visible { outline: 2px solid var(--nav-indicator); outline-offset: 2px; }

  /* Links arrive one after another as the panel opens */
  .has-menu .nav__link { opacity: 0; transform: translateY(-4px); }
  .has-menu.menu-ready .nav__link { transition: color var(--dur-2) ease, background-color var(--dur-2) ease, opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
  .has-menu.is-menu-open .nav__link { opacity: 1; transform: none; }
  .has-menu.is-menu-open .nav__link:nth-of-type(2) { transition-delay: 30ms; }
  .has-menu.is-menu-open .nav__link:nth-of-type(3) { transition-delay: 60ms; }
  .has-menu.is-menu-open .nav__link:nth-of-type(4) { transition-delay: 90ms; }
  .has-menu.is-menu-open .nav__link:nth-of-type(5) { transition-delay: 120ms; }
}

/* Tablets: a compact panel aligned under the menu button */
@media (min-width: 600px) and (max-width: 899px) {
  .has-menu .nav { left: auto; width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .has-menu .nav, .has-menu .nav__link { transform: none !important; transition-delay: 0s !important; }
  .menu-toggle__line { transition: none; }
}

/* ---------- 07. THEME TOGGLE -------------------------------------------- */
.theme-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  border-radius: var(--radius-pill);
}

.theme-toggle__track {
  position: relative;
  display: block;
  width: 64px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--toggle-track);
  border: 1.5px solid var(--line-2);
  transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3) ease;
}

.theme-toggle:hover .theme-toggle__track { border-color: var(--ink); }

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--toggle-knob);
  color: var(--toggle-icon);
  transition: transform 560ms var(--ease-spring), background-color var(--dur-3) ease;
}

:root[data-theme="dark"] .theme-toggle__knob { transform: translateX(28px); }

.theme-toggle:active .theme-toggle__knob { scale: 0.9; }

.theme-toggle__icon {
  width: 17px;
  height: 17px;
  overflow: visible;
}

.theme-toggle__core {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 560ms var(--ease-spring);
}

.theme-toggle__cut { transition: transform 560ms var(--ease-out); }

.theme-toggle__rays {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: opacity var(--dur-2) ease, transform 560ms var(--ease-out);
}

:root[data-theme="dark"] .theme-toggle__core { transform: scale(1.4); }
:root[data-theme="dark"] .theme-toggle__cut { transform: translate(-5.5px, 5.5px); }
:root[data-theme="dark"] .theme-toggle__rays { opacity: 0; transform: rotate(-60deg) scale(0.4); }

/* Circular reveal when switching theme (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* Fallback colour cross-fade */
.theme-fade,
.theme-fade *,
.theme-fade *::before,
.theme-fade *::after {
  transition:
    background-color 450ms var(--ease-out),
    color 450ms var(--ease-out),
    border-color 450ms var(--ease-out),
    fill 450ms var(--ease-out) !important;
}

/* ---------- 08. BUTTONS, PILLS, CHIPS & STATUS -------------------------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--dur-2) var(--ease-spring),
    background-color var(--dur-2) ease,
    color var(--dur-2) ease,
    border-color var(--dur-2) ease,
    box-shadow var(--dur-3) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-3) var(--ease-spring); }
.btn:hover .icon--arrow { transform: translate(3px, -3px); }
.btn:hover .icon--download { transform: translateY(2px); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn--primary:hover { box-shadow: 0 16px 30px -16px rgb(var(--burgundy-rgb) / 0.7); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--outline:hover { border-color: var(--ink); }

.btn--soft {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--feature {
  background: var(--feature-chip-bg);
  color: var(--feature-chip-ink);
}

.btn--lg {
  --btn-h: 60px;
  padding: 0 32px;
  font-size: var(--fs-md);
}

.btn--sm {
  --btn-h: var(--tap);
  padding: 0 18px;
  font-size: var(--fs-sm);
}

.btn--icon {
  width: var(--btn-h);
  padding: 0;
}

.btn--icon .icon { width: 20px; height: 20px; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

/* Filter / segmented pills */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-group--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px;
  margin: -4px;
}

.pill-group--scroll::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  transition:
    background-color var(--dur-2) ease,
    color var(--dur-2) ease,
    border-color var(--dur-2) ease,
    transform var(--dur-2) var(--ease-spring);
}

.pill:hover { border-color: var(--ink); }
.pill:active { transform: scale(0.96); }

.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.pill__count {
  font-size: var(--fs-2xs);
  font-weight: 700;
  opacity: 0.6;
}

/* Small information chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
}

.chip .icon { width: 16px; height: 16px; }

/* Workout status */
.status {
  --s-bg: transparent;
  --s-ink: currentColor;
  --s-line: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--s-line);
  background: var(--s-bg);
  color: var(--s-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--completed { --s-bg: var(--ink); --s-ink: var(--bg); --s-line: var(--ink); }
.status--scheduled { --s-line: var(--line-2); --s-ink: var(--ink); }
.status--skipped { --s-line: var(--line-2); --s-ink: var(--ink-2); border-style: dashed; }
.status--rest { --s-bg: var(--accent-soft); --s-line: transparent; --s-ink: var(--ink); }

/* ---------- 09. CARDS & SHARED PAGE HERO -------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--pad-card);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out),
    background-color var(--dur-3) ease;
}

.card--lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}

.card__title em { font-style: italic; font-weight: 400; }

.card__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-2);
}

/* Inner-page editorial header */
.page-hero {
  display: grid;
  gap: var(--space-5);
  align-items: end;
  padding-block: clamp(8px, 2.5vw, 32px) clamp(24px, 3.5vw, 44px);
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 1.6vw, 20px);
  color: var(--ink-2);
}

.page-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-page);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
}

.page-hero__title .heart { font-size: 0.55em; vertical-align: 0.35em; }

.page-hero__lede {
  max-width: 44ch;
  margin-top: clamp(14px, 1.8vw, 22px);
  color: var(--ink-2);
  font-size: var(--fs-md);
}

.page-hero__aside {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .page-hero__aside { justify-content: flex-end; padding-bottom: 8px; }
}

/* Content swap (used when changing day / week / month) */
.swap {
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.swap.is-out {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- 10. TODAY PAGE ---------------------------------------------- */
.today-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.today-grid > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 1024px) {
  .workout-card { grid-column: span 7; }
  .menu-card { grid-column: span 5; }
}

/* A — Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--feature-bg);
  color: var(--feature-ink);
}

.hero__shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero__shape--ring {
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1;
  right: -12%;
  top: -55%;
  border: 1.5px solid color-mix(in srgb, var(--feature-hi) 35%, transparent);
}

.hero__shape--ring-2 {
  width: clamp(180px, 26vw, 360px);
  aspect-ratio: 1;
  right: -4%;
  top: -30%;
  border: 1.5px solid color-mix(in srgb, var(--feature-hi) 22%, transparent);
}

.hero__shape--blob {
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 1;
  left: -60px;
  bottom: -140px;
  background: color-mix(in srgb, var(--feature-hi) 12%, transparent);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--feature-ink) 82%, transparent);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--feature-hi);
  animation: pulse 2.6s var(--ease-in-out) infinite;
}

.hero__text {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--feature-hi);
  text-wrap: balance;
}

.hero__title .heart {
  font-size: 0.55em;
  vertical-align: 0.32em;
  margin-left: 0.06em;
  animation: beat 3.2s var(--ease-in-out) infinite;
  transform-origin: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.hero__date {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero__message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--feature-chip-bg);
  color: var(--feature-chip-ink);
  font-weight: 600;
  line-height: 1.25;
}

.hero__message .icon { width: 18px; height: 18px; }

.hero__badge {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 3.4vw, 40px);
  width: clamp(96px, 10vw, 132px);
  aspect-ratio: 1;
  color: var(--feature-hi);
}

.hero__badge svg { width: 100%; height: 100%; overflow: visible; }

.hero__badge-text {
  transform-origin: 60px 60px;
  animation: spin 28s linear infinite;
}

.hero__badge-text text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: currentColor;
}

.hero__badge-heart {
  font-family: var(--font-body);
  font-size: 30px;
  fill: currentColor;
}

@media (min-width: 640px) {
  .hero__meta { padding-right: calc(clamp(96px, 10vw, 132px) + 24px); }
}

@media (max-width: 639px) {
  .hero__badge { display: none; }
  .hero__top { flex-direction: column; align-items: stretch; }
}

/* Yesterday · Today · Tomorrow */
.day-switch {
  --index: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--feature-ink) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--feature-ink) 18%, transparent);
}

.day-switch__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--radius-pill);
  background: var(--feature-chip-bg);
  transform: translateX(calc(100% * var(--index)));
  transition: transform var(--dur-3) var(--ease-out);
}

.day-switch__btn {
  position: relative;
  z-index: 1;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--feature-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--dur-2) ease, opacity var(--dur-2) ease;
}

.day-switch__btn:hover { opacity: 0.8; }
.day-switch__btn[aria-pressed="true"] { color: var(--feature-chip-ink); opacity: 1; }
.day-switch__btn:focus-visible { outline-color: var(--feature-hi); outline-offset: 0; }

/* B — Workout */
.workout-card {
  background: var(--tint-bg);
  color: var(--tint-ink);
  border-color: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.workout-card .card__eyebrow { color: inherit; opacity: 0.75; margin: 0; }

.workout__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workout__head { margin-top: 14px; }

.workout__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-chip);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workout__tag .icon { width: 16px; height: 16px; }

.workout__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
  margin-top: clamp(22px, 3vw, 34px);
}

.workout__title em { font-style: italic; font-weight: 400; }

.workout__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.workout__big {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 2.6rem + 4.4vw, 6.5rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.8;
  opacity: 0.9;
}

.workout__big small {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.5em;
}

.workout__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.workout__meta .chip { background: var(--tint-chip); color: inherit; }

.workout__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

.reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px dashed color-mix(in srgb, var(--tint-ink) 40%, transparent);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.reminder .icon {
  margin-top: 1px;
  transform-origin: 50% 10%;
  animation: ring 4s var(--ease-in-out) 1.2s infinite;
}

.reminder strong { font-weight: 700; }

/* Completion */
.completion {
  margin-top: auto;
  padding-top: clamp(22px, 3vw, 28px);
}

.completion__inner {
  margin-top: clamp(22px, 3vw, 30px);
  padding-top: clamp(20px, 2.6vw, 26px);
  border-top: 1px solid color-mix(in srgb, var(--tint-ink) 18%, transparent);
}

.completion__q {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, var(--tint-ink) 32%, transparent);
  background: var(--tint-chip);
  color: var(--tint-ink);
  font-weight: 600;
  transition:
    background-color var(--dur-3) var(--ease-out),
    color var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out),
    opacity var(--dur-3) ease,
    transform var(--dur-2) var(--ease-spring);
}

.choice:hover { transform: translateY(-2px); border-color: var(--tint-ink); }
.choice:active { transform: scale(0.96); }

.choice__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background-color var(--dur-3) ease, color var(--dur-3) ease, border-color var(--dur-3) ease;
}

.choice__mark .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-spring);
}

.choice--yes[aria-pressed="true"] {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

.choice--yes[aria-pressed="true"] .choice__mark {
  background: var(--btn-ink);
  border-color: var(--btn-ink);
  color: var(--btn-bg);
}

.choice--no[aria-pressed="true"] {
  background: transparent;
  border-color: var(--tint-ink);
  border-width: 2px;
}

.choice--no[aria-pressed="true"] .choice__mark {
  background: var(--tint-ink);
  border-color: var(--tint-ink);
  color: var(--tint-bg);
}

.choice[aria-pressed="true"] .choice__mark .icon { opacity: 1; transform: none; }
.choice-group.has-choice .choice[aria-pressed="false"] { opacity: 0.55; }
.choice.is-pop .choice__mark { animation: pop 520ms var(--ease-spring); }

.completion__feedback {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.completion__feedback.is-in { animation: rise 420ms var(--ease-out) both; }

.completion__future {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  opacity: 0.8;
}

/* Rest day */
.rest {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding-block: clamp(8px, 2vw, 20px) 4px;
}

.rest__art {
  width: clamp(76px, 9vw, 104px);
  height: auto;
  color: inherit;
}

.rest__art .moon { animation: float 6s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.rest__art .star { animation: twinkle 3s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.rest__art .star:nth-of-type(2) { animation-delay: 0.9s; }
.rest__art .star:nth-of-type(3) { animation-delay: 1.8s; }

.rest__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.rest__title em { font-style: italic; font-weight: 400; }

.rest__text {
  max-width: 40ch;
  font-size: var(--fs-md);
  opacity: 0.85;
}

.rest__ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rest__ideas .chip { background: var(--tint-chip); color: inherit; }

/* C — Menu */
.menu-card .card__head { margin-bottom: var(--space-3); }

.menu-list {
  display: grid;
}

.menu-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.menu-item:first-child { border-top: 0; }

.menu-item__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-2) ease;
}

.menu-item:hover .menu-item__icon { transform: rotate(-10deg) scale(1.06); }

.menu-item__label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-3);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.menu-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-spring);
}

.menu-item__link .icon { width: 15px; height: 15px; transition: transform var(--dur-3) var(--ease-spring); }

.menu-item__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.menu-item__link:hover .icon { transform: translate(2px, -2px); }

.menu-item__note {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--ink-3);
  white-space: nowrap;
}

@media (min-width: 720px) and (max-width: 1023px) {
  .menu-list { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .menu-item:nth-child(2) { border-top: 0; }
}

@media (max-width: 479px) {
  .menu-item { grid-template-columns: 44px minmax(0, 1fr); }
  .menu-item__icon { width: 44px; height: 44px; }
  .menu-item__link,
  .menu-item__note { grid-column: 2; justify-self: start; }
  .menu-item__link { margin-top: -4px; }
  .menu-item__note { margin-top: -8px; }
}

/* D — Daily journal */
.journal-card {
  display: grid;
  gap: var(--space-5) clamp(24px, 4vw, 56px);
}

@media (min-width: 900px) {
  .journal-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: start; }
}

.journal-card__intro p {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 34ch;
}

.journal-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-wrap: balance;
}

.journal-card__title .heart { font-size: 0.6em; vertical-align: 0.25em; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink-2);
}

.textarea {
  display: block;
  width: 100%;
  min-height: clamp(180px, 22vw, 230px);
  resize: vertical;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-2);
  background: var(--surface-sunk);
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.65;
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-out), background-color var(--dur-2) ease;
}

.textarea::placeholder {
  color: var(--ink-3);
  font-style: italic;
  opacity: 1;
}

.textarea:hover { border-color: var(--ink-3); }

.textarea:focus,
.textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 5px var(--focus-halo);
}

.journal-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 16px;
}

.journal-form__hint {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.save-btn .save-btn__done { display: none; }
.save-btn.is-saved .save-btn__idle { display: none; }
.save-btn.is-saved .save-btn__done { display: inline-flex; align-items: center; gap: 8px; animation: pop 480ms var(--ease-spring); }

/* ---------- 11. CALENDAR PAGE ------------------------------------------- */
.cal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: clamp(16px, 2vw, 22px);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cal-card { padding: clamp(12px, 2.6vw, 32px); }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 0.8vw, 10px);
}

.cal-weekdays {
  margin-bottom: clamp(6px, 1vw, 12px);
  text-align: center;
  color: var(--ink-3);
}

.cal-weekdays abbr { text-decoration: none; }

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: var(--tap);
  aspect-ratio: 1 / 1;
  padding: 4px;
  border-radius: clamp(12px, 1.4vw, 20px);
  border: 1.5px solid transparent;
  background: var(--surface-sunk);
  color: var(--ink);
  transition:
    background-color var(--dur-2) ease,
    color var(--dur-2) ease,
    border-color var(--dur-2) ease,
    transform var(--dur-2) var(--ease-spring),
    box-shadow var(--dur-2) ease;
}

.cal-day:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cal-day:active { transform: scale(0.95); }

.cal-day__num {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.4rem);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}

.cal-day__label {
  display: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-2xs);
  font-weight: 600;
  opacity: 0.75;
}

/* Status markers (also used in the legend) */
.mark {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mark--scheduled { border: 1.5px solid currentColor; }
.mark--completed { background: currentColor; box-shadow: 0 0 0 2px var(--accent); }
.mark--skipped {
  border: 1.5px dashed currentColor;
  opacity: 0.7;
}
.mark--rest {
  width: 12px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.45;
}

.cal-day.is-outside {
  background: transparent;
  color: var(--ink-3);
}

.cal-day.is-outside .mark { opacity: 0.35; }

.cal-day.is-today {
  background: var(--ink);
  color: var(--bg);
}

.cal-day.is-today .mark--completed { box-shadow: none; }

.cal-day[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.cal-day.is-today[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--ink);
}

.cal-day:focus-visible { outline-offset: 2px; z-index: 1; }

@media (min-width: 900px) {
  .cal-day {
    aspect-ratio: 1.2 / 1;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .cal-day__foot {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
  }

  .cal-day__label { display: block; }
}

.cal-grid.slide-next { animation: slideFromRight 460ms var(--ease-out) both; }
.cal-grid.slide-prev { animation: slideFromLeft 460ms var(--ease-out) both; }

.cal-month-title { min-height: 1em; }

/* Workout details */
.details {
  margin-top: var(--gap);
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--feature-bg);
  color: var(--feature-ink);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.details::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  aspect-ratio: 1;
  right: -120px;
  bottom: -180px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--feature-hi) 30%, transparent);
}

@media (min-width: 900px) {
  .details { grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr); align-items: center; }
}

.details__date {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.details__day {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: var(--feature-hi);
}

.details__weekday {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.1;
}

.details__month {
  display: block;
  margin-top: 6px;
  opacity: 0.8;
}

.details__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.details__top .eyebrow { opacity: 0.8; }

.details .status--completed { --s-bg: var(--feature-chip-bg); --s-ink: var(--feature-chip-ink); --s-line: var(--feature-chip-bg); }
.details .status--scheduled,
.details .status--skipped { --s-line: color-mix(in srgb, var(--feature-ink) 45%, transparent); --s-ink: var(--feature-ink); }
.details .status--rest { --s-bg: color-mix(in srgb, var(--feature-hi) 22%, transparent); --s-ink: var(--feature-ink); }

.details__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.details__text {
  margin-top: 12px;
  max-width: 48ch;
  opacity: 0.85;
}

.details__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 24px;
  margin-top: 22px;
}

.details__list > div {
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--feature-ink) 20%, transparent);
}

.details__list dt { opacity: 0.7; margin-bottom: 4px; }
.details__list dd { font-weight: 600; font-size: var(--fs-md); }

.details__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.details .btn--ghost-feature {
  background: transparent;
  color: var(--feature-ink);
  border-color: color-mix(in srgb, var(--feature-ink) 40%, transparent);
}

.details .btn--ghost-feature:hover { border-color: var(--feature-ink); }

/* ---------- 12. GROCERY PAGE -------------------------------------------- */
.week-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--feature-bg);
  color: var(--feature-ink);
}

.week-nav .btn--icon {
  background: var(--feature-chip-bg);
  color: var(--feature-chip-ink);
}

.week-nav__label { text-align: center; min-width: 0; }

.week-nav__eyebrow {
  display: block;
  opacity: 0.8;
}

.week-nav__range {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--feature-hi);
}

.grocery-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: clamp(20px, 3vw, 32px) 0 clamp(16px, 2vw, 24px);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.grocery-summary strong { color: var(--ink); font-weight: 700; }

.grocery-grid {
  columns: 1;
  column-gap: var(--gap);
}

@media (min-width: 720px) { .grocery-grid { columns: 2; } }
@media (min-width: 1120px) { .grocery-grid { columns: 3; } }

.grocery-cat {
  break-inside: avoid;
  margin-bottom: var(--gap);
  display: block;
}

.grocery-cat:nth-child(5n + 1) {
  background: var(--tint-bg);
  color: var(--tint-ink);
  border-color: transparent;
}

.grocery-cat:nth-child(5n + 1) .grocery-item__qty { color: inherit; }

.grocery-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid currentColor;
}

.grocery-cat__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1;
}

.grocery-cat__num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 400;
  opacity: 0.6;
}

.grocery-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.grocery-list li:last-child { border-bottom: 0; padding-bottom: 2px; }

.grocery-item__name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 500;
}

.grocery-item__leader {
  flex: 1 1 16px;
  min-width: 16px;
  border-bottom: 1.5px dotted color-mix(in srgb, currentColor 35%, transparent);
  transform: translateY(-5px);
}

.grocery-item__qty {
  flex: none;
  font-weight: 700;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ---------- 13. JOURNAL PAGE -------------------------------------------- */
.journal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.journal-toolbar .pill-group { min-width: 0; max-width: 100%; }

.entry-group + .entry-group { margin-top: clamp(36px, 6vw, 64px); }

.entry-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(16px, 2.4vw, 24px);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.04em;
  line-height: 1;
}

.entry-group__title em { font-style: italic; font-weight: 400; }

.entry-group__count {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.entries {
  display: grid;
  gap: var(--gap);
}

.entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry__date {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: clamp(78px, 9vw, 104px);
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: var(--tint-bg);
  color: var(--tint-ink);
  text-align: center;
}

.entry:nth-child(3n + 2) .entry__date { background: var(--feature-bg); color: var(--feature-ink); }
.entry:nth-child(3n + 2) .entry__day { color: var(--feature-hi); }

.entry__day {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.8rem + 2vw, 3.4rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.entry__fulldate { color: var(--ink-2); }

.entry__workout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.entry__workout .icon { width: 18px; height: 18px; opacity: 0.7; }

.entry__text {
  margin-top: 12px;
  max-width: 64ch;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 50;
  line-height: 1.6;
  color: var(--ink-2);
}

.entry.is-highlight {
  animation: highlight 2.4s var(--ease-out);
}

@media (max-width: 559px) {
  .entry { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .entry__date {
    width: auto;
    grid-auto-flow: column;
    justify-content: start;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
    justify-self: start;
    border-radius: var(--radius-pill);
  }
  .entry__day { font-size: 1.9rem; }
}

.empty-state {
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  color: var(--ink-2);
}

.empty-state p:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- 14. RECIPES PAGE -------------------------------------------- */
.feature-recipe {
  display: grid;
  gap: 0;
  margin-bottom: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--feature-bg);
  color: var(--feature-ink);
  overflow: hidden;
}

@media (min-width: 760px) {
  .feature-recipe { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.feature-recipe__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 4.5vw, 56px);
}

.feature-recipe__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--feature-hi);
  text-wrap: balance;
}

.feature-recipe__text { max-width: 40ch; opacity: 0.88; font-size: var(--fs-md); }

.feature-recipe__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-recipe__meta .chip {
  background: color-mix(in srgb, var(--feature-ink) 10%, transparent);
  color: var(--feature-ink);
}

.feature-recipe__media {
  position: relative;
  min-height: 280px;
  margin: 10px;
  border-radius: calc(var(--radius-xl) - 10px);
  overflow: hidden;
}

.feature-recipe__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.feature-recipe:hover .feature-recipe__media img { transform: scale(1.04); }

@media (min-width: 760px) {
  .feature-recipe__media { order: -1; min-height: 420px; }
}

.recipe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.recipe-toolbar .pill-group { min-width: 0; max-width: 100%; }

.recipe-count { color: var(--ink-2); font-size: var(--fs-sm); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--gap);
}

@media (min-width: 480px) and (max-width: 619px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.recipe-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.recipe-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: var(--accent-soft);
}

.recipe-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.recipe-card:hover .recipe-card__media img { transform: scale(1.06) rotate(-1deg); }

.recipe-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgb(var(--white-rgb) / 0.88);
  color: var(--burgundy);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.recipe-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.recipe-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.recipe-card__meta .icon { width: 15px; height: 15px; }

.recipe-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  min-height: var(--tap);
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
}

/* Whole card is the touch target */
.recipe-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.recipe-card__link:focus-visible { outline: none; }
.recipe-card:has(.recipe-card__link:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.recipe-card__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.recipe-card__arrow .icon { width: 16px; height: 16px; }

.recipe-card:hover .recipe-card__arrow {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--surface);
}

.recipe-card.is-highlight { animation: highlight 2.4s var(--ease-out); }

/* ---------- 15. FOOTER RIBBON & TOAST ----------------------------------- */
.site-footer {
  padding-bottom: clamp(20px, 3vw, 32px);
}

.ribbon {
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--feature-bg);
  color: var(--feature-hi);
}

.ribbon__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ribbon:hover .ribbon__track { animation-play-state: paused; }

.ribbon__track span {
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.98);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}


/* ---------- 16. MOTION -------------------------------------------------- */
.reveal {
  animation: rise 760ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 40ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes beat {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.14); }
  86% { transform: scale(0.98); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes ring {
  0%, 86%, 100% { transform: rotate(0); }
  89% { transform: rotate(14deg); }
  92% { transform: rotate(-12deg); }
  95% { transform: rotate(6deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

@keyframes highlight {
  0%, 40% { box-shadow: 0 0 0 4px var(--accent), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 transparent, var(--shadow-sm); }
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page { animation: pageIn 420ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ribbon__track { animation: none !important; }
}

/* ---------- 17. PHASE 2 ADDITIONS --------------------------------------- */

/* Stars — cumulative 0–3, tied to a video */
.stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 14px;
}

.stars__row {
  display: flex;
  margin-left: -9px;
}

.star {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: inherit;
  transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2) ease;
}

.star:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  transform: scale(1.08);
}

.star:active { transform: scale(0.9); }
.star:focus-visible { outline-offset: 0; border-radius: 50%; }

.star__icon {
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0.55;
  transition: fill var(--dur-3) var(--ease-out), opacity var(--dur-2) ease, color var(--dur-2) ease;
}

.star[aria-pressed="true"] { color: var(--star-on); }
.star[aria-pressed="true"] .star__icon { fill: currentColor; opacity: 1; }
.star.is-pop .star__icon { animation: pop 520ms var(--ease-spring); }

.stars__caption {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Previous notes — read-only history attached to a workout */
.past-notes {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--tint-chip);
}

.past-notes__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  opacity: 0.75;
}

.past-notes__title .icon { width: 15px; height: 15px; }

.past-notes__list { display: grid; gap: 12px; }

.past-notes__list li + li {
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.past-notes__date {
  display: block;
  margin-bottom: 3px;
  opacity: 0.65;
}

.past-notes__text {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  font-variation-settings: "SOFT" 50;
  line-height: 1.5;
  opacity: 0.92;
}

/* Several workouts on one day */
.workout-items {
  display: grid;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.workout-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--tint-chip);
}

.workout-item__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
}

.workout-item__num {
  align-self: start;
  min-width: 1.4em;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  opacity: 0.55;
}

.workout-item__kicker { opacity: 0.7; }

.workout-item__title {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}

.workout-item__meta {
  margin-top: 3px;
  font-size: var(--fs-sm);
  opacity: 0.8;
}

.workout-item__extra { padding-left: calc(1.4em * 1.6 + 14px); }
.workout-item__extra .stars { margin-top: 8px; }

.workout-item__extra .past-notes {
  margin-top: 8px;
  padding: 2px 0 2px 14px;
  border-radius: 0;
  background: none;
  border-left: 2px solid color-mix(in srgb, currentColor 22%, transparent);
}

.workout-item__extra .exercise-list { padding: 0; background: none; margin-top: 8px; }
.workout-item__extra .reminder { margin-top: 12px; }

@media (max-width: 559px) {
  .workout-item__top { grid-template-columns: auto minmax(0, 1fr); }
  .workout-item__action { grid-column: 1 / -1; }
  .workout-item__extra { padding-left: 0; }
}

/* Gym exercise list */
.exercise-list {
  display: grid;
  margin-top: clamp(18px, 2.6vw, 24px);
  padding: 4px 18px;
  border-radius: var(--radius-md);
  background: var(--tint-chip);
}

.exercise {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 13px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.exercise:first-child { border-top: 0; }

.exercise__num {
  min-width: 1.5em;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.55;
}

.exercise__name { font-weight: 600; line-height: 1.3; }

.exercise__tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
  white-space: nowrap;
}

.exercise__load {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-sm);
  opacity: 0.75;
}

.exercise__load--tbd { font-style: italic; }

.exercise__sets {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* Studio reminders */
.reminder + .reminder { margin-top: 10px; }

.reminder--soft {
  border-style: solid;
  border-color: transparent;
  background: var(--tint-chip);
}

.reminder--soft .icon { animation: none; }

/* Completion hint & "no workout" state */
.completion__hint {
  margin-top: 2px;
  font-size: var(--fs-xs);
  opacity: 0.68;
}

.rest--none .rest__art { opacity: 0.85; }

/* Calendar: marker shape = workout type, fill = recorded status */
.cal-day__foot { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 9px; }

.mark--video { border: 1.5px solid currentColor; }
.mark--studio { border: 1.5px solid currentColor; border-radius: 2px; }
.mark--gym { border: 1.5px solid currentColor; border-radius: 1px; transform: rotate(45deg) scale(0.88); }
.mark--multi { border: 1.5px solid currentColor; border-radius: 3px 50% 50% 3px; }
.mark--filled { background: currentColor; }
.mark--dashed { border-style: dashed; opacity: 0.75; }

.cal-day[data-status="completed"] .mark { background: currentColor; }
.cal-day[data-status="skipped"] .mark { border-style: dashed; opacity: 0.75; }

.cal-day__count {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.cal-day.has-workout:not(.is-today):not([aria-pressed="true"]):not(.is-outside) {
  background: color-mix(in srgb, var(--surface-sunk) 80%, var(--accent));
}

@media (min-width: 900px) {
  .cal-day__foot { justify-content: flex-start; }
  .cal-day__label { font-size: var(--fs-2xs); }
}

/* Calendar details card (feature colours) */
.details .stars { margin-top: 0; --star-on: var(--feature-hi); }
.details__stars dd { margin-top: -8px; }
.details__title em { font-style: italic; font-weight: 400; }
.details .past-notes { background: color-mix(in srgb, var(--feature-ink) 8%, transparent); }
.details .exercise-list { background: color-mix(in srgb, var(--feature-ink) 8%, transparent); }
.details .reminder { margin-top: 18px; border-color: color-mix(in srgb, var(--feature-ink) 40%, transparent); }
.details .reminder--soft { border-color: transparent; background: color-mix(in srgb, var(--feature-ink) 8%, transparent); }
.details .workout-item { background: color-mix(in srgb, var(--feature-ink) 8%, transparent); }
.details .workout-item__extra .exercise-list { background: none; }
.details .workout-items { margin-top: 18px; }
.details .btn--feature.btn--sm { --btn-h: 44px; }

/* Journal: real vs sample entries */
.entry__badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.demo-banner p { max-width: 60ch; }
.demo-banner strong { color: var(--ink); }

.entry--demo { border-style: dashed; border-color: var(--line-2); }

.empty-state p + p { max-width: 46ch; margin-inline: auto; }
.empty-state__btn { margin-top: 22px; }

/* ---------- 18. PHASE 3 ADDITIONS --------------------------------------- */

/* Front-splits reminder (motivational, not an exercise record) */
.follow-up {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 24px);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  font-style: italic;
  line-height: 1.35;
}

.follow-up .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  animation: twinkle 3.2s var(--ease-in-out) infinite;
}

.follow-up + .workout-items { margin-top: 12px; }
.details .follow-up { margin-top: 16px; border-color: color-mix(in srgb, var(--feature-ink) 32%, transparent); }

/* Special events (travel, birthdays, holidays…) */
.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 14px;
  padding: 6px 16px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--tint-chip);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.25;
}

.event-pill .icon { width: 17px; height: 17px; flex: none; }

.hero__events { display: contents; }

.event-pill--hero {
  margin-top: 0;
  min-height: 44px;
  padding: 10px 20px 10px 14px;
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--feature-hi) 55%, transparent);
  color: var(--feature-hi);
  animation: rise 520ms var(--ease-out) both;
}

.event-pill--feature {
  background: color-mix(in srgb, var(--feature-ink) 10%, transparent);
  color: var(--feature-ink);
}

.details__events { display: flex; flex-wrap: wrap; gap: 8px; }

/* Read-only check-in (yesterday) */
.completion__record {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 6px;
  font-size: var(--fs-sm);
  opacity: 0.85;
}

/* Journal: read-only / preview states for days other than today */
.journal-form[data-mode="past"] .textarea,
.journal-form[data-mode="future"] .textarea {
  resize: none;
  cursor: default;
  border-style: dashed;
  background: transparent;
}

.journal-form[data-mode="past"] .textarea:focus { box-shadow: none; border-color: var(--ink-3); }
.journal-form[data-mode="future"] .textarea { opacity: 0.7; }
.journal-form[data-mode="past"] .journal-form__hint,
.journal-form[data-mode="future"] .journal-form__hint { font-style: italic; }

/* Calendar: rest and event markers */
.mark--event {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px currentColor;
  transform: rotate(45deg);
}

.cal-day[data-status="rest"] .mark--rest { opacity: 0.55; }
.cal-day.is-today .mark--event { background: transparent; }

/* ---------- 19. PHASE 4 — read-only star ratings ------------------------ */
/* Same look as the interactive stars, but static (Calendar, Yesterday,
   Tomorrow, and Today before the workout is completed). */
.star.is-on { color: var(--star-on); }
.star.is-on .star__icon { fill: currentColor; opacity: 1; }

.star--static { cursor: default; }
.star--static:hover { background: none; transform: none; }

.stars__hint {
  flex-basis: 100%;
  margin-top: -2px;
  font-size: var(--fs-xs);
  font-style: italic;
  opacity: 0.7;
}

/* ---------- 20. PHASE 6 ------------------------------------------------- */

/* Pre-launch switch (attribute set in <head> and kept in sync by script.js) */
html:not([data-prelaunch]) .prelaunch { display: none; }
html[data-prelaunch] .today-grid { display: none; }

/* --- Coming Soon --- */
.prelaunch { display: grid; gap: var(--gap); }

.prelaunch__hero {
  min-height: clamp(460px, 62vh, 620px);
  align-content: space-between;
  gap: clamp(28px, 4vw, 44px);
}

.prelaunch__brand { font-size: var(--fs-xs); letter-spacing: 0.22em; }
.prelaunch__brand .heart { color: var(--feature-hi); font-size: 1.2em; }

.prelaunch__text { display: grid; gap: clamp(10px, 1.6vw, 18px); max-width: 15ch; }

.prelaunch__kicker {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  font-weight: 400;
  color: color-mix(in srgb, var(--feature-ink) 85%, transparent);
  max-width: 28ch;
}

.prelaunch__title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 1.6rem + 9vw, 10rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.05em;
  line-height: 0.84;
  color: var(--feature-hi);
}

.prelaunch__title em { display: block; font-style: italic; font-weight: 400; letter-spacing: -0.03em; padding-left: 0.5em; }

.prelaunch__lede {
  max-width: 30ch;
  font-size: var(--fs-md);
  color: color-mix(in srgb, var(--feature-ink) 85%, transparent);
}

.prelaunch__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.prelaunch__countdown {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, var(--feature-hi) 55%, transparent);
  color: var(--feature-hi);
  font-weight: 600;
}

.prelaunch__countdown:empty { display: none; }

@media (min-width: 640px) {
  .prelaunch__meta { padding-right: calc(clamp(96px, 10vw, 132px) + 24px); }
}

.prelaunch__pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 979px) { .prelaunch__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .prelaunch__pillars { grid-template-columns: minmax(0, 1fr); } }

.prelaunch__pillar {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}

.prelaunch__pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prelaunch__pillar:first-child { background: var(--tint-bg); color: var(--tint-ink); border-color: transparent; }

.prelaunch__num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  opacity: 0.5;
}

.prelaunch__word {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.prelaunch__desc { font-size: var(--fs-sm); color: inherit; opacity: 0.8; max-width: 28ch; }

.prelaunch__peek { display: flex; justify-content: center; padding-top: 8px; }

/* --- Calendar: placeholders before Nov 1, 2026 --- */
.cal-day--blank,
.cal-day--blank:hover {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn[disabled] { cursor: not-allowed; }

/* Yesterday on launch day */
.day-switch__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Christmas (Dec 25, real local date only) --- */
:root {
  --xmas-green: #2F4A3A;
  --xmas-green-ink: #F0E6E1;
}

.icon--holly { width: 15px; height: 15px; color: var(--xmas-green); fill: currentColor; stroke: none; }

/* Snow sits BEHIND the content (cards cover it) and never takes clicks */
.snowfall {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.is-christmas .page,
body.is-christmas .site-footer { position: relative; z-index: 1; }

.snowflake {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(var(--burgundy-rgb) / 0.12);
  opacity: 0.9;
  will-change: transform;
  animation: snowfall var(--d) linear var(--delay) infinite;
}

.snowflake--star {
  border-radius: 1px;
  background: var(--pink);
  box-shadow: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  width: calc(var(--s) * 2.2);
  height: calc(var(--s) * 2.2);
}

:root[data-theme="dark"] .snowflake { background: var(--beige); box-shadow: none; opacity: 0.55; }

@keyframes snowfall {
  to { transform: translate3d(var(--drift), 105vh, 0) rotate(160deg); }
}

/* Festive hero: forest-green accents, a little sparkle */
.hero--christmas .hero__message {
  background: var(--xmas-green);
  color: var(--xmas-green-ink);
}

.hero--christmas .hero__eyebrow { gap: 8px; }
.hero--christmas .hero__eyebrow-dot { display: none; }
.hero--christmas .hero__eyebrow .icon--holly { width: 18px; height: 18px; color: var(--feature-hi); }

.hero--christmas::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--feature-hi) 55%, transparent) 1.2px, transparent 1.6px),
    radial-gradient(circle, color-mix(in srgb, var(--white) 70%, transparent) 1px, transparent 1.4px);
  background-size: 46px 46px, 71px 71px;
  background-position: 0 0, 23px 31px;
  opacity: 0.38;
  animation: snowdrift 18s linear infinite;
}

@keyframes snowdrift { to { background-position: 0 460px, 23px 741px; } }

body.is-christmas .workout-card { box-shadow: inset 0 3px 0 var(--xmas-green), var(--shadow-sm); }

.event-pill--christmas .icon { color: var(--xmas-green); }
:root[data-theme="dark"] .event-pill--christmas .icon { color: inherit; }

/* Calendar: Christmas greeting panel (any time Dec 25 is selected) */
.festive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 4px 0 16px;
  padding: clamp(20px, 3vw, 30px);
  padding-right: clamp(110px, 16vw, 160px);
  border-radius: var(--radius-lg);
  background: var(--xmas-green);
  color: var(--xmas-green-ink);
}

.festive__snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgb(var(--white-rgb) / 0.75) 1.2px, transparent 1.7px),
    radial-gradient(circle, rgb(var(--pink-rgb) / 0.7) 1px, transparent 1.5px);
  background-size: 38px 38px, 57px 57px;
  background-position: 0 0, 19px 25px;
  animation: snowdrift 22s linear infinite;
  opacity: 0.6;
}

.festive__tree {
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  bottom: 0;
  width: clamp(80px, 11vw, 120px);
  height: auto;
}

.festive__leaves { fill: rgb(var(--beige-rgb) / 0.16); stroke: rgb(var(--beige-rgb) / 0.75); stroke-width: 2.5; stroke-linejoin: round; }
.festive__trunk { fill: rgb(var(--beige-rgb) / 0.55); }
.festive__bauble { fill: var(--pink); }
.festive__star { fill: var(--pink); transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s var(--ease-in-out) infinite; }

.festive__kicker { display: flex; align-items: center; gap: 8px; opacity: 0.85; }
.festive__kicker .icon--holly { color: var(--pink); width: 17px; height: 17px; }

.festive__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.festive__text { margin-top: 10px; max-width: 40ch; opacity: 0.92; }

@media (max-width: 479px) {
  .festive { padding-right: clamp(20px, 3vw, 30px); padding-bottom: 120px; }
}

/* Reduced motion: snow stays still (scattered), nothing drifts */
@media (prefers-reduced-motion: reduce) {
  .snowflake { top: var(--y); animation: none !important; }
  .hero--christmas::after, .festive__snow { animation: none !important; }
}

/* ---------- 21. PHASE 7 ------------------------------------------------- */
:root {
  --gold: #D6AE6A;
  --gold-soft: #EBD3A4;
  --gold-deep: #9E7A3C;
  --cream: #FBF4EA;
}

/* --- Journal: one-time submission --- */
.journal-form__hint--saved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-style: normal !important;
}

.journal-form__hint--saved::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0E6E1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

:root[data-theme="dark"] .journal-form__hint--saved::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B1923' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}

.journal-form__hint.is-in { animation: rise 520ms var(--ease-out) both; }
.journal-form[data-mode="submitted"] .textarea { resize: none; border-style: solid; background: var(--surface-sunk); cursor: default; }
.journal-form[data-mode="submitted"] .textarea:focus { box-shadow: none; border-color: var(--line-2); }

/* Confirmation dialog */
.confirm {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.confirm::backdrop {
  background: rgb(var(--burgundy-rgb) / 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.confirm__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.confirm[open] .confirm__inner { animation: confirmIn 460ms var(--ease-spring) both; }

@keyframes confirmIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.confirm__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tint-bg);
  color: var(--tint-ink);
}

.confirm__icon .icon { width: 26px; height: 26px; animation: beat 3.2s var(--ease-in-out) infinite; }

.confirm__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.confirm__title .heart { font-size: 0.7em; }
.confirm__text { max-width: 36ch; color: var(--ink-2); }

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* --- Celebration artwork (colours via variables so they fit any surface) --- */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art__glass { fill: none; stroke: var(--art-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art__wine { fill: var(--art-wine); }
.art__bubble { fill: var(--art-cream); animation: bubble 2.8s var(--ease-in-out) infinite; transform-box: fill-box; }
.art__bubble--2 { animation-delay: 0.9s; }
.art__bubble--3 { animation-delay: 1.7s; }
.art__spark { fill: var(--art-gold); transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s var(--ease-in-out) infinite; }
.art__spark--2 { animation-delay: 0.8s; }
.art__spark--3 { animation-delay: 1.5s; }
.art__ray { fill: none; stroke: var(--art-gold); stroke-width: 3; stroke-linecap: round; }

.art__plate { fill: var(--art-fill); }
.art__tier { fill: var(--art-tier); stroke: var(--art-line); stroke-width: 3; }
.art__tier--top { fill: var(--art-top); }
.art__icing { fill: var(--art-cream); stroke: var(--art-line); stroke-width: 2; stroke-linejoin: round; }
.art__digit { font-family: var(--font-display); font-size: 34px; font-weight: 800; font-style: italic; fill: var(--art-gold); stroke: var(--art-line); stroke-width: 1; }
.art__flame { fill: var(--art-gold); transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s var(--ease-in-out) infinite; }
.art__flame--2 { animation-delay: 0.5s; }
.art__sprinkles path { fill: none; stroke: var(--art-gold); stroke-width: 3; stroke-linecap: round; }
.art__heart { fill: var(--art-heart); transform-box: fill-box; transform-origin: center; animation: floaty 4s var(--ease-in-out) infinite; }
.art__heart--2 { animation-delay: 1.4s; }

@keyframes bubble { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.5; } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(0.88, 1.08) rotate(3deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }

/* --- Confetti (New Year's Eve & 30th birthday) --- */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.is-newyear .page, body.is-newyear .site-footer,
body.is-birthday .page, body.is-birthday .site-footer { position: relative; z-index: 1; }

.confetti__bit {
  position: absolute;
  top: -18px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: 0.85;
  will-change: transform;
  animation: confettiFall var(--d) linear var(--delay) infinite;
}

.confetti__bit--strip { width: calc(var(--s) * 0.5); height: calc(var(--s) * 1.5); border-radius: 2px; }
.confetti__bit--dot { border-radius: 50%; }
.confetti__bit--star { clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); width: calc(var(--s) * 1.8); height: calc(var(--s) * 1.8); }
.confetti__bit--heart {
  width: calc(var(--s) * 1.6);
  height: calc(var(--s) * 1.5);
  clip-path: polygon(50% 100%, 12% 62%, 0 38%, 4% 16%, 18% 4%, 36% 3%, 50% 18%, 64% 3%, 82% 4%, 96% 16%, 100% 38%, 88% 62%);
}

.confetti--newyear .confetti__bit--c0 { background: var(--gold); }
.confetti--newyear .confetti__bit--c1 { background: var(--pink); }
.confetti--newyear .confetti__bit--c2 { background: var(--gold-soft); }
.confetti--newyear .confetti__bit--c3 { background: rgb(var(--burgundy-rgb) / 0.55); }
.confetti--birthday30 .confetti__bit--c0 { background: var(--pink); }
.confetti--birthday30 .confetti__bit--c1 { background: var(--gold); }
.confetti--birthday30 .confetti__bit--c2 { background: rgb(var(--burgundy-rgb) / 0.5); }
.confetti--birthday30 .confetti__bit--c3 { background: var(--gold-soft); }
:root[data-theme="dark"] .confetti--newyear .confetti__bit--c3,
:root[data-theme="dark"] .confetti--birthday30 .confetti__bit--c2 { background: var(--beige); opacity: 0.6; }

@keyframes confettiFall {
  to { transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin)); }
}

/* --- Today hero: shared celebration art layer --- */
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --art-line: var(--feature-hi);
  --art-fill: color-mix(in srgb, var(--feature-hi) 18%, transparent);
  --art-wine: var(--gold);
  --art-gold: var(--gold);
  --art-cream: var(--cream);
  --art-tier: var(--pink);
  --art-top: var(--cream);
  --art-heart: var(--pink);
}

.hero__art .art {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: clamp(16px, 3vw, 36px);
  width: clamp(110px, 14vw, 188px);
  animation: rise 900ms var(--ease-out) 200ms both;
}

:root[data-theme="dark"] .hero__art {
  --art-line: var(--burgundy);
  --art-tier: var(--white);
  --art-top: var(--beige);
  --art-heart: var(--burgundy);
  --art-gold: var(--gold-deep);
}

.hero--newyear .hero__badge,
.hero--birthday .hero__badge { display: none; }

@media (min-width: 640px) {
  .hero--newyear .hero__meta,
  .hero--birthday .hero__meta,
  .hero--newyear .hero__title,
  .hero--birthday .hero__title { padding-right: calc(clamp(110px, 14vw, 188px) + 28px); }
}

@media (max-width: 639px) {
  .hero__art .art { width: 92px; bottom: 14px; right: 14px; opacity: 0.9; }
  .hero--newyear .hero__meta,
  .hero--birthday .hero__meta { padding-bottom: 96px; }
}

/* --- New Year's Eve (Dec 31, every year) --- */
.hero--newyear .hero__message { background: var(--gold); color: var(--burgundy); }
.hero--newyear .hero__eyebrow { gap: 8px; }
.hero--newyear .hero__eyebrow-dot { display: none; }
.hero--newyear .hero__eyebrow .icon { width: 16px; height: 16px; color: var(--gold); animation: twinkle 2.6s var(--ease-in-out) infinite; }
:root[data-theme="dark"] .hero--newyear .hero__eyebrow .icon { color: var(--gold-deep); }

.hero--newyear::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.8px),
    radial-gradient(circle, color-mix(in srgb, var(--feature-hi) 70%, transparent) 1px, transparent 1.5px);
  background-size: 64px 64px, 97px 97px;
  background-position: 10px 14px, 41px 53px;
  opacity: 0.5;
  animation: shimmer 4.5s var(--ease-in-out) infinite;
}

@keyframes shimmer { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.6; } }

body.is-newyear .workout-card { box-shadow: inset 0 3px 0 var(--gold), var(--shadow-sm); }

/* --- 30th birthday (2027-08-10 only) --- */
.hero--birthday .hero__message {
  background: var(--cream);
  color: var(--burgundy);
  box-shadow: 0 0 0 1.5px var(--gold);
}

.hero--birthday .hero__eyebrow { gap: 8px; }
.hero--birthday .hero__eyebrow-dot { display: none; }
.hero--birthday .hero__eyebrow .icon { width: 17px; height: 17px; color: var(--gold); }
:root[data-theme="dark"] .hero--birthday .hero__eyebrow .icon { color: var(--burgundy); }

.hero__thirty {
  position: absolute;
  right: clamp(150px, 19vw, 280px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 4rem + 13vw, 19rem);
  font-weight: 800;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gold) 85%, transparent);
  opacity: 0.8;
  animation: thirtyIn 1.3s var(--ease-out) both;
}

:root[data-theme="dark"] .hero__thirty { -webkit-text-stroke-color: rgb(var(--burgundy-rgb) / 0.35); }

@keyframes thirtyIn {
  from { opacity: 0; transform: translateY(-46%) scale(0.92); }
  to { opacity: 0.8; transform: translateY(-50%) scale(1); }
}

@media (max-width: 639px) {
  .hero__thirty { right: 108px; top: auto; bottom: 4px; transform: none; font-size: 6.5rem; opacity: 0.5; animation: none; }
}

.hero--birthday::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--gold) 80%, transparent) 1.4px, transparent 1.9px),
    radial-gradient(circle, color-mix(in srgb, var(--feature-hi) 60%, transparent) 1.1px, transparent 1.6px);
  background-size: 58px 58px, 89px 89px;
  background-position: 6px 22px, 37px 41px;
  opacity: 0.45;
  animation: shimmer 5s var(--ease-in-out) infinite;
}

body.is-birthday .workout-card { box-shadow: inset 0 3px 0 var(--gold), var(--shadow-sm); }

/* --- Calendar greeting panels (any time the date is selected) --- */
.festive__art {
  position: absolute;
  right: clamp(12px, 2.6vw, 28px);
  bottom: 10px;
  width: clamp(96px, 12vw, 136px);
  pointer-events: none;
}

.festive__confetti {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 44px 44px, 67px 67px;
  background-position: 0 0, 21px 29px;
  animation: snowdrift 26s linear infinite;
  opacity: 0.55;
}

.festive--newyear {
  background: linear-gradient(140deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: var(--burgundy);
  --art-line: var(--burgundy);
  --art-wine: var(--cream);
  --art-gold: var(--burgundy);
  --art-cream: var(--white);
}

.festive--newyear .festive__confetti {
  background-image:
    radial-gradient(circle, rgb(var(--burgundy-rgb) / 0.35) 1.2px, transparent 1.7px),
    radial-gradient(circle, rgb(var(--white-rgb) / 0.9) 1.3px, transparent 1.8px);
}

.festive--newyear .festive__kicker .icon { width: 16px; height: 16px; animation: twinkle 2.6s var(--ease-in-out) infinite; }

.festive--birthday {
  background: var(--cream);
  color: var(--burgundy);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  --art-line: var(--burgundy);
  --art-fill: rgb(var(--burgundy-rgb) / 0.08);
  --art-tier: var(--pink);
  --art-top: var(--white);
  --art-cream: var(--white);
  --art-gold: var(--gold);
  --art-heart: var(--pink);
}

.festive--birthday .festive__confetti {
  background-image:
    radial-gradient(circle, var(--gold) 1.3px, transparent 1.8px),
    radial-gradient(circle, var(--pink) 1.6px, transparent 2.1px);
}

.festive--birthday .festive__kicker .icon { width: 17px; height: 17px; color: var(--gold-deep); }

.festive__thirty {
  position: absolute;
  z-index: -1;
  right: clamp(84px, 13vw, 150px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 6vw, 9.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  opacity: 0.7;
}

@media (max-width: 479px) {
  .festive__art { width: 92px; }
  .festive__thirty { right: 96px; top: auto; bottom: 8px; transform: none; font-size: 6rem; }
}

/* Reduced motion: confetti & sparkles hold still */
@media (prefers-reduced-motion: reduce) {
  .confetti__bit { top: var(--y); animation: none !important; transform: rotate(var(--spin)); }
  .hero--newyear::after, .hero--birthday::after, .festive__confetti,
  .art *, .hero__thirty, .hero__art .art { animation: none !important; }
}

/* New Year's Eve & birthday: keep the small icon on the label's line */
.hero--newyear #hero-eyebrow .icon,
.hero--birthday #hero-eyebrow .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* ---------- 22. PHASE 8 ------------------------------------------------- */

/* Daily quote inside the hero pill */
.hero__quote-author {
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
}

/* On celebration days the quote sits quietly under the greeting */
.hero__quote {
  max-width: min(68ch, 100%);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: color-mix(in srgb, var(--feature-ink) 82%, transparent);
  animation: rise 700ms var(--ease-out) 250ms both;
}

.hero__quote .hero__quote-author { font-family: var(--font-body); font-style: normal; font-size: var(--fs-sm); }


/* Shared: celebrations with artwork hide the rotating badge */
.hero--newday .hero__badge,
.hero--valentine .hero__badge { display: none; }

@media (min-width: 640px) {
  .hero--newday .hero__meta, .hero--valentine .hero__meta,
  .hero--newday .hero__title, .hero--valentine .hero__title { padding-right: calc(clamp(110px, 14vw, 188px) + 28px); }
}

@media (max-width: 639px) {
  .hero--newday .hero__meta, .hero--valentine .hero__meta { padding-bottom: 96px; }
}

.hero--newday #hero-eyebrow .icon,
.hero--valentine #hero-eyebrow .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; width: 17px; height: 17px; }
.hero--newday .hero__eyebrow-dot,
.hero--valentine .hero__eyebrow-dot { display: none; }

/* Art pieces */
.art__glow { fill: var(--art-glow, rgb(var(--white-rgb) / 0.12)); animation: glow 5s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.art__sun { fill: var(--art-wine); }
.art__rays path { fill: none; stroke: var(--art-gold); stroke-width: 3; stroke-linecap: round; animation: shimmer 4s var(--ease-in-out) infinite; }
.art__horizon { fill: none; stroke: var(--art-line); stroke-width: 3; stroke-linecap: round; }
.art__petal { fill: var(--art-tier); stroke: var(--art-line); stroke-width: 2; transform-box: fill-box; transform-origin: 50% 100%; animation: unfurl 1.6s var(--ease-out) 300ms both; }
.art__petal--l { animation-delay: 450ms; }
.art__petal--r { animation-delay: 600ms; }
.art__heart-big { fill: var(--art-tier); stroke: var(--art-line); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: beat 3.6s var(--ease-in-out) infinite; }
.art__heart-line { fill: none; stroke: var(--art-cream); stroke-width: 2.5; stroke-dasharray: 5 7; }
.art__heart--a { animation-delay: 0.4s; }
.art__heart--b { animation-delay: 1.6s; }

@keyframes glow { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes unfurl { from { opacity: 0; transform: scale(0.2) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* Confetti: petals, and a gentle rising motion for calm days */
.confetti__bit--petal { width: calc(var(--s) * 1.2); height: calc(var(--s) * 1.8); border-radius: 80% 0 80% 0; }

.confetti--newday .confetti__bit,
.confetti--valentine .confetti__bit {
  top: auto;
  bottom: -20px;
  animation-name: confettiRise;
  animation-duration: calc(var(--d) * 1.4);
  opacity: 0.7;
}

@keyframes confettiRise {
  to { transform: translate3d(var(--drift), -105vh, 0) rotate(calc(var(--spin) / 3)); }
}

.confetti--newday .confetti__bit--c0 { background: var(--gold-soft); }
.confetti--newday .confetti__bit--c1 { background: var(--pink); }
.confetti--newday .confetti__bit--c2 { background: var(--white); box-shadow: 0 0 0 1px rgb(var(--burgundy-rgb) / 0.08); }
.confetti--newday .confetti__bit--c3 { background: var(--gold); }
.confetti--valentine .confetti__bit--c0 { background: var(--pink); }
.confetti--valentine .confetti__bit--c1 { background: rgb(var(--burgundy-rgb) / 0.55); }
.confetti--valentine .confetti__bit--c2 { background: var(--white); box-shadow: 0 0 0 1px rgb(var(--burgundy-rgb) / 0.1); }
.confetti--valentine .confetti__bit--c3 { background: color-mix(in srgb, var(--pink) 60%, var(--burgundy)); }
:root[data-theme="dark"] .confetti--valentine .confetti__bit--c1 { background: var(--beige); opacity: 0.6; }

body.is-newday .page, body.is-newday .site-footer,
body.is-valentine .page, body.is-valentine .site-footer { position: relative; z-index: 1; }

/* --- New Year's Day (2027-01-01): calm, luminous, hopeful --- */
.hero--newday .hero__message { background: var(--cream); color: var(--burgundy); box-shadow: 0 0 0 1.5px var(--gold-soft); }
.hero--newday .hero__eyebrow .icon { color: var(--gold); }
:root[data-theme="dark"] .hero--newday .hero__eyebrow .icon { color: var(--gold-deep); }

.hero--newday::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 85% 105%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 0%, color-mix(in srgb, var(--pink) 30%, transparent), transparent 70%);
  animation: dawn 7s var(--ease-in-out) infinite;
}

@keyframes dawn { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

body.is-newday .workout-card { box-shadow: inset 0 3px 0 var(--gold-soft), var(--shadow-sm); }

/* --- Valentine's Day (2027-02-14): blush & burgundy, tender --- */
.hero--valentine .hero__message { background: var(--pink); color: var(--burgundy); box-shadow: 0 0 0 1.5px rgb(var(--white-rgb) / 0.6); }
:root[data-theme="dark"] .hero--valentine .hero__message { background: var(--burgundy); color: var(--pink); box-shadow: none; }
.hero--valentine .hero__eyebrow .icon { color: var(--pink); fill: currentColor; }
:root[data-theme="dark"] .hero--valentine .hero__eyebrow .icon { color: var(--burgundy); }

.hero--valentine::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--pink) 75%, transparent) 1.5px, transparent 2px),
    radial-gradient(circle, color-mix(in srgb, var(--white) 55%, transparent) 1px, transparent 1.5px);
  background-size: 54px 54px, 83px 83px;
  background-position: 8px 18px, 33px 47px;
  opacity: 0.4;
  animation: shimmer 5s var(--ease-in-out) infinite;
}

body.is-valentine .workout-card { box-shadow: inset 0 3px 0 var(--pink), var(--shadow-sm); }
:root[data-theme="dark"] body.is-valentine .workout-card { box-shadow: inset 0 3px 0 var(--pink), var(--shadow-sm); }

/* Hero art colours for the two new themes */
.hero--newday .hero__art { --art-wine: var(--gold); --art-tier: var(--pink); --art-glow: color-mix(in srgb, var(--gold) 25%, transparent); }
.hero--valentine .hero__art { --art-tier: var(--pink); --art-cream: var(--white); }
:root[data-theme="dark"] .hero--valentine .hero__art { --art-tier: var(--white); --art-cream: var(--pink); }
:root[data-theme="dark"] .hero--newday .hero__art { --art-wine: var(--gold); --art-tier: var(--white); }

/* --- Calendar greeting panels --- */
.festive--newday {
  background: linear-gradient(160deg, var(--cream) 0%, color-mix(in srgb, var(--gold-soft) 70%, var(--cream)) 100%);
  color: var(--burgundy);
  box-shadow: inset 0 0 0 1.5px var(--gold-soft);
  --art-line: var(--burgundy);
  --art-wine: var(--gold);
  --art-gold: var(--gold-deep);
  --art-tier: var(--pink);
  --art-cream: var(--white);
  --art-glow: rgb(var(--white-rgb) / 0.7);
}

.festive--newday .festive__confetti {
  background-image:
    radial-gradient(circle, var(--gold) 1.2px, transparent 1.7px),
    radial-gradient(circle, rgb(var(--pink-rgb) / 0.9) 1.3px, transparent 1.8px);
}

.festive--valentine {
  background: linear-gradient(150deg, var(--pink) 0%, color-mix(in srgb, var(--pink) 75%, var(--white)) 100%);
  color: var(--burgundy);
  box-shadow: inset 0 0 0 1.5px rgb(var(--white-rgb) / 0.7);
  --art-line: var(--burgundy);
  --art-tier: var(--white);
  --art-cream: var(--pink);
  --art-gold: var(--burgundy);
  --art-heart: var(--burgundy);
}

.festive--valentine .festive__confetti {
  background-image:
    radial-gradient(circle, rgb(var(--burgundy-rgb) / 0.3) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgb(var(--white-rgb) / 0.95) 1.4px, transparent 1.9px);
}

.festive--newday .festive__kicker .icon,
.festive--valentine .festive__kicker .icon { width: 17px; height: 17px; }
.festive--valentine .festive__kicker .icon { fill: currentColor; }

/* Reduced motion: hold everything still */
@media (prefers-reduced-motion: reduce) {
  .hero--newday::after, .hero--valentine::after, .hero__quote { animation: none !important; }
  .confetti--newday .confetti__bit, .confetti--valentine .confetti__bit { top: var(--y); bottom: auto; }
}

/* Phones: when the quote line is shown, reserve the artwork's space under it */
@media (max-width: 639px) {
  .hero__text:has(.hero__quote:not([hidden])) .hero__meta { padding-bottom: 0; }
  .hero--newyear .hero__quote, .hero--birthday .hero__quote,
  .hero--newday .hero__quote, .hero--valentine .hero__quote { padding-bottom: 104px; }
}

/* Tablets & desktop: keep the quote's lines clear of the artwork column */
@media (min-width: 640px) {
  .hero--newyear .hero__quote, .hero--birthday .hero__quote,
  .hero--newday .hero__quote, .hero--valentine .hero__quote {
    max-width: min(68ch, calc(100% - clamp(110px, 14vw, 188px) - 28px));
  }
}

/* ---------- 23. PHASE 9 — PERSONAL CELEBRATIONS ------------------------- */
/* One shared component (.hero--celebrate on Today, .festive--celebrate on
   the Calendar). Each person's look is a set of colour tokens on
   [data-celebration="…"] plus its own illustration (js/script.js).
     --art-a / --art-b / --art-c   illustration fills
     --cel-pill-bg / -ink / -ring  greeting pill on Today
     --cel-dot-a / -b              sparkle pattern behind the hero
     --cel-stripe                  accent line on the workout card
     --cf0 … --cf3                 page confetti colours                    */

/* --- Palettes --- */
[data-celebration="grandma"] {       /* warm, sentimental: dusty rose & lavender */
  --art-a: #D99AA5; --art-b: #C5B4DD; --art-c: var(--cream);
  --cel-pill-bg: #EADFF2; --cel-dot-a: #C5B4DD; --cel-dot-b: #D99AA5; --cel-stripe: #C5B4DD;
  --cf0: #D99AA5; --cf1: #C5B4DD; --cf2: var(--pink); --cf3: var(--gold-soft);
}
[data-celebration="sukie"] {          /* girly kitty: baby pink & rose bows */
  --art-a: #F7D3DC; --art-b: #E5869F; --art-c: var(--cream);
  --cel-pill-bg: #F7D3DC; --cel-dot-a: #F7D3DC; --cel-dot-b: var(--white); --cel-stripe: #E5869F;
  --cf0: #E5869F; --cf1: var(--pink); --cf2: #F7D3DC; --cf3: color-mix(in srgb, #E5869F 55%, var(--burgundy));
}
[data-celebration="leo"] {           /* best friend #1: coral, saffron, lavender */
  --art-a: #F19D87; --art-b: #F2CD6B; --art-c: #C5B4DD;
  --cel-pill-bg: #F7DC9C; --cel-dot-a: #F2CD6B; --cel-dot-b: #F19D87; --cel-stripe: #F19D87;
  --cf0: #F19D87; --cf1: #F2CD6B; --cf2: #C5B4DD; --cf3: var(--pink);
}
[data-celebration="biel"] {          /* best friend #2: periwinkle, peach, mint */
  --art-a: #A9BBEB; --art-b: #F5B58F; --art-c: #9FD4B8;
  --cel-pill-bg: #D8E0F7; --cel-dot-a: #A9BBEB; --cel-dot-b: #9FD4B8; --cel-stripe: #A9BBEB;
  --cf0: #A9BBEB; --cf1: #F5B58F; --cf2: #9FD4B8; --cf3: var(--pink);
}
[data-celebration="scotty"] {        /* husband: blush, deep rose & champagne glow */
  --art-a: var(--pink); --art-b: #D97B91; --art-c: var(--cream);
  --cel-pill-bg: linear-gradient(100deg, var(--pink), var(--gold-soft)); --cel-dot-a: var(--gold-soft); --cel-dot-b: var(--pink); --cel-stripe: #D97B91;
  --cf0: var(--pink); --cf1: #D97B91; --cf2: var(--gold-soft); --cf3: var(--gold);
}
[data-celebration="stepmom"] {       /* botanical: dusty pink & sage */
  --art-a: #E3B0B7; --art-b: #AFC4A5; --art-c: var(--cream);
  --cel-pill-bg: var(--cream); --cel-pill-ring: #AFC4A5; --cel-dot-a: #AFC4A5; --cel-dot-b: #E3B0B7; --cel-stripe: #AFC4A5;
  --cf0: #AFC4A5; --cf1: #E3B0B7; --cf2: var(--gold-soft); --cf3: var(--pink);
}
[data-celebration="mom"] {           /* mother: romantic roses */
  --art-a: #ECA8B4; --art-b: #C9687C; --art-c: var(--cream);
  --cel-pill-bg: linear-gradient(100deg, #F8DCE1, var(--pink)); --cel-dot-a: #ECA8B4; --cel-dot-b: var(--white); --cel-stripe: #ECA8B4;
  --cf0: #ECA8B4; --cf1: var(--pink); --cf2: #C9687C; --cf3: var(--white);
}
[data-celebration="dad"] {           /* father: burgundy, cream & champagne — structured */
  --art-a: var(--gold-soft); --art-b: var(--gold); --art-c: var(--cream);
  --cel-pill-bg: var(--cream); --cel-pill-ring: var(--gold); --cel-dot-a: var(--gold); --cel-dot-b: var(--gold-soft); --cel-stripe: var(--gold);
  --cf0: var(--gold); --cf1: var(--gold-soft); --cf2: var(--gold); --cf3: var(--cream);
}
[data-celebration="anniversary"] {   /* first anniversary: cream, champagne & gold */
  --art-a: var(--pink); --art-b: var(--gold-soft); --art-c: var(--white);
  --cel-pill-bg: linear-gradient(100deg, var(--gold-soft), var(--cream)); --cel-dot-a: var(--gold); --cel-dot-b: var(--cream); --cel-stripe: var(--gold);
  --cf0: var(--gold); --cf1: var(--pink); --cf2: var(--gold-soft); --cf3: var(--white);
}

/* Dark mode: the hero turns blush pink, so fills go lighter & accents deeper */
:root[data-theme="dark"] .hero--celebrate { --cel-dot-a: var(--white); --cel-dot-b: rgb(var(--burgundy-rgb) / 0.35); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="grandma"] { --art-a: var(--white); --art-b: #B9A3D6; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="sukie"] { --art-a: var(--white); --art-b: #D4698A; --art-c: var(--white); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="leo"] { --art-a: #E9846B; --art-b: #E7BC4E; --art-c: #A994CC; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="biel"] { --art-a: #8EA4E0; --art-b: #EE9B6D; --art-c: #73BD96; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="scotty"] { --art-a: var(--white); --art-b: #B9566D; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="stepmom"] { --art-a: var(--white); --art-b: #86A27B; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="mom"] { --art-a: var(--white); --art-b: #B9566D; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="dad"] { --art-a: var(--cream); --art-b: var(--gold-deep); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="anniversary"] { --art-a: var(--white); --art-b: var(--gold-soft); }

/* --- Today hero --- */
.hero--celebrate .hero__badge,
.hero--celebrate .hero__eyebrow-dot { display: none; }
.hero--celebrate .hero__eyebrow { gap: 8px; }
.hero--celebrate #hero-eyebrow .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; width: 17px; height: 17px; color: var(--cel-dot-a); }
:root[data-theme="dark"] .hero--celebrate #hero-eyebrow .icon { color: var(--burgundy); }

.hero--celebrate .hero__message {
  background: var(--cel-pill-bg, var(--pink));
  color: var(--burgundy);
  box-shadow: 0 0 0 1.5px var(--cel-pill-ring, transparent);
}

:root[data-theme="dark"] .hero--celebrate .hero__message { box-shadow: 0 0 0 1.5px rgb(var(--burgundy-rgb) / 0.18); }

.hero--celebrate::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    var(--cel-glow, linear-gradient(transparent, transparent)),
    radial-gradient(circle, var(--cel-dot-a) 1.4px, transparent 1.9px),
    radial-gradient(circle, var(--cel-dot-b) 1.1px, transparent 1.6px);
  background-size: 100% 100%, 62px 62px, 93px 93px;
  background-position: 0 0, 9px 17px, 38px 49px;
  opacity: 0.5;
  animation: shimmer 5s var(--ease-in-out) infinite;
}

/* Each person gets their own atmosphere behind the greeting */
.hero--celebrate[data-celebration="grandma"] { --cel-glow: radial-gradient(ellipse 55% 70% at 88% 80%, rgb(197 180 221 / 0.45), transparent 70%); }
.hero--celebrate[data-celebration="mom"] { --cel-glow: radial-gradient(ellipse 55% 75% at 86% 70%, rgb(236 168 180 / 0.45), transparent 70%); }
.hero--celebrate[data-celebration="scotty"] { --cel-glow: radial-gradient(circle at 84% 62%, rgb(235 211 164 / 0.5), transparent 42%); }
.hero--celebrate[data-celebration="anniversary"] { --cel-glow: radial-gradient(circle at 84% 62%, rgb(235 211 164 / 0.55), transparent 46%); }
.hero--celebrate[data-celebration="stepmom"] { --cel-glow: radial-gradient(ellipse 50% 70% at 90% 85%, rgb(175 196 165 / 0.4), transparent 70%); }
.hero--celebrate[data-celebration="dad"] {  /* editorial: a fine ruled grid */
  --cel-glow: repeating-linear-gradient(90deg, rgb(214 174 106 / 0.14) 0 1px, transparent 1px 56px), repeating-linear-gradient(0deg, rgb(214 174 106 / 0.1) 0 1px, transparent 1px 56px);
}
.hero--celebrate[data-celebration="leo"]::after { background-size: 100% 100%, 46px 46px, 71px 71px; opacity: 0.6; }
.hero--celebrate[data-celebration="biel"] {  /* playful diagonal stripes */
  --cel-glow: repeating-linear-gradient(135deg, rgb(169 187 235 / 0.12) 0 14px, transparent 14px 40px);
}
.hero--celebrate[data-celebration="sukie"] { --cel-glow: radial-gradient(ellipse 50% 70% at 88% 85%, rgb(247 211 220 / 0.35), transparent 70%); }

/* Room for the illustration (same rhythm as the other celebrations) */
@media (min-width: 640px) {
  .hero--celebrate .hero__meta,
  .hero--celebrate .hero__title { padding-right: calc(clamp(110px, 14vw, 188px) + 28px); }
  .hero--celebrate .hero__quote { max-width: min(68ch, calc(100% - clamp(110px, 14vw, 188px) - 28px)); }
}

@media (max-width: 639px) {
  .hero--celebrate .hero__meta { padding-bottom: 96px; }
  .hero--celebrate .hero__quote { padding-bottom: 104px; }
}

/* Long names stay elegant: a touch smaller than the regular headline */
.hero--celebrate .hero__title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.75rem); text-wrap: balance; }

/* Big outlined numeral for milestones (37th birthday, first anniversary) */
.hero__numeral {
  position: absolute;
  right: clamp(150px, 19vw, 280px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 4rem + 13vw, 19rem);
  font-weight: 800;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gold) 85%, transparent);
  opacity: 0.7;
  animation: thirtyIn 1.3s var(--ease-out) both;
}

:root[data-theme="dark"] .hero__numeral { -webkit-text-stroke-color: rgb(var(--burgundy-rgb) / 0.35); }

@media (max-width: 639px) {
  .hero__numeral { right: 108px; top: auto; bottom: 4px; transform: none; font-size: 6.5rem; opacity: 0.45; animation: none; }
}

body.is-celebrate .page, body.is-celebrate .site-footer { position: relative; z-index: 1; }
body.is-celebrate .workout-card { box-shadow: inset 0 3px 0 var(--cel-stripe), var(--shadow-sm); }

/* --- Calendar greeting panel (any time the date is selected) --- */
.festive--celebrate {
  color: var(--burgundy);
  --art-line: var(--burgundy);
  --art-gold: var(--gold);
  --art-cream: var(--white);
  --art-fill: rgb(var(--burgundy-rgb) / 0.08);
  --art-heart: var(--burgundy);
  --art-glow: rgb(var(--white-rgb) / 0.55);
}

.festive--celebrate .festive__confetti {
  background-image:
    radial-gradient(circle, var(--cf0) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgb(var(--white-rgb) / 0.95) 1.3px, transparent 1.8px);
}

.festive--celebrate .festive__kicker .icon { width: 17px; height: 17px; }

.festive--grandma { background: linear-gradient(150deg, #F6F0F8 0%, #E7DBF0 100%); box-shadow: inset 0 0 0 1.5px #D9CCE8; --art-c: var(--white); }
.festive--sukie { background: linear-gradient(150deg, #FFF3F6 0%, #F8D2DC 100%); box-shadow: inset 0 0 0 1.5px rgb(var(--white-rgb) / 0.8); --art-a: #FBDDE5; --art-c: var(--white); --art-heart: #E5869F; }
.festive--leo { background: linear-gradient(140deg, #FFF4E3 0%, #FAD8C8 100%); box-shadow: inset 0 0 0 1.5px #F2CD6B; }
.festive--biel { background: linear-gradient(140deg, #EEF2FD 0%, #FCE5D7 100%); box-shadow: inset 0 0 0 1.5px #A9BBEB; }
.festive--scotty { background: radial-gradient(circle at 85% 75%, rgb(235 211 164 / 0.7), transparent 50%), linear-gradient(150deg, #FFF2F3 0%, #F1C7CF 100%); box-shadow: inset 0 0 0 1.5px var(--gold-soft); --art-a: var(--white); --art-b: #C9687C; }
.festive--stepmom { background: linear-gradient(150deg, var(--cream) 0%, #EEDFD6 100%); box-shadow: inset 0 0 0 1.5px #AFC4A5; }
.festive--mom { background: radial-gradient(120% 90% at 100% 100%, #F2BFC8 0%, transparent 60%), #FCEFF1; box-shadow: inset 0 0 0 1.5px rgb(var(--white-rgb) / 0.8); --art-a: #F2B6C0; }
.festive--dad {
  background:
    repeating-linear-gradient(90deg, rgb(var(--burgundy-rgb) / 0.05) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, #FBF6EC 0%, #EFE1C4 100%);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  --art-a: var(--white); --art-b: var(--gold);
}
.festive--anniversary {
  background: radial-gradient(circle at 82% 70%, rgb(var(--white-rgb) / 0.9), transparent 45%), linear-gradient(150deg, #FFFBF4 0%, #F0DFBF 100%);
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px rgb(var(--white-rgb) / 0.6), inset 0 0 0 6.5px var(--gold-soft);
  --art-a: var(--pink);
}

.festive__numeral {
  position: absolute;
  z-index: -1;
  right: clamp(84px, 13vw, 150px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 6vw, 9.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  opacity: 0.7;
}

@media (max-width: 479px) {
  .festive__numeral { right: 96px; top: auto; bottom: 8px; transform: none; font-size: 6rem; }
}

/* --- Illustration building blocks --- */
.art__ln { fill: none; stroke: var(--art-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art__ln--thin { stroke-width: 2; }
.art__ln--gold { stroke: var(--art-gold); }
.art__fa, .art__fb, .art__fc, .art__fgl { stroke: var(--art-line); stroke-width: 2.5; stroke-linejoin: round; }
.art__fa { fill: var(--art-a); }
.art__fb { fill: var(--art-b); }
.art__fc { fill: var(--art-c, var(--art-cream)); }
.art__fgl { fill: var(--art-gold); }
.art__fl { fill: var(--art-line); }
.art__sa { fill: var(--art-a); }
.art__sb { fill: var(--art-b); }
.art__sc { fill: var(--art-c, var(--art-cream)); }
.art__cheek { fill: var(--art-b); opacity: 0.45; }
.art__frame { fill: none; stroke: var(--art-b); stroke-width: 2.5; stroke-dasharray: 0.5 8; stroke-linecap: round; }
.art__wreath { fill: none; stroke: var(--art-a); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linecap: round; }
.art__ribbon { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art__ribbon--a { stroke: var(--art-a); }
.art__ribbon--c { stroke: var(--art-c, var(--art-cream)); }
.art__stripe { fill: none; stroke: var(--art-b); stroke-width: 6; stroke-linecap: round; }
.art__band { fill: none; stroke: var(--art-gold); stroke-width: 9; }
.art__ringc { fill: none; stroke: var(--art-c); stroke-width: 7; }
.art__dots { fill: var(--art-line); opacity: 0.6; }
.art__paw { fill: var(--art-b); }
.art__paw--2 { opacity: 0.7; }
.art__note { fill: var(--art-gold); stroke: var(--art-gold); stroke-width: 3; stroke-linecap: round; }
.art__note path { fill: none; }
.art__heart-outline { fill: none; stroke: var(--art-gold); stroke-width: 3.5; }
.art__ring-o { fill: none; stroke: var(--art-line); stroke-width: 11; }
.art__ring { fill: none; stroke: var(--art-gold); stroke-width: 6; }
.art__gem { fill: var(--art-c, var(--white)); stroke: var(--art-line); stroke-width: 2.5; stroke-linejoin: round; }
.art__tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tailFlick 3.2s var(--ease-in-out) infinite; }

/* Gentle motion — all of it stops for reduced motion */
.art__sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s var(--ease-in-out) infinite; }
.art__bob { transform-box: fill-box; transform-origin: center; animation: floaty 4.5s var(--ease-in-out) infinite; }
.art__beat { transform-box: fill-box; transform-origin: center; animation: beat 3.6s var(--ease-in-out) infinite; }
.art__twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s var(--ease-in-out) infinite; }
.art__spin { transform-box: fill-box; transform-origin: center; animation: slowSpin 14s linear infinite; }
.art__bow { transform-box: fill-box; transform-origin: 30% 60%; animation: sway 4s var(--ease-in-out) infinite; }
.art__petal-float { transform-box: fill-box; transform-origin: center; animation: floaty 5s var(--ease-in-out) infinite; }
.art__tilt { transform: rotate(-12deg); transform-origin: 100px 120px; }
.art__d2 { animation-delay: 0.8s; }
.art__d3 { animation-delay: 1.6s; }

@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes tailFlick { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } }
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Page particles --- */
.confetti--celebrate .confetti__bit--c0 { background: var(--cf0); }
.confetti--celebrate .confetti__bit--c1 { background: var(--cf1); }
.confetti--celebrate .confetti__bit--c2 { background: var(--cf2); }
.confetti--celebrate .confetti__bit--c3 { background: var(--cf3); }

/* New shapes, drawn with masks so they take any colour */
.confetti__bit--paw, .confetti__bit--bow, .confetti__bit--flower, .confetti__bit--leaf, .confetti__bit--note {
  width: calc(var(--s) * 2);
  height: calc(var(--s) * 2);
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.confetti__bit--paw { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12.5c-2.6 0-5 2.6-5 4.8 0 1.6 1.2 2.4 2.6 2.4 1 0 1.6-.5 2.4-.5s1.4.5 2.4.5c1.4 0 2.6-.8 2.6-2.4 0-2.2-2.4-4.8-5-4.8Z'/%3E%3Ccircle cx='6' cy='10.5' r='2'/%3E%3Ccircle cx='9.5' cy='6.5' r='2'/%3E%3Ccircle cx='14.5' cy='6.5' r='2'/%3E%3Ccircle cx='18' cy='10.5' r='2'/%3E%3C/svg%3E"); }
.confetti__bit--bow { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12C9 7 3 6 3 9.5S9 15 12 12Zm0 0c3-5 9-6 9-2.5S15 15 12 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E"); }
.confetti__bit--flower { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.5' r='4'/%3E%3Ccircle cx='17.2' cy='10.3' r='4'/%3E%3Ccircle cx='15.2' cy='16.5' r='4'/%3E%3Ccircle cx='8.8' cy='16.5' r='4'/%3E%3Ccircle cx='6.8' cy='10.3' r='4'/%3E%3C/svg%3E"); }
.confetti__bit--leaf { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20c0-9 6-15 16-16 0 10-6 16-16 16Z'/%3E%3C/svg%3E"); }
.confetti__bit--note { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4h2v12.5A3.5 3 0 1 1 9 14Z'/%3E%3Cpath d='M11 4c3 1 6 2.5 6 6.5-1.5-2-3.5-2.5-6-2.5Z'/%3E%3C/svg%3E"); }
.confetti__bit--tri { width: calc(var(--s) * 1.6); height: calc(var(--s) * 1.4); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.confetti__bit--square { border-radius: 2px; }

/* Motion styles: drift (slow falling petals), rise (floating up), fall (party) */
.confetti--drift .confetti__bit { animation-duration: calc(var(--d) * 1.5); opacity: 0.75; }
.confetti--rise .confetti__bit {
  top: auto;
  bottom: -20px;
  animation-name: confettiRise;
  animation-duration: calc(var(--d) * 1.4);
  opacity: 0.7;
}

/* Reduced motion: hold everything still, scattered across the page */
@media (prefers-reduced-motion: reduce) {
  .hero--celebrate::after, .hero__numeral, .art__sway, .art__bob, .art__beat, .art__twinkle,
  .art__spin, .art__bow, .art__petal-float, .art__tail { animation: none !important; }
  .confetti--rise .confetti__bit { top: var(--y); bottom: auto; }
}

/* Milestone panels: keep the long title clear of the outlined numeral */
@media (min-width: 480px) {
  .festive--celebrate:has(.festive__numeral) { padding-right: clamp(150px, 24vw, 250px); }
  .festive--celebrate .festive__numeral { right: clamp(70px, 10vw, 120px); }
}

/* Phase 9 header polish: the logo never wraps, and on tablets & phones the
   open menu gets a clear edge plus a soft scrim over the page below. */
.brand { white-space: nowrap; }

@media (max-width: 899px) {
  .has-menu .nav { box-shadow: 0 0 0 1.5px rgb(var(--pink-rgb) / 0.35), var(--shadow-lg); }

  .has-menu::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: -2;
    background: rgb(var(--burgundy-rgb) / 0.28);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .has-menu.menu-ready::after { transition: opacity var(--dur-2) ease, visibility 0s linear var(--dur-2); }
  .has-menu.has-menu.is-menu-open::after { opacity: 1; visibility: visible; transition-delay: 0s; }
}

@media (min-width: 900px) and (max-width: 960px) {
  .brand { font-size: 1.5rem; }
  .site-header__inner { gap: var(--space-3); }
}

/* ---------- 24. PHASE 10 — SUNDAYS, MIAMI & "TO BE DEFINED" -------------- */
/* Equipment line on a video (a property of the video, shown every time) */
.reminder--equipment {
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: transparent;
}
.reminder--equipment .icon { animation: none; }
.details .reminder--equipment { border-color: color-mix(in srgb, var(--feature-ink) 32%, transparent); }

/* Titled lists inside previous notes (e.g. exercise modifications) */
.past-notes__text--title { font-style: normal; font-weight: 600; font-family: var(--font-body); font-size: var(--fs-sm); }
.past-notes__items {
  margin-top: 6px;
  padding-left: 1.3em;
  display: grid;
  gap: 4px;
  list-style: decimal;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  opacity: 0.92;
}
.past-notes__items li::marker { font-style: normal; font-family: var(--font-body); font-weight: 700; font-size: 0.8em; }

/* "To be defined" placeholder (e.g. Scotty's workout) */
.rest--tbd .rest__art { opacity: 0.85; }
.rest__eyebrow { opacity: 0.7; margin-bottom: -6px; }
.rest__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 46ch;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--tint-chip);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.rest__note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.rest--travel .rest__art { opacity: 0.9; }

/* Calendar marker for a "to be defined" session: dotted outline */
.mark--tbd { border: 1.5px dotted currentColor; }

/* --- Miami travel day (one-time, 2026-12-27) — shares the celebration
   component; its palette is a warm pastel sunset by the sea. --- */
[data-celebration="miami"] {
  --art-a: #FBD3B4; --art-b: #F3A28F; --art-c: var(--cream);
  --art-sea: #8CCFC8; --art-palm: #8DB89B; --art-trunk: #C99A72;
  --cel-pill-bg: linear-gradient(100deg, #FFD9BF, #F9C5C0 55%, #CDEBE6); --cel-dot-a: #F6CF7A; --cel-dot-b: #8CCFC8; --cel-stripe: #F3A28F;
  --cf0: #F6CF7A; --cf1: #F3A28F; --cf2: #8CCFC8; --cf3: var(--cream);
}
:root[data-theme="dark"] .hero--celebrate[data-celebration="miami"] {
  --art-a: var(--white); --art-b: #E9836E; --art-sea: #4FA8A0; --art-palm: #5E9473; --art-trunk: #A9764E;
}
.hero--celebrate[data-celebration="miami"] {
  /* one layer only — the shared ::after tiles any extra layers */
  --cel-glow: radial-gradient(ellipse 60% 60% at 86% 80%, rgb(246 207 122 / 0.45), rgb(140 207 200 / 0.12) 55%, transparent 75%);
}
.festive--miami {
  background:
    radial-gradient(circle at 84% 70%, rgb(255 236 200 / 0.95), transparent 42%),
    linear-gradient(170deg, #FFE6D2 0%, #F9CFC8 52%, #D4EEEA 100%);
  box-shadow: inset 0 0 0 1.5px #F3A28F;
  --art-a: var(--white);
}

.art__sunline { fill: none; stroke: var(--art-c, var(--cream)); stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.art__wave { fill: none; stroke: var(--art-sea); stroke-width: 3.5; stroke-linecap: round; animation: waveDrift 6s var(--ease-in-out) infinite; }
.art__wave--2 { opacity: 0.75; animation-delay: 0.7s; }
.art__wave--3 { opacity: 0.5; animation-delay: 1.4s; }
.art__trunk { fill: none; stroke: var(--art-trunk); stroke-width: 7; stroke-linecap: round; }
.art__trunk--2 { stroke-width: 5.5; }
.art__trunk-ring { fill: none; stroke: var(--art-line); stroke-width: 1.6; stroke-linecap: round; opacity: 0.35; }
.art__palm { fill: var(--art-palm); stroke: var(--art-line); stroke-width: 2.2; stroke-linejoin: round; }

@keyframes waveDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  .art__wave { animation: none !important; }
}
.past-notes__items li { display: list-item; list-style: decimal; }
.past-notes__list .past-notes__items li + li { padding-top: 0; border-top: 0; }

/* ---------- 25. PHASE 10 — PLANS & APPOINTMENTS -------------------------- */
/* Today: workout on the left, a side column (activities, plans, menu) on the
   right — Phase 11 replaced the Phase 10 two-row span with this column. */
.today-side { display: flex; flex-direction: column; gap: var(--gap); grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .today-side { grid-column: span 5; }
  /* the workout card ends with its content instead of stretching to the column */
  .today-grid > .workout-card { align-self: start; }
}

.plans-card__head { align-items: center; margin-bottom: var(--space-4); }
.plans-card .card__title { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
.plans-card__add .icon, .plans-panel .btn .icon { width: 16px; height: 16px; }

.plans { display: grid; gap: 10px; }

.plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
}

.plan__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.plan__icon .icon { width: 19px; height: 19px; }
.plan--vet .plan__icon { background: #F7D3DC; color: var(--burgundy); }
.plan--facial .plan__icon { background: #EADFF2; color: var(--burgundy); }
.plan--hair .plan__icon { background: #F7DC9C; color: var(--burgundy); }
.plan--medical .plan__icon { background: #D4EEEA; color: var(--burgundy); }
.plan--care .plan__icon { background: #E4ECDD; color: var(--burgundy); }

.plan__body { min-width: 0; }
.plan__kicker { opacity: 0.7; margin-bottom: 2px; }
.plan__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.plan__meta { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.plan__line { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-2); }
.plan__line .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.plan__notes {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--line-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.plan__side { justify-self: end; }
.plan__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.plan-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-status--completed { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan-status--cancelled { border-style: dashed; color: var(--ink-3); }
.plan-status--rescheduled { border-style: dotted; color: var(--ink-2); }

.plan--cancelled .plan__title, .plan--rescheduled .plan__title { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.6; }
.plan--cancelled .plan__icon, .plan--rescheduled .plan__icon { opacity: 0.55; }

.plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-spring);
}
.plan-btn:hover { border-color: var(--ink); }
.plan-btn:active { transform: scale(0.96); }
.plan-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.plan-btn .icon { width: 14px; height: 14px; }
.plan-btn--attend[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.plans-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.plans-empty .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.plans-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 3px;
}
.plans-more .icon { width: 14px; height: 14px; }

/* Calendar panel under the day details */
.plans-panel { margin-top: var(--gap); }
.plans-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: var(--space-5);
}
.plans-panel__foot { margin-top: var(--space-4); font-size: var(--fs-xs); color: var(--ink-3); }
.plans--calendar .plan { padding: 16px 18px; }

/* Appointment marker in a calendar cell: a small rounded square */
.mark--appt { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); opacity: 0.7; transform: rotate(45deg); }
.cal-day.is-today .mark--appt { background: currentColor; }

/* --- Form sheet (add / edit / reschedule) — built on the confirm dialog --- */
.sheet { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.sheet--small { width: min(460px, calc(100vw - 24px)); }
.sheet__inner {
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.sheet[open] .sheet__inner { animation: confirmIn 460ms var(--ease-spring) both; }
.sheet__head { display: flex; align-items: center; gap: 14px; }
.sheet__head .confirm__icon { flex: none; width: 48px; height: 48px; }
.sheet__head .confirm__icon .icon { width: 22px; height: 22px; animation: none; }
.sheet__kicker { color: var(--ink-2); margin-bottom: 4px; }
.sheet__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.sheet__error { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: var(--fs-sm); font-weight: 600; }
.sheet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sheet__spacer { flex: 1 1 auto; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field__opt { font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--ink-3); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); min-height: 0; }
.field__error:empty { display: none; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  background: var(--surface-sunk);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-out);
}
.input:hover { border-color: var(--ink-3); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-halo); }
.input--area { min-height: 88px; resize: vertical; line-height: 1.5; }
.input--num { width: 72px; min-height: 44px; text-align: center; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B1923' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
:root[data-theme="dark"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0E6E1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); }
.input::-webkit-calendar-picker-indicator { opacity: 0.6; }
:root[data-theme="dark"] .input::-webkit-calendar-picker-indicator { filter: invert(1); }

.repeat { gap: 10px; }
.repeat__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.repeat__row > select.input { width: auto; min-width: 180px; flex: 1 1 180px; }
.repeat__every, .repeat__until { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.repeat__until .input { width: auto; }
[data-repeat-only][hidden] { display: none !important; }

@media (max-width: 519px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: auto minmax(0, 1fr); }
  .plan__side { grid-column: 2; justify-self: start; margin-top: 6px; }
  .plan__actions { grid-column: 1 / -1; }
  .sheet__actions .btn { flex: 1 1 auto; }
  .sheet__spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] .sheet__inner { animation: none; }
}

/* ---------- 26. PHASE 10 — MONTHLY JOURNAL ------------------------------- */
.journal-toolbar--months { align-items: flex-start; }
.journal-summary { font-size: var(--fs-md); color: var(--ink-2); }
.journal-summary strong { color: var(--ink); }
.journal-rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.journal-rule .icon { width: 15px; height: 15px; flex: none; }

.jgroup + .jgroup, .demo-banner + .jgroup, .empty-state + .jgroup, .empty-state + .demo-banner { margin-top: clamp(28px, 5vw, 52px); }
.jgroup__title { margin-bottom: 14px; color: var(--ink-2); }
.jgroup--sample { margin-top: 16px; }

.jmonth {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.jmonth + .jmonth { margin-top: 14px; }
.jmonth--current { border-color: var(--line-2); box-shadow: inset 0 3px 0 var(--accent), var(--shadow-sm); }
.jmonth--empty { padding-block: clamp(16px, 2.4vw, 22px); background: transparent; box-shadow: none; }
.jmonth--sample { border-style: dashed; }

.jmonth__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.jmonth__kicker { color: var(--ink-3); margin-bottom: 6px; }
.jmonth__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.035em;
  line-height: 1;
}
.jmonth__title em { font-style: italic; font-weight: 400; }
.jmonth--empty .jmonth__title { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); }
.jmonth__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }

.jmonth__export .icon { width: 16px; height: 16px; }
.jmonth__export.is-locked { opacity: 0.75; cursor: not-allowed; }
.jmonth__export.is-locked:hover { transform: none; }
.jmonth__state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-3); }
.jmonth__state .icon { width: 15px; height: 15px; }

.jmonth__dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jdate {
  display: grid;
  justify-items: center;
  min-width: 52px;
  padding: 7px 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  background: var(--surface-sunk);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--dur-2) ease, transform var(--dur-2) var(--ease-spring), background-color var(--dur-2) ease;
}
.jdate:hover { border-color: var(--ink); transform: translateY(-2px); }
.jdate:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.jdate__wd { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.jdate__d { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.05; }

.jmonth__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: var(--tap);
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-2);
  cursor: pointer;
}
.jmonth__toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.jmonth__toggle .icon { width: 16px; height: 16px; transition: transform var(--dur-3) var(--ease-out); }
.jmonth__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.jmonth__entries { margin-top: 14px; }
.jmonth__entries .entry { box-shadow: none; background: var(--surface-sunk); }
.jmonth__empty { margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-3); font-style: italic; }

.entry__lock { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.entry__lock .icon { width: 12px; height: 12px; }
.entry__text { white-space: pre-line; overflow-wrap: anywhere; }

.jtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 10px; }
@media (min-width: 640px) { .jtiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.jtile {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-2);
}
.jtile__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.jtile__name em { font-style: italic; font-weight: 400; }
.jtile__state { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.jtile__state .icon { width: 13px; height: 13px; flex: none; }

@media (max-width: 519px) {
  .jmonth__export-wrap, .jmonth__export { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .jdate, .jmonth__toggle .icon { transition: none; }
}

/* ---------- 27. PHASE 10 — STORAGE / CLOUD-SYNC STATUS ------------------- */
.sync-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex-basis: 100%;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.sync-status .icon { width: 15px; height: 15px; flex: none; }
.sync-status[data-state="synced"] { color: var(--ink-2); }
.sync-status[data-state="error"] { color: var(--ink); font-weight: 600; }

/* ---------- 28. PHASE 11 — LEARNING & CREATIVE ACTIVITIES ---------------- */
/* Per-activity palettes (cream, blush & burgundy, each with its own accent) */
.act--german       { --act-a: #F6E6DA; --act-b: var(--burgundy); --act-c: var(--pink);  --act-tile: #FBF1EA; }
.act--design       { --act-a: #EADFF2; --act-b: var(--burgundy); --act-c: #D9A7B2;      --act-tile: #F6F0F8; }
.act--illustration { --act-a: #F8DCE1; --act-b: var(--burgundy); --act-c: #E9B98F;      --act-tile: #FDF1F2; }
:root[data-theme="dark"] .act--german       { --act-tile: rgb(246 230 218 / 0.12); --act-a: rgb(246 230 218 / 0.9); }
:root[data-theme="dark"] .act--design       { --act-tile: rgb(234 223 242 / 0.12); --act-a: rgb(234 223 242 / 0.9); }
:root[data-theme="dark"] .act--illustration { --act-tile: rgb(248 220 225 / 0.12); --act-a: rgb(248 220 225 / 0.9); }

.activities-card__head { margin-bottom: var(--space-4); }
.activities-card .card__title { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem); }
.activities-card .card__title .heart { font-size: 0.65em; vertical-align: 0.2em; }

.act-group + .act-group { margin-top: 18px; }
.act-group__title { margin-bottom: 8px; color: var(--ink-3); }
.acts { display: grid; gap: 10px; }

.act {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  overflow: hidden;
}
.act::before {   /* a soft accent along the left edge */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--act-c);
  opacity: 0.85;
}
.act__art {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--act-tile);
  box-shadow: inset 0 0 0 1px var(--line);
}
.act__art .act-art { width: 42px; height: 42px; overflow: visible; }
.act__body { min-width: 0; }
.act__kicker { display: flex; align-items: center; gap: 6px; color: var(--ink-3); margin-bottom: 3px; }
.act__kicker .icon { width: 13px; height: 13px; }
.act__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.act__title em { font-style: italic; font-weight: 400; }
.act__meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: var(--fs-sm); color: var(--ink-2); }
.act__meta .icon { width: 14px; height: 14px; flex: none; }
.act__sub { margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.act__phrase {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--act-a) 60%, transparent);
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--ink);
}
:root[data-theme="dark"] .act__phrase { background: rgb(var(--pink-rgb) / 0.12); }
.act__phrase strong { font-family: var(--font-display); font-weight: 700; font-variation-settings: "SOFT" 100; }
.act__translation { font-style: italic; color: var(--ink-2); }
.act__translation::before { content: "— "; }
.act__note { display: flex; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.act__note .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; }

.act__foot { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.act__complete .icon { width: 16px; height: 16px; }
.act__done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.act__done .icon { width: 15px; height: 15px; }
.act__skipped { font-size: var(--fs-sm); color: var(--ink-2); font-style: italic; }
.act.is-pop .act__done { animation: pop 520ms var(--ease-spring); }
.act--completed { border-color: color-mix(in srgb, var(--act-c) 70%, transparent); }

.act-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.act-status--completed { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.act-status--skipped { border-style: dashed; }
.act-status--unrecorded { border-style: dotted; color: var(--ink-3); }

.act--history { opacity: 0.8; }

/* Quiet notes for intentionally skipped sessions (never "missed") */
.act-skips { display: grid; gap: 6px; margin-top: 12px; }
.act-skip { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.act-skip .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; opacity: 0.8; }
.act-skip strong { color: var(--ink-2); font-weight: 600; }
.acts-empty + .act-skips { margin-top: 10px; }

.activities-tz { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }
.activities-tz .icon { width: 13px; height: 13px; }

/* Activity artwork — drawn in brand colours, adapts to dark mode */
.act-art__page { fill: var(--act-a); stroke: var(--act-b); stroke-width: 2.4; stroke-linejoin: round; }
.act-art__line { fill: none; stroke: var(--act-b); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.act-art__fill { fill: var(--act-c); stroke: var(--act-b); stroke-width: 2.2; stroke-linejoin: round; }
.act-art__fill2 { fill: var(--act-a); stroke: var(--act-b); stroke-width: 2.2; stroke-linejoin: round; }
.act-art__dot { fill: var(--act-b); }
.act-art__grid { fill: none; stroke: var(--act-b); stroke-width: 1; opacity: 0.22; }
.act-art__frame { fill: none; stroke: var(--act-b); stroke-width: 2.2; }
.act-art__ink { fill: var(--act-b); opacity: 0.75; }
.act-art__sketch { fill: none; stroke: var(--act-b); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 0; }
.act-art__sketch--2 { opacity: 0.4; }
.act-art__spark { fill: var(--act-c); }
:root[data-theme="dark"] .act-art__page { stroke: var(--pink); }
:root[data-theme="dark"] .act-art__line,
:root[data-theme="dark"] .act-art__grid,
:root[data-theme="dark"] .act-art__frame,
:root[data-theme="dark"] .act-art__sketch { stroke: var(--pink); }
:root[data-theme="dark"] .act-art__dot,
:root[data-theme="dark"] .act-art__ink { fill: var(--pink); }
:root[data-theme="dark"] .act-art__fill,
:root[data-theme="dark"] .act-art__fill2 { stroke: var(--pink); }

/* Gentle motion: chatty dots, floating shapes, a drawing pencil */
.act-art__dot { animation: actDot 1.8s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.act-art__dot--2 { animation-delay: 0.2s; }
.act-art__dot--3 { animation-delay: 0.4s; }
.act-art__float { animation: floaty 4.8s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.act-art__float--2 { animation-delay: 1.2s; }
.act-art__pencil { animation: actDraw 3.6s var(--ease-in-out) infinite; transform-box: view-box; transform-origin: 36px 36px; }
.act-art__sketch { animation: actSketch 5s var(--ease-in-out) infinite; }

@keyframes actDot { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(-2px); opacity: 1; } }
@keyframes actDraw { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-3px, 2px) rotate(-4deg); } }
@keyframes actSketch { 0% { stroke-dashoffset: 90; } 40%, 100% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .act-art__dot, .act-art__float, .act-art__pencil, .act-art__sketch { animation: none !important; }
  .act.is-pop .act__done { animation: none; }
}

/* Calendar: view-only panel + a small ring marker in day cells */
.acts-panel { margin-top: var(--gap); }
.acts--calendar .act { padding: 16px 18px; }
.mark--act { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.8; background: transparent; box-shadow: inset 0 0 0 1.5px var(--pink); }
.cal-day.is-today .mark--act { box-shadow: none; }

/* Nails category in the appointment lists */
.plan--nails .plan__icon { background: #F7D3DC; color: var(--burgundy); }

@media (max-width: 519px) {
  .act { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 6px 12px; }
  .act__art { width: 46px; height: 46px; border-radius: 14px; }
  .act__art .act-art { width: 36px; height: 36px; }
  .act__foot { grid-column: 1 / -1; }
  .act__foot .btn { flex: 1 1 auto; }
}

/* --- Private access (Phase 11): password screen & lock controls --- */
html[data-locked] main, html[data-locked] .site-footer .ribbon { visibility: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 80% 15%, rgb(var(--pink-rgb) / 0.35), transparent 45%),
    var(--bg);
  overflow: auto;
}
.gate__card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(26px, 5vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: confirmIn 460ms var(--ease-spring) both;
}
.gate__brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-style: italic; }
.gate__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tint-bg); color: var(--tint-ink); }
.gate__icon .icon { width: 24px; height: 24px; }
.gate__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.gate__title em { font-style: italic; font-weight: 400; }
.gate__text { color: var(--ink-2); max-width: 32ch; }
.gate__form { display: grid; gap: 12px; width: 100%; margin-top: 6px; text-align: left; }
.gate__btn .icon { width: 17px; height: 17px; }
.gate__error { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: var(--fs-sm); font-weight: 600; }
.gate__note { font-size: var(--fs-xs); color: var(--ink-3); max-width: 34ch; }
.sync-controls { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
@media (prefers-reduced-motion: reduce) { .gate__card { animation: none; } }

/* ---------- 29. PHASE 11 ADDENDUM — WORK WEEK, QUÉBEC HOLIDAYS & REPORTS -- */

/* --- Work-week labels (informational only) --- */
.workday {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--tint-chip);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.workday .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.workday strong { font-weight: 700; }
.rest .workday { margin: 16px 0 0; text-align: left; }
.details .workday {
  margin: 12px 0 4px;
  background: color-mix(in srgb, var(--feature-ink) 9%, transparent);
  color: var(--feature-ink);
}
.workday--holiday { box-shadow: inset 3px 0 0 var(--gold); }
.event-pill--work .icon { opacity: 0.9; }
.rest--office .rest__art { opacity: 0.9; }

/* --- Holiday palettes (same tokens as the personal celebrations) --- */
[data-celebration="goodfriday"] {     /* reflective: lily white, soft lilac & sage */
  --art-a: #F7F2F8; --art-b: #B9A9C9; --art-c: #C6D4BE;
  --cel-pill-bg: #EEE8F3; --cel-dot-a: #CFC3DC; --cel-dot-b: #E8DDE6; --cel-stripe: #B9A9C9;
  --cf0: #CFC3DC; --cf1: #EBDDE3; --cf2: #C6D4BE; --cf3: var(--white);
}
[data-celebration="eastermonday"] {   /* optimistic spring: blush, butter & fresh green */
  --art-a: #F4C2CE; --art-b: #F2D584; --art-c: #BCD7B0;
  --cel-pill-bg: linear-gradient(100deg, #FBE0E6, #FBEFC6 60%, #E2F0DA); --cel-dot-a: #F2D584; --cel-dot-b: #F4C2CE; --cel-stripe: #EBA9B9;
  --cf0: #F4C2CE; --cf1: #F2D584; --cf2: #BCD7B0; --cf3: var(--white);
}
[data-celebration="patriots"] {       /* heritage: muted Québec blue & sage */
  --art-a: #3B66AE; --art-b: #DCE5F4; --art-c: #A9BE9C;
  --cel-pill-bg: #E2E9F6; --cel-pill-ring: #9DB3DC; --cel-dot-a: #9DB3DC; --cel-dot-b: var(--white); --cel-stripe: #3B66AE;
  --cf0: #3B66AE; --cf1: #9DB3DC; --cf2: #A9BE9C; --cf3: var(--white);
}
[data-celebration="fetenationale"] {  /* fête nationale: Québec blue, white & starlight */
  --art-a: #1F4FA0; --art-b: #8FB0E3; --art-c: var(--white);
  --cel-pill-bg: linear-gradient(100deg, #D3E0F7, #F4F7FD); --cel-pill-ring: #8FB0E3; --cel-dot-a: #8FB0E3; --cel-dot-b: var(--gold-soft); --cel-stripe: #1F4FA0;
  --cf0: #1F4FA0; --cf1: #8FB0E3; --cf2: var(--white); --cf3: var(--gold-soft);
}
[data-celebration="canadaday"] {      /* Canada Day: red & white */
  --art-a: #C8414B; --art-b: #F3C3C6; --art-c: var(--white);
  --cel-pill-bg: #FBE4E5; --cel-pill-ring: #E79CA1; --cel-dot-a: #E5868D; --cel-dot-b: var(--white); --cel-stripe: #C8414B;
  --cf0: #C8414B; --cf1: var(--white); --cf2: #F3C3C6; --cf3: #C8414B;
}
[data-celebration="labourday"] {      /* Labour Day: understated cream, latte & champagne */
  --art-a: #D9B8A0; --art-b: #EAD9C8; --art-c: var(--white);
  --cel-pill-bg: var(--cream); --cel-pill-ring: var(--gold); --cel-dot-a: var(--gold); --cel-dot-b: #D9B8A0; --cel-stripe: var(--gold);
  --cf0: var(--gold); --cf1: #D9B8A0; --cf2: var(--gold-soft); --cf3: var(--cream);
}
[data-celebration="thanksgiving"] {   /* Thanksgiving: muted orange, burgundy & ochre */
  --art-a: #E3995E; --art-b: #A9465A; --art-c: #E6BE73;
  --cel-pill-bg: linear-gradient(100deg, #F8DFCB, #F3D6B3); --cel-dot-a: #E3995E; --cel-dot-b: #E6BE73; --cel-stripe: #D9824A;
  --cf0: #E3995E; --cf1: #A9465A; --cf2: #E6BE73; --cf3: #C9784A;
}

:root[data-theme="dark"] .hero--celebrate[data-celebration="goodfriday"] { --art-a: var(--white); --art-b: #9F8BB4; --art-c: #9DB591; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="eastermonday"] { --art-a: var(--white); --art-b: #E9C35C; --art-c: #94BD84; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="patriots"] { --art-a: #2C579F; --art-b: var(--white); --art-c: #86A276; }
:root[data-theme="dark"] .hero--celebrate[data-celebration="fetenationale"] { --art-a: #1F4FA0; --art-b: #6E93D0; --art-c: var(--white); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="canadaday"] { --art-a: #B8323C; --art-b: var(--white); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="labourday"] { --art-a: #C79C7E; --art-b: var(--white); }
:root[data-theme="dark"] .hero--celebrate[data-celebration="thanksgiving"] { --art-a: #DA8746; --art-b: #973A4E; --art-c: #DDAE52; }

/* Hero glows — one layer each (the shared ::after tiles extra layers) */
.hero--celebrate[data-celebration="goodfriday"] { --cel-glow: radial-gradient(ellipse 55% 70% at 88% 82%, rgb(207 195 220 / 0.4), transparent 70%); }
.hero--celebrate[data-celebration="eastermonday"] { --cel-glow: radial-gradient(ellipse 55% 70% at 88% 82%, rgb(242 213 132 / 0.35), transparent 70%); }
.hero--celebrate[data-celebration="patriots"] { --cel-glow: radial-gradient(ellipse 55% 70% at 88% 80%, rgb(157 179 220 / 0.38), transparent 70%); }
.hero--celebrate[data-celebration="fetenationale"] { --cel-glow: radial-gradient(circle at 84% 40%, rgb(143 176 227 / 0.45), transparent 48%); }
.hero--celebrate[data-celebration="canadaday"] { --cel-glow: radial-gradient(circle at 84% 62%, rgb(255 255 255 / 0.22), transparent 46%); }
.hero--celebrate[data-celebration="labourday"] { --cel-glow: radial-gradient(circle at 84% 62%, rgb(235 211 164 / 0.4), transparent 46%); }
.hero--celebrate[data-celebration="thanksgiving"] { --cel-glow: radial-gradient(ellipse 55% 70% at 88% 82%, rgb(227 153 94 / 0.35), transparent 70%); }

/* Calendar greeting panels */
.festive--goodfriday { background: linear-gradient(160deg, #FBF8FB 0%, #ECE4F0 100%); box-shadow: inset 0 0 0 1.5px #D6CCE0; }
.festive--eastermonday { background: radial-gradient(circle at 86% 80%, rgb(251 239 198 / 0.95), transparent 46%), linear-gradient(150deg, #FFF6F8 0%, #F6DCE3 100%); box-shadow: inset 0 0 0 1.5px #F2D584; }
.festive--patriots { background: linear-gradient(155deg, #F6F8FC 0%, #E1E8F5 100%); box-shadow: inset 0 0 0 1.5px #9DB3DC; --art-b: var(--white); }
.festive--fetenationale { background: radial-gradient(circle at 84% 30%, rgb(255 255 255 / 0.85), transparent 40%), linear-gradient(150deg, #E9F0FB 0%, #C9D9F3 100%); box-shadow: inset 0 0 0 1.5px #8FB0E3; }
.festive--canadaday { background: linear-gradient(150deg, #FFFFFF 0%, #FBE4E5 100%); box-shadow: inset 0 0 0 1.5px #E79CA1; --art-b: #F6D3D5; }
.festive--labourday {
  background: repeating-linear-gradient(0deg, rgb(var(--burgundy-rgb) / 0.04) 0 1px, transparent 1px 28px), linear-gradient(160deg, #FCF8F2 0%, #EFE2D2 100%);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.festive--thanksgiving { background: radial-gradient(120% 90% at 100% 100%, #F3CDAA 0%, transparent 60%), #FCF1E7; box-shadow: inset 0 0 0 1.5px #E3995E; }

/* New illustration pieces */
.art__ring-soft { fill: none; stroke: var(--art-b); stroke-width: 2.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.art__burst path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.art__burst--a path { stroke: var(--art-a); } .art__burst--a .art__burst-dots { fill: var(--art-a); }
.art__burst--b path { stroke: var(--art-gold); } .art__burst--b .art__burst-dots { fill: var(--art-gold); }
.art__burst--c path { stroke: var(--art-b); } .art__burst--c .art__burst-dots { fill: var(--art-b); }
.art__burst { transform-box: fill-box; transform-origin: center; animation: burstPop 3.4s var(--ease-out) infinite; }
.art__grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 5.5s var(--ease-in-out) infinite; }

@keyframes burstPop {
  0% { transform: scale(0.55); opacity: 0; }
  25% { transform: scale(1); opacity: 1; }
  70% { opacity: 0.85; }
  100% { transform: scale(1.06); opacity: 0; }
}
@keyframes grow { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.04); } }

/* Particles: fleur-de-lis & maple leaf (masks, so they take any colour) */
.confetti__bit--fleur, .confetti__bit--maple {
  width: calc(var(--s) * 2.2);
  height: calc(var(--s) * 2.2);
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}
.confetti__bit--fleur { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c-2.4 2.8-3.2 6.2-1.6 10h3.2c1.6-3.8.8-7.2-1.6-10ZM10.6 12.8C8.4 8.6 3.6 8.9 3.6 12.4c0 2.4 2.8 3.2 4.2 1.6-.3 2.2 1.8 3 3.2 1.4ZM13.4 12.8C15.6 8.6 20.4 8.9 20.4 12.4c0 2.4-2.8 3.2-4.2 1.6.3 2.2-1.8 3-3.2 1.4ZM7.6 14.2h8.8a.9.9 0 0 1 0 1.8H7.6a.9.9 0 0 1 0-1.8ZM10.8 16h2.4l.9 4.2c.2.9-.5 1.8-1.4 1.8h-1.4c-.9 0-1.6-.9-1.4-1.8Z'/%3E%3C/svg%3E"); }
.confetti__bit--maple { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8 13.6 5.2 15.6 4.2 15 8.2 18 5.9 18.6 7.9 21.6 7.3 20.3 10.8 21.6 11.8 16.7 15.4 17.3 17 12.5 16.3 12.5 22 11.5 22 11.5 16.3 6.7 17 7.3 15.4 2.4 11.8 3.7 10.8 2.4 7.3 5.4 7.9 6 5.9 9 8.2 8.4 4.2 10.4 5.2Z'/%3E%3C/svg%3E"); }
/* White particles need a hint of edge on the light page */
.confetti--canadaday .confetti__bit--c1, .confetti--fetenationale .confetti__bit--c2 { box-shadow: 0 0 0 1px rgb(var(--burgundy-rgb) / 0.08); }

@media (prefers-reduced-motion: reduce) {
  .art__burst, .art__grow { animation: none !important; }
  .art__burst { opacity: 1; transform: none; }
}

/* --- Journal: the two monthly downloads --- */
.jmonth__downloads { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.jmonth__report .icon { width: 16px; height: 16px; }
.jmonth__report[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 519px) {
  .jmonth__downloads { justify-content: stretch; }
  .jmonth__downloads .btn { width: 100%; }
}

/* --- Optional actual time (Today, after a completed session) --- */
.time-log { margin-top: 12px; font-size: var(--fs-sm); }
.time-log summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none;
}
.time-log summary::-webkit-details-marker { display: none; }
.time-log summary .icon { width: 15px; height: 15px; }
.time-log summary:hover { color: inherit; }
.time-log__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.time-log__form label { font-weight: 600; }
.time-log__input {
  width: 92px; min-height: 40px; padding: 6px 12px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: inherit; font: inherit;
}
.time-log__input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.time-log__hint { flex-basis: 100%; font-size: var(--fs-xs); color: var(--ink-3); }
.time-log__read { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.time-log__read .icon { width: 14px; height: 14px; }
.act .time-log { flex-basis: 100%; margin-top: 4px; }

/* Phase 11.3 — date-aware appointment controls */
.plans-panel__controls { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.confirm__choices { display: grid; gap: .65rem; margin-block: 1.25rem; }
.confirm__choices .btn { width: 100%; justify-content: center; white-space: normal; min-height: 2.8rem; }
.confirm__choices [hidden] { display: none !important; }
@media (max-width: 520px) { .plans-panel__controls { justify-content: flex-start; } }
