/* Forma — design language of Apple Fitness (iOS 26). Colours sampled from the app:
   black canvas, #1C1C1E cards, lime #BAFD4F, Move red #E53653, purple #9E8CDB, blue #52B4F9. */
:root{
 color-scheme:light;
 --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 --font-round:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
 --bg:#f2f2f7;--card:#ffffff;--card-2:#f2f2f7;--fill:rgba(118,118,128,.12);--fill-2:rgba(118,118,128,.2);
 --text:#000000;--text-2:#6c6c70;--text-3:#aeaeb2;--sep:rgba(60,60,67,.16);
 --lime:#bafd4f;--on-lime:#0a0a0a;--accent:#4f8a00;--chart:#79b800;
 --red:#d92c4a;--purple:#7d68d0;--blue:#1f8fe0;--orange:#e07400;--indigo:#5856d6;
 --chev:#d1d1d6;--chev-ink:#ffffff;--map-bg:#e8e8ed;
 --workout-card:#eef8dc;--workout-btn:#e2f2c4;--workout-btn-on:#d3eaa8;
 --glass:rgba(250,250,252,.72);--glass-border:rgba(0,0,0,.08);--glass-active:rgba(0,0,0,.07);--glass-shadow:0 8px 30px rgba(0,0,0,.14);--glass-btn:rgba(255,255,255,.85);
 --radius:28px;--gutter:20px;
 font-family:var(--font);font-synthesis:none;color:var(--text)
}
body[data-theme=dark]{
 color-scheme:dark;
 --bg:#000000;--card:#1c1c1e;--card-2:#2c2c2e;--fill:rgba(118,118,128,.24);--fill-2:#414143;
 --text:#ffffff;--text-2:#98989e;--text-3:#5e5e61;--sep:rgba(84,84,88,.55);
 --accent:#bafd4f;--chart:#bafd4f;
 --red:#e53653;--purple:#9e8cdb;--blue:#52b4f9;--orange:#ff9f0a;--indigo:#7d7aff;
 --chev:#5e5e61;--chev-ink:#1c1c1e;--map-bg:#262628;
 --workout-card:#111802;--workout-btn:#182104;--workout-btn-on:#243208;
 --glass:rgba(59,59,60,.6);--glass-border:rgba(255,255,255,.1);--glass-active:rgba(18,18,20,.72);--glass-shadow:0 10px 36px rgba(0,0,0,.6),inset 0 .5px 0 rgba(255,255,255,.14);--glass-btn:#1e1e1e
}

/* Base */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100dvh;background:var(--bg);color:var(--text);font-size:17px;line-height:1.3;letter-spacing:-.25px;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;overflow-x:hidden}
button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer;background:none;border:0;padding:0;text-align:inherit}
button:disabled{opacity:.35;cursor:default}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:12px}
svg{display:block;flex-shrink:0}
h1,h2,h3,p,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
strong{font-weight:600}
small{font-size:.8em}
.icon{width:22px;height:22px;stroke-width:1.9}
.icon-sm{width:17px;height:17px;stroke-width:2.2}
.muted{color:var(--text-2)}
.tiny{font-size:12px}
.text-sm{font-size:13px}
.grow{flex:1;min-width:0}
.between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.flex{display:flex;align-items:center}
.gap{gap:12px}
.align-left{text-align:left}
.stack{display:grid;gap:12px;align-content:start}
.num{font-variant-numeric:tabular-nums}
.skip-link{position:fixed;left:12px;top:-120px;z-index:200;background:var(--text);color:var(--bg);padding:12px 16px;border-radius:12px}
.skip-link:focus{top:calc(env(safe-area-inset-top) + 10px)}
.sidebar,.glow{display:none!important}

/* Tones: each metric keeps its colour everywhere, as in Fitness */
.tone-lime{--tone:var(--accent);--tone-soft:rgba(186,253,79,.16)}
.tone-energy{--tone:var(--red);--tone-soft:rgba(229,54,83,.18)}
.tone-food{--tone:var(--orange);--tone-soft:rgba(255,159,10,.17)}
.tone-run{--tone:var(--blue);--tone-soft:rgba(82,180,249,.17)}
.tone-sleep{--tone:var(--indigo);--tone-soft:rgba(125,122,255,.2)}
.tone-weight{--tone:var(--purple);--tone-soft:rgba(158,140,219,.2)}
.tone-event{--tone:var(--text-2);--tone-soft:var(--fill)}
body[data-theme=light] .tone-lime{--tone-soft:rgba(110,180,0,.14)}

/* Shell */
.app-shell{position:relative;width:100%;min-height:100dvh;padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:760px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 8px) var(--gutter) 0}
.glass-btn,.back-button{position:relative;height:48px;min-width:48px;border-radius:99px;display:inline-flex;align-items:center;justify-content:center;gap:4px;background:var(--glass-btn);color:var(--text);border:.5px solid var(--glass-border);box-shadow:inset 0 .5px 0 rgba(255,255,255,.1);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%)}
.back-button{padding:0 18px 0 10px;font-size:17px;font-weight:500}
.glass-btn svg{width:24px;height:24px;stroke-width:2}
.glass-btn .badge{position:absolute;top:10px;right:11px;width:9px;height:9px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 2px var(--glass-btn)}
.avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--fill-2);font-size:19px;font-weight:600;border:2px solid #3a3a3c}
.avatar img{width:100%;height:100%;object-fit:cover}
#content{position:relative;max-width:760px;margin:0 auto;padding:4px var(--gutter) 24px;outline:none}

/* Large title row: title and glass buttons share the row, as in Fitness */
.large-title{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:6px 0 2px}
.large-title h1{font-size:34px;line-height:1.12;font-weight:700;letter-spacing:.35px;min-width:0}
.title-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.title-sub{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;color:var(--text-2);font-size:17px}
.month-link{display:flex;align-items:center;gap:2px;font-size:17px;color:var(--accent);font-variant-numeric:tabular-nums;min-height:36px;white-space:nowrap}
.month-link svg{width:17px;height:17px;stroke-width:2.4}
.pill-button{min-height:34px;padding:0 14px;border-radius:99px;background:var(--fill);font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.round-button{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--fill);color:var(--text)}
.round-button svg{width:20px;height:20px;stroke-width:2.2}

/* Section headers */
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:28px 2px 10px}
.section-head h2{font-size:22px;font-weight:700;letter-spacing:.2px}
.section-head p{font-size:15px;color:var(--text-2);margin-top:2px}
.text-link{display:inline-flex;align-items:center;gap:4px;min-height:34px;color:var(--accent);font-size:17px}
.text-link svg{width:16px;height:16px;stroke-width:2.2}

/* Cards (Fitness Summary) */
.card{background:var(--card);border-radius:var(--radius);padding:16px}
.card+.card{margin-top:12px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px}
.card-label{display:flex;align-items:center;gap:7px;color:var(--text);font-size:20px;font-weight:600}
.card-label svg{width:22px;height:22px;stroke-width:2;color:var(--tone,var(--accent))}
.card-meta{display:flex;align-items:center;gap:8px;color:var(--text-2);font-size:15px;white-space:nowrap}
.chev{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--chev);color:var(--chev-ink);flex-shrink:0}
.chev svg{width:17px;height:17px;stroke-width:3}
.card-sub{font-size:17px;color:var(--text);margin-top:12px}
.value{font-family:var(--font-round);font-size:32px;line-height:1.1;font-weight:600;letter-spacing:-.3px;font-variant-numeric:tabular-nums;color:var(--tone,var(--text))}
.value small{font-size:.7em;font-weight:600;text-transform:uppercase;letter-spacing:0;color:inherit}
.value small.plain{text-transform:none;color:var(--text-2);font-family:var(--font);font-size:.55em}
.card-foot{font-size:15px;color:var(--text-2);margin-top:10px;line-height:1.35}
.split{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:6px}
.bar{height:8px;border-radius:9px;background:var(--fill);overflow:hidden;margin-top:14px}
.bar>i{display:block;height:100%;border-radius:9px;background:var(--tone,var(--lime));transition:width .35s ease}
.note{font-size:13px;line-height:1.45;color:var(--text-2);margin:14px 4px 0}
.note a,.sources a{color:var(--accent)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.grid-2>.card{margin:0;display:flex;flex-direction:column;min-height:176px;text-align:left}
.grid-2 .value{margin-top:2px}
.mini-chart{display:flex;align-items:flex-end;justify-content:space-between;gap:4px;height:56px;margin-top:auto;padding-top:12px}
.mini-chart i{flex:1;max-width:12px;border-radius:3px;background:var(--fill-2);min-height:4px}
.mini-chart i.on{background:var(--tone,var(--lime))}
.mini-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--text-2);margin-top:6px}

/* Banner (Fitness tip) */
.banner{display:flex;align-items:flex-start;gap:16px;padding:18px 16px 18px 18px;border-radius:var(--radius);background:var(--card);margin-bottom:12px}
.banner .banner-icon{width:56px;height:56px;border-radius:50%;background:var(--lime);color:var(--on-lime);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.banner .banner-icon svg{width:28px;height:28px;stroke-width:2.4}
.banner p{flex:1;font-size:17px;line-height:1.35;padding-top:2px}
.banner .close{width:30px;height:30px;border-radius:50%;background:var(--fill-2);color:var(--text);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.banner .close svg{width:15px;height:15px;stroke-width:3}

/* Buttons */
.btn{min-height:52px;padding:0 22px;border-radius:99px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:600;white-space:nowrap;transition:transform .15s ease,opacity .15s ease}
.btn:active{transform:scale(.97)}
.btn svg{width:19px;height:19px;stroke-width:2.3}
.btn-primary{background:var(--lime);color:var(--on-lime)}
.btn-secondary{background:var(--fill);color:var(--text)}
.btn-soft{background:var(--workout-btn-on);color:var(--accent)}
.btn-danger{background:rgba(229,54,83,.16);color:var(--red)}
.btn-small{min-height:38px;padding:0 16px;font-size:15px}
.btn-block{width:100%}
.icon-btn{width:36px;height:36px;min-width:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--fill);color:var(--text-2)}
.icon-btn svg{width:17px;height:17px;stroke-width:2.1}
.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.button-row>.btn{flex:1}

/* Segmented control (Fitness Activities) */
.segmented{display:flex;gap:2px;padding:3px;border-radius:99px;background:var(--card);margin:0 0 18px}
.segmented button{flex:1;min-width:0;min-height:40px;border-radius:99px;font-size:17px;color:var(--text);white-space:nowrap;padding:0 6px;text-align:center;display:flex;align-items:center;justify-content:center;transition:background .2s}
.segmented button.active{background:#636366;font-weight:600}
body[data-theme=light] .segmented{background:var(--fill)}
body[data-theme=light] .segmented button.active{background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.segmented.small button{min-height:36px;font-size:15px}

/* Week strip */
.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:0 -4px 16px}
.day-button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 0 8px;border-radius:20px;color:var(--text-2);min-height:76px}
.day-button>span{font-size:13px;font-weight:600;letter-spacing:.3px;text-transform:uppercase}
.day-button>strong{font-family:var(--font-round);font-size:24px;line-height:1;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
.day-button>i{width:5px;height:5px;border-radius:3px;background:transparent}
.day-button>i.logged{background:var(--accent)}
.day-button.is-today>strong{color:var(--accent)}
.day-button.active{background:var(--card)}
.day-button.active>i{width:20px;height:3px;background:var(--text-2)}
.day-button.active.is-today>i{background:var(--accent)}

/* Activity Ring card */
.rings-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 18px}
.rings-card .card-head{grid-column:1/-1;margin-bottom:8px}
.rings{width:136px;height:136px}
.rings circle{fill:none;stroke-linecap:round;stroke-width:11.5}
.rings .track{opacity:.25}
.rings .energy{stroke:var(--red)}
.rings .protein{stroke:var(--lime)}
.rings .water{stroke:var(--blue)}
.rings .tasks{stroke:var(--purple,#9e8cdb)}
.ring-legend .tasks{color:var(--purple,#9e8cdb)}
.evolution-link{display:flex;align-items:center;gap:14px;margin-bottom:18px;color:inherit}
.evolution-link p{font-size:14px;color:var(--text-2);margin-top:2px}
.productivity-card .split{display:flex;justify-content:space-between;gap:16px;width:100%}
.productivity-card .value{display:block}
body[data-theme=light] .rings .protein{stroke:#8ed22a}
.ring-legend{display:grid;gap:8px;min-width:0}
.ring-legend span{display:block;font-size:15px;color:var(--text)}
.ring-legend strong{display:block;font-family:var(--font-round);font-size:22px;line-height:1.15;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ring-legend strong small{font-size:.68em;text-transform:uppercase}
.ring-legend .energy{color:var(--red)}.ring-legend .protein{color:var(--accent)}.ring-legend .water{color:var(--blue)}
.rings-card .day-progress{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:12px;border-top:.5px solid var(--sep);font-size:15px;color:var(--text-2)}
.rings-card .day-progress b{color:var(--text);font-weight:600}

/* Agenda */
.filters{margin:20px 0 0}
.period{margin-top:24px}
.period-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.period-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:22px;font-weight:700;letter-spacing:.2px}
.period-chip>svg:first-child{width:24px;height:24px;stroke-width:2;color:var(--accent)}
.period-chip .count{font-size:17px;font-weight:500;color:var(--text-2)}
.period-chip .chevron{width:17px;height:17px;stroke-width:2.6;color:var(--text-2);transition:transform .2s}
.period-chip[aria-expanded=false] .chevron{transform:rotate(-90deg)}
.round-add{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--card);color:var(--text)}
.round-add svg{width:18px;height:18px;stroke-width:2.6}
.period-items{display:grid;gap:10px}
.agenda-row{display:flex;align-items:center;gap:10px;padding:14px 16px 14px 14px;border-radius:var(--radius);background:var(--card);min-height:80px;transition:opacity .2s}
.agenda-main{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left}
.agenda-icon{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tone-soft);color:var(--tone);flex-shrink:0}
.agenda-icon svg{width:25px;height:25px;stroke-width:2}
.agenda-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.agenda-text strong{font-size:17px;line-height:1.25;font-weight:600;overflow-wrap:anywhere}
.agenda-time{font-family:var(--font-round);font-size:17px;font-weight:600;color:var(--tone);font-variant-numeric:tabular-nums}
.agenda-meta{font-size:15px;color:var(--text-2);line-height:1.3}
.check{width:32px;height:32px;border-radius:50%;border:2px solid var(--text-3);display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;color:var(--on-lime);transition:background .2s,border-color .2s}
body[data-theme=dark] .check{border-color:#8e8e93}
body[data-theme=dark] .check.done{border-color:var(--lime)}
.check::after{content:'';position:absolute;inset:-8px;border-radius:50%}
.check.done{background:var(--lime);border-color:var(--lime)}
.check svg{width:18px;height:18px;stroke-width:3.2}
.agenda-row.is-done .agenda-text strong{color:var(--text-2);text-decoration:line-through;text-decoration-color:var(--text-3)}
.agenda-row.is-done .agenda-icon{opacity:.55}
.dashed-add{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 14px 12px 20px;border:1.5px dashed var(--fill-2);border-radius:var(--radius);color:var(--text-2);font-size:17px;text-align:left}
.dashed-add>span:last-child{width:32px;height:32px;border-radius:50%;background:var(--card);color:var(--text);display:flex;align-items:center;justify-content:center}
.dashed-add svg{width:16px;height:16px;stroke-width:2.6}
.footnote{text-align:center;color:var(--text-3);font-size:13px;margin:30px 0 4px}

/* Quick log tiles */
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quick-tile{display:flex;align-items:center;gap:12px;min-height:80px;padding:14px 16px;border-radius:var(--radius);background:var(--card);text-align:left}
.quick-tile .tile-icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tone);color:#000}
.quick-tile .tile-icon svg{width:22px;height:22px;stroke-width:2.2}
.quick-tile strong{display:block;font-size:17px;font-weight:600;line-height:1.2}
.quick-tile small{display:block;font-size:13px;color:var(--text-2);margin-top:2px;font-variant-numeric:tabular-nums}

/* Inset grouped list */
.list{background:var(--card);border-radius:var(--radius);overflow:hidden}
.list-row{position:relative;display:flex;align-items:center;gap:12px;min-height:60px;padding:11px 16px}
.list-row+.list-row::before{content:'';position:absolute;top:0;right:0;left:var(--inset,16px);height:.5px;background:var(--sep)}
.list.with-icons{--inset:66px}
.list-row h3{font-size:17px;font-weight:500;line-height:1.3}
.list-row p{font-size:15px;color:var(--text-2);margin-top:2px;line-height:1.3}
.list-row .trail{color:var(--text-2);font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
.list-row>.icon-btn{background:none}
.list-row button.grow{display:block;text-align:left;padding:2px 0}
.row-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tone-soft,var(--fill));color:var(--tone,var(--text));flex-shrink:0}
.row-icon svg{width:21px;height:21px;stroke-width:2}
.list-group-label{font-size:15px;font-weight:600;color:var(--text-2);padding:14px 16px 4px;background:var(--card)}
.meal-row .meal-time{width:48px;font-family:var(--font-round);font-size:16px;font-weight:600;color:var(--orange);font-variant-numeric:tabular-nums}
.meal-row .meal-body{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.meal-row h3{font-weight:600}
.meal-row.is-done h3{color:var(--text-2);text-decoration:line-through;text-decoration-color:var(--text-3)}
.meal-row .row-actions{display:flex;align-items:center;gap:4px}
.meal-row .row-actions .icon-btn{background:none;width:32px;min-width:32px}
.meal-row .check{width:30px;height:30px}

/* Macros */
.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px;padding-top:14px;border-top:.5px solid var(--sep)}
.macro-grid span{font-size:15px;color:var(--text)}
.macro-grid strong{display:block;font-family:var(--font-round);font-size:20px;font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums;color:var(--tone,var(--text))}
.macro-grid strong small{font-size:.7em;text-transform:uppercase}
.macro-grid .bar{height:5px;margin-top:8px}

/* Workout cards (Fitness Workout) */
.workout-card{display:block;border-radius:var(--radius);background:var(--workout-card);padding:20px 20px 18px;color:var(--text)}
.workout-card+.workout-card,.card+.workout-card,.workout-card+.card,.banner+.workout-card{margin-top:12px}
.workout-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.workout-glyph{color:var(--accent)}
.workout-glyph svg{width:54px;height:54px;stroke-width:2.1}
.play{width:62px;height:62px;border-radius:50%;background:var(--lime);color:var(--on-lime);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s}
.play:active{transform:scale(.94)}
.play svg{width:26px;height:26px;stroke-width:2.6}
.play .fill{fill:currentColor;margin-left:3px}
.workout-title{font-size:24px;line-height:1.2;font-weight:700;letter-spacing:.1px;margin-top:14px;text-align:left}
.workout-sub{font-size:17px;color:var(--text-2);margin-top:3px;text-align:left}
.workout-sub b{color:var(--accent);font-weight:600}
.workout-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.workout-actions button{min-height:58px;border-radius:20px;background:var(--workout-btn);color:var(--text);display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.workout-actions button:last-child{background:var(--workout-btn-on)}
.workout-actions svg{width:21px;height:21px;stroke-width:2.2}
.workout-card .exercise-list{margin-top:16px}
.workout-card .exercise-list li{border-color:rgba(186,253,79,.12)}
.workout-card .exercise-list li::before{background:var(--workout-btn-on);color:var(--accent)}
.workout-card .guide-list li svg{color:var(--accent)}
.workout-card .note{margin:14px 0 0}
.exercise-list{counter-reset:ex;margin-top:4px}
.exercise-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:.5px solid var(--sep);font-size:17px}
.exercise-list li:last-child{border-bottom:0}
.exercise-list li::before{counter-increment:ex;content:counter(ex);width:28px;height:28px;border-radius:50%;background:var(--fill);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:var(--font-round)}
.exercise-list li span{flex:1;min-width:0}
.exercise-list li small{color:var(--text-2);font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}
.guide-list{display:grid;gap:10px;margin-top:16px}
.guide-list li{display:flex;gap:10px;font-size:16px;line-height:1.35}
.guide-list li svg{width:19px;height:19px;color:var(--tone,var(--accent));margin-top:1px;stroke-width:2.6}
.level-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;background:var(--workout-btn-on);color:var(--accent);font-size:15px;font-weight:600}
.mini-bars{display:flex;align-items:flex-end;gap:5px;height:64px}
.mini-bars i{display:block;width:10px;border-radius:3px;background:var(--fill-2)}
.mini-bars i.done{background:var(--text-2)}
.mini-bars i.current{background:var(--accent)}
.mini-bars i.recovery{opacity:.6}
.status-dot{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--text-3);color:var(--on-lime);flex-shrink:0}
.status-dot.done{background:var(--lime);border-color:var(--lime)}
.status-dot svg{width:15px;height:15px;stroke-width:3.2}
.level-row.current{background:var(--workout-card)}
.level-row .lv{width:34px;font-family:var(--font-round);font-weight:700;color:var(--text-2);font-size:17px}
.level-row.current .lv{color:var(--accent)}
.workout-library{display:grid;gap:12px}

/* Evolution (Fitness Activities) */
.compare-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 2px 12px}
.compare-head h2{font-size:22px;font-weight:700;color:var(--accent)}
.compare-head p{font-size:15px;color:var(--text-2);text-transform:uppercase;letter-spacing:.2px;margin-top:2px}
.metric-toggle{display:flex;gap:2px;padding:3px;border-radius:99px;background:var(--card)}
.metric-toggle button{width:44px;height:34px;border-radius:99px;display:flex;align-items:center;justify-content:center;color:var(--text)}
.metric-toggle button.active{background:#636366}
body[data-theme=light] .metric-toggle{background:var(--fill)}
body[data-theme=light] .metric-toggle button.active{background:#fff}
.chart{width:100%;margin-top:12px}
.chart svg{width:100%;height:auto}
.chart text{font-family:var(--font);font-size:12px;fill:var(--text-2)}
.chart .today-label{fill:var(--text);font-weight:600}
.legend{display:flex;gap:16px;font-size:13px;color:var(--text-2);margin-top:8px}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:14px;height:3px;border-radius:2px;background:var(--chart)}
.legend i.prev{background:var(--text-3)}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.summary-tile{border-radius:var(--radius);background:var(--card);padding:16px 18px;min-height:136px;display:flex;flex-direction:column;justify-content:space-between}
.summary-tile>span{font-size:17px;color:var(--text-2)}
.summary-tile .tile-body{display:flex;align-items:center;gap:12px;margin-top:14px}
.cmp{width:44px;height:44px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cmp svg{width:20px;height:20px;stroke-width:3}
.summary-tile strong{display:block;white-space:nowrap;font-family:var(--font-round);font-size:30px;line-height:1.05;font-weight:600;font-variant-numeric:tabular-nums}
.summary-tile strong small{font-size:.6em;text-transform:uppercase}
.summary-tile .prev{display:block;font-size:15px;color:var(--text-2);margin-top:3px;font-variant-numeric:tabular-nums}
.summary-tile.highlight{background:var(--lime);color:var(--on-lime)}
.summary-tile.highlight>span,.summary-tile.highlight .prev{color:rgba(10,10,10,.65)}
.summary-tile.highlight .cmp{background:rgba(10,10,10,.12)}
.goal{text-align:right}
.goal span{display:block;font-size:15px;color:var(--text-2)}
.goal strong{font-family:var(--font-round);font-size:22px;font-weight:600}
.goal strong small{text-transform:uppercase;font-size:.7em}
.weight-chart{position:relative;margin-top:14px}
.weight-chart svg{width:100%;height:auto}
.chart-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;background:linear-gradient(transparent,var(--card) 60%)}
.chart-empty h3{font-size:17px}
.chart-empty p{font-size:15px;color:var(--text-2);max-width:240px}
.checkin-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:4px}
.checkin-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:100px;border-radius:var(--radius);background:var(--card);font-size:17px;font-weight:600}
.checkin-options button svg{width:28px;height:28px;color:var(--tone);stroke-width:2}
.modal-body .checkin-options button{background:var(--fill)}
.suggestion{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;background:var(--fill);margin-top:14px;font-size:16px;line-height:1.4}
.suggestion svg{width:21px;height:21px;color:var(--accent);margin-top:1px}

/* Run */
.run-hero{text-align:center;padding:22px 18px}
.run-status{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:99px;background:var(--fill);font-size:15px;font-weight:600;color:var(--text-2)}
.run-status.active{background:var(--workout-btn-on);color:var(--accent)}
.run-status .dot{width:8px;height:8px;border-radius:50%;background:currentColor}
.run-status.active .dot{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.3}}
.run-timer{font-family:var(--font-round);font-size:68px;line-height:1.1;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--accent);margin:22px 0 18px}
body[data-theme=light] .run-timer{color:var(--text)}
.run-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px 0;border-top:.5px solid var(--sep);border-bottom:.5px solid var(--sep)}
.run-stats strong{display:block;font-family:var(--font-round);font-size:26px;font-weight:600;font-variant-numeric:tabular-nums}
.run-stats strong small{font-size:.6em;text-transform:uppercase;color:var(--text-2)}
.run-stats p{font-size:15px;color:var(--text-2);margin-top:2px}
.run-target{margin-top:16px;text-align:left}
.run-target .between{font-size:15px;color:var(--text-2)}
.run-buttons{display:flex;gap:10px;justify-content:center;margin:20px 0 6px}
.run-buttons .btn{flex:1;max-width:240px}
.map-panel{position:relative;height:240px;border-radius:20px;overflow:hidden;background:var(--fill);margin-top:12px}
.map-panel>svg{width:100%;height:100%}
.map-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:16px}
.map-pin{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--lime);color:var(--on-lime)}
.map-overlay p{font-size:15px;color:var(--text-2);background:var(--card);padding:6px 12px;border-radius:12px}

/* Week agenda */
.week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.week-nav h2{font-size:17px;font-weight:600}
.week-nav .controls{display:flex;align-items:center;gap:6px}
.day-card{padding:14px 16px}
.day-card.today{box-shadow:inset 0 0 0 1.5px var(--accent)}
.day-card-head{display:flex;align-items:center;justify-content:space-between;width:100%;padding-bottom:10px}
.day-card-head h3{font-size:20px;font-weight:600}
.day-card-head span{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--text-2);white-space:nowrap}
.agenda-line{display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;border-top:.5px solid var(--sep);text-align:left;font-size:16px}
.agenda-line time{width:48px;font-family:var(--font-round);font-weight:600;color:var(--tone);font-variant-numeric:tabular-nums;flex-shrink:0}
.agenda-line .tag{width:8px;height:8px;border-radius:50%;background:var(--tone);flex-shrink:0}
.agenda-line strong{font-weight:500;flex:1;min-width:0}
.agenda-line.done strong{color:var(--text-2);text-decoration:line-through;text-decoration-color:var(--text-3)}
.agenda-line .trail{color:var(--text-2);font-size:14px;white-space:nowrap}
.day-card .dashed-add{min-height:46px;margin-top:8px;font-size:15px;padding:6px 8px 6px 14px;border-radius:16px}
.day-card .dashed-add>span:last-child{width:30px;height:30px;background:var(--fill)}

/* Profile */
.profile-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:0 0 22px}
.profile-photo{width:100px;height:100px;border-radius:50%;overflow:hidden;background:var(--fill-2);display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:600;margin-bottom:10px;border:2px solid #3a3a3c}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-hero h2{font-size:28px;font-weight:700}
.profile-hero p{font-size:17px;color:var(--text-2)}
.plan-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin:18px 0 4px;padding-top:16px;border-top:.5px solid var(--sep)}
.plan-metrics span{display:block;font-size:15px;color:var(--text)}
.plan-metrics strong{display:block;font-family:var(--font-round);font-size:26px;font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums;color:var(--tone,var(--text))}
.plan-metrics strong small{font-size:.6em;text-transform:uppercase}
.switch{width:51px;height:31px;border-radius:99px;background:var(--fill-2);padding:2px;flex-shrink:0;transition:background .2s}
.switch>i{display:block;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);transition:transform .2s}
.switch.on{background:#34c759}
.switch.on>i{transform:translateX(20px)}
details.disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:32px;font-size:20px;font-weight:600}
details.disclosure>summary::-webkit-details-marker{display:none}
details.disclosure>summary>span{display:flex;align-items:center;gap:10px}
details.disclosure>summary>span>svg{color:var(--accent)}
details.disclosure>summary>svg{width:18px;height:18px;color:var(--text-2);transition:transform .2s}
details.disclosure[open]>summary>svg{transform:rotate(180deg)}
.prose{font-size:16px;line-height:1.5;color:var(--text-2)}
.prose p{margin-top:12px}
.prose strong{color:var(--text);font-weight:600}
.sources{display:grid;gap:8px;margin-top:14px;font-size:15px}
.ingredient-list{display:grid;gap:2px;margin-top:12px}
.ingredient-list label{display:flex;align-items:center;gap:12px;min-height:46px;font-size:17px;color:var(--text);border-top:.5px solid var(--sep)}
.ingredient-list input{width:22px;height:22px;accent-color:#8fcf1a;flex-shrink:0;margin:0}

/* Forms (≥16px avoids zoom on iOS) */
input,select,textarea{width:100%;min-height:50px;padding:12px 14px;border:0;border-radius:14px;background:var(--fill);color:var(--text);font-size:17px;outline-offset:2px}
input[type=checkbox]{width:22px;min-height:22px;height:22px;padding:0;accent-color:#8fcf1a;flex-shrink:0}
select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--text-2) 50%),linear-gradient(135deg,var(--text-2) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:36px}
textarea{resize:vertical;min-height:96px;line-height:1.4}
label{display:flex;flex-direction:column;gap:6px;font-size:15px;color:var(--text-2)}
label.inline{flex-direction:row;align-items:center;gap:12px;font-size:17px;color:var(--text)}
fieldset{border:0;margin:0;padding:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
.full-width{grid-column:1/-1}
.form-note{font-size:15px;line-height:1.45;color:var(--text-2);margin:14px 0}
.form-note a{color:var(--accent)}

/* Banners */
.offline-banner,.active-session{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:20px;margin:6px 0 12px;font-size:16px}
.offline-banner{background:var(--card);color:var(--text-2)}
.active-session{background:var(--workout-card);color:var(--text)}
.active-session span{display:flex;align-items:center;gap:8px}
.active-session span svg{color:var(--accent)}
.active-session button{font-weight:600;color:var(--accent)}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 12px;text-align:center;color:var(--text-2);font-size:16px}
.empty-state svg{width:30px;height:30px;color:var(--accent)}
.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:99px;background:var(--workout-btn-on);color:var(--accent);font-size:14px;font-weight:600}
.pill svg{width:14px;height:14px;stroke-width:2.8}

/* Tab bar — Liquid Glass capsule, as in Fitness */
.tabbar{position:fixed;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 6px);z-index:50;display:flex;justify-content:center;padding:0 16px;pointer-events:none}
.tabbar-pill{pointer-events:auto;display:flex;width:100%;max-width:344px;padding:5px;border-radius:99px;background:var(--glass);border:.5px solid var(--glass-border);box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(28px) saturate(190%);backdrop-filter:blur(28px) saturate(190%)}
.tabbar-pill a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;border-radius:99px;font-size:11.5px;font-weight:600;letter-spacing:0;color:var(--text);transition:background .2s,color .2s}
.tabbar-pill a svg{width:28px;height:28px}
.tabbar-pill a.active{background:var(--glass-active);color:var(--accent)}
.tabbar-pill a:active{transform:scale(.96)}
.tab-run path{stroke:#1c1c1e}

/* Sheets */
dialog{padding:0;border:0;color:var(--text);background:var(--card);border-radius:30px;width:calc(100% - 32px);max-width:560px;max-height:88dvh;box-shadow:0 30px 100px rgba(0,0,0,.5)}
dialog::backdrop{background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px 20px 12px;background:var(--card)}
.modal-head h2{font-size:28px;line-height:1.15;font-weight:700}
.modal-head p{font-size:17px;color:var(--text-2);margin-top:4px;line-height:1.35}
.modal-head .icon-btn{width:32px;height:32px;min-width:32px;background:var(--fill-2);color:var(--text)}
.modal-body{padding:6px 20px calc(24px + env(safe-area-inset-bottom))}
.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.modal-footer .btn{flex:1}
.confirm-text{font-size:17px;line-height:1.45;color:var(--text-2)}
.choice-list{display:grid;gap:8px}
.choice-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:20px;background:var(--fill);text-align:left}
.choice-row h3{font-size:17px;font-weight:600}
.choice-row p{font-size:14px;color:var(--text-2);margin-top:2px;line-height:1.35}
.choice-row>div{flex:1;min-width:0}
.choice-row>svg{color:var(--text-2)}
.food-art{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,159,10,.17);color:var(--orange);flex-shrink:0}
.food-art svg{width:22px;height:22px}
.quick-sheet{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quick-sheet button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px;border-radius:24px;background:var(--fill);text-align:left;min-height:118px}
.quick-sheet .tile-icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tone);color:#000}
.quick-sheet .tile-icon svg{width:22px;height:22px;stroke-width:2.2}
.quick-sheet strong{font-size:17px;font-weight:600}
.quick-sheet small{display:block;font-size:14px;color:var(--text-2);margin-top:2px}
.meal-detail .value{margin-top:14px;color:var(--orange)}
.meal-detail>p{font-size:17px;line-height:1.5;color:var(--text-2)}
.ingredients{margin-top:6px}
.ingredients li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:.5px solid var(--sep);font-size:17px}
.workout-timer{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:20px;background:var(--workout-card);color:var(--accent);margin-bottom:8px}
.workout-timer>span{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600}
.workout-timer strong{font-family:var(--font-round);font-size:30px;font-weight:600;font-variant-numeric:tabular-nums}
body[data-theme=light] .workout-timer{color:var(--text)}
.rest-timer{min-height:22px;font-size:16px;color:var(--accent);margin:6px 0;font-weight:500}
.exercise-row{padding:16px 0;border-bottom:.5px solid var(--sep)}
.exercise-row:last-of-type{border-bottom:0}
.exercise-row h3{font-size:18px;font-weight:600}
.exercise-tip{font-size:15px;line-height:1.45;color:var(--text-2);margin-top:6px}
.set-buttons{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.set-btn{min-width:52px;height:46px;border-radius:16px;background:var(--fill);font-family:var(--font-round);font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center}
.set-btn.done{background:var(--lime);color:var(--on-lime)}
.set-btn svg{width:19px;height:19px;stroke-width:3.2}
.routine-exercise{padding:16px;border-radius:20px;background:var(--fill);margin-top:14px}
.routine-exercise input,.routine-exercise textarea{background:var(--card)}
.routine-exercise .form-grid{margin-top:10px}
.routine-exercise h3{font-size:17px}
.notification-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border-bottom:.5px solid var(--sep);text-align:left}
.notification-row:last-of-type{border-bottom:0}
.notification-row strong{display:block;font-size:17px;font-weight:600}
.notification-row p{font-size:14px;color:var(--text-2);margin-top:2px}
.notification-row time{font-family:var(--font-round);font-size:16px;font-weight:600;color:var(--accent);margin-left:auto;font-variant-numeric:tabular-nums}
.inbox-head{display:flex;align-items:center;justify-content:space-between;margin:-6px 0 2px}
.inbox-head span{font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--text-2)}
.inbox-row{padding:0;gap:6px}
.inbox-open{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;padding:12px 0;text-align:left}
.inbox-open p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inbox-row time{flex:none;margin-top:3px;font-family:inherit;font-size:13px;font-weight:400;color:var(--text-2)}
.inbox-row .icon-btn{flex:none}
.inbox-open:active{opacity:.6;transition:opacity .12s}
.install-steps{display:grid;gap:14px;margin-top:6px}
.install-step{display:flex;gap:12px;font-size:17px;line-height:1.4}
.install-step>span{width:30px;height:30px;border-radius:50%;background:var(--lime);color:var(--on-lime);display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;font-size:15px}
.install-step p{font-size:15px;color:var(--text-2)}

#toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 86px);transform:translate(-50%,12px);z-index:150;width:max-content;max-width:calc(100% - 32px);padding:13px 18px;border-radius:20px;background:var(--glass);color:var(--text);border:.5px solid var(--glass-border);box-shadow:var(--glass-shadow);-webkit-backdrop-filter:blur(28px) saturate(190%);backdrop-filter:blur(28px) saturate(190%);font-size:16px;line-height:1.35;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.show{opacity:1;transform:translate(-50%,0)}

.two-col{display:grid;gap:12px}
@media(min-width:900px){
 :root{--gutter:24px}
 .large-title h1{font-size:40px}
 .two-col{grid-template-columns:1fr 1fr;align-items:start}
 dialog{margin:auto}
}
@media(max-width:899px){
 dialog{width:100%;max-width:none;margin:auto 0 0;max-height:92dvh;border-radius:30px 30px 0 0}
 dialog::before{content:'';position:absolute;top:7px;left:calc(50% - 18px);width:36px;height:5px;border-radius:3px;background:var(--text-3);z-index:5}
}
@media(max-width:374px){
 :root{--gutter:14px}
 .large-title h1{font-size:30px}
 .glass-btn,.avatar{width:42px;height:42px;min-width:42px}
 .title-actions{gap:8px}
 .rings-card{grid-template-columns:1fr;justify-items:center}
 .rings-card .ring-legend{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;text-align:center}
 .ring-legend strong{font-size:17px}
 .agenda-icon{width:42px;height:42px}
 .agenda-main{gap:10px}
 .day-button>strong{font-size:20px}
 .tabbar-pill a{height:54px;font-size:10.5px}
 .summary-tile strong{font-size:24px}
 .workout-actions button{font-size:15px}
}
@media(prefers-reduced-transparency:reduce){
 .tabbar-pill,.glass-btn,.back-button,#toast{background:var(--card);-webkit-backdrop-filter:none;backdrop-filter:none}
 dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Round 3: agenda glasses, partial goals, calorie breakdown, real map */
.filters{margin:4px 0 0}
.agenda-row.compact{min-height:60px;padding-top:10px;padding-bottom:10px}
.agenda-row.compact .agenda-icon{width:40px;height:40px}
.agenda-row.compact .agenda-icon svg{width:21px;height:21px}
.agenda-row.compact .agenda-text strong{font-size:16px}
.agenda-row.compact .agenda-time{font-size:15px}
.check.partial{border-color:transparent!important;background:none}
.check.partial svg{position:absolute;inset:-2px;width:32px;height:32px}
.check.partial .arc{fill:none;stroke:var(--lime);stroke-width:3;stroke-linecap:round}
.check.partial::before{content:'';position:absolute;inset:-2px;border-radius:50%;border:2px solid var(--text-3)}
body[data-theme=light] .check.partial .arc{stroke:#7ab800}
.week-card{display:flex;flex-direction:column;width:100%;text-align:left;margin-top:12px}
.week-bars{flex:1;max-width:220px;height:62px;gap:8px;align-items:stretch;padding-top:0}
.week-bars>span{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.week-bars i{width:100%;max-width:14px;border-radius:3px;background:var(--fill-2)}
.week-bars i.on{background:var(--blue)}
.week-bars i.half{background:linear-gradient(var(--fill-2) 50%,var(--blue) 50%)}
.week-bars small{font-size:11px;color:var(--text-2);font-weight:600}
.week-bars small.today{color:var(--accent)}
.calories-card .value{margin-top:2px}
.energy-stack{display:flex;gap:3px;height:12px;margin:14px 0 6px;border-radius:6px;overflow:hidden}
.energy-stack i,.energy-parts li>i{display:block;background:var(--seg)}
.seg-rest{--seg:var(--purple)}.seg-life{--seg:var(--blue)}.seg-train{--seg:var(--lime)}.seg-gain{--seg:var(--red)}
.energy-parts{display:grid;gap:12px;margin-top:14px}
.energy-parts li{display:flex;gap:12px;align-items:flex-start}
.energy-parts li>i{width:10px;height:10px;border-radius:50%;margin-top:6px;flex-shrink:0}
.energy-parts strong{font-size:16px;font-weight:600}
.energy-parts p{font-size:14px;line-height:1.4;color:var(--text-2);margin-top:2px}
.energy-total{font-size:14px;color:var(--text-2);margin-top:14px;padding-top:12px;border-top:.5px solid var(--sep);font-variant-numeric:tabular-nums}
.energy-total b{color:var(--text);font-weight:600}
.today-energy{margin-top:14px;padding:12px 14px;border-radius:18px;background:var(--workout-card)}
.today-energy .between span{font-size:15px;color:var(--text-2)}
.today-energy strong{font-family:var(--font-round);font-size:20px;color:var(--accent)}
.today-energy p{font-size:14px;line-height:1.4;color:var(--text-2);margin-top:4px}
.macro-line{font-size:14px;margin-top:12px;color:var(--text-2)}
.macro-line .tone-lime,.macro-line .tone-run,.macro-line .tone-food{color:var(--tone);font-weight:600}
.goal-progress{margin-top:14px;font-size:15px;color:var(--text-2)}
.goal-progress b{color:var(--text)}
.goal-progress .bar{margin-top:8px}
.sheet-sub{font-size:17px;font-weight:600;margin:20px 0 8px}
.map-panel.has-map{background:var(--map-bg);height:auto;aspect-ratio:400/250}
.map-panel.has-map>svg{display:block}
.map-credit{position:absolute;right:8px;bottom:6px;font-size:10px;color:rgba(255,255,255,.75);background:rgba(0,0,0,.45);padding:2px 6px;border-radius:6px}
body[data-theme=light] .map-credit{color:#333;background:rgba(255,255,255,.75)}
.run-stats.summary{grid-template-columns:repeat(2,1fr);row-gap:16px;margin-top:14px;text-align:center}
.split-row .lv{width:28px}
.split-row .bar{margin-top:0;height:8px}
.split-row .trail.best{color:var(--accent);font-weight:600}
.suggestion{margin-top:12px}

/* Motion: springs and continuity (dist/motion.mjs animates what re-renders would otherwise swap abruptly) */
:root{--spring:cubic-bezier(.3,1.3,.5,1);--soft:cubic-bezier(.22,1,.36,1);--sheet:cubic-bezier(.32,.72,0,1)}
.tabbar-pill,.segmented,.week-strip{position:relative}
.tabbar-pill>a,.segmented>button,.week-strip>.day-button{position:relative;z-index:1}
.thumb-ghost{position:absolute;left:0;top:0;z-index:0;pointer-events:none;transform-origin:center}
.thumb-moving{background:transparent!important;box-shadow:none!important;transition:none!important}
.motion-layer{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden}
/* Press feedback: everything tappable gives a little under the finger and springs back. */
.glass-btn,.avatar,.round-add,.period-chip,.pill-button,.month-link,.back-button,.icon-btn,.quick-tile,.dashed-add,.text-link,.day-button,.segmented button,.tabbar-pill a,button.card,.agenda-row,.meal-row,.list-row,.workout-actions button,.play{transition:transform .4s var(--spring),background-color .25s,color .25s,opacity .2s}
.check{transition:transform .4s var(--spring),background .2s,border-color .2s}
:is(.glass-btn,.avatar,.round-add,.pill-button,.month-link,.back-button,.icon-btn,.quick-tile,.dashed-add,.day-button,.segmented button,.tabbar-pill a,.workout-actions button):active{transform:scale(.94);transition-duration:.12s}
:is(.period-chip,.text-link):active{transform:scale(.97);transition-duration:.12s}
button.card:active,.agenda-row:has(.agenda-main:active),.meal-row:has(.meal-body:active),.list-row:has(>button:active){transform:scale(.975);transition-duration:.12s}
.check:active{transform:scale(.86);transition-duration:.1s}
.round-add svg{transition:transform .45s var(--spring)}
.round-add:active svg{transform:rotate(90deg)}
/* Ticking an item: the circle pops with a ripple, the tick draws itself and the title is struck through. */
.check.pop{animation:check-pop .55s var(--spring)}
.check.pop::before{content:'';position:absolute;inset:-2px;border-radius:50%;border:2px solid var(--lime);pointer-events:none;animation:check-ripple .65s ease-out forwards}
.check.pop svg path{animation:check-draw .42s .1s ease-out backwards}
@keyframes check-pop{0%{transform:scale(.55)}55%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes check-ripple{from{transform:scale(1);opacity:.85}to{transform:scale(2.1);opacity:0}}
@keyframes check-draw{from{stroke-dasharray:0 30}to{stroke-dasharray:30 0}}
.agenda-text .label,.meal-row h3 .label{-webkit-box-decoration-break:clone;box-decoration-break:clone}
.agenda-row.is-done .agenda-text strong,.meal-row.is-done h3{text-decoration:none}
.agenda-row.is-done .label,.meal-row.is-done .label{background:linear-gradient(var(--text-3),var(--text-3)) 0 56%/100% 1.5px no-repeat}
.just-done .label{animation:strike .5s .12s var(--soft) backwards}
.just-done .agenda-icon{animation:settle .45s var(--soft)}
@keyframes strike{from{background-size:0 1.5px}}
@keyframes settle{from{opacity:1;transform:scale(1.08)}}
/* Sheets rise from the bottom and can be dragged down; on wide screens they scale in. */
dialog[open]{animation:sheet-in .42s var(--soft)}
dialog[open]::backdrop{animation:fade-in .35s ease-out}
dialog[open].closing{animation:sheet-out .26s cubic-bezier(.4,0,1,1) forwards}
dialog[open].closing::backdrop{animation:fade-out .26s ease-in forwards}
dialog.dragging{animation:none}
@keyframes sheet-in{from{opacity:0;transform:translateY(18px) scale(.95)}}
@keyframes sheet-out{to{opacity:0;transform:translateY(12px) scale(.96)}}
@keyframes sheet-up{from{transform:translateY(100%)}}
@keyframes sheet-down{from{transform:translateY(var(--drag,0px))}to{transform:translateY(100%)}}
@keyframes fade-in{from{opacity:0}}
@keyframes fade-out{to{opacity:0}}
@media(max-width:899px){
 dialog[open]{animation:sheet-up .52s var(--sheet)}
 dialog[open].closing{animation:sheet-down .32s cubic-bezier(.4,0,.9,.6) forwards}
 .modal-head{touch-action:none}
 dialog::before{pointer-events:none}
}
/* Toasts spring up from the tab bar. */
#toast{transform:translate(-50%,18px) scale(.92);transition:opacity .25s ease,transform .55s var(--spring)}
#toast.show{transform:translate(-50%,0) scale(1)}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop,dialog[open].closing,dialog[open].closing::backdrop{animation:none!important}}
/* Sideways page slides must never widen the page (iOS would zoom out for a frame). */
.app-shell{overflow-x:hidden;overflow-x:clip}
/* Both languages share the same type scale; long copy wraps without shrinking form controls. */
.large-title h1{font-size:clamp(1.875rem,5vw,2.125rem);overflow-wrap:anywhere;flex:1}
.title-sub{flex-wrap:wrap;gap:8px}.title-sub>span{min-width:0;overflow-wrap:anywhere}
.section-head>div,.agenda-text,.grow,.workout-actions button,.split>div{min-width:0}
.agenda-text strong,.workout-title,.form-note,.account-panel p{overflow-wrap:anywhere}
.segmented button{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.language-options{align-items:stretch}.language-options button{font-size:.875rem;padding:12px 8px}
input,select,textarea{font-size:max(16px,1rem)}
.billing-price{font-size:2.5rem;font-weight:700;margin-top:14px}.billing-price small{font-size:1rem}
.billing-card p{overflow-wrap:anywhere}.btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:374px){.title-actions{gap:5px}.glass-btn,.avatar{width:38px;height:38px;min-width:38px}.ring-legend strong{font-size:1.1rem}.language-options button{font-size:.8125rem}.tabbar-pill a{font-size:.7rem}.productivity-card .value{font-size:2rem}}
