/* UI basada en NutriiColor, NutriiTypography, NutriiRadius y los componentes móviles. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
  color: var(--text-primary);
  background: var(--surface);
  --green: var(--brand);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--divider);
  --soft: var(--quest-tint);
  --white: var(--surface-elevated);
}
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid var(--quest-accent); outline-offset: 4px; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: 36px; line-height: 1.23; font-weight: 600; letter-spacing: -.18px; margin-bottom: 12px; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
p { line-height: 1.6; color: var(--muted); }
small,.small { font-size: 12px; line-height: 1.58; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--green); margin-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: .2px; font-weight: 600; color: var(--green); }
.brand svg { width: 31px; height: 31px; }
.brand-text { color: var(--green); }
.skip { position: absolute; left: 20px; top: -90px; z-index: 99; background: var(--white); padding: 12px; }
.skip:focus { top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; padding: 12px 20px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; line-height: 1.45; min-height: 48px; box-shadow: var(--shadow-card); text-align: center; }
.btn:hover { filter: brightness(.95); }
.btn:active { opacity: .72; }
.btn.secondary { border: 1px solid var(--brand); background: transparent; color: var(--brand); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn.danger { color: var(--danger); background: transparent; box-shadow: none; }
.btn.wide,.wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 14px; font-weight: 600; min-height: 44px; }
.text-link svg { width: 19px; height: 19px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); }
.icon-button:hover { background: var(--soft); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--muted); background: var(--surface); }
.pill.green { background: var(--quest-tint); color: var(--brand); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card { background: var(--white); border: 0; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); min-width: 0; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stack { display: grid; gap: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.section-title h2 { margin: 0; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.field input,.field select,.field textarea { width: 100%; min-width: 0; border: 1px solid var(--divider); background: var(--white); border-radius: var(--radius-field); padding: 13px 15px; color: var(--auth-field-text); min-height: 48px; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.fields .full { grid-column: 1/-1; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.check input { accent-color: var(--brand); margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.error { background: color-mix(in srgb, var(--danger) 8%, var(--white)); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: 12px; padding: 16px; color: var(--danger); font-size: 14px; line-height: 1.6; }
.notice { background: var(--quest-tint); border-radius: 16px; padding: 16px; color: var(--brand); font-size: 14px; line-height: 1.6; }
.empty { text-align: center; padding: 32px 12px; }
.empty .icon-box { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 22px; }
.empty .icon-box svg { width: 32px; height: 32px; }
.empty h3 { font-size: 20px; }
.empty p { max-width: 420px; margin: 8px auto 24px; font-size: 15px; }
.empty .btn { margin: 4px; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--brand); background: var(--soft); flex-shrink: 0; }
.loading { padding: 64px 20px; text-align: center; color: var(--muted); }
.environment-label { position: relative; z-index: 11; padding: 7px 18px; background: color-mix(in srgb, var(--amber) 13%, var(--white)); color: var(--amber-text); text-align: center; font-size: 11px; line-height: 1.5; }
.shell { min-height: calc(100dvh - 30px); padding-left: 232px; }
.sidebar { width: 232px; position: fixed; inset: 30px auto 0 0; background: var(--white); border-right: 1px solid var(--line); padding: 32px 20px 24px; display: flex; flex-direction: column; z-index: 10; }
body:not(:has(.environment-label)) .sidebar { top: 0; }
.sidebar .brand { margin: 0 8px 36px; font-size: 23px; }
.nav-label { font-size: 12px; font-weight: 500; color: var(--muted); margin: 0 12px 12px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; color: var(--icon-tertiary); padding: 12px; font-size: 14px; font-weight: 500; min-height: 48px; border-radius: 16.56px; }
.nav-item:hover { background: var(--surface); }
.nav-item[aria-current="page"] { background: var(--quest-tint); color: var(--brand); font-weight: 600; }
.nav-glyph { display: grid; place-items: center; }
.nav-glyph svg { width: 23px; height: 23px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-note { font-size: 12px; line-height: 1.7; padding: 16px 12px; color: var(--brand); }
.sidebar-note span { color: var(--muted); }
.sidebar-bottom .btn { font-size: 13px; justify-content: flex-start; padding-left: 12px; }
.topbar { height: 80px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.topbar-title { font-size: 14px; color: var(--muted); }
.web-label { font-size: 12px; color: var(--muted); margin-right: 12px; }
.mobile-brand,.bottom-bar { display: none; }
.main { max-width: 1240px; margin: auto; padding: 12px 40px 64px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 12px; }
.page-heading p { margin: 0; font-size: 15px; }
.home-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(250px,1fr); gap: 32px; align-items: start; }
.home-secondary > section:first-child .section-title { margin-top: 0; }
.daily-card { display: flex; align-items: flex-start; gap: 18px; background: var(--quest-tint); padding: 24px; }
.daily-card h2 { margin-bottom: 10px; }
.daily-card p { font-size: 15px; margin-bottom: 0; }
.daily-icon { color: var(--brand); padding-top: 2px; }
.daily-icon svg { width: 28px; height: 28px; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; }
.weight-card { padding: 24px; }
.weight-value { font-size: 44px; font-weight: 600; letter-spacing: -.2px; line-height: 1.2; }
.weight-value span { font-size: 20px; color: var(--muted); margin-left: 7px; }
.weight-date { font-size: 14px; margin: 8px 0 16px; }
.weight-symbol { display: grid; place-items: center; width: 72px; height: 72px; background: var(--quest-tint); border-radius: 50%; color: var(--brand); }
.weight-symbol svg { width: 37px; height: 37px; }
.weight-change { display: inline-flex; background: var(--surface); padding: 7px 12px; border-radius: 24px; font-size: 13px; font-weight: 500; }
.measurement-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0 12px; padding-top: 20px; border-top: 1px solid var(--divider); }
.measurement-summary div { display: grid; gap: 5px; }
.measurement-summary strong { font-size: 18px; font-weight: 600; color: var(--brand); }
.measurement-summary div:nth-child(2) strong { color: var(--periwinkle-text); }
.measurement-summary span { font-size: 12px; color: var(--muted); }
.activity-card { display: flex; align-items: center; gap: 14px; padding: 20px; }
.activity-card > span:nth-child(2) { flex: 1; }
.activity-card strong { font-size: 16px; font-weight: 600; }
.activity-card small { display: block; margin-top: 5px; }
.activity-card > svg { width: 18px; color: var(--amber-text); }
.activity-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 18%, var(--white)); flex-shrink: 0; }
.activity-icon svg { width: 29px; height: 29px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; text-align: center; font-size: 13px; font-weight: 600; }
.quick-glyph { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 26px; color: var(--brand); background: var(--white); border: 3px solid var(--surface); box-shadow: var(--shadow-tile); }
.quick-glyph svg { width: 36px; height: 36px; }
.quick-action:last-child .quick-glyph { color: var(--brand-deep); }
.personal-note { display: flex; gap: 12px; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--divider); }
.personal-note > svg { width: 18px; color: var(--brand); margin-top: 3px; }
.personal-note strong { font-size: 13px; font-weight: 500; }
.personal-note p { font-size: 12px; margin: 6px 0 0; }
.personal-note .text-link { font-size: 12px; }
.hero { border-radius: var(--radius-tile); padding: 28px; background: var(--brand-soft); color: var(--on-brand-soft); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero h2 { font-size: 30px; margin: 12px 0; }
.hero p { color: var(--on-brand-soft); font-size: 14px; }
.hero .eyebrow { color: var(--on-brand-soft-accent); }
.hero .hero-icon { width: 70px; height: 70px; color: var(--on-brand-soft-accent); }
.metric { display: grid; gap: 14px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.metric-value { font-size: 24px; font-weight: 600; }
.metric-value span { font-size: 16px; font-weight: 400; margin-left: 4px; }
.metric-foot { font-size: 12px; color: var(--muted); }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature p { font-size: 14px; }
.timeline-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.timeline-item:last-child { border: 0; }
.timeline-item p { font-size: 13px; margin: 6px 0 0; }
.code { font-size: clamp(22px,3vw,34px); letter-spacing: 3px; font-variant-numeric: tabular-nums; font-weight: 600; background: var(--quest-tint); border: 1px dashed var(--brand); padding: 24px 12px; border-radius: var(--radius-field); text-align: center; user-select: all; }
.steps { display: grid; gap: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-index { background: var(--quest-tint); color: var(--brand); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.step h3 { margin: 4px 0 0; }
.step p { font-size: 14px; margin: 6px 0 0; }
.status-line { font-size: 14px; line-height: 1.6; margin: 20px 0; }
.measure-success { background: var(--quest-tint); border-radius: var(--radius-card); padding: 24px; color: var(--brand); }
.measure-success > svg { width: 36px; height: 36px; margin-bottom: 16px; }
.meal { background: var(--white); border: 0; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.meal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.meal-head .pill { background: var(--quest-tint); color: var(--brand); text-transform: uppercase; font-size: 13px; font-weight: 600; border-radius: 6px; }
.meal h3 { font-size: 20px; }
.meal ul,.meal ol { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.meal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.meal-actions .btn { border-radius: 28px; }
.day-tabs { display: flex; gap: 10px; overflow: auto; padding: 2px 2px 16px; margin-bottom: 12px; }
.day-tab { min-width: 64px; min-height: 56px; padding: 12px; border: 0; border-radius: 16px; background: var(--white); color: var(--muted); white-space: nowrap; font-weight: 600; }
.day-tab.active { color: var(--on-brand); background: var(--brand); }
.history-card { margin-top: 24px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 16px 12px; border-bottom: 1px solid var(--divider); }
td { padding: 18px 12px; border-bottom: 1px solid var(--divider); }
tr:last-child td { border: 0; }
.shopping-item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.shopping-item input { width: 20px; height: 20px; accent-color: var(--brand); }
.shopping-item:has(input:checked) { opacity: .55; text-decoration: line-through; }
.shopping-item .price { margin-left: auto; font-size: 14px; }
.legal { white-space: pre-wrap; font-size: 14px; line-height: 1.8; max-height: 370px; overflow: auto; background: var(--surface); border-radius: 16px; padding: 20px; }
.moods { display: flex; flex-wrap: wrap; gap: 12px; }
.mood { display: grid; gap: 8px; justify-items: center; padding: 18px 16px; border-radius: 16px; border: 1px solid var(--divider); background: var(--surface); color: var(--mood-label); font-size: 12px; }
.mood span { font-size: 26px; }
.mood:hover { background: var(--lilac-chip); }
.station { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--divider); }
.station h3 { margin-bottom: 6px; }
.station-secret { font-family: ui-monospace,monospace; overflow-wrap: anywhere; background: var(--soft); padding: 16px; border-radius: 14px; font-size: 14px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-grid .check { background: var(--white); border: 1px solid var(--quest-border); border-radius: 12px; padding: 14px; min-height: 48px; }
.radio-grid .check:has(:checked) { background: var(--quest-tint); border-color: var(--quest-accent); color: var(--brand); }
#intake > .card:last-child .btn[type="submit"] { min-height: 56px; border-radius: 28px; background: var(--quest-accent); }
.divider { border: 0; border-top: 1px solid var(--divider); margin: 24px 0; }
.footnote { font-size: 12px; color: var(--muted); margin-top: 24px; }
.hidden { display: none!important; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--brand-surface-deep); color: var(--on-brand-surface); border-radius: 14px; padding: 16px 22px; font-size: 14px; width: max-content; max-width: calc(100vw - 36px); box-shadow: var(--shadow-tile); display: none; }
#toast.visible { display: block; }
dialog { border: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius-sheet); padding: 28px; width: min(480px,calc(100% - 32px)); max-height: 90dvh; overflow: auto; box-shadow: 0 18px 60px #0003; }
dialog::backdrop { background: #10131780; }
.dialog-close { display: grid; place-items: center; float: right; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 26px; }
.panel-brand .brand { font-size: 19px; margin: 8px 0 24px; }
.panel-brand .brand svg { width: 23px; height: 23px; }
.panel-title { font-size: 29px; margin-bottom: 24px; }
.panel-links { display: grid; background: var(--white); border-radius: 22px; overflow: hidden; }
.panel-links a,.panel-appearance { display: flex; gap: 14px; align-items: center; padding: 16px; min-height: 56px; font-size: 15px; }
.panel-links a + a { border-top: 1px solid var(--divider); }
.panel-links a svg:first-child { color: var(--brand); }
.panel-links a svg:last-child { width: 16px; color: var(--muted); margin-left: auto; }
.panel-links a[aria-current="page"] { background: var(--quest-tint); color: var(--brand); }
.panel-appearance { width: 100%; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); margin-bottom: 16px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 30px); background: var(--white); }
.auth-story { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 5% 100%, color-mix(in srgb,var(--brand-soft) 40%,var(--white)), transparent 70%); }
.auth-story h1 { font-size: 46px; font-weight: 600; letter-spacing: -.2px; max-width: 420px; line-height: 1.25; }
.auth-story h1 em { font-style: normal; color: var(--brand); }
.auth-story p { max-width: 380px; font-size: 16px; }
.auth-story .eyebrow { display: none; }
.auth-art { position: relative; display: grid; place-items: center; height: 200px; }
.auth-art > .leaf { width: 100px; height: 100px; color: var(--brand); opacity: .85; }
.auth-art .orbit { display: none; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--white); box-shadow: var(--shadow-tile); border-radius: 22px; padding: 14px 20px; font-size: 13px; }
.float-card:not(.last) { top: 6px; left: 0; }
.float-card.last { bottom: 0; right: 0; }
.tagline { font-size: 12px; color: var(--brand); }
.auth-main { display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - 30px); padding: 48px 32px; background: var(--white); }
.auth-form { width: min(100%,390px); }
.auth-form h1 { font-size: 32px; line-height: 1.38; font-weight: 600; display: block; }
.auth-form form { display: grid; gap: 20px; margin: 28px 0 16px; }
.auth-form > p { font-size: 14px; }
.auth-form .btn.ghost { background: color-mix(in srgb,var(--brand-soft) 25%,var(--white)); border-radius: 28px; color: var(--auth-ghost-label); }
.auth-mobile-brand { display: none; }
.auth-footer { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 28px; }
.auth-footer > svg { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.auth-footer a { display: inline-block; color: var(--brand); margin-top: 12px; min-height: 32px; }
@media (max-width:1150px) {
  .home-layout { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .home-secondary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .home-secondary > section:first-child .section-title { margin-top: 28px; }
  .personal-note { grid-column: 1/-1; margin-top: 0; }
  .main { padding: 12px 28px 56px; }
  .topbar { padding: 0 28px; }
  .auth-story { padding: 40px; }
  .auth-story h1 { font-size: 38px; }
}
@media (max-width:760px) {
  .shell { padding: 0 0 calc(88px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { height: 76px; padding: 0 24px; }
  .topbar-title,.web-label { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { font-size: 20px; gap: 9px; }
  .mobile-brand .brand svg { width: 26px; height: 26px; }
  .topbar .row { gap: 4px; }
  .main { padding: 12px 24px 28px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 29px; line-height: 1.2; }
  .page-heading p { font-size: 14px; }
  .page-heading .eyebrow { font-size: 12px; }
  .bottom-bar { display: flex; align-items: stretch; justify-content: space-around; position: fixed; inset: auto 0 0; padding: 7px 12px calc(9px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--divider); box-shadow: 0 -4px 8px #0000000f; z-index: 20; }
  .bottom-bar .nav-item { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 0 3px; gap: 5px; font-size: 11px; line-height: 1.3; min-height: 68px; border-radius: 0; background: transparent; text-align: center; }
  .bottom-bar .nav-glyph { width: 58px; min-height: 37px; border-radius: 28px; }
  .bottom-bar .nav-glyph svg { width: 28px; height: 28px; }
  .bottom-bar .nav-item[aria-current="page"] .nav-glyph { background: color-mix(in srgb,var(--brand-soft) 24%,var(--white)); }
  .bottom-bar .nav-item[aria-current="page"]::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
  .bottom-bar .nav-item:hover { background: transparent; }
  .grid.two,.home-secondary { grid-template-columns: minmax(0,1fr); }
  .grid { gap: 20px; }
  .home-layout { display: block; }
  .home-secondary { display: block; }
  .card { padding: 20px; }
  .daily-card { padding: 20px; }
  .daily-icon { display: none; }
  .daily-card p { font-size: 14px; }
  .daily-card h2 { font-size: 18px; }
  .daily-card .btn { font-size: 14px; padding: 12px 14px; }
  .section-title { margin: 28px 0 16px; }
  .section-title h2 { font-size: 20px; }
  .weight-value { font-size: 38px; }
  .weight-symbol { width: 58px; height: 58px; }
  .weight-symbol svg { width: 30px; height: 30px; }
  .measurement-summary { gap: 8px; }
  .measurement-summary strong { font-size: 16px; }
  .measurement-summary span { font-size: 11px; }
  .quick-glyph { width: 76px; height: 76px; border-radius: 27px; }
  .quick-glyph svg { width: 38px; height: 38px; }
  .quick-action { font-size: 13px; }
  .personal-note { margin-top: 24px; }
  .hero { padding: 24px; }
  .hero h2 { font-size: 28px; }
  .hero .hero-icon { width: 56px; height: 56px; }
  .grid.three { gap: 10px; }
  .grid.three .card { padding: 16px 12px; }
  .metric-head { font-size: 12px; }
  .metric-head svg { display: none; }
  .metric-value { font-size: 24px; }
  .metric-value span { font-size: 12px; }
  .fields { gap: 14px; }
  .radio-grid { grid-template-columns: minmax(0,1fr); }
  .code { font-size: 24px; letter-spacing: 2px; }
  .meal { padding: 20px; }
  .meal-actions .btn { width: 100%; }
  #toast { bottom: calc(102px + env(safe-area-inset-bottom)); }
  dialog { padding: 24px; max-height: 88dvh; }
  .auth { display: block; }
  .auth-story { display: none; }
  .auth-main { padding: 48px 24px; align-items: flex-start; background: radial-gradient(ellipse at 0 110%,color-mix(in srgb,var(--brand-soft) 28%,var(--white)),transparent 55%),var(--white); }
  .auth-mobile-brand { display: block; margin: 0 0 40px; }
  .auth-mobile-brand .brand { font-size: 24px; }
  .auth-mobile-brand .brand svg { width: 38px; height: 38px; }
  .auth-form h1 { font-size: 32px; margin-top: 0; }
  .auth-form { max-width: 420px; }
  .environment-label { font-size: 10px; padding: 6px 12px; }
}
@media (max-width:359px) {
  .main,.topbar { padding-left: 16px; padding-right: 16px; }
  .fields { grid-template-columns: minmax(0,1fr); }
  .bottom-bar .nav-item { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior: auto!important; animation: none!important; transition: none!important; }
}

.nav-item[href="#bienestar"] .nav-glyph svg,.activity-icon svg,.panel-links a[href="#bienestar"] > svg:first-child { transform: rotate(-45deg); }
