/*
 * Picket 18 stand-in stations. The Bridge stylesheet (../style.css) supplies
 * the topbar, tool buttons, Help panel, exhibit card, hotspots, tour bar,
 * toast and type scale. This file adds only the schematic stage and the
 * station-specific props (clipboard, breakers, monitor, ending paper).
 */
.station-page { background: #0d1a19; }
.station-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 55% at 18% 30%, rgba(215, 187, 135, .10), transparent 70%),
    radial-gradient(ellipse 40% 55% at 52% 30%, rgba(215, 187, 135, .08), transparent 70%),
    radial-gradient(ellipse 40% 55% at 84% 30%, rgba(215, 187, 135, .08), transparent 70%),
    linear-gradient(180deg, #10201f 0%, #0f1d1c 58%, #0a1514 100%);
}
.station-generator-room .station-stage {
  background:
    radial-gradient(ellipse 42% 55% at 22% 28%, rgba(226, 200, 153, .09), transparent 70%),
    radial-gradient(ellipse 42% 55% at 66% 28%, rgba(226, 200, 153, .07), transparent 70%),
    linear-gradient(180deg, #0c1918 0%, #0b1716 60%, #081211 100%);
}
.station-art-wrap { position: absolute; left: 0; top: 0; will-change: transform; color: #d7bb87; }
.station-art { display: block; width: 100%; height: 100%; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.station-art .art-far { opacity: .75; }
.station-art .art-engine,
.station-art .art-switchboard { fill: rgba(215, 187, 135, .035); }
.station-art .art-label { fill: rgba(215, 187, 135, .62); stroke: none; font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2px; }
.station-art .art-label-strong { fill: rgba(240, 214, 157, .9); font-size: 17px; }
.station-art .art-lamp-bulb { fill: #f0d69d; stroke: none; filter: drop-shadow(0 0 18px rgba(240, 214, 157, .8)); }
.station-art .art-fan-blades { transform-box: fill-box; transform-origin: center; animation: fan-spin 1.1s linear infinite; }
.station-art .art-fan.is-catching .art-fan-blades { animation-duration: 3.4s; }
.station-art .art-fan.is-catching rect { stroke: #f0d69d; filter: drop-shadow(0 0 10px rgba(240, 214, 157, .55)); }
.v2-isolated .art-fan-blades { animation-play-state: paused; }
@keyframes fan-spin { to { transform: rotate(360deg); } }

.scan-pending {
  position: fixed;
  z-index: 4;
  top: 112px;
  left: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1px dashed rgba(215, 187, 135, .5);
  border-radius: 4px;
  background: rgba(15, 34, 34, .7);
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1.6px;
  pointer-events: none;
}

.station-hotspots .hotspot { position: fixed; }
.station-hotspot .hotspot-label { opacity: 1; }
.station-hotspot.is-near { background: #dec28d; color: #193a35; }

.rhythm-caption {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(215, 187, 135, .45);
  border-radius: 4px;
  background: rgba(15, 34, 34, .88);
  color: #f0d69d;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
}

/* Tour bar: walk progress instead of viewpoints */
.station-progress { position: relative; flex: 1; height: 4px; margin: 0 18px; border-radius: 2px; background: rgba(241, 239, 226, .12); }
.station-progress #progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--accent); }
.station-progress i { position: absolute; inset: 0; }
.station-progress b { position: absolute; top: -5px; width: 2px; height: 14px; margin-left: -1px; background: #f3f1e8; opacity: .55; }
.station-progress b.is-exit { background: var(--accent); opacity: .9; }
.station-move {
  position: fixed;
  z-index: 5;
  right: 34px;
  bottom: 122px;
  min-width: 82px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  color: var(--ink);
  font: 700 11px/1 inherit;
  letter-spacing: 1.7px;
  touch-action: none;
  user-select: none;
}
.station-move:hover, .station-move:focus-visible, .station-move[data-active="true"] { border-color: var(--accent); color: var(--accent); }
.station-move:disabled { display: none; }
.ending .tour-bar, .ending .station-move, .ending .story-objectives, .ending .rhythm-caption { display: none !important; }

/* Dialog content */
.station-dialog .exhibit-copy p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: #d2dbd0; }
.station-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.station-dialog-actions .primary-button.compact { width: auto; margin: 0; }
.station-log { margin: 16px 0; padding: 14px 16px; list-style: none; border-left: 1px solid var(--accent); background: rgba(215, 187, 135, .05); color: #e8dfc6; font: 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.station-visual-clip { display: grid; place-items: center; gap: 14px; width: 62%; aspect-ratio: 3 / 4; border: 1px solid rgba(215, 187, 135, .55); border-radius: 6px; background: rgba(226, 209, 170, .08); color: #f0d69d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.station-visual-clip span { font-size: 40px; letter-spacing: 4px; }
.station-visual-clip b { font-size: 30px; letter-spacing: 8px; }

.board-visual { margin: 16px 0; padding: 16px; border: 1px solid rgba(241, 239, 226, .16); border-radius: 6px; background: rgba(10, 28, 27, .7); }
.breaker-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.breaker { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 9px; border: 1px solid rgba(241, 239, 226, .2); border-radius: 5px; background: rgba(20, 38, 37, .9); color: var(--ink); font-size: 10px; letter-spacing: .6px; }
.breaker:hover { border-color: var(--accent); }
.breaker-handle { width: 16px; height: 30px; border: 1px solid rgba(241, 239, 226, .55); border-radius: 3px; background: linear-gradient(180deg, #d7bb87 0 45%, transparent 45%); }
.breaker[aria-pressed="false"] .breaker-handle { background: linear-gradient(180deg, transparent 55%, #8e9c92 55%); }
.breaker small { color: #c9dcbf; font-size: 9px; letter-spacing: 1.4px; }
.breaker[aria-pressed="false"] small { color: #e8b6a5; }
.board-status { margin: 12px 0 0 !important; color: #c9dcbf !important; font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: 1.6px; }

.monitor-meter { display: grid; gap: 8px; margin: 16px 0; padding: 16px; border: 1px solid rgba(241, 239, 226, .16); border-radius: 6px; background: rgba(10, 28, 27, .7); }
.monitor-label { color: var(--muted); font-size: 9px; letter-spacing: 1.8px; }
.monitor-copy { min-height: 1.6em; color: #f0d69d; font: 600 18px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 3px; }
.duty-log { margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(215, 187, 135, .5); border-radius: 6px; background: rgba(226, 209, 170, .07); }
.duty-log .eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 9px; letter-spacing: 2px; }
.duty-log-line { margin: 0 !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; }
.duty-log-line span { margin-right: 14px; color: var(--accent); }
.duty-log-stamp { display: inline-block; margin: 12px 0 0 !important; padding: 6px 12px; border: 2px solid #d7bb87; border-radius: 3px; color: #f0d69d !important; font: 700 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: 3px; transform: rotate(-2deg); }

/* Ending: the unfinished letter */
.p18-ending { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 460px); gap: 48px; align-items: center; padding: clamp(24px, 6vw, 90px); background: rgba(8, 18, 17, .96); opacity: 0; transition: opacity .9s ease; }
.p18-ending.is-visible { opacity: 1; }
.p18-ending-paper { position: relative; max-width: 620px; justify-self: end; padding: 42px 44px 64px; border-radius: 2px; background: linear-gradient(180deg, #ede4cf, #e2d7bd); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); color: #2b2a26; transform: rotate(-.6deg); }
.p18-ending-paper pre { margin: 0; white-space: pre-wrap; font: 18px/1.75 "American Typewriter", "Courier New", Courier, monospace; }
.p18-caret { display: inline-block; width: 11px; height: 3px; margin-left: 2px; background: #2b2a26; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.p18-ending-copy h2 { margin: 14px 0 18px; font: 400 34px/1.2 Georgia, "Times New Roman", serif; }
.p18-ending-copy > p:not(.eyebrow) { color: #d2dbd0; font-size: 14px; line-height: 1.9; }
.p18-ending-copy .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 2.4px; }
.p18-ending-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 26px 0; }
.p18-ending-actions .primary-button.compact { width: auto; margin: 0; text-decoration: none; }
.p18-ending-actions .text-button { text-decoration: none; }

#diagnostics { position: fixed; z-index: 50; left: 16px; bottom: 120px; padding: 10px; background: #000a; color: #caffc9; font: 11px/1.5 monospace; white-space: pre-wrap; max-width: 480px; pointer-events: none; }

@media (max-width: 720px) {
  .scan-pending { top: 128px; left: 17px; font-size: 8px; }
  .rhythm-caption { top: 170px; font-size: 10px; white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }
  .station-move { right: 16px; bottom: 150px; }
  .breaker-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p18-ending { grid-template-columns: 1fr; gap: 26px; overflow: auto; align-content: start; }
  .p18-ending-paper { justify-self: stretch; padding: 26px 24px 40px; }
  .p18-ending-paper pre { font-size: 15px; }
  .p18-ending-copy h2 { font-size: 26px; }
}
@media (max-width: 520px) { .scan-pending { top: 160px; } }
@media (prefers-reduced-motion: reduce) {
  .station-art .art-fan-blades, .p18-caret { animation: none; }
  .p18-ending { transition: none; }
}

.station-engine-room .station-stage { touch-action: none; }
.engine-canvas { display: block; width: 100%; height: 100%; }
.station-engine-room .station-stage::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(rgba(8, 19, 18, .76), transparent);
  pointer-events: none;
}
.engine-atmosphere .engine-canvas { filter: brightness(.91) contrast(1.035); }

/* ---- Engine room: the vent fan switch bank as a selectable area ----
   No marker: hovering the bank in the scan shows a soft gold frame, and a
   click opens the 2D panel. The frame also pulses once after arrival. */
.engine-panel-frame {
  position: fixed; z-index: 3; pointer-events: none; opacity: 0;
  border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(215, 187, 135, .55), 0 0 40px rgba(215, 187, 135, .12);
  transition: opacity .35s ease;
}
.engine-panel-frame::before, .engine-panel-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid #d7bb87;
}
.engine-panel-frame::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.engine-panel-frame::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.engine-panel-frame span {
  position: absolute; left: 14px; top: 14px; padding: 5px 11px; border: 1px solid rgba(215, 187, 135, .55); border-radius: 999px;
  background: rgba(20, 38, 37, .92); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.engine-panel-frame.is-hover { opacity: 1; }
.engine-panel-frame.is-intro { animation: panel-intro 2.8s ease both; }
@keyframes panel-intro { 0%, 100% { opacity: 0; } 20%, 70% { opacity: 1; } }
.engine-panel-hover .station-stage { cursor: pointer; }
body.station-engine-room.entered .station-stage { cursor: grab; }
body.station-engine-room.entered.engine-panel-hover .station-stage { cursor: pointer; }

/* ---- Engine room: No. 1 panel close-up (vent-panel.js) ---- */
.vent-panel { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); overflow-y: auto; }
.vent-panel[hidden] { display: none; }
.vp-scrim { position: fixed; inset: 0; background: rgba(3, 9, 9, .82); backdrop-filter: blur(12px); }
.vp-close { position: fixed; z-index: 3; top: 26px; right: 28px; width: 44px; height: 44px; padding: 0; font-size: 22px; color: var(--ink);
  border: 1px solid var(--border); border-radius: 50%; background: rgba(20, 38, 37, .7); }
.vp-close:hover { border-color: var(--accent); color: var(--accent); }
.vp-stage { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 60px);
  align-items: center; width: min(1180px, 100%); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.vent-panel.is-visible .vp-stage { opacity: 1; transform: none; }

.vp-device {
  position: relative; padding: clamp(16px, 2.4vw, 30px) clamp(14px, 2.2vw, 30px) clamp(14px, 2vw, 24px); border-radius: 10px;
  background:
    radial-gradient(circle at 14px 14px, #9d9a8f 2.6px, transparent 3.4px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 14px) 14px, #9d9a8f 2.6px, transparent 3.4px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 14px calc(100% - 14px), #9d9a8f 2.6px, transparent 3.4px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #9d9a8f 2.6px, transparent 3.4px) 0 0 / 100% 100% no-repeat,
    linear-gradient(170deg, #e3dfd2 0%, #d2cdbe 55%, #bdb8a9 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .18);
  color: #1d1d1b;
}
.vp-plate { width: fit-content; margin: 0 auto clamp(12px, 2vw, 20px); padding: 6px 14px; border-radius: 3px; background: #1f2321; color: #ece6d4;
  font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2.2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.vp-plate-small { margin: clamp(12px, 2vw, 18px) auto 0; padding: 4px 10px; font-size: 9px; letter-spacing: 1.6px; background: #2a2d2a; color: #cfc8b4; }
.vp-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 22px); }
.vp-unit { display: grid; justify-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 6px; background: rgba(0, 0, 0, .05);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.vp-label { margin: 0; padding: 4px 10px; border-radius: 2px; background: #a3241c; color: #fbefe6; font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1.6px; white-space: nowrap; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }
.vp-meter { width: 100%; max-width: 170px; height: auto; }
.vp-meter-face { fill: #f4efe0; stroke: #2a2a27; stroke-width: 3; }
.vp-meter-arc { fill: none; stroke: #2a2a27; stroke-width: 1.2; }
.vp-meter-red { fill: none; stroke: #b3261e; stroke-width: 3; }
.vp-meter-ticks line { stroke: #2a2a27; stroke-width: 1.1; }
.vp-meter-numbers text, .vp-meter-unit { fill: #2a2a27; font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-anchor: middle; }
.vp-meter-unit { font-size: 7px; }
.vp-needle { transform-box: view-box; transform-origin: 60px 62px; transform: rotate(-60deg); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.vp-needle line { stroke: #111; stroke-width: 1.6; stroke-linecap: round; }
.vp-meter-pivot { fill: #222; }
.vp-unit.is-running .vp-needle { transform: rotate(-12deg); }
.vp-unit[data-fan="V-3"].is-running .vp-needle { transform: rotate(-21.6deg); }
.vp-unit.is-running:not(.is-starting) .vp-needle line { animation: vp-hum 1.8s ease-in-out infinite; transform-box: view-box; transform-origin: 60px 62px; }
@keyframes vp-hum { 50% { transform: rotate(1.2deg); } }
.vp-unit.is-arcing .vp-needle { transform: rotate(34deg); transition-duration: .06s; transition-timing-function: linear; }
.vp-lamp-row { display: flex; align-items: center; gap: 6px; margin: 0; color: #4a4843; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.4px; }
.vp-lamp { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5c6b5f, #26302a 70%); box-shadow: inset 0 0 0 1.5px #1b1f1c; }
.vp-unit.is-running .vp-lamp { background: radial-gradient(circle at 35% 30%, #d6ffe4, #45d483 45%, #17793f 100%); box-shadow: 0 0 12px rgba(83, 237, 148, .7), inset 0 0 0 1.5px #1b1f1c; }
.vp-unit.is-arcing .vp-lamp { background: radial-gradient(circle at 35% 30%, #fff4cf, #f2b437 50%, #8a5208 100%); box-shadow: 0 0 16px rgba(255, 180, 55, .85), inset 0 0 0 1.5px #1b1f1c; }

.vp-switch { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 5px;
  background: linear-gradient(180deg, #2b2e2c, #151716); box-shadow: 0 3px 0 #0b0c0b, inset 0 1px 0 rgba(255, 255, 255, .12); color: #e9e2cf; }
.vp-switch-slot { position: relative; width: 16px; height: 54px; border-radius: 8px; background: #050606; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8); }
.vp-switch-handle { position: absolute; left: -7px; top: 30px; width: 30px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, #d63a2c, #8c1d14); box-shadow: 0 3px 4px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: top .28s cubic-bezier(.5, 1.6, .5, 1); }
.vp-switch[aria-pressed="true"] .vp-switch-handle { top: 4px; }
.vp-switch-legend { display: grid; gap: 22px; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.4px; }
.vp-switch-legend b:first-child { color: #6fd79b; }
.vp-switch[aria-pressed="false"] .vp-switch-legend b:first-child { color: #8b877b; }
.vp-switch[aria-pressed="false"]:hover .vp-switch-handle { top: 24px; }
.vp-switch:focus-visible, .vp-hook:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.vp-hook { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 64px; min-height: 66px; padding: 4px 6px; border: 1px dashed rgba(0, 0, 0, .25);
  border-radius: 5px; background: transparent; color: #4a4843; }
.vp-hook small { font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.4px; }
.vp-hook-ring { width: 12px; height: 12px; border: 2px solid #6d6a60; border-radius: 50%; }
.vp-hook:not(:disabled):hover { border-color: #a3241c; color: #a3241c; }
.vp-hook:disabled { opacity: .35; cursor: default; }
.vp-tag { position: absolute; top: 14px; left: 50%; width: 54px; padding: 8px 2px 6px; transform: translateX(-50%) rotate(-4deg) translateY(-14px); transform-origin: 50% 0;
  border-radius: 3px 3px 6px 6px; background: #c22d20; color: #fff4e8; font: 800 7.5px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.vp-unit.is-tagged .vp-tag { opacity: 1; transform: translateX(-50%) rotate(-4deg); animation: vp-swing 2.4s ease-in-out .5s 2; }
.vp-unit.is-tagged .vp-hook small { visibility: hidden; }
@keyframes vp-swing { 25% { transform: translateX(-50%) rotate(3deg); } 75% { transform: translateX(-50%) rotate(-7deg); } }
.is-nudged { animation: vp-nudge .38s ease; }
@keyframes vp-nudge { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }

.vp-copy > .eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 10px; letter-spacing: 3px; }
.vp-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.vp-copy .panel-rule { width: 56px; margin: 18px 0; background: var(--accent); opacity: .8; }
.vp-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.vp-steps li { counter-increment: step; display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.vp-steps li::before { content: counter(step, decimal-leading-zero); color: rgba(215, 187, 135, .55); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vp-steps li.is-current { color: var(--ink); }
.vp-steps li.is-current::before { color: var(--accent); }
.vp-steps li.is-complete { color: rgba(184, 196, 189, .6); text-decoration: line-through; text-decoration-color: rgba(215, 187, 135, .5); }
.vp-status { min-height: 3em; margin: 0 0 8px; color: #e7e4d8; font-size: 14px; line-height: 1.6; }
.vp-caption { min-height: 1.4em; margin: 0 0 14px; color: #f0d69d; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; opacity: 0; transition: opacity .2s ease; }
.vp-caption.is-visible { opacity: 1; }
.vp-log { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid var(--accent); background: rgba(215, 187, 135, .07); }
.vp-log .eyebrow { margin: 0 0 8px; font-size: 9px; letter-spacing: 2px; color: var(--accent); }
.vp-log p:not(.eyebrow) { margin: 4px 0 0; color: #e7e4d8; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vp-log span { display: inline-block; min-width: 44px; color: var(--accent); }
.vp-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

@media (max-width: 860px) {
  .vent-panel { place-items: start center; }
  .vp-stage { grid-template-columns: 1fr; padding-top: 56px; }
  .vp-switch-slot { height: 46px; }
  .vp-switch[aria-pressed="true"] .vp-switch-handle { top: 3px; }
  .vp-switch-handle { top: 24px; }
  .vp-switch-legend { gap: 16px; }
}
@media (max-width: 520px) {
  .vp-label { padding: 4px 6px; font-size: 9px; letter-spacing: .8px; }
  .vp-unit { padding: 10px 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-stage, .vp-needle, .vp-switch-handle, .vp-tag { transition: none; }
  .vp-unit.is-running .vp-needle line, .vp-unit.is-tagged .vp-tag, .is-nudged, .engine-panel-frame.is-intro { animation: none; }
}
