/* Foco: composição aprovada, conectada ao aplicativo real. */
:root{--font:'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;--radius:14px;--foco-control:#718d7e;--foco-input:#17231f}
html{background:var(--paper);scrollbar-color:var(--foco-control) var(--paper)}
body,button,input,select,textarea,h1,h2,h3,.brand,.metric b,.day strong{font-family:var(--font)}
body{font-size:14px;-webkit-font-smoothing:antialiased}
#overlay,#overlay :is(h1,h2,h3),#toast,#save-recovery{font-family:var(--font)}
h1,h2,h3{letter-spacing:-.025em;text-wrap:balance}
button,input,select{touch-action:manipulation}
.shell.foco-shell{max-width:1800px;grid-template-columns:204px minmax(0,1fr)}
.foco-shell .sidebar{padding:30px 18px 22px;width:auto;gap:0;background:var(--paper)}
.foco-shell .brand{font-size:22px;letter-spacing:-.8px;gap:0}
.foco-shell .brand:before{font-size:30px;line-height:1;margin-right:12px;font-weight:500}
.foco-shell .brand-sub{margin:8px 0 0 36px;max-width:125px;font-size:11px;letter-spacing:0}
.foco-shell .nav{gap:5px;margin-top:32px}
.foco-shell .nav button{padding:12px 10px;min-height:46px;border-radius:8px;font-size:13px;font-weight:500;gap:12px}
.foco-shell .nav button.active{background:var(--surface);color:var(--green)}
.foco-shell .side-foot{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:18px 0 0;margin-top:auto;font-size:12px}
.foco-shell .avatar{background:var(--surface);color:var(--ink);width:34px;height:34px;flex-shrink:0;font-size:11px}
.foco-shell .content{padding:0 36px 32px}
.foco-shell .topbar{height:auto;min-height:74px;margin:0 -36px 30px;padding:14px 36px;gap:20px}
.foco-shell .product-location{font-size:12px;display:flex;gap:14px;color:var(--muted);flex-wrap:wrap}
.foco-shell .product-location strong{color:var(--ink);font-weight:500}
.foco-shell .demo{background:none;border:0;padding:0;font-size:10px;letter-spacing:.02em}
.foco-shell .demo:before{content:'';width:5px;height:5px;background:var(--green);border-radius:50%}
.foco-shell .topbar-tools{gap:14px;flex-wrap:wrap;justify-content:flex-end}
.foco-shell .topbar-tools>.athlete-sound{order:2;flex-basis:100%;justify-content:flex-end}
.foco-shell .page-title h1,.foco-shell .athlete-session-head h1{font:650 32px/1.2 var(--font);letter-spacing:-.02em}
.foco-shell .page-title{margin-bottom:26px;align-items:center}
.foco-shell .page-title p{font-size:13px;line-height:1.6}
.foco-shell .product-context,.foco-shell .athlete-context{font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.025em}
.foco-shell .product-context{margin-bottom:12px}
.foco-shell .btn{min-height:44px;border-color:var(--foco-control);border-radius:8px;padding:10px 18px;font-size:13px;font-weight:600;background:transparent}
.foco-shell .btn.primary{background:var(--green);border-color:var(--green);color:var(--action-ink)}
.foco-shell .btn.primary:hover{background:var(--ink);border-color:var(--ink)}
.foco-shell .btn.danger{color:#ffb4ab;border-color:#8c665e;background:#342422}
.foco-shell .btn.small{min-height:40px;padding:8px 12px;font-size:12px}
.foco-shell .text-btn{min-height:40px;display:inline-flex;align-items:center;font-size:12px}
.foco-shell input:not([type=checkbox]):not([type=radio]),.foco-shell select,.foco-shell textarea{background:var(--foco-input);border-color:var(--foco-control);min-height:48px;border-radius:8px;font-size:14px}
.foco-shell input[type=checkbox]{width:18px;height:18px;flex-shrink:0}
.foco-shell .checkline{padding:6px 0;line-height:1.6}
.foco-shell .product-panel,.foco-shell .card,.foco-shell .onboarding-form-panel,.foco-shell .product-empty{border-radius:14px;border:1px solid var(--line);background:var(--surface);box-shadow:none}
.foco-shell .product-panel{padding:26px}
.foco-shell .product-panel h2{font-size:23px;line-height:1.25;margin-bottom:16px;font-weight:650}
.foco-shell .product-panel p{font-size:13px;line-height:1.7;max-width:72ch;margin:12px 0;color:var(--muted)}
.foco-shell .product-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px}
.foco-shell .foco-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.foco-shell .foco-reset{margin-top:24px;background:transparent}
.foco-shell .foco-reset h2{font-size:18px}
.foco-shell .overview-layout{grid-template-columns:minmax(0,1fr);gap:24px}
.foco-shell .overview-feature{padding:32px;border-radius:14px;background:var(--surface);border:1px solid var(--line);min-height:280px}
.foco-shell .overview-feature h2{font:650 clamp(34px,3.5vw,52px)/1.1 var(--font);letter-spacing:-.035em;max-width:19ch;margin:20px 0 16px}
.foco-shell .overview-feature>p{max-width:65ch;font-size:14px;line-height:1.7}
.foco-shell .overview-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:24px 0;gap:0;border:1px solid var(--line);border-radius:14px;background:transparent}
.foco-shell .overview-stats>div{padding:24px;border:0;background:transparent;border-right:1px solid var(--line)}
.foco-shell .overview-stats>div:last-child{border:0}
.foco-shell .overview-stats strong{font:600 32px/1.2 var(--font);font-variant-numeric:tabular-nums}
.foco-shell .overview-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.foco-shell .overview-side .product-panel{padding:24px}
.foco-shell .overview-side h3{font-size:18px;font-weight:600}
.foco-shell .product-section-head h2{font-size:20px;font-weight:600;letter-spacing:-.02em}
.foco-shell .athlete-cycle h3,.foco-shell .athlete-calendar h3,.foco-shell .athlete-library h3{font-weight:600;letter-spacing:-.015em}
.foco-shell .exercise-tile{border-radius:14px;padding:22px;min-height:175px;background:var(--surface)}
.foco-shell .exercise-tile h3{font-size:16px;line-height:1.4}
.foco-shell .exercise-tile:hover{background:#24372f;border-color:var(--green)}
.foco-shell .athlete-session-head{align-items:center;padding:18px 22px;border:1px solid var(--line);border-radius:14px;margin:0 0 24px;gap:24px}
.foco-shell .athlete-session-head h1{font-size:25px;margin:6px 0}
.foco-shell .athlete-progress{max-width:420px;min-width:180px;flex:1}
.foco-shell .athlete-progress strong{font-size:13px}
.foco-shell .athlete-stages{gap:24px}
.foco-shell .foco-sequence{margin:0 0 24px;min-width:0}
.foco-shell .foco-sequence .athlete-map{display:flex;gap:8px;overflow:auto;border:0;padding:0;margin:0;scrollbar-width:thin}
.foco-shell .foco-sequence .athlete-map-title{display:none}
.foco-shell .foco-sequence button{min-width:165px;flex:1;padding:16px 12px;border:1px solid transparent;min-height:98px;display:block;border-radius:10px}
.foco-shell .foco-sequence button>span:first-child{display:block;margin-bottom:10px}
.foco-shell .foco-sequence button.active{background:var(--surface);border-color:#6aaf92}
.foco-shell .foco-sequence button>span:last-child{font-size:12px;font-weight:500}
.foco-shell .foco-sequence small{font-size:10px;margin-top:10px;font-weight:400;color:var(--green)}
.foco-shell .foco-workspace{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;align-items:start}
.foco-shell .athlete-active{padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;position:relative}
.foco-shell .athlete-active{background:var(--surface)}
.foco-shell .athlete-active .exercise-block{padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
.foco-shell .athlete-active .set-form:has(input[name=left]){grid-template-columns:repeat(2,minmax(0,1fr))}
#app .foco-shell .content{padding-left:36px;padding-right:36px}
.foco-shell :is(h1,h2,h3),.foco-shell .record-date time,.foco-shell .athlete-progress strong{font-family:var(--font)}
.foco-shell .athlete-compact{left:max(204px,calc((100vw - 1800px)/2 + 204px));right:max(0px,calc((100vw - 1800px)/2))}
.foco-shell .athlete-active:before{content:'';position:absolute;top:0;left:26px;width:48px;height:2px;background:var(--green)}
.foco-shell .foco-exercise-heading{padding:26px;border-bottom:1px solid var(--line)}
.foco-shell .foco-exercise-heading h2{font:650 clamp(28px,3vw,44px)/1.12 var(--font);letter-spacing:-.03em;margin:0;overflow-wrap:anywhere}
.foco-shell .athlete-panel-state{margin-bottom:18px;font-weight:500}
.foco-shell .foco-exercise-body{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr)}
.foco-shell .foco-prescription{padding:26px;border-right:1px solid var(--line);min-width:0}
.foco-shell .foco-prescription dl{margin:22px 0}
.foco-shell .foco-prescription dl>div{margin:0 0 28px}
.foco-shell .foco-prescription dt{font-size:12px;color:var(--muted);margin-bottom:8px}
.foco-shell .foco-prescription dd{margin:0;font-size:18px;line-height:1.6;font-weight:500;font-variant-numeric:tabular-nums}
.foco-shell .foco-prescription dl>div:first-child dd{font-size:32px;line-height:1.1}
.foco-shell .foco-prescription>p{line-height:1.8}
.foco-shell .foco-record{padding:26px;min-width:0}
.foco-shell .foco-record .exercise-block>h3,.foco-shell .foco-record .exercise-block>h3+p,.foco-shell .foco-record .exercise-block>.row:first-child{display:none}
.foco-shell .foco-record .set-form,.foco-shell .foco-record .core-set-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0;margin:18px 0 0;border:0;background:none;align-items:start}
.foco-shell .foco-record form label{display:grid;gap:8px;font-size:12px;line-height:1.5;min-width:0}
.foco-shell .foco-record form input,.foco-shell .foco-record form select{width:100%;padding:12px;min-width:0;font-size:14px}
.foco-shell .foco-record form .set-number,.foco-shell .foco-record .core-set-form>strong{grid-column:1/-1;font-size:14px;color:var(--muted);padding:0;background:none;text-align:left;display:block;width:auto}
.foco-shell .foco-record .set-form>button,.foco-shell .foco-record .core-set-form>button{grid-column:1/-1;background:var(--green);border-color:var(--green);color:var(--action-ink);font-size:14px;min-height:48px;width:100%;margin-top:8px}
.foco-shell .foco-record .core-set-form>p{grid-column:1/-1}
.foco-shell .foco-record .athlete-series{margin:0 0 20px;overflow:auto}
.foco-shell .foco-record .athlete-table{min-width:260px}
.foco-shell .foco-side-context{display:grid;gap:24px;min-width:0}
.foco-shell .foco-rest-panel{border:1px solid var(--line);border-radius:14px;padding:24px 20px;text-align:center}
.foco-shell .foco-rest-panel h3{font-size:14px;text-align:left;margin:0 0 22px}
.foco-shell .foco-rest-panel .athlete-rest{display:flex;flex-direction:column-reverse;gap:20px;margin:0 0 18px;padding:0;border:0;background:none}
.foco-shell .foco-rest-panel .athlete-rest>div:last-child{border:2px solid var(--line);border-radius:50%;width:164px;height:164px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.foco-shell .foco-rest-panel [data-rest-value]{font:500 36px/1.1 var(--font);font-variant-numeric:tabular-nums}
.foco-shell .foco-rest-panel [data-rest-state]{font-size:11px;max-width:125px;line-height:1.5}
.foco-shell .foco-rest-panel .athlete-rest span{font-size:12px;line-height:1.7}
.foco-shell .foco-rest-panel .athlete-rest small{display:block;color:var(--muted);line-height:1.7}
.foco-shell .foco-rest-panel>p{border-top:1px solid var(--line);padding-top:16px;font-size:11px;line-height:1.7}
.foco-shell .athlete-companion{padding:22px 0;border-top:1px solid var(--line);background:transparent}
.foco-shell .athlete-companion h3{font-size:17px;font-weight:600;margin:12px 0}
.foco-shell .athlete-companion p{font-size:12px;line-height:1.7;margin:10px 0}
.foco-shell .athlete-companion>.btn{width:100%;margin:12px 0}
.foco-shell .athlete-companion .athlete-rest{margin:12px 0 0;padding:12px 0;border-top:1px solid var(--line);font-size:11px}
.foco-shell .athlete-preparation{margin-top:24px;padding:16px 0}
.foco-shell .footer-note{border-top:1px solid var(--line);padding-top:24px;margin-top:32px;max-width:none;line-height:1.8}
.foco-shell .athlete-compact{font-family:var(--font);border-radius:0 0 12px 12px}
.foco-shell .athlete-compact strong{font-family:var(--font)}
@media(max-width:1250px){.foco-shell .foco-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.foco-shell .foco-exercise-body{grid-template-columns:1fr}.foco-shell .foco-prescription{border-right:0;border-bottom:1px solid var(--line);padding:22px}.foco-shell .foco-prescription dl{display:grid;grid-template-columns:.6fr 1.3fr 1fr;gap:20px;margin:16px 0}.foco-shell .foco-prescription dl>div{margin:0}.foco-shell .foco-prescription dd{font-size:15px}.foco-shell .overview-side{gap:18px}.foco-shell .overview-side .product-panel{padding:20px}}
@media(max-width:980px){.shell.foco-shell{display:block}.foco-shell .sidebar{height:auto;position:static;padding:18px 24px 0;border-right:0;border-bottom:1px solid var(--line)}.foco-shell .sidebar .brand-sub,.foco-shell .side-foot{display:none}.foco-shell .nav{display:flex;overflow:auto;margin:16px 0 0;gap:4px;padding-bottom:10px}.foco-shell .nav button{white-space:nowrap;flex-shrink:0;min-height:44px}.foco-shell .content{padding:0 24px 28px}.foco-shell .topbar{margin:0 -24px 24px;padding:12px 24px;min-height:62px}.foco-shell .mobile-brand{display:none}.foco-shell .overview-side{grid-template-columns:1fr}.foco-shell .foco-data-grid{gap:20px}}
@media(max-width:680px){.foco-shell .sidebar{padding:18px 16px 0}.foco-shell .content{padding:0 16px 24px}.foco-shell .topbar{padding:12px 16px;margin:0 -16px 24px;align-items:start}.foco-shell .product-location{font-size:11px;gap:6px}.foco-shell .topbar-tools{gap:6px}.foco-shell .topbar-tools>.athlete-sound{justify-content:flex-start}.foco-shell .topbar:has(.athlete-sound){flex-wrap:wrap}.foco-shell .topbar:has(.athlete-sound) .topbar-tools{width:100%;justify-content:flex-start}.foco-shell .topbar-tools .demo{font-size:9px}.foco-shell .page-title{flex-wrap:wrap;gap:16px}.foco-shell .page-title h1{font-size:28px}.foco-shell .page-title p{max-width:none}.foco-shell .foco-data-grid,.foco-shell .foco-workspace{grid-template-columns:1fr}.foco-shell .product-panel,.foco-shell .overview-feature{padding:22px}.foco-shell .overview-feature h2{font-size:34px}.foco-shell .overview-stats>div{padding:16px 12px}.foco-shell .overview-stats strong{font-size:26px}.foco-shell .overview-stats span{font-size:11px}.foco-shell .athlete-session-head{display:block;padding:20px}.foco-shell .athlete-progress{max-width:none;margin-top:20px}.foco-shell .foco-sequence button{min-width:155px}.foco-shell .foco-sequence{order:3}.foco-shell .foco-exercise-heading,.foco-shell .foco-record{padding:22px}.foco-shell .foco-exercise-heading h2{font-size:30px}.foco-shell .foco-prescription dl{gap:12px}.foco-shell .foco-prescription dd{font-size:13px}.foco-shell .foco-side-context{grid-template-columns:1fr}.foco-shell .foco-rest-panel .athlete-rest{flex-direction:row;align-items:center;text-align:left}.foco-shell .foco-rest-panel .athlete-rest>div:last-child{flex-shrink:0;width:132px;height:132px}.foco-shell .athlete-companion{padding:20px;border:1px solid var(--line);border-radius:14px}.foco-shell .foco-record .set-form,.foco-shell .foco-record .core-set-form{gap:14px}.foco-shell .foco-record .training-set-form label:has(input[name=configuration]),.foco-shell .foco-record .training-set-form label:has(input[name=device]){grid-column:1/-1}.foco-shell .athlete-stages{gap:18px}}
@media(max-width:380px){.foco-shell .foco-record .set-form,.foco-shell .foco-record .core-set-form{grid-template-columns:1fr}.foco-shell .foco-prescription dl{grid-template-columns:1fr 1fr}.foco-shell .foco-prescription dl>div:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.foco-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:980px){.foco-shell .sidebar{display:flex}#app .foco-shell .content{padding-left:24px;padding-right:24px}.foco-shell .athlete-compact{left:0;right:0}}
@media(max-width:680px){#app .foco-shell .content{padding-left:16px;padding-right:16px}.foco-shell .athlete-active .set-form:has(input[name=left]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.foco-shell .athlete-active .set-form:has(input[name=left]){grid-template-columns:1fr}}

/* Tela estreita: priorizar o registro, manter navegação e controles alcançáveis. */
@media(max-width:980px){
 #app .foco-shell .nav button{width:auto;flex:0 0 auto}
 .foco-shell .nav{scrollbar-width:thin;scroll-padding-inline:12px}
 #app .foco-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),#app .foco-shell select,#app .foco-shell textarea,
 #overlay input:not([type=checkbox]):not([type=radio]):not([type=hidden]),#overlay select,#overlay textarea{font-size:16px;min-height:48px;max-width:100%}
 .foco-shell .btn.small,.foco-shell .text-btn,.foco-shell .athlete-stages button,.foco-shell .athlete-compact .btn,#overlay .btn{min-height:44px}
 .foco-shell .checkline,#overlay .checkline{min-height:44px}
 .foco-shell summary,#overlay summary{min-height:44px;padding-top:10px;padding-bottom:10px}
 .foco-shell .sound-switch{min-height:44px!important}
 .foco-shell .foco-record form label{font-size:14px}
}
@media(max-width:680px){
 html{scroll-padding-top:140px}
 .foco-shell .topbar-context{display:none}
 .foco-shell .foco-record .exercise-block{display:flex;flex-direction:column}
 .foco-shell .foco-record .exercise-block>.athlete-series{order:2}
 .foco-shell .foco-record :is(input,select,button){scroll-margin-top:140px}
}

/* Clareza: ações primeiro, explicações consultadas sob demanda. */
.foco-shell .athlete-overview>.product-actions{margin:0 0 24px}
.foco-shell .product-explainer{margin:20px 0}
.foco-shell details>summary{cursor:pointer;line-height:1.5}
.foco-shell details>summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}
.foco-shell .footer-note{font-size:12px}
.foco-shell .footer-note p{max-width:72ch}
.foco-shell .foco-prescription .product-explainer{font-size:13px}
.foco-shell .onboarding-guide li p:empty{display:none}
@media(max-width:680px){
 .foco-shell .page-title{margin-bottom:24px}
 .foco-shell .onboarding-guide{display:none}
 .foco-shell .overview-feature{min-height:0}
 .foco-shell .overview-feature h2{font-size:30px}
 .foco-shell .overview-feature .product-actions{margin-top:16px}
 .foco-shell .overview-stats>div{padding:14px 10px}
 .foco-shell .foco-prescription{padding:18px 22px}
 .foco-shell .foco-prescription dl{grid-template-columns:1fr 1fr;margin:0;gap:14px}
 .foco-shell .foco-prescription dl>div:last-child{grid-column:1/-1}
 .foco-shell .foco-prescription .product-context{display:none}
 .foco-shell .foco-prescription dl>div:first-child dd{font-size:24px}
 .foco-shell .foco-prescription dd{font-size:15px;line-height:1.45}
 .foco-shell .foco-prescription .product-explainer{margin:10px 0 0}
 .foco-shell .foco-exercise-heading h2{font-size:26px;line-height:1.2}
 .foco-shell .athlete-panel-state{margin-bottom:12px}
 .foco-shell .athlete-session-head{padding:16px;margin-bottom:18px}
 .foco-shell .athlete-session-head h1{font-size:23px}
 .foco-shell .athlete-progress{margin-top:12px}
 .foco-shell .foco-rest-panel .athlete-rest{gap:12px}
 .foco-shell .foco-rest-panel .athlete-rest>div:last-child{width:112px;height:112px}
 .foco-shell .footer-note{padding-top:12px;margin-top:24px}
}

@media(max-width:680px){.foco-shell .library-tile{min-height:0;padding:18px}.foco-shell .library-tile h3{margin:12px 0;font-size:16px}.foco-shell .library-tile-bottom{margin-top:12px}}
