/* ============================================================
   Maison Soleil — Hotel Booking Confirmation
   ============================================================ */

/* ----------------------------------------------------------
   1. FONTS  (@font-face)
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('./assets/fonts/fraunces/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('./assets/fonts/fraunces/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('./assets/fonts/dm-mono/DMMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('./assets/fonts/dm-mono/DMMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   2. DESIGN TOKENS  (:root custom properties)
   ---------------------------------------------------------- */
:root {
  /* Neutral */
  --neutral-900: hsl(33, 15%, 15%);
  --neutral-800: hsl(33, 22%, 20%);
  --neutral-700: hsl(32, 20%, 29%);
  --neutral-600: hsl(33, 17%, 41%);
  --neutral-400: hsl(36, 22%, 86%);
  --neutral-200: hsl(30, 24%, 93%);
  --neutral-100: hsl(35, 60%, 96%);
  --neutral-50:  hsl(40, 60%, 98%);
  --neutral-0:   hsl(0, 0%, 100%);

  /* Sun */
  --sun-500: hsl(42, 83%, 58%);
  --sun-300: hsl(44, 84%, 75%);
  --sun-200: hsl(45, 100%, 74%);
  --sun-50:  hsl(41, 100%, 93%);

  /* Terracotta */
  --terracotta-700: hsl(15, 69%, 37%);
  --terracotta-600: hsl(15, 74%, 41%);
  --terracotta-500: hsl(18, 62%, 47%);
  --terracotta-400: hsl(22, 72%, 56%);

  /* Blue / Rose */
  --blue-500: hsl(230, 49%, 56%);
  --rose-500: hsl(340, 48%, 52%);

  /* Fonts */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout & shape */
  --sidebar-width: 384px;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 2px hsl(33 20% 20% / 0.04), 0 18px 40px -24px hsl(33 20% 20% / 0.22);
  --shadow-lift: 0 2px 4px hsl(33 20% 20% / 0.06), 0 30px 60px -28px hsl(33 20% 20% / 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------
   3. BASE / RESET
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scrollbars hidden everywhere; scrolling itself (touch + mouse wheel)
   is untouched — only the visible track/thumb chrome is removed. */
* {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* legacy Edge / IE */
}
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 3px; border-radius: 4px; }

/* Visually hidden, still available to screen readers */
.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;
}

/* ----------------------------------------------------------
   4. SHARED ATOMS
   ---------------------------------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.icon-btn:hover { background: var(--neutral-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-600);
}
.eyebrow img { width: 8px; height: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s ease,
              color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--terracotta-600);
  color: var(--neutral-0);
  box-shadow: 0 8px 20px -10px hsl(15 74% 41% / 0.7);
}
.btn--solid:hover { background: var(--terracotta-700); box-shadow: 0 12px 26px -10px hsl(15 74% 41% / 0.8); }

.btn--ghost {
  background: transparent;
  color: var(--neutral-900);
  border-color: var(--neutral-400);
}
.btn--ghost:hover { border-color: var(--neutral-900); background: var(--neutral-0); }

/* ----------------------------------------------------------
   5. MOBILE TOP BAR
   ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: hsl(40 60% 98% / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--neutral-200);
}
.topbar__logo { height: 30px; width: auto; }
.topbar__right { display: inline-flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------
   6. SIDEBAR
   ---------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(384px, 88vw);
  z-index: 100;
  background: linear-gradient(180deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
  border-right: 1px solid var(--neutral-200);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.sidebar__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}
.sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 32px;
}

.sidebar__brand { margin-bottom: 4px; }
.sidebar__logo { height: 42px; width: auto; }

/* Navigation */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__link:hover { background: var(--neutral-200); color: var(--neutral-900); }
.nav__icon { width: 20px; height: 20px; flex: none; }
.nav__link.is-active {
  background: var(--neutral-0);
  color: var(--neutral-900);
  box-shadow: inset 0 0 0 1px var(--neutral-400);
}
.nav__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--terracotta-600);
  color: var(--neutral-0);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Weather */
.weather {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
}
.weather__head { display: flex; align-items: center; gap: 16px; }
.weather__icon { width: 56px; height: 56px; flex: none; }
.weather__text { display: flex; flex-direction: column; }
.weather__label {
  font-size: 0.78rem;
  color: var(--neutral-600);
  letter-spacing: 0.02em;
}
.weather__temp {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--neutral-900);
}
.weather__desc {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neutral-600);
}

/* Decorative art */
.sidebar__art { display: flex; justify-content: center; opacity: 0.92; }
.sidebar__art img { width: 150px; }

/* Sidebar footer */
.sidebar__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar__est {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-600);
}
.sidebar__addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.sidebar__addr img { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sidebar__copy { font-size: 0.72rem; color: var(--neutral-600); }

/* Backdrop (mobile) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: hsl(33 15% 15% / 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
body.menu-open .sidebar { transform: translateX(0); box-shadow: 0 0 80px hsl(33 15% 15% / 0.3); }
/* Lock the page in place while the mobile drawer is open — otherwise the
   background content can scroll behind it, reading as layout shake. */
body.menu-open { overflow: hidden; }
body.menu-open .backdrop { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------
   7. MAIN CONTENT
   ---------------------------------------------------------- */
.main { padding: 28px 20px 56px; }

.main__header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.main__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--neutral-900);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Rotating hero headline — two phrases swap vertically inside a fixed
   one-line window, so the header never reflows. Pure CSS loop (8s):
   each phrase holds ~3.4s, then slides up and out while the other slides
   up from below in the same motion. */
.title-swap {
  position: relative;
  display: block;
  height: 1.05em; /* one line at the h1's line-height — fixes the box */
  overflow: hidden;
}
.title-swap__item {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  will-change: transform;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}
.title-swap__item--a { animation-name: title-swap-a; }
.title-swap__item--b { animation-name: title-swap-b; }

@keyframes title-swap-a {
  0%, 42.5% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(-115%); opacity: 0; }
  /* teleport below while hidden so the return trip also travels upward */
  50.001%, 92.5% { transform: translateY(115%); opacity: 0; }
  100%      { transform: translateY(0); opacity: 1; }
}
@keyframes title-swap-b {
  0%, 42.5% { transform: translateY(115%); opacity: 0; }
  50%, 92.5% { transform: translateY(0); opacity: 1; }
  /* exits upward at the loop point; the wrap back to +115% happens off-screen */
  100%      { transform: translateY(-115%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .title-swap__item { animation: none; }
  .title-swap__item--b { visibility: hidden; }
}

/* ----------------------------------------------------------
   8. LAYERED CARDS
   ---------------------------------------------------------- */
.cards {
  position: relative;
  margin-bottom: 40px;
  /* room for the note card to peek out */
  padding-top: 12px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* Note card */
.card--note {
  width: 280px;
  background: var(--terracotta-600);
  color: var(--sun-50);
  padding: 28px 26px;
  margin: 0 0 -36px auto;
  position: relative;
  z-index: 3;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-card);
}
.card__eyebrow--light {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun-200);
  margin-bottom: 12px;
}
.note__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.note__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: hsl(41 100% 93% / 0.92);
  margin-bottom: 18px;
}
.note__room {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid hsl(41 100% 93% / 0.25);
}
.note__room-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun-200);
}
.note__room-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--neutral-0);
}

/* Receipt card */
.card--receipt {
  background: var(--neutral-0);
  padding: 30px 24px;
  z-index: 2;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--neutral-200);
}

.receipt__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.receipt__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--neutral-900);
}
.receipt__codes { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.receipt__code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neutral-600);
}

.receipt__divider {
  height: 0;
  margin: 18px 0;
  border-top: 1px dashed var(--neutral-400);
}

.receipt__section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neutral-600);
  margin-bottom: 14px;
}

.receipt__dates { display: flex; gap: 16px; }
.receipt__date { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.receipt__date-label { font-size: 0.78rem; color: var(--neutral-600); }
.receipt__date-day {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--neutral-900);
  line-height: 1.1;
}
.receipt__date-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--neutral-600); }

.receipt__lines { display: flex; flex-direction: column; gap: 12px; }
.receipt__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt__line-name { font-size: 0.88rem; color: var(--neutral-700); }
.receipt__line-price { font-family: var(--font-mono); font-size: 0.86rem; color: var(--neutral-900); flex: none; }

.receipt__total { display: flex; justify-content: space-between; align-items: baseline; }
.receipt__total-label { font-size: 0.92rem; font-weight: 600; color: var(--neutral-900); }
.receipt__total-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--neutral-900);
}

.receipt__paid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--terracotta-600);
}
.receipt__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terracotta-500);
  box-shadow: 0 0 0 3px hsl(18 62% 47% / 0.18);
}

.receipt__barcode { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; }
.receipt__barcode img { width: 120px; }
.receipt__barcode-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--neutral-600);
}

.cards__hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--neutral-600);
  opacity: 0.7;
}

/* Tap/keyboard affordance for the card stack */
.cards { cursor: pointer; }
.cards:focus-visible { outline: none; }

/* Fan-out — toggled state (touch tap + keyboard activation) */
.cards.is-fanned .card--note,
.cards:focus .card--note,
.cards:focus-within .card--note {
  transform: rotate(-7deg) translate(-6px, -12px);
  box-shadow: var(--shadow-lift);
}
.cards.is-fanned .card--receipt,
.cards:focus .card--receipt,
.cards:focus-within .card--receipt {
  transform: rotate(2deg) translate(10px, 6px);
  box-shadow: var(--shadow-lift);
}

/* Fan-out — hover (only on devices with a true pointer) */
@media (hover: hover) {
  .cards:hover .card--note {
    transform: rotate(-7deg) translate(-6px, -12px);
    box-shadow: var(--shadow-lift);
  }
  .cards:hover .card--receipt {
    transform: rotate(2deg) translate(10px, 6px);
    box-shadow: var(--shadow-lift);
  }
}

/* ----------------------------------------------------------
   9. GUEST INFO ROW
   ---------------------------------------------------------- */
.info { display: flex; flex-direction: column; gap: 16px; }

.tile {
  background: var(--neutral-900);
  color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.tile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tile__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sun-500);
  letter-spacing: 0.1em;
}
.tile__icon { width: 24px; height: 24px; }
.tile__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--neutral-0);
}
.tile__sub { font-size: 0.88rem; color: hsl(36 22% 86% / 0.85); margin-top: 2px; }
.tile__emph {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sun-300);
  margin-top: 10px;
}
.tile__body {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: hsl(36 22% 86% / 0.8);
}

/* Wifi block */
.wifi { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.wifi__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wifi__row dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(36 22% 86% / 0.6); }
.wifi__row dd { font-family: var(--font-mono); font-size: 0.84rem; color: var(--neutral-0); text-align: right; }
.wifi__pass { letter-spacing: 0.04em; }

.copy-btn {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sun-500);
  color: var(--neutral-900);
  font-weight: 500;
  font-size: 0.82rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.copy-btn:hover { background: var(--sun-300); }
.copy-btn:active { transform: translateY(1px); }
.copy-btn.is-copied { background: var(--terracotta-500); color: var(--neutral-0); }

/* ----------------------------------------------------------
   10. ATTRIBUTION
   ---------------------------------------------------------- */
.attribution {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--neutral-200);
  font-size: 0.7rem;
  text-align: center;
  color: var(--neutral-600);
}
.attribution a { color: var(--terracotta-600); font-weight: 500; }
.attribution a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   11. RESPONSIVE — DESKTOP (>= 900px)
   ---------------------------------------------------------- */
@media (min-width: 900px) {
  .topbar { display: none; }
  .sidebar__close { display: none; }

  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    transform: none;
    border-right: 1px solid var(--neutral-200);
  }
  .sidebar__inner { gap: 32px; padding: 48px 40px; min-height: 100vh; }

  /* keep sidebar content vertically distributed */
  .sidebar__inner > .sidebar__foot { margin-top: auto; }

  .main {
    padding: 64px 64px 80px;
    max-width: 900px;
  }

  .main__header { gap: 18px; margin-bottom: 48px; }

  /* Layered / overlapping cards with fan-out on hover */
  .cards {
    padding-top: 70px;
    padding-right: 30px;
  }
  .card--note {
    position: absolute;
    top: 0;
    right: 30px;
    margin: 0;
    width: 300px;
    transform: rotate(3deg);
    transform-origin: top right;
  }
  .card--receipt { padding: 44px 44px 36px; }

  /* Fan-out interaction — desktop geometry (note is absolutely positioned) */
  .cards.is-fanned .card--note,
  .cards:focus .card--note,
  .cards:focus-within .card--note {
    transform: rotate(8deg) translate(18%, -14%);
    box-shadow: var(--shadow-lift);
  }
  .cards.is-fanned .card--receipt,
  .cards:focus .card--receipt,
  .cards:focus-within .card--receipt {
    transform: rotate(-1.2deg) translateX(-12px);
    box-shadow: var(--shadow-lift);
  }
  @media (hover: hover) {
    .cards:hover .card--note {
      transform: rotate(8deg) translate(18%, -14%);
      box-shadow: var(--shadow-lift);
    }
    .cards:hover .card--receipt {
      transform: rotate(-1.2deg) translateX(-12px);
      box-shadow: var(--shadow-lift);
    }
  }

  /* Guest info row → 3 columns */
  .info {
    flex-direction: row;
  }
  .tile { flex: 1; }
}

@media (min-width: 1200px) {
  .main { padding: 72px 80px 96px; }
  .card--note { width: 320px; }
}

/* ----------------------------------------------------------
   12. REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .cards.is-fanned .card--note, .cards.is-fanned .card--receipt,
  .cards:hover .card--note, .cards:hover .card--receipt,
  .cards:focus .card--note, .cards:focus .card--receipt,
  .cards:focus-within .card--note, .cards:focus-within .card--receipt { transform: none; }
}

/* ----------------------------------------------------------
   13. PRINT (clean receipt view)
   ---------------------------------------------------------- */
@media print {
  .topbar, .sidebar, .backdrop, .main__header, .info,
  .attribution, .cards__hint, .card--note { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; max-width: none; }
  .card--receipt {
    box-shadow: none;
    border: 1px solid var(--neutral-400);
    transform: none !important;
    padding: 24px;
  }
  body { background: #fff; }
}

/* ============================================================
   14. CONTENT PAGES (Home / Around town / Breakfast / Messages)
   ============================================================ */

/* Reusable page intro */
.page-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 64ch; }
.page-head__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.page-head__lead { color: var(--neutral-700); font-size: 1rem; line-height: 1.6; }

/* Logo / brand links */
.topbar__link, .sidebar__brand-link { display: inline-flex; align-items: center; transition: opacity 0.2s ease; }
.topbar__link:hover, .sidebar__brand-link:hover { opacity: 0.78; }

/* Sections */
.section { margin-bottom: 48px; }
.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 10px 0 20px;
  color: var(--neutral-900);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--sun-50) 0%, var(--neutral-0) 70%);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  max-width: 16ch;
}
.hero__lead { color: var(--neutral-700); font-size: 1.05rem; line-height: 1.6; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__art {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 200px;
  opacity: 0.4;
  pointer-events: none;
}
.hero__art img { width: 100%; }

/* Generic card grids */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Light content card */
.spot {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.spot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.spot__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spot__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; color: var(--neutral-900); }
.spot__desc { color: var(--neutral-700); font-size: 0.9rem; line-height: 1.55; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sun-50);
  color: var(--terracotta-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}

/* Room tiles (gradient, no photos) */
.room {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: var(--neutral-0);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.room--garrigue { background: linear-gradient(135deg, var(--terracotta-600), var(--terracotta-700)); }
.room--pin      { background: linear-gradient(135deg, var(--neutral-700), var(--neutral-900)); }
.room--lavande  { background: linear-gradient(135deg, var(--rose-500), var(--terracotta-600)); }
.room--port     { background: linear-gradient(135deg, var(--sun-500), var(--terracotta-500)); color: var(--neutral-900); }
.room__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}
.room--port .room__tag { opacity: 0.7; }
.room__name { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.room__desc { font-size: 0.86rem; opacity: 0.9; line-height: 1.5; }

/* Feature row */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature__icon { width: 28px; height: 28px; }
.feature__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; }
.feature__desc { color: var(--neutral-700); font-size: 0.88rem; line-height: 1.55; }

/* Pull quote */
.quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--neutral-800);
  padding: 28px 28px 28px 30px;
  border-left: 3px solid var(--terracotta-500);
  background: var(--neutral-0);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-card);
}
.quote__cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--neutral-600);
}

/* Breakfast menu */
.menu { display: grid; gap: 28px; }
@media (min-width: 760px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu__group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  margin-bottom: 10px;
}
.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--neutral-400);
}
.menu__item:last-child { border-bottom: none; }
.menu__name { font-weight: 500; color: var(--neutral-900); }
.menu__note { color: var(--neutral-600); font-size: 0.82rem; }

/* Signature dish callout */
.callout {
  background: var(--neutral-900);
  color: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.callout__tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sun-300); }
.callout__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; color: var(--neutral-0); }
.callout__text { color: hsl(36 22% 86% / 0.85); font-size: 0.92rem; line-height: 1.6; }

/* Messages thread */
.thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 16px; }
.bubble--host {
  align-self: flex-start;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-bottom-left-radius: 4px;
}
.bubble--guest {
  align-self: flex-end;
  background: var(--terracotta-600);
  color: var(--neutral-0);
  border-bottom-right-radius: 4px;
}
.bubble__name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; opacity: 0.75; margin-bottom: 4px; }
.bubble__text { font-size: 0.92rem; line-height: 1.5; }
.bubble__time { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.6; }

/* Compose box */
.compose { display: flex; gap: 10px; margin-top: 16px; }
.compose__input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--neutral-400);
  border-radius: 999px;
  font: inherit;
  background: var(--neutral-0);
  color: var(--neutral-900);
}
.compose__input::placeholder { color: var(--neutral-600); }
.compose__input:focus { outline: 2px solid var(--terracotta-500); outline-offset: 1px; border-color: transparent; }

/* Inline link button (in-page CTAs) */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--terracotta-600);
  margin-top: 8px;
  transition: color 0.2s ease;
}
.link-btn:hover { color: var(--terracotta-700); }
.link-btn::after { content: "→"; }

/* Responsive content spacing */
@media (min-width: 900px) {
  .hero { padding: 64px 56px; gap: 20px; }
  .hero__art { width: 300px; right: -70px; bottom: -70px; }
}

/* ============================================================
   15. TRACKER EXTENSIONS
   Accountability Tracker components. These DERIVE from the
   Maison Soleil atoms above — same tokens, radii, shadows,
   easings, and hover/transition patterns. No new design language.
   ============================================================ */

/* --- Semantic person-identity aliases (reuse existing palette) --- */
:root {
  --person-a: var(--terracotta-600);   /* warm  */
  --person-a-soft: var(--sun-50);
  --person-a-deep: var(--terracotta-700);
  --person-b: var(--blue-500);         /* cool  */
  --person-b-soft: hsl(230, 49%, 94%);
  --person-b-deep: hsl(230, 40%, 44%);
  --done: var(--sun-500);
  --done-deep: var(--terracotta-500);
  --track: var(--neutral-200);
}

/* --- Brand wordmark (replaces logo icon) --- */
.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--neutral-900);
  line-height: 1;
}
.brand--lg { font-size: 1.9rem; }
.brand__dot { color: var(--terracotta-600); }
.topbar__link:hover .brand,
.sidebar__brand-link:hover .brand { opacity: 0.78; }

/* ============================================================
   A. PAGE SHELL — reuses .layout / .sidebar / .topbar patterns
   ============================================================ */
/* dvh follows the real visible viewport, so the shell doesn't resize
   (and content doesn't jump) as mobile browser chrome shows/hides. */
.app { min-height: 100vh; min-height: 100dvh; }

/* ============================================================
   B. DAY SELECTOR STRIP  (.daystrip) — reuses .pill geometry
   ============================================================ */
.daystrip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 2px 10px;
}
.daystrip::-webkit-scrollbar { height: 6px; }
.daystrip::-webkit-scrollbar-thumb { background: var(--neutral-400); border-radius: 999px; }

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 9px 4px;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-400);
  background: var(--neutral-0);
  color: var(--neutral-700);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .day:hover { transform: translateY(-2px); border-color: var(--neutral-600); }
}
.day__num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--neutral-900);
}
.day.is-active {
  background: var(--neutral-900);
  color: var(--neutral-100);
  border-color: var(--neutral-900);
  box-shadow: var(--shadow-card);
}
.day.is-active .day__num { color: var(--sun-500); }
.day.is-today { position: relative; }
.day.is-today::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--terracotta-500);
}
/* Past days read as settled history — muted but still readable/clickable. */
.day.is-past {
  color: var(--neutral-400);
  background: var(--neutral-50);
  border-color: var(--neutral-200);
}
.day.is-past .day__num { color: var(--neutral-400); }
.day.is-past.is-active { color: var(--neutral-100); background: var(--neutral-700); border-color: var(--neutral-700); }
.day.is-past.is-active .day__num { color: var(--sun-300); }
/* Future days get a subtle marker so "today" stays the visual anchor. */
.day.is-future { color: var(--neutral-600); }
.day.is-future .day__num { color: var(--neutral-700); }

/* ============================================================
    B2. CALENDAR NAVIGATION  (.calnav) — prev/next week + Today
    ============================================================ */
.calnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 10px;
}
.calnav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-400);
  background: var(--neutral-0);
  color: var(--neutral-700);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.calnav__btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .calnav__btn:hover { background: var(--neutral-100); border-color: var(--neutral-600); color: var(--neutral-900); }
  .calnav__btn:active { transform: scale(0.96); }
}
.calnav__btn:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 2px; }
.calnav__mid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.calnav__label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calnav__today {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta-600);
  background: var(--sun-50);
  border: 1px solid var(--sun-300);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.calnav__today:hover { background: var(--sun-200); color: var(--terracotta-700); }

/* ============================================================
    B3. READ-ONLY HISTORY BANNER  (.past-banner)
    ============================================================ */
.past-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-400);
  color: var(--neutral-700);
  font-size: 0.85rem;
  line-height: 1.4;
}
.past-banner[hidden] { display: none; }
.past-banner svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--terracotta-500); }
.past-banner__link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--terracotta-600);
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 1px;
  cursor: pointer;
}
.past-banner__link:hover { color: var(--terracotta-700); }

/* ============================================================
   C. ZONES & SECTION HEADERS (Daily / Weekly / Stats columns)
   ============================================================ */
.zone { margin-bottom: 36px; min-width: 0; }
.zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.zone__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--neutral-900);
}
.zone__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neutral-600);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--neutral-200);
  white-space: normal;
  line-height: 1.3;
}

/* ============================================================
   D. TASK ITEM  (.task) — light card, hover-lift like .spot
   ============================================================ */
.tasks { display: flex; flex-direction: column; gap: 12px; }

.task {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .task:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--neutral-400); }
}
/* left accent stripe tinted by assignee */
.task::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 999px;
  background: var(--neutral-400);
  transition: background-color 0.3s ease;
}
.task[data-assignee="A"]::before { background: var(--person-a); }
.task[data-assignee="B"]::before { background: var(--person-b); }
.task[data-assignee="shared"]::before { background: linear-gradient(var(--person-a), var(--person-b)); }

/* per-person checkboxes (Owen = A, Uma = B) */
.task__checks { display: flex; flex-direction: column; gap: 6px; flex: none; margin-top: 1px; }
.pcheck {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--neutral-400);
  background: var(--neutral-0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--neutral-600);
  transition: background-color 0.2s var(--ease), border-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .pcheck:hover { transform: scale(1.08); }
  .pcheck[data-who="A"]:hover { border-color: var(--person-a); color: var(--person-a-deep); }
  .pcheck[data-who="B"]:hover { border-color: var(--person-b); color: var(--person-b-deep); }
}
.pcheck svg { width: 15px; height: 15px; color: var(--neutral-0); opacity: 0; transform: scale(0.5); transition: opacity 0.15s ease, transform 0.15s var(--ease); position: absolute; }
.pcheck__init { transition: opacity 0.15s ease; }
.pcheck.is-done[data-who="A"] { background: var(--person-a); border-color: var(--person-a); }
.pcheck.is-done[data-who="B"] { background: var(--person-b); border-color: var(--person-b); }
.pcheck.is-done .pcheck__init { opacity: 0; }
.pcheck.is-done svg { opacity: 1; transform: scale(1); }

.task__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border-radius: 8px; }
.task__body:focus-visible { outline: 2px solid var(--terracotta-500); outline-offset: 2px; }
.task__title {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--neutral-900);
  line-height: 1.4;
  word-break: break-word;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.task.is-done .task__title { color: var(--neutral-600); text-decoration: line-through; text-decoration-color: var(--neutral-400); }
.task__notes { font-size: 0.82rem; color: var(--neutral-600); line-height: 1.5; }
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }

.task__actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s ease; flex: none; }
.task:hover .task__actions, .task:focus-within .task__actions { opacity: 1; }
.task__action {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--neutral-600);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.task__action:hover { background: var(--neutral-200); color: var(--neutral-900); }
.task__action svg { width: 16px; height: 16px; }

/* ============================================================
   E. ASSIGNEE CHIPS  (.chip) — reuses .pill pattern
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--a { background: var(--person-a-soft); color: var(--person-a-deep); }
.chip--b { background: var(--person-b-soft); color: var(--person-b-deep); }
.chip--shared { background: var(--neutral-200); color: var(--neutral-700); }
.chip--shared::before { background: linear-gradient(var(--person-a), var(--person-b)); }

/* ============================================================
   F. PROGRESS BARS  (.progress)
   ============================================================ */
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.progress__label { font-size: 0.82rem; color: var(--neutral-700); font-weight: 500; }
.progress__val { font-family: var(--font-mono); font-size: 0.8rem; color: var(--neutral-600); }
.progress__track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--done), var(--done-deep));
  width: 0%;
  transition: width 0.6s var(--ease);
}
.progress__fill--a { background: var(--person-a); }
.progress__fill--b { background: var(--person-b); }

/* split bar (A | B contribution) */
.progress__track--split { display: flex; }
.progress__seg { height: 100%; transition: width 0.6s var(--ease); }
.progress__seg--a { background: var(--person-a); }
.progress__seg--b { background: var(--person-b); }

/* ============================================================
   G. STAT TILES — extends the dark .tile atom for big numbers
   ============================================================ */
.stat__big {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1;
  color: var(--neutral-0);
}
.stat__big .stat__pct { color: var(--sun-500); font-size: 0.5em; vertical-align: super; margin-left: 2px; }
.tile--flush { padding: 22px 22px; }
.tile__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.streak {
  display: flex; flex-direction: column; gap: 2px;
}
.streak__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}
.streak__num .streak__flame { color: var(--sun-500); margin-right: 4px; }
.streak__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(36 22% 86% / 0.7); }

/* ============================================================
   H. (FAB removed — add via per-section buttons)
   ============================================================ */

/* ============================================================
   I. MODAL  (add / edit / seat-picker / share) — card-styled
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: hsl(33 15% 15% / 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--neutral-0);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 28px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__card { transform: translateY(0) scale(1); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; color: var(--neutral-900); }
.modal__sub { font-size: 0.85rem; color: var(--neutral-600); margin-top: 2px; }
.modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--neutral-600);
  transition: background-color 0.2s ease, color 0.2s ease;
  flex: none;
}
.modal__close:hover { background: var(--neutral-200); color: var(--neutral-900); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { display: flex; flex-direction: column; gap: 18px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ============================================================
   J. FORM FIELDS — reuses .compose__input look
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neutral-600); }
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--neutral-400);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--neutral-0);
  color: var(--neutral-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--terracotta-500);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* segmented control (cadence / assignee picker) */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--neutral-200);
  border-radius: 12px;
}
.segmented__opt {
  padding: 10px 12px;
  border-radius: 9px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented__opt.is-active { background: var(--neutral-0); color: var(--neutral-900); box-shadow: var(--shadow-card); }
.segmented__opt[data-value="A"].is-active { color: var(--person-a-deep); }
.segmented__opt[data-value="B"].is-active { color: var(--person-b-deep); }

/* ============================================================
   K. PRESENCE / STATUS DOT
   ============================================================ */
.presence { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--neutral-600); }
.presence__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-400); box-shadow: 0 0 0 3px hsl(0 0% 0% / 0.04); }
.presence--online .presence__dot { background: #3fbf7f; box-shadow: 0 0 0 3px hsl(150 50% 60% / 0.25); }
.presence--syncing .presence__dot { background: var(--sun-500); }
.presence--reconnecting .presence__dot { background: var(--terracotta-400); animation: presence-pulse 1.1s var(--ease) infinite; }
.presence--offline .presence__dot { background: var(--neutral-600); }
@keyframes presence-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* ============================================================
   L. TOAST  (non-blocking confirmations)
   ============================================================ */
.toast-wrap { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 130; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--neutral-900);
  color: var(--neutral-100);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lift);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--sun-500); }

/* ============================================================
   M. EMPTY STATE
   ============================================================ */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  padding: 40px 20px;
  border: 1.5px dashed var(--neutral-400);
  border-radius: var(--radius);
  color: var(--neutral-600);
}
.empty__title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--neutral-800); }
.empty__text { font-size: 0.88rem; max-width: 36ch; }

/* ============================================================
   N. PERSON PROFILE PILL (names in header / sidebar)
   ============================================================ */
.who { display: flex; flex-direction: column; gap: 10px; }
.who__row { display: flex; align-items: center; gap: 12px; }
.who__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.05rem;
  color: var(--neutral-0);
  flex: none;
}
.who__avatar--a { background: var(--person-a); }
.who__avatar--b { background: var(--person-b); color: var(--neutral-0); }
.who__name { font-weight: 500; font-size: 0.92rem; color: var(--neutral-900); }
.who__role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neutral-600); letter-spacing: 0.06em; }

/* "you" badge */
.me-badge { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-600); margin-left: 6px; }

/* ============================================================
   O. RESPONSIVE — tracker-specific
   ============================================================ */

/* Pages: Today / This week */
.page { animation: page-in 0.35s var(--ease); }
.page[hidden] { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Today: Daily | Weekly side by side on desktop, stacked on mobile */
.tracker-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .tracker-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* This week: horizontal progress cards (wrap on narrow) */
.stats-rail { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: stretch; }

/* Weekly tasks page: task list + progress panel side by side */
.weekly-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .weekly-grid { grid-template-columns: 1.5fr 1fr; gap: 30px; } }

/* Weekly progress panel detail list */
.wprogress { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.wprogress li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed hsl(36 22% 86% / 0.18); }
.wprogress li:last-child { border-bottom: none; padding-bottom: 0; }
.wprogress__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(36 22% 86% / 0.7); }
.wprogress__val { font-family: var(--font-serif); font-size: 1.5rem; color: var(--neutral-0); line-height: 1; }
.wprogress__val--done { color: var(--sun-500); }
.wprogress__val--rem { color: var(--terracotta-400); }

/* hide fab on very wide screens where an inline add button suffices (kept always — it's the primary CTA) */
.fab { }

@media (prefers-reduced-motion: reduce) {
  .day, .task, .progress__fill, .modal__card, .fab, .toast, .segmented__opt { transition-duration: 0.01ms !important; }
}

/* Ensure sections have breathing room above the footer on small screens */
@media (max-width: 899px) {
  .main { padding-bottom: 64px; }
}

/* Seat names: clickable affordance for renaming */
.who__row { cursor: pointer; border-radius: var(--radius-sm); padding: 6px 8px; margin: -6px -8px; transition: background-color 0.2s ease; }
.who__row:hover { background: var(--neutral-200); }
.who__name { display: inline-flex; align-items: center; gap: 4px; }

/* live region for stats (announces progress to assistive tech) */
.stats-rail, [data-live] { }

/* selectable link button gets pointer */
.link-btn { cursor: pointer; }

/* ============================================================
   P. MOBILE RESPONSIVENESS — eliminate overflow / horizontal scroll
   ============================================================ */
body { overflow-wrap: break-word; word-break: break-word; }

/* task edit/delete always reachable on touch (no hover) */
@media (hover: none) {
  .task__actions { opacity: 1; }
}

/* tighter spacing on phones */
@media (max-width: 600px) {
  .main { padding: 22px 16px 56px; }
  .main__header { gap: 12px; margin-bottom: 28px; }
  .zone { margin-bottom: 28px; }
  .tasks { gap: 10px; }
  .task { padding: 13px 14px; gap: 11px; }
  .modal { padding: 12px; }
  .modal__card { padding: 22px 18px; border-radius: var(--radius); }
  .modal__title { font-size: 1.35rem; }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
  .segmented__opt { padding: 9px 6px; font-size: 0.82rem; }
  .stats-rail { gap: 12px; }
}

/* very small screens: hide weekday labels on day chips, keep numbers */
@media (max-width: 380px) {
  .day > span:not(.day__num) { display: none; }
  .day { padding: 10px 2px; }
}

/* keep grids from blowing out on small tablets */
.tracker-grid > .zone { min-width: 0; }
.tasks, .stats-rail { min-width: 0; }

/* topbar presence label can shrink */
.topbar__right { min-width: 0; }
.topbar .presence { font-size: 0.66rem; }

/* === Per-user weekly page + read-only partner tasks === */
.weekly-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* A partner's weekly task: view-only — dimmed, no hover lift, no pointer on body */
.task.is-readonly { opacity: 0.92; }
.task.is-readonly:hover { transform: none; box-shadow: var(--shadow-sm, none); }
.task.is-readonly .task__body { cursor: default; }

/* Locked checkbox (managed by the owner) */
.pcheck.is-locked { cursor: default; opacity: 0.85; }
.pcheck.is-locked:hover { transform: none; }

