/* v0.5.4 unified session, full set editor, exercise library and bodyweight load. */
.wl-session-shell:has(.wl-session-start){grid-template-columns:minmax(0,1fr) 52px!important}.wl-session-shell:has(.wl-session-start) .wl-session-start{grid-column:auto!important;width:100%!important}.wl-session-shell:has(.wl-session-start) .wl-session-tools{width:52px!important}
.wl-set-condition-summary{display:block;grid-column:1/-1;color:#9faa9f;font-size:.62rem;line-height:1.4;margin-top:2px}.wl-set-actions{grid-column:1/-1;margin-left:0!important;justify-content:flex-end}.wl-set-actions button:first-child{color:#dfffaa;border-color:rgba(164,255,24,.3)}
.wl-set-editor-full{width:min(96vw,720px);max-height:94dvh;overflow:auto}.wl-set-editor-full form{padding:0!important;gap:0!important}.wl-set-editor-full form>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.1);background:#0b0f0df5;backdrop-filter:blur(14px)}.wl-set-editor-full form>header h2{margin:2px 0 0}.wl-set-editor-full form>header small{color:#9faa9f}.wl-set-editor-full form>header button{width:42px;min-height:42px!important;padding:0!important}.wl-set-editor-full details{margin:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:#101612;overflow:hidden}.wl-set-editor-full summary{padding:13px 14px;color:#eaffca;font-weight:850;cursor:pointer}.wl-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 12px 13px}.wl-editor-primary{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px}.wl-editor-grid label{display:grid;gap:5px;min-width:0;color:#aeb8b0;font-size:.7rem}.wl-editor-grid .wide{grid-column:1/-1}.wl-editor-grid input,.wl-editor-grid select,.wl-editor-grid textarea{width:100%;min-width:0;min-height:46px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:#080d0a;color:#fff;padding:0 10px;font:inherit}.wl-editor-grid textarea{padding:10px;resize:vertical}.wl-editor-check{display:flex!important;align-items:center;gap:8px;margin:0 12px 12px;color:#dbe5dc!important}.wl-editor-check input{width:22px!important;height:22px;min-height:0!important}.wl-editor-note{margin:0 12px 14px!important;color:#aab4ac!important;font-size:.66rem!important;line-height:1.55}.wl-set-editor-full footer{position:sticky;bottom:0;z-index:3;display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.1);background:#0b0f0df2;backdrop-filter:blur(14px)}.wl-set-editor-full footer [data-save]{background:#b8ff2c;color:#071008}
@media(max-width:520px){.wl-set-editor-full{width:100vw;height:100dvh;max-height:none;border-radius:0}.wl-editor-grid,.wl-editor-primary{grid-template-columns:1fr 1fr}.wl-editor-primary label:last-child{grid-column:1/-1}.wl-set-editor-full details{margin-inline:10px}.wl-set-editor-full form>header{padding-top:calc(12px + env(safe-area-inset-top))}}

/* v0.5.4: session transition and saved-session editing */
.wl-session-transition{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;background:rgba(4,7,6,.94);padding:24px;color:#f3f7f4}
.wl-session-transition>div{display:grid;justify-items:center;gap:10px;text-align:center}
.wl-session-transition strong{font-size:1.05rem}
.wl-session-transition small{color:#9aa89f}
.wl-session-transition-spinner{width:34px;height:34px;border:3px solid rgba(183,255,0,.22);border-top-color:#b7ff00;border-radius:50%;animation:wl-spin .75s linear infinite}
@keyframes wl-spin{to{transform:rotate(360deg)}}
.wl-history-edit-session{border:1px solid rgba(183,255,0,.5);background:rgba(183,255,0,.08);color:#dfff7d;border-radius:10px;padding:8px 10px;font-weight:700;font-size:.78rem}
.wl-history-set-dialog{width:min(720px,calc(100vw - 18px));max-height:min(88dvh,820px)}
.wl-history-set-list{display:grid;gap:10px;overflow:auto;padding:4px 2px 18px}
.wl-history-set-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:12px;background:#111614}
.wl-history-set-item>div:first-child{display:grid;gap:3px;min-width:0}
.wl-history-set-item small{color:#8e9b93;font-size:.68rem}.wl-history-set-item span{color:#dfe7e2;font-size:.84rem}.wl-history-set-item p{margin:2px 0 0;color:#9eaaa3;font-size:.76rem;line-height:1.4}
.wl-history-set-actions{display:grid;gap:7px}.wl-history-set-actions button{min-height:38px;border-radius:10px;padding:7px 9px;border:1px solid rgba(255,255,255,.13);background:#202823;color:#f3f7f4;font-size:.75rem;font-weight:700}.wl-history-set-actions button:last-child{color:#ffaaa4}
@media(max-width:520px){.wl-history-set-item{grid-template-columns:1fr}.wl-history-set-actions{grid-template-columns:1fr 1fr}.history-card-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}.wl-history-edit-session{margin-left:auto}}

/* v0.6.1 session semantics and mobile layout correction. */
.wl-session-start{display:grid!important;grid-template-columns:1fr!important;place-items:center!important;gap:1px!important;padding:5px 12px!important}
.wl-session-start strong{font-size:.82rem;line-height:1.15}
.wl-session-start small{font-size:.54rem;line-height:1.2;font-weight:750;opacity:.72}
.wl-session-notice{position:fixed;left:50%;bottom:calc(136px + env(safe-area-inset-bottom));z-index:2147483645;max-width:calc(100vw - 32px);padding:9px 13px;border:1px solid rgba(183,255,0,.45);border-radius:999px;background:rgba(10,15,12,.96);color:#efffd8;font-size:.7rem;font-weight:800;text-align:center;opacity:0;transform:translate(-50%,10px);transition:opacity .18s ease,transform .18s ease;pointer-events:none;box-shadow:0 12px 34px rgba(0,0,0,.45)}
.wl-session-notice.is-visible{opacity:1;transform:translate(-50%,0)}

/* Exercise action: never stretch with the exercise title card. */
.wl-ui-compact .record-heading.wl-heading-flow-fixed{padding-right:0!important;overflow:visible!important}
.wl-ui-compact .record-heading.wl-heading-flow-fixed .exercise-select-row{display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;align-items:center!important;gap:8px!important;min-width:0!important}
.wl-ui-compact .record-heading.wl-heading-flow-fixed .exercise-select-row>*{min-width:0!important}
.wl-ui-compact .exercise-manager-button.wl-exercise-inline-action,
.wl-ui-compact .exercise-manager-button.wl-manager-button-fixed.wl-exercise-inline-action{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;transform:none!important;
  align-self:center!important;justify-self:end!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;height:52px!important;min-height:52px!important;max-height:52px!important;
  padding:0 8px!important;margin:0!important;border-radius:14px!important;overflow:hidden!important;white-space:nowrap!important;line-height:1!important
}
.wl-exercise-inline-action>span{font-size:1.08rem!important;line-height:1!important}
.wl-exercise-inline-action>small{font-size:.64rem!important;line-height:1!important;margin:0!important}

/* Keep the normal four-item navigation during a session. The prior one-button compression broke labels and hit targets. */
@media(max-width:760px){
  .wl-session-active .mobile-nav{
    display:grid!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;transform:none!important;border-radius:0!important;padding:3px 6px calc(4px + env(safe-area-inset-bottom))!important
  }
  .wl-session-active .mobile-nav button,
  .wl-session-active .mobile-nav button:not(.active),
  .wl-session-active .mobile-nav button.active{
    display:flex!important;width:auto!important;min-width:0!important;max-width:none!important
  }
  .wl-session-active .record-sticky-action{bottom:calc(56px + env(safe-area-inset-bottom))!important}
  .wl-ui-compact .record-column{padding-bottom:calc(164px + env(safe-area-inset-bottom))!important}
}
@media(max-width:390px){
  .wl-ui-compact .record-heading.wl-heading-flow-fixed .exercise-select-row{grid-template-columns:minmax(0,1fr) 70px!important}
  .wl-ui-compact .exercise-manager-button.wl-exercise-inline-action,
  .wl-ui-compact .exercise-manager-button.wl-manager-button-fixed.wl-exercise-inline-action{width:70px!important;min-width:70px!important;max-width:70px!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding-inline:6px!important}
  .wl-exercise-inline-action>small{font-size:.6rem!important}
}
