#three-tank-hmi .load-replay {display:grid; gap:18px; min-width:0; --rr-edge:#3a4540; --rr-mint:#9cddc0; --rr-cursor:0%}
#three-tank-hmi .load-replay .page-head {flex-wrap:wrap; gap:12px}
#three-tank-hmi .rr-picker {display:grid; gap:5px; color:#becac2; font:550 11px/1.3 var(--proto-mono)}
#three-tank-hmi .rr-picker select {max-width:100%; min-height:44px; font:600 14px var(--proto-body)}
#three-tank-hmi :is(.rr-capture,.rr-panel,.rr-empty) {min-width:0; overflow:hidden; border:1px solid var(--rr-edge); border-radius:10px; background:#1c211f}
#three-tank-hmi .rr-capture header,#three-tank-hmi .rr-transport,#three-tank-hmi .rr-route-head {display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap}
#three-tank-hmi .rr-capture header {padding:20px clamp(14px,2cqi,28px); background:linear-gradient(110deg,#293831 0%,#202823 70%)}
#three-tank-hmi .rr-capture header h3 {font:650 clamp(28px,3.3cqi,45px)/1 var(--proto-display); margin:5px 0 0}
#three-tank-hmi .rr-label {font:600 10px/1.3 var(--proto-mono); color:var(--rr-mint); letter-spacing:.1em; text-transform:uppercase}
#three-tank-hmi .rr-capture header>p,#three-tank-hmi .rr-foot,#three-tank-hmi .rr-route-head span {font:500 12px/1.4 var(--proto-mono); color:#c0c9c4}
#three-tank-hmi .rr-tracks {padding:12px clamp(12px,1.8cqi,24px); border-block:1px solid var(--rr-edge); background:#111714}
#three-tank-hmi .rr-track {--trace:#8bd9bd; display:grid; grid-template-columns:clamp(88px,11cqi,145px) minmax(0,1fr); align-items:center; min-height:58px; border-bottom:1px solid #2d3932}
#three-tank-hmi .rr-track:last-child {border-bottom:0}
#three-tank-hmi .rr-hz {--trace:#a9b7fb}
#three-tank-hmi .rr-rms {--trace:#ffc38b}
#three-tank-hmi .rr-track-label {display:grid; gap:3px; padding-right:5px}
#three-tank-hmi .rr-track-label b {color:var(--trace); font:600 13px var(--proto-body)}
#three-tank-hmi .rr-track-label small {color:#b6c0b9; font:500 10px var(--proto-mono)}
#three-tank-hmi .rr-plot {position:relative; background:repeating-linear-gradient(90deg,#304137 0 1px,transparent 1px 12.5%); cursor:crosshair; touch-action:pan-y}
#three-tank-hmi .rr-plot svg {display:block; width:100%; height:52px; overflow:visible; pointer-events:none}
#three-tank-hmi .rr-plot path {stroke:var(--trace); fill:none; stroke-width:2; vector-effect:non-scaling-stroke}
#three-tank-hmi .rr-plot .rr-limit {stroke:#a66d50; stroke-width:1; stroke-dasharray:3 6; vector-effect:non-scaling-stroke}
#three-tank-hmi .rr-cursor {position:absolute; top:0; bottom:0; width:2px; left:clamp(0px,var(--rr-cursor),calc(100% - 2px)); background:#eeeada; pointer-events:none}
#three-tank-hmi .rr-transport {padding:10px clamp(12px,1.8cqi,24px) 0; display:grid; grid-template-columns:auto minmax(0,1fr) 44px 44px; gap:8px}
#three-tank-hmi .rr-transport button {min-height:44px; min-width:44px}
#three-tank-hmi .rr-transport [data-rr-play] {background:#284036; border-color:#546f61; color:#d0f0db}
#three-tank-hmi .rr-transport [data-rr-step] {font-size:22px; line-height:1}
#three-tank-hmi .rr-transport label {display:grid; color:#c5d4c9; font:550 11px/1.2 var(--proto-mono); min-width:0}
#three-tank-hmi .rr-transport input {min-height:32px; width:100%; margin:0; padding:0; accent-color:#a4dec0}
#three-tank-hmi .rr-foot {padding:2px clamp(12px,1.8cqi,24px) 15px; font-size:11px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap}
#three-tank-hmi .rr-foot button {min-height:44px; font-size:12px}
#three-tank-hmi .rr-lower {display:grid; grid-template-columns:minmax(0,1.65fr) minmax(230px,.9fr); gap:16px; align-items:start}
#three-tank-hmi .rr-panel,#three-tank-hmi .rr-empty {padding:clamp(14px,1.8cqi,24px)}
#three-tank-hmi .rr-panel h3,#three-tank-hmi .rr-empty h3 {font:650 clamp(23px,2.4cqi,31px)/1.1 var(--proto-display)}
#three-tank-hmi .rr-readings {display:grid; gap:13px; padding-bottom:17px; border-bottom:1px solid var(--rr-edge)}
#three-tank-hmi .rr-mass b {display:block; color:#f2f3e8; font:650 clamp(36px,4.3cqi,58px)/1 var(--proto-display)}
#three-tank-hmi .rr-mass small {color:#becfc1; font:550 15px var(--proto-mono)}
#three-tank-hmi .rr-readings dl {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0}
#three-tank-hmi .rr-readings dt {color:#b9c6bd; font-size:12px; margin-bottom:4px}
#three-tank-hmi .rr-readings dd {margin:0; font:650 clamp(18px,2cqi,27px)/1.2 var(--proto-display)}
#three-tank-hmi .rr-readings dd small {font:500 10px var(--proto-mono); color:#c0c8c0; white-space:nowrap}
#three-tank-hmi .rr-route-head {margin:16px 0 12px}
#three-tank-hmi .rr-plumbing {display:grid; grid-template-columns:minmax(78px,1.05fr) minmax(65px,.7fr) minmax(78px,1fr); align-items:center; gap:12px}
#three-tank-hmi .rr-plumbing>div:not(.rr-meter) {display:grid; gap:4px}
#three-tank-hmi .rr-valve {min-width:0; display:flex; gap:7px; align-items:center; padding:6px 7px; border:1px solid #3c443e; background:#181d1a; border-radius:5px}
#three-tank-hmi .rr-valve i {height:7px; width:7px; flex:none; border-radius:50%; background:#768078}
#three-tank-hmi .rr-valve strong,#three-tank-hmi .rr-valve small,#three-tank-hmi .rr-meter :is(b,small) {display:block; overflow-wrap:anywhere}
#three-tank-hmi .rr-valve strong {font-size:13px}
#three-tank-hmi .rr-valve small,#three-tank-hmi .rr-meter small {font:500 10px/1.35 var(--proto-mono); color:#b9c4bc}
#three-tank-hmi .rr-valve[data-position=Open] {border-color:#4f8d71; background:#233a2e}
#three-tank-hmi .rr-valve[data-position=Open] i {background:#95e0b7}
#three-tank-hmi .rr-valve:is([data-position=Requested],[data-position=Unconfirmed]) {border-color:#a6784e}
#three-tank-hmi .rr-valve:is([data-position=Requested],[data-position=Unconfirmed]) i {background:#ffc18a}
#three-tank-hmi .rr-meter {position:relative; text-align:center; border-block:1px solid #73877b; padding:5px 0 8px; font:600 13px var(--proto-mono)}
#three-tank-hmi .rr-meter span {color:var(--rr-mint); font-size:22px}
#three-tank-hmi .rr-events>div {display:grid; gap:5px; max-height:390px; overflow-y:auto; margin-top:10px}
#three-tank-hmi .rr-events button {display:flex; align-items:center; justify-content:flex-start; text-align:left; gap:10px; min-height:44px; background:#202722; border:1px solid #3d4841}
#three-tank-hmi .rr-events button span {font:550 11px var(--proto-mono); color:#9cccb3}
#three-tank-hmi .rr-curve-command {display:flex;align-items:center;justify-content:space-between;gap:7px 14px;flex-wrap:wrap;padding:9px 0;color:#d7e5dc;font:550 12px var(--proto-mono)}
#three-tank-hmi .rr-events button[data-level=trip] {border-color:#825d4e; color:#ffd1bd}
#three-tank-hmi .rr-events button[data-level=watch] {color:#ffd5a8}
#three-tank-hmi .rr-events button[aria-pressed=true] {box-shadow:inset 3px 0 #99dbb9; background:#2b3a31}
#three-tank-hmi .rr-trip-note {margin-top:12px; padding:9px 12px; border-left:3px solid #d99b79; background:#342c26; color:#f7d1b5; font-size:13px}
#three-tank-hmi .rr-alarm-actions {display:flex; align-items:center; gap:6px; flex-wrap:wrap}
#three-tank-hmi .rr-empty p {margin:10px 0 12px; color:#c3cec6}
#three-tank-hmi .rr-empty a {display:inline-flex; align-items:center; min-height:44px; color:var(--rr-mint); text-underline-offset:3px}
@container (max-width:930px) {#three-tank-hmi .rr-lower {grid-template-columns:minmax(0,1fr)}}
@container (max-width:580px) {
  #three-tank-hmi .rr-transport {grid-template-columns:minmax(0,1fr) 44px 44px}
  #three-tank-hmi .rr-transport label {grid-column:1/-1;grid-row:1}
  #three-tank-hmi .rr-transport input {min-height:44px}
  #three-tank-hmi .rr-transport [data-rr-play] {justify-self:start}
  #three-tank-hmi .rr-plumbing {gap:5px}
  #three-tank-hmi .rr-valve {padding:5px;gap:4px}
  #three-tank-hmi .rr-events>div {max-height:280px}
}
