/* ============================================================
   infra.limited // COMMAND DECK
   Isometric sci-fi command center — burgundy monochrome
   Palette:
     void #0d0408  station #1a0a0f  panel #120710
     burgundy #6b1a2a  alert #c43a52  rose #d4a0a8
     mauve #a89098  frost #e8d5da  copper #b87340
   ============================================================ */

:root {
    --void: #0d0408;
    --station: #1a0a0f;
    --panel: #120710;
    --status-bg: #2a0f18;
    --burgundy: #6b1a2a;
    --alert: #c43a52;
    --rose: #d4a0a8;
    --mauve: #a89098;
    --frost: #e8d5da;
    --copper: #b87340;
    --border-dim: #3a1520;

    --font-display: "Chakra Petch", "IBM Plex Sans", sans-serif;
    --font-body: "IBM Plex Sans", "Inter", sans-serif;
    --font-mono: "Share Tech Mono", "IBM Plex Mono", monospace;

    --ease-focus: cubic-bezier(0.23, 1, 0.32, 1);
    --dur-focus: 600ms;

    --status-bar-h: 52px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--void);
    color: var(--mauve);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

body {
    position: relative;
    padding-bottom: var(--status-bar-h);
}

::selection {
    background: var(--burgundy);
    color: var(--frost);
}

/* ---------- Isometric grid floor background ---------- */
.iso-grid-floor {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(30deg, transparent 48%, var(--station) 49%, var(--station) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, var(--station) 49%, var(--station) 51%, transparent 52%),
        radial-gradient(ellipse at top, #1a0a0f 0%, var(--void) 60%);
    background-size: 64px 38px, 64px 38px, 100% 100%;
    opacity: 0;
    transition: opacity 1200ms var(--ease-focus) 200ms;
    pointer-events: none;
}

.iso-grid-floor.show {
    opacity: 0.35;
}

/* subtle vignette */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 10%, rgba(107, 26, 42, 0.12), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(184, 115, 64, 0.05), transparent 50%);
    pointer-events: none;
}

/* ---------- Vertical label ---------- */
.vertical-label {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--burgundy);
    display: flex;
    gap: 14px;
    align-items: center;
    z-index: 40;
    pointer-events: none;
    white-space: nowrap;
}

.vertical-label .tick {
    color: var(--border-dim);
}

/* ---------- Navigation hex nodes ---------- */
.nav-hexes {
    position: fixed;
    top: 22px;
    right: 26px;
    display: flex;
    gap: 10px;
    z-index: 40;
}

.hex-node {
    position: relative;
    width: 40px;
    height: 46px;
    display: block;
    text-decoration: none;
    color: var(--burgundy);
    transition: transform 400ms var(--ease-focus), filter var(--dur-focus) var(--ease-focus);
    filter: blur(0);
}

.hex-node svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hex-node polygon {
    fill: transparent;
    stroke: var(--burgundy);
    stroke-width: 1;
    transition: fill 300ms, stroke 300ms;
}

.hex-node .hex-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--burgundy);
    transition: color 300ms;
}

.hex-node::after {
    content: attr(data-label);
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--border-dim);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 300ms;
}

.hex-node:hover polygon,
.hex-node.active polygon {
    fill: rgba(107, 26, 42, 0.25);
    stroke: var(--alert);
}

.hex-node:hover .hex-num,
.hex-node.active .hex-num {
    color: var(--rose);
}

.hex-node:hover::after {
    opacity: 1;
    color: var(--mauve);
}

.hex-node.active::after {
    opacity: 1;
    color: var(--alert);
}

/* ---------- Scanning line overlay ---------- */
.scan-line {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(107, 26, 42, 0.6), transparent);
    z-index: 35;
    pointer-events: none;
    animation: scan-line 8s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateY(-20px); opacity: 0; }
    5% { opacity: 0.7; }
    95% { opacity: 0.7; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ---------- Command deck ---------- */
.command-deck {
    position: relative;
    z-index: 2;
    padding: 80px 72px 40px 72px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ---------- Deck section ---------- */
.deck-section {
    min-height: calc(100vh - var(--status-bar-h));
    padding: 40px 0 60px;
    position: relative;
    border-bottom: 1px solid var(--station);
}

.deck-section:last-of-type {
    border-bottom: none;
}

.section-coord {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 8px 12px;
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--burgundy);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    background: rgba(18, 7, 16, 0.4);
    align-items: center;
}

.coord-key {
    color: var(--border-dim);
}

.coord-val {
    color: var(--rose);
}

/* ---------- Deck grid ---------- */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 2px;
    background: var(--station);
    padding: 2px;
    perspective: 1800px;
    perspective-origin: 30% 20%;
}

/* ---------- Panels (base) ---------- */
.panel {
    position: relative;
    grid-column: var(--col) / span var(--span, 4);
    grid-row: var(--row, auto) / span var(--rowspan, 1);
    background: var(--void);
    padding: 20px 22px;
    min-height: 180px;
    transform-style: preserve-3d;
    filter: blur(8px);
    opacity: 0.25;
    transform: translateY(14px) rotateX(2deg) rotateY(-1.5deg);
    transition:
        filter var(--dur-focus) var(--ease-focus),
        opacity var(--dur-focus) var(--ease-focus),
        transform 900ms var(--ease-focus);
    will-change: filter, opacity, transform;
}

.panel.focused {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
}

.panel-primary {
    background: radial-gradient(ellipse at top right, rgba(107, 26, 42, 0.08), transparent 60%), var(--void);
    border-left: 3px solid var(--burgundy);
    background-image:
        repeating-linear-gradient(0deg, rgba(107, 26, 42, 0.02) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 80% 0%, rgba(107, 26, 42, 0.12), transparent 55%);
    background-color: var(--void);
}

.panel-secondary {
    background: var(--panel);
    border: 1px solid var(--border-dim);
}

.panel-gauge {
    background: var(--panel);
    border: 1px solid var(--border-dim);
}

.panel-ticker {
    background: transparent;
    border-bottom: 1px solid var(--burgundy);
    padding-top: 8px;
}

/* ---------- Panel ornaments ---------- */
.panel-bolts {
    position: absolute;
    inset: 4px;
    pointer-events: none;
}

.panel-bolts span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--burgundy);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.6;
}

.panel-bolts span:nth-child(1) { top: 0; left: 0; }
.panel-bolts span:nth-child(2) { top: 0; right: 0; }
.panel-bolts span:nth-child(3) { bottom: 0; left: 0; }
.panel-bolts span:nth-child(4) { bottom: 0; right: 0; }

.panel-bracket {
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

.panel-bracket::before,
.panel-bracket::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--burgundy);
    opacity: 0.5;
}

.panel-bracket::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.panel-bracket::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--burgundy);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-dim);
}

.panel-tag {
    color: var(--burgundy);
}

.panel-id {
    color: var(--border-dim);
}

.panel-footer {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--burgundy);
    padding-top: 8px;
    border-top: 1px dashed var(--border-dim);
}

.pipe {
    color: var(--border-dim);
}

/* ---------- Typography helpers ---------- */
.display-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.9;
    color: var(--rose);
    margin: 18px 0 20px;
    text-shadow: 0 0 30px rgba(196, 58, 82, 0.1);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.8rem, 3.6vw, 3.2rem);
    line-height: 1;
    color: var(--rose);
    margin: 8px 0 16px;
}

.body-text {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: var(--mauve);
    letter-spacing: 0.01em;
    max-width: 58ch;
}

.body-text.lede {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--rose);
    margin-top: 10px;
    font-weight: 500;
}

.body-text.sub {
    margin-top: 10px;
    color: var(--mauve);
}

.body-text + .body-text {
    margin-top: 8px;
}

.hl {
    color: var(--rose);
    font-weight: 600;
    border-bottom: 1px dashed var(--burgundy);
    padding-bottom: 1px;
}

.mono {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    letter-spacing: 0.12em;
    color: var(--burgundy);
    line-height: 1.4;
    text-transform: uppercase;
}

.mono.alarm,
.alarm {
    color: var(--alert);
}

.mono.dim {
    color: var(--border-dim);
}

/* ---------- Status dot ---------- */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--burgundy);
    display: inline-block;
    box-shadow: 0 0 6px rgba(107, 26, 42, 0.8);
    animation: dot-pulse 2s infinite;
}

.status-dot.warn {
    background: var(--copper);
    box-shadow: 0 0 6px rgba(184, 115, 64, 0.8);
}

.status-dot.nominal {
    background: var(--burgundy);
}

.status-dot.crit {
    background: var(--alert);
    box-shadow: 0 0 8px rgba(196, 58, 82, 0.9);
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ---------- Iso rack inset ---------- */
.iso-rack, .iso-rack-svg {
    width: 100%;
    height: auto;
    max-height: 220px;
    display: block;
    margin: 6px 0;
}

.iso-rack-svg .iso-rack-body {
    transform-origin: 140px 105px;
    animation: slow-rotate 180s linear infinite;
    transform-box: fill-box;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.led-blink {
    animation: led-blink 1.8s infinite;
}

.led-blink.d1 { animation-delay: 0.3s; }
.led-blink.d2 { animation-delay: 0.7s; }
.led-blink.d3 { animation-delay: 1.1s; }

@keyframes led-blink {
    0%, 70%, 100% { opacity: 0.4; }
    75%, 85% { opacity: 1; }
}

/* ---------- Gauges (bar) ---------- */
.gauge-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.gauge-row {
    display: grid;
    grid-template-columns: 40px 1fr 56px;
    align-items: center;
    gap: 10px;
}

.gauge-label {
    color: var(--burgundy);
    text-align: left;
}

.gauge-bar {
    position: relative;
    height: 8px;
    background: var(--station);
    border: 1px solid var(--border-dim);
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy));
    transition: width 1200ms var(--ease-focus);
    box-shadow: inset 0 0 6px rgba(107, 26, 42, 0.5);
}

.gauge-fill.warn {
    background: linear-gradient(90deg, var(--burgundy), var(--copper));
}

.gauge-fill.crit {
    background: linear-gradient(90deg, var(--burgundy), var(--alert));
}

.gauge-val {
    color: var(--rose);
    text-align: right;
}

/* ---------- Arc gauges ---------- */
.arc-gauges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-dim);
}

.arc-gauge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.arc-gauge svg {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.arc-gauge .arc-label {
    color: var(--burgundy);
    font-size: 9px;
}

.arc-gauge .arc-val {
    color: var(--rose);
    font-size: 11px;
}

.arc-fill {
    transition: stroke-dashoffset 1200ms var(--ease-focus);
}

.arc-needle {
    transform-origin: 50px 55px;
    transform: rotate(-90deg);
    transition: transform 1200ms var(--ease-focus);
    transform-box: fill-box;
}

/* ---------- Topology ---------- */
.topology-wrap {
    width: 100%;
    margin: 14px 0;
}

.topology-svg {
    width: 100%;
    height: auto;
    max-height: 420px;
    display: block;
}

.topo-node {
    cursor: default;
}

.topo-node .node-body {
    transition: fill 700ms var(--ease-focus);
}

.topo-node .node-glow {
    opacity: 0;
    transition: opacity 700ms;
}

.topo-node.degraded .node-glow,
.topo-node.transitioning .node-glow {
    opacity: 1;
}

.link-line {
    stroke-dasharray: 4 6;
    animation: link-pulse 3s linear infinite;
    opacity: 0.7;
}

.link-line.active {
    stroke: var(--alert);
    opacity: 0.95;
}

.link-line.dim {
    opacity: 0.3;
}

@keyframes link-pulse {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -20; }
}

/* ---------- Log lists ---------- */
.log-list {
    list-style: none;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-list.dense {
    gap: 4px;
}

.log-list li {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed var(--station);
}

.log-list.dense li {
    padding: 2px 0;
    border-bottom: none;
}

.log-list .ts {
    color: var(--border-dim);
    font-size: 10px;
}

/* ---------- Ticker panel lines ---------- */
.panel-ticker .ticker-line {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-dim);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.panel-ticker .ticker-line:last-child {
    border-bottom: none;
}

/* ---------- Sparkline ---------- */
.spark-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.spark-svg {
    width: 100%;
    height: 60px;
    display: block;
}

.spark-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: spark-draw 2.4s var(--ease-focus) forwards;
}

@keyframes spark-draw {
    to { stroke-dashoffset: 0; }
}

.spark-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 10px;
}

/* ---------- Rack cutaway (compute section) ---------- */
.rack-cutaway {
    width: 100%;
    margin-top: 10px;
}

.rack-svg {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
}

.rack-rotator {
    transform-origin: 225px 220px;
    animation: rack-rotate 120s linear infinite;
    transform-box: fill-box;
}

@keyframes rack-rotate {
    0% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
}

.fan-blades {
    animation: fan-spin 3.5s linear infinite;
    transform-origin: 0 0;
    transform-box: fill-box;
}

.fan-blades.fan-fast {
    animation-duration: 1.2s;
}

@keyframes fan-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Storage ---------- */
.storage-wrap {
    width: 100%;
    margin: 10px 0;
}

.storage-svg {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
}

.flow-line {
    stroke-dasharray: 6 6;
    animation: flow-dash 2.4s linear infinite;
    opacity: 0.85;
}

.storage-ticker .ticker-scroll {
    overflow: hidden;
    white-space: nowrap;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px dashed var(--border-dim);
    border-bottom: 1px dashed var(--border-dim);
}

.ticker-content {
    display: inline-flex;
    gap: 28px;
    animation: marquee-slide 38s linear infinite;
    will-change: transform;
}

@keyframes marquee-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes flow-dash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -60; }
}

/* ---------- Power & Cooling ---------- */
.power-wrap {
    width: 100%;
    margin-top: 10px;
}

.power-svg {
    width: 100%;
    height: auto;
    max-height: 440px;
    display: block;
}

.pipe-flow {
    animation: pipe-flow 1.4s linear infinite;
}

@keyframes pipe-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -60; }
}

/* ---------- Tremble on needles ---------- */
.big-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.big-gauge svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.gauge-caption {
    font-size: 11px;
    letter-spacing: 0.18em;
}

.tremble-panel .panel-header {
    border-bottom-color: var(--burgundy);
}

.needle.tremble {
    transform-origin: 100px 110px;
    animation: needle-tremble 0.5s ease-in-out infinite;
    transform-box: fill-box;
}

.needle.tremble-slow {
    transform-origin: 100px 110px;
    animation: needle-tremble 1.2s ease-in-out infinite;
    transform-box: fill-box;
}

@keyframes needle-tremble {
    0%, 100% { transform: translateX(-1px) rotate(0.3deg); }
    25% { transform: translateX(1px) rotate(-0.4deg); }
    50% { transform: translateX(-0.5px) rotate(0.6deg); }
    75% { transform: translateX(1.5px) rotate(-0.2deg); }
}

/* ---------- Final Section ---------- */
.deck-final {
    background: radial-gradient(ellipse at center, rgba(18, 7, 16, 0.8), transparent 70%);
}

.final-statement-wrap {
    position: relative;
    margin-top: 60px;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--burgundy);
    border-bottom: 1px solid var(--burgundy);
    filter: blur(8px);
    opacity: 0.2;
    transition:
        filter var(--dur-focus) var(--ease-focus),
        opacity var(--dur-focus) var(--ease-focus);
}

.final-statement-wrap.focused {
    filter: blur(0);
    opacity: 1;
}

.final-brackets .fb {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--alert);
}

.final-brackets .fb-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.final-brackets .fb-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.final-brackets .fb-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.final-brackets .fb-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.final-statement {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1;
    color: var(--rose);
    margin: 0 auto;
    max-width: 20ch;
}

.final-sig {
    margin-top: 30px;
    color: var(--alert);
    letter-spacing: 0.2em;
    font-size: 11px;
}

/* ---------- Status bar ---------- */
.status-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--status-bar-h);
    background: rgba(42, 15, 24, 0.78);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-top: 1px solid var(--burgundy);
    display: grid;
    grid-template-columns: 240px 1fr 360px;
    align-items: center;
    padding: 0 18px;
    z-index: 50;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.15em;
    color: var(--burgundy);
    transition: color 600ms, border-color 600ms, background 600ms;
}

.status-bar.alarm-state {
    color: var(--alert);
    border-top-color: var(--alert);
    background: rgba(60, 10, 20, 0.84);
}

.status-bar.alarm-state .pipe,
.status-bar.alarm-state .brand {
    color: var(--alert);
}

.status-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

.status-brand {
    border-right: 1px dashed var(--border-dim);
    padding-right: 14px;
}

.status-brand .brand {
    color: var(--rose);
    font-weight: 500;
}

.status-metrics {
    overflow: hidden;
}

.status-marquee {
    overflow: hidden;
    white-space: nowrap;
    border-left: 1px dashed var(--border-dim);
    padding-left: 14px;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    gap: 26px;
    animation: status-marquee 44s linear infinite;
    will-change: transform;
    white-space: nowrap;
}

@keyframes status-marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.marquee-track .dot {
    color: var(--border-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .command-deck { padding: 72px 32px 40px; }
    .vertical-label { display: none; }

    .deck-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .panel {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .status-bar {
        grid-template-columns: 140px 1fr;
    }
    .status-marquee { display: none; }
}

@media (max-width: 640px) {
    .command-deck { padding: 60px 16px 24px; }
    .nav-hexes { top: 12px; right: 14px; gap: 6px; }
    .hex-node { width: 32px; height: 38px; }
    .section-coord { font-size: 10px; gap: 10px; }
    .display-title { font-size: clamp(2rem, 9vw, 3.4rem); }
    .status-metrics { gap: 6px; font-size: 9.5px; }
    .status-metrics .pipe { display: none; }
}
