.history-page-head{flex-wrap:wrap}
.history-page-head .managed-actions{flex-shrink:1!important}
.history-session-list{display:grid;gap:12px}
.history-session-row{width:100%;padding:22px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(115px,.6fr) minmax(155px,.8fr) auto;align-items:center;gap:24px;text-align:left;color:var(--text);cursor:pointer}
.history-session-row:hover{border-color:var(--acid);background:rgba(244,47,58,.04)}
.history-session-name,.history-session-count,.history-session-state{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.history-session-name strong{font:700 1.2rem/1.4 var(--display)}
.history-session-name small,.history-session-count small,.history-session-state small{font-size:.875rem;line-height:1.5;color:var(--muted)}
.history-session-name strong,.history-session-name small{overflow-wrap:anywhere}
.history-session-count strong{font:700 1.5rem/1.3 var(--display);font-variant-numeric:tabular-nums}
.history-session-state .managed-badge{align-self:flex-start}
.history-open{font-size:.875rem;color:var(--acid);line-height:1.5}
#workoutHistory .managed-badge{font-size:.875rem}
#workoutHistory progress{appearance:none;width:100%;height:5px;border:0;border-radius:10px;background:var(--line);overflow:hidden;accent-color:var(--acid)}
#workoutHistory progress::-webkit-progress-bar{background:var(--line)}
#workoutHistory progress::-webkit-progress-value{background:var(--acid);border-radius:10px}
#workoutHistory progress::-moz-progress-bar{background:var(--acid);border-radius:10px}
.history-session-overview{padding:28px}
.history-session-title,.history-exercise-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.history-session-title small{font-size:.875rem;color:var(--muted);line-height:1.6}
.history-session-title h2{font:700 1.75rem/1.3 var(--display);margin:8px 0 0}
.history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:30px 0}
.history-stats>div{display:flex;flex-direction:column;gap:10px}
.history-stats strong{font:700 2rem/1.2 var(--display);font-variant-numeric:tabular-nums}
.history-stats span{font-size:.875rem;line-height:1.5;color:var(--muted)}
.history-note{font-size:.875rem;line-height:1.65;color:var(--muted);margin:18px 0}
.history-session-overview .history-note{margin-bottom:0}
.history-completeness{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:24px;font-size:.875rem;line-height:1.5}
.history-exercises{display:grid;gap:16px;margin-top:24px}
.history-exercise{padding:24px;min-width:0}
.history-exercise-head small{color:var(--acid);font-size:.75rem;letter-spacing:.07em}
.history-exercise-head h3{font:700 1.2rem/1.4 var(--display);margin:6px 0;overflow-wrap:anywhere}
.history-exercise-head p,.history-exercise-note{font-size:.875rem;line-height:1.6;color:var(--muted);margin:8px 0}
.history-exercise-head .managed-badge{align-self:flex-start}
.history-table-wrap{overflow-x:auto;margin-top:18px}
.history-set-table{border-collapse:collapse;width:100%;min-width:450px;font-size:1rem;line-height:1.5;font-variant-numeric:tabular-nums}
.history-set-table th,.history-set-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line)}
.history-set-table thead th{font-size:.875rem;color:var(--muted);font-weight:500}
.history-set-table tbody th{font-weight:500}
.history-set-table td:last-child{font-size:.875rem}
.history-set-table td small{color:var(--muted);font-size:.875rem;margin-left:10px;white-space:nowrap}
.history-set-table tr:last-child th,.history-set-table tr:last-child td{border-bottom:0}
.history-unrecorded{color:var(--muted)}
.history-exercises .training-block{min-width:0;margin:0}
.history-exercises .training-block-items{display:grid;gap:12px}
.history-exercises .training-block .history-exercise{border-radius:12px}
#builderHistory{display:inline-flex}
@media(max-width:1050px){.history-session-row{grid-template-columns:minmax(0,1fr) minmax(130px,.6fr);gap:18px}.history-session-state{gap:6px}.history-open{align-self:end;justify-self:end}.directory-client-actions{margin-left:56px}}
@media(max-width:600px){.history-session-overview,.history-exercise{padding:18px}.history-session-row{padding:18px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(95px,.55fr)}.history-stats{grid-template-columns:1fr 1fr;gap:22px 16px}.history-stats strong{font-size:1.65rem}.history-stats>div:last-child{grid-column:1/-1}.history-page-head .managed-actions{width:100%}.history-page-head .ghost-btn{display:inline-flex}.history-exercise-head .managed-badge{align-self:flex-start}}
