.analysis-badges{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}
.analysis-badge{font-size:8px;font-weight:550;color:#5a7163;background:#ffffff8c;border:1px solid #65897022;border-radius:4px;padding:3px 5px;line-height:1.5}
.intensity-recovery,.intensity-base{color:#45744d;background:#edf5e8}
.intensity-tempo{color:#9a7628;background:#faf2d8}
.intensity-threshold{color:#aa6b38;background:#fcEBDd}
.intensity-vo2max,.intensity-anaerobic,.intensity-speed{color:#a3555b;background:#f9e6e8}
.intensity-unknown{color:#89948d;background:#f2f4f1}
.training-profile svg{display:block;width:100%;height:126px;overflow:visible;border-bottom:1px solid #dce5dc;margin-top:20px}
.training-profile rect{fill:#7fa88b}
.training-profile .phase-warmup,.profile-legend .phase-warmup{fill:#a9c49b;background:#a9c49b}
.training-profile .phase-interval,.training-profile .phase-active,.profile-legend .phase-interval{fill:#548770;background:#548770}
.training-profile .phase-recovery,.training-profile .phase-rest,.profile-legend .phase-recovery{fill:#b7d6d2;background:#b7d6d2}
.training-profile .phase-cooldown,.profile-legend .phase-cooldown{fill:#b1c1de;background:#b1c1de}
.training-profile .phase-unknown,.profile-legend .phase-unknown{fill:#a2ada6;background:#a2ada6}
.training-profile.compact{margin:9px 0 2px}
.training-profile.compact svg{height:35px;margin:0;border:0;opacity:.85}
.profile-axis{display:flex;justify-content:space-between;font-size:9px;color:#8d9c90;margin-top:6px}
.profile-caption,.profile-empty{font-size:10px;line-height:1.8;color:#8b998e;margin:10px 0}
.profile-legend{display:flex;gap:9px;flex-wrap:wrap;font-size:9px;color:#819083;margin:12px 0}
.profile-legend span{display:flex;align-items:center;gap:4px}
.profile-legend i{display:block;width:7px;height:7px;border-radius:2px}
.analysis-section{border-top:1px solid var(--border);padding-top:16px;margin-top:18px}
.analysis-section h3{font-family:Manrope,system-ui;font-size:14px;font-weight:650;margin:0 0 12px}
.analysis-section .analysis-badge{font-size:11px;padding:5px 8px}
.analysis-explanation{font-size:11px;line-height:1.8;color:#7e8e82}
.analysis-explanation strong{font-weight:550;color:#5f7566}
.analysis-warning{padding:8px 10px;background:#faf4e6;border-radius:5px;color:#99845f}
.segment-details{font-size:11px;margin-top:17px;color:#6c8172}
.segment-details summary{cursor:pointer;padding:8px 0}
.segment-table-wrap{overflow-x:auto}
.segment-details table{width:100%;border-collapse:collapse;white-space:nowrap;margin-top:8px;font-size:10px}
.segment-details th,.segment-details td{padding:9px 7px;text-align:left;border-bottom:1px solid var(--border);font-weight:400}
.segment-details th{font-weight:550;color:#8b9c8d}
#detail-dialog{width:640px;max-height:90vh;overflow-y:auto}
.profile-plot{position:relative}
.training-profile .profile-hitbox{fill:transparent;cursor:pointer}
.training-profile [data-profile-index]{outline:none;cursor:pointer}
.training-profile [data-profile-index].is-selected>rect:first-child,.training-profile [data-profile-index]:focus-visible>rect:first-child{stroke:#183f2d;stroke-width:2;filter:brightness(1.08)}
.profile-tooltip{position:absolute;bottom:calc(100% + 5px);width:258px;max-width:100%;background:#223c2e;color:#fff;border-radius:9px;padding:12px 14px;box-shadow:0 5px 22px #15342533;z-index:2;pointer-events:none;font-size:12px;line-height:1.7}
.profile-tooltip>strong{font-size:13px;font-weight:600}.profile-tooltip dl{margin:7px 0 0}.profile-tooltip dl>div{display:flex;justify-content:space-between;gap:12px}.profile-tooltip dt{color:#c9daca}.profile-tooltip dd{margin:0;font-weight:550}
.profile-inspector{background:#f5f8f3;border:1px solid #e1e9dc;border-radius:9px;margin:12px 0;padding:11px 13px}
.profile-step-controls{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#486652;font-size:12px;font-weight:550}
.profile-step-controls button{background:white;border:1px solid #dbe6d5;border-radius:6px;min-width:38px;min-height:38px;color:#496c55;font-size:23px}
.profile-step-controls span{text-align:center;line-height:1.5}
.profile-inspector-hint{color:#6e806c;font-size:12px;line-height:1.8;margin:10px 0 2px}
.profile-metrics{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;margin:14px 0 3px}
.profile-metrics span{display:block;font-size:11px;color:#6c806b}.profile-metrics strong{display:block;font-size:15px;color:#365840;font-weight:550;margin-top:4px;overflow-wrap:anywhere}
@media(max-width:800px){.profile-step-controls{font-size:13px}.profile-step-controls button{min-width:44px;min-height:44px}.profile-inspector-hint{font-size:13px}.profile-metrics span{font-size:12px}.profile-metrics strong{font-size:16px}.profile-tooltip{font-size:12px}.profile-inspector{padding:12px}}
