.morph-detail-dialog{width:min(1050px,96vw);max-height:94vh;padding:0;border:1px solid var(--line,#cddbe8);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#243b53)}.morph-detail-dialog::backdrop{background:#10253888}.morph-detail-dialog header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line,#dce5ef)}.morph-detail-dialog h2{margin:0;font-size:20px}.morph-detail-dialog header p{margin:5px 0 0;color:var(--muted,#6b7c75);font-size:12px}.native-detail-body{padding:18px 22px}.native-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:12px;font-size:13px}.native-controls label{display:flex;align-items:center;gap:7px}.native-controls select{padding:6px;border:1px solid var(--line,#cddbe8);border-radius:5px;background:var(--surface,#fff);color:inherit}.native-detail-chart{display:block;width:100%;touch-action:none;user-select:none}.native-detail-chart text,.native-preview text{fill:var(--chart-label,#64786d);font-size:12px;font-variant-numeric:tabular-nums}.native-grid{fill:none;stroke:var(--chart-grid,#e6eeea);stroke-width:1}.native-iqr{fill:var(--morph-teal,#30b0c7);fill-opacity:.10}.native-other,.native-representative,.native-median{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.native-other{stroke:var(--chart-label,#64786d);stroke-opacity:.18;stroke-width:.8}.native-representative{stroke:var(--morph-blue,#007aff);stroke-opacity:.8;stroke-width:1.4}.native-median{stroke:var(--morph-teal,#30b0c7);stroke-width:2.4}.native-selection{fill:var(--morph-teal,#30b0c7);fill-opacity:.14}.native-handle{cursor:ew-resize}.native-handle path{stroke:var(--morph-teal,#30b0c7);stroke-width:1.5;stroke-dasharray:5 3}.native-handle circle{fill:var(--morph-teal,#30b0c7)}.native-legend{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0 20px;font-size:12px;color:var(--muted,#64786d)}.native-legend span:before{content:'';display:inline-block;width:18px;height:3px;margin:0 5px 3px 0;background:var(--morph-teal,#30b0c7)}.native-legend .representative:before{background:var(--morph-blue,#007aff)}.native-legend .other:before{background:#88918f}.native-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.native-metric{border:1px solid var(--line,#dce5ef);border-radius:6px;padding:11px;font-size:13px}.native-metric strong{display:flex;justify-content:space-between;gap:10px}.native-metric small{display:block;margin-top:5px;color:var(--muted,#64786d);line-height:1.4}.native-metric.uncertain b{color:#bc7d12}.native-detail-body p{font-size:13px;line-height:1.6}.native-note{color:var(--muted,#64786d)}.morph-native-status{margin:0;font-size:10px;color:var(--muted,#64786d)}.morph-actions{flex-wrap:wrap}.morph-measures[hidden],.compare[hidden]{display:none!important}.native-detail-chart [data-morph-point]{cursor:pointer}@media(max-width:700px){.native-metrics{grid-template-columns:1fr}.native-detail-body{padding:12px}.morph-detail-dialog header{padding:12px}.morph-header{flex-wrap:wrap;gap:5px}}

:root{--morph-teal:#30b0c7;--morph-blue:#007aff;--morph-purple:#af52de;--morph-orange:#ff9500}[data-theme="dark"]{--morph-teal:#40c8e0;--morph-blue:#0a84ff;--morph-purple:#bf5af2;--morph-orange:#ff9f0a}

.bottom .morph-chart{height:300px;min-height:260px;margin-top:12px}
.bottom .panel:has(.morph-chart){min-height:390px}
.native-detail-chart{height:clamp(420px,56vh,620px)}
.native-focus,.native-zoom,.native-event-zoom{display:inline-flex;gap:4px;align-items:center}
.native-event-zoom[hidden]{display:none!important}
.native-zoom .tool,.native-event-zoom [data-event-zoom]{min-width:34px;font-size:19px}
.native-controls .tool.active{background:var(--accent,#1764b5);border-color:var(--accent,#1764b5);color:white}
.native-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.native-metric{padding:10px}
.native-metric strong{flex-wrap:wrap;font-size:13px}
.native-metric small{font-size:10px;line-height:1.5}
.toolbar{flex-wrap:wrap}
@media(max-width:850px){.native-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.native-detail-body{padding:12px 8px}.native-controls{gap:8px}.native-detail-chart{height:420px}.native-metrics{grid-template-columns:1fr 1fr}.native-metric strong{font-size:12px}.bottom .morph-chart{height:300px}}
