/* One task at a time, keeping every existing tool and its local state. */
.workspace-ready [data-workspace-view][hidden],.workspace-ready #workspace-subnav[hidden]{display:none!important}
.workspace-ready .main-grid{display:contents}
.workspace-ready .section-index{display:none}
.workspace-ready .page-heading .eyebrow{display:none}
html.workspace-ready:not([data-workspace="overview"]) #demo-banner{display:none!important}
.workspace-ready .page-heading{margin-bottom:18px}.workspace-ready .page-heading h1{font-size:27px;letter-spacing:-.5px}
.workspace-ready .period-stamp{display:none}html[data-workspace="overview"] .period-stamp{display:flex}
.workspace-ready .site-route-bar{padding:0;border-bottom:0;margin:0 0 18px;color:var(--muted)}
.site-route-bar>summary{font-size:11px;cursor:pointer;min-height:32px;line-height:32px}.site-route-bar[open]{padding-bottom:10px;border-bottom:1px solid var(--line)}
.workspace-ready .panel{margin:0 0 22px}.workspace-ready .panel .panel-heading{margin-bottom:20px}
.workspace-ready .panel-heading p{font-size:13px;line-height:1.8}.workspace-ready .tiny-tag{font-size:11px}
#workspace-subnav{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:6px 0 24px;padding-bottom:10px;flex-wrap:wrap}
#workspace-subnav>a{font-size:13px;min-height:44px;padding:10px 17px;color:#687665;justify-content:center}
#workspace-subnav>a[aria-current="page"]{background:#e8eee1;color:#354b2d;font-weight:600}
#workspace-nav a[aria-current="page"]{background:#e8ede2;color:#34452e;font-weight:600}
#overview-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0 32px}
#overview-actions .button{font-size:13px;min-height:46px;padding:12px 20px}
html[data-workspace="profile"] .contextbar .lift-tabs,html[data-workspace="profile"] #demo-banner{display:none!important}
html[data-workspace="profile"] .contextbar{justify-content:flex-end}
html[data-workspace="insights"] .contextbar .lift-tabs,html[data-workspace="month"] .contextbar .lift-tabs{display:none!important}
html[data-workspace="insights"] .contextbar,html[data-workspace="month"] .contextbar{justify-content:flex-end}
#history-phase-details{border-top:1px solid #dce5d4;margin-top:22px;padding-top:0}
#history-phase-details>summary{min-height:48px;padding:15px 0;font-size:14px;line-height:1.8;font-weight:500;color:#405637;cursor:pointer}
#history-phase-details[open]>summary{margin-bottom:12px}
.workspace-ready #athlete-profile{margin-top:0}.workspace-ready #training-insights{margin-top:0}
.workspace-ready .history-note,.workspace-ready .insights-note{font-size:12px}
.workspace-ready #training-insights>.insights-block{margin-top:16px;padding:20px 0}
.workspace-ready #insights-rounds-panel>#insights-rounds{border-top:0;margin-top:0;padding-top:4px}
@media(min-width:701px){.workspace-ready #workspace-nav{display:grid;grid-template-columns:1fr}.workspace-ready #workspace-nav a,.workspace-ready #workspace-nav button{font-size:13px;padding:13px 15px;min-height:48px}}
@media(max-width:700px){
 html.workspace-ready{scroll-padding-bottom:90px}.workspace-ready .history-table-wrap .history-table caption{display:block;width:100%}
 .workspace-ready .sidebar{padding:14px 18px;min-height:57px}.workspace-ready .brand{font-size:13px}
 .workspace-ready #workspace-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#fbfaf7;border-top:1px solid #dde3d6;padding:6px 8px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -3px 14px #27352708}
 .workspace-ready #workspace-nav>a,.workspace-ready #workspace-nav>button{min-width:0;min-height:51px;padding:6px 3px;font-size:11px;line-height:1.5;flex-direction:column;gap:3px;border-radius:8px;text-align:center;align-items:center;justify-content:center}
 .workspace-ready .content{padding-top:16px;padding-bottom:86px}.workspace-ready .toast{bottom:84px}
 .workspace-ready .site-route-bar{margin-bottom:8px}.workspace-ready .page-heading{margin-bottom:16px}.workspace-ready .page-heading h1{font-size:24px}.workspace-ready .page-heading p{font-size:12px;max-width:none;line-height:1.8}
 .workspace-ready .panel h3{font-size:19px}.workspace-ready .panel-heading p{font-size:13px}.workspace-ready .tiny-tag{font-size:11px}
 #workspace-subnav{gap:4px;margin-bottom:18px;flex-wrap:nowrap;overflow-x:auto}#workspace-subnav>a{font-size:12px;padding:10px 11px;white-space:nowrap;flex:1}
 #overview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#overview-actions .button{font-size:12px;padding:12px 9px;white-space:normal}
 .workspace-ready .hero{min-height:180px}.workspace-ready .hero p{font-size:12px}.workspace-ready .hero-link{font-size:12px}
 .workspace-ready .metric-top,.workspace-ready .metric-foot{font-size:11px}.workspace-ready .metric-badge{font-size:9px!important}.workspace-ready .metric{min-height:150px}
}
html[data-workspace="training"] .contextbar .lift-tabs{display:none!important}
html[data-workspace="training"] .contextbar{justify-content:flex-end}
.workspace-ready #workspace-nav button.active{background:var(--sage-light,#e6eddf);color:var(--forest,#344b30)}

/* Keep the workbench shell consistent with the public tools. */
.workspace-ready #workspace-nav a,.workspace-ready #workspace-nav button{color:var(--muted);border-radius:4px;font-size:14px}
.workspace-ready #workspace-nav a[aria-current="page"],.workspace-ready #workspace-nav button.active{background:#f8eeee;color:var(--red)}
#workspace-subnav>a{color:var(--muted);font-size:14px;border-radius:4px}
#workspace-subnav>a[aria-current="page"]{background:#f8eeee;color:var(--red)}
.workspace-ready .site-route-bar>summary{font-size:13px;min-height:44px;line-height:44px}
.workspace-ready .page-heading p{font-size:14px;color:var(--muted)}
.workspace-ready .hero p,.workspace-ready .hero-link{font-size:14px}
.workspace-ready .metric-top,.workspace-ready .metric-foot{font-size:13px}
.workspace-ready .metric-badge{font-size:12px!important}
.workspace-ready .tiny-tag,.workspace-ready .history-note,.workspace-ready .insights-note{font-size:13px}
.workspace-ready .panel-heading p{color:var(--muted)}
/* The training panel owns its title; the save and data-mode controls stay visible. */
html[data-workspace="training"] .content>.page-heading{display:none}
html[data-workspace="training"] .content>.contextbar{margin-bottom:12px}
html[data-workspace="training"] #log-open{display:none}
.workspace-ready .contextbar{flex-wrap:wrap}
.workspace-ready .data-context{margin-left:auto;flex-shrink:0}
.workspace-ready .data-context .text-button{font-size:13px;white-space:nowrap}
.workspace-ready .tag{white-space:nowrap}
.workspace-ready .page-heading{flex-wrap:wrap}
.workspace-ready .period-stamp{font-size:12px}
.workspace-ready .lift-tabs button{font-size:14px;min-width:70px}

/* Reading and review surfaces share the shell; positive result states stay green. */
#training-insights{--insights-ink:#1a1a1a;--insights-muted:#626262;--insights-line:#dddcd8}
#athlete-profile{--profile-ink:#1a1a1a;--profile-muted:#626262;--profile-line:#dddcd8}
.insights-toolbar label,.insights-pair-label,.insights-pair>p,.insights-result-grid p,.insights-block-heading p,.insights-empty p{font-size:14px}
.insights-toolbar select{font-size:16px;min-height:44px;background:#fff;border-color:#c9c8c3;border-radius:4px}
.insights-step,.insights-arrow{color:var(--muted)}
.insights-periods,.insights-pair,.insights-result-grid>article,.insights-empty,.insights-round,.insights-latest{background:#f5f5f0;border-color:var(--line);border-radius:6px}
.insights-pair-values>span:last-child strong{color:var(--ink)}
.insights-periods,.insights-periods small,.insights-pair-values small,.insights-round-notes,.insights-round-variable,.insights-round-heading,.insights-round-values{font-size:13px}
.insights-details{border-radius:6px;background:#fafaf7}.insights-details>summary{font-size:14px;min-height:44px}
#training-insights .text-button,#athlete-profile .text-button{font-size:14px}
.profile-reference,.profile-context,.profile-lift,.profile-empty,.profile-history,.profile-backup{border-radius:6px;background:#fafaf7}
.profile-reference strong{color:var(--ink)}
.profile-caption,.profile-muted,.profile-kicker,.profile-reference p,.profile-coverage,.profile-lift-heading>span,.profile-dose>span,.profile-dose>small,.profile-details>p,.profile-backup p{font-size:13px}
.profile-reference-add .button,.profile-details>summary,.profile-facts dt{font-size:14px}
.profile-monogram{border-radius:6px;background:var(--soft);color:var(--ink)}
.guide-panel{background:#fff;border-color:var(--line)}
.guide-panel-top p,.guide-panel-bottom p,.guide-current-plan small,.guide-history,.guide-range-tag{font-size:13px;color:var(--muted)}
.guide-range-tag{border-color:var(--line);border-radius:4px;white-space:normal}
.guide-path>span{font-size:14px;color:var(--ink)}.guide-path b{font-size:12px;color:var(--muted);border-color:var(--line);flex-shrink:0}
.guide-panel-bottom strong,.guide-current-plan strong{font-size:14px;color:var(--ink)}.guide-panel-bottom .button{font-size:14px}
.guide-drawer .field,.guide-drawer .check-field{font-size:14px;color:var(--ink)}
.guide-drawer .field input,.guide-drawer .field select,.guide-drawer .field textarea,.guide-task input,.guide-task select{font-size:16px;min-height:44px;color:var(--ink);border-color:#c9c8c3;border-radius:4px}
.guide-scope,.guide-scope .text-button,.guide-intro p,.guide-small-note,.guide-navigation>span,.guide-direction small,.guide-rationale p,.guide-task label,.guide-task-top,.guide-editor-tools>span,.guide-direction-kicker,.guide-totals small,.guide-comparison-title>span{font-size:13px;color:var(--muted)}
.guide-intro p,.guide-rationale p,.guide-comparison>p,.guide-saved-task p{color:var(--muted)!important}
.guide-intro h3,.guide-direction strong,.guide-rationale>strong,.guide-editor-heading h4,.guide-comparison-title strong{color:var(--ink)}
.guide-direction strong,.guide-rationale>strong,.guide-editor-heading h4,.guide-comparison-title strong,.guide-add,.guide-navigation .button,.guide-editor-tools .button{font-size:14px}
.guide-steps{flex-wrap:wrap;gap:12px}.guide-steps li{font-size:13px;color:var(--muted);min-width:110px}
.guide-steps .active{color:var(--red)}.guide-steps .active>span{background:#f8eeee;border-color:var(--red)}
.guide-clue-fields,.guide-rationale,.guide-editor,.guide-editor:nth-child(2),.guide-small-note,.guide-comparison,.guide-saved-comparison{background:var(--soft);border-color:var(--line);border-radius:6px}
.guide-direction{border-color:var(--line)}.guide-direction.selected{background:#f8eeee;border-color:var(--red);box-shadow:none}
.guide-row-numbers{gap:10px}.guide-row-numbers label{font-size:13px;white-space:normal}
.guide-task-top .text-button{font-size:13px;color:var(--muted)}.guide-task input:focus,.guide-task select:focus{outline:2px solid var(--red);outline-offset:2px}
.guide-add{color:var(--muted);border-color:#bdbab2;min-height:44px}
@media(min-width:701px){.workspace-ready #workspace-nav a,.workspace-ready #workspace-nav button{font-size:14px}}
@media(max-width:700px){
 .workspace-ready .sidebar{padding:10px 18px;min-height:65px}
 .workspace-ready .sidebar .brand{font-size:13px}
 .workspace-ready .sidebar .brand div>span{display:none}
 .workspace-ready #workspace-nav{background:#fff;border-color:var(--line);box-shadow:none;padding:5px 6px calc(5px + env(safe-area-inset-bottom))}
 .workspace-ready #workspace-nav>a,.workspace-ready #workspace-nav>button{min-height:54px;font-size:13px;gap:3px;border-radius:4px}
 .workspace-ready .topbar{height:auto;min-height:58px;padding:7px 16px;gap:8px;flex-wrap:wrap}
 .workspace-ready .topbar>.breadcrumb{display:none}
 .workspace-ready .top-actions{width:100%;gap:8px;flex-wrap:wrap;justify-content:flex-start}
 .workspace-ready .top-actions .save-status{flex:1 1 auto;white-space:nowrap}
 .workspace-ready #account-open{flex:0 0 auto;white-space:nowrap}
 .workspace-ready #settings-open{flex:0 0 44px}
 .workspace-ready #log-open{flex:0 0 auto;margin-left:auto}
 .workspace-ready .content{padding-top:12px;padding-inline:16px}
 .workspace-ready .page-heading p{font-size:14px}
 .workspace-ready .metric{min-height:172px}
 #workspace-subnav>a{font-size:14px;padding:10px 12px}
 #overview-actions .button{font-size:14px}
}
@media(max-width:380px){
 .workspace-ready .top-actions{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:6px}
 .workspace-ready #log-open{grid-column:1/-1;width:100%;margin:0}
 .workspace-ready .top-actions .save-status{font-size:13px}
}
@media(max-width:700px){
 .guide-row-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guide-row-top{grid-template-columns:repeat(2,minmax(0,1fr))}
 .guide-row-top>label:last-child{grid-column:1/-1}
 .workspace-ready .contextbar{gap:6px}
 .workspace-ready .contextbar>.data-context{flex-basis:100%;justify-content:flex-end}
}
