.analytic-panel {padding:clamp(16px,3vw,28px);margin:0 0 18px;min-width:0}
.analytic-heading,.analytic-readout,.analytic-period,.analytic-axis {display:flex;align-items:center;justify-content:space-between;gap:8px}
.analytic-heading h2,.analytic-readout h3,.phase-summary h4 {margin:0}
.analytic-heading {margin:6px 0 10px;flex-wrap:wrap}
.analytic-heading h2 {font-size:1.25rem}
.analytic-period {gap:5px;font-size:.82rem;color:var(--muted);font-variant-numeric:tabular-nums}
.analytic-period .secondary {width:40px;min-height:44px;padding:0;font-size:1.25rem}
.analytic-fields {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin:0 0 18px}
.analytic-dose-field {grid-column:1/-1}
.analytic-fields .field {min-width:0;margin:0}
.analytic-fields select {width:100%;min-width:0;padding:8px;text-overflow:ellipsis;color:var(--text);background-color:var(--bg);border:1px solid var(--border);border-radius:9px;min-height:44px;font:inherit}
.analytic-readout {border-top:1px solid var(--border);padding-top:16px;margin-bottom:8px}
.analytic-readout h3 {font-size:1.05rem}
.analytic-value {text-align:right;font-size:.86rem}
.analytic-value strong {font-size:1.5rem;font-variant-numeric:tabular-nums}
.analytic-value small {display:block;color:var(--muted)}
.analytic-panel .field-help,.analytic-status {color:var(--muted);font-size:.82rem}
.analytic-status a {color:var(--accent)}
.analytic-chart {margin:14px 0 0}
.chart-keys {display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-bottom:8px;color:var(--muted);font-size:.78rem}
.chart-keys span {overflow-wrap:anywhere}
.chart-keys span::before {content:'';display:inline-block;margin-right:6px;vertical-align:middle}
.measurement-key::before {height:2px;width:14px;background:var(--accent)}
.dose-key::before {width:3px;height:11px;background:#fff}
.analytic-plot {display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:5px}
.analytic-plot.has-dose {grid-template-columns:max-content minmax(0,1fr) max-content}
.analytic-plot svg {width:100%;height:176px;background:var(--bg);border-radius:5px;display:block;cursor:crosshair}
.plot-scale {display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:4px 0;color:var(--muted);font-size:.7rem;line-height:12px;font-variant-numeric:tabular-nums}
.plot-scale.scale-right {align-items:flex-start}
.metric-line,.dose-stem,.date-cursor,.plot-guide {fill:none;vector-effect:non-scaling-stroke}
.metric-line {stroke:var(--accent);stroke-width:2}.analytic-plot circle {fill:var(--accent);stroke:none}
.dose-stem {stroke:#fff;stroke-opacity:.7;stroke-width:1.25;stroke-linecap:round}
.date-cursor {stroke:var(--text)}
.plot-guide {stroke:var(--border);stroke-dasharray:3 5}.date-cursor {stroke-dasharray:3 3}
.cruise-band {fill:var(--accent);fill-opacity:.075;stroke:none}.blast-band {fill:#ff526c;fill-opacity:.16;stroke:none}
.analytic-axis {grid-column:2;margin-top:6px;color:var(--muted);font-size:.75rem}
.plot-scale span {white-space:nowrap}
@media(max-width:380px){.analytic-value small{max-width:10em}}
.analytic-inspect {display:flex;gap:12px;align-items:center;color:var(--muted);font-size:.78rem;margin-top:12px}
.analytic-inspect input {accent-color:var(--accent);min-width:0;flex:1;min-height:32px}
.analytic-detail {display:grid;gap:4px;padding:10px 12px;background:var(--bg);border-radius:8px;font-size:.85rem}
.phase-summary {border-top:1px solid var(--border);margin-top:16px;padding-top:14px}
.phase-summary h4 {font-size:.85rem}.phase-summary ul {margin:8px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.phase-summary li {display:grid;grid-template-columns:minmax(60px,1fr) auto auto;gap:10px;align-items:baseline;font-size:.82rem}
.phase-summary small {color:var(--muted)}.phase-key {overflow-wrap:anywhere}
.phase-key::before {content:'';display:inline-block;width:8px;height:8px;background:var(--accent);border-radius:2px;margin-right:6px}.phase-key.is-blast::before {background:#ff526c}
@media(max-width:440px){.analytic-fields{gap:8px}.analytic-fields select{font-size:16px}.analytic-period .secondary{width:36px}.phase-summary li{gap:6px}}
