/* ==========================================================================
   BRÚJULA — DESIGN TOKENS
   ========================================================================== */
:root{
  /* --- Color: light theme (default) --- */
  --bg: #F7F8F5;
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #EEF3EE;
  --surface-soft-2: #E4EEE6;
  --sage: #6E9C7D;
  --sage-strong: #517A5F;
  --sage-soft: #DCEBE0;
  --navy: #1F3245;
  --navy-soft: #3C5266;
  --ink: #1E2A26;
  --ink-soft: #5B6B64;
  --ink-faint: #8B978F;
  --line: #E2E8E1;
  --line-strong: #CBD6C9;
  --amber: #C9922F;
  --amber-soft: #F3E3C4;
  --coral: #C96B54;
  --coral-soft: #F3DAD1;
  --white: #FFFFFF;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Radius / shadow / motion --- */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31,50,69,0.06), 0 1px 1px rgba(31,50,69,0.04);
  --shadow-md: 0 8px 24px rgba(31,50,69,0.08), 0 2px 6px rgba(31,50,69,0.05);
  --shadow-lg: 0 20px 48px rgba(31,50,69,0.14), 0 6px 16px rgba(31,50,69,0.07);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.32,.64,1);
}

/* --- Color: dark theme, prepared but not yet toggleable in V1 --- */
[data-theme="dark"]{
  --bg: #131C1A;
  --bg-elevated: #182420;
  --surface: #182420;
  --surface-soft: #1E2C27;
  --surface-soft-2: #223129;
  --sage: #8FBE9E;
  --sage-strong: #6FA080;
  --sage-soft: #23352C;
  --navy: #E7EEF3;
  --navy-soft: #B9C6CE;
  --ink: #EDF2EE;
  --ink-soft: #A8B7AF;
  --ink-faint: #75847C;
  --line: #26332C;
  --line-strong: #33443B;
  --amber: #E4B564;
  --amber-soft: #3A331F;
  --coral: #E0917C;
  --coral-soft: #3A2622;
  --white: #0F1613;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"tnum" 1;
  visibility:hidden;
  overscroll-behavior-y: none;
}
body.ready{ visibility:visible; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:600; color:var(--navy); letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; }
input,textarea{ font-family:inherit; }
img,svg{ display:block; }
a{ color:inherit; }
::selection{ background:var(--sage-soft); color:var(--sage-strong); }

.tabular{ font-feature-settings:"tnum" 1; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   LAYOUT SHELLS
   ========================================================================== */
#app{ min-height:100%; }

.screen{ display:none; min-height:100vh; }
.screen.active{ display:flex; flex-direction:column; animation: fadeUp .3s var(--ease); }

#app-shell{ display:none; min-height:100vh; }
#app-shell.active{ display:flex; }

.main-col{
  flex:1;
  width:100%;
  max-width:640px;
  margin:0 auto;
  padding: 20px 18px 104px;
  min-height:100vh;
}

/* ---- Nav (bottom on mobile, sidebar on desktop) ---- */
.nav{
  position:fixed;
  left:0; right:0; bottom:0;
  display:flex;
  justify-content:space-around;
  align-items:center;
  background:var(--bg-elevated);
  border-top:1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index:40;
}
.nav-item{
  position:relative;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; cursor:pointer;
  color:var(--ink-faint);
  padding:6px 5px;
  border-radius:var(--r-sm);
  transition: color .2s var(--ease);
  min-width:0;
  flex:1;
}
.nav-item svg{ width:22px; height:22px; }
.nav-item span{ font-size:11px; font-weight:600; }
.nav-item.active{ color:var(--sage-strong); }
.nav-item:active{ transform: scale(0.94); }
.nav-lock-badge{ position:absolute; top:0; right:6px; font-size:10px; line-height:1; }

/* ==========================================================================
   ONBOARDING / WELCOME
   ========================================================================== */
.intro-screen{
  min-height:100vh;
  flex-direction:column;
  padding: 8vh 26px 40px;
  background:
    radial-gradient(circle at 15% 8%, var(--sage-soft) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, var(--surface-soft-2) 0%, transparent 50%),
    var(--bg);
}
.intro-mark{
  width:56px; height:56px;
  margin-bottom:16px;
}
.beta-badge{ display:flex; flex-direction:column; gap:5px; margin-bottom:22px; }
.beta-pill{
  display:inline-flex; align-self:flex-start; font-size:10.5px; font-weight:800;
  letter-spacing:.07em; text-transform:uppercase; color:var(--sage-strong);
  background:var(--sage-soft); padding:5px 11px; border-radius:var(--r-pill);
}
.beta-note{ font-size:12px; color:var(--ink-faint); font-weight:500; line-height:1.4; }
.intro-content{ flex:1; display:flex; flex-direction:column; justify-content:center; max-width:420px; }
.intro-eyebrow{
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--sage-strong); margin-bottom:14px;
}
.intro-title{
  font-size:clamp(28px,7vw,38px); line-height:1.15; margin-bottom:16px;
}
.intro-title em{ font-style:italic; color:var(--sage-strong); }
.intro-sub{
  font-size:16.5px; line-height:1.55; color:var(--ink-soft); max-width:38ch;
}
.intro-checklist{
  list-style:none; margin:0 0 14px; padding:0;
  display:flex; flex-direction:column; gap:9px;
}
.intro-checklist li{ font-size:15px; font-weight:600; color:var(--ink); line-height:1.4; }
.intro-foot{ margin-top: 34px; }
.intro-foot-note{
  margin-top:14px; font-size:13px; color:var(--ink-faint); text-align:center;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:16px;
  border:none; cursor:pointer;
  border-radius:var(--r-pill);
  padding: 16px 26px;
  transition: transform .15s var(--ease-spring), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background:var(--navy); color:#fff; width:100%; box-shadow: var(--shadow-md); }
.btn-primary:hover{ background: var(--navy-soft); }
.btn-sage{ background:var(--sage); color:#fff; width:100%; box-shadow: var(--shadow-md); }
.btn-ghost{ background:transparent; color:var(--navy-soft); border:1.5px solid var(--line-strong); width:100%; }
.btn-text{ background:none; color:var(--ink-soft); padding:10px 6px; font-weight:600; font-size:14.5px; }
.btn-sm{ padding:10px 18px; font-size:14px; }
.btn:disabled{ opacity:.4; pointer-events:none; }

/* Onboarding steps */
.onb-screen{ min-height:100vh; flex-direction:column; padding: 24px 24px 34px; background:var(--bg); }
.onb-top{ display:flex; align-items:center; gap:14px; margin-bottom:8px; }
.onb-back{ background:none; border:none; color:var(--ink-faint); cursor:pointer; padding:6px; }
.onb-progress{ flex:1; height:5px; background:var(--line); border-radius:var(--r-pill); overflow:hidden; }
.onb-progress-fill{ height:100%; background:var(--sage); border-radius:var(--r-pill); transition: width .4s var(--ease); }
.onb-body{ flex:1; display:flex; flex-direction:column; justify-content:center; max-width:440px; margin:0 auto; width:100%; }
.onb-kicker{ font-size:13px; font-weight:700; color:var(--sage-strong); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px;}
.onb-question{ font-size:26px; line-height:1.25; margin-bottom:8px; }
.onb-hint{ font-size:14.5px; color:var(--ink-soft); margin-bottom:28px; }
.onb-input{
  width:100%; font-size:32px; font-family:var(--font-display); font-weight:600;
  border:none; border-bottom:2.5px solid var(--line-strong); background:transparent;
  padding: 8px 2px 14px; color:var(--navy); outline:none;
  transition: border-color .2s var(--ease);
}
.onb-input:focus{ border-color:var(--sage); }
.onb-input::placeholder{ color:var(--ink-faint); font-weight:500; }

.pill-group{ display:flex; flex-direction:column; gap:10px; }
.pill-option{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; border-radius:var(--r-md);
  border:1.75px solid var(--line); background:var(--surface);
  cursor:pointer; font-size:15.5px; font-weight:600; color:var(--ink);
  transition: all .18s var(--ease);
}
.pill-option:active{ transform: scale(0.98); }
.pill-option.selected{ border-color:var(--sage); background:var(--sage-soft); color:var(--sage-strong); }
.pill-option .check{ width:20px; height:20px; border-radius:50%; border:1.75px solid var(--line-strong); flex-shrink:0; }
.pill-option.selected .check{ background:var(--sage); border-color:var(--sage); position:relative; }
.pill-option.selected .check::after{
  content:""; position:absolute; left:6px; top:2px; width:5px; height:9px;
  border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(40deg);
}

.chip-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.chip-option{
  display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  padding:18px 10px; border-radius:var(--r-md);
  border:1.75px solid var(--line); background:var(--surface);
  cursor:pointer; font-size:13.5px; font-weight:700; color:var(--ink);
  transition: all .18s var(--ease);
}
.chip-option .emoji{ font-size:26px; }
.chip-option.selected{ border-color:var(--sage); background:var(--sage-soft); color:var(--sage-strong); }
.chip-option:active{ transform: scale(0.96); }

.onb-foot{ padding-top:24px; max-width:440px; margin:0 auto; width:100%; }

/* Personalized welcome */
.pw-screen{
  min-height:100vh; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 40px 26px; position:relative; overflow:hidden; background:
    radial-gradient(circle at 50% 0%, var(--sage-soft) 0%, transparent 55%), var(--bg);
}
.confetti-wrap{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.confetti{ position:absolute; top:8%; width:8px; height:8px; border-radius:2px; opacity:0; animation: confettiFall 1.9s ease-out forwards; }
.confetti.c1{ left:10%; background:var(--sage); animation-delay:.05s; }
.confetti.c2{ left:22%; background:var(--amber); animation-delay:.18s; width:6px; height:6px; border-radius:50%; }
.confetti.c3{ left:36%; background:var(--navy); animation-delay:.02s; }
.confetti.c4{ left:50%; background:var(--coral); animation-delay:.24s; width:7px; height:7px; border-radius:50%; }
.confetti.c5{ left:63%; background:var(--sage-strong); animation-delay:.1s; }
.confetti.c6{ left:75%; background:var(--amber); animation-delay:.3s; }
.confetti.c7{ left:87%; background:var(--navy-soft); animation-delay:.08s; width:6px; height:6px; border-radius:50%; }
.confetti.c8{ left:44%; background:var(--sage); animation-delay:.4s; }
@keyframes confettiFall{
  0%{ opacity:0; transform: translateY(0) rotate(0deg); }
  12%{ opacity:1; }
  100%{ opacity:0; transform: translateY(360px) rotate(210deg); }
}
.pw-badge{ width:84px; height:84px; margin-bottom:26px; position:relative; z-index:1; animation: badgePop .65s var(--ease-spring) both; }
@keyframes badgePop{ 0%{ transform:scale(.35); opacity:0;} 65%{ transform:scale(1.08); opacity:1;} 100%{ transform:scale(1); opacity:1;} }
.pw-title{ font-size:27px; margin-bottom:10px; position:relative; z-index:1; animation: fadeUp .5s var(--ease) .15s both; }
.pw-sub{ font-size:15.5px; color:var(--ink-soft); max-width:34ch; margin-bottom:8px; line-height:1.55; position:relative; z-index:1; animation: fadeUp .5s var(--ease) .25s both; }
.pw-reminder{
  margin-top:14px; font-size:13px; font-weight:700; color:var(--sage-strong); background:var(--sage-soft);
  padding:9px 16px; border-radius:var(--r-pill); position:relative; z-index:1; animation: fadeUp .5s var(--ease) .35s both;
}
.pw-card{
  margin-top:26px; width:100%; max-width:360px; background:var(--surface);
  border-radius:var(--r-lg); padding:22px; box-shadow:var(--shadow-md);
  text-align:left; display:flex; flex-direction:column; gap:14px;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .45s both;
}
.pw-row{ display:flex; justify-content:space-between; align-items:center; font-size:14.5px; }
.pw-row .lbl{ color:var(--ink-soft); }
.pw-row .val{ font-weight:700; color:var(--navy); }
.pw-foot{ margin-top:30px; width:100%; max-width:360px; position:relative; z-index:1; animation: fadeUp .5s var(--ease) .55s both; }
.scan-mission-card ~ .pw-foot{ animation-delay:.75s; }

/* Escaneo Brújula — analyzing transition */
.scan-analyzing-screen .pw-title{ max-width:300px; }
.scan-analyzing-list{
  display:flex; flex-direction:column; gap:14px; align-items:flex-start;
  width:100%; max-width:300px; margin:28px auto 0;
  position:relative; z-index:1;
}
.scan-analyzing-item{
  font-size:15px; font-weight:600; color:var(--navy); opacity:0;
  animation: fadeUp .5s var(--ease) both;
}

/* Escaneo Brújula — score result */
.scan-eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--sage-strong); margin-bottom:8px;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .05s both;
}
.scan-score-wrap{
  display:flex; align-items:baseline; justify-content:center; gap:5px;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .25s both;
}
.scan-score-value{ font-family:var(--font-display); font-size:56px; font-weight:700; color:var(--navy); line-height:1; }
.scan-score-max{ font-size:15px; font-weight:700; color:var(--ink-faint); }

.scan-level-card{
  width:100%; max-width:360px; margin-top:22px; padding:22px; text-align:left;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .35s both;
}
.scan-level-card .level-current{ margin-bottom:0; }
.scan-next-level{
  display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--ink-soft);
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line);
}
.scan-next-level .val{ font-weight:700; color:var(--navy); }

.pw-screen .section-title{ width:100%; max-width:360px; text-align:left; margin:26px auto 10px; }

.scan-reasons-card{
  width:100%; max-width:360px; margin:0 auto; padding:18px 20px; text-align:left;
  display:flex; flex-direction:column; gap:11px;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .45s both;
}
.scan-reason-row{ font-size:14px; line-height:1.5; color:var(--ink); }

.scan-strength-card{
  width:100%; max-width:360px; margin:0 auto;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .55s both;
}

.scan-mission-card{
  width:100%; max-width:360px; margin:14px auto 0;
  position:relative; z-index:1; animation: fadeUp .5s var(--ease) .65s both;
}

/* ==========================================================================
   SHARED APP CHROME
   ========================================================================== */
.view{ display:none; animation: fadeUp .35s var(--ease); }
.view.active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:translateY(0);} }

.top-greeting{ margin-bottom:22px; }
.top-greeting .hello{ font-size:22px; margin-bottom:3px; }
.top-greeting .motivational{ font-size:14px; font-weight:600; color:var(--sage-strong); margin-bottom:5px; line-height:1.4; animation: fadeUp .5s var(--ease) .1s both; }
.top-greeting .date{ font-size:12.5px; color:var(--ink-faint); font-weight:600; text-transform:capitalize; }

.card{
  background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--shadow-sm);
  border:1px solid var(--line);
  transition: box-shadow .25s var(--ease), transform .15s var(--ease);
}
.list-row{ transition: background .15s var(--ease); }
.list-row:active{ background:var(--surface-soft); }
.story-row, .goal-card, .insight-card{ transition: transform .18s var(--ease), box-shadow .25s var(--ease); }

#view-home > *{ animation: fadeUp .4s var(--ease) both; }
#view-home > *:nth-child(1){ animation-delay:.01s; }
#view-home > *:nth-child(2){ animation-delay:.05s; }
#view-home > *:nth-child(3){ animation-delay:.09s; }
#view-home > *:nth-child(4){ animation-delay:.13s; }
#view-home > *:nth-child(5){ animation-delay:.17s; }
#view-home > *:nth-child(6){ animation-delay:.21s; }
#view-home > *:nth-child(7){ animation-delay:.25s; }
#view-home > *:nth-child(8){ animation-delay:.29s; }
#view-home > *:nth-child(9){ animation-delay:.33s; }
#view-home > *:nth-child(10){ animation-delay:.37s; }
.section-title{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-faint); margin: 26px 4px 12px;
}
.section-title:first-child{ margin-top:0; }
.section-head-row{ display:flex; align-items:center; justify-content:space-between; margin: 26px 4px 12px; }
.section-head-row .section-title{ margin:0; }
.link-btn{ background:none; border:none; color:var(--sage-strong); font-weight:700; font-size:13px; cursor:pointer; padding:4px; }

/* Hero available card */
.hero-card{
  padding:26px 24px 24px; margin-bottom:14px; position:relative; overflow:hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-soft) 100%);
  color:#fff; border:none; box-shadow: var(--shadow-md);
}
.hero-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.hero-label{ font-size:13px; font-weight:700; opacity:.72; text-transform:uppercase; letter-spacing:.04em; }
.hero-compass{ width:38px; height:38px; opacity:.9; }
.hero-status{
  display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,.16);
  padding:7px 14px; border-radius:var(--r-pill); margin-bottom:16px; font-size:12.5px; font-weight:700; letter-spacing:.02em;
  transition: background .25s var(--ease);
}
.hero-amount{ font-family:var(--font-display); font-size:clamp(34px,9vw,42px); font-weight:600; letter-spacing:-0.01em; transition: opacity .2s var(--ease); }
.hero-msg{ margin-top:8px; font-size:14.5px; opacity:.82; line-height:1.5; max-width:32ch; }
.hero-stats-row{ display:flex; gap:24px; margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.18); }
.hero-stats-row .hero-stat{ flex:1; min-width:0; }
.hero-stats-row .lbl{ display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; opacity:.72; margin-bottom:3px; }
.hero-stats-row .val{ font-size:16px; font-weight:700; }

/* Brújula protagonist card (Home) */
.brujula-home-card{
  padding:20px 22px; margin-bottom:14px;
  background: linear-gradient(155deg, var(--sage-soft) 0%, var(--surface) 68%);
  border:1px solid var(--surface-soft-2);
  transition: box-shadow .25s var(--ease);
}
.bh-top{ display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.bh-icon-wrap{ position:relative; width:26px; height:26px; color:var(--sage-strong); flex-shrink:0; }
.bh-icon-wrap svg{ width:100%; height:100%; }
.bh-pulse{
  position:absolute; top:-2px; right:-2px; width:8px; height:8px; border-radius:50%; background:var(--sage-strong);
  animation: bhPulse 2.4s ease-out infinite;
}
@keyframes bhPulse{
  0%{ box-shadow:0 0 0 0 rgba(110,156,125,.5); }
  70%{ box-shadow:0 0 0 8px rgba(110,156,125,0); }
  100%{ box-shadow:0 0 0 0 rgba(110,156,125,0); }
}
.bh-eyebrow{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--sage-strong); }
.bh-msg{ font-family:var(--font-display); font-size:19px; font-weight:500; line-height:1.4; color:var(--navy); }

/* Reflexión del día */
.reflection-card{
  padding:20px 22px; margin-bottom:14px;
  background: linear-gradient(155deg, var(--amber-soft) 0%, var(--surface) 72%);
  border:1px solid var(--surface-soft-2);
}
.rc-top{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.rc-icon{ font-size:16px; }
.rc-eyebrow{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--amber); }
.rc-msg{ font-family:var(--font-display); font-style:italic; font-size:16.5px; font-weight:500; line-height:1.5; color:var(--navy); }

/* Closure card (end of day) */
.closure-card{
  margin-top:18px; padding:20px 22px; display:flex; gap:14px; align-items:center;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-soft) 100%); color:#fff; border:none;
  animation: fadeUp .5s var(--ease) both;
}
.closure-card .cc-icon{ font-size:26px; flex-shrink:0; }
.closure-card .cc-title{ font-family:var(--font-display); font-size:16px; font-weight:600; margin-bottom:3px; }
.closure-card .cc-sub{ font-size:13px; opacity:.85; line-height:1.5; }

.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:8px; }
.stat-card{ padding:18px; display:flex; flex-direction:column; gap:6px; }
.stat-card .ic{ width:22px; height:22px; color:var(--sage-strong); margin-bottom:2px; }
.stat-card .lbl{ font-size:12.5px; font-weight:700; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.03em; }
.stat-card .amt{ font-family:var(--font-display); font-size:21px; font-weight:600; color:var(--navy); }
.stat-card.expense .amt{ color:var(--coral); }
.stat-card.income .amt{ color:var(--sage-strong); }

/* Budget mini rows */
.budget-mini{ padding:6px 4px; display:flex; flex-direction:column; gap:14px; }
.budget-row{ display:flex; align-items:center; gap:12px; }
.budget-row .em{ font-size:19px; width:30px; text-align:center; flex-shrink:0; }
.budget-row .info{ flex:1; min-width:0; }
.budget-row .top-line{ display:flex; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:6px; }
.budget-row .top-line .name{ color:var(--ink); }
.budget-row .top-line .nums{ color:var(--ink-faint); font-weight:600; }
.bar-track{ height:7px; background:var(--surface-soft); border-radius:var(--r-pill); overflow:hidden; }
.bar-fill{ height:100%; border-radius:var(--r-pill); transition:width .5s var(--ease); background:var(--sage); }
.bar-fill.warn{ background:var(--amber); }
.bar-fill.over{ background:var(--coral); }
.empty-inline{
  padding:20px 18px; text-align:center; color:var(--ink-soft); font-size:14px; line-height:1.5;
}
.empty-illustrated{
  display:flex; flex-direction:column; align-items:center; text-align:center; padding: 34px 26px 30px;
}
.empty-illustrated .ill{ width:64px; height:64px; margin-bottom:16px; opacity:.92; animation: sway 5s ease-in-out infinite; }
.empty-illustrated .ttl{ font-family:var(--font-display); font-size:17px; font-weight:600; color:var(--navy); margin-bottom:5px; }
.empty-illustrated .sub{ font-size:13.5px; color:var(--ink-soft); max-width:28ch; line-height:1.5; margin-bottom:18px; }

/* Coach preview card */
.coach-card{
  padding:20px; display:flex; gap:14px; align-items:flex-start; margin-bottom:6px;
  background: var(--sage-soft); border:1px solid var(--surface-soft-2);
}
.coach-card .ic-wrap{
  width:40px; height:40px; border-radius:50%; background:var(--surface); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm);
}
.coach-card .ic-wrap svg{ width:20px; height:20px; color:var(--sage-strong); }
.coach-card .txt{ flex:1; }
.coach-card .ttl{ font-size:12.5px; font-weight:700; color:var(--sage-strong); text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; }
.coach-card .msg{ font-size:14.5px; line-height:1.5; color:var(--ink); }

/* Generic list card / rows */
.list-card{ overflow:hidden; }
.list-row{ display:flex; align-items:center; gap:13px; padding:14px 16px; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.list-row .em{ width:38px; height:38px; border-radius:12px; background:var(--surface-soft); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.list-row .body{ flex:1; min-width:0; }
.list-row .ttl{ font-size:14.5px; font-weight:600; color:var(--ink); }
.list-row .sub{ font-size:12.5px; color:var(--ink-faint); margin-top:2px; }
.list-row .amt{ font-weight:700; font-size:14.5px; white-space:nowrap; }
.list-row .amt.pos{ color:var(--sage-strong); }
.list-row .amt.neg{ color:var(--coral); }

/* ---- FAB ---- */
.fab{
  position:fixed; right:20px; bottom: 92px; z-index:45;
  width:60px; height:60px; border-radius:50%;
  background:var(--sage); color:#fff; border:none; cursor:pointer;
  box-shadow: 0 10px 26px rgba(110,156,125,.42), 0 4px 10px rgba(31,50,69,.15);
  display:flex; align-items:center; justify-content:center;
  transition: transform .18s var(--ease-spring);
}
.fab:active{ transform: scale(0.92); }
.fab svg{ width:26px; height:26px; }

/* ==========================================================================
   ESTADÍSTICAS
   ========================================================================== */
.seg-tabs{ display:flex; background:var(--surface-soft); border-radius:var(--r-pill); padding:4px; margin-bottom:20px; }
.seg-tab{ flex:1; border:none; background:none; padding:10px; border-radius:var(--r-pill); font-weight:700; font-size:13.5px; color:var(--ink-soft); cursor:pointer; transition: all .2s var(--ease); }
.seg-tab.active{ background:var(--surface); color:var(--navy); box-shadow:var(--shadow-sm); }

.month-switch{ display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:20px; }
.month-switch button{ background:var(--surface); border:1px solid var(--line); width:34px; height:34px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); }
.month-switch button:disabled{ opacity:.3; pointer-events:none; }
.month-switch .lbl{ font-weight:700; font-size:14.5px; color:var(--navy); text-transform:capitalize; min-width:150px; text-align:center; }

.donut-wrap{ display:flex; flex-direction:column; align-items:center; padding:26px 18px; }
.donut-center-amt{ font-family:var(--font-display); font-size:26px; font-weight:600; color:var(--navy); }
.donut-center-lbl{ font-size:12.5px; color:var(--ink-faint); font-weight:600; margin-top:2px; }

.legend{ display:flex; flex-direction:column; gap:0; margin-top:8px; width:100%; }
.legend-row{ display:flex; align-items:center; gap:11px; padding:11px 4px; border-bottom:1px solid var(--line); }
.legend-row:last-child{ border-bottom:none; }
.legend-dot{ width:11px; height:11px; border-radius:50%; flex-shrink:0; }
.legend-row .nm{ flex:1; font-size:14px; font-weight:600; }
.legend-row .pct{ font-size:12.5px; color:var(--ink-faint); font-weight:600; width:38px; text-align:right; }
.legend-row .am{ font-size:14px; font-weight:700; color:var(--navy); width:96px; text-align:right; }

.money-story{ padding:10px; display:flex; flex-direction:column; gap:8px; }
.story-row{ position:relative; display:flex; align-items:center; padding:2px; border-radius:14px; overflow:hidden; }
.story-row .fill-bg{ position:absolute; top:0; bottom:0; left:0; background:var(--sage-soft); border-radius:14px; transition: width .6s var(--ease); z-index:0; }
.story-row .content{ position:relative; z-index:1; display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; }
.story-row .em{ font-size:19px; flex-shrink:0; }
.story-row .nm{ flex:1; font-size:14.5px; font-weight:700; color:var(--navy); }
.story-row .val{ font-size:15px; font-weight:800; color:var(--sage-strong); font-family:var(--font-display); white-space:nowrap; }
.story-row:active{ transform: scale(0.99); }

.budget-edit-row{ padding:16px; display:flex; align-items:center; gap:13px; border-bottom:1px solid var(--line); }
.budget-edit-row:last-child{ border-bottom:none; }
.budget-edit-row .em{ font-size:20px; width:34px; text-align:center; }
.budget-edit-row .nm{ flex:1; font-size:14.5px; font-weight:600; }
.budget-edit-row .amt-input{
  width:112px; text-align:right; border:1.5px solid var(--line); border-radius:var(--r-sm);
  padding:9px 10px; font-weight:700; font-size:14px; color:var(--navy); background:var(--bg);
}
.budget-edit-row .amt-input:focus{ outline:none; border-color:var(--sage); }

/* ==========================================================================
   OBJETIVOS
   ========================================================================== */
.goal-card{ padding:20px; margin-bottom:14px; }
.goal-top{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.goal-top .em{ font-size:26px; width:44px; height:44px; background:var(--surface-soft); border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.goal-top .nm{ flex:1; font-size:16px; font-weight:700; color:var(--navy); }
.goal-top .menu-btn{ background:none; border:none; color:var(--ink-faint); cursor:pointer; padding:6px; }
.goal-nums{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:9px; }
.goal-nums .saved{ font-family:var(--font-display); font-size:19px; font-weight:600; color:var(--navy); }
.goal-nums .target{ font-size:13px; color:var(--ink-faint); font-weight:600; }
.goal-remaining{ font-size:13px; color:var(--ink-soft); margin-top:10px; }
.goal-remaining.done{ color:var(--sage-strong); font-weight:600; }
.goal-date{ font-size:12.5px; color:var(--ink-faint); font-weight:600; margin-top:8px; }
.goal-actions{ display:flex; gap:10px; margin-top:16px; }
.goal-actions .btn{ flex:1; padding:11px; font-size:13.5px; }

.empty-state{ display:flex; flex-direction:column; align-items:center; text-align:center; padding: 50px 24px; color:var(--ink-soft); }
.empty-state .ic{ width:52px; height:52px; color:var(--line-strong); margin-bottom:16px; }
.empty-state .ttl{ font-weight:700; color:var(--navy); font-size:16px; margin-bottom:6px; }
.empty-state .sub{ font-size:13.5px; max-width:30ch; line-height:1.5; margin-bottom:18px; }

/* ==========================================================================
   INVERSIONES
   ========================================================================== */
.investment-card{ padding:20px; margin-bottom:14px; }
.investment-top{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.investment-top .em{ font-size:22px; width:44px; height:44px; background:var(--surface-soft); border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.investment-top .info{ flex:1; min-width:0; }
.investment-top .nm{ font-size:16px; font-weight:700; color:var(--navy); }
.investment-top .type{ font-size:11.5px; color:var(--ink-faint); font-weight:700; text-transform:uppercase; letter-spacing:.03em; margin-top:1px; }
.investment-top .menu-btn{ background:none; border:none; color:var(--ink-faint); cursor:pointer; padding:6px; flex-shrink:0; }

.investment-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; margin-bottom:14px; }
.investment-grid .item .lbl{ font-size:11px; color:var(--ink-faint); font-weight:700; text-transform:uppercase; letter-spacing:.03em; display:block; margin-bottom:3px; }
.investment-grid .item .val{ font-size:14.5px; font-weight:700; color:var(--navy); }

.investment-gain{ display:flex; align-items:center; gap:6px; padding-top:14px; border-top:1px solid var(--line); font-size:14px; font-weight:700; }
.investment-gain.pos{ color:var(--sage-strong); }
.investment-gain.neg{ color:var(--coral); }
.investment-gain.flat{ color:var(--ink-faint); }
.investment-updated{ font-size:12px; color:var(--ink-faint); font-weight:600; margin-top:8px; }

/* ==========================================================================
   AGENDA FINANCIERA
   ========================================================================== */
.agenda-filter-row{ display:flex; gap:8px; overflow-x:auto; padding:2px 2px 16px; margin:0 -2px; -webkit-overflow-scrolling:touch; }
.agenda-filter-row::-webkit-scrollbar{ display:none; }
.agenda-filter-chip{
  flex-shrink:0; display:flex; align-items:center; gap:5px;
  padding:8px 14px; border-radius:var(--r-pill); background:var(--surface-soft);
  font-size:12.5px; font-weight:700; color:var(--ink-soft); cursor:pointer;
  border:1.5px solid transparent; transition: all .18s var(--ease); white-space:nowrap;
}
.agenda-filter-chip.selected{ background:var(--sage-soft); border-color:var(--sage); color:var(--sage-strong); }

.agenda-item-bottom{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid var(--line); }
.agenda-item-bottom .amt{ font-size:15.5px; font-weight:700; color:var(--navy); }

.agenda-status-badge{ font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:var(--r-pill); text-transform:uppercase; letter-spacing:.02em; }
.agenda-status-badge.pagado{ background:var(--sage-soft); color:var(--sage-strong); }
.agenda-status-badge.vencido{ background:var(--coral-soft); color:var(--coral); }
.agenda-status-badge.proximo{ background:var(--amber-soft); color:var(--amber); }
.agenda-status-badge.pendiente{ background:var(--surface-soft); color:var(--ink-faint); }

.agenda-group-title{ font-size:13px; font-weight:700; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.03em; margin:22px 4px 10px; }
.agenda-group-title:first-child{ margin-top:0; }

.agenda-calendar-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); text-align:center; font-size:11px; font-weight:700; color:var(--ink-faint); margin-bottom:8px; }
.agenda-calendar{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-day{
  aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  border-radius:var(--r-sm); font-size:13px; font-weight:600; color:var(--ink-soft); cursor:pointer;
  background:none; border:none; transition: background .18s var(--ease);
}
.cal-day.blank{ visibility:hidden; cursor:default; }
.cal-day.today{ color:var(--sage-strong); font-weight:800; }
.cal-day.selected{ background:var(--sage-soft); }
.cal-day .dots{ display:flex; gap:2px; height:5px; }
.cal-dot{ width:5px; height:5px; border-radius:50%; }
.cal-dot.pagado{ background:var(--sage); }
.cal-dot.vencido{ background:var(--coral); }
.cal-dot.proximo{ background:var(--amber); }
.cal-dot.pendiente{ background:var(--ink-faint); }

/* ==========================================================================
   BRÚJULA (COACH)
   ========================================================================== */
.brujula-hero{ display:flex; flex-direction:column; align-items:center; text-align:center; padding: 18px 10px 30px; }
.brujula-hero .mark{ width:64px; height:64px; margin-bottom:16px; animation: sway 5s ease-in-out infinite; }
@keyframes sway{ 0%,100%{ transform:rotate(-6deg);} 50%{ transform:rotate(6deg);} }
.brujula-hero h2{ font-size:22px; margin-bottom:6px; }
.brujula-hero p{ font-size:14px; color:var(--ink-soft); max-width:30ch; }

.insight-card{ padding:18px; display:flex; gap:13px; margin-bottom:12px; }
.insight-card .ic-wrap{ width:38px; height:38px; border-radius:12px; background:var(--surface-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px; }
.insight-card .msg{ font-size:14.5px; line-height:1.55; color:var(--ink); padding-top:2px; }
.insight-card .msg + .link-btn{ padding-left:0; }
/* Reserved for future celebratory insights (type:'celebration') — not
   triggered by any current insight, so this has no visible effect today. */
.insight-card.celebration{ background:var(--sage-soft); border-color:var(--surface-soft-2); }
.insight-card.celebration .ic-wrap{ background:var(--surface); }

/* ==========================================================================
   PERFIL
   ========================================================================== */
.profile-head{ display:flex; flex-direction:column; align-items:center; text-align:center; padding: 14px 0 28px; }
.avatar{ width:76px; height:76px; border-radius:50%; background: linear-gradient(155deg, var(--sage) 0%, var(--sage-strong) 100%); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:28px; font-weight:600; margin-bottom:14px; }
.profile-name-input{
  border:none; background:none; text-align:center; font-family:var(--font-display); font-size:21px; font-weight:600;
  color:var(--navy); border-bottom:1.5px dashed transparent; padding:2px 4px;
}
.profile-name-input:focus{ outline:none; border-color:var(--line-strong); }
.profile-sub{ font-size:13px; color:var(--ink-faint); margin-top:3px; }

.level-card{ padding:22px; margin-bottom:22px; }
.level-current{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.level-current .em{ font-size:34px; }
.level-current .nm{ font-size:17px; font-weight:700; color:var(--navy); }
.level-current .desc{ font-size:12.5px; color:var(--ink-faint); }
.level-track-list{ display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.level-item{ display:flex; align-items:center; gap:12px; opacity:.4; }
.level-item.unlocked{ opacity:1; }
.level-item .em{ font-size:19px; width:28px; text-align:center; }
.level-item .nm{ font-size:13.5px; font-weight:700; flex:1; }
.level-item .badge-lock{ font-size:11px; color:var(--ink-faint); font-weight:600; }

.field-card{ padding:4px; margin-bottom:14px; }
.field-row{ padding:15px 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.field-row:last-child{ border-bottom:none; }
.field-row .lbl{ font-size:13.5px; color:var(--ink-soft); font-weight:600; }
.field-row input, .field-row select{
  border:none; background:none; text-align:right; font-weight:700; color:var(--navy); font-size:14.5px;
  max-width:60%;
}
.field-row input:focus, .field-row select:focus{ outline:none; }

.profile-actions{ display:flex; flex-direction:column; gap:10px; margin-top:6px; margin-bottom:30px; }
.action-row{
  display:flex; align-items:center; gap:12px; padding:15px 16px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r-md); cursor:pointer; font-weight:600; font-size:14.5px; color:var(--ink);
}
.action-row.danger{ color:var(--coral); }
.action-row svg{ width:19px; height:19px; color:var(--ink-faint); flex-shrink:0; }
.action-row.danger svg{ color:var(--coral); }

.theme-teaser{
  display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:var(--r-md);
  background:var(--surface-soft); font-size:13px; color:var(--ink-soft); margin-bottom:22px;
}

/* ==========================================================================
   MODALS / SHEETS
   ========================================================================== */
.overlay{
  position:fixed; inset:0; background:rgba(20,28,26,.44); backdrop-filter: blur(2px);
  display:none; align-items:flex-end; justify-content:center; z-index:100;
}
.overlay.active{ display:flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
.sheet{
  background:var(--bg-elevated); width:100%; max-width:520px;
  border-radius: 28px 28px 0 0; padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
  max-height:92vh; overflow-y:auto;
  transform: translateY(100%);
  transition: transform .32s var(--ease-spring);
}
.overlay.active .sheet{ transform: translateY(0); }
.sheet-handle{ width:38px; height:4.5px; background:var(--line-strong); border-radius:var(--r-pill); margin: 4px auto 18px; }
.sheet-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.sheet-head h3{ font-size:19px; }
.sheet-close{ background:var(--surface-soft); border:none; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-soft); }

.type-toggle{ display:flex; background:var(--surface-soft); border-radius:var(--r-pill); padding:4px; margin-bottom:22px; }
.type-toggle button{ flex:1; border:none; background:none; padding:12px; border-radius:var(--r-pill); font-weight:700; font-size:14.5px; color:var(--ink-soft); cursor:pointer; transition: all .2s var(--ease); }
.type-toggle button.active.expense{ background:var(--coral); color:#fff; }
.type-toggle button.active.income{ background:var(--sage); color:#fff; }

.amount-input-wrap{ text-align:center; margin-bottom:24px; }
.amount-input-wrap .curr{ font-size:20px; color:var(--ink-faint); font-weight:700; vertical-align: top; margin-right:2px;}
.amount-input{
  border:none; background:none; font-family:var(--font-display); font-weight:600;
  font-size:44px; text-align:center; color:var(--navy); width:100%; outline:none;
}
.amount-input::placeholder{ color:var(--line-strong); }

.field-label{ font-size:12.5px; font-weight:700; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.04em; margin: 4px 2px 10px; }

.mini-chip-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-bottom:22px; }
.mini-chip{
  display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 2px;
  border-radius:14px; border:1.5px solid var(--line); background:var(--surface); cursor:pointer;
  transition: all .16s var(--ease);
}
.mini-chip .em{ font-size:19px; }
.mini-chip .nm{ font-size:9.5px; font-weight:700; color:var(--ink-soft); text-align:center; line-height:1.2; }
.mini-chip.selected{ border-color:var(--sage); background:var(--sage-soft); }
.mini-chip.selected .nm{ color:var(--sage-strong); }
.mini-chip:active{ transform: scale(0.93); }

.toggle-link{ background:none; border:none; color:var(--sage-strong); font-weight:700; font-size:13.5px; cursor:pointer; padding:8px 2px; display:flex; align-items:center; gap:5px; }
.note-field{
  width:100%; border:1.5px solid var(--line); border-radius:var(--r-md); padding:13px 14px;
  font-size:14px; margin-top:10px; margin-bottom:6px; resize:none; color:var(--ink);
}
.note-field:focus{ outline:none; border-color:var(--sage); }
.date-field{ width:100%; border:1.5px solid var(--line); border-radius:var(--r-md); padding:13px 14px; font-size:14px; margin-top:10px; color:var(--ink); }
.date-field:focus{ outline:none; border-color:var(--sage); }

.emoji-picker{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-bottom:18px; }
.emoji-pick{ font-size:22px; padding:9px 0; text-align:center; border-radius:12px; border:1.5px solid var(--line); background:var(--surface); cursor:pointer; }
.emoji-pick.selected{ border-color:var(--sage); background:var(--sage-soft); }

.text-input{
  width:100%; border:1.5px solid var(--line); border-radius:var(--r-md); padding:14px 15px;
  font-size:15px; font-weight:600; color:var(--navy); margin-bottom:16px;
}
.text-input:focus{ outline:none; border-color:var(--sage); }

/* Notificaciones — checkboxes/radios nativos (semántica y accesibilidad
   gratis), solo recoloreados a la marca en vez de reconstruir el control. */
input[type="checkbox"], input[type="radio"]{ accent-color:var(--sage); width:18px; height:18px; flex-shrink:0; }

/* Cuenta (ingresar / crear cuenta) */
.auth-msg{ font-size:13.5px; line-height:1.5; margin:0 2px 14px; }
.auth-msg.error{ color:var(--coral); }
.auth-msg.info{ color:var(--sage-strong); }
.auth-hint{ font-size:12.5px; line-height:1.4; color:var(--ink-faint); margin:-8px 2px 14px; }
.pw-wrap{ position:relative; }
.pw-wrap .text-input{ padding-right:52px; }
.pw-toggle{
  position:absolute; right:6px; top:5px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  background:none; border:none; border-radius:var(--r-sm); cursor:pointer; color:var(--ink-faint);
}
.pw-toggle:hover{ color:var(--ink-soft); }
.pw-toggle svg{ width:20px; height:20px; }
.auth-divider{ display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--ink-faint); font-size:13px; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--line); }

/* Toast */
#toast{
  position:fixed; left:50%; bottom:24px; transform: translate(-50%,20px);
  background:var(--navy); color:#fff; padding:13px 20px; border-radius:var(--r-pill);
  font-size:13.5px; font-weight:600; box-shadow:var(--shadow-lg);
  display:flex; align-items:center; gap:8px;
  opacity:0; pointer-events:none; transition: all .3s var(--ease-spring);
  z-index:200; max-width:88vw;
}
#toast.show{ opacity:1; transform: translate(-50%,0); }

/* ==========================================================================
   RESPONSIVE — DESKTOP SIDEBAR LAYOUT
   ========================================================================== */
@media (min-width: 900px){
  #app-shell.active{ display:flex; }
  .nav{
    position:fixed; left:0; top:0; bottom:auto; right:auto; height:100vh; width:236px;
    flex-direction:column; justify-content:flex-start; align-items:stretch; gap:4px;
    border-top:none; border-right:1px solid var(--line); padding: 30px 14px;
  }
  .nav-brand{ display:flex; align-items:center; gap:10px; padding: 6px 10px 26px; }
  .nav-brand svg{ width:30px; height:30px; }
  .nav-brand span{ font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--navy); }
  .nav-item{ flex-direction:row; justify-content:flex-start; gap:12px; padding:12px 14px; min-width:0; flex:none; }
  .nav-item span{ font-size:14px; }
  .main-col{ margin-left:236px; max-width:720px; padding: 40px 40px 60px; }
  .fab{ right:44px; bottom:44px; }
  .stat-grid{ grid-template-columns:repeat(4,1fr); }
  .chip-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (min-width:900px) and (max-width:1180px){
  .main-col{ max-width:600px; }
}
.nav-brand{ display:none; }
@media (min-width:900px){ .nav-brand{ display:flex; } }

/* Focus visibility */
button:focus-visible, input:focus-visible, .pill-option:focus-visible, .chip-option:focus-visible{
  outline: 2.5px solid var(--sage); outline-offset:2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
