:root{color-scheme:dark;--bg:#101614;--surface:#1a2320;--line:#303c34;--text:#f1f4ed;--muted:#9eafa3;--lime:#c9f17d;--mint:#84d4b7;--warn:#edbd80}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:14px;background:var(--surface);color:var(--text);min-height:48px;padding:12px 16px;font-weight:650}button:active{transform:scale(.98)}button:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:3px}button:disabled{opacity:.4;cursor:default}a{color:var(--lime)}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.15;letter-spacing:-1.2px;font-weight:750}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px;line-height:1.3}small,.small{font-size:12px}.muted{color:var(--muted)}.lime{color:var(--lime)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}.shell{max-width:720px;margin:auto;padding:22px 20px 115px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.5px}.mark{display:grid;place-items:center;background:var(--lime);color:var(--bg);width:38px;height:38px;border-radius:12px}.icon{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.iconbutton{width:46px;padding:10px;border:1px solid var(--line);border-radius:50%;min-height:46px}.pageintro{margin-bottom:24px}.pageintro p{margin-top:8px}.hero{position:relative;overflow:hidden;margin:20px 0;border:1px solid #4b5a3c;border-radius:24px;padding:24px;background:radial-gradient(ellipse at 100% 0%,#3c4b2e,transparent 70%),#222f24}.hero h1{font-size:44px;position:relative;margin:13px 0 7px;letter-spacing:-1.8px}.ghost{position:absolute;right:15px;top:23px;font-size:105px;line-height:1;letter-spacing:-8px;font-weight:800;color:#c9f17d12;pointer-events:none}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#c9f17d1a;color:var(--lime);border:1px solid #c9f17d33;border-radius:100px;font-size:11px;font-weight:700;letter-spacing:.6px}.hero .meta{display:flex;gap:22px;margin:24px 0}.meta strong{display:block;font-size:22px;line-height:1.2}.meta span{font-size:11px;color:var(--muted)}.primary{background:var(--lime);color:#182015;display:flex;justify-content:center;align-items:center;gap:10px;width:100%;min-height:52px}.secondary{background:transparent;border:1px solid var(--line);width:100%}.danger{color:#ffb4a2;border:1px solid #68443a;background:#3a2723}.stack{display:grid;gap:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.gap{margin-top:20px}.gapbig{margin-top:30px}.card{border:1px solid var(--line);border-radius:20px;padding:20px;background:var(--surface);margin:14px 0}.card h3{margin-bottom:7px}.card p+p{margin-top:12px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{padding:18px;border:1px solid var(--line);border-radius:18px}.stat strong{display:block;font-size:29px;letter-spacing:-1px;margin:3px 0}.stat small{color:var(--muted)}.timeline{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;margin:18px 0 5px}.slot{text-align:center;border-radius:12px;background:#212b25;padding:9px 0;font-size:11px;font-weight:700;color:var(--muted);border:1px solid transparent}.slot.current{color:var(--bg);background:var(--lime)}.slot.done{border-color:#586942;color:var(--lime)}.legend{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px}.wave{display:flex;gap:7px;margin:18px 0 10px}.wave>div{flex:1;padding:10px 0;text-align:center;border-bottom:3px solid var(--line);font-size:12px;color:var(--muted)}.wave>div.current{border-color:var(--lime);color:var(--lime)}.wave b{display:block;font-size:16px}.quote{border-left:2px solid var(--lime);padding:3px 0 3px 16px;font-size:18px;line-height:1.5;letter-spacing:-.3px}.quote small{display:block;margin-top:8px;color:var(--muted);font-size:12px}.nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:720px;background:#101614f5;backdrop-filter:blur(16px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 7px calc(10px + env(safe-area-inset-bottom))}.nav button{background:none;padding:6px 2px;font-size:10px;color:var(--muted);display:flex;align-items:center;flex-direction:column;gap:4px}.nav button.active{color:var(--lime)}.pillrow{display:flex;gap:7px;overflow-x:auto;padding:3px 0 10px}.pill{white-space:nowrap;border:1px solid var(--line);font-size:13px;min-height:42px;padding:9px 14px}.pill.active{color:var(--bg);background:var(--lime);border-color:var(--lime)}.exercise{padding:18px 0;border-top:1px solid var(--line)}.exercise:first-child{border-top:0}.exercise .num{color:var(--muted);font-size:11px;font-weight:700;margin-right:10px}.prescription{font-weight:650;white-space:nowrap;color:var(--lime)}.warning{padding:15px 17px;border:1px solid #71563b;background:#382e22;border-radius:15px;color:#f2d5aa;font-size:13px;margin:14px 0}.notice{padding:15px 17px;background:#253529;border:1px solid #4d6040;border-radius:15px;font-size:13px;margin:14px 0}.field{display:block;margin:14px 0}.field>span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}input,select,textarea{border:1px solid #475347;background:#101614;color:var(--text);border-radius:11px;padding:12px;width:100%;min-height:48px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--lime)}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--lime)}.checklabel{display:flex;align-items:center;gap:12px;font-size:13px;margin:14px 0}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.sets{margin-top:17px}.setrow{display:grid;grid-template-columns:24px minmax(0,1.25fr) minmax(0,1fr) minmax(0,.85fr) 45px;gap:7px;align-items:center;margin:8px 0}.setrow input{min-width:0;text-align:center;padding:10px 2px}.setrow .complete{padding:0;width:45px;min-height:48px;background:#28332b;border:1px solid #475347;font-size:20px}.setrow .complete.active{background:var(--lime);color:var(--bg);border-color:var(--lime)}.setrow.labels{font-size:10px;line-height:1.2;color:var(--muted);text-align:center;margin-bottom:12px}.setrow.isdone input{color:var(--muted);border-color:#33422d}.progress{height:5px;border-radius:8px;background:var(--line);overflow:hidden;margin:12px 0}.progress>div{height:100%;background:var(--lime);border-radius:8px}.timer{position:fixed;left:50%;bottom:85px;transform:translateX(-50%);z-index:6;background:var(--lime);color:#182015;display:flex;align-items:center;gap:13px;padding:8px 13px;border-radius:18px;box-shadow:0 7px 25px #0006}.timer strong{font-size:24px;min-width:67px;font-variant-numeric:tabular-nums}.timer button{background:#18201515;color:#182015;padding:6px 10px;min-height:38px;border-radius:10px}.empty{padding:24px 8px;text-align:center;color:var(--muted)}.empty .icon{width:38px;height:38px;margin-bottom:12px;opacity:.5}.empty h3{color:var(--text);margin-bottom:8px}.result{font-size:36px;letter-spacing:-1.5px;line-height:1.2;margin:8px 0}.result small{font-size:15px;letter-spacing:0;color:var(--muted)}.historyitem{display:flex;gap:14px;align-items:center;padding:15px 0;border-top:1px solid var(--line);width:100%;text-align:left;background:transparent;border-radius:0}.historyitem:first-child{border:0}.daylabel{display:grid;place-items:center;flex-shrink:0;width:45px;height:45px;background:#c9f17d16;color:var(--lime);border-radius:13px;font-size:13px}.historyitem .grow{flex:1}.awards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.award{text-align:center;padding:16px 5px;border:1px solid var(--line);border-radius:16px;color:var(--muted);font-size:11px}.award b{display:block;font-size:24px;margin:3px}.award.earned{color:var(--lime);border-color:#5b7042;background:#c9f17d0a}details{border-top:1px solid var(--line);padding:17px 0}summary{cursor:pointer;font-weight:650}details p{font-size:13px;color:var(--muted);margin-top:12px}.article p{color:var(--muted);margin:14px 0}.article h3{margin:24px 0 8px}.article ul{padding-left:20px;color:var(--muted)}.article li{margin:9px 0}dialog{width:calc(100% - 32px);max-width:550px;max-height:85vh;padding:24px;border:1px solid var(--line);border-radius:23px;background:var(--surface);color:var(--text);overflow:auto}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}dialog h2{margin-bottom:15px}dialog p{margin-bottom:16px;color:var(--muted)}dialog .actions{display:flex;gap:10px;flex-direction:column;margin-top:20px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:20;background:#f1f4ed;color:#101614;box-shadow:0 5px 24px #0006;padding:12px 18px;border-radius:13px;max-width:90%;width:max-content;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.footer{margin:25px 0 4px;text-align:center;font-size:11px;color:var(--muted)}@media(min-width:600px){.shell{padding:28px 35px 120px}.hero{padding:30px}.hero h1{font-size:56px}.hero .meta{gap:40px}.stats{grid-template-columns:repeat(4,1fr)}.card{padding:24px}.setrow{gap:14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;transform:none!important}.nav,.timer,#toast{transform:translateX(-50%)!important}}
.chat-tone-switch button[aria-pressed="true"]::before{content:"✓ ";content:"✓ " / ""}.chat-tone-current{margin:-4px 0 12px}.chat-keyboard .nav,.chat-keyboard .draft-return,.chat-keyboard #timer-host,.chat-keyboard .timer,.chat-keyboard #toast{display:none}
.chat-tone-switch{display:flex;gap:8px;margin-bottom:12px}.chat-tone-switch button{flex:1;min-height:44px}.chat-tone-switch button[aria-pressed="true"]{background:var(--lime);color:var(--bg);border-color:var(--lime);font-weight:700}
.nav{grid-template-columns:repeat(5,1fr)}.csv-example{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.stat{min-width:0}.stat strong{font-size:25px}.stat strong small{font-size:12px}

.exercise-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.exercise-tools button{padding:10px;font-size:12px}.exercise-player{position:relative;aspect-ratio:1;max-height:330px;margin:18px auto 0;background:#101614;border:1px solid var(--line);border-radius:18px;overflow:hidden}.exercise-frame{width:100%;height:100%;object-fit:contain}.exercise-frame[hidden]{display:none}.ramp-list{display:flex;gap:9px;flex-wrap:wrap}.warm-step .checklabel{padding:12px;border:1px solid var(--line);border-radius:12px}dialog .field select{max-width:100%}dialog{overflow-x:hidden}#exercise-choice{width:100%;min-width:0} @media(max-width:360px){.exercise-tools{grid-template-columns:1fr}.two{grid-template-columns:1fr}}

.chat-text{white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user{border-left:3px solid var(--lime,#c9f17d)}.chat-message.model{border-left:3px solid #85c6f1}#chat-compose{min-height:120px}

/* Dialog content scrolls independently; actions never disappear below a long report. */
dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:85vh;max-height:85dvh;padding:20px}
dialog h2{flex:0 0 auto;font-size:20px;line-height:1.25}
.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
dialog .actions{flex:0 0 auto;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);gap:8px}
dialog .csv-example{max-height:240px;overflow:auto;padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.coach-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.coach-tools button{border:1px solid var(--line);font-size:13px;padding:10px;overflow-wrap:anywhere}
.data-coverage{padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:14px;margin-bottom:18px}
.data-coverage p{font-size:13px}.data-coverage p+p{margin-top:8px}.full-review{margin-top:12px}
#coach-data{scroll-margin-top:20px}
@media(max-height:420px){dialog[open]{max-height:95vh;max-height:95dvh;padding:12px}dialog h2{font-size:17px;margin-bottom:10px}dialog .actions{gap:6px;margin-top:8px;padding-top:8px}.modal-body{min-height:35px}}

.calendar-header{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px}.calendar-header h2{text-align:center;font-size:18px}.calendar-header button{padding:6px}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-week{margin:16px 0 8px;text-align:center;color:var(--muted);font-size:11px}.calendar-cell{min-height:58px;min-width:0;border:1px solid var(--line);padding:5px 1px;display:flex;flex-direction:column;gap:4px;align-items:center;background:var(--bg);border-radius:10px}.calendar-cell span{font-size:9px;color:var(--mint);white-space:nowrap}.calendar-cell.today{border-color:var(--lime)}.calendar-cell.selected{background:#3b5032}.calendar-blank{min-height:58px}

/* Phone layout: one clear action, then optional detail. Shared navigation clearance
   keeps inputs, the timer and status messages reachable in both orientations. */
:root{--bg:#101815;--surface:#19251f;--line:#34453b;--muted:#b0beb4;--nav-height:68px}
body{font-size:15px;line-height:1.5}h1{font-size:28px;letter-spacing:-.8px}h2{font-size:19px;line-height:1.3}h3{font-size:16px}.eyebrow{letter-spacing:1px;font-size:10px}
.shell{padding:16px 16px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));max-width:720px}
header{margin-bottom:20px;min-height:44px}.brand{font-size:20px;gap:8px}.mark{height:34px;width:34px;border-radius:10px}.iconbutton{width:44px;min-height:44px;border-radius:13px;background:var(--surface)}
.pageintro{margin-bottom:16px}.pageintro h1{margin-top:4px}.pageintro p{font-size:13px;margin-top:6px}.gap{margin-top:16px}.gapbig{margin-top:22px}
button{min-height:46px;border-radius:12px;padding:10px 14px}.primary{min-height:48px}.secondary{background:#ffffff03}.badge{font-size:10px;padding:4px 8px;letter-spacing:.4px;white-space:nowrap}
.card{padding:16px;border-radius:18px;margin:12px 0}.hero{border-radius:20px;padding:18px;margin:14px 0;background:linear-gradient(120deg,#293d2b,#1c2b21);border-color:#536547}.hero h1{font-size:30px;letter-spacing:-.8px;margin:12px 0 6px}.hero .meta{gap:20px;margin:18px 0}.meta strong{font-size:20px}.meta span{font-size:11px}.today-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}.today-intro h1{margin-top:4px}.today-workout>p{font-size:13px}.today-workout .meta{justify-content:space-between;gap:10px}.today-workout .meta>div{min-width:0}.today-workout .meta strong{font-size:21px}.today-workout .meta span{display:block;max-width:110px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.quick-grid button{display:flex;align-items:center;gap:9px;text-align:left;padding:14px 12px;border:1px solid var(--line)}.quick-grid button>span{min-width:0;flex:1}.quick-grid b{font-size:15px;display:block}.quick-grid small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.quick-grid button>.icon:first-child{width:20px;flex-shrink:0;color:var(--lime)}.quick-grid button>.icon:last-child{display:none}.history-shortcuts{grid-template-columns:1fr 1fr;margin:12px 0 16px}.history-shortcuts button{font-size:12px;padding:10px 7px}
.ui-section{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:0;margin:10px 0;overflow:hidden}.ui-section>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:15px 16px;min-height:58px}.ui-section>summary::-webkit-details-marker{display:none}.ui-section>summary>span{min-width:0;flex:1}.ui-section>summary b{font-size:15px;line-height:1.3;display:block}.ui-section>summary small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}.ui-section>summary::after{content:'⌄';font-size:20px;color:var(--lime);flex-shrink:0;line-height:1}.ui-section[open]>summary::after{content:'⌃'}.ui-section[open]>summary{border-bottom:1px solid var(--line)}.section-body{padding:14px 16px}.section-body>.card:first-child,.section-body>.hero:first-child{margin-top:0}.section-body>.card,.section-body>.hero{background:var(--bg);padding:14px;border-radius:14px}.section-body>.card:last-child{margin-bottom:0}.ui-section:focus-within{border-color:#526a4e}
#progress-card{border-color:#4f6544;background:linear-gradient(135deg,#233025,var(--surface));padding:16px}#progress-card>.row{align-items:flex-start}#progress-card h2{font-size:18px;max-width:230px}#progress-card>.stack{gap:8px;margin-top:14px}#progress-card>.chat-text{font-size:15px;line-height:1.65}#progress-card>.small:first-of-type{margin-top:6px}.source-shortcut{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;background:none;width:100%;padding:8px 0;margin-top:5px;min-height:44px}.source-shortcut .icon{width:18px;height:18px}.coach-tools{gap:8px}.coach-tools button{min-height:44px;font-size:12px}.full-review>summary{min-height:44px;display:flex;align-items:center}.notice,.warning{padding:12px 14px;border-radius:12px;font-size:13px}
.food-summary{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px}.food-summary .field{margin:0 0 12px}.food-summary .field>span{font-size:11px}.food-summary input{min-height:44px;padding:9px 11px}.food-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.food-totals span{font-size:12px;color:var(--muted)}.food-totals strong{display:block;font-size:25px;letter-spacing:-.6px}.food-totals small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}.food-add .field{margin:12px 0}.food-add .two{grid-template-columns:1fr 1fr;gap:8px}.food-add .two button{font-size:13px;padding:10px 7px}.food-add .ui-section{background:transparent;margin-bottom:0}.food-add .ui-section>summary{padding:12px;font-size:13px}.food-add .ui-section>summary b{font-size:13px}.food-add .ui-section>summary small{font-size:11px}.food-add .section-body{padding:12px}.historyitem{gap:10px;padding:13px 0;font-size:14px}.historyitem .grow{min-width:0;overflow-wrap:anywhere}.historyitem>span:last-child:not(.grow){white-space:nowrap;font-size:12px}.stat{padding:14px;border-radius:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat strong{font-size:23px}
.nav{min-height:var(--nav-height);padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top-color:#435247;background:#101815fa}.nav button{min-height:52px;border-radius:12px;gap:3px;font-size:11px;padding:6px 2px}.nav button.active{background:#c9f17d13}.nav .icon{width:21px;height:21px}.timer{bottom:calc(var(--nav-height) + 12px + env(safe-area-inset-bottom))}#toast{bottom:calc(var(--nav-height) + 18px + env(safe-area-inset-bottom))}.footer{margin-top:22px;opacity:.7}.exercise-tools button{font-size:13px}.setrow.labels{font-size:11px}summary:focus-visible{outline:2px solid var(--lime);outline-offset:-3px;border-radius:12px}
@media(min-width:600px) and (min-height:600px){.shell{padding-left:28px;padding-right:28px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.hero h1{font-size:34px}.quick-grid button>.icon:last-child{display:block;width:18px}.food-totals{grid-template-columns:1fr 1fr}}
@media(max-height:500px) and (orientation:landscape){:root{--nav-height:48px}.shell{padding:10px 20px calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));max-width:920px}.nav{max-width:920px;padding:2px 8px calc(2px + env(safe-area-inset-bottom))}.nav button{flex-direction:row;gap:7px;justify-content:center;min-height:44px;padding:8px 3px;font-size:12px}.nav .icon{width:19px;height:19px}header{margin-bottom:10px}.pageintro{margin-bottom:12px}.pageintro h1{font-size:24px}.hero{padding:16px}.hero h1{font-size:26px}.hero .meta{margin:12px 0}.today-workout{margin:10px 0}.card{padding:14px}.gap{margin-top:12px}.today-workout .meta{max-width:500px}.quick-grid{margin:10px 0}.food-summary{display:grid;grid-template-columns:170px 1fr;column-gap:20px;align-items:center}.food-summary .field{margin:0;grid-row:1 / 3}.food-summary .food-totals{margin:0 0 5px}.food-summary>p{grid-column:2}.food-add .field{margin:8px 0}.food-add .two{max-width:450px}#progress-card>.stack{grid-template-columns:1fr 1fr}.source-shortcut{max-width:400px}.ui-section>summary{padding:12px 16px}.section-body{padding:12px 14px}}
@media(max-height:500px) and (orientation:landscape){
 .view-home header{margin-bottom:6px}.today-intro{margin-bottom:8px}.today-workout{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;padding:12px 16px;margin:8px 0}.today-workout>.row{grid-column:1 / -1}.today-workout h1{grid-column:1;margin:3px 0 0}.today-workout>p{grid-column:1;grid-row:3}.today-workout .meta{grid-column:2;grid-row:2 / 4;align-self:center;margin:0;gap:12px;max-width:none}.today-workout>.primary{grid-column:1 / -1;min-height:46px}
 .view-food{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr);gap:10px 14px}.view-food>header,.view-food>.pageintro,.view-food>.footer,.view-food>.ui-section,.view-food>.secondary,.view-food>.card{grid-column:1 / -1}.view-food>header,.view-food>.pageintro{margin-bottom:0}.view-food>.food-summary{display:block;align-self:start;padding:12px 14px}.view-food>.food-summary .field{margin-bottom:10px}.view-food>.food-summary>p{grid-column:auto}.view-food>.food-add{grid-column:2;margin:0;padding:12px 14px}.view-food>.food-add .field{margin:8px 0}.view-food>.food-add h2{font-size:18px}
}
.food-source-hint{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;min-height:44px;padding:7px 0;background:none;color:var(--mint);text-align:left;font-weight:600}.food-source-hint .icon{width:16px;height:16px;flex-shrink:0}.source-alert>p+p{margin-top:8px}#progress-card>.coach-tools{margin-top:10px}.food-summary>p{font-size:11px}
/* Food diary presentation: all new controls and overrides are local to Food. */
.food-summary{padding:10px 14px}.food-add .field>.food-search-box{display:flex}.food-summary .food-known{font-size:11px}
.food-day-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}.food-day-label{text-align:center;font-size:17px}.food-icon{min-width:44px;min-height:44px;padding:4px;border:1px solid var(--line);background:var(--bg);font-size:24px;line-height:1}.food-summary .food-date{display:flex;align-items:center;gap:8px;margin:6px 0}.food-date>span{flex:1;margin:0}.food-date input{width:155px;min-width:0;font-size:12px}.food-energy{margin:6px 0}.food-energy strong{font-size:36px;line-height:1.15;letter-spacing:-1px}.food-energy>div>span{font-size:13px;color:var(--muted)}.food-progress{height:6px;border-radius:8px;overflow:hidden;background:var(--line);margin:6px 0}.food-progress>span{display:block;height:100%;border-radius:8px;background:var(--lime)}.food-goal{display:flex;justify-content:space-between;gap:8px;font-size:12px;flex-wrap:wrap}.food-goal>span:last-child{color:var(--muted)}.food-goal-link{min-height:44px;border:1px solid var(--line);padding:8px 12px;font-size:12px;margin:4px 0;color:var(--lime);background:var(--bg)}.food-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.food-macro{min-width:0}.food-macro>div:first-child>span{display:block;font-size:11px;color:var(--muted)}.food-macro b{display:block;font-size:15px;overflow-wrap:anywhere}.food-known{display:block;font-size:10px;color:var(--muted);line-height:1.4}.food-summary .food-fiber{font-size:11px;margin:4px 0;color:var(--muted)}.food-day-status{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:3px 9px;font-size:11px;color:var(--muted)}.food-day-status.food-confirmed{color:var(--lime);border-color:#536547}.food-summary .food-source-hint{border:1px solid var(--line);border-radius:10px;padding:8px;margin-top:6px;gap:8px;background:var(--bg)}
.food-add{min-width:0}.food-search-box{display:flex;gap:6px}.food-search-box input{min-width:0}.food-search-box>.food-icon{flex:0 0 44px}.food-context{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #536547;background:#c9f17d0a;border-radius:12px;margin-top:8px;padding-left:10px;font-size:12px}.food-context .food-icon{border:0;background:transparent}.food-result-title{margin:14px 0 5px;font-size:14px}.food-product{border:1px solid var(--line);border-radius:12px;margin-top:6px;padding:10px;background:var(--bg);min-height:44px}.food-product:first-child{border:1px solid var(--line)}.food-product-nutrients{font-size:12px;color:var(--mint);font-weight:500}.food-empty{margin-top:12px;font-size:13px}.food-empty-actions{display:grid;gap:7px;margin-top:10px}.food-empty-actions button{min-height:44px;font-size:13px}
.food-entries{min-width:0}.food-meal{border:1px solid var(--line);border-radius:12px;padding:0 10px;margin-top:10px;background:var(--bg)}.food-meal-header{display:flex;align-items:center;gap:8px;min-height:52px}.food-meal-header h3{flex:1;min-width:0;margin:0;font-size:14px}.food-meal-total{font-size:11px;color:var(--muted);overflow-wrap:anywhere;max-width:80px}.food-meal-add{min-height:44px;border:1px solid var(--line);font-size:12px;padding:8px;flex-shrink:0}.food-entry{border-top:1px solid var(--line);gap:8px;min-height:48px}.food-entry>.food-entry-kcal{white-space:normal;max-width:75px;text-align:right;flex-shrink:0}.food-history-day{display:block;width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-align:left;font-size:12px;padding:9px 10px;margin-bottom:6px;overflow-wrap:anywhere}.food-history-day small{display:block;color:var(--muted);font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.food-older{min-height:44px;margin-top:8px}
.food-portion-name{font-size:15px;overflow-wrap:anywhere;margin:0 0 4px}.food-portion{min-width:0;overflow-wrap:anywhere}.food-portion>.field{margin:8px 0}.food-portion .field>span{margin-bottom:4px}.food-portion-preview{padding:10px 12px;border:1px solid #536547;border-radius:10px;background:var(--bg);font-size:14px;font-weight:600;line-height:1.5;color:var(--lime);margin:8px 0!important}.food-amounts{display:flex;flex-wrap:wrap;gap:6px}.food-amount{min-height:44px;border:1px solid var(--line);font-size:12px;padding:7px 10px;background:var(--bg)}.food-about{padding:8px 0;margin-top:6px}.food-about>summary{min-height:44px;display:flex;align-items:center;font-size:13px}.food-about p{font-size:12px;overflow-wrap:anywhere}.food-delete{border-color:#bd7563;color:#ffb4a2;background:transparent}.food-editor{min-width:0}.food-editor input,.food-editor select{min-width:0;max-width:100%}.food-nutrient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}.food-nutrient-grid .field>span{min-height:36px;margin-bottom:4px}.food-nutrient-grid .field{min-width:0;margin:8px 0}
@media(max-height:500px) and (orientation:landscape){.view-food>.save-status[hidden]+.pageintro{margin-top:-10px}.view-food>header{grid-row:1}.view-food>.save-status{grid-row:2}.view-food>.pageintro{grid-row:3}.view-food>.food-summary{grid-column:1;grid-row:4;min-width:0}.view-food>.food-add{grid-row:4;align-self:start}.view-food>.food-entries{grid-row:5}.view-food>[data-ui-section=food-sources]{grid-row:6}.view-food>[data-ui-section=food-days]{grid-row:7}.view-food>.ui-section:not([data-ui-section]){grid-row:8}.view-food>.secondary{grid-row:9}.view-food>.footer{grid-row:10}.food-summary .food-date{margin:4px 0}.food-macros{gap:6px}.food-energy strong{font-size:29px}.food-day-nav{gap:4px}.food-day-label{font-size:15px}}
/* Native system bars leave some phones only ~300 CSS pixels of height. */
@media(max-height:360px) and (orientation:landscape){
 header{margin-bottom:6px}.today-intro h1{display:none}.today-intro{min-height:24px;margin-bottom:6px}.today-workout{padding:10px 14px;gap:4px 16px;margin:6px 0}.today-workout h1{font-size:24px}.today-workout .meta strong{font-size:19px}.today-workout>.primary{min-height:44px}
 .view-food>.pageintro>.eyebrow{display:none}.view-food>.pageintro h1{font-size:23px;margin-top:0}.view-food>.food-add h2{display:none}.view-food>.food-add .field{margin-top:0}.view-food{row-gap:8px}.view-food>.save-status[hidden]+.pageintro{margin-top:-8px}.view-food>.food-add input{min-height:44px;padding:10px 12px}.view-food>.food-add .two button{min-height:44px}
}

/* The completed day leads with its result; the future plan is secondary. */
.today-completed h1{font-size:32px;letter-spacing:-1px}.today-completed .meta{margin:18px 0 0}.home-coach .coach-tools{margin:16px 0}.home-coach .coach-status{padding:12px 0;color:var(--mint)}.home-coach .home-review{margin-top:18px}.home-coach .chat-text{overflow-wrap:anywhere}.home-coach .home-review>p{margin-top:10px}.home-coach>.primary,.home-coach>.secondary{margin-top:12px}.historical-review{margin-top:14px}.home-coach .coach-tools button{min-height:44px}
@media(max-height:500px) and (orientation:landscape){.today-completed{padding:12px 16px;margin:8px 0}.today-completed h1{font-size:26px;margin:6px 0}.today-completed .meta{position:absolute;right:16px;top:10px;margin:0;gap:18px}.today-completed .meta strong{font-size:18px}.today-completed>.badge{max-width:45%}.home-coach{padding:14px 16px}.home-coach .coach-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.home-coach h2{font-size:20px}}
.save-status{margin:0 0 14px;position:sticky;top:6px;z-index:6}.save-status[hidden]{display:none}.save-status button{margin-left:8px;vertical-align:middle}.view-food>.save-status{grid-column:1 / -1}
/* S6 (1.13) charts. Data colours are validated tokens (README "Progres: grafy a statistiky"): one hue per entity on every screen
   (síla, kolo, hmotnost, spánek, jídlo); the brand lime stays UI chrome only. Hairline grid, 2px lines, no dashes. */
:root{--viz-strength:#3987e5;--viz-cycling:#d95926;--viz-body:#199e70;--viz-sleep:#c98500;--viz-food:#d55181;--viz-dim:#7f9187;--viz-grid:#2b3a32;--viz-axis:#3f5247;--viz-rest:#2f4a3b;--viz-ref:#b0beb4;--viz-ramp-1:#1c5cab;--viz-ramp-2:#3987e5;--viz-ramp-3:#6da7ec;--viz-ramp-4:#9ec5f4;--viz-ramp-5:#cde2fb}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:4px 0 12px}.tile{display:block;min-width:0;width:100%;min-height:0;border:1px solid var(--line);border-radius:14px;padding:11px 12px;background:var(--surface);text-align:left;font-weight:400;color:var(--text)}.tile .lbl{display:block;font-size:12px;color:var(--muted);line-height:1.3;font-weight:600}.tile strong{display:block;font-size:25px;line-height:1.15;letter-spacing:-.5px;margin:4px 0 2px;font-weight:700}.tile strong small{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:0}.tile .sub{display:block;font-size:11.5px;color:var(--muted);line-height:1.4}
@media(min-width:560px){.tiles4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.viz{margin:0}.viz figcaption b{display:block;font-size:16px;line-height:1.3}.viz figcaption small{display:block;color:var(--muted);font-size:12px;margin-top:3px;line-height:1.45}
.vz-svg{display:block;width:100%;height:auto;max-width:100%;margin-top:10px;overflow:visible;touch-action:pan-y;-webkit-user-select:none;user-select:none}.viz[data-viz$=cal] .vz-svg{width:auto}
.vz-axis{fill:var(--muted);font:10px system-ui,sans-serif;font-variant-numeric:tabular-nums}.vz-lab{fill:var(--muted);font:10.5px system-ui,sans-serif}.vz-step{fill:var(--text);font:650 11px system-ui,sans-serif}.vz-now{fill:var(--text)}
.vz-delta,.vz-end{fill:var(--text);font:650 11px system-ui,sans-serif;paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}.vz-lane{fill:var(--text);font:600 11px system-ui,sans-serif;font-variant-numeric:tabular-nums}.vz-sum{fill:var(--text);font:650 10.5px system-ui,sans-serif;font-variant-numeric:tabular-nums}.vz-cellnum{font:650 10px system-ui,sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
.vz-grid{stroke:var(--viz-grid);stroke-width:1;shape-rendering:crispEdges}.vz-base{stroke:var(--viz-axis);stroke-width:1;shape-rendering:crispEdges}.vz-ref{stroke:var(--viz-ref);stroke-width:1;shape-rendering:crispEdges}.vz-reflab{fill:var(--muted);font:10px system-ui,sans-serif;paint-order:stroke;stroke:var(--surface);stroke-width:3px}
.vz-line{fill:none;stroke:var(--viz-strength);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.pt-cmp{fill:var(--viz-strength)}.pt-ring{fill:var(--surface)}.pt-other{fill:var(--viz-dim);stroke:var(--surface);stroke-width:1.5}.pt-nc{fill:var(--surface);stroke:var(--viz-dim);stroke-width:1.6}.ln-str{stroke:var(--viz-strength);stroke-width:2;stroke-linecap:round}.ln-dim{stroke:var(--viz-dim);stroke-width:2;stroke-linecap:round}
.vz-col{fill:transparent}.mark{cursor:pointer;outline:none}.mark.sel .vz-col{fill:#ffffff12}.hit{fill:transparent;stroke:none;pointer-events:all}.mark:focus-visible .hit,.snap:focus-visible{stroke:var(--lime);stroke-width:2}.viz[data-viz$=cal] .mark.sel .hit{stroke:var(--lime);stroke-width:1.5}
.seg-strength{fill:var(--viz-strength)}.seg-cycling{fill:var(--viz-cycling)}.seg-other{fill:var(--viz-dim)}.seg.cur{fill-opacity:.62}.cell.zero{fill:none;stroke:var(--viz-axis);stroke-width:1}.mark.sel .cell{stroke:var(--text);stroke-width:1.5}
.vz-avg{fill:none;stroke:var(--viz-body);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.vz-raw{fill:var(--viz-dim);stroke:var(--surface);stroke-width:1.5}.bar-sleep{fill:var(--viz-sleep)}.bar-food{fill:var(--viz-food)}.bar-food-part{fill:none;stroke:var(--viz-food);stroke-width:2}
.xh{stroke:var(--viz-ref);stroke-width:1;pointer-events:none}.xh-dot{fill:none;stroke:var(--text);stroke-width:2;pointer-events:none}
.cal-work{fill:var(--viz-strength)}.cal-part{fill:none;stroke:var(--viz-strength);stroke-width:2}.cal-code{fill:#101815;font:700 10px system-ui,sans-serif;pointer-events:none}.cal-code.dim{fill:var(--text)}.cal-rest{fill:var(--viz-rest)}.cal-leaf{fill:none;stroke:var(--text);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.cal-leaf.dim{stroke:var(--muted)}.cal-none{fill:none;stroke:var(--viz-axis);stroke-width:1}.cal-ride{fill:var(--viz-cycling);stroke:var(--surface);stroke-width:2}.cal-today{fill:none;stroke:var(--text);stroke-width:2;pointer-events:none}
.viz-readout{margin-top:10px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:12.5px;line-height:1.45;color:var(--muted);min-height:var(--ro,60px)}.viz-readout strong{display:block;color:var(--text);font-size:13px;margin-bottom:2px}.viz-row{margin-top:2px}.viz-row .vv{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}.viz-row .kk{color:var(--muted)}.viz-readout p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.k{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--c);margin-right:6px;vertical-align:-1px}.k-dot{border-radius:50%}.k-line{height:3px;width:14px;border-radius:2px;vertical-align:3px}.k-ring{background:transparent;border:2px solid var(--c);border-radius:50%}.k-ring.k-sq{border-radius:3px}
.viz-legend{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;padding:0;margin:8px 0 0;font-size:12px;color:var(--muted)}.viz-legend li.note{flex-basis:100%}.viz-note{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.5}
.viz-empty{padding:18px 6px;text-align:center;color:var(--muted);font-size:13px}.viz-empty b{display:block;color:var(--text);font-size:15px;margin-bottom:6px}.viz-empty p{margin:0}
.viz-table{border-top:1px solid var(--line);margin-top:12px;padding:6px 0 0}.viz-table summary{font-size:13px;color:var(--muted);min-height:44px;display:flex;align-items:center}.viz-tablewrap{overflow:auto;max-height:280px;margin-top:4px}.viz-table table{border-collapse:collapse;width:100%;font-size:12px;font-variant-numeric:tabular-nums}.viz-table caption{text-align:left;color:var(--muted);padding-bottom:6px}.viz-table th,.viz-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.viz-table th[scope=row],.viz-table thead th:first-child{text-align:left;position:sticky;left:0;background:var(--surface)}.viz-table thead th{color:var(--muted);font-weight:600;position:sticky;top:0;background:var(--surface)}
.lift{padding:12px 0 2px;border-top:1px solid var(--line);margin-top:10px}.lift:first-of-type{border-top:0;padding-top:2px}.lift-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.lift-head b{font-size:15px}.lift-delta{font-size:19px;font-weight:700;letter-spacing:-.3px;white-space:nowrap}.lift-delta.mute,.home-lift strong.mute{color:var(--muted);font-weight:600}.lift-delta small{font-size:11px;font-weight:600}.vz-delta.mute{fill:var(--muted)}.section-body .viz{margin-top:16px}.feelings b{color:var(--text)}.card .lift-sub,.lift-sub{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.4}.lift .vz-svg{margin-top:6px}
.seg{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 2px}.seg button{flex:1 1 auto;min-height:44px;padding:8px 10px;border:1px solid var(--line);background:transparent;border-radius:12px;font-size:13px;font-weight:600;color:var(--muted)}.seg button[aria-pressed=true]{background:#c9f17d1a;color:var(--lime);border-color:#c9f17d55}
.home-lifts{display:grid;gap:8px;margin-bottom:8px}.home-lift{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:9px 12px;min-height:56px;font-weight:400}.home-lift .grow{flex:1;min-width:0}.home-lift b{display:block;font-size:14px}.home-lift small{display:block;color:var(--muted);font-size:11.5px;line-height:1.35;margin-top:2px}.home-lift strong{font-size:17px;white-space:nowrap;min-width:58px;text-align:right}.home-lift strong small{display:inline;font-size:12px}.spark{flex:0 0 auto}.spark-line{fill:none;stroke:var(--viz-dim);stroke-width:1.5}
@media(min-width:560px){.home-lifts{grid-template-columns:1fr 1fr}}
.rhythm-facts{font-size:13px;margin-top:12px;line-height:1.5}.view-graphs .pillrow{flex-wrap:wrap;overflow:visible}
@media(max-height:420px) and (orientation:landscape){.tiles{gap:7px;margin:2px 0 8px}.tile{padding:8px 10px}.tile strong{font-size:21px;margin:2px 0}.tile .sub{font-size:11px}.viz-readout{margin-top:6px}.lift{padding-top:8px;margin-top:6px}}
@media(forced-colors:active){.seg-strength,.cal-work,.pt-cmp,.bar-sleep,.bar-food{fill:CanvasText}.seg-cycling,.cal-ride{fill:Highlight}.seg-other,.pt-other,.vz-raw{fill:GrayText}.vz-line,.vz-avg,.ln-str{stroke:CanvasText}.cal-code{fill:Canvas}}
/* S7 (1.13) UX polish. UX-24: every control is at least 44 px, text is never below 11 px and a disabled button stays readable (no opacity trick);
   UX-11/13: disclosure arrows and bordered buttons; UX-14/18/22/23/26: short screens, the pause timer, wrapping tab rows, the cancel button. */
details:not(.ui-section)>summary{display:flex;align-items:center;gap:8px;min-height:44px;list-style:none}
details:not(.ui-section)>summary::-webkit-details-marker{display:none}
details:not(.ui-section)>summary::before{content:'›';flex:0 0 auto;color:var(--lime);font-size:20px;line-height:1;transition:transform .12s}
details[open]:not(.ui-section)>summary::before{transform:rotate(90deg)}
details .chat-text{font-size:15px;color:var(--text)}
.checklabel{min-height:44px}
.pill{min-height:44px}.pillrow{flex-wrap:wrap;overflow:visible}.pill.now:not(.active){border-color:var(--lime);color:var(--lime)}
.calendar-card{padding:16px 8px}.calendar-card .calendar-header{padding:0 8px}.calendar-card>p,.calendar-card>button{margin-left:8px;margin-right:8px}.calendar-card>button{width:calc(100% - 16px)}.calendar-week,.calendar-grid{gap:0}.calendar-cell span{font-size:11px;white-space:normal;text-align:center;line-height:1.15}.calendar-header button{border:1px solid var(--line)}
p>a:only-child,li>a:only-child{display:inline-block;padding:13px 0}
.eyebrow,.badge,.setrow.labels{font-size:11px}
.vz-axis,.vz-lab,.vz-sum,.vz-reflab,.vz-cellnum,.cal-code{font-size:11px}
button:disabled{opacity:1;color:#a9b8ae;background:#1f2b25;border:1px solid #2f3e36}
.primary:disabled{background:#2d3b2b;color:#d3e0c6;border:1px dashed #5d7350}
.compact,.secondary.compact{width:auto;min-width:44px;padding:8px 14px}.danger-text{color:#ffb4a2;border-color:#68443a}
.timer button{min-height:44px;min-width:44px;padding:6px 12px}
body.has-timer #toast{bottom:calc(var(--nav-height) + 88px + env(safe-area-inset-bottom))}
body.has-timer .shell{padding-bottom:calc(var(--nav-height) + 100px + env(safe-area-inset-bottom))}
.status-area{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--viz-dim);border-radius:12px;background:var(--bg)}
.status-area .st{margin:0;font-size:13px;line-height:1.45;color:var(--text)}.status-area .st+.st{margin-top:6px}.status-area .st b{font-weight:700}
.status-area.sa-busy{border-left-color:var(--mint)}.status-area.sa-wait{border-left-color:var(--warn)}
.status-area.sa-warn{border-left-color:var(--warn);background:#382e22;border-color:#71563b}.status-area.sa-error{border-left-color:#e07a5f;background:#3a2723;border-color:#68443a}
.status-area .gap{margin-top:10px}
/* UX-23: on a ~300 px high landscape screen a finished day is one strip (date line hidden), so the coach card starts on the first screen. */
@media(max-height:360px) and (orientation:landscape){.today-intro.day-done{display:none}.today-completed{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:6px 14px;margin:4px 0}.today-completed+.home-coach{margin-top:6px}.today-completed>.badge{position:static;max-width:none}.today-completed h1{font-size:20px;margin:0}.today-completed>p{margin:0;font-size:13px}.today-completed .meta{position:static;margin:0 0 0 auto;gap:14px}}
@media(max-height:420px){dialog .actions{flex-direction:row;flex-wrap:wrap}dialog .actions button{flex:1 1 30%;min-height:44px;padding:8px 10px}.modal-body{min-height:110px}.timer{gap:8px;padding:4px 10px}}

.post-workout-stretch{margin-top:12px}
.post-workout-stretch h2{margin:4px 0}
.post-workout-stretch .actions{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);margin-top:12px}
.post-workout-stretch button,dialog .stretch-actions button{min-height:44px}
dialog .stretch-picture{height:min(24dvh,180px);min-height:95px;margin:8px 0}
.stretch-side{font-weight:700}
.stretch-clock{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 12px;border:1px solid var(--line);border-radius:12px}
.stretch-clock strong{font-variant-numeric:tabular-nums;font-size:1.35rem;white-space:nowrap}
dialog .stretch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.stretch-actions [data-modal]{grid-column:1 / -1}
@media(max-height:420px) and (min-width:500px){
 dialog .stretch-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 .stretch-actions [data-modal]{grid-column:auto}
}

.food-search-label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.food-search-row{display:flex;gap:8px;align-items:center}.food-search-row .food-search-box{position:relative;flex:1;min-width:0}.food-search-box input{padding-right:88px!important}.food-search-box input:placeholder-shown{padding-right:48px!important}.food-search-box input:placeholder-shown~.food-search-clear{display:none}.food-search-box .food-search-find,.food-search-box .food-search-clear{position:absolute;top:0;border:1px solid var(--line);background:var(--surface);height:100%;font-size:20px}.food-search-box .food-search-find{right:0}.food-search-box .food-search-clear{right:44px}.food-search-box button[hidden]{display:none}.food-search-row .food-scan{width:auto;flex:0 0 auto;padding:10px;gap:6px;font-size:13px;min-height:44px}.food-target-day{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:4px 10px;font-size:12px;margin:0 0 8px!important}.food-target-day.food-target-past{color:var(--warn);border-color:#71563b;background:#382e22}.food-online-title{margin:14px 0 5px;font-size:14px}

@media(max-width:379px){.food-search-row .food-scan{width:44px;height:44px;padding:10px;justify-content:center}.food-scan .food-scan-label{display:none}}

.food-ocr-warnings{margin:0 0 12px;padding:12px;border:1px solid #71563b;border-left:4px solid var(--warn);border-radius:12px;background:#382e22;color:var(--text);overflow-wrap:anywhere}.food-ocr-warnings p{margin:8px 0 0;line-height:1.45}

/* R5 D1: keep the meal and amount above secondary details when the keyboard reduces height. */
.food-portion>.field{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px}.food-portion>.field>span{margin:0}.food-portion>.field input,.food-portion>.field select{min-width:0}.food-portion-help{margin:8px 0 0!important}
@media(min-height:421px) and (max-height:600px){
 dialog[open]:has(.food-portion){max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:14px}
 dialog:has(.food-portion) h2{margin-bottom:8px}
 dialog:has(.food-portion) .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px;padding-top:8px;gap:6px}
 dialog:has(.food-portion) .actions [data-modal="0"]{grid-column:1 / -1}
 dialog:has(.food-portion) .actions button{min-height:44px;padding:8px;font-size:13px}
 .food-portion>.field{margin:6px 0}.food-portion-preview{font-size:13px;line-height:1.4;padding:8px 10px;margin:6px 0!important}.food-amounts{gap:4px}.food-amount{padding:7px 8px}
}

/* T17-UX: presentation only; inputs and buttons retain their keyboard focus indicators. */
.modal-body:focus:not(:focus-visible){outline:none}
.modal-body:focus-visible{outline:2px solid var(--lime);outline-offset:-2px;border-radius:4px}
textarea{resize:none}
.notice:not(.save-status){border:0;border-left:3px solid #66845a;border-radius:8px;background:#253529;color:var(--text)}
.draft-status{color:var(--muted);font-size:12px}
.method-help{flex:0 0 44px;width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:var(--lime);font-size:17px}
.viz figcaption .row{gap:10px;align-items:center}.viz figcaption b{min-width:0}.viz figcaption{margin-bottom:12px}
.workout-heading h1{font-size:26px}.workout-count{font-size:13px;white-space:nowrap}.workout-heading+.progress{margin:8px 0}
.workout-readiness{padding:0;margin:6px 0}.workout-readiness>summary{font-size:12px}.workout-readiness>summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.view-workout>.workout-readiness+div+button{margin-top:6px}.view-workout>.card{margin-top:12px}
.exercise-heading{gap:8px;margin-top:6px}.exercise-heading h2{min-width:0;font-size:20px}.view-workout .sets{margin-top:4px}
.exercise-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.exercise-tools button{min-width:0;line-height:1.3}
.bodymap{margin:14px 0 22px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.bodymap h2{font-size:19px}.bodymap-toggle{display:flex;justify-content:center;gap:8px;margin:12px 0}.bodymap-toggle button{width:auto;min-width:100px}.bodymap-toggle button.active,.bodymap-option.active{border-color:var(--lime);color:var(--lime);background:#c9f17d14}.bodymap-figure{display:grid;place-items:center;min-height:250px}.bodymap-svg{display:block;width:min(100%,210px);height:auto;overflow:visible}.bodymap-shape{fill:#34433a;stroke:#718174;stroke-width:2;stroke-linejoin:round}.bodymap-target{cursor:pointer;outline:none}.bodymap-target rect{fill:#c9f17d25;stroke:#d6f2a0;stroke-width:2}.bodymap-target:hover rect,.bodymap-target.active rect{fill:var(--lime);stroke:#fff;stroke-width:3}.bodymap-target:focus rect{stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 2px #fff)}.bodymap-options{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:8px}.bodymap-option{width:auto;min-height:40px;padding:8px 12px;border:1px solid var(--line);font-size:12px;line-height:1.2}.exercise-order-tools{display:grid;grid-template-columns:1fr 1fr 2fr;gap:7px;margin-top:8px}.exercise-order-tools button{min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.25}.gallery-card-text small{line-height:1.35}.gallery-count{padding-top:4px}
@media(max-width:380px){.bodymap{padding:10px}.bodymap-figure{min-height:230px}.bodymap-svg{width:min(100%,180px)}.exercise-order-tools{grid-template-columns:1fr 1fr}.exercise-order-tools button:last-child{grid-column:1/-1}.bodymap-option{min-height:44px;padding:8px 10px}}
.setrow .complete:not(.active){color:#8c9c91}.workout-finish{margin-top:32px}
.workout-cancel{margin-top:48px;padding-top:24px;border-top:1px solid var(--line);text-align:center}
body.has-toast .shell{padding-bottom:calc(var(--nav-height) + 110px + env(safe-area-inset-bottom))}
body.has-toast.has-timer .shell{padding-bottom:calc(var(--nav-height) + 180px + env(safe-area-inset-bottom))}
.pill.now::after{content:"";display:block;width:6px;height:6px;margin:3px auto 0;border-radius:50%;background:currentColor}.pill.now{position:relative}
.wave>div{border:0;border-radius:8px;background:transparent}.wave>div.current{border:0;background:#c9f17d16}.wave{gap:4px}
.viz[data-viz=ladder] .seg{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.viz[data-viz=ladder] .seg button{flex:1 0 auto;white-space:nowrap;padding:8px}
.food-date-picker{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:11px;background:var(--bg);text-align:center}
.food-date-picker .food-day-label{font-size:13px;pointer-events:none}.food-date-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.food-date-picker:focus-within{outline:2px solid var(--lime);outline-offset:2px}
.food-energy-row{min-width:0}.food-summary-empty .food-energy-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.food-summary-empty .food-energy{display:flex;align-items:center;gap:10px;margin:0}.food-summary-empty .food-energy strong{font-size:25px}.food-summary-empty .food-goal-link{margin:0;flex-shrink:0}
.food-summary-empty .food-macros{margin:6px 0;gap:8px}.food-summary-empty .food-macro b{font-size:16px}.food-summary-empty .food-macro .food-known{font-size:11px}
.food-summary-empty .food-known{margin:2px 0}.food-summary-empty .food-source-hint{margin-top:4px;font-size:11px}
.coach-tools{align-items:stretch}.coach-tools button{height:100%}

.food-summary-empty{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
.food-summary-empty>.food-day-nav,.food-summary-empty>.food-energy-row,.food-summary-empty>.food-macros,.food-summary-empty>.food-known{grid-column:1 / -1}
.food-summary-empty>.food-known{display:none}.food-summary-empty>.food-day-status{justify-self:start;white-space:nowrap}.food-summary-empty>.food-source-hint{min-width:0;text-align:left;margin:0}

.food-date-detail{font-size:13px;pointer-events:none;white-space:pre}.food-date-picker .food-day-label{white-space:nowrap}

.view-workout>header{margin-bottom:8px}.workout-heading h1.gap{margin-top:4px}.workout-readiness{margin:0}.view-workout>.workout-readiness+div+button{margin-top:0}
.bodymap-svg{width:min(100%,230px)}.bodymap-muscle{fill:#61715d;stroke:#879783;stroke-width:1.2;opacity:.72;pointer-events:none}.bodymap-muscle.active{fill:var(--lime);opacity:.95}.bodymap-target{cursor:pointer}.bodymap-target rect{fill:transparent;stroke:transparent;stroke-width:1}.bodymap-target:hover rect,.bodymap-target:focus rect{fill:#c9f17d20;stroke:var(--lime);stroke-width:2}.bodymap summary{padding:8px 4px;font-size:16px}.bodymap details{padding:0}.bodymap .field{margin-bottom:0}.bodymap-select select{font-size:14px}@media(max-width:380px){.bodymap-svg{width:min(100%,230px)}}

/* Anatomical regions share the silhouette; generous invisible targets remain touchable. */
.bodymap-shape{fill:#d8e0db;stroke:#66776c;stroke-width:1.2}.bodymap-target .bodymap-muscle{fill:#9caf9f;stroke:#66776c;stroke-width:.8;pointer-events:auto}.bodymap-target rect.bodymap-hit{fill:transparent;stroke:transparent;pointer-events:all;filter:none}.bodymap-target:hover .bodymap-muscle,.bodymap-target .bodymap-muscle.active{fill:var(--lime);stroke:var(--text)}.bodymap-target:focus rect.bodymap-hit{fill:transparent;stroke:var(--text);stroke-width:2;filter:none}.bodymap-target:focus .bodymap-muscle{stroke:var(--text);stroke-width:2}.bodymap-toggle button.active{background:var(--lime);color:var(--bg)}html[data-theme=dark] .bodymap-shape{fill:#293b31;stroke:#82998a}html[data-theme=dark] .bodymap-target .bodymap-muscle{fill:#526f5b;stroke:#9eb0a4}html[data-theme=dark] .bodymap-target:hover .bodymap-muscle,html[data-theme=dark] .bodymap-target .bodymap-muscle.active{fill:var(--lime);stroke:var(--text)}

/* Food quick entry and persistent action-area totals. */
.food-input-actions,.food-quick-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.food-input-actions button,.food-quick-tabs button{min-height:44px;padding:8px 5px;font-size:12px;line-height:1.25;min-width:0}.food-input-actions button:only-child{grid-column:1/-1}.food-quick-tabs button[aria-pressed=true]{border-color:var(--lime);color:var(--text);background:#c9f17d18}.food-quick-tabs{margin:8px 0 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,4.3em),1fr))}.food-library-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,4.3em),1fr));gap:6px;margin:8px 0}.food-library-slots button{min-height:44px;padding:8px 4px;font-size:12px;line-height:1.25;min-width:0}.food-library-slots button[aria-pressed=true]{border-color:var(--lime);color:var(--text);background:#c9f17d18}.food-quick-tabs+div:empty{display:none}.food-add h2{display:none}.view-food .food-add{padding:10px 12px;margin-top:12px}.food-add .food-search-label{font-size:11px}.food-add .field{margin:8px 0}.food-product small{display:block;font-size:11px;margin-top:3px}.food-meal-header{flex-wrap:wrap}.food-meal-save{min-height:44px;padding:5px 8px;width:auto;font-size:11px;background:transparent;color:var(--muted);border:1px solid var(--line)}.food-source-choice{border:1px solid var(--line);border-radius:10px;padding:10px;margin:12px 0;font-size:12px}.food-source-choice input{width:20px;height:20px;min-height:20px;vertical-align:middle;margin-right:6px}.food-save-total{flex:1 0 100%;grid-column:1/-1;margin:0;font-size:13px;font-weight:700;line-height:1.35;color:var(--text)}dialog .actions:has(.food-save-total){flex-wrap:wrap;gap:6px}dialog .actions:has(.food-save-total)>button{flex:1 1 42%;min-width:0}#estimate-search-results .food-product{width:100%;text-align:left}#modal [data-estimate-item]{padding:12px;margin:10px 0}#modal [data-estimate-item] .field{margin:8px 0}
@media(max-height:420px){dialog .actions:has(.food-save-total){margin-top:4px;padding-top:4px}dialog .actions:has(.food-save-total)>button{padding:6px;min-height:40px}.food-save-total{font-size:11px}}

/* Native rest timer: controls fit 320px and growing type; measured floating height reserves space. */
.timer{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:max-content;max-width:calc(100vw - 16px);padding:8px 10px}.timer-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}.timer-controls strong{font-variant-numeric:tabular-nums;font-size:22px;min-width:52px}.timer-controls button{min-width:40px;min-height:44px;padding:6px 9px;font-size:14px}.timer-controls .timer-info{min-width:32px;padding:4px}.timer>small{font-size:12px;text-align:center;line-height:1.35;white-space:normal;overflow-wrap:anywhere;max-width:330px}.timer-notice{color:var(--warn)}

/* Single exercise presentation keeps the original indexed cards and their live inputs. */
.view-workout [data-workout-card][hidden]{display:none!important}
.workout-pager{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;margin:18px 0}
.workout-pager>div{min-width:0;text-align:center}.workout-pager b,.workout-pager .eyebrow{display:block;overflow-wrap:anywhere}.workout-pager button{min-width:48px;min-height:48px}
[data-workout-swipe]{touch-action:pan-y pinch-zoom}.workout-thumbnail{flex:0 0 64px;width:64px;height:64px;object-fit:contain;border-radius:12px;background:#18212b}.workout-thumbnail.generic{display:grid;place-items:center;background:var(--surface,#eef1f4)}.workout-thumbnail .icon{width:36px;height:36px}.workout-exercise .exercise-heading{flex-wrap:wrap}.workout-exercise .exercise-heading h2{flex:1;min-width:120px}
.spotify-panel{margin-top:16px}.spotify-panel .row{flex-wrap:wrap;gap:8px}.spotify-track{display:grid;gap:3px;margin:10px 0;overflow-wrap:anywhere;min-width:0}.spotify-controls{display:flex;gap:10px}.spotify-controls button{min-width:48px;min-height:48px}.spotify-panel p{margin:8px 0}.spotify-panel button{white-space:normal}

.view-weight .weight-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.weight-reading{min-width:0;overflow-wrap:anywhere}.weight-reading h3{font-size:1rem}.weight-value{font-size:1.8rem;font-weight:700;margin:8px 0}.view-weight button{white-space:normal;overflow-wrap:anywhere}.view-weight [data-weight-start]:disabled{opacity:.65}.nav{grid-template-columns:repeat(5,minmax(0,1fr))}.nav button{min-width:0;overflow-wrap:anywhere}
@media(max-width:380px){.view-weight .weight-readings{grid-template-columns:minmax(0,1fr)}}

/* Active workout essentials fit a phone; optional sections grow naturally at large type. */
.view-workout{padding-top:8px}.view-workout>header{min-height:36px;margin-bottom:4px}.view-workout>header .brand{font-size:16px}.view-workout>header .mark{width:28px;height:28px}.view-workout>header .iconbutton{min-height:36px;width:36px;padding:5px}
.workout-minimize{min-height:36px;padding:5px 9px;font-size:12px;width:auto;margin-bottom:4px}.workout-minimize .icon{width:18px;height:18px}
.workout-heading{gap:8px}.workout-heading>div{display:flex;align-items:center;gap:8px;min-width:0}.workout-heading h1.gap{font-size:17px;letter-spacing:-.3px;margin:0;overflow-wrap:anywhere}.workout-count{font-size:11px}.workout-heading+.progress{margin:5px 0}.workout-heading .badge{font-size:9px;padding:3px 5px}
.workout-readiness{display:inline-block;vertical-align:middle;max-width:calc(100% - 105px);border:0}.workout-readiness>summary{min-height:36px;padding:6px 0;display:flex;align-items:center}.workout-readiness[open]{display:block;max-width:none}.workout-readiness[open]>summary span{white-space:normal}.view-workout>.workout-warmup{display:inline-block;width:auto;min-height:36px;padding:5px 9px;margin:0 0 0 8px;font-size:12px}.view-workout>#readiness-warning{display:contents}
.workout-pager{gap:8px;margin:6px 0}.workout-pager button{min-width:44px;min-height:44px;padding:8px}.workout-pager b{display:none}.workout-pager .eyebrow{font-size:11px}
.view-workout .workout-exercise{padding:12px;margin:6px 0}.workout-exercise .exercise-heading{margin:4px 0;flex-wrap:nowrap}.workout-exercise .exercise-heading h2{font-size:18px;min-width:0;overflow-wrap:anywhere}.workout-thumbnail{width:44px;height:44px;flex-basis:44px;border-radius:9px}.workout-exercise .method-help{width:36px;min-height:36px;flex-basis:36px;font-size:15px}.workout-exercise .sets{margin-top:4px}.workout-exercise .setrow{margin:5px 0;gap:6px}.workout-exercise .setrow.labels{margin:3px 0;font-size:10px}.workout-exercise .setrow input{min-height:44px;height:44px;padding:7px 2px}.workout-exercise .setrow .complete{min-height:44px;height:44px}.workout-exercise .previous-set:empty{display:none}.workout-exercise .previous-set{font-size:10px;line-height:1.2}.workout-exercise .set-field-label{display:none}
.workout-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.workout-actions button{min-height:44px;font-size:12px;padding:7px 5px;line-height:1.25}.workout-actions .icon{width:18px;height:18px}.workout-exercise .exercise-tech{min-height:44px;font-size:12px;padding:7px;margin-top:6px}.workout-exercise>.ui-section{margin:6px 0}.workout-exercise>.ui-section>summary{min-height:44px;padding:8px 10px}.workout-exercise>.ui-section>summary b{font-size:12px}.workout-exercise>.ui-section>summary small{display:none}.workout-exercise .exercise-previous{margin-top:8px}.workout-exercise .exercise-previous>button{min-height:44px}.workout-exercise .exercise-previous p{font-size:11px}

.view-workout .workout-actions{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,.75fr)}.view-workout .workout-actions .exercise-tech{margin:0}.workout-actions button{min-width:0;overflow-wrap:anywhere}.workout-exercise .previous-set{display:none}.workout-exercise .setrow input,.workout-exercise .setrow .complete{height:auto}

.view-workout>header .workout-minimize{min-height:44px;margin:0;padding:7px 10px}.view-workout>header .iconbutton{min-height:44px;width:44px;padding:9px}.view-workout .workout-exercise .setrow input{line-height:1.2}

.workout-timer.is-paused #timer-time::before{content:'Ⅱ ';font-size:14px}.workout-timer .timer-notice{line-height:1.2;color:inherit;font-weight:600}

/* One quiet training surface: readable values and a single accent for the live pause. */
.view-workout .workout-heading .badge{border:0;background:none;padding:0;color:var(--muted);font-size:11px;letter-spacing:.03em}.view-workout .workout-heading h1{font-size:16px;font-weight:600}.view-workout .workout-count{font-size:12px;color:var(--muted)}.view-workout .workout-heading+.progress{height:2px;margin:8px 0}
.view-workout>header .workout-minimize,.view-workout>header .iconbutton{border:0;background:none;box-shadow:none}.view-workout .workout-pager{margin:3px 0 5px}.view-workout .workout-pager button{border:0;background:none;border-radius:0;color:var(--text)}.view-workout .workout-pager .eyebrow{font-size:11px;letter-spacing:.08em;font-weight:550}
.view-workout .workout-exercise{border:0;border-radius:0;background:none;margin:0;padding:0;box-shadow:none}.view-workout .workout-exercise .exercise-heading{margin:0 0 10px;gap:10px}.view-workout .workout-exercise .exercise-heading h2{font-size:23px;line-height:1.15;letter-spacing:-.65px;font-weight:700}.view-workout .workout-thumbnail{background:none;border-radius:0;opacity:.8}.view-workout .workout-exercise .method-help{border:0;background:none;border-radius:0;font-size:16px;color:var(--muted);min-width:44px;min-height:44px;flex-basis:44px}
.view-workout .workout-exercise .setrow{grid-template-columns:20px minmax(0,1.2fr) minmax(0,1fr) minmax(0,.8fr) 44px;gap:8px;margin:0;padding:2px 0;border-bottom:1px solid var(--line)}.view-workout .workout-exercise .setrow.labels{border:0;padding:0 0 5px;color:var(--muted);font-size:11px}.view-workout .workout-exercise .setrow input{border:0;border-radius:3px;background:var(--soft);box-shadow:none;min-height:44px;padding:7px 2px;font-size:20px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums}.view-workout .workout-exercise .setrow input:focus{outline:2px solid var(--action);outline-offset:-2px}.view-workout .workout-exercise .setrow .complete{border:0;border-radius:0;background:none;min-height:44px;width:44px;color:var(--action)}.view-workout .workout-exercise .setrow .complete:not(.active)::after{content:'';display:block;width:22px;height:22px;border:1.5px solid var(--control-line);border-radius:50%;margin:auto}.view-workout .workout-exercise .setrow .complete.active{background:none;color:var(--action);font-size:26px}.view-workout .workout-exercise .setrow.isdone input{background:none;color:var(--muted)}
.view-workout .workout-actions{gap:8px;margin:8px 0 3px}.view-workout .workout-actions button{border:0;border-radius:4px;box-shadow:none;background:none;color:var(--muted);font-size:12px;min-height:44px;padding:6px 2px;font-weight:600}.view-workout .workout-actions button[data-timer]{background:var(--soft);color:var(--text)}.view-workout .workout-actions button:focus-visible{outline:2px solid var(--action)}.view-workout .workout-exercise>.ui-section{border:0;border-top:1px solid var(--line);border-radius:0;background:none;margin:12px 0}.view-workout .workout-exercise>.ui-section>summary{padding:8px 0;color:var(--muted)}.view-workout .workout-exercise .exercise-previous{border:0;margin-top:12px;padding:0}.view-workout .workout-exercise .exercise-previous>button{border:0;background:none;text-align:left;justify-content:flex-start;padding:8px 0;color:var(--muted)}
body #timer-host .workout-timer{width:calc(100vw - 28px);max-width:430px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 18px #00000012;padding:8px 12px;gap:5px}body #timer-host .workout-timer .timer-controls{display:grid;grid-template-columns:70px 44px minmax(66px,1fr) 44px 44px;gap:4px;align-items:center}body #timer-host .workout-timer #timer-time{font-size:32px;line-height:1.1;letter-spacing:-1px;min-width:0;color:var(--action);font-weight:700;font-variant-numeric:tabular-nums}body #timer-host .workout-timer.is-paused #timer-time::before{content:none}body #timer-host .workout-timer button{border:0;border-radius:5px;background:none;box-shadow:none;font-size:12px;font-weight:600;min-width:44px;min-height:44px;padding:5px 2px;color:var(--muted)}body #timer-host .workout-timer [data-action=timer-pause]{background:var(--action);color:var(--on-action)}body #timer-host .workout-timer .timer-notice{color:var(--muted);font-size:11px;font-weight:400;line-height:1.2}
@media(max-width:340px){body #timer-host .workout-timer .timer-controls{grid-template-columns:56px 44px minmax(66px,1fr) 44px 44px;gap:2px}body #timer-host .workout-timer button{min-width:44px}body #timer-host .workout-timer #timer-time{font-size:26px}}

.view-workout .workout-thumbnail{background:#29343f;opacity:1;border-radius:4px;padding:2px}

.view-workout .workout-pager .eyebrow{text-transform:none;letter-spacing:0;line-height:1.3;font-size:12px}.view-workout .workout-exercise .setrow.is-current{box-shadow:-2px 0 var(--action)}.view-workout .workout-exercise .setrow.is-current>span{color:var(--action);font-weight:700}

.chat-keyboard #chat-compose{min-height:min(120px,var(--chat-compose-max-height,120px));max-height:var(--chat-compose-max-height,120px);overflow-y:auto}

.chat-keyboard::after{content:"";display:block;height:var(--chat-keyboard-inset,0px)}

/* Oprava 12. 11. 2026: tabulka sérií ruší rámeček polí (border:0), takže obecné označení neplatného čísla nebylo vidět. */
.view-workout .workout-exercise .setrow input[aria-invalid=true],.view-workout .workout-exercise .setrow input[aria-invalid=true]:focus{outline:2px solid var(--danger-text);outline-offset:-2px;color:var(--danger-text)}
.food-plan-head{margin:0 0 10px;font-size:13px;line-height:1.45}.food-plan-head:focus{outline:2px solid var(--lime);outline-offset:2px;border-radius:6px}.food-plan-banner{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 12px;font-size:13px}.food-plan-banner p{margin:0 0 8px}.food-plan-wait{margin:0 0 10px}.food-plan-day{margin:0 0 12px}.food-plan-day>h3{margin:2px 0;font-size:15px}.food-plan-day>p{margin:2px 0 6px}.food-plan-cook{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:10px 0}.food-plan-cook h4{margin:0 0 4px;font-size:14px}.food-plan-cook ul,.food-plan-tasks{margin:6px 0 8px;padding-left:20px;font-size:13px;line-height:1.45}.food-plan-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0}.food-plan-row>.food-product{flex:1 1 190px;min-width:0;margin:0;text-align:left}.food-plan-row>.secondary{flex:0 0 auto;width:auto}.food-plan-completed{position:relative}.food-plan-completed>span:first-child{visibility:hidden}.food-plan-done{position:absolute;inset:0;display:grid;place-items:center}.food-plan-undo-line{flex:1 0 100%;text-align:right}.food-plan-undo-line>.secondary{width:auto}.food-plan-row>.secondary{max-width:100%}.food-plan details{margin:10px 0}.food-plan details ul{margin:6px 0;padding-left:20px;font-size:13px;line-height:1.45}.food-plan details li{margin:4px 0}.food-plan-shop h3{font-size:14px;margin:14px 0 2px}.food-plan-check{margin:2px 0}.food-plan-check small{display:block;color:var(--muted);margin-top:2px}.food-plan-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.food-plan-actions .secondary{flex:1 1 150px;width:auto}.food-plan-steps h3{font-size:15px;margin:14px 0 4px}.food-plan-steps h3:first-child{margin-top:0}
@media(max-height:500px) and (orientation:landscape){.shell.view-food>[data-ui-section=food-stock]{grid-row:5}.shell.view-food>[data-ui-section=food-plan]{grid-row:6}.shell.view-food>.food-entries{grid-row:7}.shell.view-food>[data-ui-section=food-sources]{grid-row:8}.shell.view-food>[data-ui-section=food-totals]{grid-row:9}.shell.view-food>[data-ui-section=food-days]{grid-row:10}.shell.view-food>.ui-section:not([data-ui-section]){grid-row:11}.shell.view-food>.secondary{grid-row:12}.shell.view-food>.footer{grid-row:13}}
.food-stock-items,.food-stock-deduction{list-style:none;padding:0;margin:12px 0 0}
.food-stock-items li,.food-stock-deduction li{padding:10px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.food-stock-item{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.food-stock-item span{white-space:nowrap;font-variant-numeric:tabular-nums}
.food-stock-item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.food-stock-item-actions button,button.food-stock-prep,#food-stock-results button{min-height:44px}
.food-stock-deduction small{display:block;color:var(--muted)}
.food-stock-prep,.food-stock-prepared{margin:4px 0}
.food-plan-steps .food-stock-prep{margin-top:8px}
.journal-sync-indicator{flex:0 1 auto;max-width:45%;min-height:44px;padding:4px 8px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:8px;text-align:center;font-size:.78rem;line-height:1.2}
.journal-sync-indicator[hidden]{display:none}
