:root {
  --lab-bg: #050f1f;
  --lab-surface: #0a1a31;
  --lab-surface-2: #0e2340;
  --lab-line: rgba(151, 177, 208, .16);
  --lab-text: #f4f8fc;
  --lab-muted: #8595a9;
  --lab-signal: #ff263d;
  --lab-green: #39d98a;
  --lab-amber: #ffbd4a;
  --lab-blue: #4a9fff;
  --lab-wrap: min(1440px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--lab-text);
  background:
    radial-gradient(circle at 85% 4%, rgba(44,102,172,.14), transparent 27%),
    var(--lab-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { color: inherit; }
.skip-link {
  position: fixed;
  top: -60px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--lab-signal);
}
.skip-link:focus { top: 10px; }

.lab-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--lab-line);
  background: rgba(5,15,31,.88);
  backdrop-filter: blur(18px);
}
.lab-brand { display: flex; align-items: center; gap: 18px; justify-self: start; }
.lab-brand {
  padding: 0;
  background: transparent;
}
.lab-logo-crop {
  width: 164px;
  height: 40px;
  display: block;
  overflow: hidden;
}
.lab-logo-crop img {
  width: 164px;
  max-width: none;
  height: auto;
}
.lab-brand > span:not(.lab-logo-crop) {
  padding-left: 18px;
  border-left: 1px solid var(--lab-line);
  color: var(--lab-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lab-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 28px;
}
.lab-nav a {
  height: 100%;
  display: grid;
  place-content: center;
  border-bottom: 2px solid transparent;
  color: var(--lab-muted);
  font-size: .8125rem;
  font-weight: 800;
}
.lab-nav a.active { color: var(--lab-text); border-color: var(--lab-signal); }
.lab-exit {
  min-height: 44px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--lab-text);
  font-size: .8125rem;
  font-weight: 800;
  transition: border-color .2s, background .2s;
}
.lab-exit:hover,
.lab-exit:focus-visible { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.lab-exit > span:first-child { color: var(--lab-signal); font-size: 1rem; }
.lab-exit-short { display: none; }
.mobile-copy { display: none; }

.lab-main { width: var(--lab-wrap); margin: 0 auto; padding: 48px 0 70px; }
.lab-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.lab-eyebrow,
.panel-kicker {
  margin: 0 0 7px;
  color: var(--lab-signal);
  font: 800 .72rem/1.3 Consolas, "SFMono-Regular", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.lab-heading h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.05rem, 2.8vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.046em;
  text-wrap: balance;
}
.simulation-state { display: flex; align-items: center; gap: 13px; padding-bottom: 5px; }
.simulation-state .state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lab-green);
  box-shadow: 0 0 0 7px rgba(57,217,138,.1), 0 0 25px rgba(57,217,138,.45);
}
.simulation-state.is-stale .state-dot { background: var(--lab-amber); box-shadow: 0 0 0 7px rgba(255,189,74,.1); }
.simulation-state div { display: grid; gap: 2px; }
.simulation-state strong { font-size: .8125rem; }
.simulation-state small { color: var(--lab-muted); font-size: .75rem; }

.control-bar {
  min-height: 76px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 16px;
  padding: 13px 14px 13px 20px;
  border: 1px solid var(--lab-line);
  background: rgba(10,26,49,.72);
}
.control-bar label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  color: var(--lab-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.control-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--lab-line);
  border-radius: 0;
  outline: 0;
  color: var(--lab-text);
  background: #0c1e37;
}
.scenario-summary { display: grid; gap: 3px; }
.scenario-summary span { color: var(--lab-muted); font: .7rem/1.2 Consolas, monospace; text-transform: uppercase; }
.scenario-summary strong { overflow: hidden; font-size: .8125rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.control-actions { display: flex; gap: 7px; }
.control-actions button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--lab-line);
  background: #0d213c;
  font-size: .8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.control-actions button:hover { border-color: rgba(255,255,255,.38); background: #122b4d; }
.control-actions .danger-action { border-color: rgba(255,38,61,.45); color: #ff7d8b; }

.kpi-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 1px;
  background: var(--lab-line);
}
.kpi { min-height: 176px; padding: 25px; background: var(--lab-surface); }
.kpi-primary { background: linear-gradient(135deg, #112946, #0b1c34); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kpi-label span { color: var(--lab-muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.kpi-label i { color: var(--lab-muted); font: normal .7rem/1 Consolas, monospace; }
.kpi > strong { display: flex; align-items: baseline; gap: 8px; margin-top: 19px; font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1; letter-spacing: -.045em; }
.kpi > strong b { font-weight: 650; }
.kpi > strong small { color: var(--lab-muted); font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.kpi > p { margin: 15px 0 0; color: var(--lab-muted); font-size: .75rem; }
.health-mark { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--lab-green); }
.health-mark.warning { background: var(--lab-amber); }
.health-mark.alarm { background: var(--lab-signal); box-shadow: 0 0 12px rgba(255,38,61,.6); }
.kpi .text-status { max-width: 100%; margin-top: 26px; font-size: clamp(1.6rem, 2.5vw, 2.5rem); white-space: normal; }
.kpi-range { position: relative; height: 3px; margin-top: 18px; background: rgba(255,255,255,.1); }
.kpi-range::after { content: ""; position: absolute; inset: 0 24% 0 0; background: var(--lab-green); }
.kpi-range span { position: absolute; z-index: 2; top: -3px; left: var(--position); width: 3px; height: 9px; background: white; }
.kpi footer { display: flex; justify-content: space-between; margin-top: 7px; color: var(--lab-muted); font: .7rem/1 Consolas, monospace; }

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  grid-template-areas:
    "trend asset"
    "process events";
  gap: 1px;
  background: var(--lab-line);
}
.panel { min-width: 0; background: var(--lab-surface); }
.trend-panel { grid-area: trend; min-height: 500px; padding: 28px; }
.asset-panel { grid-area: asset; padding: 28px; }
.process-panel { grid-area: process; padding: 28px; }
.event-panel { grid-area: events; padding: 28px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.panel-head h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.015em; }
.panel-head > a { color: var(--lab-muted); font-size: .75rem; font-weight: 750; }
.panel-head > a span { margin-left: 7px; color: var(--lab-signal); }
.panel-head > i { color: var(--lab-green); font: normal .72rem/1 Consolas, monospace; }
.legend { display: flex; gap: 15px; color: var(--lab-muted); font-size: .7rem; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 2px; background: var(--lab-signal); }
.legend .line-two { background: var(--lab-blue); }
.legend .limit { border-top: 1px dashed var(--lab-amber); background: none; }
.chart-wrap { position: relative; height: 395px; margin-top: 28px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--lab-amber);
  background: rgba(5,15,31,.7);
  font: .72rem/1 Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.chart-empty[hidden] { display: none; }

.asset-id { color: var(--lab-muted); font: .7rem/1.2 Consolas, monospace; }
.asset-visual { min-height: 205px; display: flex; align-items: center; justify-content: space-around; gap: 20px; }
.rotor {
  width: 110px;
  height: 110px;
  position: relative;
  display: grid;
  place-content: center;
  border: 1px solid var(--lab-line);
  border-radius: 50%;
}
.rotor::before, .rotor::after, .rotor span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(var(--lab-signal), transparent);
  transform-origin: 50% 0;
}
.rotor::before { transform: rotate(0deg); }
.rotor::after { transform: rotate(120deg); }
.rotor span::before { transform: rotate(240deg); }
.rotor span {
  width: 16px;
  height: 16px;
  z-index: 2;
  border-radius: 50%;
  background: var(--lab-text);
  box-shadow: 0 0 22px rgba(255,255,255,.4);
}
.lab-running .rotor { animation: rotate 2.4s linear infinite; }
.asset-health { display: grid; gap: 6px; }
.asset-health span { color: var(--lab-muted); font-size: .72rem; }
.asset-health strong { font-size: 2.4rem; letter-spacing: -.05em; }
.asset-health strong b { font-weight: 650; }
.asset-metrics, .electrical-values { margin: 0; }
.asset-metrics > div, .electrical-values > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--lab-line);
  font-size: .76rem;
}
.asset-metrics dt, .electrical-values dt { color: var(--lab-muted); }
.asset-metrics dd, .electrical-values dd { margin: 0; font-family: Consolas, monospace; }

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.process-flow li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; }
.process-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  left: 51px;
  right: 10px;
  height: 1px;
  background: var(--lab-line);
}
.process-flow li.is-active:not(:last-child)::after {
  background-image: linear-gradient(90deg, var(--lab-green) 50%, transparent 50%);
  background-size: 12px 1px;
  animation: flow 1.2s linear infinite;
}
.process-icon {
  width: 48px;
  height: 48px;
  z-index: 1;
  display: grid;
  place-content: center;
  border: 1px solid var(--lab-line);
  border-radius: 50%;
  color: var(--lab-green);
  background: var(--lab-surface);
  font: 800 .72rem/1 Consolas, monospace;
}
.process-flow div { z-index: 1; display: grid; gap: 2px; background: var(--lab-surface); }
.process-flow small { color: var(--lab-muted); font: .7rem/1 Consolas, monospace; }
.process-flow strong { font-size: .76rem; }
.process-flow em { color: var(--lab-green); font-size: .72rem; font-style: normal; }

.event-count { color: var(--lab-muted); font-size: .7rem; }
.event-count b { color: var(--lab-text); }
.event-list { display: grid; gap: 1px; margin-top: 23px; max-height: 210px; overflow: auto; }
.event-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--lab-line);
}
.event-item time { color: var(--lab-muted); font: .7rem/1.4 Consolas, monospace; }
.event-item strong { font-size: .76rem; }
.event-item p { margin: 2px 0 0; color: var(--lab-muted); font-size: .7rem; }
.event-item > span { align-self: start; color: var(--lab-blue); font: .7rem/1 Consolas, monospace; }
.event-item.warning > span { color: var(--lab-amber); }
.event-item.alarm > span { color: var(--lab-signal); }

.lab-footer {
  width: var(--lab-wrap);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 25px 0 38px;
  border-top: 1px solid var(--lab-line);
  color: var(--lab-muted);
  font-size: .72rem;
}

/* Unifilar */
.mimic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1px;
  background: var(--lab-line);
}
.mimic-canvas { padding: 20px; overflow: hidden; }
.mimic-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 40px;
  padding-inline: 8px;
  color: var(--lab-muted);
  font-size: .7rem;
}
.mimic-toolbar span { display: flex; align-items: center; gap: 7px; }
.mimic-toolbar i { width: 13px; height: 2px; background: var(--lab-green); }
.mimic-toolbar .open-state { background: var(--lab-muted); }
.mimic-toolbar .alarm-state { background: var(--lab-signal); }
.mimic-toolbar .mimic-hint { margin-left: auto; }
.mimic-scroll { overflow: auto; background: #071528; }
.single-line { min-width: 840px; width: 100%; height: auto; display: block; }
.single-line text { fill: var(--lab-muted); font-family: Inter, "Segoe UI", sans-serif; }
.single-line .unit-name { fill: var(--lab-text); font-size: 15px; font-weight: 800; }
.single-line .unit-reading { fill: var(--lab-green); font-size: 12px; font-family: Consolas, monospace; }
.single-line .symbol { fill: var(--lab-text); font-size: 22px; font-weight: 800; text-anchor: middle; }
.single-line .energized-stroke { fill: rgba(57,217,138,.05); stroke: var(--lab-green); stroke-width: 3; }
.single-line .conductor { fill: none; stroke: var(--lab-green); stroke-width: 3; }
.single-line .flow-line { stroke-dasharray: 10 8; animation: svg-flow 1.2s linear infinite; }
.single-line .breaker { fill: var(--lab-green); stroke: var(--lab-green); stroke-width: 2; }
.single-line .breaker-label {
  font: 10px Consolas, monospace;
  paint-order: stroke;
  stroke: #071528;
  stroke-width: 7px;
  stroke-linejoin: round;
}
.single-line .bus { fill: none; stroke-width: 8; }
.single-line .bus-label {
  fill: var(--lab-text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  paint-order: stroke;
  stroke: #071528;
  stroke-width: 9px;
  stroke-linejoin: round;
}
.single-line .transformer { fill: none; }
.single-line .device-label { fill: var(--lab-muted); font-size: 12px; text-anchor: middle; }
.single-line .transformer-label { text-anchor: start; }
.single-line .grid-symbol { fill: none; stroke: var(--lab-blue); stroke-width: 3; }
.single-line .power-badge rect { fill: #0c203a; stroke: var(--lab-line); }
.single-line .power-badge text { font: 10px Consolas, monospace; }
.single-line .power-badge .badge-value { fill: var(--lab-text); font-size: 22px; font-weight: 800; }
.single-line .alarm-source { opacity: 0; transition: opacity .2s; }
.single-line .alarm-source rect { fill: var(--lab-signal); stroke: none; }
.single-line .alarm-source text {
  fill: white;
  font: 800 9px Consolas, monospace;
  text-anchor: middle;
  letter-spacing: .04em;
}
.single-line.is-alarm .alarm-source { opacity: 1; }
.has-warning .single-line-desktop .alarm-source,
.has-alarm .single-line-desktop .alarm-source { opacity: 1; }
.single-line.is-alarm .unit:nth-of-type(2) .generator { stroke: var(--lab-signal); }
.single-line.is-alarm .unit:nth-of-type(2) .breaker { fill: var(--lab-signal); stroke: var(--lab-signal); }
.single-line.is-stale { opacity: .48; }
.mobile-unit-view { display: none; }
.mobile-single-line { min-width: 0; }
.mobile-single-line .water-flow,
.mobile-single-line .water-wave {
  fill: none;
  stroke: var(--lab-blue);
  stroke-width: 3;
}
.mobile-single-line .water-flow { stroke-dasharray: 9 7; animation: svg-flow 1.2s linear infinite; }
.mobile-single-line .mechanical-shaft {
  fill: none;
  stroke: var(--lab-muted);
  stroke-width: 5;
}
.mobile-single-line .shaft-label {
  fill: var(--lab-muted);
  font: 11px Consolas, monospace;
}
.mobile-single-line .device-copy { text-anchor: start; }
.mobile-single-line .copy-kicker {
  fill: var(--lab-signal);
  font: 800 11px Consolas, monospace;
  letter-spacing: .035em;
}
.mobile-single-line .copy-title {
  fill: var(--lab-text);
  font-size: 15px;
  font-weight: 800;
}
.mobile-single-line .copy-meta {
  fill: var(--lab-muted);
  font: 12px Consolas, monospace;
}
.mobile-single-line.is-alarm .generator,
.mobile-single-line.is-alarm .breaker,
.mobile-single-line.is-alarm .transformer {
  fill: rgba(255,38,61,.08);
  stroke: var(--lab-signal);
}
.mobile-single-line.is-alarm .breaker { fill: var(--lab-signal); }
.mobile-unit-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--lab-line);
}
.mobile-unit-head div { display: grid; gap: 4px; }
.mobile-unit-head span {
  color: var(--lab-muted);
  font: .7rem/1.2 Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mobile-unit-head strong { font-size: .9rem; }
.mobile-unit-head > b {
  color: var(--lab-green);
  font: 750 .72rem/1.2 Consolas, monospace;
  text-transform: uppercase;
}
.mobile-unit-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
}
.mobile-unit-metrics span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 16px 10px;
  color: var(--lab-muted);
  font-size: .68rem;
}
.mobile-unit-metrics span:not(:last-child) { border-right: 1px solid var(--lab-line); }
.mobile-unit-metrics strong {
  color: var(--lab-text);
  font: 750 .75rem/1.2 Consolas, monospace;
  white-space: nowrap;
}
.mobile-full-note {
  margin: 0;
  padding: 16px 14px 7px;
  color: var(--lab-muted);
  font-size: .72rem;
}
.mimic-sidebar { display: grid; align-content: start; gap: 1px; background: var(--lab-surface); }
.status-panel, .compact-events { padding: 25px; }
.large-status { display: block; margin: 34px 0 6px; font-size: 2rem; letter-spacing: -.04em; }
.status-panel > p { margin: 0 0 28px; color: var(--lab-muted); font-size: .75rem; }
.electrical-values > div { padding-block: 14px; }
.compact-events .event-list { max-height: 330px; }

.is-paused .state-dot { background: var(--lab-amber); box-shadow: 0 0 0 7px rgba(255,189,74,.1); }
.is-paused .rotor, .is-paused .flow-line { animation-play-state: paused; }
.has-alarm [data-unit-status], .has-alarm [data-status-code] { color: var(--lab-signal); }
.has-warning [data-unit-status], .has-warning [data-status-code] { color: var(--lab-amber); }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes flow { to { background-position: 12px 0; } }
@keyframes svg-flow { to { stroke-dashoffset: -36; } }

@media (max-width: 1080px) {
  .lab-header { grid-template-columns: 1fr auto; padding-inline: 18px; }
  .lab-nav { order: 3; grid-column: 1 / -1; min-height: 46px; justify-content: center; border-top: 1px solid var(--lab-line); }
  .control-bar { grid-template-columns: 1fr auto; }
  .scenario-summary { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; grid-template-areas: "trend" "asset" "process" "events"; }
  .mimic-layout { grid-template-columns: 1fr; }
  .mimic-sidebar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --lab-wrap: calc(100vw - 24px); }
  .lab-header { min-height: 64px; padding-top: 12px; }
  .lab-logo-crop { width: 138px; height: 34px; }
  .lab-logo-crop img { width: 138px; }
  .lab-brand > span:not(.lab-logo-crop) { display: none; }
  .lab-exit {
    min-height: 44px;
    padding-inline: 11px;
    font-size: .75rem;
  }
  .lab-nav { gap: 36px; }
  .lab-main { padding-top: 32px; }
  .lab-heading { display: grid; align-items: start; margin-bottom: 27px; }
  .lab-heading h1 { max-width: 340px; font-size: 2.05rem; line-height: 1.08; }
  .simulation-state { padding: 9px 0; }
  .control-bar { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .control-bar label { grid-template-columns: 1fr; gap: 7px; }
  .control-actions { display: grid; grid-template-columns: auto auto 1fr auto; }
  .control-actions button { padding-inline: 10px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 150px; padding: 18px; }
  .kpi-primary { grid-column: 1 / -1; }
  .kpi:last-child { grid-column: 1 / -1; }
  .kpi > strong { margin-top: 16px; }
  .trend-panel, .asset-panel, .process-panel, .event-panel { padding: 20px 16px; }
  .trend-panel { min-height: 400px; }
  .chart-wrap { height: 310px; }
  .panel-head { gap: 12px; }
  .legend { display: grid; gap: 5px; }
  .process-flow { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .process-flow li:nth-child(2)::after { display: none; }
  .process-flow li:nth-child(3)::before {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 100%;
    width: 1px;
    height: 26px;
    background: var(--lab-green);
  }
  .event-item { grid-template-columns: 42px 1fr; }
  .event-item > span { display: none; }
  .lab-footer { display: grid; }
  .mimic-canvas { padding: 10px; }
  .mimic-toolbar { flex-wrap: wrap; height: auto; padding-block: 8px; }
  .mimic-toolbar .mimic-hint { display: none; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .mimic-scroll { display: none; }
  .mobile-unit-view { display: block; background: #071528; }
  .mobile-single-line {
    width: min(100%, 330px);
    min-width: 0;
    margin-inline: auto;
  }
  .mimic-sidebar { grid-template-columns: 1fr; }
  .status-panel .electrical-values { display: none; }
  .status-panel { padding-bottom: 20px; }
  .large-status { margin-top: 24px; }
}

@media (max-width: 340px) {
  :root { --lab-wrap: calc(100vw - 16px); }
  .lab-header { gap: 10px; padding-inline: 10px; }
  .lab-logo-crop { width: 126px; height: 31px; }
  .lab-logo-crop img { width: 126px; }
  .lab-exit { padding-inline: 9px; }
  .lab-exit-long { display: none; }
  .lab-exit-short { display: inline; }
  .control-actions { grid-template-columns: 44px 1fr 1.45fr 44px; }
  .control-actions button {
    min-width: 0;
    padding-inline: 7px;
    font-size: .75rem;
    white-space: nowrap;
  }
  .mimic-canvas { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
