@font-face {
  font-family: Barlow;
  src: url("/assets/screen/fonts/Barlow-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/assets/screen/fonts/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/screen/fonts/BarlowCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/screen/fonts/BarlowCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  font-family: Barlow, sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
[hidden],
.hidden {
  display: none;
}
#board {
  width: min(100%, calc(100dvh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 43% 28%,
    color-mix(in srgb, var(--panel) 80%, var(--background)),
    var(--background) 68%
  );
}
.field {
  position: absolute;
  left: var(--field-left);
  top: var(--field-top);
  width: var(--field-width);
  height: var(--field-height);
  min-width: 0;
  min-height: 0;
}
.grid-on .field {
  outline: 1px dashed var(--grid);
}
.grid-on .field::after {
  content: attr(data-box);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--background);
  color: var(--grid);
  font: 12px monospace;
  pointer-events: none;
  z-index: 2000;
}
svg {
  display: block;
  width: 100%;
  height: 100%;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.metal-frame,
.instrument-frame,
.status-strip,
.pump-card,
.search-field,
.brand-frame,
.status-pill {
  border: 0.12cqw solid var(--metal-dark);
  border-radius: 0.9cqw;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--panel), var(--metal-black) 20%),
    var(--background)
  );
  box-shadow:
    inset 0 0.12cqw 0.13cqw color-mix(in srgb, var(--metal-light) 65%, transparent),
    inset 0 -0.1cqw 0.16cqw var(--shadow),
    0 0.14cqw 0.2cqw color-mix(in srgb, var(--shadow) 70%, transparent);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.65cqw;
  width: 100%;
  height: 100%;
  padding: 0.6cqw;
  border-color: var(--search-edge);
}
.search-field svg {
  width: 1.5cqw;
  height: 1.5cqw;
  flex-shrink: 0;
}
.search-field input {
  color: var(--text);
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
  outline: none;
  font-size: 1.4cqw;
}
.search-field input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.pump-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45cqw;
  overflow-y: auto;
  scrollbar-color: var(--metal-dark) var(--background);
  scrollbar-width: thin;
  padding-right: 0.65cqw;
}
.pump-card {
  position: relative;
  flex: 0 0 5.45cqw;
  width: 100%;
  text-align: left;
  padding: 0.35cqw 0.6cqw 0.35cqw 3.05cqw;
  line-height: 1.08;
  overflow: hidden;
}
.pump-card.selected {
  border-color: var(--orange);
  border-width: 0.16cqw;
}
.pump-card .dot {
  position: absolute;
  left: 0.75cqw;
  top: 0.75cqw;
  width: 1.18cqw;
  height: 1.18cqw;
  border-radius: 50%;
  background: var(--inactive);
  box-shadow: inset 0 0.1cqw 0.1cqw color-mix(in srgb, var(--text) 35%, transparent);
}
.pump-card strong {
  display: block;
  font-weight: 600;
  font-size: 1.6cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pump-card .pump-description,
.pump-card .zone {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2cqw;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.empty-list {
  font-size: 1.25cqw;
  padding: 1cqw;
}
.brand-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0.35cqw;
  background: var(--unit);
  border-color: var(--metal-light);
}
.brand-frame img {
  width: 100%;
  height: 78%;
  object-fit: cover;
  border-radius: 0.6cqw 0.6cqw 0 0;
}
.brand-name {
  height: 22%;
  display: grid;
  place-items: center;
  font-family: Barlow, sans-serif;
  font-weight: 900;
  font-size: 2.55cqw;
  letter-spacing: 0.08cqw;
}
.heading-name {
  margin: 0;
  font-family: Barlow, sans-serif;
  font-size: 2.45cqw;
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heading-zone {
  display: flex;
  align-items: center;
  gap: 0.4cqw;
  margin-top: 0.6cqw;
  font-size: 1.8cqw;
  white-space: nowrap;
  overflow: hidden;
}
.heading-zone svg {
  flex: 0 0 1.7cqw;
  height: 2cqw;
  color: var(--orange);
}
.heading-zone span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55cqw;
  color: var(--status-color);
  border-color: var(--status-color);
  font-size: 1.9cqw;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.75cqw;
}
.status-pill .dot {
  flex: 0 0 1.25cqw;
  height: 1.25cqw;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.no-link {
  font-size: 1.35cqw;
}
.user {
  display: flex;
  justify-content: flex-end;
  gap: 0.7cqw;
  align-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6cqw;
  white-space: nowrap;
}
.user svg {
  width: 1.9cqw;
  height: 1.9cqw;
}
.updated {
  display: flex;
  gap: 0.4cqw;
  justify-content: flex-end;
  align-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15cqw;
  white-space: nowrap;
  color: var(--text-secondary);
}
.updated svg {
  width: 1cqw;
  height: 1cqw;
}
.gauge-svg {
  --legacy-gauge-13: var(--face-center);
  --legacy-gauge-14: color-mix(in srgb, var(--face-center) 70%, var(--face-edge));
  --legacy-gauge-15: var(--face-edge);
}
.gauge-svg.dim {
  --legacy-gauge-13: var(--face-dim-light);
  --legacy-gauge-14: var(--face-dim);
  --legacy-gauge-15: var(--face-dim-dark);
}
.gauge-needle {
  transform-origin: 256px 256px;
  transition: transform 260ms ease-out;
}
.gauge-scale {
  fill: var(--ink);
  color: var(--ink);
}
.tick {
  stroke: currentColor;
  stroke-width: 2;
}
.tick.major {
  stroke-width: 4;
}
.gauge-number,
.gauge-unit {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
}
.gauge-no-data {
  fill: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
}
.pump-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pump-placeholder {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75cqw;
  background: color-mix(in srgb, var(--background) 85%, transparent);
}
.drum {
  width: 100%;
  height: 100%;
  border-radius: 0.65cqw;
  border: 0.24cqw solid transparent;
  padding: 0.23cqw;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background:
    linear-gradient(var(--unit), var(--unit)) padding-box,
    linear-gradient(
      165deg,
      var(--metal-light),
      var(--metal-dark) 18%,
      var(--metal-light) 35%,
      var(--metal-mid) 55%,
      var(--metal-dark) 75%,
      var(--metal-light)
    )
    border-box;
  overflow: hidden;
}
.drum-digits {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}
.drum-tile {
  display: grid;
  place-items: center;
  flex: 0 0 1.86cqw;
  width: 1.86cqw;
  font-size: 2cqw;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    to bottom,
    var(--drum-bottom),
    var(--drum-top) 38%,
    var(--drum-top) 58%,
    var(--drum-bottom)
  );
  color: var(--ink);
  border-right: 0.065cqw solid color-mix(in srgb, var(--metal-dark), transparent 40%);
  box-shadow: inset 0 0.15cqw 0.2cqw color-mix(in srgb, var(--shadow) 15%, transparent);
}
.drum-tile.punctuation {
  width: 0.72cqw;
  flex-basis: 0.72cqw;
}
.drum-unit {
  flex: 1 1 auto;
  min-width: 1.35cqw;
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8cqw;
  padding: 0 0.2cqw;
  color: var(--text);
  background: var(--unit);
}
.drum.dim .drum-tile {
  background: linear-gradient(var(--face-dim-dark), var(--face-dim-light), var(--face-dim));
}
.tube {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.tube-heading {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45cqw;
  padding: 0.4cqw 0.3cqw 0;
  height: 3.2cqw;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2cqw;
  font-weight: 600;
  line-height: 1.04;
}
.tube-heading svg {
  width: 2.3cqw;
  height: 2.3cqw;
  flex-shrink: 0;
}
.tube-heading span {
  max-width: 4.3cqw;
}
.tube.water {
  color: var(--blue);
}
.tube.fuel {
  color: var(--orange);
}
.tube-heading span {
  color: var(--text);
}
.tube.water .tube-heading svg {
  color: var(--water-light);
}
.tube-graph {
  height: calc(100% - 3cqw);
}
.glass-back {
  fill: var(--glass-back);
}
.glass-outline {
  fill: none;
  stroke: var(--glass-line);
  stroke-width: 2.2;
}
.glass-reflection {
  stroke: var(--text);
  opacity: 0.5;
  stroke-width: 2;
}
.tube-liquid {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 260ms ease-out;
}
.tube-meniscus {
  fill: currentColor;
  stroke: var(--water-light);
  stroke-width: 1;
  transition: transform 260ms ease-out;
}
.tube.fuel .tube-meniscus {
  stroke: var(--yellow);
}
.tube-number {
  fill: var(--text);
  font-family: "Barlow Condensed", sans-serif;
}
.tube-tick {
  stroke: var(--text);
  stroke-width: 1.4;
}
.throttle {
  height: 100%;
  width: 100%;
  position: relative;
}
.throttle-title,
.throttle-number {
  fill: var(--text);
  font-family: "Barlow Condensed", sans-serif;
}
.throttle-rail {
  fill: var(--inactive);
  stroke: var(--metal-dark);
  stroke-width: 2;
}
.throttle-fill,
.throttle-wait {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 260ms ease-out;
}
.throttle-fill {
  fill: var(--inactive);
}
.throttle[data-position="1"] .throttle-fill {
  fill: var(--green);
}
.throttle[data-position="2"] .throttle-fill {
  fill: var(--throttle-yellow);
}
.throttle[data-position="3"] .throttle-fill {
  fill: var(--red);
}
.throttle-wait {
  fill: var(--inactive);
}
.throttle-handle {
  transition: transform 260ms ease-out;
}
.handle-outline {
  stroke: var(--metal-dark);
  stroke-width: 0.6;
}
.handle-groove {
  stroke: var(--metal-dark);
  stroke-width: 0.6;
}
.disabled {
  opacity: 0.45;
}
.rotary {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.rotary-outline {
  stroke: var(--metal-light);
  stroke-width: 1.2;
}
.rotary-recess {
  fill: var(--unit);
  stroke: var(--metal-dark);
  stroke-width: 1;
}
.rotary-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  fill: var(--ink);
}
.rotary-moving {
  transform-origin: 80px 80px;
  transition: transform 260ms ease-out;
}
.rotary-pointer {
  fill: var(--red);
  stroke: var(--text);
  stroke-width: 0.6;
}
.rotary-indicator {
  color: var(--inactive);
}
.rotary.remote.active .rotary-indicator {
  color: var(--green);
}
.rotary.inhibit.active .rotary-indicator {
  color: var(--red);
}
.rotary-insert {
  fill: var(--metal-light);
  opacity: 0.9;
}
.control-message {
  position: absolute;
  top: calc(100% + 0.1cqw);
  left: -5%;
  width: 110%;
  color: var(--text-secondary);
  font-size: 0.8cqw;
  line-height: 1.1;
  text-align: center;
}
.rotary.failed {
  outline: 0.12cqw solid var(--red);
}
.rotary.denied {
  opacity: 0.45;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 0.55cqw 0.25cqw;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.45cqw;
  min-width: 0;
  height: 90%;
  padding: 0 0.4cqw;
  border-right: 0.06cqw solid var(--rule);
  color: var(--inactive);
}
.status-item:last-child {
  border-right: 0;
}
.status-item svg {
  flex: 0 0 3cqw;
  width: 3cqw;
  height: 3cqw;
}
.status-item.key.active {
  color: var(--yellow);
}
.status-item.engine.active,
.status-item.remote.active {
  color: var(--green);
}
.status-item.inhibit.active,
.status-item.oil.active {
  color: var(--red);
}
.status-item.fuel.active {
  color: var(--orange);
}
.status-item.water.active {
  color: var(--water-light);
}
.water-exclamation {
  stroke: var(--background);
}
.water.active .water-exclamation {
  stroke: var(--red);
}
.status-copy {
  min-width: 0;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--text);
  line-height: 1.15;
}
.status-copy strong {
  display: block;
  font-size: 1.15cqw;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: normal;
}
.status-copy span {
  display: block;
  font-size: 1.02cqw;
  color: var(--text-secondary);
  margin-top: 0.2cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-frame {
  border-radius: 1.1cqw;
  overflow: hidden;
  border: 0.1cqw solid var(--metal-light);
  height: 100%;
  width: 100%;
}
.map-frame .leaflet-control-attribution {
  font:
    0.85cqw Barlow,
    sans-serif;
}
.map-frame .leaflet-control-zoom a {
  width: 2.7cqw;
  height: 2.7cqw;
  line-height: 2.5cqw;
  font-size: 2.2cqw;
}
.map-window-open {
  position: absolute;
  right: 1.1cqw;
  top: 0.7cqw;
  z-index: 800;
  background: var(--drum-top);
  color: var(--ink);
  width: 2.7cqw;
  height: 2.7cqw;
  border: 0;
  border-radius: 0.4cqw;
  font-size: 2cqw;
}
.map-layers {
  position: absolute;
  left: 1.1cqw;
  top: 0.7cqw;
  z-index: 800;
  background: var(--drum-top);
  color: var(--ink);
  height: 2.7cqw;
  padding: 0 0.7cqw;
  border: 0;
  border-radius: 0.4cqw;
  font-size: 1.2cqw;
}
.map-notice {
  position: absolute;
  left: 50%;
  top: 0.7cqw;
  transform: translateX(-50%);
  z-index: 700;
  padding: 0.4cqw 1cqw;
  border-radius: 0.4cqw;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  font-size: 1.2cqw;
  pointer-events: none;
}
.map-frame .leaflet-top .leaflet-control-zoom {
  margin-top: 4.1cqw;
}
.map-marker {
  width: 3.5cqw;
  height: 4.5cqw;
}
.map-marker svg {
  fill: var(--orange);
  stroke: var(--text);
  stroke-width: 1.2;
}
.map-marker .marker-engine {
  fill: none;
  stroke: var(--text);
  stroke-width: 1;
}
.map-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: var(--panel);
}
.banner {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--yellow);
  background: var(--warning-background);
  border: 0.07cqw solid var(--yellow);
  border-radius: 0.3cqw;
  font-size: 1.15cqw;
  padding: 0.3cqw 0.5cqw;
  z-index: 5;
}
#fatal {
  color: var(--red);
  padding: 20px;
}
#dev-panel {
  position: fixed;
  z-index: 3000;
  left: 10px;
  bottom: 8px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--orange);
  background: var(--background);
  font:
    12px Barlow,
    sans-serif;
  opacity: 0.95;
}
#dev-panel select {
  max-width: 150px;
}
#dev-panel[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  #board *,
  #board *::before,
  #board *::after {
    transition: none;
    animation: none;
  }
}
.motion-paused * {
  transition: none;
}
.throttle.unknown .throttle-handle,
.throttle.unknown .throttle-fill,
.throttle.unknown .throttle-wait {
  visibility: hidden;
}

.tube.unavailable {
  opacity: 0.4;
  filter: grayscale(1);
}
.throttle.unavailable {
  filter: grayscale(1);
}

button.status-item.water {
  background: transparent;
  border: 0;
  border-right: 0.06cqw solid var(--rule);
  border-radius: 0;
  text-align: left;
  font: inherit;
}
button.status-item.water:disabled {
  opacity: 1;
  cursor: default;
}
button.status-item.water.active {
  color: var(--red);
}
button.status-item.water:not(:disabled) {
  cursor: pointer;
}
button.status-item.water:focus-visible {
  outline: 2px solid var(--orange);
}
.alarm-confirmation {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 4px solid transparent;
  border-radius: 22px;
  padding: clamp(16px, 3vw, 30px);
  color: #16191b;
  background:
    linear-gradient(170deg, #92979b 0%, #e6e3e1 42%, var(--face-edge) 100%) padding-box,
    linear-gradient(165deg, #fff, #697278 20%, #e6e8ea 40%, #666e73 70%, #f4f4f4) border-box;
  box-shadow:
    inset 0 1px 3px #fff9,
    0 10px 35px #0009;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
}
.alarm-confirmation::backdrop {
  background: #0009;
}
.alarm-confirmation h2 {
  margin: 12px 0 20px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #d90000;
  font-size: clamp(27px, 4.2vw, 46px);
  line-height: 1.15;
}
.alarm-confirmation p {
  margin: 8px 0;
  font-size: 20px;
}
.alarm-confirmation p:empty {
  display: none;
}
.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.alarm-confirmation button {
  min-height: 60px;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 3px solid transparent;
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(#262b2e, #060707 70%, #101517) padding-box,
    linear-gradient(165deg, #fff, #6c7479 25%, #edf0f1 45%, #6c7479 75%, #fff) border-box;
  box-shadow:
    inset 0 1px 3px #fff3,
    0 2px 3px #0006;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  text-transform: uppercase;
}
.alarm-confirmation button:disabled {
  opacity: 0.55;
}
.alarm-confirmation-error {
  color: #a1222f;
}
.telemetry-indicators {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5cqw);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25cqw;
  color: #eee;
}
.telemetry-indicator {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.3cqw;
  text-align: center;
}
.telemetry-label {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.85cqw;
}
.telemetry-indicator svg {
  width: 1.7cqw;
  height: 1.7cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.telemetry-gsm svg {
  grid-column: 1 / -1;
  justify-self: center;
  stroke: none;
}
.telemetry-gsm rect {
  fill: #626b70;
}
.telemetry-gsm rect.lit {
  fill: var(--green);
}
.telemetry-gsm.warning rect.lit {
  fill: var(--yellow);
}
.telemetry-indicator.critical {
  color: #ff3200;
}
.telemetry-gsm.critical rect.lit {
  fill: #ff3200;
}
.telemetry-indicator.unavailable {
  color: #939b9e;
}
.telemetry-gsm svg.unavailable {
  display: none;
}
.telemetry-missing {
  grid-column: 1 / -1;
}

.rotary.unknown .rotary-pointer {
  visibility: hidden;
}
.rotary.unknown .rotary-indicator {
  opacity: 0.25;
}

button.status-item.water .water-exclamation {
  stroke: var(--background);
  fill: none;
}

#board[hidden] {
  display: none;
}
