.valve-panel{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:13px;min-width:0}
.toolbar{margin-bottom:13px}.options{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap}
.options label{display:inline-flex;gap:6px;align-items:center;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.valve-scenes,.data-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cut{padding:0;overflow:hidden}.cut h2{font-size:1rem;display:flex;align-items:baseline;gap:8px;padding:12px}
.cut h2 span,.hint{color:var(--muted);font:700 .78rem Manrope,sans-serif}.hint{margin:7px 0 0}
.cut-stage{position:relative;background:var(--stage-bg)}.cut-stage canvas{height:clamp(235px,27vw,365px)}
.cut-stage .flow{position:absolute;inset:0;pointer-events:none}
.direction{display:flex;justify-content:space-between;padding:6px 12px;color:var(--muted);font-size:.74rem;font-weight:800}
.legend{display:flex;gap:5px 16px;flex-wrap:wrap;margin:9px 0 11px;font-size:.76rem}
.legend span:not(:first-child)::before{content:"";display:inline-block;width:14px;height:3px;border-radius:3px;margin-right:5px;vertical-align:middle;background:currentColor}
.positive{color:var(--plot-zero)}.negative{color:var(--plot-stroke)}.dash{color:var(--dark)}
.transport-valve{margin-bottom:13px}#time-slider{width:100%;accent-color:#e4481b;margin:9px 0 0}#time{font-weight:850;color:var(--dark)}
#markers{display:flex;gap:7px;flex-wrap:wrap}#markers button{font-size:.72rem;min-height:28px}#markers button[data-switch]{border-style:dashed}
.data-layout h2{font-size:1rem}.chart-head{justify-content:space-between}#trace-plot{height:245px;cursor:crosshair;touch-action:pan-y}
table{width:100%;border-collapse:collapse;font-size:.78rem;font-variant-numeric:tabular-nums}td,th{padding:4px;border-bottom:1px solid var(--line)}
th{text-align:left}td,th:not(:first-child){text-align:right}#global-data{font-size:.81rem;font-weight:800;margin:7px 0}
.sr-valve{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.theme-switch button:not(.primary):hover{background:#eaf9ed;border-color:#487254}
@media(max-width:760px){.valve-scenes,.data-layout{grid-template-columns:1fr}.cut-stage canvas{height:clamp(210px,56vw,340px)}}
@media print{.transport-valve,.options select,.check{display:none}details{max-width:none}}

.components{font-size:.8rem;font-weight:800;margin:9px 0 0;color:var(--muted)}.valve-panel a.locale,.head a.locale{background:#cbf6d8;border:1px solid #064719;border-radius:4px;padding:4px 9px}
