/* ==========================================================================
   GiftMatch MVP · Design System v2.3 (Restrained Soul × Jade & Porcelain)
   Locked Palette: Warm Porcelain #FAF9F7 · Deep Jade #0D6E5B · Champagne #F0C265
   Typography 1A: Lora (Headings) · Be Vietnam Pro (UI/Body) · Caveat (Card Sign)
   ========================================================================== */

:root {
  --bg-canvas: #FAF9F7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F1EC;
  --bg-stage-warm: #F2EFE8;
  --bg-paper-note: #FAF7F0;
  --border-hairline: #E6E3DC;
  --border-strong: #D4CFC5;

  --ink-primary: #191A19;
  --ink-secondary: #5C5F5B;
  --ink-muted: #8A8D88;

  --brand-jade: #0D6E5B;
  --brand-jade-deep: #094D3F;
  --brand-jade-hover: #095445;
  --brand-jade-soft: #ECF5F2;
  --brand-jade-border: #C4E0D8;

  --celestial-deep: #073B31;
  --admin-dark: #151C1A;
  --champagne-foil: #F0C265;
  --coin-soft: #FBF6EB;
  --coin-border: #EFE0BE;
  --coin-ink: #8F5E0A;

  --success-soft: #ECFDF5;
  --success-ink: #047857;
  --warn-soft: #FFFBEB;
  --warn-ink: #B45309;
  --danger-soft: #FDF2F0;
  --danger-ink: #B43B2A;
  --danger-border: #E6A096;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --sh-xs: 0 1px 2px rgba(25, 26, 25, 0.04);
  --sh-sm: 0 2px 8px rgba(25, 26, 25, 0.05);
  --sh-md: 0 8px 24px rgba(25, 26, 25, 0.08);
  --sh-lg: 0 16px 40px rgba(25, 26, 25, 0.11);

  --ease-calm: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: 'Lora', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-num: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-script: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Signature Craft #1: Subtle Paper Grain (opacity 0.02) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
h1, h2 {
  margin: 0;
  color: var(--ink-primary);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3, h4 {
  margin: 0;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.32;
  text-wrap: balance;
}
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0; line-height: 1.62; text-wrap: pretty; }

.serif-italic { font-family: var(--font-head); font-style: italic; font-weight: 400; }
.hand-script { font-family: var(--font-script); font-size: 23px; line-height: 1.2; color: var(--ink-secondary); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  color: var(--ink-primary);
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-jade);
  margin-bottom: 4px;
}
.muted { color: var(--ink-secondary); }
.subtle-text { color: var(--ink-muted); font-size: 12.5px; }

/* Brand Logo · GiGi Mascot Mark */
.gm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19.5px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  flex-shrink: 0;
}
.gm-brand-light { color: #FFFFFF; }
.gm-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 220ms var(--ease-calm);
}
.gm-brand:hover .gm-brand-mark {
  transform: translateY(-2px) rotate(-4deg);
}
.gm-brand-light .gm-brand-mark .gigi-logo-bow {
  fill: #14967C;
  stroke: #FAF9F7;
  stroke-width: 2.4;
}
.gm-brand-light .gm-brand-mark .gigi-logo-box {
  stroke: #191A19;
}
.gm-brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Vector Mascot GiGi (7 Expressive States + Breathing Motion) */
.gigi-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.gigi-svg .glow {
  transform-origin: 60px 68px;
  animation: gigiPulse 2.2s var(--ease-calm) infinite;
}
@keyframes gigiPulse {
  0%, 100% { opacity: 0.38; transform: scale(0.94); }
  50% { opacity: 0.88; transform: scale(1.04); }
}
.gigi-svg.bob {
  animation: gigiBob 3.2s var(--ease-calm) infinite;
}
@keyframes gigiBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Signature Craft #2: Hand-drawn Wavy Divider, Corner Ribbon, Wax Seal & Wish Card */
.zig-divider {
  display: block;
  width: 100%;
  height: 8px;
  color: var(--border-strong);
}
.ribbon-best {
  z-index: 3;
  position: absolute;
  top: 14px;
  left: -6px;
  background: var(--brand-jade);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px 4px 10px;
  border-radius: 0 6px 6px 0;
  box-shadow: var(--sh-xs);
}
.ribbon-best::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  border: 3px solid transparent;
  border-top-color: var(--celestial-deep);
  border-right-color: var(--celestial-deep);
}
.wax-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-jade-deep);
  color: var(--champagne-foil);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px rgba(240, 194, 101, 0.28), var(--sh-sm);
}
.wish-box {
  background: var(--bg-paper-note);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Global User Header (Restrained Underline Active Tabs + Quick Search Pill) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.app-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.app-nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 140ms ease, border-color 140ms ease;
}
.app-nav a:hover { color: var(--brand-jade); }
.app-nav a.active { color: var(--brand-jade); border-bottom-color: var(--brand-jade); font-weight: 600; }
.header-spacer { flex: 1; }
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--ink-muted);
  font-size: 13px;
  min-width: 190px;
}
.header-search:hover { border-color: var(--border-strong); color: var(--ink-secondary); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--coin-soft);
  border: 1px solid var(--coin-border);
  color: var(--coin-ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
}
.coin-pill svg.gm-coin-svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }

/* Unified 1A Craft Rounded SVG Icons + 2A GiGi-Sibling Craft Badges */
.gm-ic {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.17em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  --ic-fill: none;
  --ic-accent: none;
  transition: color 160ms ease, transform 160ms ease;
}
.gm-ic.ic { flex-shrink: 0; }
.gm-badge-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-circle-btn:hover .gm-ic { --ic-fill: var(--brand-jade-soft); }
.mobile-tabbar a.active .gm-ic {
  stroke-width: 1.95;
  --ic-fill: #D5ECE6;
  --ic-accent: #0D6E5B;
}
.mobile-tabbar a.mid-cta .mid-orb .gm-ic {
  --ic-fill: rgba(240, 194, 101, 0.36);
  stroke-width: 1.95;
}
.admin-nav-link.active .gm-ic {
  stroke-width: 1.95;
  --ic-fill: rgba(20, 150, 124, 0.32);
  --ic-accent: #7CE3CC;
}

.icon-circle-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
}
.icon-circle-btn:hover { background: var(--bg-subtle); color: var(--ink-primary); }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-jade);
}

/* Avatars */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 21px; }
.av-emerald { background: #ECFDF5; color: #007A55; }
.av-amber   { background: #FFFBEB; color: #BB4D00; }
.av-sky     { background: #F0F9FF; color: #0069A8; }
.av-pink    { background: #FDF2F8; color: #C6005C; }
.av-indigo  { background: #EEF2FF; color: #432DD7; }
.av-violet  { background: #F5F3FF; color: #7008E7; }

/* Containers & Grids */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 92px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.grid-home-8-4 { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 26px; align-items: start; }
.grid-match-7-5 { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); gap: 26px; align-items: start; }
.grid-crm {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  min-height: 520px;
}
.grid-pdp { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: 36px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-7-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.grid-qr { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px; align-items: center; }
.sticky-col { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }

/* Surfaces: Soft Warm Elevation + Zero Box-in-Box */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-xs);
  padding: 24px 26px;
  min-width: 0;
  position: relative;
}
.card-hov { transition: transform 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart); }
.card-hov:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.card-subtle {
  background: var(--bg-subtle);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.card-anchor-jade, .coin-hero-jade {
  background: linear-gradient(135deg, #0D6E5B 0%, #073B31 100%);
  color: #FAF7F0;
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.card-anchor-jade h1, .card-anchor-jade h2, .card-anchor-jade h3,
.coin-hero-jade h1, .coin-hero-jade h2, .coin-hero-jade h3 { color: #FFFFFF; }
.card-celestial {
  background: var(--celestial-deep);
  color: #F6F3EB;
  border-radius: var(--radius-xl);
  padding: 24px 28px;
}
.card-paper-note {
  background: var(--bg-paper-note);
  border-left: 3px solid var(--champagne-foil);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Conversational AI Matching (Full Two-Way GiGi Chat Thread + Live Understanding + Top 1 Reveal) */
.chat-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 400ms var(--ease-calm);
}
.chat-shell.is-thinking { background: var(--brand-jade-soft); }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  flex-wrap: wrap;
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #FAF8F4;
  min-height: 420px;
  max-height: 560px;
  overflow-y: auto;
}
.chat-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
}
.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-bar .input {
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  padding-left: 16px;
  padding-right: 16px;
}
.bub-row { display: flex; gap: 10px; align-items: flex-end; max-width: 90%; }
.bub-bot {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  font-size: 14.2px;
  line-height: 1.55;
  color: var(--ink-primary);
  box-shadow: var(--sh-xs);
}
.bub-me {
  align-self: flex-end;
  background: var(--brand-jade);
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 16px;
  font-size: 14.2px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 82%;
}
.bub-insight {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 13.2px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}
.rec-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-jade-soft);
  color: var(--brand-jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}
.rec-dot.pending {
  background: var(--bg-subtle);
  color: var(--ink-muted);
}
.refine-chat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.entry-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.entry-option:hover { border-color: var(--brand-jade); background: var(--brand-jade-soft); }
.aichip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-jade-soft);
  border: 1px solid var(--brand-jade-border);
  color: var(--brand-jade-deep);
  font-size: 13px;
  font-weight: 500;
}
.aichip b { font-weight: 700; color: var(--brand-jade); }
.aichip button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brand-jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.aichip button:hover { background: var(--brand-jade-border); }

.cstep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-muted);
  transition: color 240ms ease;
}
.cstep .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 12px;
}
.cstep.done { color: var(--ink-primary); }
.cstep.done .dot { background: var(--success-soft); border-color: var(--success-ink); color: var(--success-ink); }
.cstep.now { color: var(--brand-jade-deep); font-weight: 600; }
.cstep.now .dot { background: var(--brand-jade); border-color: var(--brand-jade); color: #FFFFFF; animation: gigiPulse 1.2s infinite; }

.match-stage { display: none; flex-direction: column; gap: 18px; padding: 28px; }
.match-stage.is-active { display: flex; animation: stepSlideIn 280ms var(--ease-out-quart) both; }

/* Score Breakdown List (M03 Product Detail) */
.bd-list { display: flex; flex-direction: column; }
.bd-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: baseline;
}
.bd-row:last-child { border-bottom: none; }
.bd-row .pts { font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; }
.bd-row p { grid-column: 2 / 4; font-size: 13px; color: var(--ink-secondary); }
.bd-row.plus .ic, .bd-row.plus .pts { color: var(--brand-jade); }
.bd-row.note .ic, .bd-row.note .pts { color: var(--coin-ink); }

/* Indented Coin Ledger Rows (M10 Trust) */
.ledger-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 16px 0 6px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: baseline;
  font-size: 14px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .amt { font-family: var(--font-mono); font-weight: 500; }
.ledger-row .tm { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.ledger-row.in .amt { color: var(--brand-jade); }
.ledger-row.out .amt { color: var(--ink-secondary); }
.ledger-row.refund { padding-left: 24px; font-size: 13px; color: var(--coin-ink); background: rgba(251, 246, 235, 0.45); border-radius: 6px; padding-right: 8px; }
.ledger-row.refund .amt { color: var(--coin-ink); font-weight: 600; }

/* Toggle Switch */
.gm-switch {
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 180ms ease;
  flex-shrink: 0;
}
.gm-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: var(--sh-xs);
  transition: transform 180ms var(--ease-out-quart);
}
.gm-switch[aria-checked="true"] { background: var(--brand-jade); }
.gm-switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Landing Stage Sections (Method 2A + 3A) */
.stage-band { width: 100%; padding: 76px 32px; position: relative; }
.stage-inner { max-width: 1200px; margin: 0 auto; }
.stage-jade-hero {
  background: linear-gradient(140deg, #094D3F 0%, #073B31 100%);
  color: #FAF7F0;
  padding: 68px 32px 76px;
}
.stage-white { background: #FFFFFF; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.stage-warm  { background: var(--bg-stage-warm); }
.stage-porcelain { background: var(--bg-canvas); }
.stage-celestial { background: var(--celestial-deep); color: #FAF7F0; }

.hero-h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.025em; }

.stage-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 10px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
}
.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: transform 220ms var(--ease-out-quart), background 220ms ease;
}
.stage-dot.active { background: var(--brand-jade); transform: scale(1.35); }

/* Scroll Reveal & Stepper Motion */
html.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 440ms var(--ease-out-quart), transform 440ms var(--ease-out-quart);
  transition-delay: var(--delay, 0ms);
}
html.js-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes stepSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-animate-in { animation: stepSlideIn 260ms var(--ease-out-quart) both; }

/* Interactive Wax-Seal Envelope Card */
.envelope-stage {
  background: #EAE4D7;
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  cursor: pointer;
  transition: transform 240ms var(--ease-out-quart);
}
.envelope-stage:hover { transform: translateY(-2px); }
.envelope-letter {
  background: #FAF7F0;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid #E2DAC8;
  transform: translateY(10px);
  transition: transform 440ms var(--ease-out-quart), box-shadow 440ms var(--ease-out-quart);
}
.envelope-stage.is-open .envelope-letter {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(25, 26, 25, 0.10);
}
.envelope-seal-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-jade);
}

/* Inline Sentence Pill Selectors */
.pill-sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  color: var(--ink-primary);
  line-height: 1.9;
}
.pill-select {
  appearance: none;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand-jade-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D6E5B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--brand-jade);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  padding: 5px 28px 5px 14px;
  cursor: pointer;
}
.pill-select:focus { outline: 2px solid var(--brand-jade); }

.stage-celestial .chip {
  background: rgba(255, 255, 255, 0.08);
  color: #FAF7F0;
  border-color: rgba(240, 194, 101, 0.28);
}
.stage-celestial .chip:hover { border-color: var(--champagne-foil); }
.stage-celestial .chip.active {
  background: var(--champagne-foil);
  color: #191A19;
  border-color: var(--champagne-foil);
}

/* 3D Icons */
.icon-3d { width: 36px; height: 36px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.icon-3d-lg { width: 60px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }

/* Buttons (Strict 1 Primary Rule per Context) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}
.btn:active { transform: scale(0.99); }
.btn-lg { min-height: 48px; padding: 10px 24px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 5px 13px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn-primary { background: var(--brand-jade); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-jade-hover); }
.btn-gold { background: var(--champagne-foil); color: #191A19; }
.btn-gold:hover { background: #E7B550; }
.btn-white { background: #FFFFFF; color: var(--brand-jade-deep); }
.btn-white:hover { background: var(--brand-jade-soft); }
.btn-secondary { background: var(--bg-surface); color: var(--ink-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--ink-secondary); }
.btn-ghost { background: transparent; color: var(--brand-jade); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--brand-jade-soft); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger-ink); }
.btn[disabled] { background: var(--bg-subtle); color: var(--ink-muted); cursor: not-allowed; transform: none; }

/* Choice Chips & Badges */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
}
.chip:hover { border-color: var(--brand-jade); }
.chip.active { background: var(--brand-jade-soft); border-color: var(--brand-jade); color: var(--brand-jade-deep); font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.badge-jade { background: var(--brand-jade-soft); color: var(--brand-jade); }
.badge-coin { background: var(--coin-soft); color: var(--coin-ink); }
.badge-ok   { background: var(--success-soft); color: var(--success-ink); }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge-err  { background: var(--danger-soft); color: var(--danger-ink); }
.badge-neutral { background: var(--bg-subtle); color: var(--ink-secondary); }

/* Sub-tabs & Stepper Nav */
.subtab-bar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border-hairline); padding-bottom: 10px; }
.subtab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.subtab-btn:hover { background: var(--bg-subtle); color: var(--ink-primary); }
.subtab-btn.active { background: var(--brand-jade-soft); color: var(--brand-jade); font-weight: 600; }

.sec-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.sec-step-btn:hover { background: var(--bg-subtle); color: var(--ink-primary); }
.sec-step-btn.active { background: var(--brand-jade-soft); color: var(--brand-jade); font-weight: 600; }

/* Restrained Real-Photo Product Card v2.3 */
.pcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-xs);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  transition: box-shadow 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}
.pcard:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.pcard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  overflow: hidden;
}
.pcard-media img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms var(--ease-out-quart);
}
.pcard:hover .pcard-media img.photo { transform: scale(1.03); }
.pcard-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(25, 26, 25, 0.06);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.pcard-wish:hover { transform: scale(1.06); color: #C94A40; }
.pcard-wish.saved {
  background: #FFF6F5;
  border-color: #F2C0BC;
  color: #C94A40;
}
.pcard-wish.saved .gm-ic {
  --ic-fill: #F9D5D2;
  stroke-width: 1.95;
}
.pcard-body { padding: 2px 4px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-bottom {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.pcard-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; color: var(--ink-primary); white-space: nowrap; }
.pcard-score { font-family: var(--font-head); font-size: 13px; color: var(--ink-secondary); white-space: nowrap; }
.pcard-score b { color: var(--brand-jade); font-weight: 600; font-size: 14.5px; }

/* Top 1 Spotlight Card (Signature Moment #2) */
.top1-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-jade-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--sh-md);
  padding: 24px 28px;
  position: relative;
}
.top1-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
}
.top1-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-primary); display: flex; justify-content: space-between; align-items: baseline; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color 120ms ease;
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-jade); box-shadow: 0 0 0 3px rgba(13, 110, 91, 0.12); }
.input.is-error { border-color: var(--danger-ink); }
.field-hint { font-size: 12px; color: var(--ink-secondary); }
.field-error { font-size: 12px; color: var(--danger-ink); font-weight: 500; display: flex; align-items: center; gap: 5px; }

/* Auth Split-Screen */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 5fr 7fr; background: var(--bg-surface); }
.auth-cover { position: relative; background: var(--bg-subtle); overflow: hidden; }
.auth-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-cover-top { position: absolute; top: 28px; left: 32px; z-index: 2; background: rgba(250, 249, 247, 0.92); backdrop-filter: blur(10px); padding: 8px 14px 8px 10px; border-radius: var(--radius-md); }
.auth-cover-note { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; background: rgba(250, 249, 247, 0.93); backdrop-filter: blur(12px); padding: 18px 20px; border-radius: var(--radius-lg); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px 32px; background: var(--bg-canvas); }
.auth-card { max-width: 430px; width: 100%; margin: 0 auto; background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); box-shadow: var(--sh-sm); padding: 34px 32px; }
.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-box { height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-surface); text-align: center; font-family: var(--font-mono); font-size: 20px; font-weight: 600; width: 100%; }
.otp-box.is-error { border-color: var(--danger-ink); color: var(--danger-ink); }

/* Dark Charcoal-Jade Admin Shell (Restrained Edition Style) */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); background: var(--bg-canvas); }
.admin-sidebar {
  background: var(--admin-dark);
  color: #D7DFDC;
  padding: 22px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-svc-group { display: flex; flex-direction: column; gap: 2px; }
.admin-svc-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #7C8B86; padding: 4px 12px; }
.admin-nav-link { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: #C5D0CC; }
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.admin-nav-link.active { background: rgba(13, 110, 91, 0.28); color: #FFFFFF; font-weight: 600; box-shadow: inset 3px 0 0 var(--champagne-foil); }
.admin-content { padding: 30px 36px 76px; max-width: 1400px; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* KPI & Tables */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--sh-xs); padding: 18px 20px; }
.kpi-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); }
.kpi-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 25px; font-weight: 500; margin-top: 6px; color: var(--ink-primary); }
.table-wrap { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--sh-xs); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-hairline); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-hairline); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table th.right, .data-table td.right { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--sh-xs); }
.cal-dow { padding: 6px 4px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.cal-cell { min-height: 78px; min-width: 0; overflow: hidden; padding: 7px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.cal-cell:hover { background: var(--bg-canvas); }
.cal-cell.is-today { border-color: var(--brand-jade); background: var(--brand-jade-soft); }
.cal-event-pill { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--brand-jade-soft); color: var(--brand-jade); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event-pill.lunar { background: var(--coin-soft); color: var(--coin-ink); }

/* Modals & Calm Dark Toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(25, 26, 25, 0.44); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-dialog { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); padding: 28px 30px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh-lg); }
.floating-toast {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 55;
  max-width: 360px;
  background: var(--ink-primary);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
}

/* Subtle Prototype Switcher Pill + QA Drawer */
.qa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(25, 26, 25, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}
.qa-fab:hover { color: var(--brand-jade); border-color: var(--brand-jade); }

.qa-drawer {
  position: fixed;
  right: 16px;
  bottom: 58px;
  z-index: 75;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--sh-lg);
  display: none;
  flex-direction: column;
  gap: 10px;
}
.qa-drawer.is-open { display: flex; animation: stepSlideIn 200ms var(--ease-out-quart) both; }

/* Landing Footer & Center-Elevated Mobile Tabbar */
.landing-footer { border-top: 1px solid var(--border-hairline); background: var(--bg-surface); padding: 44px 32px 60px; }
.landing-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 64px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-hairline);
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  height: 100%;
}
.mobile-tabbar a.active { color: var(--brand-jade); font-weight: 600; }
.mobile-tabbar a.mid-cta { position: relative; }
.mobile-tabbar a.mid-cta .mid-orb {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-jade);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: var(--sh-md);
  border: 3.5px solid var(--bg-canvas);
}
.mobile-tabbar a.mid-cta .mid-lbl {
  margin-top: 34px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-jade);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .app-nav, .header-search, .stage-dots { display: none; }
  .mobile-tabbar { display: grid; }
  .qa-fab { bottom: 76px; }
  .qa-drawer { bottom: 118px; }
  .app-header-inner, .app-main { padding-left: 20px; padding-right: 20px; }
  .stage-band, .stage-jade-hero { padding: 48px 20px; }
  .hero-h1 { font-size: 34px; }
  .grid-home-8-4, .grid-match-7-5, .grid-crm, .grid-pdp, .top1-card { grid-template-columns: 1fr; }
  .top1-media { max-width: 220px; }
  .grid-4, .grid-7-days, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-col { position: static; }
  .auth-shell, .admin-shell { grid-template-columns: 1fr; }
  .auth-cover { height: 210px; }
  .auth-cover-note { display: none; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px 16px; }
  .admin-svc-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-content { padding: 20px 16px 76px; }
  .kpi-grid, .landing-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  .hero-h1 { font-size: 28px; }
  .app-header-inner { height: auto; min-height: 58px; padding: 8px 14px; gap: 8px; flex-wrap: wrap; }
  .header-actions { gap: 6px; flex-wrap: wrap; }
  .app-main { padding: 20px 14px 92px; gap: 20px; }
  .stage-band, .stage-jade-hero { padding: 36px 14px; }
  .grid-2, .grid-3, .grid-qr, .kpi-grid, .landing-footer-inner { grid-template-columns: 1fr; }
  .grid-4, .grid-7-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auth-panel { padding: 24px 14px; }
  .auth-card { padding: 24px 18px; }
  .cal-grid { padding: 8px; gap: 2px; }
  .cal-dow { padding: 4px 2px; font-size: 10.5px; }
  .cal-cell { min-height: 56px; padding: 4px 3px; font-size: 10.5px; }
  .floating-toast { left: 14px; right: 14px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
}
