/* 1ARC% design system v2.
   One hierarchy for every screen: a quiet chrome, a large sentence-case title, grouped surfaces and
   one signal colour reserved for progress. Big Shoulders is kept for numbers and brand moments only.
   Loaded after every other stylesheet; element-level rules use :where() so component styles still win. */

:root{
  --signal:#2F5BD3;--fill:rgba(10,10,10,.05);--hair:rgba(10,10,10,.09);
  --r-ctl:12px;--r-card:20px;--ease:cubic-bezier(.2,.8,.2,1);
  --t-title:700 2.125rem/1.08 var(--body);--t-head:600 1.25rem/1.25 var(--body);--t-row:500 1.0625rem/1.3 var(--body);--t-foot:400 .8125rem/1.4 var(--body);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-palette]){--surface:#141414;--surface2:#1F1F1F;--line:rgba(242,240,234,.12);--signal:#8FB8FF;--fill:rgba(242,240,234,.07);--hair:rgba(242,240,234,.08)}}
:root[data-theme="dark"]{--surface:#141414;--surface2:#1F1F1F;--line:rgba(242,240,234,.12);--signal:#8FB8FF;--fill:rgba(242,240,234,.07);--hair:rgba(242,240,234,.08)}
/* Coloured palettes already define an accent: progress uses it. */
:root[data-palette]{--signal:var(--accent)}
/* Palettes own their surfaces; only the translucent fills follow the palette's light/dark scheme. */
:root[data-palette="nieve"],:root[data-palette="brasa"],:root[data-palette="oro"]{--fill:rgba(255,255,255,.07);--hair:rgba(255,255,255,.09)}
:root[data-palette="rosa"]{--fill:rgba(43,13,23,.05);--hair:rgba(43,13,23,.09);--signal:#B42A5E}
/* Accent used as small text must stay legible on the light pink palette. */
:root[data-palette="rosa"] .q-xp small{color:var(--signal)}

/* ---------- Type ---------- */
body{font-feature-settings:"ss01" 0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.p-title,.life-heading h1,.arc-home .product-arc-heading .p-title,.arc-home .product-arc-heading h1{font:var(--t-title);letter-spacing:-.032em;text-transform:none;margin:6px 0 0;max-width:none}
.p-sub,.life-heading p:not(.life-eyebrow){font:var(--t-foot);font-size:.9375rem;color:var(--muted);margin:6px 0 0}
.life-heading{margin-top:2px}
.sec-head h2,.life-section h2,.life-checkin h2,.life-welcome h2,.life-workout h2,.life-daily h2,.life-insight h2{font:var(--t-head);letter-spacing:-.02em;text-transform:none}
.life-welcome h2{font-size:1.5rem;line-height:1.2;margin:10px 0 8px}
.life-workout h2{margin:10px 0 6px}
.life-daily h2{font-size:1.375rem;margin:0 0 14px}
/* Small labels read as sentence case, never as shouted caps. */
.life-eyebrow,.product-kicker,.now-tag{display:block;font:600 .8125rem/1.4 var(--body);letter-spacing:0;text-transform:lowercase;color:var(--muted)}
.life-eyebrow::first-letter,.product-kicker::first-letter,.now-tag::first-letter{text-transform:uppercase}
.life-free,.arc-home .product-free,.product-free{display:none}
.life-note,.life-empty{font-size:.875rem}

/* ---------- Chrome ---------- */
.page{gap:28px}
.page:not(.arc-home)>.p-bar{margin:0 -20px;padding:10px 20px;background:color-mix(in srgb,var(--bg) 78%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
.icon-btn{border:0;background:var(--fill)}
.tabbar{background:color-mix(in srgb,var(--bg) 72%,transparent);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);border-top:1px solid var(--hair)}
.tabbar a{font-weight:500;letter-spacing:-.01em}
/* Active label: same weight (a bolder face is wider and nudges the label); a hairline stroke reads as bold without relayout. */
.tabbar a[aria-current="page"] span{-webkit-text-stroke:.35px currentColor}
/* No floating voice button: ARC is its own tab and the workout header has its own microphone. */
.vbtn{display:none}

/* ---------- Surfaces ---------- */
.life-goal,.life-welcome,.life-workout,.life-daily,.life-checkin,.life-ask,.life-notice,.life-metrics article,.life-insight,.life-gym-bridge,
.stat,.tool,.next-card,.product-day,.now-card.soft,dialog.voice.arc-inline{border-color:transparent;background:var(--surface);border-radius:var(--r-card)}
.life-welcome{background:var(--surface)}
.life-workout{border-top:0}
.life-page{gap:24px}
.life-section{gap:12px}
.life-section-head{align-items:center}
.life-today .life-track{margin:2px 0 4px}
.life-timeline{border-top:0;background:var(--surface);border-radius:var(--r-card);overflow:hidden}
.life-timeline-item{border-bottom:0;padding:14px 16px;gap:14px}
.life-timeline-item+.life-timeline-item{box-shadow:inset 0 1px 0 var(--hair)}
.life-timeline-item time{font-variant-numeric:tabular-nums;color:var(--muted);min-width:44px}
.life-timeline-item.is-done b{text-decoration:line-through;text-decoration-color:var(--muted);color:var(--muted)}
.life-empty{padding:16px;margin:0;background:var(--surface);border-radius:var(--r-card,20px);color:var(--muted)}
.life-track{height:6px;background:var(--fill)}
.life-track span{background:var(--signal)}
.life-notice>span{color:var(--signal)}

/* ---------- Controls ---------- */
.btn{border-radius:14px;font-weight:600;letter-spacing:-.01em;transition:transform .16s var(--ease),opacity .16s var(--ease)}
.btn:active{transform:scale(.97);opacity:.85}
.btn-sm{border-radius:12px;min-height:44px}
.btn-ghost{border:0;background:var(--fill)}
.link-btn{font-weight:600}
.product-links a,.product-links button{border:0;background:var(--fill)}
:where(.text-in),:where(.life-daily,.life-sheet,#lifeDlg) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border:1px solid transparent;background:var(--fill);border-radius:var(--r-ctl);min-height:48px;padding:0 14px;font-size:16px;color:var(--ink);width:100%;box-sizing:border-box}
:where(.life-daily,.life-sheet,#lifeDlg) :where(textarea){padding:12px 14px;min-height:88px}
.text-in:focus,.life-daily :is(input,select,textarea):focus,.life-sheet :is(input,select,textarea):focus{outline:none;border-color:var(--signal);box-shadow:0 0 0 3px color-mix(in srgb,var(--signal) 22%,transparent)}
:where(.life-daily,.life-sheet,#lifeDlg) :where(select){appearance:none;-webkit-appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 52%,calc(100% - 14px) 52%;background-size:6px 6px;background-repeat:no-repeat}
:where(input[type=checkbox]){appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;flex:none;border-radius:7px;border:1.5px solid var(--line);background:var(--fill);display:inline-grid;place-content:center;vertical-align:middle;transition:background .15s var(--ease),border-color .15s var(--ease)}
:where(input[type=checkbox])::before{content:"";width:12px;height:12px;background:var(--bg);clip-path:polygon(14% 52%,0 66%,40% 100%,100% 22%,86% 8%,38% 70%);transform:scale(0);transition:transform .15s var(--ease)}
:where(input[type=checkbox]):checked{background:var(--signal);border-color:var(--signal)}
:where(input[type=checkbox]):checked::before{transform:scale(1)}
:where(input[type=checkbox]):focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.life-daily label{font-size:.8125rem;color:var(--muted);font-weight:500}
.life-daily .life-daily-done{color:var(--ink);font-size:.9375rem;display:flex;align-items:center;gap:10px}
.life-daily details summary{font-weight:600;min-height:44px;display:flex;align-items:center}
.seg2{background:var(--fill)}

/* ---------- Más: an inset grouped list ---------- */
.g-menu{display:flex;flex-direction:column;gap:0;background:var(--surface);border-radius:var(--r-card);overflow:hidden}
.g-menu>.g-card{min-height:0;padding:12px 16px;border:0;border-radius:0;background:transparent;color:var(--ink);gap:12px;flex-direction:row;align-items:center;position:relative}
.g-menu>.g-card+.g-card::before{content:"";position:absolute;left:60px;right:0;top:0;height:1px;background:var(--hair)}
.g-menu>.g-card>div{display:grid;grid-template-columns:32px 1fr;column-gap:12px;align-items:center;flex:1;min-width:0}
.g-menu>.g-card>div>span:first-child{grid-row:span 2;width:32px;height:32px;border-radius:9px;background:var(--fill);display:grid;place-items:center;color:var(--ink)!important}
.g-menu>.g-card>div>span:first-child svg{width:18px;height:18px}
.g-menu>.g-card h2{font:var(--t-row);letter-spacing:-.01em;text-transform:none;margin:0}
.g-menu>.g-card p{font:var(--t-foot);color:var(--muted);margin:1px 0 0;opacity:1}
.g-menu>.g-card::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:rotate(45deg);opacity:.55}
.g-menu>.g-card.daily{background:transparent;color:var(--ink)}
.g-menu>.g-card.daily>div>span:first-child{background:var(--signal);color:var(--bg)!important}
.g-menu>.g-card.daily p{color:var(--muted)}
.g-menu>.g-card:active{background:var(--fill)}

/* ---------- Gym ---------- */
.cta-card{border-radius:var(--r-card);gap:10px}
.cta-card h2{font:700 1.5rem/1.2 var(--body);letter-spacing:-.02em;text-transform:none}
.stat{padding:16px 14px}
.stat-num{font-size:2.25rem}
.product-day-head a{font-size:1.375rem}
.next-card b{font-family:var(--body);font-weight:700;font-size:1.0625rem}

/* ---------- ARC ---------- */
.arc-inline .v-live{font-family:var(--body);font-weight:600;letter-spacing:-.01em;text-transform:none}

@media (prefers-reduced-motion:reduce){.btn,:where(input[type=checkbox]),:where(input[type=checkbox])::before{transition:none}.btn:active{transform:none}}

/* ---------- Agenda ---------- */
.product-day-head a{color:var(--signal)}
.ag-week span{display:inline-flex;align-items:center;gap:10px;font-weight:600}
.ag-week svg{flex:none}

/* ---------- Sheets and secondary pages ---------- */
.sheet h2{font:700 1.75rem/1.15 var(--body);letter-spacing:-.03em;text-transform:none}
.sheet .sheet-head{align-items:center}
.seg.seg-text span{font-family:var(--body);font:600 1.0625rem/1.2 var(--body);letter-spacing:-.01em;min-height:52px}
.b-intro h1{font:var(--t-title);letter-spacing:-.032em}
.b-intro>p:last-child{font-size:.9375rem}
.lbl{letter-spacing:0;text-transform:none}

/* ---------- Routines and feedback ---------- */
.rc-head h3{font:700 1.375rem/1.2 var(--body);letter-spacing:-.02em;text-transform:none}
.toast{padding:12px 18px;border-radius:16px;font-weight:600;font-size:.9375rem;line-height:1.35;max-width:min(88vw,420px);text-align:center;background:color-mix(in srgb,var(--ink) 92%,transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
/* In-app headings follow the system type; Big Shoulders stays for the landing, Arcs, Wrapped and numbers. */
.now-t,.wx-head h2,.coach-card h2,.prog-card h2,.v-guide h2,.onb h2,.ra-t{font-family:var(--body);font-weight:700;text-transform:none;letter-spacing:-.025em;line-height:1.15}
.now-t,.wx-head h2{font-size:1.5rem}
.coach-card h2,.prog-card h2,.v-guide h2,.onb h2{font-size:1.625rem}
.pro-promo b{font-family:var(--body);font-weight:700;text-transform:none;letter-spacing:-.02em}
/* ARC is a conversation: its title stays compact so the chat keeps the space. */
.arc-home .product-arc-heading .p-title,.arc-home .product-arc-heading h1{font-size:1.75rem;margin:0}
@media (max-height:640px){.arc-home .product-arc-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
h1[tabindex="-1"]:focus{outline:none}

/* 1.13: tap targets — footer social link and the Arcs section rail reach 44px. */
.i-foot a{display:inline-flex;align-items:center;min-height:44px}
.rail{gap:0}.rail button{height:40px}
/* 1.15: the sticky header extends under the iOS status bar so scrolled content never shows through it. */
.page:not(.arc-home)>.p-bar{top:0;padding-top:calc(10px + env(safe-area-inset-top,0px));margin-top:calc(-1 * env(safe-area-inset-top,0px))}
/* 1.15: routine editor — drag handle, set-by-set plan. */
.rex-head{align-items:flex-start}
.rex-grip{flex:none;width:32px;height:40px;margin:-4px -4px 0 -6px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:10px}
.rex-grip:active{cursor:grabbing}
.rex{transition:transform .18s var(--ease,ease),box-shadow .18s;-webkit-touch-callout:none}
.rex-list.is-sorting .rex{-webkit-user-select:none;user-select:none}
.rex.dragging{transition:none;position:relative;z-index:5;box-shadow:0 18px 40px rgba(0,0,0,.35);transform-origin:center}
.rex-sets{border-top:1px solid var(--hair,var(--line));padding-top:8px}
.rex-sets>summary,#tplSec>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;cursor:pointer;font:600 .875rem/1.3 var(--body)}
.rex-sets>summary::-webkit-details-marker,#tplSec>summary::-webkit-details-marker{display:none}
#tplSec>summary{min-height:44px}
.rex-sets>summary::after,#tplSec>summary::after{content:'';width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin:0 6px 4px 0;transition:transform .2s}
.rex-sets[open]>summary::after,#tplSec[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
.rex-sets>summary small{flex:1;text-align:right;color:var(--muted);font:500 .75rem var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-head,.rs-row{display:grid;grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) 40px;gap:8px;align-items:center}
.rs-head{font:600 .6875rem var(--body);color:var(--muted);margin:6px 0 4px}
.rs-row{margin-bottom:6px}
.rs-row .st{width:48px;height:44px}
.rs-row .text-in{height:44px;min-height:44px;padding:0 12px;text-align:center}
.rs-row .mini-btn{width:40px;height:40px}
.rs-row .mini-btn:disabled{opacity:.3}
.rs-foot{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:4px}
.rs-foot small{font:400 .75rem/1.4 var(--body);color:var(--muted)}
/* 1.16: Apple-style polish pass. */
/* Tab bar: one icon size and one label baseline for every tab (the mic was larger and sat lower). */
.tabbar a svg{width:24px;height:24px;flex:none}
.tabbar a span{line-height:1.1}
/* Workout header: one line of status, never wrapping "kg" onto its own line. */
.w-title{min-width:0;flex:1}
.w-title b,.w-title>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w-title>span{font-variant-numeric:tabular-nums}
/* Progress: compact weekly grid; zeros recede instead of shouting. */
.life-metrics-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.life-metrics-3 article{padding:14px 12px;gap:4px;border:0;background:var(--surface);border-radius:var(--r-card,18px)}
.life-metrics-3 b{font:600 1.5rem/1.1 var(--body);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.life-metrics-3 span{font:500 .75rem/1.3 var(--body)}
.life-metrics-3 article.is-zero b{color:var(--muted);font-weight:500}
@media (max-width:340px){.life-metrics-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Numbers everywhere align like in Apple's apps. */
.life-metrics b,.st-strip b,.g-stat b,.score-ring b{font-variant-numeric:tabular-nums}
/* Semana: three actions on one row, equal width. */
.life-actions-3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.life-actions-3 .btn{width:100%;min-width:0;padding-inline:8px;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.life-actions-3 .btn svg{flex:none;width:16px;height:16px}
/* Narrow phones: the main action takes a full row and the other two share the next one, so no label is cut. */
@media (max-width:430px){.life-actions-3{grid-template-columns:repeat(2,minmax(0,1fr))}.life-actions-3 .btn:first-child{grid-column:1/-1}.life-actions-3 .btn{white-space:normal;overflow:visible;line-height:1.2;padding-block:8px}}
/* Gym: a quiet week shows muted figures, not three loud zeros. */
.stats.is-zero .stat-num{color:var(--muted);font-weight:600}
.stat-num{font-variant-numeric:tabular-nums}

/* ===== 1.17 Motion layer (arc-motion.js) ===== */
/* Screen transitions (arc-motion.js): push / pop slide like a navigation stack, tabs cross-fade, the tab bar never moves.
   The old screen is a fixed layer at its scroll position, the new one renders in place; both are opaque. Only transform
   and opacity move. The dimming and the edge shadow are their own layers so no screen repaints while it slides. */
:root{--nav-dim:.1}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--nav-dim:.32}}
:root[data-theme="dark"]{--nav-dim:.32}
.nav-ghost{position:fixed;inset:0;overflow:hidden;background:var(--bg);pointer-events:none;contain:strict}
.nav-scrim{position:fixed;inset:0;background:#000;opacity:0;pointer-events:none}
.nav-edge{position:fixed;top:0;bottom:0;left:0;width:100%;pointer-events:none;box-shadow:-1px 0 0 var(--hair),-10px 0 28px rgba(0,0,0,.1)}
#app{position:relative;background:var(--bg)}
html.nav-sliding #app{min-height:100vh}
/* Both html and body clip: on phones a screen parked at translateX(100%) otherwise widens the layout viewport
   (390 to 780 px), so the fixed tab bar leaves the screen and the old screen re-lays out wider mid-slide. */
html.nav-sliding,html.nav-sliding body{overflow-x:clip}

/* iOS large title → compact title in the bar while scrolling. */
.p-bar{position:sticky}
.p-bar-title{position:absolute;left:20px;right:var(--bar-title-r,150px);top:calc(50% + env(safe-area-inset-top,0px) / 2);transform:translateY(calc(-50% + 6px));opacity:0;pointer-events:none;font:600 1.0625rem/1.2 var(--body);letter-spacing:-.02em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .22s ease,transform .3s cubic-bezier(.32,.72,0,1)}
.p-bar .logo,.p-bar>a:first-child,.p-bar>svg:first-child{transition:opacity .22s ease,transform .3s cubic-bezier(.32,.72,0,1)}
.p-bar.is-collapsed .p-bar-title{opacity:1;transform:translateY(-50%)}
.p-bar.no-anim,.p-bar.no-anim *{transition:none!important}
.p-bar.is-collapsed>:first-child:not(.p-bar-title){opacity:0;transform:translateY(-6px);pointer-events:none}
.page:not(.arc-home)>.p-bar{border-bottom:1px solid transparent;transition:border-color .25s ease}
.page:not(.arc-home)>.p-bar.is-collapsed{border-bottom-color:var(--hair)}

/* Sheets: slide up from the bottom edge and back down on close, over a blurred backdrop that fades both ways.
   On close arc-ui.js shows the closed dialog as an inert manual popover marked [data-closing] until the out
   animation ends. Animations, not transitions: the popover's ::backdrop is a new box with no style to start from.
   arc-motion.js drags `translate` for swipe-to-dismiss; --sheet-from carries the finger position into the slide. */
dialog:not(.voice):not(.rkup):not(.focus-zen)[open]{animation:arc-sheet-up .5s cubic-bezier(.32,.72,0,1)}
@keyframes arc-sheet-up{from{transform:translateY(100%)}}
dialog:not(.voice):not(.rkup){transition:translate .38s cubic-bezier(.32,.72,0,1)}
dialog.is-dragging{transition:none!important}
dialog[data-closing]{display:block;pointer-events:none}
/* Keep the browser's :modal limits once the dialog is a popover, so it does not change size as it starts to leave. */
:where(dialog[data-closing]){max-width:calc(100% - 6px - 2em);max-height:calc(100% - 6px - 2em)}
dialog.rkup[data-closing]{display:flex}
dialog[data-closing]:not(.voice):not(.rkup):not(.focus-zen){animation:arc-sheet-out .38s cubic-bezier(.32,.72,0,1) forwards}
@keyframes arc-sheet-out{from{translate:var(--sheet-from,0px 0px);transform:var(--sheet-from-t,none)}to{translate:0 calc(100% + 40px);transform:none}}
dialog[data-closing]:is(.voice,.rkup,.focus-zen){animation:arc-panel-out .24s ease forwards}
@keyframes arc-panel-out{to{opacity:0}}
@media (min-width:700px){
  dialog:not(.voice):not(.rkup):not(.focus-zen)[open]{animation:sheet .35s cubic-bezier(.2,.7,.1,1)}
  dialog[data-closing]:not(.voice):not(.rkup):not(.focus-zen){animation-name:arc-sheet-out-centred;animation-duration:.26s}
  @keyframes arc-sheet-out-centred{from{translate:var(--sheet-from,0px 0px)}to{translate:0 32px;opacity:0}}
}
dialog::backdrop{-webkit-backdrop-filter:blur(8px) saturate(120%);backdrop-filter:blur(8px) saturate(120%)}
dialog[open]::backdrop{animation:arc-backdrop-in .34s ease}
dialog[data-closing]::backdrop{animation:arc-backdrop-out .38s ease forwards}
@keyframes arc-backdrop-in{from{opacity:0}}
@keyframes arc-backdrop-out{to{opacity:0}}
dialog:not(.voice):not(.rkup)::before{content:'';position:sticky;top:0;display:block;width:38px;height:5px;margin:8px auto -13px;border-radius:3px;background:var(--muted);opacity:.45;z-index:3}

/* Dynamic-Island-style banner. */
.island{position:fixed;left:50%;top:calc(8px + env(safe-area-inset-top,0px));z-index:80;display:flex;align-items:center;gap:12px;min-height:44px;max-width:min(92vw,420px);padding:8px 18px 8px 8px;border-radius:999px;background:#000;color:#fff;box-shadow:0 16px 40px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.08);transform:translate(-50%,-140%) scale(.6);opacity:0;pointer-events:none;transition:transform .55s cubic-bezier(.34,1.4,.4,1),opacity .25s ease}
.island.show{transform:translate(-50%,0) scale(1);opacity:1}
.island-ico{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:1.125rem;background:linear-gradient(145deg,#FFD66B,#FF9F43);color:#3a2300;animation:island-pop .7s cubic-bezier(.34,1.6,.4,1) .15s both}
.island-txt{display:flex;flex-direction:column;min-width:0}
.island-txt b{font:600 .875rem/1.2 var(--body)}
.island-txt small{font:500 .8125rem/1.25 var(--body);color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes island-pop{from{transform:scale(.3) rotate(-30deg);opacity:0}}

/* Press feedback everywhere it is tappable. */
:where(.btn,.tool,.g-card,.icon-btn,.lib-card,.life-tpl,.life-timeline-item,.tabbar a):active{transform:scale(.97)}
:where(.btn,.tool,.g-card,.icon-btn,.lib-card,.life-tpl,.life-timeline-item,.tabbar a){transition:transform .18s cubic-bezier(.32,.72,0,1)}

@media (prefers-reduced-motion:reduce){
  .island,.p-bar-title,dialog,dialog::backdrop{transition:none!important}
  dialog[open],dialog[open]::backdrop,dialog[data-closing],dialog[data-closing]::backdrop{animation:none!important}
  .island-ico{animation:none}
}
/* Routine name edited in place, like renaming in Notes or Reminders. */
.title-edit .p-title{margin:0}
.title-in{font:inherit;letter-spacing:inherit;color:inherit;background:transparent;border:0;border-radius:10px;padding:2px 6px;margin:-2px -6px;width:calc(100% + 12px);min-width:0;outline:none;text-overflow:ellipsis;transition:background .2s}
.title-in:hover{background:var(--fill)}
.title-in:focus{background:var(--fill);box-shadow:0 0 0 2px var(--signal,var(--accent))}
/* Hoy: activity ring next to "N de M hechas". */
.life-today .life-section-head{justify-content:flex-start;gap:12px}
.life-today .life-section-head>a,.life-today .life-section-head>button{margin-left:auto}
.life-ring{width:40px;height:40px;flex:none;transform:rotate(-90deg)}
.life-ring circle{fill:none;stroke-width:5.5;stroke-linecap:round}
.life-ring-bg{stroke:var(--fill)}
.life-ring-fg{stroke:var(--signal,var(--accent));transition:stroke-dashoffset .9s cubic-bezier(.32,.72,0,1)}
@starting-style{.life-ring-fg{stroke-dashoffset:113.1}}
.life-ring.is-full .life-ring-fg{stroke:#34C759}
.life-ring-ok{fill:none;stroke:#34C759;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;transform:rotate(90deg);transform-origin:22px 22px}
.island{width:max-content}
.island-txt b{white-space:nowrap}

/* ===== 1.18 ===== */
/* Agenda rows: swipe right to complete, left to delete (arc-motion bindSwipe). */
.list > li.arow{position:relative;border-radius:18px;isolation:isolate}
.list > li.arow > *{transform:translateX(var(--sx,0px))}
.list > li.arow.sw-settle > *{transition:transform .26s cubic-bezier(.32,.72,0,1)}
.list > li.arow.sw-right{background:#34C759}
.list > li.arow.sw-left{background:#FF3B30}
.list > li.arow.sw-right::before,.list > li.arow.sw-left::after{content:attr(data-sw-label);position:absolute;top:50%;transform:translateY(-50%) scale(.85);font:600 .9375rem var(--body);color:#fff;opacity:.7;z-index:-1;transition:transform .2s cubic-bezier(.34,1.6,.4,1),opacity .2s}
.list > li.arow.sw-right::before{left:20px}
.list > li.arow.sw-left::after{right:20px}
.list > li.arow.sw-armed::before,.list > li.arow.sw-armed::after{transform:translateY(-50%) scale(1.08);opacity:1}
.list > li.arow.swiping{-webkit-user-select:none;user-select:none}

/* Rest timer as a floating Live-Activity capsule. */
.rest-bar{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:14px 16px 12px;border:0;border-radius:26px;background:color-mix(in srgb,var(--surface2) 82%,transparent);-webkit-backdrop-filter:saturate(180%) blur(24px);backdrop-filter:saturate(180%) blur(24px);box-shadow:0 20px 50px rgba(0,0,0,.35),0 0 0 1px var(--hair);max-width:560px;margin:0 auto;animation:la-in .5s cubic-bezier(.34,1.3,.4,1)}
.rest-bar #restLeft{font-variant-numeric:tabular-nums;font-size:2.625rem;letter-spacing:-.01em}
.rest-bar .fbar{height:4px;border-radius:4px;margin-top:10px;overflow:hidden}
.rest-bar .fbar div{background:var(--signal,var(--accent))}
.rest-bar button{border-radius:999px}
@keyframes la-in{from{translate:0 30px;scale:.92;opacity:0}}

/* Gentle reveal while scrolling (scroll-driven animations; uses translate/opacity so taps and drags keep their transforms). */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion:no-preference){
    .life-section,.life-metrics article,.g-card,.lib-card,.stats .stat,.st-strip,.cta-card{animation:sr-reveal linear both;animation-timeline:view();animation-range:entry 0% entry 28%}
    @keyframes sr-reveal{from{opacity:0;translate:0 18px}}
  }
}
/* Toasts float above the rest-timer capsule during a workout. */
body.workout .toast{bottom:calc(140px + env(safe-area-inset-bottom,0px))}

/* ===== 1.19 ===== */
/* Context menu: lifted row over a blurred backdrop, menu springs from the row. */
.cm{position:fixed;inset:0;z-index:90}
.cm-bg{position:absolute;inset:0;background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);opacity:0;transition:opacity .25s ease}
.cm.show .cm-bg{opacity:1}
.cm-lift{position:fixed;list-style:none;margin:0;padding:0;pointer-events:none;transform-origin:center;transition:transform .35s cubic-bezier(.34,1.4,.4,1),filter .35s}
.cm-lift>li{display:flex;gap:8px}
.cm.show .cm-lift{transform:scale(1.03);filter:drop-shadow(0 16px 30px rgba(0,0,0,.35))}
.cm-menu{position:fixed;min-width:240px;max-width:min(300px,calc(100vw - 32px));border-radius:16px;overflow:hidden;background:color-mix(in srgb,var(--surface) 86%,transparent);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);box-shadow:0 20px 50px rgba(0,0,0,.35),0 0 0 1px var(--hair);transform-origin:top left;transform:scale(.6);opacity:0;transition:transform .38s cubic-bezier(.34,1.4,.4,1),opacity .18s ease}
.cm.show .cm-menu{transform:scale(1);opacity:1}
.cm-item{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:46px;padding:0 16px;border:0;background:transparent;color:var(--ink);font:400 1rem/1.2 var(--body);text-align:left;cursor:pointer}
.cm-item+.cm-item{border-top:1px solid var(--hair)}
.cm-item svg{width:18px;height:18px;flex:none;opacity:.85}
.cm-item:active,.cm-item:focus-visible{background:var(--fill);outline:none}
.cm-item.is-danger{color:#FF3B30}

/* Launch moment: logo draws in, then the app appears. */
.launch{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:var(--bg);transition:opacity .4s ease,visibility .4s}
.launch .logo{width:min(46vw,190px);height:auto;fill:var(--ink);animation:launch-in .9s cubic-bezier(.2,.8,.2,1) both}
.launch.out{opacity:0;visibility:hidden}
.launch.out .logo{transition:transform .4s cubic-bezier(.32,.72,0,1);transform:scale(1.12)}
@keyframes launch-in{0%{opacity:0;transform:scale(.86);filter:blur(10px)}60%{opacity:1;filter:blur(0)}100%{transform:scale(1)}}

/* Hoy greeting. */
.life-hello{color:var(--ink);font-weight:500}

/* ===== 1.20 ===== */
/* Hoy rows: a completion circle like Reminders; swipe and long-press via arc-motion. */
.life-row{display:flex;align-items:center;position:relative;isolation:isolate;background:var(--surface)}
.life-row+.life-row::before{content:'';position:absolute;top:0;left:54px;right:0;height:1px;background:var(--hair);z-index:1;pointer-events:none}
.life-row>.life-timeline-item{flex:1;min-width:0;padding-left:4px;box-shadow:none!important}
.life-check{flex:none;width:48px;height:52px;margin-left:6px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.life-check svg{width:24px;height:24px;overflow:visible}
.life-check circle{fill:none;stroke:currentColor;stroke-width:1.6;transition:fill .25s ease,stroke .25s ease}
.life-check path{fill:none;stroke:var(--bg);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16;stroke-dashoffset:16;transition:stroke-dashoffset .3s cubic-bezier(.32,.72,0,1) .08s}
.life-row.is-done .life-check{color:var(--signal)}
.life-row.is-done .life-check circle{fill:currentColor}
.life-row.is-done .life-check path{stroke-dashoffset:0}
.life-row.just-done .life-check svg{animation:check-pop .45s cubic-bezier(.34,1.8,.4,1)}
@keyframes check-pop{40%{transform:scale(1.25)}}
.life-row>*{transform:translateX(var(--sx,0px))}
.life-row.sw-settle>*{transition:transform .26s cubic-bezier(.32,.72,0,1)}
.life-row.sw-right{background:#34C759}
.life-row.sw-left{background:#FF9500}
.life-row.sw-right::before,.life-row.sw-left::after{content:attr(data-sw-label);position:absolute;top:50%;transform:translateY(-50%) scale(.85);font:600 .9375rem var(--body);color:#fff;opacity:.7;z-index:-1;transition:transform .2s cubic-bezier(.34,1.6,.4,1),opacity .2s}
.life-row.sw-right::before{left:20px}
.life-row.sw-left::after{right:20px}
.life-row.sw-armed::before,.life-row.sw-armed::after{transform:translateY(-50%) scale(1.08);opacity:1}
.life-row>.life-timeline-item.is-done b{text-decoration:line-through;color:var(--muted)}
.cm-lift>.life-row{border-radius:14px;overflow:hidden}
@media (prefers-reduced-motion:reduce){.life-row.just-done .life-check svg{animation:none}}
/* Workout: the set row that was just completed pops once and its check fills with a spring. */
.set-row.just-done{animation:set-done .5s cubic-bezier(.34,1.5,.4,1)}
.set-row.just-done [data-sdone]{animation:check-pop .45s cubic-bezier(.34,1.8,.4,1)}
@keyframes set-done{0%{background:color-mix(in srgb,var(--signal,var(--accent)) 22%,transparent)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){.set-row.just-done,.set-row.just-done [data-sdone]{animation:none}}
.life-row>.life-check,.life-row>.life-timeline-item{background:var(--surface)}
.life-row>.life-check{margin-left:0;padding-left:6px;width:54px}

/* ===== 1.21 ARC as Messages ===== */
.v-me{background:#0A84FF;color:#fff;font-weight:500;border-radius:20px 20px 6px 20px;padding:10px 15px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.v-ai{background:var(--surface2);border:0;border-radius:20px 20px 20px 6px;padding:11px 15px}
.v-ai .btn{border-radius:999px}
.v-me,.v-ai{animation:bubble-in .36s cubic-bezier(.34,1.3,.4,1) both}
.v-me{transform-origin:bottom right}
.v-ai{transform-origin:bottom left}
@keyframes bubble-in{from{opacity:0;scale:.6;translate:0 12px}}
.v-typing{display:inline-flex;gap:5px;align-items:center;padding:14px 16px;width:max-content}
.v-typing i{width:8px;height:8px;border-radius:50%;background:var(--muted);animation:typing 1.2s ease-in-out infinite}
.v-typing i:nth-child(2){animation-delay:.15s}
.v-typing i:nth-child(3){animation-delay:.3s}
@keyframes typing{0%,60%,100%{opacity:.35;translate:0 0}30%{opacity:1;translate:0 -4px}}
@media (prefers-reduced-motion:reduce){.v-me,.v-ai,.v-typing i{animation:none}}

/* ===== 1.22 ===== */
.sess-delta{margin:0;font:600 .9375rem/1.3 var(--body);font-variant-numeric:tabular-nums}
.sess-delta.up{color:#34C759}
.sess-delta.down{color:var(--muted)}
.sheet .stats .stat-num{white-space:nowrap;font-variant-numeric:tabular-nums}
.sheet .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.sheet .stats .stat-num{font-size:clamp(28px,8vw,40px)}
/* Welcome: three cinematic moments for new users. */
body.welcome-on{overflow:hidden}
.welcome{position:fixed;inset:0;z-index:95;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);padding:calc(20px + env(safe-area-inset-top,0px)) 0 calc(24px + env(safe-area-inset-bottom,0px));opacity:0;transition:opacity .45s ease}
.welcome.in{opacity:1}.welcome.out{opacity:0}
.wl-skip{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));right:16px;z-index:2;border:0;background:var(--fill);color:var(--ink);font:500 .9375rem var(--body);padding:8px 14px;border-radius:999px;min-height:36px}
.wl-track{flex:1;position:relative;overflow:hidden}
.wl-slide{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:0 32px;max-width:560px;margin:0 auto;transform:translateX(calc((var(--i,0) - var(--at,0)) * 100%));opacity:0;transition:transform .6s cubic-bezier(.32,.72,0,1),opacity .4s ease}
.wl-slide[data-i="0"]{--i:0}.wl-slide[data-i="1"]{--i:1}.wl-slide[data-i="2"]{--i:2}.wl-slide[data-i="3"]{--i:3}.wl-slide[data-i="4"]{--i:4}
.wl-slide.is-on{opacity:1}
.wl-slide h2{font:700 clamp(32px,9vw,44px)/1.05 var(--body);letter-spacing:-.035em;margin:28px 0 12px}
.wl-slide p{font:400 1.125rem/1.45 var(--body);color:var(--muted);margin:0;max-width:420px}
.wl-foot{display:flex;flex-direction:column;align-items:center;gap:14px;padding:0 24px;max-width:560px;width:100%;margin:0 auto;box-sizing:border-box}
.wl-dots{display:flex;gap:8px}
.wl-dots i{width:8px;height:8px;border-radius:4px;background:var(--fill);transition:width .35s cubic-bezier(.32,.72,0,1),background .3s}
.wl-dots i.on{width:24px;background:var(--ink)}
.wl-next{width:100%;min-height:54px;font-size:1.0625rem;border-radius:16px}
.wl-later{min-height:40px;color:var(--muted)}
/* 1: compound curve */
.wl-curve{position:relative;height:220px}
.wl-curve svg{width:100%;height:170px;overflow:visible}
.wl-axis{stroke:var(--hair);stroke-width:1.5;fill:none}
.wl-line{fill:none;stroke:var(--signal,var(--accent));stroke-width:5;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:420}
.wl-one.is-on .wl-line{animation:wl-draw 1.6s cubic-bezier(.6,.05,.3,1) .1s forwards}
.wl-dot{fill:var(--signal,var(--accent));opacity:0}
.wl-one.is-on .wl-dot{animation:wl-fade .3s ease 1.6s forwards}
.wl-big{position:absolute;left:0;top:0;font:900 4.75rem/1 var(--display);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.wl-curve small{position:absolute;left:4px;top:80px;font:500 .9375rem var(--body);color:var(--muted)}
@keyframes wl-draw{to{stroke-dashoffset:0}}
@keyframes wl-fade{to{opacity:1}}
/* 2: ARC chat */
.wl-chat{display:flex;flex-direction:column;gap:12px;min-height:220px;justify-content:flex-end}
.wl-chat p{margin:0;font-size:1.0625rem}
/* .wl-slide p is muted: chat bubbles keep their own readable colours in both themes. */
.wl-slide .wl-chat .v-me{color:#fff}.wl-slide .wl-chat .v-ai{color:var(--ink)}
.wl-soon{align-self:flex-start;font:600 .8125rem/1 var(--body);padding:7px 10px;border-radius:999px;background:var(--fill);color:var(--ink)}
.wl-chat .v-me,.wl-chat .v-ai{opacity:0;animation:none}
.wl-arc.is-on .v-me{animation:wl-bubble .45s cubic-bezier(.34,1.3,.4,1) .35s both}
.wl-arc.is-on .v-ai{animation:wl-bubble .45s cubic-bezier(.34,1.3,.4,1) 1.15s both}
@keyframes wl-bubble{from{opacity:0;scale:.6;translate:0 12px}to{opacity:1;scale:1;translate:0 0}}
.welcome:focus{outline:none}
.wl-orb{width:64px;height:64px;border-radius:50%;margin-bottom:auto;background:radial-gradient(circle at 35% 30%,#fff,var(--signal,#8FB8FF) 45%,#0A84FF 100%);box-shadow:0 0 40px color-mix(in srgb,var(--signal,#8FB8FF) 60%,transparent);animation:wl-breathe 2.4s ease-in-out infinite}
@keyframes wl-breathe{50%{transform:scale(1.08)}}
/* 3: week */
.wl-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:8px}
.wl-days span{display:flex;flex-direction:column;align-items:center;gap:8px;font:600 .8125rem var(--body);color:var(--muted)}
.wl-days i{width:100%;aspect-ratio:1;border-radius:12px;background:var(--fill)}
.wl-days span.on i{background:var(--signal,var(--accent));transform:scale(.4);opacity:0}
.wl-slide.is-on .wl-days span.on i{animation:wl-pop .5s cubic-bezier(.34,1.6,.4,1) calc(.25s + var(--i) * .12s) forwards}
@keyframes wl-pop{to{transform:scale(1);opacity:1}}
.wl-name{display:flex;flex-direction:column;gap:8px;margin-top:24px;font:600 .875rem var(--body);color:var(--muted)}
.wl-name input{min-height:50px;border-radius:14px;border:0;background:var(--fill);color:var(--ink);font:400 17px var(--body);padding:0 16px}
.wl-slide.wl-week h2{margin-top:20px}
@media (prefers-reduced-motion:reduce){.wl-slide{transition:opacity .2s}.wl-line{stroke-dashoffset:0}.wl-dot,.wl-chat .v-me,.wl-chat .v-ai,.wl-days span.on i{opacity:1;transform:none;animation:none!important}.wl-orb{animation:none}}
/* Progress trends: 6-month heatmap and 8-week bars. */
.life-trends{display:flex;flex-direction:column;gap:12px}
.trend-card{background:var(--surface);border-radius:var(--r-card,20px);padding:16px;display:flex;flex-direction:column;gap:12px}
.trend-card header{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.trend-card header b{font:700 1.75rem/1 var(--body);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.trend-card header span{font:500 .8125rem var(--body);color:var(--muted)}
.trend-card header em{margin-left:auto;font:600 .875rem var(--body);font-style:normal;font-variant-numeric:tabular-nums}
.trend-card header em.up{color:#34C759}.trend-card header em.down{color:var(--muted)}
.trend-card footer{display:flex;align-items:center;gap:4px;font:500 .6875rem var(--body);color:var(--muted)}
.trend-card footer span:last-child{margin-left:auto}
.trend-card footer i{width:10px;height:10px;border-radius:3px}
.heatmap{display:grid;grid-template-rows:repeat(7,1fr);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px}
/* One reveal for the whole map: ~180 separate cell animations made Progreso take a long time to lay out on phones. */
.heatmap{animation:hm-wipe .7s cubic-bezier(.32,.72,0,1) both}
.hm-scroll.is-wide .heatmap{animation-name:hm-fade}
.heatmap i,.heatmap button{aspect-ratio:1;border-radius:3px}
.heatmap button{display:block;width:100%;min-width:0;padding:0;border:0;margin:0;cursor:pointer;font:inherit;color:inherit}
.heatmap button:disabled{cursor:default}
.heatmap button.is-sel{box-shadow:inset 0 0 0 2px var(--ink)}
.heatmap button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.heatmap .hm-x{visibility:hidden}
.hm-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:2px -2px 0;padding:2px}
.hm-chips::-webkit-scrollbar{display:none}
.hm-chip{flex:none;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--fill);color:var(--muted);font:600 .8125rem var(--body);cursor:pointer;font-variant-numeric:tabular-nums}
.hm-chip[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.hm-scroll{overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.hm-months{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:3px;font:500 .625rem/1 var(--body);color:var(--muted);margin-bottom:4px;height:12px}
.hm-months span{white-space:nowrap;text-transform:capitalize}
.hm-scroll.is-wide .hm-months{grid-template-columns:repeat(var(--cols),14px);width:max-content}
.hm-scroll.is-wide .heatmap{grid-auto-columns:14px;width:max-content}
.hm-detail{margin:0;font:500 .8125rem/1.4 var(--body);color:var(--muted)}
.hm-detail b{color:var(--ink);font-weight:600}
.hm-card.no-anim .heatmap{animation:none}
@keyframes hm-wipe{from{clip-path:inset(0 100% 0 0);opacity:.3}}
@keyframes hm-fade{from{opacity:0}}
.hm-0{background:var(--fill)}
.hm-1{background:color-mix(in srgb,var(--signal,var(--accent)) 30%,var(--fill))}
.hm-2{background:color-mix(in srgb,var(--signal,var(--accent)) 55%,var(--fill))}
.hm-3{background:color-mix(in srgb,var(--signal,var(--accent)) 78%,var(--fill))}
.hm-4{background:var(--signal,var(--accent))}
.hm-f{background:transparent;box-shadow:inset 0 0 0 1px var(--hair)}
.bars{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;align-items:end;height:96px}
.bars span{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%}
.bars i{width:100%;border-radius:6px;background:var(--fill);height:calc(max(var(--h),.04) * 76px);transform-origin:bottom;animation:bar-in .7s cubic-bezier(.34,1.3,.4,1) calc(var(--k) * 50ms) both}
.bars span.is-now i{background:var(--signal,var(--accent))}
.bars span.is-zero i{background:var(--hair)}
.bars small{font:600 .6875rem var(--body);color:var(--muted);font-variant-numeric:tabular-nums}
@keyframes bar-in{from{transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.heatmap,.bars i{animation:none}}
.trend-card footer span:first-child{margin-right:6px}

/* ---------- 1.23 · Week in stories ---------- */
html.story-open, html.story-open body{overflow:hidden}
.story{position:fixed;inset:0;z-index:9000;background:#050505;color:#F2F0EA;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;
  font-family:var(--body);opacity:0;transform:scale(.94);transition:opacity .28s ease,transform .38s cubic-bezier(.2,.9,.2,1),border-radius .2s;--st-acc:var(--signal,#8FB8FF)}
.story.is-in{opacity:1;transform:none}
.story.is-leaving{opacity:0;transform:scale(.92) translateY(30px);transition-duration:.24s}
.st-bars{position:absolute;z-index:3;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 10px);display:flex;gap:4px}
.st-bars span{flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,.26);overflow:hidden}
.st-bars i{display:block;height:100%;background:#fff;transform:scaleX(0);transform-origin:left}
.st-bars span.done i{transform:scaleX(1)}
.st-bars span.on i{animation:st-fill linear forwards}
.story.is-paused .st-bars span.on i{animation-play-state:paused}
.st-bars.is-hold span.on i{animation:none;transform:scaleX(1)}
@keyframes st-fill{to{transform:scaleX(1)}}
.st-close{position:absolute;z-index:4;right:10px;top:calc(env(safe-area-inset-top,0px) + 22px);width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.st-close:focus-visible,.st-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.st-stage,.st-slide{position:absolute;inset:0}
.st-slide{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s;display:flex;align-items:center;justify-content:center}
.st-slide.is-on{opacity:1;visibility:visible;transition:opacity .45s ease}
.st-body{position:relative;z-index:1;width:min(100%,460px);padding:72px 28px calc(env(safe-area-inset-bottom,0px) + 40px);display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left}
/* Aurora: three slow blurred blobs tinted per slide. */
.st-aura{position:absolute;inset:-20%;filter:blur(70px) saturate(1.3);opacity:.75}
.st-aura i{position:absolute;width:62%;aspect-ratio:1;border-radius:50%;background:var(--a1);left:-6%;top:2%;animation:st-drift 14s ease-in-out infinite alternate}
.st-aura i:nth-child(2){background:var(--a2);left:44%;top:40%;animation-duration:17s;animation-delay:-5s}
.st-aura i:nth-child(3){background:var(--a3);left:6%;top:68%;width:48%;animation-duration:11s;animation-delay:-8s;opacity:.7}
@keyframes st-drift{to{transform:translate(14%,-10%) scale(1.25)}}
.st-a{--a1:var(--st-acc);--a2:#5E5CE6;--a3:#0A84FF}
.st-b{--a1:#30D158;--a2:#0A84FF;--a3:var(--st-acc)}
.st-c{--a1:#FF9F0A;--a2:#FF375F;--a3:#5E5CE6}
.st-d{--a1:#FF453A;--a2:#FF9F0A;--a3:#BF5AF2}
.st-e{--a1:#64D2FF;--a2:#5E5CE6;--a3:#30D158}
.st-f{--a1:var(--st-acc);--a2:#30D158;--a3:#BF5AF2}
.st-eyebrow{font:800 .75rem/1 var(--body);letter-spacing:.16em;color:rgba(255,255,255,.72)}
.st-title{margin:0;font:900 clamp(64px,19vw,112px)/.86 var(--display,"Big Shoulders Display"),sans-serif;letter-spacing:-.01em;text-transform:uppercase;
  background:linear-gradient(100deg,#fff 20%,var(--st-acc) 50%,#fff 80%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:st-sheen 4.5s ease-in-out infinite}
.st-title small{display:block;font:700 1.5rem/1.2 var(--body);text-transform:none;letter-spacing:0;color:#fff;-webkit-text-fill-color:#fff;margin-top:14px}
@keyframes st-sheen{0%,100%{background-position:100% 0}50%{background-position:0 0}}
.st-sub{margin:0;font:600 1.125rem/1.3 var(--body);color:rgba(255,255,255,.8)}
.st-hint{margin:40px 0 0;font:600 .8125rem var(--body);color:rgba(255,255,255,.55);animation:st-blink 2.2s ease-in-out infinite}
@keyframes st-blink{50%{opacity:.35}}
.st-big{display:flex;align-items:baseline;margin-bottom:6px;font:900 clamp(120px,40vw,200px)/.9 var(--display,"Big Shoulders Display"),sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:#fff;text-shadow:0 10px 60px rgba(0,0,0,.35)}
.st-big i{font-style:normal;font-size:.36em;color:rgba(255,255,255,.62);margin-left:6px}
.st-body h2{margin:0;font:800 clamp(26px,7.4vw,34px)/1.08 var(--body);letter-spacing:-.02em;max-width:16ch}
.st-line{margin:6px 0 0;font:500 1.0625rem/1.4 var(--body);color:rgba(255,255,255,.82);max-width:30ch}
.st-chip{margin:6px 0 0;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);font:500 .9375rem var(--body)}
.st-chip b{text-transform:capitalize}
.st-delta{margin:2px 0 0;font:700 .9375rem var(--body);color:rgba(255,255,255,.7)}
.st-delta.is-up{color:#30D158}.st-delta.is-down{color:#FF9F0A}
.st-days{list-style:none;margin:14px 0 6px;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;width:100%}
.st-days li{aspect-ratio:.62;border-radius:999px;background:rgba(255,255,255,.12);display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;font:800 .8125rem var(--body);text-transform:uppercase;color:rgba(255,255,255,.6)}
.st-days li.on{background:#fff;color:#050505}
.st-meter{width:100%;height:12px;border-radius:12px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:10px}
.st-meter i{display:block;height:100%;width:calc(var(--p) * 1%);border-radius:inherit;background:linear-gradient(90deg,#fff,#30D158)}
.st-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;margin-top:10px}
.st-tiles div{padding:14px 12px;border-radius:20px;background:rgba(255,255,255,.12);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);display:flex;flex-direction:column;gap:4px;min-width:0}
.st-tiles b{font:900 1.75rem/1 var(--display,"Big Shoulders Display"),sans-serif;white-space:nowrap}
.st-tiles span{font:600 .75rem var(--body);color:rgba(255,255,255,.7)}
.st-tiles .is-pr{background:rgba(255,214,10,.22)}.st-tiles .is-pr b{color:#FFD60A}
.st-ring{position:relative;width:min(62vw,240px);aspect-ratio:1;margin:8px 0 6px;align-self:center}
.st-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.st-ring circle{fill:none;stroke-width:11;stroke:rgba(255,255,255,.14)}
.st-ring circle+circle{stroke:#fff;stroke-linecap:round;stroke-dasharray:var(--p) 100}
.st-ring b{position:absolute;inset:0;display:grid;place-items:center;font:900 clamp(72px,22vw,96px)/1 var(--display,"Big Shoulders Display"),sans-serif;font-variant-numeric:tabular-nums}
.st-f .st-body{align-items:center;text-align:center}.st-f h2,.st-f .st-line{margin-left:auto;margin-right:auto}
.st-actions{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:18px}
.st-btn{min-height:52px;border:0;border-radius:999px;font:700 1.0625rem var(--body);background:rgba(255,255,255,.16);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.st-btn-main{background:#fff;color:#050505}
.st-btn:active{transform:scale(.97)}
.st-btn:disabled{opacity:.6}
.st-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Entrance choreography: each child rises in sequence when its slide becomes active. */
.st-slide.is-on .st-body>*{animation:st-rise .7s cubic-bezier(.2,.9,.2,1) both}
.st-slide.is-on .st-body>*:nth-child(2){animation-delay:.08s}
.st-slide.is-on .st-body>*:nth-child(3){animation-delay:.16s}
.st-slide.is-on .st-body>*:nth-child(4){animation-delay:.26s}
.st-slide.is-on .st-body>*:nth-child(5){animation-delay:.36s}
.st-slide.is-on .st-body>*:nth-child(n+6){animation-delay:.46s}
@keyframes st-rise{from{opacity:0;transform:translateY(26px);filter:blur(8px)}}
.st-slide.is-on .st-days li.on{animation:st-pop .5s cubic-bezier(.34,1.56,.64,1) calc(.35s + var(--n) * 90ms) both}
@keyframes st-pop{from{background:rgba(255,255,255,.12);color:rgba(255,255,255,.6);transform:scale(.7)}}
.st-slide.is-on .st-meter i{animation:st-grow 1.2s cubic-bezier(.2,.9,.2,1) .35s both}
@keyframes st-grow{from{width:0}}
.st-slide.is-on .st-ring circle+circle{animation:st-dash 1.4s cubic-bezier(.2,.9,.2,1) .2s both}
@keyframes st-dash{from{stroke-dasharray:0 100}}
@media (prefers-reduced-motion:reduce){
  .story,.st-slide{transition:none}.st-aura i,.st-title,.st-hint{animation:none}
  .st-slide.is-on .st-body>*,.st-slide.is-on .st-days li.on,.st-slide.is-on .st-meter i,.st-slide.is-on .st-ring circle+circle{animation:none}
}
/* Hoy: story entry with an Instagram-style ring (colour = new, grey = watched). */
.life-story{display:flex;align-items:center;gap:14px;width:100%;margin:4px 0 14px;padding:12px 14px;border:0;border-radius:var(--r-card,22px);background:var(--fill);color:inherit;text-align:left;cursor:pointer;font:inherit}
.life-story>svg{width:18px;height:18px;margin-left:auto;color:var(--muted);flex:none}
.life-story-ring{position:relative;width:56px;height:56px;border-radius:50%;flex:none;padding:3px;background:conic-gradient(from 0deg,#FF9F0A,#FF375F,#BF5AF2,#5E5CE6,#30D158,#FF9F0A)}
.life-story:not(.is-seen) .life-story-ring::before{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;filter:blur(10px);opacity:.55;z-index:-1;animation:story-glow 3s ease-in-out infinite}
@keyframes story-glow{50%{opacity:.2}}
.life-story.is-seen .life-story-ring{background:var(--hair,rgba(127,127,127,.35))}
.life-story-ring>span{display:flex;align-items:baseline;justify-content:center;width:100%;height:100%;border-radius:50%;background:#050505;color:#fff;border:2px solid var(--bg,#000);padding-top:12px}
.life-story-ring b{font:900 1.5rem/1 var(--display,"Big Shoulders Display"),sans-serif}
.life-story-ring small{font:700 .6875rem var(--body);opacity:.6}
.life-story-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.life-story-txt b{font:700 1rem/1.2 var(--body)}
.life-story-txt small{font:500 .8125rem var(--body);color:var(--muted)}
.life-story:active{transform:scale(.985)}
@media (prefers-reduced-motion:reduce){.life-story-ring::before{animation:none}}

/* ---------- 1.24 · Awards (Apple Fitness-style medals) ---------- */
.medal-svg{display:block;width:100%;height:100%;overflow:visible}
.island-ico svg{width:100%;height:100%}
.island.is-tap{cursor:pointer;z-index:200}.island.is-tap.show{pointer-events:auto}
.aw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px;margin-top:6px}
.aw-cell{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent;animation:aw-in .6s cubic-bezier(.34,1.4,.64,1) calc(var(--k,0) * 45ms) both}
.aw-m{width:min(100%,108px);aspect-ratio:1;margin-bottom:6px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.28));transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.aw-cell:active .aw-m{transform:scale(.92)}
.aw-cell b{font:700 .875rem/1.2 var(--body)}
.aw-cell small{font:500 .75rem/1.3 var(--body);color:var(--muted);font-variant-numeric:tabular-nums}
.aw-cell.is-locked .aw-m{filter:grayscale(1) brightness(.62) contrast(.9);opacity:.55}
.aw-cell.is-locked b{color:var(--muted)}
.aw-prog{display:flex;flex-direction:column;align-items:center;gap:5px;width:78%}
.aw-prog i{display:block;width:100%;height:4px;border-radius:4px;background:var(--fill);position:relative;overflow:hidden}
.aw-prog i::after{content:"";position:absolute;inset:0;width:calc(var(--p) * 1%);border-radius:inherit;background:var(--signal,var(--accent))}
@keyframes aw-in{from{opacity:0;transform:translateY(14px) scale(.8)}}
.aw-row-sub{margin:-4px 0 8px;color:var(--muted);font-size:.875rem}
.aw-row{display:grid;grid-auto-flow:column;grid-auto-columns:96px;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 10px;margin:0 -2px;scrollbar-width:none}
.aw-row::-webkit-scrollbar{display:none}
.aw-row .aw-cell{scroll-snap-align:start}
.aw-row .aw-m{width:84px}
.aw-row .aw-prog{width:70%}
/* Viewer */
.aw-view{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:calc(env(safe-area-inset-top,0px) + 60px) 24px calc(env(safe-area-inset-bottom,0px) + 28px);
  background:radial-gradient(120% 70% at 50% 34%,#24262c 0%,#0b0b0d 60%,#050505 100%);color:#F2F0EA;opacity:0;transition:opacity .28s ease;touch-action:none}
.aw-view.is-in{opacity:1}.aw-view.is-leaving{opacity:0;transition-duration:.22s}
.aw-x{position:absolute;right:10px;top:calc(env(safe-area-inset-top,0px) + 12px);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer}
.aw-stage{position:relative;width:min(70vw,300px,42vh);aspect-ratio:1;perspective:900px;cursor:grab;flex:none}
.aw-stage:active{cursor:grabbing}
.aw-float{width:100%;height:100%;animation:aw-float 4.5s ease-in-out infinite}
@keyframes aw-float{50%{transform:translateY(-8px)}}
.aw-coin{position:relative;width:100%;height:100%;transform-style:preserve-3d;will-change:transform}
.aw-face{position:absolute;inset:0}
.aw-front{transform:translateZ(5px);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.aw-back{transform:rotateY(180deg) translateZ(5px);backface-visibility:hidden;-webkit-backface-visibility:hidden}
.aw-front .medal-sheen,.aw-back .medal-sheen{transform-box:view-box;transform-origin:60px 60px;transform:translateX(var(--sh,0px)) rotate(18deg)}
.aw-view.is-locked .aw-front svg,.aw-view.is-locked .aw-back svg,.aw-view.is-locked .aw-edge svg{filter:grayscale(1) brightness(.6)}
.aw-engrave{position:absolute;inset:22% 18%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;color:rgba(40,30,10,.78);text-shadow:0 1px 0 rgba(255,255,255,.55)}
.aw-engrave span{font:800 clamp(8px,2.3vw,11px)/1.2 var(--body);letter-spacing:.08em;text-transform:uppercase}
.aw-engrave b{font:900 clamp(20px,6.4vw,30px)/.95 var(--display);text-transform:uppercase;margin:4px 0}
.aw-shadow{position:absolute;left:18%;right:18%;bottom:-8%;height:8%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent);filter:blur(6px);animation:aw-shadow 4.5s ease-in-out infinite}
@keyframes aw-shadow{50%{transform:scale(.86);opacity:.7}}
.aw-info{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;max-width:340px;margin-top:22px;animation:st-rise .7s cubic-bezier(.2,.9,.2,1) .5s both}
.aw-info h2{margin:0;font:900 clamp(34px,10vw,46px)/.95 var(--display);text-transform:uppercase;letter-spacing:.01em}
.aw-info p{margin:0;font:500 1rem/1.4 var(--body);color:rgba(242,240,234,.78)}
.aw-info .aw-when{font-weight:700;color:#fff}
.aw-info .aw-hint{font-size:.8125rem;color:rgba(242,240,234,.45);margin-top:4px}
.aw-bar{width:200px;height:6px;border-radius:6px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:6px}
.aw-bar i{display:block;height:100%;width:calc(var(--p) * 1%);border-radius:inherit;background:linear-gradient(90deg,#fff,#30D158)}
.aw-acts{display:flex;gap:10px;margin-top:12px}
.aw-btn{min-height:48px;padding:0 26px;border:0;border-radius:999px;font:700 1rem var(--body);background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.aw-btn-main{background:#fff;color:#050505}
.aw-btn:disabled{opacity:.6}
.aw-x:focus-visible,.aw-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.aw-cell,.aw-float,.aw-shadow,.aw-info{animation:none}}

/* ---------- 1.25 · Spotlight, award nudges, recap medals ---------- */
.spot{position:fixed;inset:0;z-index:9500;display:flex;justify-content:center;align-items:flex-start;padding:calc(env(safe-area-inset-top,0px) + 10px) 10px 0;
  background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);opacity:0;transition:opacity .22s ease}
.spot.is-in{opacity:1}.spot.is-leaving{opacity:0;transition-duration:.18s}
.spot-panel{width:min(100%,620px);max-height:min(76vh,640px);display:flex;flex-direction:column;border-radius:24px;overflow:hidden;
  background:color-mix(in srgb,var(--surface,var(--bg)) 92%,transparent);box-shadow:0 30px 80px rgba(0,0,0,.35),0 0 0 1px var(--hair);transform:translateY(-14px) scale(.98);transition:transform .32s cubic-bezier(.2,.9,.2,1)}
.spot.is-in .spot-panel{transform:none}
.spot-bar{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 16px;border-bottom:1px solid var(--hair)}
.spot-ic{flex:none;color:var(--muted)}
.spot-in{flex:1;min-width:0;height:40px;border:0;background:transparent;color:var(--ink);font:500 1.125rem var(--body);outline:none}
.spot-in::-webkit-search-cancel-button{-webkit-appearance:none}
.spot-cancel{flex:none;border:0;background:transparent;color:var(--signal,var(--accent));font:600 1rem var(--body);padding:8px 10px;cursor:pointer;border-radius:10px}
.spot-cancel:focus-visible{outline:2px solid var(--signal,var(--accent))}
.spot-list{overflow-y:auto;overscroll-behavior:contain;padding:6px 8px 12px}
.spot-group h3,.spot-group .spot-gt{margin:12px 10px 6px;font:700 .75rem var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.spot-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:14px;cursor:pointer;min-height:52px}
.spot-item.is-on{background:var(--fill)}
.spot-tile{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;background:var(--tone)}
.spot-tile svg{width:19px;height:19px}
.spot-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.spot-txt b{font:600 .9375rem/1.25 var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spot-txt small{font:500 .8125rem/1.25 var(--body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spot-txt mark{background:transparent;color:var(--signal,var(--accent));font-weight:800}
.spot-item em{font-style:normal;font:600 .75rem var(--body);color:var(--muted)}
.spot-empty{margin:28px 0;text-align:center;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.spot,.spot-panel{transition:none}}
/* "Next award" nudge (workout summary). */
.aw-nudge{display:flex;align-items:center;gap:12px;width:100%;margin:6px 0;padding:10px 12px;border:0;border-radius:18px;background:var(--fill);color:inherit;font:inherit;text-align:left;cursor:pointer}
.aw-nudge-m{flex:none;width:46px;height:46px;filter:grayscale(.85) brightness(.85)}
.aw-nudge-t{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.aw-nudge-t small{font:600 .75rem var(--body);color:var(--muted)}
.aw-nudge-t b{font:700 .9375rem var(--body)}
.aw-nudge-t i{display:block;height:5px;border-radius:5px;background:var(--hair);position:relative;overflow:hidden}
.aw-nudge-t i::after{content:"";position:absolute;inset:0;width:calc(var(--p) * 1%);border-radius:inherit;background:var(--signal,var(--accent))}
.aw-nudge>svg{flex:none;color:var(--muted)}
/* Recap: medals earned that week. */
.st-medals{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 10px;width:100%;margin-top:12px}
.st-medals span{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.st-medals svg{width:min(26vw,96px);height:auto;filter:drop-shadow(0 10px 18px rgba(0,0,0,.4))}
.st-medals b{font:700 .8125rem/1.2 var(--body)}
.st-slide.is-on .st-medals span{animation:st-pop2 .7s cubic-bezier(.34,1.56,.64,1) calc(.3s + var(--n) * 120ms) both}
@keyframes st-pop2{from{opacity:0;transform:scale(.4) rotate(-20deg)}}
@media (prefers-reduced-motion:reduce){.st-slide.is-on .st-medals span{animation:none}}

/* ---------- 1.26 · Agenda rows as one continuous card (Reminders-style) ---------- */
.i-txt{overflow-wrap:break-word;word-break:normal;-webkit-hyphens:auto;hyphens:auto}
.list > li.arow{gap:0}
.list > li.arow > .item{border-radius:18px 0 0 18px;border-right:0;min-height:58px;padding:10px 6px 10px 14px;gap:12px}
.list > li.arow > .item:only-child{border-radius:18px;border-right:1px solid var(--line)}
.list > li.arow > .mini-btn{width:40px;border-radius:0;border:1px solid var(--line);border-left:0;border-right:0;background:var(--surface);color:var(--muted)}
.list > li.arow > .mini-btn:last-child{width:46px;border-radius:0 18px 18px 0;border-right:1px solid var(--line);padding-right:6px}
.list > li.arow > .mini-btn.on{color:#FF9F0A}
.list > li.arow > .mini-btn.on svg{fill:currentColor}
.list > li.arow:has(> .item[aria-pressed="true"]) > .mini-btn{background:var(--surface2);border-color:transparent}
.list > li.arow:has(> .item[aria-pressed="true"]) > .item{border-color:transparent}
.arow .i-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.arow .i-time{display:block;min-width:0;font:700 .75rem/1.1 var(--body);letter-spacing:.02em;color:var(--signal)}
.arow .item[aria-pressed="true"] .i-time{color:var(--muted)}
/* Semana: drag to reschedule */
.life-event{touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.life-event.is-lifted{opacity:.3;transform:scale(.97)}
.life-ghost{position:fixed;z-index:9000;pointer-events:none;margin:0;box-shadow:0 22px 50px rgba(0,0,0,.35),0 0 0 2px var(--signal,var(--accent));border-radius:16px;transition:none;will-change:transform}
.life-week-grid.is-dragging .life-day{transition:background .2s,box-shadow .2s,transform .2s}
.life-day.is-drop{box-shadow:0 0 0 2px var(--signal,var(--accent)) inset;background:color-mix(in srgb,var(--signal,var(--accent)) 12%,var(--surface));transform:scale(1.01)}
.life-drag-hint{text-align:center;margin-top:10px}
@media (pointer:fine){.life-drag-hint{display:none}}
/* Progreso tiles are links to where each number lives. */
.life-metrics-3 a.life-metric{display:flex;flex-direction:column;justify-content:space-between;gap:4px;padding:14px 12px;border-radius:var(--r-card,18px);background:var(--surface);color:inherit;text-decoration:none;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.life-metrics-3 a.life-metric:active{transform:scale(.96)}
.life-metrics-3 a.life-metric span{color:var(--muted)}
.life-metrics-3 a.life-metric.is-zero b{color:var(--muted);font-weight:500}
.life-metrics-3 a.life-metric:focus-visible{outline:2px solid var(--signal,var(--accent));outline-offset:2px}
.life-plan-ico{flex:none;width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--signal,var(--accent)) 18%,transparent);color:var(--signal)}
.life-plan-ico svg{width:26px;height:26px}

/* ---------- 1.27 · Immersive focus ---------- */
dialog.focus-zen{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#050507;color:#F2F0EA;inset:0}
dialog.focus-zen::backdrop{background:#000}
.zen{position:relative;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:calc(env(safe-area-inset-top,0px) + 64px) 24px calc(env(safe-area-inset-bottom,0px) + 28px);overflow:hidden;text-align:center;--zc:var(--signal,#8FB8FF)}
/* The glow is painted soft (radial gradients, no filter) and only transform/opacity animate: no re-blur every frame. */
.zen-aura{position:absolute;inset:-25%;opacity:.55;pointer-events:none}
.zen-aura i{position:absolute;width:84%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,var(--zc) 30%,transparent);left:8%;top:6%;animation:zen-breathe 8s ease-in-out infinite;will-change:transform,opacity}
.zen-aura i+i{background:radial-gradient(closest-side,#5E5CE6 30%,transparent);left:20%;top:32%;width:66%;animation-delay:-4s;opacity:.7}
@keyframes zen-breathe{0%,100%{transform:scale(.82);opacity:.45}50%{transform:scale(1.12);opacity:.85}}
.zen.is-paused .zen-aura i{animation-play-state:paused;opacity:.25}
.zen.zen-done{--zc:#30D158}
.zen>*:not(.zen-aura){position:relative;z-index:1}
.zen-top{position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 14px);left:18px;right:12px;display:flex;align-items:center;justify-content:space-between}
.zen-kicker{font:800 .75rem var(--body);letter-spacing:.16em;color:rgba(242,240,234,.65)}
.zen-min{width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;cursor:pointer}
.zen-ring{position:relative;width:min(78vw,340px,48dvh);aspect-ratio:1}
.zen-ring>svg{width:100%;height:100%;transform:rotate(-90deg)}
.zen-ring circle{fill:none;stroke-width:7;stroke:rgba(255,255,255,.1)}
.zen-ring circle+circle{stroke:var(--zc);stroke-linecap:round;stroke-dasharray:1000;transition:stroke-dashoffset 1s linear}
.zen-core{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.zen-time{margin:0;font:300 clamp(64px,20vw,96px)/1 var(--body);letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#fff}
.zen-sub{margin:0;font:600 .9375rem var(--body);color:rgba(242,240,234,.7)}
.zen-task{margin:0;max-width:30ch;font:600 1.125rem/1.35 var(--body);color:#fff}
.zen-breathe{font-weight:500;color:rgba(242,240,234,.72)}
.zen-sounds{justify-content:center}
.zen-sounds .tpl{background:rgba(255,255,255,.1);color:#fff;border-color:transparent}
.zen-sounds .tpl.on{background:#fff;color:#050507}
.zen-ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:6px;width:100%;max-width:380px}
.zen-main{flex:1;min-height:58px;border:0;border-radius:999px;background:#fff;color:#050507;font:700 1.125rem var(--body);cursor:pointer}
.zen-stop{min-height:58px;padding:0 20px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font:600 .9375rem var(--body);cursor:pointer}
.zen-main:active,.zen-stop:active{transform:scale(.97)}
.zen-main:focus-visible,.zen-stop:focus-visible,.zen-min:focus-visible{outline:2px solid #fff;outline-offset:3px}
.zen-awake{flex-basis:100%;font:500 .75rem var(--body);color:rgba(242,240,234,.45);min-height:1em}
.zen-check{width:84px;height:84px;border-radius:50%;background:#30D158;color:#050507;display:grid;place-items:center;animation:zen-pop .6s cubic-bezier(.34,1.56,.64,1) both}
.zen-check svg{width:44px;height:44px}
@keyframes zen-pop{from{transform:scale(.3);opacity:0}}
.zen.zen-done .aw-nudge{max-width:380px;background:rgba(255,255,255,.1);color:#fff}
.zen.zen-done .aw-nudge small{color:rgba(242,240,234,.65)}
@media (prefers-reduced-motion:reduce){.zen-aura i,.zen-check{animation:none}.zen-ring circle+circle{transition:none}}

/* ---------- 1.28 · Custom tab bar editor ---------- */
.tabbar a{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.tbe-preview{display:grid;gap:4px;padding:10px 6px;border-radius:20px;background:var(--fill);margin:4px 0 14px}
.tbe-preview span{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink);animation:tbe-in .35s cubic-bezier(.34,1.56,.64,1) both}
.tbe-preview svg{width:22px;height:22px}
.tbe-preview small{font:600 .625rem var(--body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@keyframes tbe-in{from{transform:scale(.7);opacity:0}}
.tbe-list{list-style:none;margin:0 0 14px;padding:0;border-radius:18px;background:var(--surface);overflow:hidden}
.tbe-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:4px 6px 4px 14px}
.tbe-row+.tbe-row{border-top:1px solid var(--hair)}
.tbe-ico{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--signal,var(--accent)) 16%,transparent);color:var(--signal)}
.tbe-ico svg{width:18px;height:18px}
.tbe-name{flex:1;min-width:0;font:600 .9375rem var(--body)}
.tbe-btn{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.tbe-btn svg{width:18px;height:18px}
.tbe-btn:disabled{opacity:.25;cursor:default}
.tbe-del{color:#FF3B30}.tbe-add{color:#34C759}
.tbe-btn:focus-visible{outline:2px solid var(--signal,var(--accent));outline-offset:1px}
.tbe-note{margin:8px 0 0;font-size:.8125rem;color:var(--muted);text-align:center}
@media (prefers-reduced-motion:reduce){.tbe-preview span{animation:none}}
.tbe-up svg{transform:rotate(180deg)}

/* ---------- 1.29 · Workout music (Spotify link) ---------- */
.mu-btn.is-set{color:#1DB954}
.mu-card,.mu-play{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:12px 14px;border:0;border-radius:var(--r-card,18px);background:var(--surface);color:inherit;text-align:left;font:inherit;text-decoration:none;cursor:pointer}
.mu-card>span:nth-child(2),.mu-play>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.mu-card b,.mu-play b{font:700 .9375rem var(--body)}
.mu-card small,.mu-play small{font:500 .8125rem var(--body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mu-card>svg,.mu-play>svg{flex:none;color:var(--muted)}
.mu-logo{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#1DB954;color:#04170b}
.mu-play{background:color-mix(in srgb,#1DB954 14%,var(--surface));margin:4px 0 6px}
.mu-card:active,.mu-play:active{transform:scale(.98)}
.mu-help,.mu-note{display:block;margin-top:6px;font-size:.8125rem;color:var(--muted)}
.mu-note{text-align:center}
.w-head{gap:6px}.w-head .icon-btn{width:40px;height:40px;flex:none}.w-head .btn-sm{padding-left:14px;padding-right:14px}

/* ---------- 1.30 · Per-set rest + routine creation ---------- */
.rs-head,.rs-row{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 68px 36px;gap:6px}
.rs-row .st{width:40px}
.rs-row .mini-btn{width:36px;height:36px}
.rs-row .rs-rest{height:44px;min-height:44px;padding:0 4px;text-align:center;text-align-last:center;font-size:.875rem;color:var(--muted);-webkit-appearance:none;appearance:none;background-image:none}
.rs-row .rs-rest.is-set{color:var(--ink);font-weight:700;border-color:var(--signal)}
.rnew{display:flex;flex-direction:column;gap:8px;margin:4px 0 14px}
.rnew-main{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border:0;border-radius:var(--r-card,20px);background:var(--accent);color:var(--on-accent);text-align:left;font:inherit;cursor:pointer;box-shadow:0 10px 26px color-mix(in srgb,var(--accent) 35%,transparent)}
.rnew-main>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.rnew-main b{font:800 1.125rem/1.15 var(--body);letter-spacing:-.01em}
.rnew-main small{font:500 .8125rem/1.3 var(--body);opacity:.85}
.rnew-main>svg{flex:none}
.rnew-ico{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--on-accent) 14%,transparent)}
.rnew-ico svg{width:24px;height:24px}
.rnew-alt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rnew-alt button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border:0;border-radius:16px;background:var(--surface);color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:86px}
.rnew-alt button>span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--fill);color:var(--signal,var(--accent));margin-bottom:4px}
.rnew-alt button>span svg{width:17px;height:17px}
.rnew-alt b{font:700 .875rem var(--body)}
.rnew-alt small{font:500 .75rem var(--body);color:var(--muted)}
.rnew-main:active,.rnew-alt button:active{transform:scale(.97)}
.rnew-main:focus-visible,.rnew-alt button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
#tplSec.flash{animation:tpl-flash 1.2s ease}
@keyframes tpl-flash{0%,100%{background:transparent}30%{background:color-mix(in srgb,var(--signal,var(--accent)) 14%,transparent)}}
@media (prefers-reduced-motion:reduce){#tplSec.flash{animation:none}}
.mu-list{list-style:none;margin:0 0 10px;padding:0;border-radius:18px;background:var(--surface);overflow:hidden}
.mu-row{display:flex;align-items:center;gap:6px;padding:4px 6px 4px 4px}
.mu-row+.mu-row{border-top:1px solid var(--hair)}
.mu-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:8px;border-radius:14px;color:inherit;text-decoration:none}
.mu-open>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.mu-open b{font:700 .9375rem var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mu-open small{font:500 .75rem var(--body);color:#1DB954}
.mu-open:active{background:var(--fill)}
.mu-form{display:flex;flex-direction:column;gap:12px}
.link-box{min-height:88px;resize:none;font:500 .875rem/1.4 var(--body);word-break:break-all}

/* ---------- 1.31 · Mind game rankings ---------- */
.gr-entry{display:flex;align-items:center;gap:12px;padding:14px;border-radius:var(--r-card,20px);background:linear-gradient(135deg,color-mix(in srgb,#FFB340 22%,var(--surface)),var(--surface));color:inherit;text-decoration:none;margin:2px 0 6px}
.gr-entry>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.gr-entry b{font:800 1.0625rem var(--body)}
.gr-entry small{font:500 .8125rem/1.3 var(--body);color:var(--muted)}
.gr-entry>svg{flex:none;color:var(--muted)}
.gr-entry-ico,.gr-cta-ico{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#FFB340;color:#2b1d05}
.gr-entry-ico svg,.gr-cta-ico svg{width:24px;height:24px}
.gr-entry:active{transform:scale(.98)}
.gr-cta{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px;border-radius:var(--r-card,20px);background:var(--surface)}
.gr-cta h2{margin:0;font:800 1.375rem var(--body)}.gr-cta p{margin:0;color:var(--muted)}
.gr-games{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 6px;margin:0 -2px}
.gr-games::-webkit-scrollbar{display:none}
.gr-games .tpl{flex:none}
.gr-filters{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}

.gr-podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:8px;margin:6px 0 12px}
.gr-pod{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 6px 12px;border-radius:20px 20px 12px 12px;background:var(--surface);text-align:center;min-width:0}
.gr-pod.p1{padding-top:20px;background:linear-gradient(180deg,color-mix(in srgb,#FFD60A 30%,var(--surface)),var(--surface))}
.gr-pod.p2{background:linear-gradient(180deg,color-mix(in srgb,#C9CED6 34%,var(--surface)),var(--surface))}
.gr-pod.p3{background:linear-gradient(180deg,color-mix(in srgb,#C7834A 30%,var(--surface)),var(--surface))}
.gr-pod.me{box-shadow:0 0 0 2px var(--signal,var(--accent)) inset}
.gr-pod b{font:700 .8125rem var(--body);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gr-pod span{font:800 .9375rem var(--body);font-variant-numeric:tabular-nums}
.gr-pod i{position:absolute;top:-10px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:800 .75rem var(--body);font-style:normal;background:var(--ink);color:var(--bg)}
.gr-pod.p1 i{background:#FFD60A;color:#2b1d05}
.gr-val{margin-left:auto;font:800 .9375rem var(--body);font-variant-numeric:tabular-nums;white-space:nowrap}
.gr-me{margin:10px 0 0;font:700 .875rem var(--body);text-align:center}
.g-rank{margin:4px 0 0;text-align:center;min-height:22px}
.g-rank a{display:inline-flex;align-items:center;gap:6px;font:700 .9375rem var(--body);color:var(--signal,var(--accent));text-decoration:none}
.g-rank svg{width:18px;height:18px}
.g-rank .spin{width:16px;height:16px}
.gr-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:3px;border-radius:12px;background:var(--fill)}
.gr-seg button{min-height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:600 .875rem var(--body);white-space:nowrap;cursor:pointer}
.gr-seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.gr-filters .gr-seg:first-child{flex:3}.gr-filters .gr-seg:last-child{flex:2}

/* ---------- 1.32 · Duels ---------- */
.gr-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:2px 0 8px}
.gr-pair .gr-entry{position:relative;flex-direction:column;align-items:flex-start;gap:10px;margin:0;padding:14px}
.gr-pair .gr-entry b{font-size:1rem}
.duel-ico{background:#BF5AF2;color:#fff}
.gr-pair .gr-entry:first-child{background:linear-gradient(135deg,color-mix(in srgb,#BF5AF2 22%,var(--surface)),var(--surface))}
.duel-n{position:absolute;top:10px;right:10px;min-width:24px;height:24px;padding:0 7px;border-radius:12px;background:#FF3B30;color:#fff;font:800 .8125rem/24px var(--body);font-style:normal;text-align:center}
.duel-vs{display:flex;align-items:center;gap:12px;justify-content:center;margin-bottom:6px}
.duel-vs p{margin:0;display:flex;flex-direction:column;text-align:left}
.duel-vs small{font:800 .6875rem var(--body);letter-spacing:.14em;color:var(--muted)}
.duel-vs b{font:800 1.375rem var(--body)}
.duel-res{display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 16px;border-radius:var(--r-card,22px);background:var(--surface);text-align:center}
.duel-res.win{background:linear-gradient(180deg,color-mix(in srgb,#30D158 22%,var(--surface)),var(--surface))}
.duel-res.loss{background:linear-gradient(180deg,color-mix(in srgb,#FF453A 16%,var(--surface)),var(--surface))}
.duel-badge{font:900 1.875rem/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.duel-res.win .duel-badge{color:#30D158}
.duel-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;width:100%}
.duel-score>div{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.duel-score small{font:600 .8125rem var(--body);color:var(--muted);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-score b{font:900 2.125rem/1 var(--display);font-variant-numeric:tabular-nums}
.duel-score i{font:900 1rem var(--body);font-style:normal;color:var(--muted)}
.duel-game{margin:0;color:var(--muted);font-size:.875rem}
.duel-list{list-style:none;margin:0 0 12px;padding:0;border-radius:18px;background:var(--surface);overflow:hidden}
.duel-row{display:flex;align-items:center;gap:12px;padding:10px 12px}
.duel-row+.duel-row{border-top:1px solid var(--hair)}
.duel-row-b{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;color:inherit;text-decoration:none}
.duel-row-b b{font:700 .9375rem var(--body)}
.duel-row-b small{font:500 .8125rem var(--body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-pill{flex:none;padding:5px 10px;border-radius:999px;font:700 .75rem var(--body);background:var(--fill);color:var(--muted)}
.duel-pill.win{background:color-mix(in srgb,#30D158 22%,transparent);color:#30D158}
.duel-pill.loss{background:color-mix(in srgb,#FF453A 18%,transparent);color:#FF453A}
.duel-record{margin:12px 0 4px;text-align:center;color:var(--muted)}
.duel-record b{color:var(--ink)}
.duel-friends{display:grid;grid-auto-flow:column;grid-auto-columns:84px;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.duel-f{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border:0;border-radius:16px;background:var(--surface);color:inherit;font:inherit;cursor:pointer}
.duel-f span{font:600 .75rem var(--body);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.duel-f.on{box-shadow:0 0 0 2px var(--signal,var(--accent)) inset}
#duelList{margin-top:14px}

/* 1.35 · clearer daily priority + plan sheet */
.life-daily-kicker{margin:0 0 4px;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--signal)}
.life-daily h2{margin:0 0 6px}
.life-daily-sub{margin:0 0 14px;color:var(--muted);font-size:.9375rem;line-height:1.45}
.life-energy,.life-sheet fieldset{border:0;margin:0;padding:0;min-width:0}
.life-energy legend,.life-sheet fieldset>legend{padding:0;margin:0 0 8px;font-size:.8125rem;color:var(--muted);font-weight:500}
.life-sheet fieldset>legend{color:var(--ink);font-weight:600;font-size:.875rem}
.life-days.life-chips{grid-template-columns:repeat(var(--n,5),minmax(0,1fr))}
.life-days.life-chips span{font-size:1rem;font-weight:600;min-height:46px}
.life-energy-scale{display:flex;justify-content:space-between;margin:6px 2px 0;font-size:.75rem;color:var(--muted)}
.life-daily details summary span{display:flex;flex-direction:column;gap:2px}
.life-daily details summary small{font-weight:400;font-size:.8125rem;color:var(--muted)}
.life-daily details summary{cursor:pointer;justify-content:space-between;gap:12px;padding:6px 0;list-style:none}
.life-daily details summary::-webkit-details-marker,.life-adv summary::-webkit-details-marker{display:none}
.life-daily details summary::after,.life-adv summary::after{content:"";flex:none;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s;margin-right:4px}
.life-daily details[open] summary::after,.life-adv[open] summary::after{transform:rotate(225deg)}
.life-modes{display:grid;gap:10px}
.life-mode{position:relative;display:block;cursor:pointer}
.life-mode input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.life-mode span{display:grid;gap:4px;padding:14px 16px 14px 46px;border:1px solid var(--line);border-radius:16px;background:var(--surface);position:relative;transition:border-color .2s,background .2s}
.life-mode span::before{content:"";position:absolute;left:16px;top:16px;width:18px;height:18px;border-radius:50%;border:2px solid var(--line);box-sizing:border-box}
.life-mode b{font-size:1rem;color:var(--ink)}
.life-mode small{font-size:.875rem;line-height:1.4;color:var(--muted)}
.life-mode input:checked+span{border-color:var(--signal);background:color-mix(in srgb,var(--signal) 8%,var(--surface))}
.life-mode input:checked+span::before{border:6px solid var(--signal)}
.life-mode input:focus-visible+span{outline:2px solid var(--signal);outline-offset:2px}
.life-note-tight{margin:6px 0 0}
.life-adv summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-weight:600;cursor:pointer;list-style:none}
.life-adv[open]{display:grid;gap:10px}

/* 1.37 · Calma: guided breathing overlay (always dark, its own calm palette) */
.calm{position:fixed;inset:0;z-index:2147483000;color:#EEF3F7;background:#060A12;opacity:0;transition:opacity .45s ease;overflow-y:auto;overscroll-behavior:contain;-webkit-font-smoothing:antialiased;font-family:var(--f-body,inherit)}
.calm.is-in{opacity:1}.calm.is-leaving{opacity:0}
.calm-bg{position:fixed;inset:0;overflow:hidden;pointer-events:none}
.calm-bg i{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:calmDrift 26s ease-in-out infinite alternate}
.calm-bg i:nth-child(1){width:70vmax;height:70vmax;left:-25vmax;top:-20vmax;background:radial-gradient(circle,#1E4E6E,transparent 65%)}
.calm-bg i:nth-child(2){width:60vmax;height:60vmax;right:-25vmax;bottom:-20vmax;background:radial-gradient(circle,#2B2F6B,transparent 65%);animation-duration:32s}
.calm-bg i:nth-child(3){width:40vmax;height:40vmax;left:30%;top:40%;background:radial-gradient(circle,#155C5A,transparent 65%);animation-duration:22s;opacity:.35}
@keyframes calmDrift{to{transform:translate(6vmax,-5vmax) scale(1.12)}}
.calm.is-paused .calm-bg i{animation-play-state:paused}
.calm-body{position:relative;min-height:100%;max-width:560px;margin:0 auto;box-sizing:border-box;padding:calc(18px + env(safe-area-inset-top,0px)) 20px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:18px}
.calm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.calm-head h2{margin:2px 0 0;font-size:clamp(28px,8vw,38px);line-height:1.05;letter-spacing:-.03em;font-weight:700}
.calm-head-s{align-items:center}
.calm-kick{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8EC9D8}
.calm-x{flex:none;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(238,243,247,.1);color:#EEF3F7;cursor:pointer}
.calm-techs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.calm-tech{display:grid;gap:3px;justify-items:start;text-align:left;padding:14px;border-radius:18px;border:1px solid rgba(238,243,247,.12);background:rgba(238,243,247,.05);color:inherit;font:inherit;cursor:pointer;transition:background .2s,border-color .2s}
.calm-tech b{font-size:.9375rem;line-height:1.2}.calm-tech small{font-size:.7812rem;color:rgba(238,243,247,.62)}
.calm-ic{font-size:1.25rem;line-height:1;margin-bottom:4px;color:#8EC9D8}
.calm-tech.is-on{background:rgba(142,201,216,.16);border-color:rgba(142,201,216,.6)}
.calm-desc{margin:0;font-size:.9375rem;line-height:1.5;color:rgba(238,243,247,.78)}
.calm-row{display:grid;gap:8px}.calm-row>span{font-size:.8125rem;color:rgba(238,243,247,.6)}
.calm-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;border-radius:14px;background:rgba(238,243,247,.06)}
.calm-seg button,.calm-chips button{border:0;border-radius:10px;min-height:40px;background:transparent;color:inherit;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.calm-seg button[aria-pressed="true"]{background:#EEF3F7;color:#071019}
.calm-chips{display:flex;flex-wrap:wrap;gap:8px}
.calm-chips button{padding:0 14px;border-radius:999px;border:1px solid rgba(238,243,247,.16);min-height:38px}
.calm-chips button[aria-pressed="true"]{background:#EEF3F7;color:#071019;border-color:#EEF3F7}
.calm-check{display:flex;align-items:center;gap:10px;font-size:.9375rem}
.calm-check input{width:20px;height:20px;accent-color:#8EC9D8}
.calm-go{min-height:56px;border:0;border-radius:999px;background:#EEF3F7;color:#071019;font:inherit;font-size:1.0625rem;font-weight:700;cursor:pointer;padding:0 28px}
.calm-help{margin:0;font-size:.7812rem;line-height:1.5;color:rgba(238,243,247,.5)}.calm-help a{color:inherit}
.calm-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;min-height:52vh}
.calm-orb-wrap{position:relative;width:min(78vw,340px);aspect-ratio:1;display:grid;place-items:center}
.calm-orb-wrap.is-steps{width:min(52vw,220px)}
.calm-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.calm-ring circle{fill:none;stroke:rgba(238,243,247,.1);stroke-width:1.6}
.calm-ring .calm-ring-p{stroke:rgba(142,201,216,.85);stroke-linecap:round}
.calm-orb{width:84%;aspect-ratio:1;border-radius:50%;transform:scale(.62);will-change:transform;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.55),rgba(142,201,216,.45) 30%,rgba(54,120,160,.35) 62%,rgba(30,60,110,.15));box-shadow:0 0 80px rgba(142,201,216,.35),inset 0 0 40px rgba(255,255,255,.12);display:grid;place-items:center}
.calm-orb i{width:30%;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.22);filter:blur(8px)}
.calm-orb[data-ph="hold"],.calm-orb[data-ph="hold2"]{box-shadow:0 0 110px rgba(180,170,255,.4),inset 0 0 40px rgba(255,255,255,.14)}
.calm-phase{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:6px;pointer-events:none;text-shadow:0 2px 18px rgba(0,0,0,.4)}
.calm-phase b{font-size:clamp(20px,5.6vw,26px);font-weight:600;max-width:70vw}
.calm-phase span{font-size:2.75rem;font-weight:300;font-variant-numeric:tabular-nums;opacity:.85}
.calm-step{text-align:center;max-width:440px;min-height:120px}
.calm-step-n{margin:0 0 10px;font-size:.8125rem;letter-spacing:.14em;color:#8EC9D8}
.calm-step-t{margin:0;font-size:clamp(21px,5.6vw,26px);line-height:1.35;font-weight:500}
.calm-step-t.is-in{animation:calmIn .9s ease both}
@keyframes calmIn{from{opacity:0;transform:translateY(10px)}}
.calm-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.calm-left{font-variant-numeric:tabular-nums;font-size:.9375rem;color:rgba(238,243,247,.65)}
.calm-ctrl{display:flex;gap:8px;flex-wrap:wrap}
.calm-btn{min-height:46px;padding:0 18px;border-radius:999px;border:1px solid rgba(238,243,247,.2);background:rgba(238,243,247,.06);color:inherit;font:inherit;font-size:.9375rem;font-weight:600;cursor:pointer}
.calm-done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px}
.calm-done .calm-orb{width:min(46vw,200px);transform:scale(1);animation:calmPulse 6s ease-in-out infinite}
@keyframes calmPulse{50%{transform:scale(.86)}}
.calm-done h2{margin:10px 0 0;font-size:2.125rem;letter-spacing:-.03em}
.calm-done p{margin:0;font-size:1rem;color:rgba(238,243,247,.75);max-width:360px;line-height:1.5}
.calm-feel{display:flex;gap:8px}.calm-feel button{min-height:46px;padding:0 20px;border-radius:999px;border:1px solid rgba(238,243,247,.22);background:rgba(238,243,247,.07);color:inherit;font:inherit;font-weight:600;cursor:pointer}
.calm-msg{margin-top:4px}
.calm :focus-visible{outline:2px solid #8EC9D8;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.calm,.calm-bg i,.calm-done .calm-orb,.calm-step-t.is-in{animation:none;transition:none}}
.calm-entry{color:var(--signal)}
.life-calm-tip{display:none;justify-self:start;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid color-mix(in srgb,var(--signal) 40%,transparent);background:color-mix(in srgb,var(--signal) 8%,transparent);color:var(--ink);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.life-energy:has(input[value="1"]:checked,input[value="2"]:checked)+.life-calm-tip{display:inline-flex}
.calm-body>.calm-go{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 10px 40px rgba(0,0,0,.45)}
.calm-vol{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;font-size:.8125rem;color:rgba(238,243,247,.6)}
.calm-vol input{width:100%;accent-color:#8EC9D8}
.calm-try{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(238,243,247,.2);background:transparent;color:#EEF3F7;font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer}
.calm-try[aria-pressed="true"]{background:rgba(142,201,216,.18);border-color:rgba(142,201,216,.6)}
.calm-row>span b{color:#EEF3F7;font-weight:600}
.calm-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:0 20px 2px;-webkit-overflow-scrolling:touch}
.calm-tabs::-webkit-scrollbar{display:none}
.calm-tabs button{flex:none;min-height:36px;padding:0 14px;border-radius:999px;border:0;background:rgba(238,243,247,.07);color:rgba(238,243,247,.75);font:inherit;font-size:.8438rem;font-weight:600;cursor:pointer;white-space:nowrap}
.calm-tabs button[aria-selected="true"]{background:rgba(142,201,216,.22);color:#EEF3F7;box-shadow:inset 0 0 0 1px rgba(142,201,216,.6)}
.calm-chips button i{font-style:normal;color:#F5D06F;margin-right:5px;font-size:.75rem}
.calm-chips button[aria-pressed="true"] i{color:#B8860B}
.calm-empty{margin:4px 0;font-size:.875rem;color:rgba(238,243,247,.6)}
.calm-vol{grid-template-columns:auto 1fr auto auto}
.calm-fav{font-size:1.0625rem;width:40px;padding:0;color:#F5D06F}

/* 1.41 · Running */
.run-page .sec-title{margin:0}
.run-recover{display:grid;gap:10px;padding:14px 16px;border-radius:18px;border:1px solid color-mix(in srgb,#FF9F0A 50%,transparent);background:color-mix(in srgb,#FF9F0A 10%,var(--surface))}
.run-recover p{margin:0}
.run-hero{display:grid;gap:14px;padding:20px;border-radius:24px;background:radial-gradient(120% 120% at 100% 0%,rgba(255,159,10,.18),transparent 55%),var(--surface);border:1px solid var(--line)}
.run-hero-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-end}
.run-eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.14em;color:#FF9F0A;margin:0}
.run-big{margin:4px 0 0;font:900 3.25rem/1 var(--display);letter-spacing:-.02em}
.run-big small{font-size:1.125rem;font-weight:600;color:var(--muted)}
.run-sub2{margin:4px 0 0;font-size:.875rem;color:var(--muted)}
.run-bars{display:flex;align-items:flex-end;gap:5px;height:56px;flex:none}
.run-bars i{width:10px;height:var(--h);border-radius:4px;background:color-mix(in srgb,var(--ink) 18%,transparent)}
.run-bars i.on{background:#FF9F0A}
.run-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.run-mode{display:grid;gap:2px;text-align:left;padding:12px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer}
.run-mode b{font-size:.9375rem}.run-mode small{font-size:.75rem;color:var(--muted);line-height:1.3}
.run-mode.is-on{border-color:#FF9F0A;box-shadow:inset 0 0 0 1px #FF9F0A}
.run-goal{display:flex;gap:8px;flex-wrap:wrap}
.run-goal button{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.run-goal button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.run-plan{display:grid;gap:8px}.run-plan p{margin:0;font-size:.875rem;color:var(--muted)}.run-plan b{color:var(--ink)}
.run-plan-weeks{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.run-plan-weeks span{display:flex;gap:2px}
.run-plan-weeks i{flex:1;height:8px;border-radius:3px;background:color-mix(in srgb,var(--ink) 12%,transparent)}
.run-plan-weeks i.done{background:#FF9F0A}.run-plan-weeks i.next{background:color-mix(in srgb,#FF9F0A 40%,transparent);outline:1px solid #FF9F0A}
.run-start{min-height:58px;font-size:1.0625rem;justify-content:center;gap:10px}
.run-opt{display:flex;gap:10px;align-items:flex-start;font-size:.8125rem;color:var(--muted);line-height:1.4}
.run-opt input{margin-top:2px}
.run-recs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.run-recs div{padding:12px;border-radius:16px;background:var(--surface);border:1px solid var(--line);display:grid;gap:4px;min-width:0}
.run-recs span{font-size:.7188rem;color:var(--muted)}.run-recs b{font-size:1.125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){.run-recs{grid-template-columns:repeat(2,1fr)}.run-big{font-size:2.75rem}}
.run-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.run-list{display:grid;gap:8px}
.run-item{display:flex;gap:14px;align-items:center;padding:10px;border-radius:18px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.run-thumb{width:56px;height:56px;flex:none;border-radius:12px;background:var(--fill)}
.run-thumb polyline,.run-route polyline{fill:none;stroke:#FF9F0A;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.run-thumb circle,.run-route circle{vector-effect:non-scaling-stroke}
.run-a{fill:#34C759}.run-b{fill:#FF3B30}
.run-thumb-empty{display:grid;place-items:center;color:#FF9F0A}
.run-item-t{display:grid;gap:2px;min-width:0}.run-item-t b{font-size:1.0625rem}.run-item-t small{font-size:.7812rem;color:var(--muted)}
.run-empty,.run-note{font-size:.8125rem;color:var(--muted);line-height:1.5}
/* live */
.run-live{position:fixed;inset:0;z-index:2147483000;background:#0B0B0C;color:#F6F4EF;display:flex;flex-direction:column;padding:calc(14px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));gap:14px;opacity:0;transition:opacity .3s;overflow-y:auto}
.run-live.is-in{opacity:1}.run-live.is-leaving{opacity:0}
.run-live-h{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.8125rem}
.run-gps{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08)}
.run-gps.is-ok{background:rgba(52,199,89,.18);color:#7CE3A1}.run-gps.is-bad{background:rgba(255,159,10,.18);color:#FFC46B}
.run-live-mode{color:rgba(246,244,239,.6);text-align:right}
.run-seg{display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:16px;border-radius:20px;background:rgba(255,159,10,.16)}
.run-live.is-walk .run-seg{background:rgba(100,180,255,.14)}
.run-seg b{font-size:1.875rem;letter-spacing:-.02em}.run-seg span{font-size:1.875rem;font-variant-numeric:tabular-nums}
.run-seg-bar{grid-column:1/-1;height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}.run-seg-bar i{display:block;height:100%;background:#FF9F0A}
.run-live.is-walk .run-seg-bar i{background:#64B4FF}
.run-seg small{grid-column:1/-1;font-size:.7812rem;color:rgba(246,244,239,.6)}
.run-main{flex:1;display:flex;flex-direction:column;gap:16px}
.run-dist{margin:0;text-align:center}.run-dist b{display:block;font:900 clamp(84px,26vw,128px)/.9 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.03em}.run-dist small{font-size:1.125rem;color:rgba(246,244,239,.6)}
.run-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}
.run-row b{display:block;font-size:1.625rem;font-variant-numeric:tabular-nums}.run-row span{font-size:.75rem;color:rgba(246,244,239,.55)}
.run-goalbar{position:relative;height:30px;border-radius:15px;background:rgba(255,255,255,.08);overflow:hidden}
.run-goalbar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#FF9F0A,#FFD25C)}
.run-goalbar span{position:relative;display:block;text-align:center;line-height:30px;font-size:.8125rem;font-weight:600}
.run-live-map{height:150px;display:grid;place-items:center}.run-live-map svg{height:100%;width:auto;max-width:100%}
.run-splits{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.run-splits li{display:flex;justify-content:space-between;font-size:.875rem;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.05)}
.run-live-f{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.run-btn{min-height:60px;border-radius:20px;border:0;background:rgba(255,255,255,.1);color:inherit;font:inherit;font-size:1.125rem;font-weight:700;cursor:pointer}
.run-btn-end{background:#FF9F0A;color:#111}
.run-live.is-paused .run-dist b{opacity:.45}
/* summary / sheets */
.run-dlg{max-width:560px;width:calc(100% - 24px)}
.run-sheet{position:relative;gap:14px}
.run-x{position:absolute;right:14px;top:14px}
.run-sheet .run-sum-km{margin:0;font:900 3.5rem/1 var(--display)}.run-sum-km small{font-size:1.125rem;color:var(--muted)}
.run-row-s b{font-size:1.375rem}.run-row-s span{color:var(--muted)}
.run-sum-map{height:180px;border-radius:18px;background:var(--fill);display:grid;place-items:center;padding:10px}.run-sum-map svg{height:100%;width:auto;max-width:100%}
.run-splits-s li{display:grid;grid-template-columns:52px 1fr 54px;align-items:center;gap:10px;background:var(--fill)}
.run-splits-s i{height:8px;border-radius:4px;background:color-mix(in srgb,#FF9F0A 55%,transparent);width:var(--w)}
.run-splits-s li.best i{background:#FF9F0A}.run-splits-s b{text-align:right}
.run-actions{display:grid;gap:8px}
/* reading sound */
.lib-snd-btn.is-on{color:var(--signal)}
.rs-chips{display:flex;flex-wrap:wrap;gap:8px}
.rs-chip{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}
.rs-chip[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.rs-vol{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;font-size:.8125rem;color:var(--muted)}
.read-snd-dlg{max-width:520px;width:calc(100% - 24px)}
@media (max-width:360px){.run-mode{padding:10px 8px}.run-mode b{font-size:.875rem}.run-hero{padding:16px}}
.run-list-head{flex-wrap:wrap}.run-list-head .sec-title{font-size:1.375rem}

/* 1.42 · Running coach */
.run-modes{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:520px){.run-modes{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rc-intro,.rc-plan{display:grid;gap:12px}
.rc-intro h2,.rc-head h2{margin:2px 0 0;font-size:1.375rem;letter-spacing:-.02em;line-height:1.15}
.rc-intro p,.rc-head p{margin:0;color:var(--muted);font-size:.875rem;line-height:1.5}
.rc-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.rc-prog{height:6px;border-radius:3px;background:var(--fill);overflow:hidden}.rc-prog i{display:block;height:100%;background:#FF9F0A}
.rc-meta{margin:-4px 0 0;font-size:.7812rem;color:var(--muted)}
.rc-note{display:grid;gap:8px;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:var(--bg)}
.rc-note p{margin:0;font-size:.875rem;line-height:1.45}
.rc-note.rc-up{border-color:color-mix(in srgb,#34C759 45%,transparent);background:color-mix(in srgb,#34C759 8%,var(--bg))}
.rc-note.rc-warn{border-color:color-mix(in srgb,#FF9F0A 50%,transparent);background:color-mix(in srgb,#FF9F0A 8%,var(--bg))}
.rc-note .btn{justify-self:start}
.rc-week-h{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:center}
.rc-week-h div{display:grid}.rc-week-h small{font-size:.7812rem;color:var(--muted)}
.rc-focus{margin:0;font-size:.8438rem;color:var(--muted);line-height:1.5}
.rc-plan .rc-days{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.rc-day{display:grid;grid-template-columns:62px 24px 1fr auto;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer;min-height:52px}
.rc-day svg{width:16px;height:16px;color:var(--muted)}
.rc-rest{grid-template-columns:62px 1fr;cursor:default;opacity:.65;min-height:40px}
.rc-dn{font-size:.7812rem;color:var(--muted);text-transform:capitalize}
.rc-ic{font-size:1rem;text-align:center;color:#FF9F0A}
.rc-t{display:grid;gap:1px;min-width:0}.rc-t b{font-size:.9062rem}.rc-t small{font-size:.75rem;color:var(--muted)}
.rc-day.is-today{border-color:#FF9F0A;box-shadow:inset 0 0 0 1px #FF9F0A}
.rc-day.is-done{background:color-mix(in srgb,#34C759 8%,var(--bg))}.rc-day.is-done .rc-ic{color:#34C759}
.rc-day.is-missed,.rc-day.is-skip{opacity:.6}
.rc-race{border-color:color-mix(in srgb,#FFD25C 60%,transparent);background:color-mix(in srgb,#FFD25C 10%,var(--bg))}
.rc-actions{display:flex;flex-wrap:wrap;gap:8px}
.rc-paces summary{cursor:pointer;font-weight:600;min-height:40px;display:flex;align-items:center}
.rc-paces ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rc-paces li{display:flex;justify-content:space-between;padding:8px 10px;border-radius:10px;background:var(--fill);font-size:.875rem}
.rc-levels{display:grid;gap:6px}
.rc-levels label{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid var(--line);font-size:.875rem;cursor:pointer}
.rc-est{margin:0;font-size:.875rem}
.rc-dpick{margin-bottom:-4px}
.rc-segs{list-style:none;margin:0;padding:0;display:grid;gap:4px;max-height:40vh;overflow:auto}
.rc-seg{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:var(--fill);font-size:.8438rem}
.rc-seg b{white-space:nowrap;font-variant-numeric:tabular-nums}
.rc-seg-fast,.rc-seg-tempo,.rc-seg-race,.rc-seg-stride{background:color-mix(in srgb,#FF9F0A 16%,var(--fill))}
.rc-rpe{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.rc-rpe button{display:grid;gap:2px;justify-items:center;padding:12px 4px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer}
.rc-rpe b{font-size:1.375rem}.rc-rpe small{font-size:.6875rem;color:var(--muted);text-align:center}
/* 1.43 · coach & running extras */
.run-guide{margin:-6px auto 0;padding:8px 14px;border-radius:999px;font-size:.9375rem;font-weight:700;text-align:center;width:max-content;max-width:100%}
.run-guide.is-ok{background:rgba(52,199,89,.2);color:#7CE3A1}.run-guide.is-slow{background:rgba(255,159,10,.22);color:#FFC46B}.run-guide.is-fast{background:rgba(100,180,255,.2);color:#9CCBFF}
.rc-pred{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rc-pred div{display:grid;gap:2px;padding:12px;border-radius:16px;background:var(--bg);border:1px solid var(--line)}
.rc-pred span{font-size:.7188rem;color:var(--muted)}.rc-pred b{font-size:1.5rem;font-variant-numeric:tabular-nums}.rc-pred small{font-size:.75rem;color:var(--muted)}
.rc-tl{display:flex;align-items:flex-end;gap:3px;height:64px;padding-top:4px}
.rc-tl-w{flex:1;height:100%;display:flex;align-items:flex-end;padding:0;border:0;background:transparent;cursor:pointer;min-width:0}
.rc-tl-w i{display:block;width:100%;height:var(--h);border-radius:4px 4px 2px 2px;background:var(--c,#888);opacity:.55;transition:opacity .2s}
.rc-tl-w.is-view i{opacity:1;box-shadow:0 0 0 2px var(--ink)}.rc-tl-w.is-now i{opacity:1}
.rc-ph-base{--c:#64B4FF}.rc-ph-build{--c:#FF9F0A}.rc-ph-peak{--c:#FF5E3A}.rc-ph-cut{--c:#8E8E93}.rc-ph-taper{--c:#34C759}.rc-ph-race{--c:#FFD25C}
.rc-tl-leg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.7188rem;color:var(--muted)}
.rc-tl-leg span{display:flex;align-items:center;gap:5px}.rc-tl-leg i{width:8px;height:8px;border-radius:2px;background:var(--c)}
.rc-strength .rc-ic svg{width:16px;height:16px;color:#AF52DE}
.rc-strength{border-style:dashed}
.rc-zone{padding:10px 12px;border-radius:12px;background:var(--fill);font-size:.8438rem;line-height:1.45}
.rc-drills summary{cursor:pointer;font-weight:600;min-height:40px;display:flex;align-items:center}
.rc-drills ul{margin:0;padding-left:18px;display:grid;gap:6px;font-size:.875rem}
.rc-drills li label{display:flex;gap:8px;align-items:flex-start}
.rc-drills ul:has(label){list-style:none;padding-left:0}
.rc-seg-rep span b{color:#FF9F0A}
.rc-tools{display:flex;flex-wrap:wrap;gap:8px}
.run-tag{display:inline-block;font-style:normal;font-size:.6875rem;font-weight:700;padding:2px 7px;border-radius:999px;background:color-mix(in srgb,#FF9F0A 18%,transparent);color:#FF9F0A;vertical-align:middle}
.run-tag-warn{background:color-mix(in srgb,#FF3B30 18%,transparent);color:#FF6B60}
.rc-shoes{display:grid;gap:8px}
.rc-shoe{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;border-radius:14px;border:1px solid var(--line)}
.rc-shoe>div:first-child{display:grid;gap:4px;flex:1;min-width:0}.rc-shoe small{font-size:.75rem;color:var(--muted)}
.rc-shoe-bar{height:6px;border-radius:3px;background:var(--fill);overflow:hidden}.rc-shoe-bar i{display:block;height:100%;background:#34C759}.rc-shoe-bar i.warn{background:#FF9F0A}
.rc-shoe.is-retired{opacity:.55}.rc-shoe-a{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.rc-calc-p{margin:6px 0;font-size:1rem}.rc-calc-p b{font-size:1.75rem}
.rc-paces-l{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rc-paces-l li{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:8px 10px;border-radius:10px;background:var(--fill);font-size:.875rem}
.rc-paces-l small{color:var(--muted)}
.rc-finished h2{margin:2px 0;font-size:1.75rem}
.run-recs{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:420px){.run-recs{grid-template-columns:repeat(2,1fr)}}
.life-run-today{text-decoration:none;color:inherit;border-color:color-mix(in srgb,#FF9F0A 45%,var(--line))}
.life-run-today .life-plan-ico{color:#FF9F0A}
.rc-day .rc-t b,.rc-day .rc-t small{white-space:normal;overflow-wrap:anywhere}
/* 1.44 · health check & safety */
.health-dlg{max-width:560px;width:calc(100% - 24px)}
.health-sheet{gap:14px}
.health-q{margin:0;padding:0;list-style:none;display:grid;gap:12px;counter-reset:hq}
.health-q li{display:grid;gap:8px;padding:12px;border-radius:14px;background:var(--fill)}
.health-q li p{margin:0;font-size:.9062rem;line-height:1.4}
.health-q li p::before{counter-increment:hq;content:counter(hq) ". ";font-weight:700;color:var(--muted)}
.health-tips{margin:0;padding-left:18px;display:grid;gap:8px;font-size:.9062rem;line-height:1.45}
.health-clear{display:flex;gap:10px;align-items:flex-start;font-size:.875rem;line-height:1.4;padding:12px;border-radius:12px;border:1px solid var(--line)}
.health-clear input{margin-top:2px;flex:none}
.safety-k{color:#FF453A}
.btn-danger{background:#FF3B30;color:#fff;border:0;justify-content:center;min-height:52px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:8px;border-radius:999px}
.run-sos{min-height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,69,58,.5);background:rgba(255,69,58,.12);color:#FF6961;font:inherit;font-size:.8125rem;font-weight:700;cursor:pointer}
.run-live-h{flex-wrap:wrap}
.w-sos{color:var(--danger);font-weight:900;font-size:1.125rem}
.run-safety{margin-top:4px}
.health-sheet .btn:disabled{opacity:.4;cursor:not-allowed}

/* ===== Running · acabado premium (1.45) ===== */
:root{--run:#FF9F0A}
.run-hero{gap:16px;padding:22px 20px 18px;border-radius:28px;background:radial-gradient(130% 90% at 100% 0%,color-mix(in srgb,var(--run) 22%,transparent),transparent 60%),linear-gradient(180deg,color-mix(in srgb,var(--ink) 3%,var(--surface)),var(--surface));box-shadow:0 1px 0 color-mix(in srgb,var(--ink) 6%,transparent) inset,0 18px 40px -28px rgba(0,0,0,.6)}
.run-eyebrow{color:var(--run-ink);text-transform:uppercase}
.run-big{font-variant-numeric:tabular-nums}
.run-bars{gap:4px;height:52px}.run-bars i{width:8px;border-radius:3px;min-height:3px}
.run-mode{min-height:64px;align-content:center;padding:12px 14px;border-radius:18px;background:color-mix(in srgb,var(--bg) 70%,transparent);transition:border-color .2s,background .2s,transform .12s}
.run-mode:active{transform:scale(.98)}
.run-mode.is-on{background:color-mix(in srgb,var(--run) 10%,var(--bg));box-shadow:inset 0 0 0 1px var(--run);border-color:var(--run-ink)}
.run-mode.is-on b{color:var(--run-ink)}
.run-goal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.run-goal button{min-height:44px;padding:0 8px;white-space:nowrap}
.run-goal button[aria-pressed="true"]{background:var(--run);border-color:var(--run-ink);color:#111}
.run-start{border-radius:18px;font-weight:800}
.run-start svg{width:22px;height:22px;flex:none}
.run-start-t{display:grid;text-align:left;line-height:1.15;min-width:0}.run-start-t b{font-size:1.0312rem}.run-start-t small{font-size:.7812rem;font-weight:600;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run-switch{align-items:center;cursor:pointer;padding:2px 0}
.run-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.run-sw{flex:none;width:44px;height:26px;border-radius:999px;background:color-mix(in srgb,var(--ink) 16%,transparent);position:relative;transition:background .2s}
.run-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.run-switch input:checked+.run-sw{background:var(--run)}.run-switch input:checked+.run-sw::after{transform:translateX(18px)}
.run-switch input:focus-visible+.run-sw{outline:2px solid var(--ink);outline-offset:2px}
.run-card{display:grid;gap:14px;padding:18px;border-radius:24px;background:var(--surface);border:1px solid var(--line)}
.run-card-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.run-card-h .sec-title{font-size:1.25rem}.run-card-k{font-size:.7812rem;color:var(--muted)}
.run-pr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.run-pr div{display:grid;gap:2px;padding:12px 10px;border-radius:16px;background:var(--bg);border:1px solid var(--line);min-width:0}
.run-pr span{font-size:.6875rem;font-weight:800;letter-spacing:.08em;color:var(--run-ink)}
.run-pr b{font-size:1.1875rem;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run-pr small{font-size:.7188rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run-pr .is-empty b{color:var(--muted);font-weight:600}.run-pr .is-empty span{color:var(--muted)}
.run-tot{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:12px}
.run-tot div{display:grid;gap:2px;text-align:center}.run-tot div+div{border-left:1px solid var(--line)}
.run-tot b{font-size:1.25rem;font-variant-numeric:tabular-nums}.run-tot b small{font-size:.75rem;color:var(--muted);font-weight:600}.run-tot span{font-size:.75rem;color:var(--muted)}
@media (max-width:420px){.run-pr{grid-template-columns:repeat(2,minmax(0,1fr))}}
.run-recs{display:none}
.run-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.run-tool{display:flex;gap:12px;align-items:center;padding:14px;border-radius:20px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;min-width:0}
.run-tool-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--run) 14%,transparent);color:var(--run-ink)}.run-tool-ic svg{width:21px;height:21px}
.run-tool-t{display:grid;gap:1px;min-width:0}.run-tool-t b{font-size:.9375rem}.run-tool-t small{font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run-item{padding:10px 14px 10px 10px;border-radius:20px}
.run-item>svg:last-child{flex:none;width:18px;height:18px;margin-left:auto;color:var(--muted)}
.run-item-t b{font-variant-numeric:tabular-nums}
.run-safety{gap:0;padding:4px 18px}
.run-safety summary{list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:52px;font-weight:700}
.run-safety summary::-webkit-details-marker{display:none}
.run-safety summary svg{width:18px;height:18px;color:var(--muted);transition:transform .2s}
.run-safety[open] summary svg{transform:rotate(90deg)}
.run-safety ul{padding-bottom:6px}.run-safety .run-note{margin:10px 0 14px}
.rc-note-ic{grid-template-columns:auto 1fr;align-items:center}.rc-note-ic>svg{width:22px;height:22px;color:var(--run-ink)}.rc-note-ic .btn{grid-column:1/-1}
.run-tag-soft{background:color-mix(in srgb,var(--ink) 10%,transparent);color:var(--muted);font-weight:600}
.rc-actions-2{display:grid;grid-template-columns:1fr 1fr}.rc-actions-2 .btn{justify-content:center;min-height:44px}.rc-actions-2 svg{width:16px;height:16px}
.rc-day{border-radius:16px;min-height:56px}
.rc-pred div{border-radius:18px}
/* pantalla en directo */
.run-live{background:radial-gradient(120% 60% at 50% 0%,rgba(255,159,10,.10),transparent 60%),#0B0B0C;gap:16px}
.run-live-h{font-size:.8125rem}.run-gps{font-weight:600}
.run-live-mode{flex:1;text-align:center;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.run-dist{position:relative;padding-top:6px}
.run-dist small{display:block;margin-top:6px;font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(246,244,239,.5)}
.run-paused{display:none;position:absolute;left:50%;top:-6px;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:#FF9F0A;color:#111;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.run-live.is-paused .run-paused{display:inline-block;animation:runBlink 1.6s ease-in-out infinite}
@keyframes runBlink{50%{opacity:.45}}
.run-row-live{padding:14px 6px;border-radius:22px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06)}
.run-row-live>div+div{border-left:1px solid rgba(255,255,255,.08)}
.run-row-live b{font-size:1.75rem;font-weight:800}
.run-live-map{flex:1;min-height:120px;height:auto;border-radius:22px;padding:16px;background:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px) 0 0/16px 16px,rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);position:relative}
.run-live-map svg{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px)}
.run-live-map polyline{stroke-width:4;filter:drop-shadow(0 0 6px rgba(255,159,10,.55))}
.run-map-wait{font-size:.8125rem;color:rgba(246,244,239,.4)}
.run-splits-live{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:none}
.run-splits-live::-webkit-scrollbar{display:none}
.run-splits-live:empty{display:none}
.run-splits-live li{flex:none;display:grid;gap:0;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.06);font-size:.75rem}
.run-splits-live li span{color:rgba(246,244,239,.5)}.run-splits-live li b{font-size:1rem;font-variant-numeric:tabular-nums}
.run-splits-live li:first-child{background:rgba(255,159,10,.18)}
.run-btn{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:22px;min-height:64px}
.run-btn svg{width:20px;height:20px}
.run-btn-end.is-sure{background:#FF453A;color:#fff}
.run-goalbar{height:34px;border-radius:17px}.run-goalbar span{line-height:34px}
/* hojas */
.run-sheet .run-eyebrow{text-transform:uppercase;letter-spacing:.12em}
.run-sheet .run-sum-km{font-variant-numeric:tabular-nums}
.run-sum-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.run-sum-meta svg{width:16px;height:16px;vertical-align:-3px}
.run-sum-map{height:200px;border-radius:22px;padding:16px;background:radial-gradient(color-mix(in srgb,var(--ink) 9%,transparent) 1px,transparent 1px) 0 0/16px 16px,var(--fill)}
.run-sum-map polyline{stroke-width:3.5}
.run-splits-s li{border-radius:12px;font-variant-numeric:tabular-nums}
.run-splits-s li.best b{color:var(--run,#FF9F0A)}
.run-del{min-height:44px;border:0;background:transparent;color:#FF453A;font:inherit;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.run-del svg{width:16px;height:16px}
.rc-levels input{accent-color:#FF9F0A;width:18px;height:18px;margin:0}
.rc-levels label{min-height:48px;border-radius:14px;transition:border-color .15s,background .15s}
.rc-levels label:has(input:checked){border-color:#FF9F0A;background:color-mix(in srgb,#FF9F0A 8%,transparent)}
.run-sheet .lbl{margin-top:6px}
@media (max-width:380px){.run-goal{grid-template-columns:repeat(2,minmax(0,1fr))}.run-pr b{font-size:1.0625rem}.run-tools{grid-template-columns:1fr}}
.run-sheet .run-goal{grid-template-columns:repeat(2,minmax(0,1fr))}
.run-sheet .rc-dpick input:checked+span{background:var(--run);border-color:var(--run-ink);color:#111}
.run-tool-t small{white-space:normal;line-height:1.3}
.run-dist small{margin-top:16px}
.run-live-map circle{r:1.8px}
.run-paused{position:static;transform:none;margin-top:12px}
.run-live.is-paused .run-dist small{display:none}
.rc-paces summary{list-style:none;justify-content:space-between;min-height:48px}.rc-paces summary::-webkit-details-marker{display:none}
.rc-paces summary svg{width:18px;height:18px;color:var(--muted);transition:transform .2s}.rc-paces[open] summary svg{transform:rotate(90deg)}

/* ===== Navegación premium (1.46): Hoy · Gym Cave · ARC · Running · Progreso ===== */
:root{--gym:#4F5BEA;--run:#F08A00;--run-ink:#9A4F00}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--gym:#8B96FF;--run:#FF9F0A;--run-ink:#FF9F0A}}
:root[data-theme="dark"]{--gym:#8B96FF;--run:#FF9F0A;--run-ink:#FF9F0A}
.tabbar nav{align-items:stretch}
.tabbar a{gap:2px;position:relative}
.tabbar a .tab-ic{display:grid;place-items:center;width:56px;height:30px;border-radius:999px;transition:background .25s cubic-bezier(.32,.72,0,1),color .25s}
.tabbar a .tab-ic svg{width:23px;height:23px}
.tabbar a[aria-current="page"] .tab-ic{background:color-mix(in srgb,var(--ink) 11%,transparent);color:var(--ink)}
.tabbar a.tab-gym[aria-current="page"]{color:var(--gym)}.tabbar a.tab-gym[aria-current="page"] .tab-ic{background:color-mix(in srgb,var(--gym) 18%,transparent);color:var(--gym)}
.tabbar a.tab-running[aria-current="page"]{color:var(--run-ink)}.tabbar a.tab-running[aria-current="page"] .tab-ic{background:color-mix(in srgb,var(--run) 18%,transparent);color:var(--run-ink)}
.tabbar a .tab-orb{display:grid;place-items:center;width:46px;height:46px;margin-top:-14px;border-radius:50%;color:var(--on-accent);background:radial-gradient(120% 120% at 30% 20%,color-mix(in srgb,var(--accent) 70%,#fff),var(--accent) 60%);box-shadow:0 8px 22px -8px color-mix(in srgb,var(--accent) 70%,transparent),0 0 0 4px var(--bg);transition:transform .25s cubic-bezier(.32,.72,0,1)}
.tabbar a .tab-orb svg{width:22px;height:22px}
.tabbar a.tab-arc[aria-current="page"] .tab-orb{transform:scale(1.06)}
.tabbar a.tab-arc span{margin-top:1px}
/* cabecera: avatar «Tú» */
.me-btn{padding:0;overflow:hidden}
.me-av{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;font:800 1rem/1 var(--body,inherit);color:var(--ink);background:linear-gradient(140deg,color-mix(in srgb,var(--gym) 35%,var(--fill)),color-mix(in srgb,var(--run) 30%,var(--fill)))}
.me-av svg{width:20px;height:20px}
.me-av.is-pro{box-shadow:inset 0 0 0 2px #FFC24B}
/* Hoy: insignias */
.flags{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.flag{--c:var(--gym);position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:168px;padding:16px;border-radius:26px;border:1px solid color-mix(in srgb,var(--c) 28%,var(--line));background:radial-gradient(130% 100% at 100% 0%,color-mix(in srgb,var(--c) 26%,transparent),transparent 62%),linear-gradient(180deg,color-mix(in srgb,var(--c) 7%,var(--surface)),var(--surface));color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;overflow:hidden;min-width:0;transition:transform .18s cubic-bezier(.32,.72,0,1)}
.flag:active{transform:scale(.97)}
.flag-run{--c:var(--run)}.flag-run .flag-k{color:var(--run-ink)}
.flag-top{display:flex;align-items:center;gap:8px;margin-bottom:auto}
.flag-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--c);color:#fff;box-shadow:0 8px 18px -10px var(--c)}
.flag-ic svg{width:21px;height:21px}
.flag-brand{font-weight:800;font-size:.8438rem;letter-spacing:-.01em}
.flag-k{margin-top:18px;font-size:.6562rem;font-weight:800;letter-spacing:.12em;color:var(--c)}
.flag-t{font-size:1.1875rem;line-height:1.15;letter-spacing:-.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%}
.flag-s{font-size:.7812rem;color:var(--muted);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-right:26px}
.flag-go{position:absolute;right:12px;bottom:12px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--c)}
.flag-go svg{width:15px;height:15px}
@media (max-width:350px){.flag{min-height:150px;padding:14px}.flag-t{font-size:1.0625rem}}
/* Tú */
.me-page{gap:18px}
.me-head{display:flex;align-items:center;gap:14px;padding:16px;border-radius:24px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.me-av-xl{width:60px;height:60px;flex:none;font-size:1.5rem}.me-av-xl svg{width:28px;height:28px}
.me-head-t{display:grid;gap:3px;flex:1;min-width:0}.me-head-t b{font-size:1.3125rem;letter-spacing:-.02em}.me-head-t small{font-size:.8125rem;color:var(--muted);line-height:1.35}
.me-head>svg,.me-row>svg,.me-pro>svg{flex:none;width:18px;height:18px;color:var(--muted)}
.me-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.me-q{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px;border-radius:20px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;min-width:0}
.me-q span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--c);color:#fff;margin-bottom:10px}.me-q span svg{width:19px;height:19px}
.me-q b{font-size:.875rem}.me-q small{font-size:.7188rem;color:var(--muted);line-height:1.25}
@media (max-width:520px){.me-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
.me-pro{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:20px;border:1px solid color-mix(in srgb,#FFC24B 45%,var(--line));background:linear-gradient(120deg,color-mix(in srgb,#FFC24B 14%,var(--surface)),var(--surface));color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.me-pro-k{flex:none;padding:6px 9px;border-radius:9px;background:#FFC24B;color:#1A1200;font-size:.6875rem;font-weight:900;letter-spacing:.08em}
.me-group{display:grid;gap:8px}
.me-gt{margin:0 0 0 6px;font-size:.8125rem;font-weight:700;letter-spacing:.02em;color:var(--muted);text-transform:uppercase}
.me-list{border-radius:20px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.me-row{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:10px 14px;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;position:relative}
.me-row+.me-row::before{content:"";position:absolute;top:0;left:62px;right:0;border-top:1px solid var(--line)}
.me-row:active{background:var(--fill)}
.me-ic{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--c);color:#fff}.me-ic svg{width:18px;height:18px}
.me-t{display:grid;gap:1px;flex:1;min-width:0}.me-t b{font-size:.9688rem;font-weight:600}.me-t small{font-size:.7812rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-foot{margin:4px 0 0;text-align:center;font-size:.7812rem;color:var(--muted)}.me-foot a{color:inherit}
/* ARC (1.46.2): pantalla fija de arriba a la barra; el chat ocupa todo el alto disponible */
body.arc-page:not(.arc-keyboard) .arc-home,.nav-ghost.is-arc .arc-home{position:fixed;left:0;right:0;top:0;bottom:0;height:auto;min-height:0;max-width:780px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 10px) max(14px,env(safe-area-inset-right,0px)) calc(var(--tabh) + env(safe-area-inset-bottom,0px) + 10px) max(14px,env(safe-area-inset-left,0px));gap:10px;overflow:hidden}
/* The ARC heading stays in the accessibility tree as a visually hidden h1. */
body.arc-page .arc-home .product-arc-heading,.nav-ghost.is-arc .arc-home .product-arc-heading{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
body.arc-page:not(.arc-keyboard) dialog.voice.arc-inline,.nav-ghost.is-arc dialog.voice.arc-inline{border-radius:24px}
/* ARC: sin título grande no hay título compacto que mostrar */
body.arc-page .arc-home .p-bar-title,.nav-ghost.is-arc .arc-home .p-bar-title{display:none}
body.arc-page .arc-home>.p-bar>:first-child,.nav-ghost.is-arc .arc-home>.p-bar>:first-child{opacity:1!important;transform:none!important;pointer-events:auto!important}
/* ARC con teclado: que nada quede bajo la barra de estado */
body.arc-page.arc-keyboard .arc-home{padding-top:max(6px,env(safe-area-inset-top,0px))}
.me-btn,.me-btn:hover{text-decoration:none}
/* bienvenida: las dos insignias */
.wl-flags{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:360px}
.wl-f{--c:var(--gym);display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;min-height:150px;border-radius:24px;border:1px solid color-mix(in srgb,var(--c) 30%,transparent);background:radial-gradient(130% 100% at 100% 0%,color-mix(in srgb,var(--c) 30%,transparent),transparent 62%),var(--fill);color:var(--ink);animation:wlFlag .7s cubic-bezier(.32,.72,0,1) both}
.wl-run{--c:var(--run);animation-delay:.12s}
.wl-f i{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--c);color:#fff;margin-bottom:auto;box-shadow:0 10px 24px -10px var(--c)}.wl-f i svg{width:22px;height:22px}
.wl-f b{margin-top:22px;font-size:1.0625rem;letter-spacing:-.01em}.wl-f small{font-size:.7812rem;color:var(--muted)}
@keyframes wlFlag{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.wl-f{animation:none}}

/* Reviewable training setup, reuses the existing sheet and day selectors. */
.training-dlg{width:min(100% - 20px,600px);max-height:90dvh;border:0;border-radius:24px;padding:0;background:var(--surface);color:var(--ink)}
.training-dlg::backdrop{background:rgba(0,0,0,.45);backdrop-filter:blur(6px)}
.training-sheet{display:flex;flex-direction:column;gap:14px;overflow-y:auto;padding:24px;box-sizing:border-box;width:100%;max-height:88dvh}
.training-sheet .sheet-head h2{margin:0;font-size:1.5rem;line-height:1.15}
.training-sheet fieldset{border:0;margin:0;padding:0;min-width:0}
.training-sheet .text-in{box-sizing:border-box;width:100%;min-width:0}
.training-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
.training-grid .lbl{margin:0}.training-grid .text-in{grid-row:2}
.training-preview{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.training-preview li{display:grid;gap:4px;border-bottom:1px solid var(--hair);padding:8px 0}
.training-preview span{font-size:.875rem;color:var(--muted)}
.training-choice{width:100%;margin:12px 0 0}
@media(max-width:360px){.training-sheet{padding:16px}.training-grid{column-gap:8px}.training-sheet .sheet-head h2{font-size:1.3125rem}}

.rnew-guided .rnew-main{background:var(--surface);color:var(--ink);box-shadow:none}
.rnew-guided .rnew-main small{color:var(--muted)}
.run-sheet .run-goal button{white-space:normal;overflow-wrap:anywhere;line-height:1.2;padding:8px;min-width:0}

/* 1.47.1: stable ARC entry, mobile fields and everyday shortcuts. */
dialog.voice.arc-inline[open]{animation:none;transition:none}
.goal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.goal-fields>.field{min-width:0}
.text-in{box-sizing:border-box;max-width:100%}
input.text-in[type=date],input.text-in[type=time]{min-width:0;max-width:100%;width:100%;min-height:48px;appearance:none;-webkit-appearance:none}
input.text-in[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.2em}
.g-steps li{position:relative;display:block;padding-left:40px;min-width:0;min-height:30px;overflow-wrap:break-word}
.g-steps li::before{position:absolute;top:0;left:0}
.home-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:-10px}
.home-tool{--c:#428AEF;display:flex;position:relative;align-items:center;gap:10px;min-width:0;min-height:88px;padding:14px 12px;border:1px solid color-mix(in srgb,var(--c) 28%,var(--line));border-radius:22px;background:linear-gradient(130deg,color-mix(in srgb,var(--c) 12%,var(--surface)),var(--surface));text-decoration:none;color:var(--ink)}
.home-tool-books{--c:#A98BFF}
.home-tool-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--c) 18%,transparent);color:var(--c)}
.home-tool-icon svg{width:20px;height:20px}
.home-tool-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-right:4px}
.home-tool-copy b{font-size:.9375rem;line-height:1.2}
.home-tool-copy small{font-size:.75rem;line-height:1.3;color:var(--muted)}
.home-tool-go{display:none}
.home-tool:active{transform:scale(.98)}
@media(max-width:350px){.home-tool{padding:12px 10px;gap:8px}.home-tool-icon{width:28px;height:30px}.home-tool-copy b{font-size:.875rem}.goal-fields{grid-template-columns:minmax(0,1fr)}}

/* Calculator: measured results and chosen targets are separate arithmetic tools. */
.calc-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:15px;background:var(--fill)}
.calc-modes button{min-height:44px;border:0;border-radius:11px;background:transparent;color:var(--muted);font:600 .9375rem var(--body);cursor:pointer}
.calc-modes button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.calc-modes button:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
.calc-result{border-radius:18px;background:var(--fill);padding:16px}
.calc-result h3{margin:0 0 8px;font:600 1.0625rem var(--body)}
.calc-result>p{margin:8px 0;font-size:.875rem;line-height:1.5}
.calc-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.calc-metrics>div{min-width:0}.calc-metrics dt{font-size:.75rem;line-height:1.4;color:var(--muted)}
.calc-metrics dd{margin:6px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}
.calc-metrics b{font-size:1.5625rem;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.calc-metrics small{font-size:.75rem;color:var(--muted)}

.run-sheet>.calc-title{padding-right:42px}

.calc-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
@media(max-width:350px){.calc-inputs{grid-template-columns:minmax(0,1fr)}}

/* ===== Ajedrez (1.47) ===== */
:root{--ch-light:#EEE2CC;--ch-dark:#B08A66;--ch-last:rgba(255,206,64,.45);--ch-sel:rgba(255,206,64,.62)}
body.chess-on .tabbar{display:none}
body.chess-on .page{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.ch-entry{position:relative;display:flex;align-items:center;gap:14px;padding:16px 16px 16px 14px;border-radius:24px;text-decoration:none;color:#F4EEE2;background:radial-gradient(120% 140% at 0% 100%,rgba(176,138,102,.35),transparent 60%),linear-gradient(135deg,#2A2420,#141110);border:1px solid rgba(238,226,204,.14);overflow:hidden}
.ch-entry-art{position:relative;flex:none;width:78px;height:64px}
.ch-entry-art img{position:absolute;width:56px;height:56px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
.ch-entry-art img:first-child{left:0;top:6px}.ch-entry-art img:last-child{left:26px;top:0}
.ch-entry-t{display:grid;gap:2px;flex:1;min-width:0}.ch-entry-t small{font-size:.6562rem;font-weight:800;letter-spacing:.12em;color:#E8C18F}.ch-entry-t b{font-size:1.25rem;letter-spacing:-.02em}.ch-entry-t span{font-size:.8125rem;color:rgba(244,238,226,.7)}
.ch-entry>svg{flex:none;width:18px;height:18px;color:rgba(244,238,226,.6)}
.ch-cta .gr-cta-ico img{width:34px;height:34px}
.ch-record{display:flex;align-items:center;gap:14px;padding:18px;border-radius:26px;color:#F4EEE2;background:radial-gradient(120% 140% at 100% 0%,rgba(176,138,102,.38),transparent 60%),linear-gradient(160deg,#2A2420,#141110);border:1px solid rgba(238,226,204,.14)}
.ch-rec-art{position:relative;flex:none;width:70px;height:70px}.ch-rec-art img{position:absolute;width:52px;height:52px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}.ch-rec-art img:first-child{left:0;top:12px}.ch-rec-art img:last-child{left:22px;top:0}
.ch-rec-n{flex:1;display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.ch-rec-n div{display:grid;gap:2px}.ch-rec-n div+div{border-left:1px solid rgba(238,226,204,.14)}
.ch-rec-n b{font:900 2.125rem/1 var(--display);font-variant-numeric:tabular-nums}.ch-rec-n span{font-size:.75rem;color:rgba(244,238,226,.65)}
.ch-rec-n .is-w b{color:#7CE3A1}.ch-rec-n .is-l b{color:#FF8A7A}
.ch-new{min-height:54px;justify-content:center;font-size:1rem}
.ch-sec{display:grid;gap:8px}.ch-sec-t{margin:0 0 0 4px;font-size:.8125rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.ch-list{list-style:none;margin:0;padding:0;border-radius:20px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.ch-row{display:flex;align-items:center;gap:12px;padding:10px 12px;min-height:64px}
.ch-row+.ch-row{border-top:1px solid var(--line)}
.ch-row-b{flex:1;min-width:0;display:grid;gap:1px;color:inherit;text-decoration:none}.ch-row-b b{font-size:.9688rem}.ch-row-b small{font-size:.7812rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-acts{display:flex;gap:6px}
.ch-pill{flex:none;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:800}
.ch-pill.is-w{background:rgba(52,199,89,.16);color:#34C759}.ch-pill.is-l{background:rgba(255,69,58,.14);color:#FF6B60}.ch-pill.is-d{background:color-mix(in srgb,var(--ink) 10%,transparent);color:var(--muted)}
.ch-empty{text-align:center}
.ch-h2h{font-size:.6875rem;color:var(--muted);font-variant-numeric:tabular-nums}
.ch-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ch-colors{grid-template-columns:repeat(3,minmax(0,1fr))}
.ch-seg button{display:grid;justify-items:center;gap:2px;min-height:58px;padding:8px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer}
.ch-seg button[aria-checked="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.ch-seg b{font-size:.9375rem}.ch-seg small{font-size:.7188rem;color:var(--muted)}
.ch-swatch{width:18px;height:18px;border-radius:50%;border:1px solid var(--line)}.ch-swatch.is-w{background:#F4EEE2}.ch-swatch.is-b{background:#1A1614}.ch-swatch.is-r{background:linear-gradient(90deg,#F4EEE2 50%,#1A1614 50%)}
/* partida */
.chess-page{gap:16px}
.ch-game{display:grid;gap:10px;max-width:520px;width:100%;margin:0 auto}
.ch-player{display:flex;align-items:center;gap:10px;min-height:46px}
.ch-pl-t{flex:1;min-width:0;display:grid;gap:2px}.ch-pl-t b{font-size:.9375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-caps{display:flex;align-items:center;min-height:16px;flex-wrap:wrap}.ch-caps img{width:16px;height:16px;margin-right:-5px}.ch-caps em{font-style:normal;font-size:.75rem;font-weight:700;color:var(--muted);margin-left:9px}
.ch-clock{flex:none;min-width:92px;padding:9px 12px;border-radius:12px;text-align:right;font:800 1.375rem/1 var(--body);font-variant-numeric:tabular-nums;letter-spacing:-.01em;background:var(--surface);color:var(--muted);border:1px solid var(--line);transition:background .2s,color .2s}
.ch-clock.is-run{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.ch-clock.is-low.is-run{background:#FF453A;border-color:#FF453A;color:#fff}
.ch-clock.is-low:not(.is-run){color:#FF6B60}
.ch-board-wrap{position:relative}
.ch-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;width:100%;border-radius:12px;overflow:hidden;box-shadow:0 18px 40px -18px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.18);touch-action:none;user-select:none;-webkit-user-select:none}
.ch-sq{position:relative;aspect-ratio:1}
.ch-sq.is-light{background:var(--ch-light)}.ch-sq.is-dark{background:var(--ch-dark)}
.ch-sq.is-last::before,.ch-sq.is-sel::before{content:"";position:absolute;inset:0;background:var(--ch-last)}
.ch-sq.is-sel::before{background:var(--ch-sel)}
.ch-sq.is-check{background:radial-gradient(circle,#FF3B30 0%,rgba(255,59,48,.75) 30%,rgba(255,59,48,0) 72%),var(--ch-dark)}
.ch-sq.is-light.is-check{background:radial-gradient(circle,#FF3B30 0%,rgba(255,59,48,.75) 30%,rgba(255,59,48,0) 72%),var(--ch-light)}
.ch-sq.is-to::after{content:"";position:absolute;left:50%;top:50%;width:30%;height:30%;margin:-15% 0 0 -15%;border-radius:50%;background:rgba(20,16,12,.22);z-index:2}
.ch-sq.is-cap::after{content:"";position:absolute;inset:4%;border-radius:50%;border:5px solid rgba(20,16,12,.24);z-index:2}
.ch-pc{position:absolute;inset:3%;background-size:contain;background-repeat:no-repeat;background-position:center;z-index:1;pointer-events:none}
.ch-ghost{position:fixed;left:0;top:0;inset:auto;z-index:2147483600;pointer-events:none;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(0 10px 14px rgba(0,0,0,.35))}
.ch-rk,.ch-fl{position:absolute;font:700 .625rem/1 var(--body);font-style:normal;z-index:1;pointer-events:none}
.ch-rk{left:3px;top:3px}.ch-fl{right:3px;bottom:2px}
.ch-sq.is-light .ch-rk,.ch-sq.is-light .ch-fl{color:var(--ch-dark)}.ch-sq.is-dark .ch-rk,.ch-sq.is-dark .ch-fl{color:var(--ch-light)}
.ch-promo{position:absolute;inset:0;display:grid;place-content:center;gap:10px;background:rgba(10,8,6,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:12px;z-index:5;text-align:center;color:#fff}
.ch-promo[hidden]{display:none}.ch-promo p{margin:0;font-weight:700}
.ch-promo div{display:flex;gap:8px}.ch-promo button{width:64px;height:64px;border-radius:16px;border:0;background:var(--ch-light);cursor:pointer;display:grid;place-items:center}.ch-promo img{width:52px;height:52px}
.ch-status{margin:2px 0 0;text-align:center;font-size:.875rem;color:var(--muted);min-height:20px}.ch-status.is-turn{color:var(--ink);font-weight:700}
.ch-offer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;padding:10px 12px;border-radius:16px;background:color-mix(in srgb,#FFC24B 14%,var(--surface));border:1px solid color-mix(in srgb,#FFC24B 45%,var(--line))}
.ch-offer span{flex:1 1 100%;text-align:center;font-weight:700;font-size:.875rem}
.ch-moves{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0;min-height:34px}
.ch-moves::-webkit-scrollbar{display:none}
.ch-mv{flex:none;padding:6px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:.8438rem;font-weight:600;font-variant-numeric:tabular-nums}
.ch-mv i{font-style:normal;color:var(--muted);margin-right:4px;font-weight:500}
.ch-mv:last-child{border-color:var(--ink)}
.ch-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.ch-actions .btn{flex:1 1 0;justify-content:center;min-height:48px;max-width:260px}
.ch-resign.is-sure{background:#FF453A;color:#fff}
.ch-result{display:grid;gap:6px;justify-items:center;padding:20px 16px;border-radius:24px;text-align:center;border:1px solid var(--line);background:var(--surface)}
.ch-result b{font:900 2.125rem/1 var(--display);letter-spacing:-.01em}.ch-result span{font-size:.875rem;color:var(--muted)}
.ch-result.is-w{background:radial-gradient(120% 120% at 50% 0%,rgba(52,199,89,.2),transparent 60%),var(--surface);border-color:rgba(52,199,89,.4)}.ch-result.is-w b{color:#34C759}
.ch-result.is-l b{color:#FF6B60}
.ch-result .ch-actions{width:100%;margin-top:8px}
@media (min-width:700px){.ch-game{max-width:560px}}
.ch-new{width:100%}
/* Ajedrez · entrenamiento contra ARC */
.ch-bot{display:grid;gap:14px;padding:18px;border-radius:26px;color:#EFEAFF;background:radial-gradient(120% 140% at 100% 0%,rgba(142,124,255,.42),transparent 60%),linear-gradient(160deg,#211D33,#110F1A);border:1px solid rgba(190,176,255,.18)}
.ch-bot-top{display:flex;align-items:center;gap:14px}
.ch-bot-orb{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:radial-gradient(circle at 35% 30%,#B9A8FF,#6E5BEA 70%);box-shadow:0 12px 26px -12px #8E7CFF}
.ch-bot-orb img{width:40px;height:40px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35))}
.ch-bot-top div{display:grid;gap:2px;min-width:0}.ch-bot-top small{font-size:.6562rem;font-weight:800;letter-spacing:.12em;color:#B9A8FF}.ch-bot-top b{font-size:1.25rem;letter-spacing:-.02em}.ch-bot-top span{font-size:.8125rem;color:rgba(239,234,255,.68)}
.ch-bot-lv{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.ch-bot-lv i{height:6px;border-radius:3px;background:rgba(239,234,255,.14)}.ch-bot-lv i.is-won{background:#8E7CFF}.ch-bot-lv i.is-cur{box-shadow:0 0 0 2px #EFEAFF}
.ch-bot .btn-accent{background:#EFEAFF;color:#1A1630;border-color:#EFEAFF}
.ch-bot-acts{display:grid;grid-template-columns:1fr auto;gap:8px}.ch-bot-acts .btn{justify-content:center;min-height:48px}
.ch-bot .btn-ghost{color:#EFEAFF;background:rgba(239,234,255,.1);border-color:transparent}
.ch-sec-friends{margin-top:6px}
.ch-levels{display:grid;gap:6px}
.ch-levels button{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.ch-levels button[aria-checked="true"]{border-color:#8E7CFF;box-shadow:inset 0 0 0 1px #8E7CFF;background:color-mix(in srgb,#8E7CFF 10%,var(--bg))}
.ch-lv-n{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,#8E7CFF 18%,transparent);color:#8E7CFF;font-weight:900}
.ch-levels button[aria-checked="true"] .ch-lv-n{background:#8E7CFF;color:#fff}
.ch-lv-t{flex:1;display:grid;gap:1px;min-width:0}.ch-lv-t b{font-size:.9375rem}.ch-lv-t small{font-size:.75rem;color:var(--muted);line-height:1.3}
.ch-levels em{flex:none;font-style:normal;font-size:.75rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.ch-game.no-clock .ch-clock{display:none}
.ch-sq.is-hint::before{content:"";position:absolute;inset:0;background:rgba(142,124,255,.55)}
.ch-status.is-think{animation:runBlink 1.4s ease-in-out infinite}
.ch-actions-bot .btn{min-height:46px;padding-left:8px;padding-right:8px;font-size:.875rem}
.ch-next{margin:6px 0 0;font-weight:700}

/* Modal contents scroll independently; the surrounding screen stays fixed. */
dialog:not(.arc-inline){overscroll-behavior:contain;overflow:auto;-webkit-overflow-scrolling:touch;scroll-padding-block:16px}
dialog:not(.arc-inline) .sheet>*{flex-shrink:0}
[aria-modal="true"]:not(dialog){overscroll-behavior:contain}
.ui-modal-open{overscroll-behavior:none}
.ui-modal-open dialog:not(.arc-inline){inset-block-start:var(--ui-vp-top,0px);inset-block-end:var(--ui-vp-bottom,0px);max-height:min(92dvh,calc(var(--ui-viewport,100dvh) - 16px))}
/* iOS standalone can lay fixed boxes out in a viewport one status bar shorter than the screen while a sheet is open:
   reach the real bottom edge (100lvh) whenever the containing block comes up short. A keyboard never shrinks it. */
@media (display-mode: standalone){.ui-modal-open dialog:not(.arc-inline):not(.voice):not(.rkup):not(.focus-zen){inset-block-end:min(var(--ui-vp-bottom,0px),calc(var(--ui-vp-bottom,0px) + 100% - 100lvh))}}
.ui-modal-open dialog.voice:not(.arc-inline),.ui-modal-open dialog.rkup,.ui-modal-open dialog.focus-zen{height:var(--ui-viewport,100dvh);max-height:var(--ui-viewport,100dvh)}
.ui-modal-open [aria-modal="true"]:not(dialog){top:var(--ui-vp-top,0px);bottom:var(--ui-vp-bottom,0px)}
.ui-modal-open .spot-panel{max-height:calc(var(--ui-viewport,100dvh) - 24px - env(safe-area-inset-top,0px))}

/* Privacy notices: readable on narrow screens and long user-entered text. */
#privacyDlg{overflow:auto}#privacyDlg .sheet{max-width:560px;max-height:90dvh;box-sizing:border-box;gap:18px}#privacyDlg .sheet>*{flex-shrink:0}#privacyDlg .privacy-content{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:16px;flex-shrink:1}#privacyDlg .privacy-content>*{flex-shrink:0;margin:0}#privacyDlg p{line-height:1.55}#privacyDlg .check-row{display:flex;gap:10px;align-items:flex-start;line-height:1.5}#privacyDlg .check-row input{flex:none;margin-top:4px}#privacyDlg .privacy-preview{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}

/* Post-workout hero */
.fin-hero{display:grid;justify-items:center;gap:4px;padding:22px 16px;border-radius:20px;background:var(--fill);text-align:center}
.fin-k{font:600 .8125rem/1.2 var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fin-v{font:900 clamp(44px,14vw,64px)/1 "Big Shoulders Display",var(--body);font-variant-numeric:tabular-nums;color:var(--ink)}
.fin-eq{font:600 1rem/1.3 var(--body);color:var(--signal)}
.fin-meta{margin-top:6px;font:500 .875rem/1.3 var(--body);color:var(--muted)}
@media (prefers-reduced-motion:no-preference){.fin-hero{animation:finIn .5s cubic-bezier(.32,.72,0,1) both}@keyframes finIn{from{opacity:0;transform:scale(.96)}}}

/* ARC while Pro is not on sale: an honest "coming soon" page, never a dead end. */
.arc-soon-card,.arc-soon-free{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--line)}
.arc-soon-card h2,.arc-soon-free h2{font:var(--t-head);letter-spacing:-.02em;margin:0}
.arc-soon-card>p,.arc-soon-free>p{margin:0;font-size:.9375rem;line-height:1.5;color:var(--muted)}
.arc-soon-tag{align-self:flex-start;font:600 .8125rem/1 var(--body);padding:7px 10px;border-radius:999px;background:var(--fill);color:var(--ink)}
.arc-soon-card .ins li{background:var(--surface2);border:0}
.arc-soon-free .row{flex-wrap:wrap;gap:10px}
/* Premium palettes while Pro is not on sale: visible, clearly unavailable. */
.th.is-soon{opacity:.62}.th.is-soon input{cursor:not-allowed}
.th.is-soon .pro-tag{background:var(--fill);color:var(--ink)}
[data-apply][hidden]{display:none}

/* Workout: set rows use role=cell wrappers; a logged set shows the previous value above a "+ RIR" prompt. */
.set-row>[role=cell]{display:flex;flex-direction:column;justify-content:center;min-width:0}
.set-row>[role=cell]>.st,.set-row>[role=cell]>.sin,.set-row>[role=cell]>.sok{width:100%}
.prev-cell.has-rir{gap:2px;align-items:flex-start}.prev-cell.has-rir .prev{font-size:.6875rem;line-height:1.1;max-width:100%}
.prev-cell.has-rir .rir{height:28px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.set-row.hd>span{white-space:nowrap}
@media (max-width:360px){.set-row{grid-template-columns:30px minmax(52px,1fr) 58px 50px 42px;gap:4px}.set-row.hd{font-size:.625rem;letter-spacing:0}.sin{font-size:1.25rem}}
/* Workout header: below 430px the title gets its own full-width line instead of being cut. */
@media (max-width:430px){.w-head{flex-wrap:wrap;row-gap:4px}.w-head .w-title{order:9;flex:1 0 100%}.w-head .btn-sm{margin-left:auto}}
.wx-head .mini-btn{min-height:44px;min-width:44px}

/* Skip link and 44px targets for small controls flagged in the accessibility review. */
.skip-link{position:fixed;left:12px;top:-60px;z-index:200;padding:12px 16px;border-radius:12px;background:var(--ink);color:var(--bg);font-weight:700;text-decoration:none}
.skip-link:focus{top:calc(10px + env(safe-area-inset-top,0px))}
#daily-priority{min-height:44px}
.seg2>button{min-height:44px}
.studio-home-nav a{min-height:44px}
.life-page .btn{min-height:44px}

/* Pre-launch visual pass: numbers never split from their unit, quieter empty inputs, room below the Calma CTA. */
.stat-num,.rw-xp b,.rw-q b{white-space:nowrap}
.stats .stat-num{font-size:clamp(26px,8vw,36px)}
.sin::placeholder{font:600 .9375rem var(--body);color:var(--muted);opacity:.7}
.calm-body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
/* Constancia (Gym) uses the same scale as the Progreso map; today is an inset ring, never larger than its neighbours. */
.t-col i{background:var(--fill)}
.t-col i.on{background:var(--signal,var(--accent))}
.t-col i.td{outline:0;box-shadow:inset 0 0 0 2px var(--ink)}
/* ARC "Voz y privacidad": own chevron instead of the browser marker. */
.v-priv summary{list-style:none;display:inline-flex;align-items:center;gap:6px}
.v-priv summary::-webkit-details-marker{display:none}
.v-priv summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
.v-priv[open] summary::after{transform:rotate(45deg)}
/* Tú: subtitles wrap instead of being cut off. */
.me-t small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
/* Consent checkboxes: gap before the text and the same weight as the surrounding copy. */
.check-row{display:flex;align-items:flex-start;gap:10px;font-size:.875rem;line-height:1.45;color:var(--muted)}
.check-row input{flex:none;width:20px;height:20px;margin:1px 0 0}
/* Hoy: secondary tools folded under one row. */
.life-more{background:var(--surface);border-radius:var(--r-card,20px);overflow:hidden}
.life-more>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;min-height:56px}
.life-more>summary::-webkit-details-marker{display:none}
.life-more>summary>span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.life-more>summary b{font:700 1rem/1.2 var(--body)}
.life-more>summary small{font:500 .8125rem/1.35 var(--body);color:var(--muted);overflow-wrap:anywhere}
.life-more>summary::after{content:'';flex:none;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.life-more[open]>summary::after{transform:rotate(-135deg)}
.life-more>summary:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.life-more[open]{display:flex;flex-direction:column;gap:12px;padding-bottom:12px}
.life-more[open]>:not(summary){margin:0 12px}
