@font-face {
    font-family: "Pump Condensed";
    src: url("/simulators/assets/v1/barlow-condensed-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

body.af-fire-pump-page {
    background-color: #12171b;
    background-image: radial-gradient(ellipse at 50% 10%,#2b363c 0%,#171e23 52%,#11161b 100%);
}
.af-pump {
    --fp-amber: #ffba73;
    --fp-heading: "Pump Condensed", "Arial Narrow", sans-serif;
    --fp-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --fp-text: #f0f3f1;
    --fp-muted: #aab8bf;
    box-sizing: border-box;
    width: min(1190px, calc(100% - 44px));
    margin: 0 auto;
    padding: 14px 0 30px;
    color: var(--fp-text);
    font: 500 .9rem/1.35 system-ui, sans-serif;
    color-scheme: dark;
}
.af-pump *, .af-pump *::before, .af-pump *::after { box-sizing: border-box; }
.af-pump :focus-visible { outline: 3px solid #ffbd77; outline-offset: 3px; }
.af-pump .fp-svg-defs { position: absolute; width: 0; height: 0; }
.af-pump .fp-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.af-pump .fp-crumb {
    display: flex; align-items: center; gap: .55rem;
    color: #aab8bf; font: 650 .77rem/1.1 system-ui,sans-serif;
}
.af-pump .fp-crumb a { color: #d3dddb; text-underline-offset: .16em; }
.af-pump .fp-crumb a:hover { color: var(--fp-amber); }
.af-pump .fp-header {
    display: flex; align-items: end; justify-content: space-between;
    gap: .9rem; margin: .52rem 0 .85rem;
}
body.af-fire-pump-page .af-pump .fp-header h1 {
    margin: 0; color: #f0f4f3; font: 700 clamp(2.6rem, 5vw, 3.65rem)/.98 var(--fp-heading); letter-spacing: .01em;
}
.af-pump .fp-header p { color: var(--fp-muted); margin: .36rem 0 0; font-size: .88rem; }
.af-pump .fp-header p strong { color: #f0be8c; font-weight: 680; }
.af-pump .fp-header p > span { margin: 0 .15rem; }
.af-pump .fp-toolbar, .af-pump .fp-unit-switch { display: flex; align-items: center; gap: .38rem; }
.af-pump .fp-toolbar { flex-wrap: wrap; justify-content: flex-end; }
.af-pump button { touch-action: manipulation; font: 700 .77rem/1.1 system-ui,sans-serif; }
.af-pump .fp-unit-switch {
    padding: 3px;
    border-radius: 6px;
    border: 1px solid #52616a;
    background: #121b20;
    gap: 1px;
}
.af-pump .fp-unit-switch button, .af-pump .fp-tool {
    display: inline-flex; gap: .35rem; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: 4px; white-space: nowrap; padding: 0 .66rem;
    min-height: 36px; color: #e5eeed; background: transparent;
}
.af-pump .fp-unit-switch button[aria-pressed="true"] { border-color: #eab580; background: #d59960; color: #181513; }
.af-pump .fp-tool { min-height: 44px; border-color: #52616a; background: #202b32; }
.af-pump .fp-tool:hover, .af-pump .fp-unit-switch button[aria-pressed="false"]:hover { background: #344852; }
.af-pump .fp-expand {
    width: .84rem; height: .69rem; border: 1.5px solid currentColor; border-radius: 1.5px;
}
.af-pump [data-fullscreen][aria-pressed="true"] .fp-expand { box-shadow: inset 0 0 0 2px #202b32; background: currentColor; }

.af-pump .fp-shell {
    overflow: hidden; border: 1px solid #637276; border-radius: 10px;
    background: #162024;
    box-shadow: 0 24px 48px #0a0c11b8, 0 4px 12px #080c0e8a;
}
.af-pump .fp-framebar, .af-pump .fp-rail {
    display: flex; align-items: center; justify-content: space-between; gap: .65rem;
    background: linear-gradient(180deg,#313f45,#1d282c 74%,#172226);
}
.af-pump .fp-framebar { padding: .5rem .85rem; border-bottom: 1px solid #694937; }
.af-pump .fp-frame-name {
    display: inline-flex; align-items: center; gap: .56rem;
    color: #f2f0e9; font: 700 1.05rem/1 var(--fp-heading); letter-spacing: .12em; text-transform: uppercase;
}
.af-pump .fp-frame-mark {
    width: 22px; height: 10px;
    background: repeating-linear-gradient(123deg,transparent 0 3px,#edaa64 3px 6px,transparent 6px 8px);
}
.af-pump .fp-frame-status {
    display: flex; gap: .45rem; align-items: center; color: #d9e3dd;
    font: 650 .74rem/1.15 var(--fp-mono);
}
.af-pump .fp-frame-status i {
    width: .42rem; height: .42rem; border-radius: 50%; background: #a2d4b8;
    box-shadow: 0 0 6px #9bddbc76; flex: 0 0 auto;
}
.af-pump .fp-frame-status[data-dry] i { background: #ffa477; box-shadow: 0 0 6px #df8849af; }
.af-pump .fp-steel {
    position: relative; display: grid; gap: .58rem; padding: .72rem;
    border: 3px solid #454e4e; border-top-color: #dcdad1; border-bottom-color: #24292c;
    background:
        repeating-linear-gradient(0deg,#ffffff18 0 1px,#39444812 1px 2px,transparent 2px 4px),
        linear-gradient(153deg,#b1b8b8 0%,#d1d1c9 20%,#969f9e 43%,#c2cac7 58%,#828f8f 85%,#a7b0aa 100%);
    box-shadow: inset 0 0 0 1px #eff0e27d, inset 0 0 20px #3343456e;
}
.af-pump .fp-top {
    display: grid; grid-template-columns: minmax(0,1.14fr) minmax(0,1fr) minmax(0,.61fr);
    gap: .66rem; align-items: stretch;
}
.af-pump .fp-masters {
    display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
    padding: .32rem .52rem .42rem; border: 1px solid #5b6969;
    border-radius: 5px; background: #c9cfc453; box-shadow: inset 0 1px #f4f5ef8c;
}
.af-pump .fp-instrument { min-width: 0; display: grid; justify-items: center; align-content: center; gap: .14rem; }
body.af-fire-pump-page .af-pump .fp-engraving {
    margin: 0; color: #243235 !important; text-transform: uppercase; letter-spacing: .09em;
    font: 700 clamp(.85rem,1.4vw,1.12rem)/1.1 var(--fp-heading); text-shadow: 0 1px #ebede7c9;
}
.af-pump .fp-gauge { position: relative; width: min(100%, 79px); color: #f7f3e7; text-align: center; }
.af-pump .fp-gauge-master { width: min(100%, 166px); }
.af-pump .fp-gauge svg { width: 100%; aspect-ratio: 1; display: block; overflow: visible; }
.af-pump .fp-tick-major { stroke: #f1eee1; stroke-width: 1.75; stroke-linecap: round; }
.af-pump .fp-tick { stroke: #c4cfcc; stroke-width: .8; }
.af-pump .fp-tick-label, .af-pump .fp-dial-units {
    fill: #f3efe3; text-anchor: middle; dominant-baseline: middle; font: 700 10px var(--fp-heading);
}
.af-pump .fp-dial-units { fill: #a7b9b6; font: 650 8.5px var(--fp-mono); }
.af-pump .fp-gauge-output {
    display: inline-block; margin: .11rem 0 .06rem; padding: .12rem .32rem;
    min-width: 4.1em; border-radius: 3px; color: #15252a; background: #e2e8de86;
    font: 750 .69rem/1.15 var(--fp-mono); white-space: nowrap;
}
.af-pump .fp-gauge-master .fp-gauge-output { font-size: .8rem; }
.af-pump .fp-governor, .af-pump .fp-tank {
    min-width: 0; border: 1px solid #252b2e; border-radius: 7px;
    padding: .52rem .62rem;
    background:
        repeating-linear-gradient(0deg,transparent 0 2px,#ffffff03 2px 3px),
        linear-gradient(145deg,#454f50,#283234 70%,#1d2629);
    box-shadow: inset 0 1px #bac7bd6e, inset 0 0 0 3px #16212369, 0 3px 7px #14181977;
}
.af-pump .fp-governor { display: grid; grid-template-rows: auto auto auto 1fr; gap: .34rem; }
.af-pump .fp-equipment-title { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
body.af-fire-pump-page .af-pump .fp-equipment-title h2 {
    margin: 0; color: #e9efe9; letter-spacing: .11em;
    font: 700 1.08rem/1 var(--fp-heading); text-transform: uppercase;
}
.af-pump .fp-screw {
    width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(126deg,#c8cfc8 0 37%,#344043 41% 56%,#9aa4a0 60% 100%);
    border: 1px solid #1f2c30;
}
.af-pump .fp-governor-screens { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.af-pump .fp-screen {
    border: 1px solid #090f13; border-radius: 4px; padding: .24rem .46rem .28rem;
    background: repeating-linear-gradient(0deg,transparent 0 2px,#ddedc905 2px 3px),#151a14;
    box-shadow: inset 0 1px 6px #030707, 0 1px #73807891;
}
.af-pump .fp-screen > span {
    display: flex; justify-content: space-between; gap: .2rem; color: #beb99c;
    font: 600 .59rem/1.05 var(--fp-mono); text-transform: uppercase;
}
.af-pump .fp-screen b { color: #cbb179; font-weight: 550; }
.af-pump .fp-screen output {
    display: block; color: #ffba68; text-align: right; letter-spacing: .065em;
    font: 700 clamp(1.48rem,3vw,2.1rem)/1.08 var(--fp-mono); text-shadow: 0 0 10px #f39d5551;
}
.af-pump .fp-speed-screen output { color: #e8dba4; text-shadow: 0 0 9px #cbc7805e; }
.af-pump .fp-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.af-pump .fp-mode-switch button, .af-pump .fp-throttle > button, .af-pump .fp-tank-feed {
    color: #e9f0e9; min-height: 32px; border: 1px solid #55625c; border-radius: 4px;
    background: linear-gradient(180deg,#394a48,#202c2e 80%); box-shadow: inset 0 1px #71928945;
}
.af-pump .fp-mode-switch button[aria-pressed="true"] {
    border-color: #dbb78a; color: #201911; background: linear-gradient(180deg,#e1b987,#ba8959);
}
.af-pump .fp-throttle { display: grid; grid-template-columns: 37px minmax(0,1fr) 37px auto; align-items: center; gap: .27rem; }
.af-pump .fp-throttle > button { height: 38px; font-size: 1.1rem; }
.af-pump .fp-throttle > button:hover, .af-pump .fp-tank-feed:hover { border-color: #ddad74; }
.af-pump .fp-throttle > .fp-idle {
    padding: 0 .45rem; color: #fff3e4; border-color: #986650;
    background: linear-gradient(180deg,#794337,#4d2a27);
    font-size: .7rem;
}
.af-pump .fp-throttle-mid {
    min-width: 0; display: grid; grid-template-columns: 40px minmax(0,1fr);
    align-items: end; column-gap: .3rem;
}
.af-pump .fp-throttle-mid label { color: #d3ded7; font: 650 .63rem/1 system-ui,sans-serif; }
.af-pump .fp-knob { width: 40px; grid-row: span 2; align-self: center; }
.af-pump .fp-throttle-mid input {
    width: 100%; min-width: 0; height: 21px; margin: 0;
    accent-color: #eab071; align-self: start;
}
.af-pump .fp-tank { display: grid; grid-template-rows: auto 1fr auto auto; gap: .31rem; }
.af-pump .fp-tank-reading {
    position: relative; display: flex; align-items: center; gap: .5rem;
    padding: .26rem .5rem; border: 1px solid #111a1d; border-radius: 4px; background: #182222;
    box-shadow: inset 0 1px 6px #0a1111,0 1px #62716a82;
}
.af-pump .fp-tank-reading meter { position: absolute; width: 1px; height: 1px; opacity: 0; }
.af-pump .fp-tank-lamps { align-self: center; width: 1.25rem; display: grid; gap: .14rem; }
.af-pump .fp-tank-lamps span {
    display: block; height: 7px; border: 1px solid #40574e; border-radius: 2px;
    background: #263835; box-shadow: inset 0 1px #dce5ca12;
}
.af-pump .fp-tank-lamps span[data-on] { background: #8fbb92; border-color: #a6cba3; box-shadow: 0 0 6px #93c99c59; }
.af-pump .fp-tank-number { display: grid; gap: .10rem; }
.af-pump .fp-tank-number output { color: #d7edcf; font: 700 clamp(1.4rem,2.6vw,1.85rem)/1 var(--fp-mono); }
.af-pump .fp-tank-number > span { color: #aabeb6; font: 600 .6rem/1 var(--fp-mono); text-transform: uppercase; }
.af-pump .fp-tank-feed {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: .32rem; padding: .24rem .38rem; text-align: left;
}
.af-pump .fp-tank-feed i, .af-pump .fp-indicators i, .af-pump .fp-flow i { width: 7px; height: 7px; border-radius: 50%; background: #171f21; border: 1px solid #656f66; flex: 0 0 auto; }
.af-pump .fp-tank-feed[aria-pressed="true"] i, .af-pump .fp-indicators li[data-on] i, .af-pump .fp-flow[data-on] i {
    background: #9cdda8; border-color: #d1f6c6; box-shadow: 0 0 6px #91e0a668;
}
.af-pump .fp-tank-feed b { font: 750 .65rem/1 var(--fp-mono); color: #c1e0bd; }
.af-pump .fp-indicators { display: flex; flex-wrap: wrap; gap: .28rem .4rem; list-style: none; margin: 0; padding: .06rem 0; }
.af-pump .fp-indicators li {
    display: flex; align-items: center; gap: .2rem; color: #c3d0ca;
    font: 660 .63rem/1.05 system-ui,sans-serif; white-space: nowrap;
}
.af-pump .fp-indicators [data-lamp="low"][data-on] i { background: #f5bc63; border-color: #ffdb9c; box-shadow: 0 0 7px #edbd6c69; }
.af-pump .fp-indicators [data-lamp="dry"][data-on] i { background: #fd8364; border-color: #ffb59a; box-shadow: 0 0 7px #ed865f89; }
.af-pump .fp-indicators [data-fault="deadhead"] i, .af-pump .fp-indicators [data-fault="governor"] i {
    background: #f5bc63;
    border-color: #ffdb9c;
    box-shadow: 0 0 7px #edbd6c69;
}


.af-pump .fp-lower { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .53rem; }
.af-pump .fp-green { --fp-valve: #639774; }
.af-pump .fp-red { --fp-valve: #b7493f; }
.af-pump .fp-blue { --fp-valve: #346d9b; }
.af-pump .fp-amber { --fp-valve: #d3a152; }
.af-pump .fp-station {
    min-width: 0; padding: .27rem; border: 1px solid #65726f; border-radius: 5px;
    background: linear-gradient(151deg,#dde0d3ab,#c3cbc674 45%,#68777a72);
    box-shadow: inset 0 1px #f0f1e7a6, 0 1px 1px #5b6766;
}
body.af-fire-pump-page .af-pump .fp-station h2 {
    margin: 0 0 .24rem; display: flex; align-items: center; gap: .4rem;
    color: #eff3ea; padding: .29rem .46rem; border-radius: 2px;
    background: linear-gradient(90deg,#263235,#172226);
    font: 700 1.02rem/1.08 var(--fp-heading); letter-spacing: .10em; text-transform: uppercase;
    box-shadow: inset 0 -1px #0b1518;
}
.af-pump .fp-station-label i { width: .29rem; height: .71rem; border-radius: 1.5px; background: var(--fp-valve); }
.af-pump .fp-station-body { display: grid; align-items: center; grid-template-columns: minmax(0,.77fr) minmax(0,1.45fr); }
.af-pump .fp-station-meter { display: grid; place-items: center; align-content: center; min-width: 0; }
.af-pump .fp-station-meter .fp-gauge { width: min(100%, 78px); }
.af-pump .fp-flow {
    display: inline-flex; align-items: center; gap: .24rem; max-width: 100%;
    padding: .15rem .24rem; border: 1px solid #354442; border-radius: 3px;
    color: #d4d7b4; background: #26332e; white-space: nowrap;
    font: 650 clamp(.52rem,.76vw,.69rem)/1.1 var(--fp-mono);
}
.af-pump .fp-flow i { width: 5px; height: 5px; }
.af-pump .fp-station-hardware { display: grid; grid-template-columns: minmax(0,.69fr) minmax(0,1.14fr); align-items: end; gap: .08rem; }
.af-pump .fp-valve, .af-pump .fp-port {
    display: grid; justify-items: center; min-width: 0; padding: .12rem 0 0;
    border: 0; border-radius: 4px; color: var(--fp-valve); background: transparent;
}
.af-pump .fp-valve:hover, .af-pump .fp-port:hover { background: #e3ebe63b; }
.af-pump .fp-valve svg { display: block; width: min(100%,61px); height: auto; overflow: visible; }
.af-pump .fp-port svg { display: block; width: min(100%,112px); height: auto; overflow: visible; }
.af-pump .fp-port-line, .af-pump .fp-port[aria-pressed="true"] .fp-port-cover { display: none; }
.af-pump .fp-port[aria-pressed="true"] .fp-port-line { display: block; }
.af-pump .fp-valve > span, .af-pump .fp-port > span {
    display: grid; align-content: center; min-height: 1.3rem; padding: .14rem .13rem; color: #202f32;
    font: 750 clamp(.49rem,.76vw,.67rem)/1.1 var(--fp-mono); text-shadow: 0 1px #dfe4dcad; text-align: center;
}
.af-pump .fp-valve[aria-pressed="true"] > span, .af-pump .fp-port[aria-pressed="true"] > span { color: #152c20; }

.af-pump .fp-rail { padding: .34rem .85rem; color: #bdc9c6; font: 650 .7rem/1.22 system-ui,sans-serif; }
.af-pump .fp-rail > div { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.af-pump .fp-rail output { color: #e3d4a0; border: 1px solid #4d594f; border-radius: 3px; padding: .17rem .4rem; background: #141d1b; font: 750 .83rem/1 var(--fp-mono); }
.af-pump .fp-notes { margin-top: .68rem; padding: .5rem .64rem; color: #b9c9cc; border: 1px solid #475961; border-radius: 5px; background: #1b272d; }
.af-pump .fp-notes summary { cursor: pointer; color: #e3eceb; font-weight: 690; font-size: .83rem; }
.af-pump .fp-notes p, .af-pump .fp-notes ul { max-width: 76ch; margin: .65rem 0 .45rem; }
.af-pump .fp-notes a { color: #f4c299; overflow-wrap: anywhere; }

.af-pump:is(:fullscreen, [data-expanded]) {
    background: #182125; width: 100%; min-height: 100%; margin: 0; padding-inline: max(19px, calc((100% - 1190px) / 2)); overflow: auto;
}
.af-pump[data-expanded] { position: fixed; inset: 0; z-index: 1200; }
body:has(.af-pump[data-expanded]) { overflow: hidden; }

@media (max-width: 940px) and (min-width: 761px) {
    .af-pump .fp-top { grid-template-columns: minmax(0,1.17fr) minmax(0,1fr) minmax(0,.54fr); gap: .4rem; }
    .af-pump .fp-steel { padding: .42rem; }
    .af-pump .fp-governor, .af-pump .fp-tank { padding: .42rem; }
    .af-pump .fp-station-meter .fp-gauge { width: min(100%,67px); }
}

@media (max-width: 760px) {
    .af-pump { width: calc(100% - 24px); padding-top: 12px; }
    .af-pump .fp-header { align-items: start; flex-direction: column; gap: .62rem; }
    .af-pump .fp-header p { font-size: .79rem; }
    .af-pump .fp-toolbar { justify-content: flex-start; }
    .af-pump .fp-steel { padding: .38rem; gap: .45rem; }
    .af-pump .fp-top { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: .45rem; }
    .af-pump .fp-masters { grid-column: 1 / -1; }
    .af-pump .fp-gauge-master { width: min(100%, 152px); }
    .af-pump .fp-governor, .af-pump .fp-tank { padding: .46rem; }
    .af-pump .fp-governor { gap: .28rem; }
    .af-pump .fp-throttle { grid-template-columns: 36px minmax(0,1fr) 36px; }
    .af-pump .fp-throttle > button { min-height: 44px; }
    .af-pump .fp-throttle > .fp-idle { grid-column: 1 / -1; }
    .af-pump .fp-throttle-mid { grid-template-columns: minmax(0,1fr); }
    .af-pump .fp-throttle-mid .fp-knob { display: none; }
    .af-pump .fp-throttle-mid input { min-height: 31px; }
    .af-pump .fp-tank-feed, .af-pump .fp-mode-switch button { min-height: 44px; }
    .af-pump .fp-lower { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .38rem; }
    .af-pump .fp-station-body { grid-template-columns: 1fr; align-items: start; }
    .af-pump .fp-station-meter { grid-template-columns: minmax(0,1fr) minmax(0,.84fr); justify-items: center; }
    .af-pump .fp-station-meter .fp-gauge { width: min(100%, 65px); }
    .af-pump .fp-flow { font-size: .62rem; }
    .af-pump .fp-station-hardware { grid-template-columns: minmax(0,.79fr) minmax(0,1fr); }
    .af-pump .fp-valve, .af-pump .fp-port { min-height: 62px; align-content: end; }
    .af-pump .fp-valve > span, .af-pump .fp-port > span { font-size: .59rem; }
    .af-pump .fp-valve svg { width: min(100%,55px); }
    .af-pump .fp-port svg { width: min(100%,80px); }
    .af-pump .fp-framebar, .af-pump .fp-rail { padding-inline: .5rem; }
    .af-pump .fp-frame-name { font-size: .91rem; letter-spacing: .06em; }
    .af-pump .fp-frame-mark { display: none; }
    .af-pump .fp-frame-status { font-size: .61rem; }
    .af-pump .fp-rail { font-size: .65rem; }
}
@media (max-width: 400px) {
    .af-pump .fp-tool { padding-inline: .44rem; }
    .af-pump .fp-unit-switch button { padding-inline: .42rem; }
    .af-pump .fp-indicators { display: grid; }
    body.af-fire-pump-page .af-pump .fp-equipment-title h2 { font-size: .91rem; letter-spacing: .06em; }
}
@media (min-width: 761px) and (max-height: 730px) {
    .af-pump { padding-top: 10px; }
    .af-pump .fp-header { margin-top: .39rem; margin-bottom: .64rem; }
    body.af-fire-pump-page .af-pump .fp-header h1 { font-size: 3rem; }
    .af-pump .fp-gauge-master { width: min(100%, 149px); }
}
@media (prefers-reduced-motion: reduce) {
    .af-pump [data-water][data-moving] { animation: none; }
}

.af-pump .fp-framebar { padding-block: .29rem; }
.af-pump .fp-frame-status { margin-left: auto; }
.af-pump .fp-frame-controls { display: flex; gap: .32rem; }
.af-pump .fp-frame-controls button {
    min-height: 31px; border: 1px solid #687c78; border-radius: 4px; padding: 0 .58rem;
    color: #e0ebe5; background: #273538; white-space: nowrap;
}
.af-pump .fp-engage[aria-pressed="true"] { color: #172219; border-color: #b6d2b6; background: #96ba96; }
.af-pump .fp-sound[aria-pressed="true"] { color: #fff3dd; border-color: #d3b17f; background: #4a3e30; }
.af-pump .fp-frame-controls button:hover { filter: brightness(1.16); }
.af-pump .fp-tank-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .26rem; }
.af-pump .fp-tank-switches button { font-size: .66rem; }
.af-pump .fp-tank-switches button[data-unavailable], .af-pump .fp-port[data-unavailable] > span { opacity: .73; }
.af-pump .fp-valve-bank { min-width: 0; display: grid; justify-items: center; }
.af-pump .fp-valve-bank button { width: 100%; }
.af-pump .fp-valve-travel { display: block; min-width: 0; width: min(91%, 64px); height: 23px; margin: -.12rem 0 0; accent-color: var(--fp-valve); }
.af-pump .fp-station-hardware { align-items: start; }
.af-pump .fp-station-hardware .fp-port { align-self: center; }

.af-pump .fp-feedback { margin: 0; min-width: 0; }
.af-pump .fp-feedback[data-blocked] { color: #ffd2a2; }
.af-pump .fp-rail { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.75fr) auto; }
.af-pump .fp-circulation { display: block; justify-self: center; width: min(100%, 375px); height: 44px; overflow: visible; }
.af-pump .fp-pipes path { fill: none; stroke: #536463; stroke-width: 2; stroke-linecap: round; }
.af-pump .fp-pipes .fp-return-base { stroke: #65796c; stroke-dasharray: 3 3; }
.af-pump .fp-water-lines path {
    visibility: hidden; fill: none; stroke: #a6e4db; stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 3.8 7;
}
.af-pump [data-water][data-moving] { visibility: visible; animation: fp-water .9s linear infinite; }
.af-pump [data-water="fill"][data-moving] { stroke: #b6e392; }
.af-pump[data-paused] [data-water][data-moving] { animation-play-state: paused; }
.af-pump .fp-diagram-labels { fill: #d9e7dd; font: 700 10px var(--fp-mono); }
.af-pump [data-pump-diagram] { fill: #27383a; stroke: #728682; stroke-width: 1; }
.af-pump [data-pump-diagram][data-on] { fill: #395d4a; stroke: #99c5a6; }
@keyframes fp-water { to { stroke-dashoffset: -21.6; } }
@media (prefers-reduced-motion: reduce) {
    .af-pump [data-water][data-moving] { animation: none; }
}

@media (max-width: 760px) {
    .af-pump { width: calc(100% - 20px); padding-top: 6px; }
    .af-pump .fp-header { gap: .31rem; margin-block: .28rem .42rem; }
    body.af-fire-pump-page .af-pump .fp-header h1 { font-size: 1.99rem; }
    .af-pump .fp-header p { margin-top: .13rem; }
    .af-pump .fp-descriptor { display: none; }
    .af-pump .fp-toolbar, .af-pump .fp-unit-switch { gap: .21rem; }
    .af-pump .fp-unit-switch { padding: 2px; }
    .af-pump .fp-unit-switch button, .af-pump .fp-tool { min-height: 30px; font-size: .65rem; }
    .af-pump .fp-tool { min-height: 35px; }
    .af-pump .fp-framebar { gap: .35rem; padding-inline: .36rem; }
    .af-pump .fp-frame-name { display: none; }
    .af-pump .fp-frame-status { margin-left: 0; }
    .af-pump .fp-frame-controls button { min-height: 29px; font-size: .66rem; padding-inline: .38rem; }
    .af-pump .fp-steel { padding: .23rem; gap: .29rem; }
    .af-pump .fp-top, .af-pump .fp-lower { gap: .31rem; }
    .af-pump .fp-masters { padding: .22rem .34rem; }
    .af-pump .fp-gauge-master { width: min(100%, 82px); }
    .af-pump .fp-governor, .af-pump .fp-tank { padding: .33rem; }
    .af-pump .fp-governor { gap: .21rem; }
    .af-pump .fp-screen { padding-block: .17rem; }
    .af-pump .fp-screen output { font-size: 1.2rem; }
    .af-pump .fp-mode-switch button { min-height: 29px; font-size: .66rem; }
    .af-pump .fp-throttle { grid-template-columns: 26px minmax(0,1fr) 26px auto; gap: .14rem; }
    .af-pump .fp-throttle > button { min-height: 32px; height: auto; }
    .af-pump .fp-throttle > .fp-idle { grid-column: auto; padding: 0 .22rem; }
    .af-pump .fp-throttle-mid input { min-height: 22px; }
    .af-pump .fp-tank-reading { padding: .18rem .3rem; }
    .af-pump .fp-tank-lamps span { height: 4px; }
    .af-pump .fp-tank-number output { font-size: 1.25rem; }
    .af-pump .fp-tank-switches { grid-template-columns: 1fr; gap: .17rem; }
    .af-pump .fp-tank-feed { min-height: 23px; padding-block: .13rem; }
    .af-pump .fp-indicators { display: flex; gap: .16rem .32rem; }
    .af-pump .fp-indicators li { font-size: .55rem; }
    .af-pump .fp-station { padding: .18rem; }
    body.af-fire-pump-page .af-pump .fp-station h2 { margin-bottom: .07rem; padding: .16rem .25rem; font-size: .81rem; }
    .af-pump .fp-station-body { grid-template-columns: minmax(0,.84fr) minmax(0,1.9fr); align-items: center; }
    .af-pump .fp-station-meter { grid-template-columns: 1fr; }
    .af-pump .fp-station-meter .fp-gauge { width: min(100%, 43px); }
    .af-pump .fp-gauge-output { white-space: nowrap; padding-inline: .10rem; min-width: 0; font-size: .55rem; }
    .af-pump .fp-flow { font-size: .52rem; padding-inline: .15rem; }
    .af-pump .fp-flow i { width: 4px; height: 4px; }
    .af-pump .fp-station-hardware { grid-template-columns: minmax(0, .85fr) minmax(0,1fr); align-items: center; }
    .af-pump .fp-valve, .af-pump .fp-port { min-height: 38px; padding-top: 0; }
    .af-pump .fp-valve svg { width: min(100%, 35px); }
    .af-pump .fp-port svg { width: min(100%, 55px); }
    .af-pump .fp-valve > span, .af-pump .fp-port > span { font-size: .49rem; min-height: .9rem; padding: 0; }
    .af-pump .fp-valve-travel { width: 96%; height: 19px; margin: 0; }
    .af-pump .fp-rail { grid-template-columns: minmax(0, 1fr) auto; padding: .18rem .38rem .25rem; gap: .18rem .4rem; }
    .af-pump .fp-circulation { grid-row: 1; grid-column: 1 / -1; height: 30px; }
    .af-pump .fp-feedback, .af-pump .fp-rail > div { font-size: .61rem; }
    .af-pump .fp-rail output { font-size: .68rem; }
}
@media (max-width: 760px) and (min-height: 785px) {
    .af-pump .fp-gauge-master { width: min(100%, 86px); }
    .af-pump .fp-mode-switch button, .af-pump .fp-frame-controls button { min-height: 34px; }
    .af-pump .fp-valve, .af-pump .fp-port { min-height: 44px; }
    .af-pump .fp-valve svg { width: min(100%, 41px); }
    .af-pump .fp-port svg { width: min(100%, 63px); }
    .af-pump .fp-valve-travel { height: 23px; }
    .af-pump .fp-tank-feed { min-height: 28px; }
}
.af-pump .fp-station-short { display: none; }
@media (max-width: 760px) {
    .af-pump .fp-toolbar [data-fullscreen] { min-width: 33px; }
    .af-pump .fp-toolbar [data-fullscreen-label] { display: none; }
    .af-pump .fp-tank-switches { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .16rem; }
    .af-pump .fp-tank-switches button { min-height: 34px; display: block; text-align: center; padding-inline: .12rem; }
    .af-pump .fp-tank-switches button > :is(i,b) { display: none; }
    .af-pump .fp-tank-switches button > span { font-size: 0; }
    .af-pump .fp-tank-switches button > span > span { font-size: .64rem; text-transform: capitalize; }
    .af-pump .fp-tank-switches button[aria-pressed="true"] { border-color: #9dc5a3; color: #e7f2e4; background: #355144; }
    .af-pump .fp-feedback { line-height: 1.16; }
}
@media (max-width: 760px) and (max-height: 780px) {
    .af-pump .fp-lower { grid-template-columns: repeat(4, minmax(0,1fr)); gap: .18rem; }
    .af-pump .fp-station-label > span:not(.fp-station-short) { display: none; }
    .af-pump .fp-station-short { display: inline; }
    .af-pump .fp-gauge-master { width: min(100%, 70px); }
    .af-pump .fp-station-body { grid-template-columns: 1fr; }
    .af-pump .fp-station-hardware .fp-port { align-self: start; }
    .af-pump .fp-port svg { width: min(100%, 37px); }
    .af-pump .fp-port > span { overflow-wrap: anywhere; }
    .af-pump .fp-station-meter .fp-gauge { width: min(100%, 39px); }
    .af-pump .fp-valve svg { width: min(100%, 30px); }
    .af-pump .fp-valve-travel { height: 22px; }
}
@media (max-width: 760px) and (max-height: 780px) {
    .af-pump .fp-crumb { display: none; }
    .af-pump .fp-header { margin-top: 0; }
    .af-pump .fp-gauge-master { width: min(100%, 64px); }
    .af-pump .fp-station-meter .fp-gauge-output {
        position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
        margin: 0; color: #e6eee8; background: #192222;
    }
    .af-pump .fp-station-meter .fp-dial-units { display: none; }
    .af-pump .fp-station-hardware .fp-port > span { display: none; }
    .af-pump .fp-station-hardware .fp-port::after { content: "Attach"; color: #25322e; font: 700 .50rem/1.1 var(--fp-mono); }
    .af-pump .fp-station-hardware .fp-port[aria-pressed="true"]::after { content: "Detach"; }
    .af-pump .fp-circulation { height: 26px; }
}
