/* Movaleno — Noir : lumière, relief et repères colorés fonctionnels. */
:root {
  color-scheme:dark;
  --bg:#08090b; --panel:#141518; --raised:#25272c; --border:#34363c;
  --text:#f5f5f5; --muted:#b1b1b1; --accent:#ededed; --accentText:#101010;
  --accentInk:#ededed; --signal:#a9aeb6; --signalText:#101010; --focus:#ffffff; --inputBorder:#737373;
  --heroBg:#101010; --heroText:#fafafa; --heroMuted:#c0c0c0; --heroBorder:#353535;
  --heroEyebrow:#c7c7c7; --heroTag:#232323; --heroTagText:#eeeeee; --heroPattern:#ffffff; --heroPatternOpacity:.08;
  --surfaceTop:#27292e; --surfaceBottom:#101114; --edgeLight:#ffffff42; --edgeShade:#ffffff0c;
  --surfaceShadow:0 14px 40px #00000045, inset 0 1px 0 #ffffff09;
  --strength:#3ddc97; --cardio:#4da3ff; --training:var(--strength); --nutrition:#ffb020; --nutritionGlow:#ffe0a8; --mobility:#a78bfa; --check:#a9aeb6;
  --hydration:var(--cardio); --weight:var(--check); --fat:var(--nutrition); --success:#a9aeb6;
  --surfaceBeam:#ffffff0b; --softShadow:var(--surfaceShadow);
  --warn:#e0e0e0; --error:#ffb4b4; --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
[data-theme="light"] {
  color-scheme:light;
  --bg:#f4f4f4; --panel:#ffffff; --raised:#ededed; --border:#d2d2d2;
  --text:#141414; --muted:#555555; --accent:#171717; --accentText:#ffffff; --accentInk:#171717;
  --signal:#171717; --signalText:#ffffff; --focus:#171717; --inputBorder:#767676;
  --heroBg:#101010; --heroText:#fafafa; --heroMuted:#c0c0c0; --heroBorder:#353535;
  --heroEyebrow:#c7c7c7; --heroTag:#232323; --heroTagText:#eeeeee; --heroPattern:#ffffff; --heroPatternOpacity:.08;
  --surfaceTop:#ffffff; --surfaceBottom:#f4f5f7; --edgeLight:#ffffff; --edgeShade:#d7d9df;
  --surfaceShadow:0 8px 22px #1018270b, inset 0 1px 0 #ffffff;
  --strength:#137b50; --cardio:#2269ba; --training:var(--strength); --nutrition:#936000; --nutritionGlow:#b87b11; --mobility:#7656b8; --check:#626975;
  --hydration:var(--cardio); --weight:var(--check); --fat:var(--nutrition); --success:#626975;
  --surfaceBeam:#00000003; --softShadow:var(--surfaceShadow); --warn:#6d521c; --error:#a32424;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 var(--sans); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.15; letter-spacing:-.035em; }
h1 { font-size:clamp(2rem,5vw,3.15rem); }
h2 { font-size:1.45rem; }
h3 { font-size:1.08rem; }
h2,h3 { line-height:1.28; letter-spacing:-.02em; }
.metric strong,.nutrition-energy-stat strong,.nutrition-macro strong,.personal-tracking-card strong,output { font-variant-numeric:tabular-nums; }
small,.muted { color:var(--muted); }
a { color:inherit; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
button,input,textarea,select { font:inherit; }
button,a.btn { cursor:pointer; }
a.btn { text-decoration:none; }
button:disabled { cursor:wait; opacity:.65; }
input,textarea,select { border:1px solid var(--inputBorder); border-radius:9px; padding:.67rem .78rem; color:var(--text); background:var(--bg); width:100%; }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
input[type=checkbox],input[type=radio] { accent-color:var(--accentInk); width:1.1rem; height:1.1rem; margin:0; flex:none; }
textarea { resize:vertical; min-height:76px; }
label { display:grid; gap:5px; font-weight:600; min-width:0; }
label small { font-weight:400; }
label.check { display:flex; align-items:center; gap:9px; font-weight:500; }
fieldset { border:1px solid var(--border); border-radius:12px; padding:14px; margin:0; min-width:0; }
legend { padding:0 .4rem; font-weight:650; }
.skip { position:fixed; top:-100px; left:12px; padding:8px; z-index:30; background:var(--panel); }
.skip:focus { top:10px; }
.boot { padding:8vh 6vw; }
.shell { min-height:100vh; display:grid; grid-template-columns:232px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; padding:23px 14px; display:flex; flex-direction:column; gap:26px; border-right:1px solid var(--border); background:var(--panel); }
.brand { display:flex; align-items:center; gap:11px; padding:3px 7px; font-weight:790; letter-spacing:-.035em; font-size:1.16rem; line-height:1.1; }
.brand .brand-mark { width:40px; height:40px; border-radius:11px; flex:none; }
.brand-name { min-width:0; }
.brand .brand-wordmark { display:block; width:124px; height:25px; object-fit:contain; object-position:left center; }
[data-theme="light"] .brand-wordmark { filter:none; }
.brand-wordmark-light { display:none !important; }
[data-theme="light"] .brand-wordmark-light { display:block !important; }
[data-theme="light"] .brand-wordmark-dark { display:none !important; }
.brand-enter .brand-mark { animation:brand-arrive .38s ease-out both; }
@keyframes brand-arrive { from { opacity:.45; transform:translateY(3px) scale(.94); } to { opacity:1; transform:none; } }
.brand small { display:block; font-size:.59rem; font-weight:650; margin-top:5px; text-transform:uppercase; letter-spacing:.13em; }
.nav { display:grid; gap:4px; }
.nav button { display:flex; align-items:center; gap:9px; border:1px solid transparent; background:none; color:var(--muted); padding:.62rem .7rem; border-radius:10px; text-align:left; font-weight:620; white-space:nowrap; }
.nav button:hover { background:var(--raised); }
.nav button[aria-current=page] { color:var(--text); background:var(--raised); border-color:var(--border); box-shadow:inset 3px 0 var(--accent); }
.nav button[aria-current=page] svg { color:var(--accentInk); }
.icon { width:19px; height:19px; stroke:currentColor; stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.sidefoot { display:grid; gap:7px; margin-top:auto; padding:0 5px; }
.sidefoot a { font-size:.83rem; color:var(--muted); }
.workspace { min-width:0; }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--border); background:var(--panel); padding:12px clamp(16px,4vw,54px); min-height:65px; }
.top .right { display:flex; align-items:center; gap:9px; min-width:0; }
.identity { display:flex; align-items:center; gap:8px; max-width:220px; overflow-wrap:anywhere; }
.avatar { display:grid; place-items:center; background:var(--raised); border:1px solid var(--border); border-radius:50%; width:32px; height:32px; flex:none; font-weight:800; font-size:.74rem; }
.content { width:min(100%,1240px); margin:0 auto; padding:29px clamp(16px,4vw,54px) 65px; display:grid; gap:21px; }
.eyebrow { font-size:.67rem; text-transform:uppercase; letter-spacing:.18em; font-weight:800; color:var(--muted); }
.heading { display:grid; gap:9px; }
.heading p { max-width:64ch; }
.hero { position:relative; isolation:isolate; overflow:hidden; display:grid; align-items:center; min-height:245px; color:var(--heroText); border-radius:22px; padding:clamp(22px,4.2vw,48px); background:var(--heroBg); border:1px solid var(--heroBorder); }
.hero:after { content:""; position:absolute; z-index:-1; inset:0 0 0 43%; opacity:var(--heroPatternOpacity); background:linear-gradient(90deg,var(--heroBg),transparent 40%),repeating-radial-gradient(ellipse at 84% 112%,transparent 0 17px,var(--heroPattern) 18px,var(--heroPattern) 19px,transparent 20px 26px); pointer-events:none; }
.hero .eyebrow { color:var(--heroEyebrow); }
.hero h1 { max-width:17ch; margin:11px 0; }
.hero p { color:var(--heroMuted); max-width:52ch; }
.hero .actions { margin-top:18px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,195px),1fr)); gap:12px; }
.split { display:grid; grid-template-columns:1.2fr .8fr; gap:14px; align-items:start; }
.panel { border:1px solid var(--border); background:var(--panel); border-radius:16px; box-shadow:var(--softShadow); padding:clamp(15px,2.4vw,24px); min-width:0; display:grid; gap:14px; }
.metric { min-height:110px; }
.metric strong { font-size:1.88rem; letter-spacing:-.04em; line-height:1; }
.metric small { line-height:1.25; }
.actions,.row { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.between { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:max-content; max-width:100%; min-height:42px; border:1px solid transparent; background:var(--accent); color:var(--accentText); border-radius:10px; padding:.48rem .81rem; font-weight:760; text-align:center; }
.btn:hover { filter:brightness(.94); }
.btn.secondary { background:var(--raised); border-color:var(--border); color:var(--text); }
.btn.ghost { background:transparent; color:var(--muted); border-color:var(--border); }
.btn.danger { background:transparent; border-color:var(--border); color:var(--error); }
.btn.tiny { font-size:.79rem; min-height:32px; }
.tag { display:inline-flex; gap:5px; padding:3px 9px; border-radius:100px; background:var(--raised); border:1px solid var(--border); color:var(--muted); font-size:.72rem; font-weight:680; }
.hero .tag { background:var(--heroTag); color:var(--heroTagText); border-color:var(--heroBorder); }
.hero .btn.ghost { color:var(--heroText); border-color:var(--inputBorder); }
.tag.good { color:var(--text); }
.error,.warn { color:var(--error); }
.warn { color:var(--warn); }
.notice-panel { background:var(--raised); border-radius:9px; padding:10px 13px; }
.stack { display:grid; gap:12px; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); gap:11px; }
.form-grid.wide { grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); }
.grocery-list { list-style:none; padding:0; display:grid; gap:12px; }
.grocery-list label { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; cursor:pointer; }
.grocery-list input { width:18px; height:18px; accent-color:var(--accentInk); }
.line { display:grid; gap:5px; padding:11px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.line:last-child { border-bottom:0; padding-bottom:0; }
.line:first-child { padding-top:0; }
.stepper { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; }
.stepper span { height:4px; border-radius:100px; background:var(--border); }
.stepper span.active { background:var(--accent); }
.day-grid { display:grid; grid-template-columns:repeat(7,minmax(88px,1fr)); gap:6px; overflow:auto; }
.day-card { min-height:105px; border:1px solid var(--border); padding:9px; background:var(--raised); border-radius:10px; }
.day-card.today { border-color:var(--accentInk); }
.day-card strong { display:block; font-size:.8rem; }
.day-card small { display:block; margin-top:4px; }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(46px,1fr)); gap:4px; }
.month-grid .day-card { min-height:52px; padding:5px; }
.set-row { display:grid; grid-template-columns:minmax(45px,.5fr) minmax(65px,1fr) minmax(65px,1fr) minmax(40px,.6fr); gap:8px; align-items:end; }
.set-row .check { justify-content:center; min-height:39px; }
.set-row small { align-self:center; }
.chart { display:flex; gap:7px; align-items:flex-end; min-height:130px; }
.chart .bar { display:grid; align-items:end; flex:1; gap:7px; text-align:center; color:var(--muted); font-size:.72rem; min-width:22px; }
.chart .bar meter { width:100%; height:30px; accent-color:var(--accentInk); }
.login { width:min(100% - 32px,700px); margin:6vh auto; display:grid; gap:17px; }
.login .hero { min-height:205px; }
.login .brand { padding:0; }
hr { border:0; border-top:1px solid var(--border); width:100%; }
code { overflow-wrap:anywhere; }
#notice { position:fixed; z-index:15; bottom:14px; right:14px; max-width:min(460px,calc(100% - 28px)); background:var(--raised); color:var(--text); border:1px solid var(--border); border-radius:10px; padding:10px 14px; box-shadow:0 8px 30px #0003; }
#notice:empty { display:none; }
@media(max-width:800px) {
  .shell { display:block; }
  .sidebar { height:auto; position:static; padding:11px 13px 6px; gap:9px; border-right:0; border-bottom:1px solid var(--border); }
  .nav { display:flex; overflow:auto; padding-bottom:5px; }
  .nav button { font-size:.78rem; padding:.43rem .52rem; }
  .nav .icon { width:16px; height:16px; }
  .sidefoot { display:none; }
  .top { min-height:49px; padding-block:7px; }
  .content { padding-top:18px; }
}
@media(max-width:620px) {
  .split { grid-template-columns:1fr; }
  .identity span:last-child { display:none; }
  .hero { min-height:202px; }
  .hero:after { inset:0 0 0 48%; opacity:.39; }
}
.day-card.btn { width:100%; display:block; text-align:left; }
.day-card[aria-pressed=true] { box-shadow:inset 0 -2px var(--accent); }
[hidden] { display:none !important; }
.nutrition-form { margin-top:14px; }
.nutrition-form output { font-weight:700; }
.table-scroll { overflow:auto; }
.nutrition-table { width:100%; min-width:610px; border-collapse:collapse; text-align:left; }
.nutrition-table th,.nutrition-table td { padding:9px 8px; border-bottom:1px solid var(--border); vertical-align:top; }
.nutrition-table th { font-weight:650; }
.nutrition-table td small { display:block; }
.food-picker { display:grid; gap:8px; min-width:0; }
.food-options { display:grid; max-height:248px; overflow:auto; background:var(--bg); border:1px solid var(--border); border-radius:10px; }
.food-options button { padding:9px 12px; text-align:start; border:0; border-bottom:1px solid var(--border); color:var(--text); background:transparent; }
.food-options button:hover,.food-options button[aria-selected=true] { background:var(--raised); }
.food-options p { padding:8px 12px; }
.food-chips { display:flex; flex-wrap:wrap; gap:6px; }
.food-chips:empty { display:none; }
.food-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 4px 2px 9px; border-radius:10px; background:var(--raised); }
.food-chip button { min-width:34px; }
[data-ex-filters] { padding-block: 12px; }
[data-ex-list] { max-height: 72vh; overflow: auto; }
[data-ex-list] article h3 { margin: 0; }
.workout-phase { scroll-margin-top: 78px; }
.workout-phase h2,.exercise-card h3 { margin: 0; }
.exercise-card > .muted { margin-block: 5px; }
.exercise-card .actions { margin-block: 8px; }
.exercise-history { margin-block: 10px; }
.exercise-history ol { margin-block: 4px; }
.workout-set { grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
.set-inputs { display: flex; flex-wrap: wrap; gap: 6px; }
.set-inputs label { flex: 1 1 75px; min-width: 0; }
.rest-dock { position:fixed; right:24px; bottom:20px; z-index:20; width:min(360px,calc(100% - 32px)); padding:20px; border-color:var(--accentInk); box-shadow:0 16px 60px #0006; }
.rest-dock output { display:block; font-size:2rem; font-weight:700; font-variant-numeric:tabular-nums; }
.rest-controls { margin:16px 0 8px; gap:7px; }
.rest-controls .btn { flex:1; }
.rest-sound-controls { gap:8px; }
.rest-dock #rest-audio-status { font-size:.77rem; margin:8px 0; }
.rest-help { display:block; font-size:.7rem; line-height:1.5; }
@media(max-width:800px) {
  .rest-dock { right:16px; bottom:calc(90px + env(safe-area-inset-bottom)); padding:17px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.profile-help { margin: -7px 0 0; font-size: .9rem; }
.demo-banner { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.demo-banner > div:first-child { flex:1 1 280px; }
.demo-banner p { margin:5px 0 0; font-size:.9rem; }
.demo-banner .actions { flex:0 1 auto; }
.training-next { border-top:2px solid var(--content-color,var(--check)); padding:26px; }
.training-next > .eyebrow { color:var(--content-color,var(--muted)); margin-bottom:12px; }
.training-next h2 { font-size:clamp(1.35rem,2.5vw,1.9rem); line-height:1.2; }
.training-next > .actions { margin:18px 0 4px; }
.training-proposals { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; margin-top:24px; }
.training-proposals .line { padding:18px; background:var(--raised); border:1px solid var(--border); border-top:2px solid var(--content-color,var(--strength)); border-radius:12px; }
.training-proposals .eyebrow { margin-bottom:10px; }
.training-proposals h3 { margin:0 0 8px; font-size:1.05rem; }
.training-proposals p { font-size:.9rem; }
.training-history { margin-top:24px; padding:18px 0; border-top:1px solid var(--border); }
.mobility-warmup-note { border-left:2px solid var(--mobility); margin:18px 0; }
.mobility-warmup-note h3 { font-size:1rem; margin-bottom:8px; }
.mobility-warmup-note p { font-size:.95rem; margin-bottom:14px; }
.mobility-warmup-note ol { font-size:.95rem; padding-left:22px; margin:10px 0 14px; }
.mobility-warmup-note li + li { margin-top:8px; }
.timer-audio-controls { margin:18px 0; }
.timer-audio-status { font-size:.9rem; margin:8px 0; }
#rest-clock.is-ending { color:var(--strength); }
[data-mobility-clock].is-ending { color:var(--mobility); }
@media(max-width:620px) { .training-next { padding:20px; } .demo-banner .actions { width:100%; } }
[data-form="profile"] details > .stack,[data-form="profile"] details > .form-grid { margin-top: 10px; }
.nutrition-dashboard {
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--panel);
  gap: 18px;
}
.nutrition-dashboard h2 { margin-top: 3px; }
.nutrition-day-picker { display: flex; align-items: center; gap: 7px; }
.nutrition-day-picker input { width: auto; min-width: 0; padding: .4rem .58rem; font-size: .85rem; }
.nutrition-day-picker button { min-width: 38px; min-height: 38px; font-size: 1.3rem; line-height: 1; padding: .3rem; }
.nutrition-day-picker button:disabled { cursor: default; opacity: .45; }
.nutrition-energy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 214px) minmax(0, 1fr); gap: 10px; align-items: center; width: min(100%, 720px); margin: 0 auto; text-align: center; }
.nutrition-energy.without-target { grid-template-columns: minmax(150px, 214px); justify-content: center; }
.nutrition-energy-stat { display: grid; gap: 3px; }
.nutrition-energy-stat strong { font-size: clamp(.95rem, 2.2vw, 1.35rem); line-height: 1.25; font-variant-numeric: tabular-nums; }
.nutrition-gauge { position: relative; width: 100%; max-width: 214px; justify-self: center; }
.nutrition-gauge svg { display: block; width: 100%; height: auto; }
.nutrition-gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.nutrition-gauge-track { stroke: var(--border); }
.nutrition-gauge-fill { stroke: var(--accent); }
[data-theme="light"] .nutrition-gauge-fill { stroke:var(--accent); }
.nutrition-gauge-label { position: absolute; inset: 30% 16% auto; display: grid; gap: 3px; align-content: start; line-height: 1.12; }
.nutrition-gauge-label span { color: var(--muted); font-size: .8rem; font-weight: 660; }
.nutrition-gauge-label strong { font-size: clamp(1.75rem, 5vw, 2.55rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.nutrition-macros { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.nutrition-macro { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.nutrition-macro h3 { font-size: .92rem; letter-spacing: 0; }
.nutrition-macro strong { font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.nutrition-macro small { font-size: .73rem; line-height: 1.28; }
.nutrition-macro progress { width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: var(--raised); accent-color: var(--macro-color); }
.nutrition-macro progress::-webkit-progress-bar { background: var(--raised); }
.nutrition-macro progress::-webkit-progress-value { background: var(--macro-color); border-radius: 99px; }
.nutrition-macro progress::-moz-progress-bar { background: var(--macro-color); border-radius: 99px; }
.nutrition-macro.protein { --macro-color: #9e9e9e; }
.nutrition-macro.carbs { --macro-color: #aaaaaa; }
.nutrition-macro.fat { --macro-color: #a5a5a5; }
.nutrition-source { font-size: .82rem; }
#nutrition-meal,#nutrition-reference { scroll-margin-top: 20px; }
@media(max-width: 510px) {
  .nutrition-dashboard { gap: 14px; }
  .nutrition-energy { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px 8px; }
  .nutrition-gauge { grid-column: 1/-1; grid-row: 1; max-width: 184px; }
  .nutrition-energy-stat { padding-bottom: 4px; }
  .nutrition-macros { gap: 6px; }
  .nutrition-macro { padding: 8px; }
  .nutrition-macro h3 { font-size: .8rem; }
  .nutrition-macro strong { font-size: 1rem; }
}
.workout-routine { margin: 0; padding-inline-start: 1.4rem; display: grid; gap: 7px; }
.workout-routine li::marker { color: var(--muted); font-weight: 700; }

#nutrition-recipes { scroll-margin-top: 20px; }
@media(max-width:800px) {
  #nutrition-recipes,#nutrition-reference,.meal-composer { scroll-margin-top:90px; }
}
.recipe-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); align-items: start; gap: 10px; }
.recipe-card { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.recipe-card summary { padding: 12px; cursor: pointer; font-weight: 660; }
.recipe-card summary small { display: block; margin-top: 4px; font-weight: 500; }
.recipe-body { padding: 0 12px 12px; }
.recipe-body ul,.recipe-body ol { margin: 0; padding-inline-start: 1.4em; }
.recipe-body .actions:empty { display: none; }
.recipe-card summary .recipe-allergens { color: var(--text); margin-top: 7px; }

.auth-fields { border: 0; padding: 0; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 16px; }
.offer-card { align-content: start; }
.offer-premium { border-color:var(--accentInk); }
.offer-features { display: grid; gap: 9px; margin: 0; padding-inline-start: 1.35em; }
.offer-features li::marker { color:var(--accentInk); }

.premium-week summary { cursor: pointer; }
.premium-week ul { display: grid; gap: 8px; margin: 5px 0 0; padding-inline-start: 1.35em; }

/* Nutrition workspace */
.nutrition-hub { display:grid; gap:22px; }
.nutrition-hub > .heading h1 { font-size:clamp(1.9rem,3.6vw,2.7rem); }
.nutrition-hub > .heading .eyebrow { color:var(--accentInk); }
[data-theme="light"] .nutrition-hub > .heading .eyebrow { color:var(--accentInk); }
.nutrition-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:6px; border:1px solid var(--border); border-radius:16px; background:var(--panel); }
.nutrition-tabs button { display:flex; justify-content:center; align-items:center; gap:8px; min-height:48px; padding:8px; border:0; border-radius:11px; color:var(--muted); background:transparent; font-weight:650; }
.nutrition-tabs button[aria-selected="true"] { background:var(--accent); color:var(--accentText); }
.nutrition-tabs button:hover { color:var(--text); background:var(--raised); }
.nutrition-tabs button[aria-selected="true"]:hover { background:var(--accent); color:var(--accentText); }
[data-nutrition-view] { display:grid; gap:22px; min-width:0; }
.nutrition-journal-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:start; gap:22px; }
.nutrition-overview,.nutrition-meal-column { display:grid; gap:18px; min-width:0; }
.nutrition-hub .nutrition-dashboard {
  padding:clamp(20px,3vw,32px); border-radius:18px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--text) 3%,var(--panel)),var(--panel));
  color:var(--text); gap:22px;
}
.nutrition-hub .nutrition-dashboard h2 { font-size:1.6rem; }
.nutrition-hub .nutrition-day-picker { flex-wrap:wrap; gap:4px; }
.nutrition-hub .nutrition-day-picker input { background:#ffffff6b; max-width:145px; color-scheme:light; border-color:#7f7f7f; }
.nutrition-hub .nutrition-day-picker .btn { background:#ffffff70; border-color:transparent; color:#272727; }
.nutrition-hub .nutrition-energy { grid-template-columns:minmax(0,1fr) minmax(140px,1.7fr) minmax(0,1fr); gap:6px; margin:8px auto; }
.nutrition-hub .nutrition-energy.without-target { grid-template-columns:minmax(140px,235px); }
.nutrition-hub .nutrition-gauge { max-width:235px; grid-column:auto; grid-row:auto; }
.nutrition-hub .nutrition-gauge path { stroke-width:8; }
.nutrition-hub .nutrition-gauge-track { stroke:#27272729; }
.nutrition-hub .nutrition-gauge-fill { stroke:#272727; }
.nutrition-hub .nutrition-gauge-label { inset:32% 9% auto; gap:4px; }
.nutrition-hub .nutrition-gauge-label strong { font-size:clamp(2rem,3.6vw,3rem); font-weight:750; }
.nutrition-hub .nutrition-gauge-label span { font-size:.7rem; line-height:1.3; }
.nutrition-hub .nutrition-energy-stat strong { font-size:.98rem; font-weight:730; }
.nutrition-hub .nutrition-energy-stat small { font-size:.68rem; line-height:1.3; }
.nutrition-hub .nutrition-macros { gap:7px; }
.nutrition-hub .nutrition-macro { border:1px solid #ffffffa0; background:#ffffffa6; border-radius:11px; padding:11px; }
.nutrition-hub .nutrition-macro h3 { font-size:.8rem; }
.nutrition-hub .nutrition-macro strong { font-size:1.1rem; }
.nutrition-hub .nutrition-macro small { font-size:.68rem; }
.nutrition-hub .nutrition-macro.protein { --macro-color:#757575; }
.nutrition-hub .nutrition-macro.carbs { --macro-color:#6f6f6f; }
.nutrition-hub .nutrition-macro.fat { --macro-color:#737373; }
.nutrition-hub .nutrition-source { font-size:.76rem; line-height:1.5; }
.nutrition-hub .nutrition-dashboard-actions { border-top:1px solid #27272729; padding-top:15px; gap:12px; }
.nutrition-hub .nutrition-dashboard-actions .btn { font-size:.76rem; }
.nutrition-hub .nutrition-dashboard-actions .tag { background:#ffffff70; }
.nutrition-note { display:flex; gap:13px; align-items:start; padding:18px 20px; border:1px solid var(--border); border-radius:16px; background:var(--panel); }
.nutrition-note > .icon { color:var(--accentInk); width:24px; height:24px; }
.nutrition-note strong { display:block; margin-bottom:5px; }
.nutrition-note p { color:var(--muted); font-size:.85rem; }
.nutrition-journal { display:grid; gap:16px; }
.nutrition-journal h2 { font-size:1.35rem; margin-top:5px; }
.meal-groups { display:grid; gap:10px; }
.meal-group { border:1px solid var(--border); border-radius:17px; background:var(--panel); overflow:hidden; }
.meal-group > header { display:flex; align-items:center; gap:12px; padding:16px; }
.meal-group > header > div { flex:1; min-width:0; }
.meal-group h3 { font-size:.95rem; margin-bottom:4px; letter-spacing:-.015em; }
.meal-group small { font-size:.75rem; }
.meal-symbol { display:grid; place-items:center; width:39px; height:39px; border-radius:12px; background:var(--raised); color:var(--accentInk); flex:none; }
[data-theme="light"] .meal-symbol { color:var(--accentInk); }
.meal-group .meal-add { width:36px; height:36px; min-height:36px; border-radius:50%; font-size:1.45rem; line-height:1; padding:0; }
.meal-entries { border-top:1px solid var(--border); padding:0 15px; }
.meal-entry { padding:12px 0; }
.meal-entry + .meal-entry { border-top:1px solid var(--border); }
.meal-entry summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; font-size:.85rem; }
.meal-entry summary::-webkit-details-marker { display:none; }
.meal-entry summary span { min-width:0; overflow-wrap:anywhere; }
.meal-entry summary small { display:block; margin-top:3px; font-weight:400; }
.meal-entry summary > strong { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.meal-entry-details { display:grid; gap:12px; padding-top:15px; }
.meal-nutrients { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.meal-nutrients span { display:grid; gap:3px; }
.meal-nutrients strong { font-size:.85rem; }
.meal-nutrients .protein strong { color:#b2b2b2; }
.meal-nutrients .carbs strong { color:#b5b5b5; }
.meal-nutrients .fat strong { color:#b1b1b1; }
[data-theme="light"] .meal-nutrients strong { color:var(--text); }
.meal-composer { scroll-margin-top:20px; padding:17px; border-radius:17px; }
.meal-composer > summary { display:flex; align-items:center; gap:10px; color:var(--text); cursor:pointer; font-weight:650; list-style:none; }
.meal-composer > summary .icon { color:var(--accentInk); }
.meal-composer > summary:after { content:'⌄'; margin-left:auto; }
.meal-composer[open] > summary:after { transform:rotate(180deg); }
.meal-composer form { padding-top:16px; }
.nutrition-progress-grid { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr); gap:20px; }
.regularity-card { text-align:center; justify-items:center; background:radial-gradient(ellipse at top,color-mix(in srgb,var(--accent) 10%,transparent),transparent 70%),var(--panel); }
.regularity-ring { position:relative; width:185px; }
.regularity-ring svg { width:100%; display:block; transform:rotate(-90deg); }
.regularity-ring circle { fill:none; stroke-width:7; }
.regularity-track { stroke:var(--border); }
.regularity-value { stroke:var(--accent); stroke-linecap:round; }
.regularity-ring > strong { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:6px; font-size:3.3rem; letter-spacing:-.06em; }
.regularity-ring > strong small { font-size:1rem; letter-spacing:0; margin-top:22px; }
.nutrition-week-chart { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; align-items:end; margin-top:14px; }
.nutrition-week-chart > div { display:grid; gap:10px; justify-items:center; }
.nutrition-week-chart small { font-size:.68rem; white-space:nowrap; }
.nutrition-week-chart svg { height:150px; width:100%; max-width:38px; }
.week-bar-track { fill:var(--raised); }
.week-bar-value { fill:var(--accent); }
.recipe-discovery { display:grid; gap:13px; }
.recipe-discovery h2 { margin-top:6px; }
.recipe-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.recipe-category { position:relative; min-width:0; height:195px; padding:0; border:1px solid var(--border); border-radius:18px; background:#272727; overflow:hidden; text-align:left; color:#fff; }
.recipe-category img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.recipe-category:first-child img { object-position:50% 65%; }
.recipe-category:after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,#1c1c1ce6 100%); }
.recipe-category span { display:grid; gap:5px; position:absolute; z-index:1; bottom:17px; left:16px; right:12px; }
.recipe-category strong { font-size:1.12rem; letter-spacing:-.025em; }
.recipe-category small { color:#f5f5f5; font-size:.77rem; }
.recipe-category:hover img { filter:brightness(1.12); }
.nutrition-hub #nutrition-recipes { border-radius:20px; gap:18px; }
.nutrition-hub [data-recipe-filters] { grid-template-columns:minmax(0,1fr); }
.nutrition-hub [data-recipe-filters] label { font-size:.78rem; }
.nutrition-hub .recipe-list { grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr)); gap:13px; }
.nutrition-hub .recipe-card { overflow:hidden; border-radius:16px; }
.nutrition-hub .recipe-card > summary { display:block; list-style:none; padding:17px; }
.nutrition-hub .recipe-card > summary::-webkit-details-marker { display:none; }
.recipe-type { display:flex; align-items:center; gap:7px; margin-bottom:14px; color:var(--muted); font-size:.67rem; font-weight:500; text-transform:uppercase; letter-spacing:.07em; }
.recipe-type .icon { width:27px; height:27px; padding:5px; border-radius:8px; color:var(--text); background:var(--raised); }
.recipe-title { display:block; font-size:1.06rem; line-height:1.3; padding-bottom:6px; }
.nutrition-hub .recipe-card summary small { font-size:.74rem; }
.nutrition-hub .recipe-card summary .recipe-allergens { padding-top:9px; border-top:1px solid var(--border); line-height:1.5; color:var(--muted); }
.nutrition-hub .recipe-card[open] { border-color:var(--inputBorder); }
.nutrition-hub .recipe-body { padding:0 17px 18px; font-size:.85rem; line-height:1.7; }
.nutrition-hub .recipe-body h3 { font-size:.9rem; padding-top:6px; }
.nutrition-photo-credits { color:var(--muted); font-size:.7rem; }
.nutrition-photo-credits summary { cursor:pointer; }
.nutrition-photo-credits p { margin-top:7px; }
@media(max-width:1100px) {
  .nutrition-journal-layout { grid-template-columns:1fr; }
  .nutrition-meal-column { display:grid; grid-template-columns:1fr; }
  .meal-groups { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .nutrition-hub .nutrition-energy { width:min(100%,520px); }
}
@media(max-width:620px) {
  .nutrition-hub { gap:17px; }
  .nutrition-hub > .heading h1 { font-size:1.95rem; }
  .nutrition-hub > .heading p { font-size:.85rem; }
  .nutrition-tabs { position:sticky; top:8px; z-index:5; gap:2px; padding:5px; box-shadow:0 6px 20px #0002; }
  .nutrition-tabs button { flex-direction:column; gap:4px; font-size:.7rem; min-height:58px; padding:6px 3px; }
  .nutrition-tabs .icon { width:19px; height:19px; }
  .nutrition-journal-layout { gap:20px; }
  .nutrition-hub .nutrition-dashboard { border-radius:21px; padding:20px 15px; gap:17px; }
  .nutrition-hub .nutrition-dashboard > .between:first-child { justify-content:center; text-align:center; flex-direction:column; }
  .nutrition-hub .nutrition-dashboard h2 { font-size:1.35rem; }
  .nutrition-hub .nutrition-day-picker input { font-size:.78rem; }
  .nutrition-hub .nutrition-energy { grid-template-columns:minmax(0,1fr) minmax(135px,1.7fr) minmax(0,1fr); margin:4px auto; }
  .nutrition-hub .nutrition-gauge-label strong { font-size:2.1rem; }
  .nutrition-hub .nutrition-energy-stat strong { font-size:.83rem; }
  .nutrition-hub .nutrition-energy-stat small { font-size:.65rem; }
  .nutrition-hub .nutrition-macros { gap:5px; }
  .nutrition-hub .nutrition-macro { padding:9px 7px; }
  .nutrition-hub .nutrition-macro h3 { font-size:.74rem; }
  .nutrition-hub .nutrition-macro strong { font-size:1rem; }
  .nutrition-hub .nutrition-macro small { font-size:.64rem; }
  .nutrition-note { padding:15px; }
  .nutrition-note p { font-size:.8rem; }
  .meal-groups { grid-template-columns:1fr; }
  .nutrition-progress-grid { grid-template-columns:1fr; }
  .nutrition-week-chart { gap:5px; }
  .recipe-categories { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .recipe-category { height:160px; border-radius:15px; }
  .recipe-category strong { font-size:1.02rem; }
  .recipe-category span { left:13px; bottom:13px; }
  .nutrition-hub [data-recipe-filters] { grid-template-columns:minmax(0,1fr); }
  .nutrition-hub [data-recipe-filters] > label { grid-column:1/-1; }
}

/* Personal tools and quick logging */
.mobile-nav { display:none; }
.more-hub { display:grid; gap:22px; max-width:900px; }
.more-profile { display:flex; gap:20px; align-items:center; padding:16px 0 7px; }
.more-profile h1 { margin:7px 0 12px; font-size:clamp(1.9rem,4vw,2.7rem); overflow-wrap:anywhere; }
.more-avatar { width:82px; height:82px; border-radius:24px; display:grid; place-items:center; flex:none; font-size:1.65rem; font-weight:750; color:#272727; background:linear-gradient(140deg,#c1c1c1,#8f8f8f); }
.more-section { gap:0; padding-block:20px 4px; }
.more-section h2 { font-size:1.02rem; padding-bottom:13px; color:var(--muted); letter-spacing:.01em; }
.more-link { display:flex; align-items:center; gap:15px; text-align:left; padding:17px 0; width:100%; border:0; border-top:1px solid var(--border); background:none; color:var(--text); }
.more-link > .icon { width:23px; height:23px; color:var(--muted); }
.more-link > span:nth-child(2) { flex:1; min-width:0; display:grid; gap:4px; }
.more-link strong { font-size:.98rem; font-weight:620; }
.more-link small { font-size:.78rem; }
.more-link > span:last-child { font-size:1.6rem; color:var(--muted); }
.more-link:hover > .icon { color:var(--accentInk); }
.privacy-panel h2 { display:flex; gap:9px; align-items:center; font-size:1.1rem; }
.personal-tracking-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.personal-tracking-card { display:flex; align-items:center; gap:12px; padding:16px; border-radius:16px; }
.tracking-icon { width:38px; height:38px; border-radius:12px; background:var(--raised); color:#b6b6b6; display:grid; place-items:center; flex:none; }
.personal-tracking-card:nth-child(2) .tracking-icon { color:#c1c1c1; }
.personal-tracking-card > div { display:grid; gap:3px; flex:1; }
.personal-tracking-card small { font-size:.71rem; line-height:1.4; }
.personal-tracking-card strong { font-size:1.45rem; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.personal-tracking-card strong span { font-size:.77rem; color:var(--muted); font-weight:500; letter-spacing:0; }
.tracking-add { width:32px; height:32px; min-height:32px; border-radius:50%; padding:0; flex:none; font-size:1.25rem; }
.tracking-history summary { font-weight:620; cursor:pointer; }
.tracking-history > div { padding-top:15px; }
.tracking-history h3 { margin-bottom:10px; }
.tracking-history .line { font-size:.85rem; }
.quick-add-dialog { width:min(520px,calc(100% - 30px)); max-height:calc(100dvh - 32px); overflow:auto; margin:auto; padding:24px; border:1px solid var(--border); border-radius:24px; background:var(--panel); color:var(--text); box-shadow:0 24px 100px #0006; }
.quick-add-dialog::backdrop { background:#1c1c1ca8; backdrop-filter:blur(4px); }
.quick-add-dialog h2 { font-size:1.4rem; margin-top:7px; }
.quick-add-dialog > .between { flex-wrap:nowrap; align-items:start; }
.quick-close { min-width:34px; padding:3px 8px; font-size:1.5rem; }
.quick-add-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin-top:24px; }
.quick-choice { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:9px; padding:19px 16px; min-height:153px; border:1px solid var(--border); border-radius:17px; color:var(--text); background:var(--raised); }
.quick-choice > .icon { width:35px; height:35px; padding:7px; border-radius:12px; background:var(--accent); color:var(--accentText); margin-bottom:5px; }
.quick-choice small { font-size:.75rem; line-height:1.5; }
.quick-choice:hover { border-color:var(--inputBorder); }
[data-quick-form] { padding-top:22px; }
[data-quick-form] form { gap:17px; }
@media(max-width:800px) {
  .client-shell .sidebar .nav { display:none; }
  .client-shell .sidebar { padding-bottom:12px; }
  .client-shell .quick-desktop { display:none; }
  .client-shell .content { padding-bottom:calc(105px + env(safe-area-inset-bottom)); }
  .mobile-nav { position:fixed; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) 52px; align-items:center; gap:2px; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); z-index:12; border-top:1px solid var(--border); background:var(--panel); box-shadow:0 -7px 30px #0002; }
  input,textarea,select { font-size:1rem; }
  .mobile-nav button { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px; border:0; background:none; color:var(--muted); font-size:.66rem; min-height:51px; padding:5px 1px; }
  .mobile-nav button[aria-current=page] { color:var(--text); font-weight:750; }
  .mobile-nav button[aria-current=page] .icon { color:var(--accentInk); }
  .mobile-nav button[aria-current=page] { background:var(--raised); border-radius:10px; }
  .mobile-nav .icon { width:22px; height:22px; }
  .mobile-nav .mobile-add { background:var(--accent); color:var(--accentText); border-radius:50%; width:49px; min-height:49px; justify-self:end; }
  .mobile-add .icon { width:25px; height:25px; stroke-width:2; }
  body:has(.client-shell) #notice { bottom:90px; }
}
@media(max-width:510px) {
  .more-hub { gap:17px; }
  .more-profile { gap:15px; }
  .more-avatar { width:66px; height:66px; border-radius:21px; font-size:1.35rem; }
  .more-profile h1 { font-size:1.9rem; }
  .personal-tracking-cards { gap:8px; }
  .personal-tracking-card { flex-wrap:wrap; padding:12px; gap:8px; }
  .personal-tracking-card > div { order:3; flex-basis:100%; }
  .personal-tracking-card .tracking-add { margin-left:auto; }
  .personal-tracking-card strong { font-size:1.5rem; }
  .more-link { padding-block:18px; gap:13px; }
  .more-link strong { font-size:.95rem; }
  .more-link small { font-size:.74rem; }
  .quick-add-dialog { width:100%; max-width:100%; max-height:90dvh; margin:auto 0 0; border-radius:25px 25px 0 0; padding:23px 20px calc(24px + env(safe-area-inset-bottom)); }
  .quick-choice { padding:17px 13px; min-height:160px; }
  .quick-add-dialog h2 { font-size:1.3rem; }
}

/* Mobility routines */
.mobility-hub { display:grid; gap:22px; }
.mobility-hero { position:relative; display:grid; grid-template-columns:1.6fr .7fr; align-items:center; min-height:270px; padding:30px 36px; gap:20px; overflow:hidden; border-radius:24px; color:#272727; background:radial-gradient(ellipse at 95% 20%,#8f8f8f25,transparent 65%),linear-gradient(135deg,#efefef,#f5f5f5); }
.mobility-hero h1 { margin:12px 0; max-width:21ch; font-size:clamp(1.8rem,3.4vw,2.8rem); }
.mobility-hero p { max-width:45ch; font-size:.93rem; color:#606060; }
.mobility-hero .eyebrow { color:#606060; }
.mobility-hero .actions { margin-top:20px; }
.mobility-hero .tag { background:#ffffff70; color:#272727; border-color:#27272730; }
.mobility-figure { display:block; max-width:210px; width:100%; justify-self:center; fill:none; stroke:currentColor; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; }
.mobility-body-points circle { stroke:none; fill:#7f7f7f70; }
.mobility-body-points .focused { fill:#505050; }
.mobility-tabs { display:flex; gap:9px; flex-wrap:wrap; }
.mobility-tabs .btn { flex:1; min-height:45px; border-radius:13px; }
.mobility-view { display:grid; gap:22px; min-width:0; }
.mobility-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.mobility-preset { display:grid; justify-items:start; align-content:start; gap:9px; padding:20px; text-align:left; border:1px solid var(--border); border-radius:18px; color:var(--text); background:var(--panel); }
.mobility-preset .icon { width:33px; height:33px; padding:6px; background:var(--raised); color:var(--accentInk); border-radius:10px; margin-bottom:6px; }
.mobility-preset strong { font-size:1.02rem; letter-spacing:-.02em; }
.mobility-preset small { font-size:.76rem; }
.mobility-preset:hover { border-color:var(--accentInk); }
.mobility-zones { display:grid; gap:16px; }
.mobility-zones h2 { font-size:1.2rem; }
.mobility-zones .muted { font-size:.8rem; }
.mobility-zone-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.mobility-zone { display:grid; gap:6px; justify-items:center; padding:12px 8px 16px; text-align:center; border:1px solid var(--border); border-radius:16px; color:var(--text); background:var(--panel); }
.mobility-zone .mobility-figure { max-width:82px; color:var(--muted); stroke-width:7; }
.mobility-zone .mobility-body-points .focused { fill:var(--accent); }
[data-theme="light"] .mobility-zone .mobility-body-points .focused { fill:var(--accent); }
.mobility-zone strong { font-size:.79rem; }
.mobility-zone small { font-size:.65rem; }
.mobility-zone:disabled { opacity:.45; cursor:default; }
.mobility-zone-restricted { border-style:dashed; }
.mobility-zone-restricted .mobility-figure { opacity:.55; }
.mobility-zone-restricted small { color:var(--muted); }
.nutrition-next-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:24px; }
.recipe-preferences-editor { margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }
.recipe-preferences-editor > form { margin-top:16px; }
.mobility-zone:hover:not(:disabled) { border-color:var(--accentInk); }
.mobility-feel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; }
.mobility-feel-card { padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--raised); gap:12px; }
.mobility-feel-card > span { display:flex; gap:9px; align-items:center; }
.mobility-preview { border-color:var(--inputBorder); }
.mobility-preview h2 { margin-top:6px; }
.mobility-step-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 25px; margin:0; padding:0; list-style:none; }
.mobility-step-list li { display:flex; align-items:center; gap:15px; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--border); font-size:.8rem; }
.mobility-step-list strong { font-size:.73rem; white-space:nowrap; color:var(--muted); }
.mobility-catalogue summary { cursor:pointer; font-weight:650; }
.mobility-catalogue > div { padding-top:15px; }
.mobility-catalogue h3 { margin-bottom:6px; line-height:1.4; font-size:.95rem; }
.mobility-catalogue p,.mobility-catalogue a { font-size:.76rem; }
.mobility-source { font-size:.78rem; line-height:1.7; }
.mobility-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; align-items:end; text-align:center; }
.mobility-week > div { display:grid; gap:8px; justify-items:center; }
.mobility-week strong { font-size:1rem; }
.mobility-week small { font-size:.72rem; }
.mobility-week svg { height:125px; width:30px; }
.mobility-bar-track { fill:var(--raised); }
.mobility-bar-value { fill:var(--accent); }
.mobility-player-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mobility-player-head h1 { font-size:clamp(1.6rem,3vw,2.3rem); margin:9px 0; }
.mobility-session-progress { width:100%; height:7px; accent-color:var(--accentInk); }
.mobility-player-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:22px; align-items:stretch; }
.mobility-demonstration { display:grid; gap:15px; justify-items:center; align-content:center; border:1px solid var(--border); border-radius:22px; padding:30px; background:radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 75%),var(--panel); }
.mobility-demonstration .mobility-figure { max-width:240px; color:var(--muted); }
.mobility-demonstration .focused { fill:var(--accent); }
.mobility-demonstration small { font-size:.72rem; text-align:center; }
.mobility-coaching { border-radius:22px; gap:20px; }
.mobility-coaching ol { margin:0; padding-left:20px; line-height:1.8; font-size:.9rem; }
.mobility-coaching li + li { margin-top:7px; }
.mobility-clock { display:grid; justify-items:center; gap:7px; padding:22px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.mobility-clock output { font-size:3.7rem; letter-spacing:-.07em; font-variant-numeric:tabular-nums; line-height:1; font-weight:700; }
.mobility-clock span { color:var(--muted); font-size:.76rem; min-height:19px; }
.mobility-coaching > .actions { justify-content:center; }
@media(max-width:800px) {
  .mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr)) 53px; }
  .mobile-nav button { font-size:.61rem; }
  .mobility-hero { padding:25px; }
  .mobility-player-layout { grid-template-columns:1fr; }
  .mobility-demonstration { padding:20px; grid-template-columns:100px 1fr; align-items:center; }
  .mobility-demonstration .mobility-figure { grid-row:1/3; max-width:100px; }
}
@media(max-width:560px) {
  .mobility-hub,.mobility-view { gap:18px; }
  .mobility-hero { grid-template-columns:1fr; min-height:230px; padding:24px; }
  .mobility-hero > .mobility-figure { position:absolute; right:-26px; bottom:10px; width:155px; opacity:.18; }
  .mobility-hero > div { position:relative; z-index:1; }
  .mobility-hero h1 { max-width:17ch; font-size:1.95rem; }
  .mobility-hero p { max-width:26ch; font-size:.84rem; }
  .mobility-hero .actions { gap:6px; margin-top:17px; }
  .mobility-tabs { gap:6px; }
  .mobility-tabs .btn { padding:8px 7px; font-size:.74rem; }
  .mobility-presets { grid-template-columns:1fr; gap:9px; }
  .mobility-preset { grid-template-columns:37px 1fr; align-items:center; padding:14px; gap:3px 10px; }
  .mobility-preset .icon { grid-row:1/3; margin:0; }
  .mobility-preset strong { font-size:.95rem; }
  .mobility-preset small { font-size:.72rem; }
  .mobility-zone-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mobility-step-list { grid-template-columns:1fr; }
  .mobility-demonstration { grid-template-columns:75px 1fr; padding:15px; gap:10px; }
  .mobility-demonstration .btn { font-size:.76rem; }
  .mobility-clock output { font-size:3.3rem; }
.mobility-coaching ol { font-size:.86rem; }
}

/* Nutrition catalogue and personal library */
.nutrition-hub .recipe-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.nutrition-hub .recipe-card > summary { padding:0; }
.recipe-photo { display:block; width:100%; aspect-ratio:1; position:relative; background-color:#e0e0e0; }
.recipe-photo-specific,.recipe-photo-pending { background-image:none; }
.recipe-photo-specific img { display:block; width:100%; height:100%; object-fit:cover; }
.recipe-photo-pending { background:linear-gradient(145deg,#e9e9e9,#d6d6d6); }
.recipe-photo > span { position:absolute; bottom:8px; right:8px; padding:3px 7px; border-radius:6px; font-size:10px; font-weight:500; background:#fffc; color:#3f3f3f; }
.recipe-summary { display:block; padding:15px; }
.nutrition-hub .recipe-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:1.05rem; line-height:1.4; min-height:2.8em; margin:7px 0; }
.nutrition-hub .recipe-card:not([open]) .recipe-allergens { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nutrition-hub .recipe-card[open] { grid-column:1/-1; }
.nutrition-hub .recipe-card[open] > summary { display:grid; grid-template-columns:180px 1fr; align-items:center; }
.nutrition-hub .recipe-card[open] .recipe-title { display:block; min-height:0; }
.recipe-search-controls { margin:24px 0 12px; display:grid; gap:12px; }
.recipe-search-controls > .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.recipe-guidance { margin:8px 0; font-size:.78rem; color:var(--muted); }
.recipe-guidance > summary { cursor:pointer; }
.recipe-search-controls > label input { border-radius:40px; padding:16px 20px; }
.recipe-filter-chips { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 6px; }
.recipe-chip { background:var(--accent); color:var(--accentText); font-size:.78rem; border-radius:30px; min-height:34px; padding:6px 12px; }
.recipe-result-count { font-size:.8rem; color:var(--muted); margin:12px 0; }
.food-library { padding:22px 0 16px; }
.food-library h3 { margin:0; font-size:1.05rem; }
.food-library-tabs { display:flex; gap:3px; overflow-x:auto; border-bottom:1px solid var(--border); margin:18px 0; }
.food-library-tabs button { flex:1 0 auto; padding:12px 10px; color:var(--muted); background:none; border:0; border-bottom:3px solid transparent; font:inherit; font-size:.82rem; cursor:pointer; }
.food-library-tabs button[aria-pressed=true] { color:var(--text); border-bottom-color:var(--accentInk); font-weight:700; }
.food-library-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:18px 0; }
.food-library-actions .btn { white-space:normal; font-size:.83rem; min-height:64px; }
.food-library-list { display:grid; gap:8px; }
.food-library-item { border:1px solid var(--border); border-radius:14px; padding:14px; display:flex; justify-content:space-between; gap:10px; align-items:center; }
.food-library-item > div:first-child { min-width:0; }
.food-library-item h4 { margin:3px 0; font-size:.95rem; overflow-wrap:anywhere; }
.food-library-item p,.food-library-item small { color:var(--muted); font-size:.78rem; margin:0; }
.food-library-item .actions { flex-direction:column; flex-shrink:0; gap:3px; }
.food-library-add { border-radius:50%; width:40px; height:40px; min-height:40px; font-size:1.5rem; padding:0; }
.food-library-empty { text-align:center; padding:32px 18px; background:var(--bg); border-radius:16px; display:grid; justify-items:center; }
.food-library-empty > .icon { width:38px; height:38px; color:var(--accentInk); margin:0 0 15px; }
.food-library-empty p { color:var(--muted); font-size:.85rem; max-width:330px; margin-bottom:0; }
.food-manual { border-top:1px solid var(--border); padding-top:18px; }
.food-manual > summary { cursor:pointer; color:var(--text); }
.food-manual form { margin-top:20px; }
.food-item-notes { white-space:pre-line; color:var(--muted); font-size:.88rem; max-height:180px; overflow:auto; }
.food-use-total { background:var(--bg); border:1px solid var(--border); border-radius:13px; padding:18px; font-size:1.3rem; font-weight:650; }
.nutrition-profile-card { background:var(--panel); border:1px solid var(--border); border-radius:22px; padding:25px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.nutrition-profile-card h2 { font-size:1.7rem; margin:8px 0; }
.nutrition-profile-card p { color:var(--muted); }
.nutrition-profile-links { display:grid; gap:8px; }
@media(max-width:1050px) {
  .nutrition-hub .recipe-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .nutrition-hub .recipe-list { gap:10px; }
  .nutrition-hub .recipe-summary { padding:11px; }
  .nutrition-hub .recipe-title { font-size:.92rem; }
  .nutrition-hub .recipe-type { font-size:.62rem; }
  .nutrition-hub .recipe-type .icon { width:12px; height:12px; }
  .nutrition-hub .recipe-card summary small { font-size:.65rem; }
  .nutrition-hub .recipe-card[open] > summary { grid-template-columns:110px 1fr; }
  .nutrition-hub .recipe-card[open] .recipe-photo { align-self:start; }
  .food-library-tabs { max-width:100%; }
  .food-library-tabs button { padding:12px 8px; font-size:.75rem; }
  .food-library > .between { gap:8px; }
  .food-library > .between .tag { font-size:.62rem; }
  .nutrition-profile-card { display:block; padding:20px; }
  .nutrition-profile-links { margin-top:20px; }
}

/* Short, purposeful feedback: no loops, layout shifts or interaction delays. */
[data-theme="light"] .tracking-icon { color:#4f4f4f; }
[data-theme="light"] .personal-tracking-card:nth-child(2) .tracking-icon { color:var(--accentInk); }
.btn,.nav button,.mobile-nav button,.nutrition-tabs button,.food-library-tabs button,.quick-choice,.more-link,.mobility-preset,.mobility-zone,.recipe-category,.recipe-card {
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.form-grid > label.check { padding:10px 12px; min-height:44px; border:1px solid var(--border); border-radius:11px; background:var(--panel); cursor:pointer; transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease; }
.form-grid > label.check:has(input:checked) { border-color:var(--accentInk); background:color-mix(in srgb,var(--accent) 13%,var(--panel)); box-shadow:inset 3px 0 var(--accent); animation:choice-confirm .22s ease-out; }
.form-grid > label.check:has(input:focus-visible) { outline:3px solid var(--focus); outline-offset:3px; }
.form-grid > label.check:has(input:disabled) { cursor:default; opacity:.65; }
input,textarea,select { transition:border-color .16s ease,box-shadow .16s ease; }
input:not([type=checkbox]):not([type=radio]):focus-visible,textarea:focus-visible,select:focus-visible { border-color:var(--accentInk); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent); }
.quick-choice > .icon,.mobility-preset > .icon,.more-link > .icon { transition:transform .18s ease; }
.nav button[aria-current=page] .icon,.mobile-nav button[aria-current=page] .icon { animation:icon-settle .22s ease-out; }
.nutrition-tabs button[aria-selected=true],.mobility-tabs button[aria-pressed=true],.food-library-tabs button[aria-pressed=true] { animation:choice-confirm .22s ease-out; }
.motion-enter { animation:view-arrive .24s ease-out; }
[data-nutrition-view]:not([hidden]),.mobility-view:not([hidden]),[data-quick-form] > form { animation:view-arrive .2s ease-out; }
.quick-add-dialog[open],.food-dialog[open] { animation:dialog-arrive .22s ease-out; }
.quick-add-dialog[open]::backdrop,.food-dialog[open]::backdrop { animation:backdrop-arrive .18s ease-out; }
#notice:not(:empty) { animation:view-arrive .2s ease-out; }
@keyframes view-arrive { from { opacity:.7; transform:translateY(5px); } to { opacity:1; transform:none; } }
@keyframes dialog-arrive { from { opacity:.65; transform:translateY(10px) scale(.99); } to { opacity:1; transform:none; } }
@keyframes backdrop-arrive { from { opacity:0; } to { opacity:1; } }
@keyframes choice-confirm { from { box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent); } to { box-shadow:0 0 0 0 transparent; } }
@keyframes icon-settle { from { transform:translateY(2px); } to { transform:none; } }
@media(hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover,.nav button:not(:disabled):hover { transform:translateY(-1px); }
  .quick-choice:not(:disabled):hover,.mobility-preset:not(:disabled):hover,.mobility-zone:not(:disabled):hover,.recipe-category:not(:disabled):hover,.more-link:not(:disabled):hover { transform:translateY(-3px); border-color:var(--inputBorder); box-shadow:0 8px 20px #27272712; }
  .quick-choice:hover > .icon,.mobility-preset:hover > .icon,.more-link:hover > .icon { transform:rotate(-5deg) scale(1.06); }
  .form-grid > label.check:not(:has(input:disabled)):hover { border-color:var(--inputBorder); }
}
.btn:not(:disabled):active,.nav button:not(:disabled):active,.mobile-nav button:not(:disabled):active,.nutrition-tabs button:not(:disabled):active,.quick-choice:not(:disabled):active,.mobility-preset:not(:disabled):active,.mobility-zone:not(:disabled):active,.more-link:not(:disabled):active,.recipe-category:not(:disabled):active { transform:scale(.98); }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .btn:hover,.btn:active,.nav button:hover,.nav button:active,.mobile-nav button:active,.nutrition-tabs button:active,.quick-choice:hover,.quick-choice:active,.mobility-preset:hover,.mobility-preset:active,.mobility-zone:hover,.mobility-zone:active,.more-link:hover,.more-link:active,.recipe-category:hover,.recipe-category:active,.quick-choice > .icon,.mobility-preset > .icon,.more-link > .icon { transform:none !important; }
}

/* Direction Noir — reflets, strates et accents de lecture. */
body { -webkit-font-smoothing:antialiased; background:radial-gradient(ellipse 1000px 650px at 75% -200px,var(--surfaceBeam),transparent 85%),var(--bg); }
h1 { font-weight:650; letter-spacing:-.045em; }
h2,h3 { font-weight:630; }
small { font-size:.875rem; }
.eyebrow { font-size:.75rem; font-weight:600; letter-spacing:.14em; }
.shell { grid-template-columns:224px minmax(0,1fr); }
.sidebar { background:linear-gradient(165deg,color-mix(in srgb,var(--text) 3%,var(--bg)),var(--bg) 65%); padding:26px 14px; border-right-color:var(--border); }
.brand small { font-size:.625rem; color:var(--muted); }
.brand .brand-mark { border:1px solid #ffffff40; border-radius:12px; box-shadow:inset 0 1px 0 #ffffff20,0 3px 14px #0004; }
.nav { gap:7px; }
.nav button { min-height:44px; font-size:.875rem; font-weight:500; border-radius:8px; }
.nav button[aria-current=page] { background:linear-gradient(115deg,color-mix(in srgb,var(--text) 9%,var(--panel)),var(--raised)); border-color:color-mix(in srgb,var(--text) 22%,var(--panel)); box-shadow:inset 0 1px 0 var(--surfaceBeam),0 3px 10px #0002; }
.top { position:sticky; top:0; z-index:8; background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 94%,transparent),color-mix(in srgb,var(--raised) 75%,transparent)); backdrop-filter:blur(22px); box-shadow:0 8px 24px #0002,inset 0 -1px 0 var(--surfaceBeam); }
.content { padding-top:36px; gap:24px; }
.heading { gap:12px; padding:6px 0; }
.hero { min-height:292px; border-radius:20px; border:1px solid #ffffff30; color:#fafafa; box-shadow:inset 0 1px 0 #ffffff25,0 20px 55px #0004;
 background:radial-gradient(ellipse 62% 115% at 100% 0%,#757b843f,transparent 72%),radial-gradient(ellipse at 0% 100%,#ffffff09,transparent 65%),linear-gradient(125deg,#24262a 0%,#141518 50%,#0a0b0e 100%); }
.hero:before { content:""; position:absolute; pointer-events:none; inset:0; background:linear-gradient(120deg,transparent 38%,#ffffff0d 49%,#ffffff02 55%,transparent 65%); mask-image:linear-gradient(#000,transparent 90%); }
.hero:after { inset:0 0 auto 0; width:100%; height:1px; opacity:1; background:linear-gradient(90deg,transparent,#ffffff75 40%,transparent); transform:none; }
.hero > div:first-child { position:relative; z-index:2; }
.hero h1 { max-width:20ch; color:#fafafa; }
.hero p { color:#c9cbd0; }
.hero .eyebrow { color:#c7c9ce; }
.hero .btn:not(.secondary):not(.ghost) { background:linear-gradient(145deg,#ffffff,#dcdfe4); color:#101114; box-shadow:inset 0 1px 0 #ffffff,0 4px 16px #0005; }
.hero .btn.secondary { background:linear-gradient(145deg,#3a3c41,#202125); color:#f5f5f5; border-color:#ffffff35; }
.hero .btn.ghost { color:#d8d9de; border-color:#ffffff35; }
.hero .hero-emblem { position:absolute; right:38px; top:38px; z-index:1; width:124px; height:124px; display:grid; place-items:center; border:1px solid #ffffff50; border-radius:29px; background:linear-gradient(140deg,#ffffff22,#ffffff04 55%,#00000040); box-shadow:inset 0 1px 1px #ffffff55,0 24px 44px #0007,0 0 65px #ffffff12; transform:rotate(-9deg); }
.hero-emblem img { width:75%; height:auto; filter:drop-shadow(0 4px 5px #0008); }
.hero:has(.hero-emblem) > div:first-child { padding-right:130px; }
.hero:has(.hero-emblem) .actions { margin-right:-130px; }
.panel,.meal-group,.mobility-preset,.mobility-zone,.quick-choice,.recipe-card { border:1px solid transparent;
 background:linear-gradient(145deg,var(--surfaceTop),var(--panel) 50%,var(--surfaceBottom)) padding-box,linear-gradient(135deg,var(--edgeLight),var(--border) 38%,var(--edgeShade)) border-box;
 box-shadow:var(--surfaceShadow); }
.panel { border-radius:16px; }
.metric { min-height:142px; align-content:space-between; gap:16px; }
.metric-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.metric-icon { display:grid; place-items:center; width:34px; height:34px; border:1px solid color-mix(in srgb,var(--tone,var(--training)) 30%,transparent); color:var(--tone,var(--training)); background:linear-gradient(145deg,color-mix(in srgb,var(--tone,var(--training)) 15%,transparent),color-mix(in srgb,var(--tone,var(--training)) 4%,transparent)); border-radius:10px; }
.metric strong { font-size:2.15rem; font-weight:620; }
[data-tone="training"],[data-tone="calendar"],[data-tone="clients"],[data-tone="profile"] { --tone:var(--training); }
[data-tone="nutrition"],[data-tone="target"] { --tone:var(--nutrition); }
[data-tone="mobility"] { --tone:var(--mobility); }
.btn { position:relative; overflow:hidden; min-height:44px; border-radius:9px; font-weight:650; background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 90%,white),var(--accent)); box-shadow:inset 0 1px 0 #ffffff33,0 3px 10px #0002; }
.btn:hover { filter:none; }
.btn.secondary { background:linear-gradient(150deg,color-mix(in srgb,var(--text) 5%,var(--raised)),var(--raised)); border-color:color-mix(in srgb,var(--text) 18%,var(--panel)); }
.btn.ghost,.btn.danger { background:transparent; box-shadow:none; }
.btn:after { content:""; pointer-events:none; position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,#ffffff30 50%,transparent 75%); transform:translateX(-130%); transition:transform .55s ease; }
.btn.tiny { min-height:36px; font-size:.875rem; }
.tag { font-size:.75rem; font-weight:550; }
.tag.good { color:var(--success); border-color:color-mix(in srgb,var(--success) 28%,var(--border)); background:color-mix(in srgb,var(--success) 8%,var(--panel)); }
.nav [data-key="training"] .icon,.nav [data-key="calendar"] .icon,.mobile-nav [data-key="training"] .icon { color:var(--training); }
.nav [data-key="nutrition"] .icon,.mobile-nav [data-key="nutrition"] .icon { color:var(--nutrition); }
.nav [data-key="mobility"] .icon,.mobile-nav [data-key="mobility"] .icon { color:var(--mobility); }
.nav [data-key="progress"] .icon { color:var(--nutrition); }
.nav [aria-current="page"][data-key="training"],.nav [aria-current="page"][data-key="calendar"],.mobile-nav [aria-current="page"][data-key="training"] { --tone:var(--training); }
.nav [aria-current="page"][data-key="nutrition"],.mobile-nav [aria-current="page"][data-key="nutrition"] { --tone:var(--nutrition); }
.nav [aria-current="page"][data-key="mobility"],.mobile-nav [aria-current="page"][data-key="mobility"] { --tone:var(--mobility); }
.nav button[aria-current="page"],.mobile-nav button[aria-current="page"] { border-color:color-mix(in srgb,var(--tone,var(--text)) 30%,var(--border)); background:linear-gradient(110deg,color-mix(in srgb,var(--tone,var(--text)) 12%,var(--panel)),var(--raised)); }
.nutrition-hub .nutrition-dashboard { background:radial-gradient(ellipse 85% 50% at 50% -5%,color-mix(in srgb,var(--nutrition) 11%,transparent),transparent 90%),linear-gradient(150deg,var(--surfaceTop),var(--surfaceBottom)); border:1px solid color-mix(in srgb,var(--nutrition) 18%,var(--border)); border-radius:20px; box-shadow:inset 0 1px 0 var(--surfaceBeam),var(--surfaceShadow); }
.nutrition-hub .nutrition-day-picker input { background:var(--bg); color-scheme:inherit; border-color:var(--inputBorder); }
.nutrition-hub .nutrition-day-picker .btn { color:var(--text); background:var(--raised); border-color:var(--border); }
.nutrition-hub .nutrition-gauge { filter:drop-shadow(0 0 15px color-mix(in srgb,var(--nutrition) 10%,transparent)); }
.nutrition-hub .nutrition-gauge-track { stroke:color-mix(in srgb,var(--nutrition) 13%,var(--border)); }
.nutrition-hub .nutrition-gauge-fill { stroke:url(#nutrition-energy-light); }
.nutrition-hub .nutrition-macro { border:1px solid color-mix(in srgb,var(--macro-color) 23%,var(--border)); background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--macro-color) 12%,transparent),transparent 85%),var(--panel); box-shadow:inset 0 1px 0 var(--surfaceBeam); padding-top:13px; position:relative; }
.nutrition-macro.protein,.nutrition-hub .nutrition-macro.protein { --macro-color:var(--nutrition); }
.nutrition-macro.carbs,.nutrition-hub .nutrition-macro.carbs { --macro-color:var(--training); }
.nutrition-macro.fat,.nutrition-hub .nutrition-macro.fat { --macro-color:var(--fat); }
.nutrition-hub .nutrition-macro h3 { display:flex; align-items:center; gap:6px; }
.nutrition-hub .nutrition-macro h3:before { content:""; width:4px; height:14px; border-radius:4px; background:var(--macro-color); }
.nutrition-hub .nutrition-dashboard-actions { border-color:var(--border); }
.nutrition-hub .nutrition-dashboard-actions .tag { background:var(--raised); }
.nutrition-hub .nutrition-macro h3,.nutrition-hub .nutrition-macro small,.nutrition-hub .nutrition-energy-stat small,.nutrition-hub .nutrition-gauge-label span { font-size:.875rem; }
.nutrition-tabs [data-key="journal"] .icon,.nutrition-tabs [data-key="recipes"] .icon { color:var(--nutrition); }
.nutrition-tabs [aria-selected="true"] .icon { color:inherit; }
.nutrition-note { background:linear-gradient(100deg,color-mix(in srgb,var(--nutrition) 6%,var(--panel)),var(--panel)); }
.nutrition-note > .icon { color:var(--nutrition); }
.meal-group { --meal-color:var(--nutrition); }
.meal-group[data-meal="0"] { --meal-color:var(--fat); }
.meal-group[data-meal="1"] { --meal-color:var(--nutrition); }
.meal-group[data-meal="2"] { --meal-color:var(--training); }
.meal-group[data-meal="3"] { --meal-color:var(--weight); }
.meal-symbol,[data-theme="light"] .meal-symbol { color:var(--meal-color,var(--nutrition)); background:linear-gradient(145deg,color-mix(in srgb,var(--meal-color,var(--nutrition)) 18%,var(--panel)),color-mix(in srgb,var(--meal-color,var(--nutrition)) 5%,var(--panel))); border:1px solid color-mix(in srgb,var(--meal-color,var(--nutrition)) 22%,transparent); }
.meal-group .meal-add { background:var(--raised); color:var(--meal-color); border-color:color-mix(in srgb,var(--meal-color) 23%,var(--border)); box-shadow:inset 0 1px 0 var(--surfaceBeam); }
.meal-nutrients .protein strong { color:var(--nutrition); }
.meal-nutrients .carbs strong { color:var(--training); }
.meal-nutrients .fat strong { color:var(--fat); }
.more-avatar { color:var(--text); background:linear-gradient(140deg,var(--surfaceTop),var(--panel)); border:1px solid var(--inputBorder); box-shadow:inset 0 1px 0 var(--surfaceBeam),var(--surfaceShadow); }
.tracking-icon,[data-theme="light"] .tracking-icon { color:var(--hydration); background:color-mix(in srgb,var(--hydration) 12%,var(--panel)); border:1px solid color-mix(in srgb,var(--hydration) 20%,transparent); }
.personal-tracking-card:nth-child(2) .tracking-icon,[data-theme="light"] .personal-tracking-card:nth-child(2) .tracking-icon { color:var(--weight); background:color-mix(in srgb,var(--weight) 12%,var(--panel)); border-color:color-mix(in srgb,var(--weight) 20%,transparent); }
.mobility-hero { color:#fafafa; background:radial-gradient(ellipse at 95% 0%,#bcb1dd26,transparent 66%),linear-gradient(135deg,#2a2930,#101114 80%); border:1px solid #ffffff30; border-radius:20px; box-shadow:inset 0 1px 0 #ffffff20,0 18px 45px #0003; }
.mobility-hero p,.mobility-hero .eyebrow { color:#c8c6d1; }
.mobility-hero .tag { color:#ded6f8; background:#b6a1e615; border-color:#b6a1e640; }
.mobility-hero > .mobility-figure { color:#e4def5; filter:drop-shadow(0 0 18px #c5b2ff25); }
.mobility-body-points circle { fill:#aaa3bc; }
.mobility-body-points .focused { fill:var(--mobility); }
.mobility-preset .icon { color:var(--mobility); background:color-mix(in srgb,var(--mobility) 12%,var(--panel)); border:1px solid color-mix(in srgb,var(--mobility) 25%,transparent); }
.mobility-zone[aria-pressed="true"] { border-color:var(--mobility); }
.recipe-photo { background-color:var(--raised); }
.recipe-photo-pending { background:radial-gradient(ellipse at 20% 0%,color-mix(in srgb,var(--nutrition) 10%,transparent),transparent 75%),linear-gradient(145deg,var(--surfaceTop),var(--surfaceBottom)); }
.recipe-photo > span { font-size:.75rem; }
.recipe-photo-pending > .icon { position:absolute; width:52px; height:52px; inset:calc(50% - 26px); color:var(--nutrition); stroke-width:1; }
.quick-choice[data-key="meal"] > .icon { background:color-mix(in srgb,var(--nutrition) 16%,var(--panel)); color:var(--nutrition); }
.quick-choice[data-key="water"] > .icon { background:color-mix(in srgb,var(--hydration) 16%,var(--panel)); color:var(--hydration); }
.quick-choice[data-key="weight"] > .icon { background:color-mix(in srgb,var(--weight) 16%,var(--panel)); color:var(--weight); }
.quick-add-dialog::backdrop { background:#000000b0; backdrop-filter:blur(12px); }
.quick-add-dialog { background:linear-gradient(145deg,var(--surfaceTop),var(--surfaceBottom)); border-color:var(--edgeLight); box-shadow:inset 0 1px 0 var(--surfaceBeam),0 35px 120px #0008; }
.day-card { position:relative; }
.day-card[data-kind="training"] { box-shadow:inset 0 3px 0 var(--training),inset 0 4px 0 #ffffff20; }
.day-card[data-kind="rest"] { box-shadow:inset 0 3px 0 var(--nutrition),inset 0 4px 0 #ffffff20; }
.day-card[aria-pressed="true"] { border-color:var(--training); background:linear-gradient(145deg,color-mix(in srgb,var(--training) 16%,var(--panel)),var(--raised)); }
.session-line { border-left:2px solid color-mix(in srgb,var(--training) 60%,transparent); padding-left:12px; }
.session-line[data-status="done"] { border-left-color:var(--success); }
.session-line[data-status="review"],.session-line[data-status="missed"] { border-left-color:var(--error); }
.login { width:min(100% - 48px,1080px); margin:clamp(28px,6vh,70px) auto; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:start; gap:32px; }
.login > .brand { grid-column:1/-1; margin-bottom:20px; }
.login > .hero { min-height:456px; padding:40px; align-self:stretch; }
.login > .hero > div:first-child { padding-right:0; padding-top:85px; }
.login > .hero h1 { font-size:clamp(2.2rem,4.2vw,3.4rem); max-width:14ch; }
.login > .hero h1 span { display:block; padding-bottom:.16em; margin-bottom:-.16em; color:#c2c5ce; background:linear-gradient(110deg,#eceef2,#a1a7b3); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.login > .hero .hero-emblem { width:82px; height:82px; top:25px; right:30px; border-radius:21px; }
.login > .panel { padding:30px; gap:24px; align-self:center; }
.login > .row,.login > .actions { grid-column:1/-1; }
.welcome-access-heading { display:grid; gap:10px; }
.welcome-access-heading h2 { font-size:1.8rem; letter-spacing:-.04em; }
.welcome-pillars { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:28px; }
.welcome-pillars > span { display:flex; align-items:center; gap:7px; font-size:.75rem; color:#d6d9e0; }
.welcome-pillars .icon { color:var(--tone); width:17px; height:17px; }
[data-theme="light"] .welcome-pillars [data-tone="training"] { --tone:#9bb7ff; }
[data-theme="light"] .welcome-pillars [data-tone="nutrition"] { --tone:#81dfb8; }
[data-theme="light"] .welcome-pillars [data-tone="mobility"] { --tone:#c5b2ff; }
@media(hover:hover) and (pointer:fine) {
 .panel.metric,.meal-group,.mobility-preset,.recipe-card { transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
 .panel.metric:hover,.meal-group:hover,.mobility-preset:hover,.recipe-card:hover { border-color:color-mix(in srgb,var(--text) 28%,var(--border)); box-shadow:inset 0 1px 0 #ffffff20,0 18px 48px #0003; transform:translateY(-2px); }
 .btn:not(:disabled):hover { box-shadow:0 0 22px color-mix(in srgb,var(--text) 12%,transparent),inset 0 1px 0 #ffffff50; }
 .btn:not(:disabled):hover:after { transform:translateX(130%); }
 .hero .hero-emblem { transition:transform .45s ease,box-shadow .45s ease; }
 .hero:hover .hero-emblem { transform:rotate(-5deg) translateY(-3px); box-shadow:inset 0 1px 1px #ffffff60,0 28px 48px #0007,0 0 75px #ffffff22; }
}
@media(max-width:1000px) {
 .hero:has(.hero-emblem) > div:first-child { padding-right:80px; }
 .hero:has(.hero-emblem) .actions { margin-right:-80px; }
 .hero .hero-emblem { width:90px; height:90px; right:24px; top:30px; border-radius:23px; opacity:.7; }
 .login > .hero > div:first-child { padding-right:0; }
}
@media(max-width:800px) {
 .shell { display:block; }
 .sidebar { padding:14px; }
 .content { padding-top:22px; gap:18px; }
 .top { position:static; }
 .login { grid-template-columns:1fr; width:min(100% - 32px,620px); gap:20px; }
 .login > .brand { margin-bottom:8px; }
 .login > .hero { min-height:340px; padding:28px; }
 .login > .hero > div:first-child { padding-top:58px; }
 .login > .panel { padding:24px; }
 .hero { min-height:250px; }
 .hero:has(.hero-emblem) > div:first-child { padding-right:45px; }
 .hero:has(.hero-emblem) .actions { margin-right:-45px; }
 .hero .hero-emblem { width:70px; height:70px; right:20px; top:22px; border-radius:19px; opacity:.55; }
 .login > .hero > div:first-child { padding-right:0; }
 .mobile-nav { background:color-mix(in srgb,var(--bg) 93%,transparent); backdrop-filter:blur(22px); box-shadow:inset 0 1px 0 #ffffff12,0 -8px 30px #0003; }
 .nutrition-hub .nutrition-macro h3 { gap:4px; font-size:.8rem; }
}
@media(prefers-reduced-motion:reduce) {
 .hero .hero-emblem,.hero:hover .hero-emblem,.panel.metric:hover,.meal-group:hover,.recipe-card:hover,.mobility-preset:hover { transform:none; transition:none; }
 .btn:after { display:none; }
}
@media(forced-colors:active) {
 .login > .hero h1 span { background:none; -webkit-text-fill-color:CanvasText; }
 .panel,.meal-group,.mobility-preset,.recipe-card { border-color:CanvasText; }
}

/* Explicit content taxonomy and one visible primary action. */
:root { --primary:#c6ff3d; }
.brand .brand-wordmark-type { display:block; width:140px; height:auto; font-size:1.05rem; font-weight:380; letter-spacing:.17em; line-height:1.4; text-transform:uppercase; color:var(--text); }
.brand { gap:10px; }
h1,h2 { font-weight:730; }
[data-content="strength"] { --content-color:var(--strength); }
[data-content="cardio"] { --content-color:var(--cardio); }
[data-content="mobility"] { --content-color:var(--mobility); }
[data-content="nutrition"] { --content-color:var(--nutrition); }
[data-content="check"] { --content-color:var(--check); }
[data-tone="profile"],[data-tone="clients"],[data-tone="calendar"],[data-tone="target"] { --tone:var(--check); }
[data-tone="training"] { --tone:var(--strength); }
[data-tone="nutrition"] { --tone:var(--nutrition); }
[data-tone="mobility"] { --tone:var(--mobility); }
.metric,.exercise-card,.mobility-preset,.mobility-zone,.recipe-card,.meal-group,.exercise-library-card { position:relative; }
.metric:before,.exercise-card:before,.mobility-preset:before,.mobility-zone:before,.recipe-card:before,.meal-group:before,.exercise-library-card:before { content:""; position:absolute; left:14px; right:14px; top:0; height:2px; border-radius:4px; pointer-events:none; background:var(--content-color,var(--tone,var(--check))); }
.metric strong { font-size:clamp(2rem,3.2vw,2.8rem); line-height:1.1; }
.metric small { color:var(--muted); }
.btn,.hero .btn:not(.secondary):not(.ghost) { background:linear-gradient(145deg,color-mix(in srgb,var(--text) 5%,var(--raised)),var(--raised)); color:var(--text); border-color:color-mix(in srgb,var(--text) 18%,var(--panel)); box-shadow:inset 0 1px 0 #ffffff12,0 3px 10px #0002; }
.btn.ghost,.btn.danger { background:transparent; box-shadow:none; }
.btn.danger { color:var(--error); }
.btn.primary,.hero .btn.primary:not(.secondary):not(.ghost),.hero .btn.secondary.primary { background:var(--primary); border-color:var(--primary); color:#10130b; box-shadow:inset 0 1px 0 #ffffff66,0 4px 18px #0003; }
.btn.primary:hover { box-shadow:0 0 20px #c6ff3d1a,inset 0 1px 0 #ffffff88; }
.stepper span.active { background:var(--text); }
.form-grid > label.check:has(input:checked) { box-shadow:inset 3px 0 var(--text); background:color-mix(in srgb,var(--text) 7%,var(--panel)); }
input,textarea,select { accent-color:var(--text); }
.nutrition-tabs button[aria-selected="true"],.food-library-tabs button[aria-pressed="true"] { background:var(--raised); color:var(--text); box-shadow:inset 0 1px 0 var(--surfaceBeam); }
.nutrition-tabs button[aria-selected="true"]:hover { background:var(--raised); color:var(--text); }
.nutrition-tabs button[aria-selected="true"] .icon { color:var(--nutrition); }
.meal-group { --meal-color:var(--nutrition); }
.meal-group[data-meal="0"],.meal-group[data-meal="1"],.meal-group[data-meal="2"],.meal-group[data-meal="3"] { --meal-color:var(--nutrition); }
.nutrition-macro.protein,.nutrition-hub .nutrition-macro.protein,.nutrition-macro.carbs,.nutrition-hub .nutrition-macro.carbs,.nutrition-macro.fat,.nutrition-hub .nutrition-macro.fat { --macro-color:var(--nutrition); }
.nutrition-hub .nutrition-macro { background:var(--panel); }
.meal-nutrients .protein strong,.meal-nutrients .carbs strong,.meal-nutrients .fat strong { color:var(--text); }
.nutrition-hub .nutrition-dashboard { background:radial-gradient(ellipse 80% 45% at 50% -12%,color-mix(in srgb,var(--nutrition) 6%,transparent),transparent 90%),linear-gradient(150deg,var(--surfaceTop),var(--surfaceBottom)); }
.nutrition-hub .nutrition-gauge { filter:none; }
.nutrition-hub .nutrition-dashboard { border-color:var(--border); }
.nutrition-note { background:linear-gradient(130deg,var(--surfaceTop),var(--panel)); }
.day-card[data-kind="strength"] { box-shadow:inset 0 2px 0 var(--strength); }
.day-card[data-kind="cardio"] { box-shadow:inset 0 2px 0 var(--cardio); }
.day-card[data-kind="mobility"] { box-shadow:inset 0 2px 0 var(--mobility); }
.day-card[aria-pressed="true"] { background:var(--raised); border-color:var(--inputBorder); }
.session-line { position:relative; border-left:0; padding-left:0; }
.session-line:before { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:var(--content-color,var(--check)); }
.session-line > .between { padding-top:12px; }
.session-line .tag { color:var(--muted); }
.tag.good { color:var(--text); border-color:var(--border); background:var(--raised); }
.nav [data-key="training"] .icon,.mobile-nav [data-key="training"] .icon { color:var(--strength); }
.nav [data-key="calendar"] .icon,.nav [data-key="progress"] .icon { color:var(--check); }
.nav [data-key="profile"] .icon { color:var(--check); }
.nav button[aria-current="page"],.mobile-nav button[aria-current="page"] { border-color:var(--border); background:linear-gradient(125deg,var(--surfaceTop),var(--raised)); }
.mobile-nav .mobile-add { background:var(--raised); color:var(--text); border:1px solid var(--border); }
.welcome-pillars [data-tone="training"] { --tone:var(--strength); }
[data-theme="light"] .welcome-pillars [data-tone="training"] { --tone:#3ddc97; }
[data-theme="light"] .welcome-pillars [data-tone="nutrition"] { --tone:#ffb020; }
[data-theme="light"] .welcome-pillars [data-tone="mobility"] { --tone:#a78bfa; }
.mobility-hero { background:radial-gradient(ellipse at 95% 0%,#a78bfa0f,transparent 66%),linear-gradient(135deg,#292a2e,#101114 80%); }
.mobility-hero > .mobility-figure { color:#d2d2d7; filter:none; }
.exercise-library-card { padding:15px 12px; margin-top:8px; border:1px solid var(--border); border-radius:10px; background:linear-gradient(135deg,var(--panel),var(--surfaceBottom)); }
.exercise-library-card .tag { color:var(--content-color); }
.welcome-photo { position:absolute; width:100%; height:100%; object-fit:cover; object-position:65% 35%; inset:0; z-index:-1; filter:grayscale(1) brightness(.58); }
.hero:has(.welcome-photo) { min-height:420px; background:#101114; }
.hero:has(.welcome-photo):before { z-index:0; background:linear-gradient(90deg,#08090bf0 8%,#08090ba0 55%,#08090b12),linear-gradient(0deg,#08090bd0,transparent 60%); mask-image:none; }
.hero:has(.welcome-photo) > div:first-child { padding-right:20%; }
.hero:has(.welcome-photo) .actions { margin-right:0; }
@media(max-width:800px) {
 .hero:has(.welcome-photo) { min-height:380px; }
 .hero:has(.welcome-photo) > div:first-child { padding-right:8%; }
 .brand .brand-wordmark-type { width:140px; }
 .metric { min-height:140px; }
}

.mobility-tabs .btn[aria-pressed="true"] { border-color:var(--mobility); box-shadow:inset 0 -2px 0 var(--mobility); }

.panel[data-content] { position:relative; }
.panel[data-content]:before { content:""; position:absolute; left:14px; right:14px; top:0; height:2px; border-radius:4px; background:var(--content-color,var(--check)); pointer-events:none; }

/* Navigation: readable labels, distinct active state, bounded colour cues. */
:root { --nav-text:#d9dce3; --nav-neutral:#e1e4ea; --nav-active-top:#393d45; --nav-active-bottom:#262930; --nav-active-edge:#737985; }
[data-theme="light"] { --nav-text:#303844; --nav-neutral:#46515e; --nav-active-top:#ffffff; --nav-active-bottom:#e2e5eb; --nav-active-edge:#6a7482; }
.nav button { --nav-tone:var(--nav-neutral); position:relative; min-height:52px; padding:9px 11px 9px 13px; gap:12px; color:var(--nav-text); font-size:.95rem; font-weight:600; line-height:1.35; white-space:normal; }
.nav button[data-key="library"],.nav button[data-key="training"] { --nav-tone:var(--strength); }
.nav button[data-key="nutrition"] { --nav-tone:var(--nutrition); }
.nav button[data-key="mobility"] { --nav-tone:var(--mobility); }
.nav-label { min-width:0; text-align:left; }
.nav-symbol { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:9px; color:var(--nav-tone); border:1px solid color-mix(in srgb,var(--nav-tone) 25%,var(--panel)); background:linear-gradient(145deg,color-mix(in srgb,var(--nav-tone) 9%,var(--panel)),var(--panel)); box-shadow:inset 0 1px 0 var(--surfaceBeam); }
.nav button .nav-symbol .icon { width:20px; height:20px; stroke-width:1.9; color:inherit; }
.nav button[aria-current="page"] { color:var(--text); font-weight:720; border-color:var(--nav-active-edge); background:linear-gradient(130deg,var(--nav-active-top),var(--nav-active-bottom)); box-shadow:inset 0 1px 0 var(--surfaceBeam),0 5px 16px #0002; }
.nav button[aria-current="page"]:before { content:""; position:absolute; left:4px; top:calc(50% - 12px); width:3px; height:24px; border-radius:3px; background:var(--nav-tone); }
.nav button[aria-current="page"] .nav-symbol { background:linear-gradient(145deg,color-mix(in srgb,var(--nav-tone) 18%,var(--panel)),color-mix(in srgb,var(--nav-tone) 5%,var(--panel))); border-color:color-mix(in srgb,var(--nav-tone) 45%,var(--border)); }
@media(hover:hover) and (pointer:fine) {
 .nav button:not([aria-current="page"]):hover { color:var(--text); border-color:var(--inputBorder); background:linear-gradient(120deg,var(--surfaceTop),var(--raised)); }
 .nav button:hover .nav-symbol { border-color:color-mix(in srgb,var(--nav-tone) 50%,var(--border)); }
}
@media(max-width:800px) {
 .nav button { flex-shrink:0; min-height:48px; padding:8px 10px; font-size:.875rem; gap:9px; }
 .nav button[aria-current="page"]:before { left:3px; height:20px; top:calc(50% - 10px); width:2px; }
 .nav-symbol { width:29px; height:29px; }
 .nav button .nav-symbol .icon { width:19px; height:19px; }
 .mobile-nav button { position:relative; color:var(--nav-text); font-size:clamp(.68rem,2.9vw,.8rem); font-weight:600; line-height:1.2; gap:5px; }
 .mobile-nav .icon { stroke-width:1.9; }
 .mobile-nav button[aria-current="page"] { color:var(--text); background:linear-gradient(135deg,var(--nav-active-top),var(--nav-active-bottom)); box-shadow:inset 0 1px 0 var(--nav-active-edge); }
 .mobile-nav button[aria-current="page"]:before { content:""; position:absolute; left:25%; right:25%; top:0; height:2px; border-radius:4px; background:var(--nav-neutral); }
 .mobile-nav button[aria-current="page"][data-key="training"]:before { background:var(--strength); }
 .mobile-nav button[aria-current="page"][data-key="nutrition"]:before { background:var(--nutrition); }
 .mobile-nav button[aria-current="page"][data-key="mobility"]:before { background:var(--mobility); }
}
@media(forced-colors:active) {
 .nav button[aria-current="page"],.mobile-nav button[aria-current="page"] { outline:2px solid Highlight; }
 .nav-symbol { border-color:ButtonText; }
 .nav button[aria-current="page"]:before,.mobile-nav button[aria-current="page"]:before { background:Highlight; }
}

/* The brand mark is the small, permanent colour signature. */
.brand .brand-mark { border-color:#c6ff3d40; box-shadow:inset 0 1px 0 #ffffff20,0 3px 14px #0003; }
.hero .hero-emblem { border-color:#c6ff3d50; background:linear-gradient(140deg,#c6ff3d15,#ffffff05 55%,#00000040); box-shadow:inset 0 1px 1px #ffffff40,0 24px 44px #0007,0 0 55px #8adf670d; }
@media(hover:hover) and (pointer:fine) {
 .hero:hover .hero-emblem { box-shadow:inset 0 1px 1px #ffffff50,0 28px 48px #0007,0 0 60px #8adf671c; }
}
@media(max-width:1000px) { .hero .hero-emblem { opacity:.95; } }

/* A more welcoming home: less framing, one clear next step and real progress. */
:root { --edgeLight:#ffffff29; --surfaceShadow:0 8px 25px #00000029,inset 0 1px 0 #ffffff08; }
.hero { box-shadow:inset 0 1px 0 #ffffff18,0 10px 30px #0003; }
.home-overview { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:22px; align-items:stretch; }
.home-overview .home-welcome { min-height:340px; padding:32px; border-color:#ffffff20; }
.home-overview .home-welcome > div:first-child { padding-right:30px; }
.home-overview .home-welcome h1 { font-size:clamp(2rem,3.8vw,3rem); margin:28px 0 15px; max-width:15ch; }
.home-overview .home-welcome p { font-size:1.1rem; line-height:1.65; max-width:28ch; }
.home-overview .home-welcome .hero-emblem { width:72px; height:72px; top:25px; right:25px; border-radius:19px; opacity:.85; transform:rotate(-6deg); box-shadow:inset 0 1px 0 #ffffff20,0 10px 22px #0003; }
.home-motto { display:block; color:#aeb3bd; font-size:.875rem; margin-top:24px; }
.home-focus-card,.login > .welcome-access {
 --bg:#fafbfc; --panel:#f7f8fa; --raised:#e7eaf0; --border:#cdd2db; --text:#171b22; --muted:#505968; --accent:#1b2029; --accentText:#ffffff; --accentInk:#171b22; --focus:#171b22; --inputBorder:#737d8b; --error:#a32424; --warn:#70521b;
 --strength:#187c52; --cardio:#2269ba; --nutrition:#936000; --mobility:#7656b8; --check:#626975;
 background:linear-gradient(145deg,#ffffff,#f2f4f7); color:var(--text); border:1px solid #ffffff; border-radius:20px; box-shadow:0 12px 30px #0003;
}
.home-focus-card { display:flex; flex-direction:column; gap:17px; padding:28px; min-width:0; position:relative; }
.home-focus-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.home-focus-top .eyebrow { color:var(--muted); }
.home-focus-top > .icon { width:23px; height:23px; color:var(--content-color,var(--check)); }
.home-focus-card h2 { font-size:clamp(1.55rem,2.8vw,2rem); letter-spacing:-.045em; line-height:1.2; max-width:22ch; }
.home-focus-card > p { color:var(--muted); font-size:.95rem; line-height:1.6; }
.home-focus-card > .actions { margin-top:auto; padding-top:6px; }
.home-focus-card .btn,.login > .welcome-access .btn { --surfaceBeam:#ffffff; }
.home-focus-card .btn.primary,.login > .welcome-access .btn.primary { border-color:#627c29; }
.home-focus-card .btn.ghost,.login > .welcome-access .btn.ghost { color:var(--muted); }
.home-session-preview { border-left:2px solid var(--content-color,var(--check)); padding:0 0 0 12px; display:grid; gap:3px; }
.home-session-preview > span,.home-session-preview small { color:var(--muted); font-size:.8rem; }
.home-session-preview strong { font-size:1rem; line-height:1.4; }
.home-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.home-shortcut { display:flex; align-items:center; gap:13px; padding:19px 12px; text-align:left; color:var(--text); border:0; border-bottom:1px solid var(--border); background:transparent; border-radius:10px 10px 0 0; cursor:pointer; transition:background-color .18s ease,transform .18s ease; }
.home-shortcut-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:14px; color:var(--content-color); background:color-mix(in srgb,var(--content-color) 10%,var(--panel)); }
.home-shortcut-icon .icon { width:23px; height:23px; }
.home-shortcut > span:last-child { display:grid; gap:4px; }
.home-shortcut strong { font-size:1rem; font-weight:680; }
.home-shortcut small { color:var(--muted); font-size:.8rem; line-height:1.4; }
.home-stats .metric { box-shadow:none; border-color:var(--border); background:linear-gradient(145deg,var(--panel),var(--surfaceBottom)); }
.home-client-stats .metric:last-child strong { font-size:clamp(1.4rem,2.3vw,1.9rem); line-height:1.25; overflow-wrap:anywhere; }
.home-details > .panel,.home-details.panel { box-shadow:none; }
.home-account-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-top:1px solid var(--border); padding-top:15px; }
.home-tools { color:var(--muted); font-size:.875rem; border-top:1px solid var(--border); padding-top:16px; }
.home-tools > summary { cursor:pointer; }
.home-tools .actions { margin-top:16px; }
.login > .welcome-access { padding:32px; }
.login .welcome-access-heading > .eyebrow { color:var(--muted); }
@media(hover:hover) and (pointer:fine) {
 .home-shortcut:hover { background:var(--panel); transform:translateY(-2px); }
 .home-overview .home-welcome:hover .hero-emblem { transform:rotate(-4deg); box-shadow:inset 0 1px 0 #ffffff25,0 12px 24px #0003; }
}
@media(max-width:1050px) {
 .home-overview { grid-template-columns:1fr; gap:18px; }
 .home-overview .home-welcome { min-height:260px; }
 .home-overview .home-welcome h1 { margin-top:18px; max-width:none; }
 .home-overview .home-welcome p { max-width:none; }
 .home-motto { margin-top:15px; }
 .home-focus-card { gap:14px; }
 .home-shortcuts { gap:8px; }
 .home-shortcut { align-items:flex-start; gap:9px; padding:15px 8px; }
 .home-shortcut-icon { width:35px; height:35px; border-radius:11px; }
}
@media(max-width:620px) {
 .home-overview .home-welcome { min-height:255px; padding:25px; }
 .home-overview .home-welcome h1 { max-width:12ch; font-size:2.2rem; }
 .home-overview .home-welcome p { font-size:1rem; }
 .home-overview .home-welcome .hero-emblem { width:58px; height:58px; top:20px; right:20px; border-radius:16px; }
 .home-focus-card { padding:24px; }
 .home-focus-card h2 { font-size:1.65rem; }
 .home-shortcuts { grid-template-columns:1fr; gap:0; }
 .home-shortcut { align-items:center; padding:15px 8px; }
 .home-shortcut-icon { width:40px; height:40px; }
 .home-shortcut > span:last-child { gap:3px; }
 .login > .welcome-access { padding:25px; }
}
@media(prefers-reduced-motion:reduce) { .home-shortcut,.home-shortcut:hover,.home-overview .home-welcome:hover .hero-emblem { transition:none; transform:none; } }
@media(forced-colors:active) { .home-focus-card,.login > .welcome-access { background:Canvas; color:CanvasText; border-color:CanvasText; } }

/* Movaleno · Sillage: small living ribbons, soft reflections and immediate feedback. */
.welcome-stage,.light-stage { position:relative; isolation:isolate; }
.welcome-stage { min-height:100svh; overflow:hidden; color:#f5f5f5; background:#080a09; }
.welcome-stage > .login { position:relative; z-index:1; width:min(100% - 64px,1200px); min-height:100svh; margin:0 auto; padding:54px 0 85px; align-content:start; gap:24px 48px; }
.welcome-stage .login > .brand { margin-bottom:22px; }
.welcome-stage .login > .hero { min-height:570px; padding:58px 28px 80px; background:transparent; border:0; box-shadow:none; overflow:visible; }
.welcome-stage .login > .hero:before,.welcome-stage .login > .hero:after { display:none; }
.welcome-stage .login > .hero > div:first-child { padding-top:90px; }
.welcome-stage .login > .hero h1 { font-size:clamp(3rem,5.4vw,4.7rem); line-height:1.12; letter-spacing:-.055em; text-shadow:0 4px 38px #0009; }
.welcome-stage .login > .hero h1 span { background:linear-gradient(110deg,#fff 8%,#dbe0d6 52%,#95a48b); background-clip:text; -webkit-background-clip:text; }
.welcome-stage .login > .hero p { margin-top:25px; max-width:35ch; font-size:1.1rem; color:#cbd2c8; text-shadow:0 2px 15px #000; }
.welcome-stage .welcome-pillars { margin-top:34px; }
.welcome-stage .welcome-pillars > span { color:#d6dcd1; font-size:.875rem; }
.welcome-stage .login > .hero .hero-emblem { width:100px; height:100px; top:13px; right:38px; border-radius:26px; }
.welcome-stage .welcome-access { position:relative; border-color:#ffffff80; box-shadow:inset 0 1px 0 #fff,0 25px 90px #0008,0 0 80px #ccff5b0b; }
.welcome-stage .welcome-access:before { content:""; position:absolute; height:1px; left:10%; right:10%; top:-1px; background:linear-gradient(90deg,transparent,#ecffd1,transparent); box-shadow:0 -7px 28px #d6ff6b55; }
.light-stage > .top,.light-stage > .content { position:relative; z-index:1; }
.top,.mobile-nav { background:var(--bg); backdrop-filter:none; }
.light-stage > .top { background:var(--bg); backdrop-filter:none; }
.light-field { position:absolute; z-index:0; inset:0 0 auto; height:1120px; overflow:hidden; pointer-events:none; contain:paint; }
.welcome-stage > .light-field { height:100%; min-height:850px; max-height:1400px; }
.light-field-veil { position:absolute; inset:0; width:100%; height:100%; }
.live-flow { position:absolute; z-index:0; top:-45px; right:-110px; width:min(100%,520px); height:420px; pointer-events:none; overflow:hidden; }
.live-flow path { fill:none; stroke:url(#movaleno-live-light); stroke-linecap:round; }
.live-flow .flow-thread { stroke-width:1; opacity:.5; }
.live-flow .flow-soft { stroke-width:15; opacity:.09; }
.live-flow .flow-shine { stroke-width:1.8; opacity:.9; stroke-dasharray:55 940; animation:flow-highlight 14s linear infinite; }
.flow-spark { fill:#e6ffd5; opacity:.7; }
.home-welcome .live-flow { right:-155px; width:520px; }
.welcome-stage .live-flow { top:-15px; right:-100px; width:560px; height:520px; }
@keyframes flow-highlight { to { stroke-dashoffset:-995; } }
.light-cloud { position:absolute; width:100%; height:90%; top:-15%; left:18%; border-radius:50%; transform-origin:50% 50%; }
.light-cloud-lime { background:radial-gradient(ellipse at 57% 42%,#ceff4c30,transparent 52%),radial-gradient(ellipse at 58% 70%,#87b72f30,transparent 51%);  }
.light-cloud-mint { top:15%; left:-25%; background:radial-gradient(ellipse at 72% 50%,#72d1b51c,transparent 55%),radial-gradient(ellipse at 20% 45%,#c6ff3d12,transparent 48%);  }
.light-field-veil { background:linear-gradient(90deg,#080a09c4 0%,#080a0980 26%,transparent 62%),linear-gradient(180deg,#080a0920,transparent 58%,#080a09); }
.light-stage .light-field { opacity:.9; }
.light-stage .light-field-veil { background:linear-gradient(90deg,#08090b99,transparent 85%),linear-gradient(180deg,#08090b40,transparent 45%,#08090b); }
.light-stage .home-welcome { background:linear-gradient(105deg,#141915e8 10%,#11161296 70%,#11161238); border-color:#d8f5bf40; box-shadow:inset 0 1px 0 #f0ffdf24,0 16px 45px #0004; overflow:hidden; }
.light-stage .home-welcome:before { background:radial-gradient(ellipse at 65% 32%,#d1ff8b1c,transparent 70%); mask-image:none; }
.light-stage .home-welcome h1,.light-stage .home-welcome p { text-shadow:0 3px 24px #000c; }
.light-stage .home-welcome .hero-emblem,.welcome-stage .hero-emblem { background:linear-gradient(140deg,#bfd5912b,#1a251ce6 45%,#090e0b); border:1px solid #d5ff8b5e; box-shadow:inset 0 1px 0 #efffd475,0 25px 55px #0008,0 0 65px #c6ff3d20; overflow:hidden; animation:field-emblem 7s ease-in-out infinite alternate; }
.light-stage .hero-emblem:after,.welcome-stage .hero-emblem:after { content:""; position:absolute; inset:-80%; background:linear-gradient(110deg,transparent 40%,#f3ffca38 48%,#ffffff0d 55%,transparent 62%); animation:field-glint 8s ease-in-out infinite; }
.light-stage .home-focus-card { box-shadow:inset 0 1px 0 #fff,0 20px 60px #0006,0 0 60px #d9ff730a; }
.light-stage .home-stats .metric { background:linear-gradient(145deg,var(--panel),var(--bg)); backdrop-filter:none; }
.light-stage .home-shortcut { background:linear-gradient(145deg,#d9f9b304,transparent); }
.light-stage .home-stats > .metric,.light-stage .home-shortcuts > .home-shortcut { animation:field-surface-in .4s cubic-bezier(.16,1,.3,1) backwards; }
.light-stage .home-stats > .metric:nth-child(2),.light-stage .home-shortcuts > .home-shortcut:nth-child(2) { animation-delay:.1s; }
.light-stage .home-stats > .metric:nth-child(3),.light-stage .home-shortcuts > .home-shortcut:nth-child(3) { animation-delay:.2s; }
.light-stage .home-overview .home-welcome { animation:field-surface-in .45s cubic-bezier(.16,1,.3,1) backwards; }
.light-stage .home-focus-card { animation:field-surface-in .45s .08s cubic-bezier(.16,1,.3,1) backwards; }
.welcome-stage .hero > div:first-child { animation:field-copy-in .55s cubic-bezier(.16,1,.3,1) backwards; }
.welcome-stage .welcome-access { animation:field-surface-in .5s .1s cubic-bezier(.16,1,.3,1) backwards; }
.hero > .motion-control { position:absolute; z-index:3; right:20px; bottom:18px; min-height:38px; background:#0d1316; border-color:#ffffff30; color:#dce5df; }
.motion-control { gap:7px; }
.motion-control[aria-pressed="false"] { opacity:.72; }
.motion-control .icon { width:17px; height:17px; }
.motion-control:disabled { cursor:default; }
.home-focus-card,.home-shortcut,.metric,.mobility-preset,.mobility-zone,.recipe-card,.exercise-library-card,.day-card { position:relative; overflow:hidden; }
:is(.home-focus-card,.home-shortcut,.metric,.mobility-preset,.mobility-zone,.recipe-card,.exercise-library-card,.day-card):after {
 content:""; position:absolute; top:-15%; left:-100%; width:65%; height:220px; pointer-events:none; opacity:0;
 background:linear-gradient(110deg,transparent 12%,#ffffff04 35%,#ffffff24 50%,#ffffff06 65%,transparent 88%);
 transform:translate3d(0,0,0) skewX(-18deg);
}
:is(.home-focus-card,.home-shortcut,.mobility-preset,.mobility-zone,.recipe-card,.exercise-library-card,.day-card):focus-within:after { animation:card-reflection .65s ease-out; }
.btn:focus-visible:after,.btn:not(:disabled):active:after { transform:translate3d(130%,0,0); }
.nutrition-gauge-fill { transition:stroke-dashoffset .35s ease; }
@keyframes card-reflection {
 0% { opacity:0; transform:translate3d(0,0,0) skewX(-18deg); }
 18%,70% { opacity:1; }
 100% { opacity:0; transform:translate3d(360%,0,0) skewX(-18deg); }
}
@media(hover:hover) and (pointer:fine) {
 :is(.home-focus-card,.home-shortcut,.metric,.mobility-preset,.mobility-zone,.recipe-card,.exercise-library-card,.day-card):hover:after { animation:card-reflection .65s ease-out; }
 :is(.mobility-preset,.mobility-zone,.recipe-card,.exercise-library-card,.day-card):hover { transform:translate3d(0,-2px,0); }
 .home-focus-card:hover { transform:translate3d(0,-2px,0); }
 .home-focus-card { transition:transform .2s ease,box-shadow .2s ease; }
}
.motion-enter { animation:field-view-in .24s cubic-bezier(.16,1,.3,1) backwards; }
.mobility-hero { isolation:isolate; }
.mobility-hero > div,.mobility-hero > svg { position:relative; z-index:1; }
.mobility-hero:before { content:""; position:absolute; z-index:0; right:-9%; top:-115%; width:80%; height:250%; border-radius:50%; border:1px solid #cbb5ff70; background:radial-gradient(ellipse,#a78bfa00 56%,#cab3ff14 62%,#c1a4ff3b 66%,#bfa5ff09 70%,transparent 74%); box-shadow:inset 0 0 35px #c3abff12,0 0 30px #b69af51a; transform:rotate(-23deg); animation:section-light-orbit 13s ease-in-out infinite alternate; }
.mobility-hero:after { content:""; position:absolute; z-index:0; inset:-30%; background:radial-gradient(ellipse at 78% 50%,#b79bff32,transparent 43%); animation:section-light-breathe 9s ease-in-out infinite alternate; pointer-events:none; }
.nutrition-hub .nutrition-dashboard { position:relative; isolation:isolate; overflow:hidden; }
.nutrition-hub .nutrition-dashboard > * { position:relative; z-index:1; }
.nutrition-hub .nutrition-dashboard:before { content:""; position:absolute; z-index:0; right:-55%; top:-33%; width:130%; height:110%; border-radius:50%; border:1px solid #ffcf7870; background:radial-gradient(ellipse,transparent 50%,#ffb0200d 61%,#ffcb6530 66%,transparent 71%); box-shadow:0 0 30px #ffb0200d; transform:rotate(-28deg); animation:section-light-orbit 16s ease-in-out infinite alternate; pointer-events:none; }
.nutrition-hub .nutrition-dashboard:after { content:""; position:absolute; z-index:0; inset:0; background:radial-gradient(ellipse at 90% 20%,#ffc65a1c,transparent 65%); animation:section-light-breathe 11s ease-in-out infinite alternate; pointer-events:none; }
@keyframes section-light-orbit { from { transform:translateY(-12px) rotate(-23deg) scale(.96); } to { transform:translateY(15px) rotate(-32deg) scale(1.06); } }
@keyframes section-light-breathe { from { opacity:.35; transform:translate(1%,-2%); } to { opacity:1; transform:translate(-3%,3%); } }
.welcome-stage .btn.primary,.welcome-stage .welcome-access .btn:not(.secondary):not(.ghost),.light-stage .btn.primary { box-shadow:inset 0 1px 0 #ffffff90,0 3px 14px #0004,0 0 32px #c6ff3d25; }
@keyframes field-emblem { from { transform:perspective(450px) rotateY(-13deg) rotateX(8deg) rotate(-8deg) translateY(0); } to { transform:perspective(450px) rotateY(10deg) rotateX(-5deg) rotate(-3deg) translateY(-11px); } }
@keyframes field-glint { 0%,30% { transform:translateX(-50%); opacity:0; } 45%,65% { opacity:1; } 90%,100% { transform:translateX(50%); opacity:0; } }
@keyframes field-copy-in { from { opacity:0; transform:translate3d(0,18px,0); } to { opacity:1; transform:none; } }
@keyframes field-surface-in { from { opacity:.2; transform:translate3d(0,14px,0); } to { opacity:1; transform:none; } }
@keyframes field-view-in { from { opacity:.7; transform:translate3d(0,7px,0); } to { opacity:1; transform:none; } }
@media(hover:hover) and (pointer:fine) {
 .light-stage .home-shortcut:hover { background:linear-gradient(120deg,color-mix(in srgb,var(--content-color) 15%,var(--panel)),var(--panel)); box-shadow:inset 0 1px 0 color-mix(in srgb,var(--content-color) 55%,transparent),0 12px 28px #0004; transform:translateY(-4px); }
 .light-stage .metric:hover { transform:translateY(-5px); border-color:#d9f3be66; box-shadow:inset 0 1px 0 #e4ffce50,0 20px 45px #0007,0 0 35px #c6ff3d0c; }
 .light-stage .home-shortcut-icon { transition:transform .3s ease,box-shadow .3s ease; }
 .light-stage .home-shortcut:hover .home-shortcut-icon { transform:rotate(-7deg) scale(1.1); box-shadow:0 0 28px color-mix(in srgb,var(--content-color) 15%,transparent); }
 .welcome-stage .welcome-access:hover,.light-stage .home-focus-card:hover { box-shadow:inset 0 1px 0 #fff,0 28px 70px #0007,0 0 65px #d9ff7319; }
 .light-stage .btn.primary:hover,.welcome-stage .welcome-access .btn:not(.secondary):not(.ghost):hover { transform:translateY(-2px); box-shadow:inset 0 1px 0 #ffffff90,0 7px 22px #0005,0 0 42px #c6ff3d45; }
}
[data-theme="light"] .light-stage .light-field { opacity:.4; }
[data-theme="light"] .light-stage .light-field-veil { background:linear-gradient(180deg,#f4f4f400,#f4f4f4); }
[data-theme="light"] .light-stage .home-welcome { background:linear-gradient(110deg,#121b13,#142415d6); }
@media(max-width:1050px) {
 .welcome-stage > .login { gap:22px; }
 .welcome-stage .login > .hero { min-height:490px; padding:38px 10px 75px; }
 .welcome-stage .login > .hero h1 { font-size:clamp(2.8rem,5.5vw,4.3rem); }
 .welcome-stage .login > .hero .hero-emblem { right:22px; }
}
@media(max-width:900px) {
 .top .motion-control-text { display:none; }
 .top .motion-control { width:38px; padding:7px; flex:none; }
}
@media(max-width:620px) {
 .welcome-stage > .login { width:calc(100% - 40px); padding:30px 0 50px; gap:12px; }
 .welcome-stage .login > .brand { margin-bottom:8px; }
 .welcome-stage .login > .hero { min-height:390px; padding:24px 5px 70px; }
 .welcome-stage .login > .hero > div:first-child { padding-top:0; }
 .welcome-stage .login > .hero h1 { font-size:clamp(2.7rem,11vw,3.6rem); }
 .welcome-stage .login > .hero p { font-size:1rem; max-width:30ch; }
 .welcome-stage .login > .hero .hero-emblem { display:none; }
 /* Sur une colonne etroite, la courbe calee a droite paraissait coupee.
    Elle passe au centre, derriere le texte, en texture de fond. */
 .welcome-stage .live-flow { top:40px; right:auto; left:50%; transform:translateX(-50%); width:min(125%,430px); height:420px; opacity:.45; }
 .home-welcome .live-flow { top:-10px; right:auto; left:50%; transform:translateX(-50%); width:min(125%,420px); height:330px; opacity:.4; }
 .welcome-stage .login > .welcome-access { padding:25px; }
 .welcome-stage .welcome-pillars { gap:9px 12px; margin-top:25px; }
 .welcome-stage .welcome-pillars > span { font-size:.8rem; }
 .welcome-stage > .light-field { min-height:900px; }
 .light-field-veil { background:linear-gradient(90deg,#080a09ba,transparent 100%),linear-gradient(180deg,#080a0940,transparent 45%,#080a09); }
 .light-stage .home-welcome { background:linear-gradient(110deg,#131b14e0,#10181178); }
 .light-stage .light-field { height:960px; }
 .light-stage .home-stats .metric { backdrop-filter:none; }
 .hero > .motion-control { right:10px; bottom:15px; }
}
[data-motion-visibility="paused"] .light-field *,[data-motion-visibility="paused"] .hero-emblem,[data-motion-visibility="paused"] .hero-emblem:after { animation-play-state:paused !important; }
[data-motion-visibility="paused"] :is(.mobility-hero,.nutrition-dashboard):before,[data-motion-visibility="paused"] :is(.mobility-hero,.nutrition-dashboard):after { animation-play-state:paused !important; }
[data-effect-motion="paused"],[data-effect-motion="paused"] *,[data-effect-motion="paused"]:before,[data-effect-motion="paused"]:after { animation-play-state:paused !important; }
[data-motion="reduced"] *,[data-motion="reduced"] *::before,[data-motion="reduced"] *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
[data-motion="reduced"] .light-stage .hero-emblem,[data-motion="reduced"] .welcome-stage .hero-emblem { transform:rotate(-6deg); }
@media(prefers-reduced-motion:reduce) {
 .light-stage .hero-emblem,.welcome-stage .hero-emblem { transform:rotate(-6deg); }
}
@media(forced-colors:active) {
 .light-field,.live-flow,.hero-emblem:after { display:none !important; }
 .welcome-stage { background:Canvas; color:CanvasText; }
 .welcome-stage .login > .hero h1,.welcome-stage .login > .hero p,.welcome-stage .welcome-pillars > span { color:CanvasText; }
 .welcome-stage .login > .hero h1 span { background:none; -webkit-text-fill-color:CanvasText; }
}
