/* Strength Training V1
   Cycling-oriented strength logging: low friction, no composite Strength TSS. */

.strength-slot:empty{display:none}
#strengthTodayRoot{order:5}
#todayLive>.three-grid{order:6}
#todayLive>.performance-strip{order:7}
.strength-modal-open{overflow:hidden}
.strength-today-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 20px}
.strength-today-icon{width:48px;height:48px;border-radius:14px;background:var(--blue-soft,#eaf3ff);color:var(--blue,#0b6bcb);display:grid;place-items:center}
.strength-today-icon svg{width:23px;height:23px}
.strength-today-copy{min-width:0}
.strength-today-copy h3{margin:4px 0 5px;font-size:17px}
.strength-today-copy p{margin:0;color:var(--muted,#657187);font-size:12px;line-height:1.45}
.strength-today-copy small{display:block;margin-top:6px;color:var(--muted,#657187)}
.strength-today-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.strength-today-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.strength-today-actions svg{width:16px;height:16px}
.strength-manage-btn{border:1px solid transparent}

#strengthEditorHost:empty{display:none}
.strength-dialog-backdrop{position:fixed;inset:0;z-index:150;background:rgba(9,20,36,.48);backdrop-filter:blur(10px);padding:max(14px,env(safe-area-inset-top,0px)) 14px max(14px,env(safe-area-inset-bottom,0px));display:grid;place-items:center}
.strength-dialog{width:min(860px,100%);max-height:calc(100dvh - 28px);overflow:auto;padding:22px;border-radius:22px;scrollbar-gutter:stable}
.strength-dialog:focus{outline:none}
.strength-editor-head,.strength-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.strength-editor-head h2,.strength-panel-head h3{margin:4px 0 6px}
.strength-editor-head p,.strength-panel-head p{margin:0;color:var(--muted,#657187);line-height:1.45;max-width:680px}
.strength-editor-close{width:44px;height:44px;border:1px solid var(--border,#dde5ef);background:#fff;color:#52657c;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}
.strength-editor-close svg{width:18px;height:18px}
.strength-session-meta{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 18px;color:var(--muted,#657187);font-size:11px}
.strength-session-meta span{display:inline-flex;align-items:center;gap:5px}.strength-session-meta svg{width:14px;height:14px}
.strength-exercise-list{display:grid;gap:12px}
.strength-exercise{border:1px solid var(--border,#dde5ef);border-radius:16px;background:#fff}
.strength-exercise.key{padding:17px;border-color:#c7daf0;background:linear-gradient(145deg,#f7fbff,#fff 70%)}
.strength-exercise-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.strength-exercise-head h3{margin:4px 0;font-size:18px}
.strength-exercise-head p{margin:0;color:var(--muted,#657187);font-size:11px;line-height:1.4}
.strength-exercise-head .quiet-btn,.strength-support-actions .quiet-btn{min-height:44px}
.strength-exercise.support>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px}
.strength-exercise.support>summary::-webkit-details-marker{display:none}
.strength-exercise.support>summary strong{display:block;margin-top:2px;font-size:14px}
.strength-exercise.support>summary small{display:block;margin-top:3px;color:var(--muted,#657187);font-size:10px}
.strength-exercise.support>summary>svg{width:18px;height:18px;transition:transform .15s ease}
.strength-exercise.support[open]>summary>svg{transform:rotate(180deg)}
.strength-exercise-body{padding:0 16px 16px}
.strength-support-actions{display:flex;justify-content:flex-end;margin-bottom:7px}

.strength-saved-sets{display:grid;gap:6px;margin:8px 0 12px}
.strength-set-chip{min-height:44px;padding:8px 10px;border-radius:11px;background:#f6f8fb;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-variant-numeric:tabular-nums}
.strength-set-chip.warmup{background:#faf8f3;color:#6f624a}
.strength-set-chip b{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:8px;background:#fff;margin-right:5px}
.strength-set-actions{display:flex;gap:4px}
.strength-set-actions button{width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#68788d;display:grid;place-items:center}
.strength-set-actions button:hover{background:#e9eef5}
.strength-set-actions svg{width:15px;height:15px}
.strength-no-sets{padding:8px 0;color:var(--muted,#657187);font-size:11px}

.strength-set-form{border-top:1px solid rgba(99,116,139,.15);padding-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.strength-set-form-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}
.strength-set-form-head strong{font-size:12px}
.strength-warmup-toggle{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted,#657187);cursor:pointer}
.strength-warmup-toggle input{width:18px;height:18px}
.strength-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:end}
.strength-stepper button{width:44px;height:44px;border:1px solid var(--border,#dde5ef);border-radius:11px;background:#fff;display:grid;place-items:center;color:#40516a}
.strength-stepper button svg{width:16px;height:16px}
.strength-stepper label{display:grid;gap:4px;color:#53657b;font-size:10px;font-weight:750}
.strength-stepper input{width:100%;height:44px;border:1px solid #cfd9e5;border-radius:11px;background:#fff;text-align:center;font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}
.strength-rir-wrap{grid-column:1/-1}
.strength-rir{border:0;padding:0;margin:0}
.strength-rir legend{font-size:11px;font-weight:800;margin-bottom:6px}.strength-rir legend span{font-weight:500;color:var(--muted,#657187)}
.strength-rir>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.strength-rir label{position:relative}.strength-rir input{position:absolute;opacity:0}
.strength-rir span{min-height:44px;border:1px solid var(--border,#dde5ef);border-radius:10px;background:#fff;display:grid;place-items:center;font-weight:800;cursor:pointer}
.strength-rir input:checked+span{border-color:var(--blue,#0b6bcb);background:var(--blue-soft,#eaf3ff);color:var(--blue,#0b6bcb);box-shadow:0 0 0 2px rgba(11,107,203,.08)}
.strength-set-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.strength-set-form-actions button{min-height:44px;display:inline-flex;align-items:center;gap:6px}.strength-set-form-actions svg{width:16px;height:16px}

.strength-completion-row{min-height:58px;border:1px solid var(--border,#dde5ef);border-radius:14px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.strength-completion-row strong{display:block;margin-top:3px}
.strength-check{min-height:44px;border:1px solid var(--border,#dde5ef);border-radius:11px;background:#fff;color:#40516a;padding:8px 11px;display:inline-flex;align-items:center;gap:6px;font-weight:750}
.strength-check.done{background:var(--green-soft,#e9f8f1);border-color:#c4e4d4;color:var(--green,#147a52)}
.strength-check svg{width:16px;height:16px}

.strength-add-exercise{margin-top:12px;padding:12px;border:1px dashed #cfd9e5;border-radius:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.strength-add-exercise label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#53657b}
.strength-add-exercise select{height:44px;border:1px solid #cfd9e5;border-radius:10px;background:#fff;padding:8px 10px;color:#24364d}
.strength-add-exercise button{min-height:44px}
.strength-session-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(99,116,139,.15)}
.strength-session-actions button{min-height:46px}
.danger-text{color:#9f3f3f!important}

.strength-finish-panel{margin-top:16px;padding:16px;border-radius:15px;background:#f7f9fc;border:1px solid var(--border,#dde5ef);scroll-margin-top:10px}
.strength-panel-head .quiet-btn{width:44px;height:44px;padding:0;display:grid;place-items:center}
.strength-finish-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.strength-finish-form>label{display:grid;gap:5px;color:#53657b;font-size:11px;font-weight:800}
.strength-finish-form input[type="number"],.strength-finish-form select,.strength-finish-form textarea{width:100%;min-height:44px;border:1px solid #cfd9e5;border-radius:10px;background:#fff;padding:9px 10px;font:inherit}
.strength-finish-form fieldset{grid-column:1/-1;border:0;padding:0;margin:0}.strength-finish-form legend{font-size:11px;font-weight:800;margin-bottom:7px}.strength-finish-form legend span{font-weight:500;color:var(--muted,#657187)}
.strength-radio-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.strength-radio-row label{position:relative}.strength-radio-row input{position:absolute;opacity:0}.strength-radio-row span{min-height:44px;display:grid;place-items:center;border:1px solid var(--border,#dde5ef);border-radius:10px;background:#fff;cursor:pointer;font-size:11px;font-weight:700}.strength-radio-row input:checked+span{border-color:var(--blue,#0b6bcb);background:var(--blue-soft,#eaf3ff);color:var(--blue,#0b6bcb)}
.strength-pain-toggle{grid-column:1/-1!important;display:flex!important;align-items:center;gap:8px!important;min-height:44px}.strength-pain-toggle input{width:19px;height:19px}
.strength-notes{grid-column:1/-1}.strength-notes span{font-weight:500;color:var(--muted,#657187)}.strength-notes textarea{min-height:82px!important;resize:vertical}
.strength-finish-actions{grid-column:1/-1;display:flex;justify-content:flex-end}.strength-finish-actions button{min-height:46px}

.strength-profile-list{display:grid;gap:8px;margin:17px 0}
.strength-profile-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(160px,.7fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid var(--border,#dde5ef);border-radius:13px}
.strength-profile-select{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}.strength-profile-select input{width:19px;height:19px}.strength-profile-select strong,.strength-profile-select small{display:block}.strength-profile-select small{margin-top:2px;color:var(--muted,#657187);font-size:9px;text-transform:capitalize}
.strength-profile-row>label:not(.strength-profile-select){display:grid;gap:4px;color:#53657b;font-size:9px;font-weight:800}.strength-profile-row select{height:44px;border:1px solid #cfd9e5;border-radius:10px;background:#fff;padding:7px 9px}.strength-profile-row button{min-height:44px}

.strength-development{display:grid;gap:12px}
.strength-development-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end}
.strength-development-head h2{margin:4px 0 5px;font-size:20px}.strength-development-head p{margin:0;color:var(--muted,#657187);font-size:12px;line-height:1.45;max-width:760px}.strength-development-head button{min-height:44px;display:inline-flex;align-items:center;gap:6px}.strength-development-head svg{width:16px;height:16px}
.strength-progression-list{display:grid;gap:12px}
.strength-progression-card{padding:17px}
.strength-progression-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.strength-progression-head h3{margin:4px 0;font-size:18px}.strength-progression-head p{margin:0;color:var(--muted,#657187);font-size:11px}
.strength-latest{text-align:right}.strength-latest strong{display:block;font-size:20px;font-variant-numeric:tabular-nums}.strength-latest span{display:block;margin-top:3px;color:var(--muted,#657187);font-size:10px}
.strength-progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.strength-progress-grid>div{padding:10px 11px;border-radius:11px;background:#f7f9fc}.strength-progress-grid span,.strength-progress-grid small{display:block;color:var(--muted,#657187);font-size:9px}.strength-progress-grid strong{display:block;margin:3px 0;font-size:16px;font-variant-numeric:tabular-nums}
.strength-sparkline{width:100%;height:68px;color:var(--blue,#0b6bcb);background:linear-gradient(180deg,rgba(11,107,203,.045),transparent);border-radius:10px;margin-bottom:8px}
.strength-progress-history{display:grid;gap:0;margin-bottom:12px}.strength-progress-history>div{display:grid;grid-template-columns:62px 1fr 80px 100px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f5;font-size:11px}.strength-progress-history time,.strength-progress-history span,.strength-progress-history small{color:var(--muted,#657187)}.strength-progress-history strong{font-variant-numeric:tabular-nums}
.strength-empty-progress{padding:22px;color:var(--muted,#657187);font-size:12px;line-height:1.5}

@media(max-width:760px){
  .strength-today-card{grid-template-columns:44px minmax(0,1fr);padding:15px;gap:12px}
  .strength-today-icon{width:44px;height:44px}
  .strength-today-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%}
  .strength-today-actions .primary-btn{grid-column:1/-1}
  .strength-today-actions .strength-manage-btn:last-child:nth-child(2){grid-column:1/-1}
  .strength-dialog-backdrop{padding:0;place-items:stretch}
  .strength-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:calc(16px + env(safe-area-inset-top,0px)) 12px calc(22px + env(safe-area-inset-bottom,0px))}
  .strength-editor-head h2{font-size:23px}
  .strength-set-form{grid-template-columns:1fr}
  .strength-set-form-head,.strength-rir-wrap,.strength-set-form-actions{grid-column:1}
  .strength-stepper{grid-template-columns:48px minmax(0,1fr) 48px}.strength-stepper button{width:48px;height:48px}.strength-stepper input{height:48px}
  .strength-rir span{min-height:48px}
  .strength-set-form-actions{display:grid;grid-template-columns:1fr 1fr}.strength-set-form-actions button:only-child{grid-column:1/-1}
  .strength-completion-row{align-items:flex-start;flex-direction:column}.strength-check{width:100%;justify-content:center}
  .strength-add-exercise{grid-template-columns:1fr}.strength-add-exercise button{width:100%}
  .strength-session-actions{display:grid;grid-template-columns:1fr}.strength-session-actions .primary-btn{grid-row:1}
  .strength-finish-form{grid-template-columns:1fr}.strength-finish-form fieldset,.strength-pain-toggle,.strength-notes,.strength-finish-actions{grid-column:1!important}.strength-radio-row{grid-template-columns:1fr}.strength-radio-row span{justify-items:start;padding-left:12px}
  .strength-finish-actions .primary-btn{width:100%}
  .strength-profile-row{grid-template-columns:1fr}.strength-profile-row button{width:100%}
  .strength-development-head{align-items:stretch;flex-direction:column}.strength-development-head button{width:100%;justify-content:center}
  .strength-progression-head{flex-direction:column}.strength-latest{text-align:left}
  .strength-progress-grid{grid-template-columns:1fr 1fr}.strength-progress-grid>div:last-child{grid-column:1/-1}
  .strength-progress-history>div{grid-template-columns:55px 1fr 64px}.strength-progress-history small{grid-column:2/-1}
}

@media(max-width:380px){
  .strength-today-actions{grid-template-columns:1fr}.strength-today-actions .primary-btn,.strength-today-actions .strength-manage-btn:last-child:nth-child(2){grid-column:1}
  .strength-rir>div{grid-template-columns:repeat(5,1fr);gap:4px}
  .strength-progress-grid{grid-template-columns:1fr}.strength-progress-grid>div:last-child{grid-column:auto}
}


/* Strength Exercise Guide V1 */
.strength-editor-head-actions,.strength-development-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.strength-editor-head-actions .quiet-btn,.strength-development-actions .quiet-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.strength-editor-head-actions .quiet-btn svg,.strength-development-actions .quiet-btn svg{width:16px;height:16px}

.strength-guide-intro{margin:14px 0 18px;padding:14px 15px;border:1px solid var(--border,#dde5ef);border-radius:14px;background:#f7f9fc}
.strength-guide-intro strong{display:block;font-size:13px}
.strength-guide-intro p{margin:5px 0 0;color:var(--muted,#657187);font-size:11px;line-height:1.5}

.strength-guide-section{display:grid;gap:11px;margin-top:19px}
.strength-guide-section-head h3,.strength-guide-evidence h3{margin:4px 0 0;font-size:17px}
.strength-guide-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.strength-guide-role-card{padding:13px;border:1px solid var(--border,#dde5ef);border-radius:14px;background:#fff}
.strength-guide-role-card h3{margin:4px 0 6px;font-size:15px}
.strength-guide-role-card>p{margin:0 0 10px;color:#42546b;font-size:11px;line-height:1.45}
.strength-guide-role-card dl,.strength-guide-dl{display:grid;gap:8px;margin:0}
.strength-guide-role-card dl>div,.strength-guide-dl>div{display:grid;gap:2px}
.strength-guide-role-card dt,.strength-guide-dl dt{color:#53657b;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.strength-guide-role-card dd,.strength-guide-dl dd{margin:0;color:#42546b;font-size:10px;line-height:1.45}

.strength-guide-area{display:grid;gap:8px;margin-top:5px}
.strength-guide-area>h4{margin:0;padding:2px 0;color:#334861;font-size:12px}
.strength-guide-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.strength-guide-category-card{padding:14px;border:1px solid var(--border,#dde5ef);border-radius:14px;background:#fff}
.strength-guide-category-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.strength-guide-category-head h4{margin:4px 0 0;font-size:15px}
.strength-guide-role-pill{flex:0 0 auto;padding:5px 7px;border-radius:999px;background:#eef4fb;color:#47617d;font-size:9px;font-weight:800;line-height:1.15;text-align:center;max-width:150px}
.strength-guide-category-card>p{margin:8px 0;color:#42546b;font-size:10.5px;line-height:1.48}
.strength-guide-exercises{color:#26394f!important}
.strength-guide-notes{margin:10px 0 0;padding:9px 10px 9px 25px;border-radius:10px;background:#f7f9fc;color:#42546b;font-size:10px;line-height:1.45}

.strength-guide-evidence{display:grid;gap:8px;margin-top:20px;padding:15px;border:1px solid #d8e3ef;border-radius:15px;background:#f7faff}
.strength-guide-evidence>p{margin:0;color:#40536a;font-size:11px;line-height:1.52}
.strength-guide-evidence .strength-guide-limitation{padding-top:8px;border-top:1px solid #e3eaf2}
.strength-guide-sources{display:grid;gap:6px;margin-top:3px}
.strength-guide-sources span{padding:7px 9px;border-radius:9px;background:#fff;color:#53657b;font-size:9.5px;line-height:1.4}

@media(max-width:760px){
  .strength-editor-head-actions{width:100%;justify-content:space-between}
  .strength-editor-head-actions .quiet-btn{flex:1}
  .strength-development-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .strength-development-actions button{width:100%}
  .strength-guide-role-grid,.strength-guide-category-grid{grid-template-columns:1fr}
  .strength-guide-category-head{align-items:flex-start;flex-direction:column}
  .strength-guide-role-pill{max-width:none}
}
