/* Device-local body progress, scoped to its stable Training host. */
.training-body-progress{padding:18px;min-width:0;font-family:var(--font-primary);color:var(--text)}
.training-body-progress *,.training-body-progress input,.training-body-progress select,.training-body-progress button{font-family:inherit}
.training-body-progress [hidden]{display:none!important}
.training-body-progress h2,.training-body-progress h3{font-family:var(--font-primary);color:var(--ink);font-weight:900;letter-spacing:-.025em;line-height:1.2}
.training-body-progress .progress-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
.training-body-progress .progress-heading h2{font-size:clamp(1.1rem,4.8vw,1.4rem);min-width:0}
.training-body-progress .progress-heading .pill{flex:none;font-size:.62rem}
.training-body-progress .progress-heading .progress-local-status{max-width:96px;white-space:normal;line-height:1.25;text-align:center}
.training-body-progress .progress-entry{border:1px solid var(--line);border-radius:20px;background:var(--card);overflow:hidden}
.training-body-progress .progress-entry>summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 14px;color:var(--ink);font-size:.88rem;font-weight:800;cursor:pointer;list-style:none}
.training-body-progress .progress-entry>summary::-webkit-details-marker,.training-body-progress .progress-record>summary::-webkit-details-marker{display:none}
.training-body-progress .progress-add-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-size:1.3rem;font-weight:600}
.training-body-progress .progress-entry[open] .progress-add-icon{transform:rotate(45deg)}
.training-body-progress .progress-form{display:grid;gap:18px;padding:4px 14px 16px}
.training-body-progress label>span,.training-body-progress legend{font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:none;color:var(--muted)}
.training-body-progress input,.training-body-progress select{font-size:16px;min-height:46px;min-width:0;background:var(--field);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.training-body-progress input[type=date]{color-scheme:normal;width:100%;padding:0 10px}
.training-body-progress .progress-upload{padding:14px;border:1px dashed var(--line);border-radius:16px;background:var(--blue-soft)}
.training-body-progress .progress-upload input{height:auto;min-height:44px;padding:8px 0;border:0;background:transparent;max-width:100%;border-radius:0;font-size:.75rem}
.training-body-progress .progress-upload small{font-size:.7rem;line-height:1.5;color:var(--muted);font-weight:500}
.training-body-progress .progress-camera-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.training-body-progress .progress-camera-actions>:nth-child(3):last-child{grid-column:1/-1}
.training-body-progress .progress-camera-actions :is(button,label){display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:10px 12px;border-radius:16px;font-size:.8rem;font-weight:800;line-height:1.3;text-align:center;white-space:normal;cursor:pointer}
.training-body-progress .progress-camera-actions :is(svg,img){flex:none;width:20px;height:20px;object-fit:contain}
.training-body-progress .progress-camera-actions input[type=file]{display:none}
.training-body-progress .progress-camera-panel{display:grid;gap:12px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.training-body-progress .progress-camera-panel video{display:block;width:100%;max-width:420px;aspect-ratio:3/4;justify-self:center;object-fit:contain;border-radius:12px;background:var(--blue-soft)}
.training-body-progress .progress-camera-status{margin:0;font-size:.76rem;line-height:1.5;color:var(--muted)}
.training-body-progress .progress-camera-status:empty{display:none}
.training-body-progress .progress-camera-controls{display:flex;flex-wrap:wrap;gap:8px}
.training-body-progress .progress-camera-controls button{flex:1 1 100px;min-height:44px;min-width:0;white-space:normal;line-height:1.3}
.training-body-progress .progress-form button[type=submit]{min-height:46px;font-size:.82rem}
.training-body-progress .progress-feedback{font-size:.8rem;line-height:1.5;margin:12px 0;color:var(--text)}
.training-body-progress .progress-feedback:empty{display:none}
.training-body-progress .progress-history{display:grid;gap:26px;margin-top:24px}
.training-body-progress .progress-filter{padding:14px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--blue-soft) 28%,var(--card))}
.training-body-progress .progress-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.training-body-progress .progress-section-heading h3{font-size:1rem}
.training-body-progress .progress-section-heading button{min-height:44px}
.training-body-progress .progress-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.training-body-progress .progress-filter-status{margin-top:10px}
.training-body-progress .progress-filter-status:empty{display:none}
.training-body-progress .progress-timeline{position:relative;list-style:none;padding:0 0 0 20px;margin:0;display:grid;gap:16px}
.training-body-progress .progress-timeline:before{content:"";position:absolute;top:26px;bottom:26px;left:5px;width:2px;background:var(--line)}
.training-body-progress .progress-timeline>li{position:relative;min-width:0}
.training-body-progress .progress-timeline-node{position:absolute;top:24px;left:-19px;width:10px;height:10px;background:var(--blue);border:2px solid var(--card);border-radius:50%;box-shadow:0 0 0 2px var(--blue-soft)}
.training-body-progress .progress-record{border:1px solid var(--line);border-radius:18px;background:var(--card);overflow:hidden}
.training-body-progress .progress-record>summary{display:flex;align-items:center;gap:8px;min-height:72px;padding:12px;cursor:pointer;list-style:none;color:var(--ink)}
.training-body-progress .progress-record time{display:flex;align-items:center;gap:8px;flex:none}
.training-body-progress .progress-record time b{font-size:1.65rem;font-weight:900;line-height:1}
.training-body-progress .progress-record time span{max-width:65px;font-size:.7rem;color:var(--muted);line-height:1.3}
.training-body-progress .progress-record-count{margin-left:auto;color:var(--muted);font-size:.68rem;font-weight:700;text-align:right}
.training-body-progress .progress-record-chevron{font-size:1rem;color:var(--muted)}
.training-body-progress .progress-record[open] .progress-record-chevron{transform:rotate(180deg)}
.training-body-progress .progress-record-body{display:grid;gap:14px;padding:0 12px 14px}
.training-body-progress .progress-record-photos{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:4px}
.training-body-progress .progress-record-photos{scrollbar-color:var(--blue) var(--blue-soft)}
.training-body-progress .progress-record-photos::-webkit-scrollbar{height:5px}
.training-body-progress .progress-record-photos::-webkit-scrollbar-track{background:var(--blue-soft);border-radius:999px}
.training-body-progress .progress-record-photos::-webkit-scrollbar-thumb{background:var(--blue);border-radius:999px}
.training-body-progress .progress-record-photos figure{flex:0 0 82%;scroll-snap-align:start;min-width:0}
.training-body-progress .progress-record-photos figure:only-child{flex-basis:100%}
.training-body-progress .progress-record-photos figure,.training-body-progress .progress-photo-draft figure{margin:0}
.training-body-progress .progress-record-photos img,.training-body-progress .progress-photo-draft img{display:block;width:100%;height:auto;max-height:330px;object-fit:contain;border-radius:12px;background:var(--blue-soft)}
.training-body-progress .progress-record-photos figcaption,.training-body-progress .progress-photo-draft figcaption{display:flex;align-items:center;justify-content:space-between;min-height:26px;color:var(--muted);font-size:.67rem}
.training-body-progress .progress-photo-draft{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.training-body-progress .progress-photo-draft:empty{display:none}
.training-body-progress .progress-photo-draft img{aspect-ratio:3/4;object-fit:contain}
.training-body-progress .progress-remove-photo{min-width:44px;min-height:44px;border:0;border-radius:50%;background:var(--blue-soft);color:var(--ink);font-size:1.2rem}
.training-body-progress .progress-outline{display:grid;gap:16px;min-width:0;padding-top:22px;border-top:1px solid var(--line)}
.training-body-progress .progress-outline:empty{display:none}
.training-body-progress .progress-compare-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.training-body-progress .progress-compare-selects label{min-width:0;gap:6px}
.training-body-progress .progress-compare-selects select{max-width:100%;padding-right:28px;text-overflow:ellipsis}
.training-body-progress .body-outline-tool{display:grid;gap:16px;min-width:0}
.training-body-progress .outline-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.training-body-progress .outline-card{display:grid;gap:10px;min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.training-body-progress .outline-card h4{margin:0;font-family:inherit;font-size:.82rem;font-weight:800;line-height:1.4;color:var(--ink)}
.training-body-progress .outline-stage{position:relative;isolation:isolate;aspect-ratio:3/4;width:100%;max-width:420px;min-width:0;overflow:hidden;justify-self:center;border:1px solid var(--line);border-radius:12px;background:var(--blue-soft)}
.training-body-progress .outline-stage>img{position:absolute;top:0;left:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0;user-select:none;-webkit-user-drag:none}
.training-body-progress .outline-svg{position:absolute;top:0;left:0;display:block;width:100%;height:100%;overflow:hidden;z-index:1;user-select:none}
.training-body-progress .outline-svg :is(path,polyline,line){vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.training-body-progress .outline-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.training-body-progress .outline-toolbar button{flex:1 1 100px;min-width:0;min-height:44px;white-space:normal;font-size:.76rem;font-weight:800;line-height:1.3}
.training-body-progress .outline-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.training-body-progress .outline-adjustments{display:grid;gap:14px;padding:14px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--blue-soft) 25%,var(--card))}
.training-body-progress .outline-adjustments label{display:grid;gap:6px;min-width:0}
.training-body-progress .outline-adjustments label>span{display:flex;align-items:center;justify-content:space-between;gap:8px}
.training-body-progress .outline-adjustments input[type=range]{display:block;width:100%;min-height:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:var(--blue);cursor:pointer}
.training-body-progress .outline-adjustments output{font-size:.72rem;color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.training-body-progress .outline-status,.training-body-progress .outline-help{margin:0;color:var(--muted);font-size:.76rem;line-height:1.6}
.training-body-progress .outline-status:empty{display:none}
.training-body-progress .outline-stage:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.training-body-progress :is(summary,button,input,select):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(min-width:760px){
.training-body-progress .progress-record-photos figure{flex-basis:31%}
.training-body-progress .progress-record-photos figure:only-child{flex-basis:40%}
.training-body-progress .outline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.training-body-progress .outline-adjustments{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:599px){
.training-body-progress .progress-compare-selects{grid-template-columns:1fr}
}
@media(max-width:359px){
.training-body-progress .progress-periods,.training-body-progress .progress-compare-selects{grid-template-columns:1fr}
.training-body-progress .progress-record time span{max-width:54px}
.training-body-progress .progress-record-count{font-size:.62rem}
.training-body-progress .progress-camera-actions{gap:8px}
.training-body-progress .progress-camera-actions :is(button,label){padding:10px 8px;font-size:.75rem}
.training-body-progress .outline-card{padding:10px}
.training-body-progress .outline-toolbar button{flex-basis:90px}
}
.training-body-progress .progress-disclosure{min-width:0;margin:14px 0 0;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow-soft)}
.training-body-progress .progress-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:58px;padding:12px 14px;list-style:none;color:var(--ink);font-size:.88rem;font-weight:900;cursor:pointer}
.training-body-progress .progress-disclosure>summary::-webkit-details-marker{display:none}
.training-body-progress .progress-disclosure>summary>span:first-child{flex:1;min-width:0}
.training-body-progress .progress-disclosure>summary:after{content:"+";display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue-deep);font-size:1.15rem;font-weight:600;line-height:1}
.training-body-progress .progress-disclosure[open]>summary:after{content:"−"}
.training-body-progress .progress-history{display:block}
.training-body-progress .progress-history-count{display:grid;place-items:center;min-width:24px;height:24px;color:var(--muted);font-size:.7rem;font-weight:700;font-variant-numeric:tabular-nums}
.training-body-progress .progress-history-body{display:grid;gap:14px;padding:0 12px 14px}
.training-body-progress .progress-filter{padding:0;border:0;background:transparent;border-radius:0}
.training-body-progress .progress-filter>summary{display:flex;align-items:center;gap:8px;width:max-content;min-height:44px;list-style:none;color:var(--muted);font-size:.75rem;font-weight:700;cursor:pointer}
.training-body-progress .progress-filter>summary::-webkit-details-marker{display:none}
.training-body-progress .progress-filter>summary:before{content:"";display:block;width:16px;height:16px;background:currentColor;clip-path:polygon(0 0,100% 0,62% 45%,62% 85%,38% 100%,38% 45%)}
.training-body-progress .progress-filter-body{display:grid;gap:8px;margin:0 0 6px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--blue-soft)}
.training-body-progress .progress-filter-body>[data-progress-clear]{justify-self:end;min-height:44px}
.training-body-progress .progress-filter-status{margin:0}
.training-body-progress .progress-comparison-disclosure{margin:0;box-shadow:none;border-radius:16px}
.training-body-progress .progress-photo-comparison{padding:0 12px 14px}
.training-body-progress .progress-record-cover{display:grid;place-items:center;flex:none;width:44px;height:56px;overflow:hidden;border-radius:9px;background:var(--blue-soft);color:var(--blue);font-size:1.1rem}
.training-body-progress .progress-record-cover>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.training-body-progress .progress-record>summary{gap:10px;min-height:80px;padding:10px}
.training-body-progress .progress-record time b{font-size:1.4rem}
.training-body-progress .progress-record-count{font-size:.62rem}
.training-body-progress .progress-record-body{padding:0 10px 10px}
.training-body-progress .progress-record-photos img{width:100%;height:clamp(220px,65vw,330px);max-height:none;object-fit:contain}
.training-body-progress .progress-record-photos figcaption{display:none}
.training-body-progress .progress-record,.training-body-progress .progress-disclosure,.training-body-progress .progress-filter{animation:none;transition:none}
.training-body-progress .outline-options{margin:0;box-shadow:none;border-radius:16px}
.training-body-progress .outline-options-body{display:grid;gap:14px;padding:0 12px 14px}
.training-body-progress .outline-options-body .outline-align-help{margin:0;font-size:.72rem;color:var(--muted)}
.training-body-progress .progress-outline{border-top:0;padding-top:14px}
.training-body-progress .progress-reel{display:grid;gap:12px;min-width:0;margin-top:16px}
.training-body-progress .progress-reel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.training-body-progress .progress-reel-actions button{flex:1 1 120px;min-width:0;min-height:44px;padding:10px 14px;font-size:.8rem;font-weight:800;line-height:1.3;white-space:normal}
.training-body-progress .progress-reel-actions button:disabled{opacity:.5;cursor:not-allowed}
.training-body-progress .progress-reel-status{margin:0;color:var(--muted);font-size:.76rem;line-height:1.5;font-variant-numeric:tabular-nums}
.training-body-progress .progress-reel-status:empty{display:none}
.training-body-progress .progress-media-draft{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.training-body-progress .progress-media-draft:empty{display:none}
.training-body-progress .progress-media-draft figure{min-width:0;margin:0}
.training-body-progress .progress-media-draft video{display:block;width:100%;aspect-ratio:3/4;height:auto;max-height:360px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:var(--blue-soft)}
.training-body-progress .progress-media-draft figure:has(video){grid-column:1/-1}
.training-body-progress .progress-media-draft figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:.72rem;line-height:1.4}
.training-body-progress .progress-record-photos video{display:block;width:100%;height:clamp(220px,65vw,330px);max-height:none;object-fit:contain;border-radius:12px;background:var(--blue-soft)}
.training-body-progress :is(.progress-media-draft video,.progress-record-photos video):focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.training-body-progress .progress-local-status{min-width:78px;min-height:34px;justify-content:center;text-align:center}
.training-body-progress .progress-camera-actions button:disabled{opacity:.5;cursor:wait}
.training-body-progress .progress-section{margin:0;border:0;min-width:0}
.training-body-progress .progress-heading{display:flex;align-items:center;gap:12px;min-height:74px;margin:0;padding:16px;list-style:none;cursor:pointer;color:var(--ink);font-family:var(--font-primary);font-size:1.05rem;font-weight:900}
.training-body-progress .progress-heading{padding-right:72px}
.training-body-progress .progress-heading h2{flex:1;min-width:0;margin:0;font-size:1.05rem;line-height:1.25}
.training-body-progress .progress-heading::-webkit-details-marker{display:none}
.training-body-progress .progress-heading:after{content:"⌄";flex:none;margin-left:auto;color:var(--muted);font-size:1.1rem;line-height:1}
.training-body-progress .progress-section[open] > .progress-heading:after{transform:rotate(180deg)}
.training-body-progress .progress-add-entry{position:absolute;top:15px;right:14px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--blue-soft);color:var(--blue-deep,var(--blue));font-size:1.5rem;font-weight:600;line-height:1;box-shadow:none}
.training-body-progress .progress-add-entry[aria-expanded="true"] span{transform:rotate(45deg)}
.training-body-progress .progress-section-body{padding:0 16px 16px}
.training-body-progress .progress-entry{margin:0 0 12px;border-radius:16px}
.training-body-progress .progress-entry:not([open]){display:none}
.training-body-progress .progress-entry > summary{display:none!important}
.training-body-progress .progress-form{max-width:600px;margin-inline:auto;padding-top:14px}
.training-body-progress .progress-history{margin-top:0;box-shadow:none}
.training-body-progress .progress-sr-only{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.training-body-progress .progress-heading:focus-visible,.training-body-progress .progress-add-entry:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;border-radius:20px}
.training-body-progress .progress-history-body{padding:0;gap:16px}
.training-body-progress .progress-filter-body{margin:0;background:var(--field);padding:12px;grid-template-columns:minmax(0,1fr) auto;align-items:end}
.training-body-progress .progress-periods label{display:grid;gap:6px;min-width:0}
.training-body-progress .progress-timeline{padding:0;gap:12px}
.training-body-progress .progress-timeline:before{left:85px;top:30px;bottom:30px}
.training-body-progress .progress-timeline>li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:32px;align-items:start}
.training-body-progress .progress-timeline-node{left:81px;top:29px}
.training-body-progress .progress-day-date{display:grid;gap:4px;padding-top:14px;text-align:right;font-variant-numeric:tabular-nums}
.training-body-progress .progress-day-date b{font-size:1.5rem;font-weight:900;line-height:1;color:var(--ink)}
.training-body-progress .progress-day-date span{font-size:.68rem;line-height:1.4;color:var(--muted)}
.training-body-progress .progress-record>summary{min-height:78px}
.training-body-progress .progress-record-count{margin-left:0;margin-right:auto;text-align:left;font-size:.75rem;line-height:1.4}
.training-body-progress .progress-day-actions{display:flex;flex-wrap:wrap;gap:8px}
.training-body-progress .progress-day-actions button{flex:1 1 120px;min-width:0;min-height:44px;font-size:.75rem;white-space:normal}
.training-body-progress .progress-more-days{display:block;margin:16px auto 0;min-height:44px;font-size:.8rem;white-space:normal}
.training-body-progress .progress-record-body>.progress-entry{margin:0}
.training-body-progress .progress-record-body .progress-form{padding:12px 10px}
@media(max-width:420px){
.training-body-progress .progress-filter-body{grid-template-columns:1fr}
.training-body-progress .progress-filter-body>[data-progress-clear]{padding:6px 12px}
.training-body-progress .progress-timeline>li{grid-template-columns:52px minmax(0,1fr);gap:22px}
.training-body-progress .progress-timeline:before{left:62px}
.training-body-progress .progress-timeline-node{left:58px}
.training-body-progress .progress-day-date span{font-size:.62rem}
.training-body-progress .progress-record>summary{padding:8px;gap:8px}
.training-body-progress .progress-record-cover{width:34px;height:46px}
}

.training-body-progress{position:relative;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--card);box-shadow:none;margin:0;min-width:0}
.training-body-progress .progress-device-scope{flex:none;color:var(--muted);font-size:12px;line-height:1.3;font-weight:500;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.training-body-progress *{animation:none!important;transition:none!important}}

/* Training-history presentation reuses the original IDB media component and editor. */
.training-body-progress.training-history-mode .progress-timeline{gap:18px;padding:0}
.training-body-progress.training-history-mode .progress-timeline:before{display:none}
.training-body-progress.training-history-mode .progress-timeline>li{display:block;padding:0;min-width:0}
.training-history-mode .progress-history-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 0 6px}
.training-history-mode .progress-history-day-heading>.progress-day-date{display:flex;align-items:baseline;gap:9px;padding:0;text-align:left}
.training-history-mode .progress-day-date b{font-size:1.1rem;line-height:1.3}
.training-history-mode .progress-day-date span{font-size:.72rem}
.training-body-progress.training-history-mode .progress-history-day-add{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--field);color:var(--blue);font-size:1.5rem;box-shadow:none}
.training-history-mode .progress-history-day-card{overflow:hidden;min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--field)}
.training-history-mode .progress-history-day-card.is-empty{border:0;background:none}
.training-history-mode .progress-history-day-card.is-empty .progress-record-body:not(:has(.progress-entry[open])){display:none}
.training-body-progress.training-history-mode .progress-record-photos{display:flex;gap:8px;padding:0;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory}
.training-history-mode .progress-record-photos:empty{display:none}
.training-body-progress.training-history-mode .progress-record-photos figure{flex:0 0 88%;scroll-snap-align:start;min-width:0;margin:0}
.training-body-progress.training-history-mode .progress-record-photos figure:only-child{flex-basis:100%}
.training-body-progress.training-history-mode .progress-record-photos :is(img,video){display:block;width:100%;height:clamp(210px,64vw,330px);max-height:330px;object-fit:contain;border:0;border-radius:14px;background:var(--blue-soft)}
.training-history-mode .progress-photo-empty{margin:0}
.training-body-progress.training-history-mode .progress-record-body{gap:0;padding:0 12px}
.training-history-mode .progress-day-training{min-width:0;border-top:1px solid var(--line)}
.training-history-mode .progress-day-training>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;list-style:none;cursor:pointer;font-size:.78rem;font-weight:650;color:var(--ink)}
.training-history-mode .progress-day-training>summary::-webkit-details-marker{display:none}
.training-history-mode .progress-day-training>summary:after{content:'+';font-size:1.1rem;color:var(--muted)}
.training-history-mode .progress-day-training[open]>summary:after{content:'−'}
.training-history-mode .progress-day-training-body{padding:0 0 12px;min-width:0}
.training-history-mode .progress-training-status:empty,.training-history-mode .progress-filter-status:empty{display:none}
.training-history-mode .progress-training-status{margin:0;font-size:.73rem;line-height:1.4;color:var(--muted)}
.training-history-mode .progress-entry{margin:10px 0}
.training-body-progress.training-history-mode .progress-entry>.progress-form{padding:12px 0}
.training-body-progress.training-history-mode .progress-heading h2{font-size:1.05rem}
.training-body-progress.training-history-mode .progress-reel{margin-top:12px}
@media(min-width:760px){.training-body-progress.training-history-mode .progress-record-photos figure{flex-basis:44%}.training-body-progress.training-history-mode .progress-record-photos figure:only-child{flex-basis:100%}}

/* Saved-photo actions and the seven-day entry window reuse the original media editor. */
.training-body-progress .progress-heading{padding-right:16px}
.training-history-mode .progress-history-day-heading{flex-direction:column;align-items:flex-start;gap:7px;padding-bottom:10px}
.training-history-mode .progress-history-day-heading>.progress-day-date{min-height:26px}
.training-body-progress.training-history-mode .progress-history-day-add{width:44px;border-radius:12px;background:var(--blue-soft);border-color:var(--line)}
.training-body-progress .progress-record-photos figure{position:relative}
.training-body-progress .progress-remove-saved-photo{position:absolute;top:8px;right:8px;z-index:1;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--ink);box-shadow:none}
.training-body-progress .progress-remove-saved-photo>svg{width:18px;height:18px;pointer-events:none}
.training-body-progress .progress-photo-removal{position:absolute;left:8px;right:8px;bottom:8px;z-index:2;display:grid;gap:8px;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);box-shadow:0 5px 18px color-mix(in srgb,var(--ink) 12%,transparent)}
.training-body-progress .progress-photo-removal>strong{font-size:.79rem;line-height:1.35}
.training-body-progress .progress-photo-removal>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.training-body-progress .progress-photo-removal button{min-height:44px;min-width:0;margin:0;padding:8px;font-size:.76rem;white-space:normal}
.training-body-progress .progress-photo-removal p{margin:0;font-size:.72rem;line-height:1.4;color:var(--muted)}
.training-body-progress .progress-photo-removal p:empty{display:none}
.training-body-progress .progress-remove-saved-photo:focus-visible,.training-body-progress .progress-history-day-add:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* Dated disclosures keep one stable row and a visible timeline spine. */
.training-body-progress.training-history-mode .progress-timeline{position:relative;gap:12px}
.training-body-progress.training-history-mode .progress-timeline:before{display:block;position:absolute;left:7px;top:26px;bottom:26px;width:1px;background:var(--line);content:''}
.training-body-progress.training-history-mode .progress-timeline>li{position:relative;display:block;padding-left:24px}
.training-body-progress.training-history-mode .progress-timeline-node{position:absolute;left:3px;top:26px;width:9px;height:9px;min-width:0;border:1px solid var(--line);border-radius:50%;background:var(--card);z-index:1}
.training-body-progress.training-history-mode li.has-record>.progress-timeline-node{border-color:var(--blue);background:var(--blue)}
.training-history-mode .progress-date{min-width:0;border:0;background:none}
.training-history-mode .progress-date-summary{display:flex;align-items:center;gap:9px;min-height:70px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:var(--field);list-style:none;cursor:pointer}
.training-history-mode .progress-date-summary::-webkit-details-marker{display:none}
.training-history-mode .progress-date-summary>.progress-day-date{display:grid;flex:1;min-width:0;gap:3px;padding:0;text-align:left}
.training-history-mode .progress-date-summary .progress-day-date b{font-size:1rem;line-height:1.25}
.training-history-mode .progress-date-summary .progress-day-date span{font-size:.68rem;line-height:1.4}
.training-history-mode .progress-date-cover{display:block;flex:0 0 38px;width:38px;height:46px;overflow:hidden;border-radius:9px;background:var(--blue-soft)}
.training-history-mode .progress-date-cover img{display:block;width:100%;height:100%;object-fit:cover}
.training-history-mode .progress-date-count{flex:none;font-size:.7rem;color:var(--muted);font-variant-numeric:tabular-nums}
.training-history-mode .progress-date-cover[hidden],.training-history-mode .progress-date-count[hidden]{display:none!important}
.training-history-mode .progress-date-chevron{flex:none;color:var(--muted);font-size:1rem}
.training-history-mode .progress-date[open]>.progress-date-summary .progress-date-chevron{transform:rotate(180deg)}
.training-history-mode .progress-date-body{display:grid;gap:10px;padding-top:10px;min-width:0}
.training-history-mode .progress-date-summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.training-body-progress .progress-remove-saved-photo{border:0;background:transparent}
.training-body-progress .progress-remove-saved-photo:before{content:'';position:absolute;inset:10px;border:1px solid var(--line);border-radius:50%;background:var(--card);pointer-events:none}
.training-body-progress .progress-remove-saved-photo>span{position:relative;z-index:1;display:block;font-size:19px;line-height:1;color:var(--ink);pointer-events:none}
.training-history-mode .progress-section-body>.progress-reel{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}

/* One selected date, shared by the Diary and Evolution calendar. */
.training-body-progress .progress-device-notice{margin:0;padding:0 16px 14px;color:var(--muted);font-size:12px;line-height:1.45}
.training-body-progress .progress-local-status{display:block;min-height:0;padding:0 16px 6px;text-align:left;color:var(--muted);font-size:12px;line-height:1.4}
.training-body-progress .progress-draft-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.training-body-progress .progress-draft-actions[hidden]{display:none!important}
.training-body-progress .progress-draft-actions button{min-height:44px}
.training-body-progress.progress-selected-date-mode .progress-timeline:before,
.training-body-progress.progress-selected-date-mode .progress-timeline-node{display:none}
.training-body-progress.progress-selected-date-mode .progress-timeline>li{padding-left:0}
.training-body-progress.progress-selected-date-mode .progress-date-summary{border:0;background:none;min-height:36px;padding:0}
.training-body-progress.progress-selected-date-mode .progress-date-summary .progress-date-chevron{display:none}
.training-body-progress.progress-selected-date-mode .progress-date-body{padding-top:4px}
.training-body-progress.progress-selected-date-mode .progress-heading{min-height:54px;padding:12px 16px}
.training-body-progress.progress-selected-date-mode .progress-heading h2{font-size:.9rem}
.training-body-progress.progress-selected-date-mode .progress-entry-date{display:none}
.training-body-progress.progress-selected-date-mode .progress-record-body>.progress-entry:has(.progress-media-draft:not(:empty)) .progress-entry-date{display:grid}
.training-body-progress.progress-selected-date-mode .progress-record-body>.progress-entry{margin:10px 0}
.training-body-progress.progress-selected-date-mode .progress-section-body>.progress-entry .progress-entry-date{display:grid}
.training-body-progress.progress-selected-date-mode .progress-reel:empty{display:none}

/* Photo dates remain directly accessible without a second calendar in Evolution. */
#trainingHistoryMediaMount{padding:0}
#trainingHistoryMediaMount .progress-section{margin:0}
#trainingHistoryMediaMount .progress-heading{min-height:64px;margin:0}
#trainingHistoryMediaMount .progress-heading h2{font-size:1.05rem}
.training-body-progress .progress-selected-date{display:grid;grid-template-columns:1fr minmax(145px,1fr);align-items:center;gap:12px;margin-bottom:14px}
.training-body-progress .progress-selected-date>span{font-size:.8125rem;font-weight:500}
.training-body-progress .progress-saved-dates{margin:0 0 16px;border-bottom:1px solid var(--line);padding-bottom:8px}
.training-body-progress .progress-saved-dates>summary{min-height:44px;align-content:center;font-size:.8125rem;color:var(--blue);cursor:pointer}
.training-body-progress [data-progress-saved-dates]{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.training-body-progress [data-progress-saved-date]{min-height:44px;font-size:.8125rem}
.training-body-progress [data-progress-saved-date] small{color:var(--muted);margin-left:6px}
#trainingHistoryMediaMount .progress-device-notice{padding-top:10px}
#trainingHistoryMediaMount .progress-date-summary:focus-visible{outline:2px solid var(--blue)}

/* Video shares the existing inline editor; keep three actions compact on phones. */
.progress-camera-actions [data-progress-video],.progress-day-actions [data-day-video]{grid-column:1/-1}
