/* Future Self RX — mobile design tokens.
   Aligned to the Superstar Wellness brand book (June 2026): monochrome only —
   Clear Field #fff · Soft Horizon #BCBABA · Midnight Grey #383838.
   Poppins primary, Fragment Mono for accents. "Precision, made human." */

:root {
  /* Type — Poppins (brand primary) with system fallbacks */
  --font-ui:  'Poppins', -apple-system, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --font-num: 'Poppins', "SF Pro Rounded", -apple-system, "SF Pro Display", system-ui, sans-serif;

  /* Light (default) — warm paper palette from the landing */
  --bg:        #ffffff;
  --bg-alt:    #f4f3f3;
  --bg-gray:   #f0efef;
  --paper:     #ffffff;     /* alias kept for legacy code paths */
  --card:      #ffffff;
  --surface:   #ffffff;

  --ink:       #1C1C1C;
  --ink-2:     #5E5D64;
  --ink-3:     #8c8a8a;
  --ink-4:     #bcbaba;
  --sub:       #8c8a8a;     /* alias */
  --sub-2:     #bcbaba;     /* alias */

  --hair:      #ececec;
  --hair-2:    #ececec;     /* legacy alias */
  --line:      #ececec;
  --line-2:    #dcdcdc;

  /* Monochrome accents — ink/grey ramp (orange removed 2026-06-12) */
  --accent:     #1C1C1C;
  --accent-d:   #000000;
  --accent-2:   #bcbaba;    /* warm grey (future self brand accent) */
  --accent-l:   #eeeeee;
  --accent-xl:  #f4f3f3;
  --accent-soft:#f4f3f3;    /* alias */
  --mint:       #ececec;
  --teal-d:     #5a5a5a;

  /* Neutral accents */
  --peach:    #e2e1e1;
  --peach-2:  #bcbaba;
  --warm:     #8c8a8a;
  --coral:    #8c8a8a;      /* alias */
  --gold:     #bcbaba;
  --cream:    #f5f5f5;
  --banner:   #f0efef;      /* announcement strip */
  --sky:      #e4e3e3;
  --blush:    #eaeaea;

  /* Motion */
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --r-sm:    10px;
  --r:       16px;
  --r-lg:    22px;
  --r-pill:  999px;
  --r-card:  22px;
  --r-tile:  18px;
  --r-chip:  14px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(56, 56, 56,.04), 0 8px 24px -16px rgba(56, 56, 56,.18);
  --shadow-soft: 0 1px 0 rgba(56, 56, 56,.04), 0 2px 8px rgba(56, 56, 56,.04);
  --shadow-pop:  0 20px 60px rgba(56, 56, 56,0.18);
}

.dark {
  --bg:      #262626;
  --bg-alt:  #2b2b2b;
  --paper:   #2b2b2b;
  --card:    #333333;
  --surface: #333333;
  --ink:     #ffffff;
  --ink-2:   #e2e1e1;
  --ink-3:   #bcbaba;
  --ink-4:   #5a5a5a;
  --sub:     #bcbaba;
  --sub-2:   #5a5a5a;
  --hair:    #3a3a3a;
  --hair-2:  #3a3a3a;
  --line:    #3a3a3a;
  --line-2:  #454545;
  /* Invert the ink-accent ramp on dark so accents stay visible */
  --accent:      #ffffff;
  --accent-d:    #ffffff;
  --accent-l:    #3a3a3a;
  --accent-soft: #333333;
  --accent-xl:   #333333;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
}

/* Resets & base */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* Editorial type defaults */
body, #root {
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }

/* Helpers */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hair { background: var(--hair); }

/* Scrollbars hidden in screens */
.screen::-webkit-scrollbar { display: none; }
.screen { scrollbar-width: none; }

/* Banner — announcement strip used at top of marketing-ish screens */
.topbanner {
  background: var(--banner);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  padding: 8px 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Gradient-outline CTA (eligibility / explore) — bio-glow gradient */
.btn-gradient {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.btn-gradient::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-pill);
  padding: 1.5px;
  background: linear-gradient(120deg, #dcdcdc 0%, #bcbaba 55%, #5a5a5a 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Fade-up keyframes for entry */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%{transform: translateX(-100%)} 100%{transform: translateX(100%)} }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85 } 50% { transform: scale(1.06); opacity: 1 } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes scanline { 0% { transform: translateY(-50%) } 100% { transform: translateY(50%) } }
@keyframes drawRing { from { stroke-dashoffset: 999 } to { stroke-dashoffset: var(--dash, 0) } }
@keyframes pulse { 0%, 100% { opacity: 0.35 } 50% { opacity: 0.7 } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes slideRight { from { transform: translateX(-20px); opacity: 0 } to { transform: none; opacity: 1 } }

/* Particle drift — floating dust/sparkle over the face during a scan. */
@keyframes particleDrift {
  0%   { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate3d(14px, -50vh, 0) scale(1); opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translate3d(-10px, -110vh, 0) scale(0.9); opacity: 0; }
}

/* Heart-pulse — used on the HR icon circle. */
@keyframes heartPulse {
  0%   { transform: scale(1);     box-shadow: 0 0 0 0 rgba(188, 186, 186,0); }
  18%  { transform: scale(1.18);  box-shadow: 0 0 0 4px rgba(188, 186, 186,0.35); }
  35%  { transform: scale(0.96); }
  55%  { transform: scale(1.08); }
  75%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ═══ Web customer-portal responsive shell (desktop ≥900px) ═══ */
/* Mobile (<900px): sidebar hidden, bottom TabBar shown (unchanged). */
.sp-sidebar { display: none; }
@media (min-width: 900px) {
  .sp-sidebar { display: flex; }
  .sp-tabbar { display: none !important; }
  /* offset content past the 240px sidebar and center it as a ~1000px column */
  .sp-content { left: max(240px, calc(50% - 500px)) !important; right: calc(50% - 500px) !important; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  /* between sidebar and 1000px column there isn't room to center — just clear the sidebar */
  .sp-content { left: 240px !important; right: 0 !important; }
}

/* Learn/Library card grid — 2-up on mobile, 3-up on wide, 1-up only when very narrow.
   Base rule (all widths); the inline list-column style was removed in library.jsx. */
.sp-grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: start; }
@media (max-width: 360px) { .sp-grid-cards { grid-template-columns: 1fr; } }

/* ═══ Desktop UX polish (web portal, ≥900px) ═══ */
@media (min-width: 900px) {
  /* Library: peptide lists become a multi-column card grid instead of one tall column */
  .sp-grid-cards { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px !important; align-items: start; }
  /* Goal filter chips wrap instead of horizontal-scrolling */
  .sp-chip-wrap { flex-wrap: wrap !important; overflow: visible !important; }
  /* Peptide explainer: cap each section to a comfortable reading column, centered */
  .sp-read > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
}
@media (min-width: 1280px) {
  .sp-grid-cards { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
}

/* Single readable column for stacked screens on desktop (Today, Account, etc.) */
@media (min-width: 900px) {
  .sp-col { max-width: 840px !important; margin-left: auto !important; margin-right: auto !important; }
}

/* Peptide hero image: elegant size on desktop (not a giant tall square) */
@media (min-width: 900px) {
  .sp-hero-img { max-width: 440px; margin-left: auto !important; margin-right: auto !important; }
}

/* Chat: cap the message column on desktop so lines aren't too long */
@media (min-width: 900px) {
  .sp-chatcol { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; }
}

/* ═══ Profile modal — desktop settings pattern, Future Self content ═══ */
.fs-profile-menu-root { position: absolute; top: 0; right: 0; z-index: 18; }
.fs-profile-menu-trigger {
  display: block; padding: 0; border: 0; border-radius: 999px; background: transparent;
  box-shadow: 0 0 0 0 rgba(18, 23, 38, 0); transition: transform .18s ease, box-shadow .18s ease;
}
.fs-profile-menu-trigger:hover,
.fs-profile-menu-trigger:focus-visible,
.fs-profile-menu-root:has(.fs-profile-menu.open) .fs-profile-menu-trigger {
  transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(41, 77, 113, .09), 0 10px 24px rgba(19, 31, 43, .12);
}
.fs-profile-menu {
  position: absolute; top: calc(100% + 12px); right: 0; width: 310px; padding: 16px;
  border: 1px solid rgba(32, 45, 59, .12); border-radius: 22px; background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(20, 31, 43, .16), 0 4px 14px rgba(20, 31, 43, .07);
  opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.98); transform-origin: top right;
  transition: opacity .17s ease, transform .2s cubic-bezier(.2,.8,.2,1), visibility .17s;
  pointer-events: none; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.fs-profile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.fs-profile-menu-member { display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; gap: 13px; padding: 2px 3px 3px; }
.fs-profile-menu-member > span { min-width: 0; }
.fs-profile-menu-member strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; letter-spacing: -.015em; }
.fs-profile-menu-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #8a8f97; font-size: 12px; }
.fs-profile-menu-rule { height: 1px; margin: 14px 2px 10px; background: var(--hair); }
.fs-profile-menu-items { display: flex; flex-direction: column; gap: 3px; }
.fs-profile-menu-items button {
  width: 100%; min-height: 57px; padding: 8px 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) 16px;
  align-items: center; gap: 10px; border-radius: 13px; background: transparent; color: #1b1d21; text-align: left;
  transition: background .15s ease, transform .15s ease;
}
.fs-profile-menu-items button:hover,
.fs-profile-menu-items button:focus-visible { background: #f3f5f6; transform: translateX(1px); outline: none; }
.fs-profile-menu-items button > span:nth-child(2) { min-width: 0; }
.fs-profile-menu-items button strong { display: block; font-size: 13.5px; font-weight: 670; }
.fs-profile-menu-items button small { display: block; margin-top: 3px; color: #8a8f97; font-size: 10.5px; }
.fs-profile-menu-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf1f3; color: #56636f; }
.fs-profile-menu-items button > svg { color: #a0a6ac; }

@media (max-width: 560px) {
  .fs-profile-menu { width: min(300px, calc(100vw - 32px)); right: -4px; padding: 14px; border-radius: 20px; }
  .fs-profile-menu-items button { min-height: 53px; }
}

.fs-profile-backdrop {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(28, 28, 28, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fs-profile-modal {
  position: relative;
  width: min(1080px, calc(100vw - 56px));
  height: min(760px, calc(100dvh - 56px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 28, 28, .12);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .30);
  color: var(--ink);
  animation: fsProfileIn .28s var(--ease-out);
}
.fs-intake-celebration { position: absolute; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }
.fs-intake-celebration-card { position: absolute; z-index: 2; top: 22%; left: 50%; width: min(360px, calc(100% - 40px)); padding: 17px 20px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(28,28,28,.12); border-radius: 20px; background: rgba(255,255,255,.96); color: #1c1c1c; box-shadow: 0 22px 70px rgba(0,0,0,.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateX(-50%); animation: fsCelebrateCard 3.15s var(--ease-out) both; }
.fs-intake-celebration-card > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #1c1c1c; color: #fff; }
.fs-intake-celebration-card div { min-width: 0; }
.fs-intake-celebration-card strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.fs-intake-celebration-card p { margin: 3px 0 0; color: #74767c; font-size: 12.5px; }
.fs-confetti { position: absolute; inset: 0; }
.fs-confetti i { position: absolute; top: -22px; left: var(--confetti-left); width: 8px; height: 14px; border-radius: 2px; background: var(--confetti-color); opacity: 0; animation: fsConfettiFall 2.25s cubic-bezier(.16,.75,.3,1) var(--confetti-delay) forwards; }
.fs-confetti i:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
.fs-confetti i:nth-child(4n) { width: 11px; height: 5px; }
@keyframes fsConfettiFall {
  0% { opacity: 0; transform: translate3d(0,-10px,0) rotate(0deg); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-drift), calc(100dvh + 40px), 0) rotate(var(--confetti-rotate)); }
}
@keyframes fsCelebrateCard {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(.92); }
  10%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); }
}
@keyframes fsProfileIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.fs-profile-header {
  height: 92px;
  flex: 0 0 92px;
  padding: 0 28px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
}
.fs-profile-brand { display: flex; align-items: center; gap: 13px; }
.fs-profile-brand img { width: 34px; height: 34px; object-fit: contain; }
.fs-profile-brand div { display: flex; align-items: baseline; gap: 12px; }
.fs-profile-brand span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.fs-profile-brand h1 { margin: 0; font-size: 29px; line-height: 1; letter-spacing: -.035em; }
.fs-profile-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink-2);
  transition: transform .2s, background .2s;
}
.fs-profile-close:hover { transform: rotate(4deg); background: #e9e8e8; }
.fs-profile-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.fs-profile-nav {
  min-height: 0;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hair);
  background: #fbfbfa;
  scrollbar-width: none;
}
.fs-profile-nav::-webkit-scrollbar { display: none; }
.fs-profile-nav nav { display: flex; flex-direction: column; gap: 5px; }
.fs-profile-nav nav button,
.fs-profile-nav-bottom a,
.fs-profile-nav-bottom button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  background: transparent;
  color: #777981;
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
  text-align: left;
  transition: background .18s, color .18s;
}
.fs-profile-nav nav button:hover,
.fs-profile-nav nav button.active { background: #eceeef; color: #17181b; }
.fs-profile-nav nav button.active { font-weight: 680; }
.fs-profile-nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.fs-profile-nav-bottom a:hover { background: #eceeef; color: #17181b; }
.fs-profile-nav-bottom button { color: #d33d43; }
.fs-profile-nav-bottom button:hover { background: #fff0f0; }
.fs-profile-main { min-width: 0; overflow-y: auto; padding: 34px 42px 46px; background: #fff; }
.fs-profile-section { max-width: 690px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.fs-profile-section-head { margin-bottom: 3px; }
.fs-profile-section-head h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.035em; }
.fs-profile-section-head p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--sub); }
.fs-identity-card {
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f8f7, #fff);
}
.fs-avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1c1c1c;
  color: #fff;
  font-weight: 680;
  letter-spacing: -.03em;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.fs-avatar > span { position: relative; z-index: 0; }
.fs-avatar > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fs-identity-card > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fs-identity-card strong { font-size: 17px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-identity-card div span { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-verified { padding: 6px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: #eceeef; color: #333; font-size: 11px; font-weight: 680; }
.fs-settings-panel {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e1e3e6;
  border-radius: 20px;
  background: #f7f8f9;
}
.fs-settings-panel h3 { margin: 0 0 2px; font-size: 13px; color: #73767d; font-weight: 650; }
.fs-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fs-settings-field { display: flex; flex-direction: column; gap: 7px; }
.fs-settings-field > span { font-size: 11.5px; color: #74767c; font-weight: 620; }
.fs-settings-field input,
.fs-settings-field select,
.fs-settings-field textarea,
.fs-delete-confirm input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  box-sizing: border-box;
  border: 1px solid #d9dce0;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #17181b;
  font: inherit;
  font-size: 13.5px;
}
.fs-settings-field textarea {
  min-height: 82px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.45;
}
.fs-settings-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fs-settings-field > span > span { min-width: 0; display: inline-flex; align-items: baseline; gap: 7px; }
.fs-settings-field > span small { color: #9a9ca1; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fs-required-badge { color: #8a5a10; font-size: 9px; font-style: normal; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.fs-settings-field { scroll-margin: 96px; border-radius: 14px; transition: background .2s ease, box-shadow .2s ease; }
.fs-settings-field.is-highlighted { margin: -8px; padding: 8px; background: #fff8e8; box-shadow: 0 0 0 2px #e7b04f, 0 8px 24px rgba(97,65,14,.12); }
.fs-none-button { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: 0 0 auto; border: 1px solid #d5d8dc; border-radius: 999px; background: #fff; color: #696c72; font-size: 10.5px; font-weight: 700; transition: background .16s, color .16s, border-color .16s; }
.fs-none-button:hover { border-color: #aeb2b8; color: #27282b; }
.fs-none-button.active { border-color: #1c1c1c; background: #1c1c1c; color: #fff; }
.fs-settings-field input:focus,
.fs-settings-field select:focus,
.fs-settings-field textarea:focus,
.fs-delete-confirm input:focus { border-color: #8d9198; box-shadow: 0 0 0 3px rgba(28,28,28,.06); }
.fs-intake-progress { padding: 18px 20px; border: 1px solid #dfe2e5; border-radius: 20px; background: #1c1c1c; color: #fff; }
.fs-intake-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.fs-intake-progress span { color: rgba(255,255,255,.66); font-size: 12px; }
.fs-intake-progress strong { font-size: 15px; }
.fs-intake-progress-track { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.fs-intake-progress-track i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .25s ease; }
.fs-intake-progress p { margin: 10px 0 0; color: rgba(255,255,255,.64); font-size: 11.5px; line-height: 1.45; }
.fs-intake-missing > div { margin-top: 10px; display: grid; gap: 7px; }
.fs-intake-missing button { width: 100%; min-height: 44px; padding: 9px 11px 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.09); color: #fff; text-align: left; transition: background .16s ease, border-color .16s ease; }
.fs-intake-missing button:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.14); }
.fs-intake-missing button span { color: #fff; font-size: 11.5px; font-weight: 650; }
.fs-intake-missing button b { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 650; }
.fs-intake-section-copy { margin: 0 0 2px; color: #7b7e84; font-size: 11.5px; line-height: 1.45; }
.fs-intake-field-grid .fs-settings-field:has(textarea) { grid-column: 1 / -1; }
.fs-height-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fs-height-pair select { min-width: 0; }
.fs-binary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 4px; border: 1px solid #d9dce0; border-radius: 12px; background: #fff; }
.fs-binary button { min-height: 36px; border-radius: 9px; background: transparent; color: #74767c; font-size: 13px; font-weight: 650; transition: background .16s, color .16s, box-shadow .16s; }
.fs-binary button.active { background: #1c1c1c; color: #fff; box-shadow: 0 3px 9px rgba(0,0,0,.15); }
.fs-goal-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-goal-picker button { min-height: 39px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #d9dce0; border-radius: 999px; background: #fff; color: #55585e; font-size: 12px; font-weight: 650; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.fs-goal-picker button:hover { transform: translateY(-1px); border-color: #aeb1b6; }
.fs-goal-picker button.active { border-color: #1c1c1c; background: #1c1c1c; color: #fff; }
.fs-goal-control { display: grid; gap: 12px; }
.fs-primary-goal-select { max-width: 310px; display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 6px 10px; }
.fs-primary-goal-select > span { color: #55585e; font-size: 11px; font-weight: 700; }
.fs-primary-goal-select select { min-width: 0; }
.fs-primary-goal-select small { grid-column: 2; color: #96999f; font-size: 10px; line-height: 1.35; }
.fs-intake-savebar { position: sticky; z-index: 3; bottom: -1px; min-height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dedfe2; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 10px 32px rgba(0,0,0,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fs-tracking-plan-status { margin-top: 10px; display: flex; align-items: center; gap: 5px; color: #55705d; font-size: 11px; font-weight: 650; line-height: 1.35; }
.fs-intake-savebar span { display: flex; align-items: center; gap: 8px; color: #73767c; font-size: 12px; font-weight: 620; }
.fs-intake-savebar span i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #6cb77b; }
.fs-intake-savebar.pending span i { background: #d2a13d; }
.fs-intake-savebar.saving span i { background: #4d79c7; animation: fsSavePulse 1s ease-in-out infinite; }
.fs-intake-savebar.error span i { background: #d54045; }
.fs-intake-savebar button { min-height: 34px; padding: 0 11px; border-radius: 9px; background: #1c1c1c; color: #fff; font-size: 11.5px; font-weight: 650; }
.fs-billing-cards { display: flex; flex-direction: column; }
.fs-billing-card { min-height: 64px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.fs-billing-card:last-child { border-bottom: 0; }
.fs-billing-card > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.fs-billing-card small { color: var(--sub); font-size: 11.5px; }
.fs-billing-card > div:last-child { display: flex; gap: 6px; }
.fs-billing-card button { min-height: 32px; padding: 0 9px; border: 1px solid var(--hair); border-radius: 9px; background: #fff; font-size: 11px; font-weight: 650; }
.fs-billing-card button.danger { color: #c8343a; }
.fs-billing-copy { font-size: 12px; line-height: 1.45; }
.fs-card-field-placeholder { min-height: 52px; padding: 11px 12px; display: flex; align-items: center; gap: 8px; border: 1px dashed #cfd1d5; border-radius: 10px; background: #fafafa; color: var(--sub); font-size: 12px; }
.fs-embedded-card-form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.fs-billing-storage-note { margin: 0; max-width: 720px; color: #85878c; font-size: 10.5px; line-height: 1.4; }
.fs-card-error { margin: 0; color: #c8343a; font-size: 12px; line-height: 1.45; }
@keyframes fsSavePulse { 50% { opacity: .35; transform: scale(.82); } }
.fs-info-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e5e6e8; }
.fs-info-row:last-child { border-bottom: 0; }
.fs-info-row span { font-size: 13px; color: #6f7278; }
.fs-info-row strong { max-width: 65%; font-size: 13px; font-weight: 630; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-contact-row { min-height: 74px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e1e3e6; }
.fs-contact-row:last-child { border-bottom: 0; }
.fs-contact-row > div:first-child { min-width: 0; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 4px 9px; }
.fs-contact-row > div:first-child > span { grid-column: 1 / -1; color: #72757c; font-size: 12px; font-weight: 600; }
.fs-contact-row strong { min-width: 0; max-width: 440px; overflow: hidden; color: #17181b; font-size: 15px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.fs-contact-row small { padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: #e7f4ea; color: #347047; font-size: 9.5px; font-weight: 720; text-transform: uppercase; letter-spacing: .03em; }
.fs-contact-row small i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fs-contact-row small.warning { background: #fff3d8; color: #936814; }
.fs-contact-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.fs-contact-actions button { min-height: 36px; padding: 0 12px; border: 1px solid #d1d4d9; border-radius: 999px; background: #fff; color: #202124; font-size: 11.5px; font-weight: 680; }
.fs-contact-actions button:hover { border-color: #9fa3aa; }
.fs-contact-editor { margin: -3px 0 4px; padding: 15px; display: flex; flex-direction: column; gap: 9px; border: 1px solid #d8dbe0; border-radius: 15px; background: #fff; }
.fs-contact-editor label { color: #5f6269; font-size: 11.5px; font-weight: 650; }
.fs-contact-editor input { width: 100%; height: 44px; padding: 0 13px; box-sizing: border-box; border: 1px solid #d4d7dc; border-radius: 11px; outline: none; background: #fff; color: #17181b; font: inherit; font-size: 14px; }
.fs-contact-editor input:focus { border-color: #8d9198; box-shadow: 0 0 0 3px rgba(28,28,28,.06); }
.fs-contact-editor .fs-verification-code { font-size: 20px; font-weight: 700; letter-spacing: .22em; }
.fs-contact-editor p { margin: 0; color: #81848a; font-size: 11px; line-height: 1.45; }
.fs-contact-editor > div { display: flex; justify-content: flex-end; gap: 8px; }
.fs-contact-editor button { min-height: 38px; padding: 0 13px; border-radius: 10px; background: #1c1c1c; color: #fff; font-size: 11.5px; font-weight: 680; }
.fs-contact-editor button.secondary { border: 1px solid #d4d7dc; background: #fff; color: #55585e; }
.fs-contact-editor button:disabled { opacity: .45; }
.fs-save-button {
  align-self: flex-end;
  min-width: 142px;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: #1c1c1c;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
.fs-save-button:disabled { opacity: .55; }
.fs-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-tag-list span { padding: 7px 10px; border: 1px solid #dadcdf; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 620; }
.fs-profile-empty,
.fs-profile-copy { margin: 0; color: #74767c; font-size: 13px; line-height: 1.55; }
.fs-text-action { padding: 3px 0 0; display: inline-flex; align-items: center; align-self: flex-start; gap: 3px; background: transparent; color: #1c1c1c; font-size: 12.5px; font-weight: 650; }
.fs-protocol-list { display: flex; flex-direction: column; }
.fs-protocol-list > div { padding: 10px 0; display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 10px; align-items: start; border-bottom: 1px solid #e5e6e8; }
.fs-protocol-list > div:last-child { border-bottom: 0; }
.fs-protocol-list i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #1c1c1c; }
.fs-protocol-list span { display: flex; flex-direction: column; gap: 2px; }
.fs-protocol-list strong { font-size: 13.5px; }
.fs-protocol-list small { color: #74767c; font-size: 11.5px; line-height: 1.4; }
.fs-toggle-row { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e6e8; background: transparent; color: #202124; font-size: 13.5px; text-align: left; }
.fs-toggle-row:last-child { border-bottom: 0; }
.fs-toggle-row > i { width: 42px; height: 24px; padding: 3px; box-sizing: border-box; position: relative; border-radius: 999px; background: #c8ccd2; transition: background .2s; }
.fs-toggle-row > i b { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.fs-toggle-row > i.on { background: #1c1c1c; }
.fs-toggle-row > i.on b { transform: translateX(18px); }
.fs-action-card {
  width: 100%;
  min-height: 88px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border: 1px solid #e1e3e6;
  border-radius: 18px;
  background: #f7f8f9;
  color: #1c1c1c;
  text-align: left;
  transition: transform .18s, border-color .18s;
}
.fs-action-card:hover { transform: translateY(-1px); border-color: #c7c9cd; }
.fs-action-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #fff; border: 1px solid #e1e3e6; }
.fs-action-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.fs-action-card strong { font-size: 14px; }
.fs-action-card small { color: #777980; font-size: 11.5px; line-height: 1.4; }
.fs-action-card > b { padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid #d9dce0; font-size: 11.5px; white-space: nowrap; }
.fs-legal-links { display: flex; flex-wrap: wrap; gap: 14px; }
.fs-legal-links a { color: #1c1c1c; font-size: 12px; font-weight: 630; }
.fs-danger-panel { padding: 19px 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid #f0c9cb; border-radius: 20px; background: #fff7f7; }
.fs-danger-panel strong { color: #c8343a; font-size: 14px; }
.fs-danger-panel p { margin: 6px 0 0; color: #797b80; font-size: 12px; line-height: 1.5; }
.fs-delete-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.fs-delete-confirm button { min-width: 92px; padding: 0 15px; border-radius: 11px; background: #d54045; color: #fff; font-size: 12.5px; font-weight: 650; }
.fs-delete-confirm button:disabled { opacity: .4; }
.fs-profile-notice { position: sticky; bottom: 0; margin: 18px auto 0; max-width: 690px; padding: 11px 14px; border-radius: 12px; background: #1c1c1c; color: #fff; font-size: 12.5px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.fs-profile-notice.error { background: #c8343a; }

/* Connected health data — uses the same modal language as Profile. */
.fs-connected-backdrop {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(28, 28, 28, .48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fs-connected-onboarding { min-height: 100dvh; padding: 28px; display: grid; place-items: center; background: var(--bg); }
.fs-connected-modal {
  width: min(820px, calc(100vw - 56px));
  max-height: min(720px, calc(100dvh - 56px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 28, .12);
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .30);
  animation: fsProfileIn .28s var(--ease-out);
}
.fs-connected-header {
  min-height: 92px;
  padding: 0 28px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
}
.fs-connected-content { min-height: 0; overflow-y: auto; padding: 36px 42px 42px; }
.fs-connected-intro > span { color: #7a7d83; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fs-connected-intro h2 { max-width: 560px; margin: 9px 0 0; font-size: 30px; letter-spacing: -.04em; }
.fs-connected-intro p { max-width: 610px; margin: 10px 0 0; color: #74777d; font-size: 13.5px; line-height: 1.55; }
.fs-connected-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.fs-source-row {
  min-height: 84px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e3e6;
  border-radius: 19px;
  background: #f7f8f9;
}
.fs-source-button {
  min-width: 88px;
  height: 36px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  background: #1c1c1c;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  transition: transform .18s, background .18s;
}
.fs-source-button:hover { transform: translateY(-1px); }
.fs-source-button.connected { border: 1px solid #d9dce0; background: #fff; color: #1c1c1c; }
.fs-source-button:disabled { cursor: default; transform: none; }
.fs-connected-privacy {
  margin-top: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e1e3e6;
  border-radius: 18px;
  background: #fff;
}
.fs-connected-privacy > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #f0f1f2; }
.fs-connected-privacy strong { font-size: 13.5px; }
.fs-connected-privacy p { margin: 4px 0 0; color: #777980; font-size: 11.5px; line-height: 1.5; }
.fs-connected-error { margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: #fff0f0; color: #c8343a; font-size: 12px; }
.fs-connected-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fs-connected-actions > button { height: 42px; color: var(--sub); font-size: 13px; }

.fs-labs-screen {
  height: 100%;
  overflow: auto;
  padding: 58px 34px 110px;
}
.fs-labs-screen > * { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.fs-labs-kicker { color: #7a7d83; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fs-labs-title { margin: 9px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -.045em; }
.fs-labs-subtitle { max-width: 570px; margin: 12px 0 0; color: var(--sub); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 899px) {
  .fs-profile-backdrop { padding: 0; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .fs-profile-modal { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .fs-profile-header { height: 72px; flex-basis: 72px; padding: 0 17px 0 20px; }
  .fs-profile-brand img { width: 29px; height: 29px; }
  .fs-profile-brand div { gap: 8px; }
  .fs-profile-brand span { display: none; }
  .fs-profile-brand h1 { font-size: 24px; }
  .fs-intake-celebration-card { top: 18%; }
  .fs-profile-layout { display: flex; flex-direction: column; }
  .fs-profile-nav { padding: 10px 14px; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
  .fs-profile-nav nav { flex-direction: row; gap: 5px; }
  .fs-profile-nav nav button { width: auto; min-width: max-content; min-height: 38px; padding: 0 11px; font-size: 12px; }
  .fs-profile-nav nav button svg { display: none; }
  .fs-profile-nav-bottom { display: none; }
  .fs-profile-main { flex: 1; padding: 24px 18px 100px; }
  .fs-profile-section-head h2 { font-size: 24px; }
  .fs-field-grid { grid-template-columns: 1fr; }
  .fs-intake-progress > div:first-child { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fs-intake-missing button { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fs-settings-panel { padding: 16px; border-radius: 17px; }
  .fs-settings-field input,
  .fs-settings-field select,
  .fs-settings-field textarea { min-height: 48px; font-size: 16px; }
  .fs-settings-field textarea { padding-top: 12px; }
  .fs-binary button { min-height: 42px; font-size: 14px; }
  .fs-goal-picker { gap: 7px; }
  .fs-goal-picker button { min-height: 42px; padding: 0 13px; font-size: 13px; }
  .fs-primary-goal-select { max-width: none; grid-template-columns: 1fr; }
  .fs-primary-goal-select small { grid-column: 1; }
  .fs-intake-savebar { bottom: calc(env(safe-area-inset-bottom) + 4px); margin-top: 2px; min-height: 54px; border-radius: 15px; }
  .fs-identity-card { grid-template-columns: auto minmax(0, 1fr); }
  .fs-verified { display: none; }
  .fs-save-button { align-self: stretch; width: 100%; }
  .fs-contact-row { align-items: flex-start; }
  .fs-contact-row > div:first-child { grid-template-columns: minmax(0, 1fr); }
  .fs-contact-row small { grid-column: 1; width: max-content; }
  .fs-contact-row strong { max-width: min(58vw, 360px); }
  .fs-contact-actions { padding-top: 10px; }
  .fs-action-card { grid-template-columns: 40px minmax(0, 1fr); }
  .fs-action-card > b { grid-column: 2; justify-self: start; }
  .fs-connected-backdrop { padding: 0; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .fs-connected-onboarding { padding: 0; }
  .fs-connected-modal { width: 100%; max-height: none; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .fs-connected-header { min-height: 72px; padding: 0 17px 0 20px; }
  .fs-connected-content { flex: 1; padding: 25px 18px calc(34px + env(safe-area-inset-bottom)); }
  .fs-connected-intro h2 { font-size: 26px; }
  .fs-source-row { padding: 13px; }
  .fs-source-button { min-width: 78px; padding: 0 11px; }
  .fs-labs-screen { padding: 30px 18px calc(104px + env(safe-area-inset-bottom)); }
  .fs-labs-title { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-confetti { display: none; }
  .fs-intake-celebration-card { animation: fsCelebrateFade 3.15s ease both; }
  @keyframes fsCelebrateFade { 0%, 100% { opacity: 0; } 10%, 82% { opacity: 1; } }
}

/* ═══════════════════════════════════════════════════════════════
   Production polish layer (2026-08-11) — interaction feel, motion,
   focus, and loading language shared by every screen.
   ═══════════════════════════════════════════════════════════════ */

/* Touch feel: no grey tap flash, no double-tap zoom delay on controls. */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Universal micro-press. Every real button compresses slightly under the
   finger/cursor — the single highest-leverage "it feels native" rule.
   Buttons that animate their own transform can opt out with .no-press. */
button:not(:disabled):not(.no-press):active {
  transform: scale(0.975);
  transition: transform .08s var(--ease);
}

/* Keyboard focus — visible, on-brand, and only for keyboard users. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; /* fields keep their border+ring focus style */
}

/* Hover affordance for tappable cards/rows (desktop). */
.hover-lift { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out); }
@media (hover: hover) {
  .hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), 0 12px 32px -18px rgba(28,28,28,.25); }
}

/* Screen transition — applied to the tab content container, which remounts
   per tab (key={tab}). A quiet fade-rise, quick enough to never feel slow. */
.screen-in { animation: screenIn .32s var(--ease-out) both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Overlay entrance — sheet rises over a fading scrim. */
.overlay-in { animation: slideUpOverlay .44s var(--ease-out) both; }
.overlay-scrim { animation: fadeIn .3s ease both; }

/* Loading language — shimmer skeleton block. */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-alt);
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Branded splash mark — soft breathing while the app hydrates. */
.splash-mark { animation: splashBreathe 2.1s ease-in-out infinite; }
@keyframes splashBreathe {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* Tab bar — active pill that glides in behind the current tab. */
.tab-pill {
  position: absolute; inset: 2px 0;
  border-radius: 14px;
  background: var(--accent-l);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .28s var(--ease-out), transform .34s var(--spring);
}
.tab-pill.on { opacity: 1; transform: scale(1); }

/* Today screen — protocol rows are now real buttons; give them the
   quiet list-row hover used across Apple settings surfaces. */
.plan-row { transition: background .16s var(--ease); }
@media (hover: hover) {
  .plan-row:hover { background: var(--bg-alt); border-radius: 12px; }
  .plan-row:hover .plan-row-chev { opacity: 1; transform: none; }
}
.plan-row-chev {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
  color: var(--ink-3);
}
@media (hover: none) { .plan-row-chev { opacity: 1; transform: none; } }

/* Sidebar rows — hover tint (previously none). */
@media (hover: hover) {
  .side-item:hover { background: var(--bg-alt); color: var(--ink); }
}

/* Reduced motion — honor the OS setting everywhere, hard.
   (Ricki's Mac runs Reduce Motion ON; the app must stay calm there.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton::after { animation: none; }
  .splash-mark { animation: none; opacity: 1; }
}
