/* =====================================================================
   yongjoon.dev — Front panel of a 1978 fictional test instrument
   Palette:
     #b8b6ae  brushed aluminum base
     #3a3631  recessed wells
     #1a1d1a  CRT bezel black
     #f3eee5  Dymo label cream
     #c9502e  status red / hazard
     #6a542a  bakelite brown
     #9dffb4  P1 phosphor green
     #ffad5c  P3 phosphor amber
     #ff5a8a  nixie cathode pink
   ===================================================================== */

:root {
    --aluminum: #b8b6ae;
    --aluminum-dark: #9a988f;
    --aluminum-light: #cac8c0;
    --well: #3a3631;
    --well-deep: #26231f;
    --bezel-black: #1a1d1a;
    --cream: #f3eee5;
    --hazard: #c9502e;
    --bakelite: #6a542a;
    --bakelite-light: #8a7244;
    --bakelite-dark: #44331a;
    --phosphor-green: #9dffb4;
    --phosphor-amber: #ffad5c;
    --nixie-pink: #ff5a8a;
    --engrave-dark: rgba(26, 29, 26, 0.75);
    --engrave-light: rgba(234, 231, 224, 0.45);

    --crt-glow: 1;
    --motion: 1;
    --grid-visible: 0;
    --debug-mode: 0;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0b0c0a;
    font-family: "DM Mono", ui-monospace, monospace;
    color: var(--bezel-black);
    user-select: none;
    -webkit-user-select: none;
}

body {
    min-height: 100vh;
    padding: 12px;
    background:
        radial-gradient(ellipse at 50% 50%, #1a1a1a 0%, #050605 90%);
}

/* -------------------------------------------------------------------
   PANEL — the whole instrument
   ------------------------------------------------------------------- */

.panel {
    position: relative;
    width: 100%;
    height: calc(100vh - 24px);
    min-height: 720px;
    background:
        /* subtle light gradient top-left */
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(255,255,255,0.12), transparent 60%),
        /* darker bottom-right */
        radial-gradient(ellipse 90% 70% at 85% 95%, rgba(0,0,0,0.22), transparent 60%),
        /* base */
        linear-gradient(180deg, #c2c0b8 0%, var(--aluminum) 30%, #aaa89f 100%);
    border: 3px solid #585551;
    border-radius: 10px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.35),
        inset 0 -2px 0 rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(0,0,0,0.2),
        0 20px 60px rgba(0,0,0,0.7),
        0 2px 4px rgba(0,0,0,0.4);
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr) 100px 68px minmax(0, 1fr) 58px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 14px;
    overflow: hidden;
    transition: filter 0.6s ease-out, opacity 0.6s ease-out;
}

/* Brushed aluminum overlay across whole panel */
.panel-surface {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(89deg,
            rgba(255,255,255,0.04) 0px,
            rgba(255,255,255,0.04) 0.75px,
            rgba(0,0,0,0.035) 0.75px,
            rgba(0,0,0,0.035) 1.5px);
    z-index: 1;
    border-radius: 8px;
}

.panel-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 0.5px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.02) 0.5px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.02) 0.5px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(0,0,0,0.02) 0.5px, transparent 1px);
    background-size: 7px 7px, 11px 11px, 13px 13px, 5px 5px;
    opacity: 0.6;
    z-index: 2;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

/* powering off state */
body.powering-off .panel {
    filter: brightness(0.28) saturate(0.4);
}

/* -------------------------------------------------------------------
   SCREWS — tiny detail, slightly-misaligned rotation
   ------------------------------------------------------------------- */

.screw {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #e8e6df 0%, #9a988f 40%, #575551 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.5),
        inset 0 -1px 1px rgba(0,0,0,0.5),
        0 1px 1px rgba(0,0,0,0.4);
    z-index: 20;
}
.screw::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(var(--slot-angle, 22deg),
        transparent 44%, rgba(0,0,0,0.6) 44%, rgba(0,0,0,0.6) 56%, transparent 56%);
}
.screw-tl { top: 6px; left: 6px; --slot-angle: 18deg; }
.screw-tr { top: 6px; right: 6px; --slot-angle: -14deg; }
.screw-bl { bottom: 6px; left: 6px; --slot-angle: 31deg; }
.screw-br { bottom: 6px; right: 6px; --slot-angle: -22deg; }

/* -------------------------------------------------------------------
   ENGRAVED LABELS
   ------------------------------------------------------------------- */

.engraved-label {
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--engrave-dark);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.45),
        0 -0.5px 0 rgba(0,0,0,0.35);
    pointer-events: none;
}

/* -------------------------------------------------------------------
   ZONE 1: TOP RAIL
   ------------------------------------------------------------------- */

.top-rail {
    position: relative;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 40%, rgba(0,0,0,0.12) 100%);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    z-index: 5;
}

.brand-plate {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--bezel-black);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.5),
        0 -1px 0 rgba(0,0,0,0.4);
}

.brand-name { font-size: 17px; letter-spacing: 0.28em; }
.brand-sep { color: rgba(26,29,26,0.5); }
.brand-model, .brand-serial { font-size: 12px; color: rgba(26,29,26,0.75); }

.dymo-tape {
    background: var(--cream);
    padding: 5px 14px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bezel-black);
    border-radius: 2px;
    box-shadow:
        inset 0 -1px 0 rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.8),
        0 1px 3px rgba(0,0,0,0.3),
        0 0 0 1px rgba(0,0,0,0.25);
    transform: rotate(-0.6deg);
    position: relative;
}
.dymo-tape::before, .dymo-tape::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px; height: 8px;
    background: radial-gradient(circle, #8a857c 0%, #8a857c 55%, transparent 55%);
    transform: translateY(-50%);
    opacity: 0.7;
}
.dymo-tape::before { left: -4px; }
.dymo-tape::after { right: -4px; }

.power-led {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #5a1a0a 0%, #2a0a04 70%);
    box-shadow:
        inset 0 1px 1px rgba(0,0,0,0.6),
        0 0 0 2px var(--well),
        0 1px 2px rgba(0,0,0,0.5);
    transition: background 0.3s, box-shadow 0.3s;
}
body.powered-on .power-led {
    background: radial-gradient(circle at 35% 35%, #ffd8a8 0%, #ff7030 50%, #c9502e 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.3),
        0 0 0 2px var(--well),
        0 0 8px rgba(201,80,46,0.8),
        0 0 18px rgba(201,80,46,0.5);
}

/* -------------------------------------------------------------------
   UPPER ROW: CRT + PATCH-BAY
   ------------------------------------------------------------------- */

.upper-row {
    grid-row: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 12px;
    min-height: 0;
    z-index: 5;
}

/* -------------------------------------------------------------------
   ZONE 2: CRT MODULE
   ------------------------------------------------------------------- */

.crt-module {
    position: relative;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.14) 100%);
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.3);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.crt-label {
    position: absolute;
    top: 4px; left: 16px;
    font-size: 9px;
    letter-spacing: 0.18em;
}

.crt-bezel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.crt-screen {
    position: relative;
    flex: 1;
    background:
        radial-gradient(ellipse 120% 140% at 50% 50%, #0a1208 0%, #050805 65%, #000 100%);
    border-radius: 22px / 18px;
    box-shadow:
        inset 0 0 0 4px #1a1d1a,
        inset 0 0 0 6px #3a3631,
        inset 0 0 18px rgba(0,0,0,0.9),
        inset 0 0 60px rgba(157,255,180,0.05),
        0 2px 6px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: opacity 0.4s ease-out;
    cursor: text;
    min-height: 0;
}

body.powering-off .crt-screen { opacity: 0; }

/* CRT barrel curvature */
.crt-curvature {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 140% 160% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
    z-index: 3;
}

/* Horizontal scanlines */
.crt-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.18) 0px,
        rgba(0,0,0,0.18) 1px,
        transparent 1px,
        transparent 3px);
    z-index: 4;
    opacity: calc(var(--crt-glow) * 0.9);
}

/* Faint burn-in ghost of a previous UI */
.crt-burnin {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: "VT323", monospace;
    font-size: 15px;
    color: rgba(157, 255, 180, 0.035);
    padding: 20px 24px;
    white-space: pre;
    letter-spacing: 0.05em;
    z-index: 2;
    mix-blend-mode: screen;
}
.crt-burnin::before {
    content:
"$ uptime\A 14:22:08 up 47 days,  8:11\A $ ls ~/projects\A compiler  toy-os  ssg\A $ _";
    white-space: pre;
}

/* Glass reflection */
.crt-glass {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(170deg, rgba(255,255,255,0.08) 0%, transparent 25%, transparent 85%, rgba(255,255,255,0.03) 100%);
    z-index: 6;
    border-radius: 22px / 18px;
}

/* Slow drifting scanline */
.crt-scanline-drift {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(157,255,180,0.35) 50%,
        transparent 100%);
    mix-blend-mode: screen;
    z-index: 5;
    top: -3px;
    pointer-events: none;
    animation: drift 8s linear infinite;
    animation-play-state: running;
}
@keyframes drift {
    0%   { top: -3px; opacity: 0.2; }
    50%  { opacity: 0.5; }
    100% { top: 100%; opacity: 0.2; }
}

/* Retrace flash */
.crt-retrace {
    position: absolute;
    inset: 0;
    background: rgba(200, 255, 210, 0.22);
    opacity: 0;
    pointer-events: none;
    z-index: 7;
}
.crt-retrace.flash { animation: retraceFlash 0.06s ease-out; }
@keyframes retraceFlash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* CRT content */
.crt-content {
    position: relative;
    height: 100%;
    padding: 18px 22px;
    font-family: "VT323", monospace;
    font-size: 19px;
    line-height: 1.45;
    color: var(--phosphor-green);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 3;
    text-shadow:
        0 0 2px currentColor,
        0 0 6px rgba(157,255,180, calc(var(--crt-glow) * 0.4));
    -webkit-font-smoothing: none;
    font-smooth: never;
    scrollbar-width: thin;
    scrollbar-color: rgba(157,255,180,0.3) transparent;
}
.crt-content::-webkit-scrollbar { width: 6px; }
.crt-content::-webkit-scrollbar-thumb {
    background: rgba(157,255,180,0.3);
    border-radius: 3px;
}

.crt-boot {
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(157,255,180,0.25);
    margin-bottom: 10px;
}
.boot-line {
    opacity: 0;
}
.boot-line.shown { animation: bootType 0.22s steps(20) forwards; }
@keyframes bootType {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.crt-page {
    opacity: 0;
    transition: opacity 0.2s;
}
.crt-page.active { opacity: 1; }

.crt-page h2 {
    font-family: "VT323", monospace;
    font-weight: normal;
    color: var(--phosphor-amber);
    font-size: 22px;
    margin: 12px 0 6px;
    letter-spacing: 0.05em;
}
.crt-page h2::before { content: "## "; opacity: 0.7; }

.crt-page p { margin: 8px 0; }
.crt-page .prompt::before { content: "$ "; color: var(--phosphor-amber); }
.crt-page .cursor {
    display: inline-block;
    width: 10px;
    background: var(--phosphor-green);
    height: 18px;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.crt-page ul { list-style: none; padding-left: 0; }
.crt-page ul li { padding-left: 16px; position: relative; }
.crt-page ul li::before { content: "›"; position: absolute; left: 0; color: var(--phosphor-amber); }

.crt-info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 12px;
    background: rgba(0,0,0,0.18);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.crt-info-row .engraved-label { font-size: 9px; }

/* Full-screen CRT mode */
.crt-module.expanded {
    position: fixed;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    z-index: 1000;
    grid-row: auto;
    grid-column: auto;
}

.grease-note {
    position: absolute;
    font-family: "Caveat", cursive;
    font-size: 16px;
    color: rgba(243, 238, 229, 0.78);
    line-height: 1.05;
    pointer-events: none;
    z-index: 12;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    font-weight: 500;
}

/* -------------------------------------------------------------------
   ZONE 3: PATCH-BAY
   ------------------------------------------------------------------- */

.patch-module {
    position: relative;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.2));
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.4),
        inset 0 -1px 0 rgba(255,255,255,0.08);
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.patch-label {
    position: absolute;
    top: 4px; left: 16px;
    font-size: 9px;
}

.patch-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
    min-height: 0;
}

.patch-cables {
    position: absolute;
    inset: 18px 16px 14px;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}

.patch-jack {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}

.jack-socket {
    width: 34px; height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            #111 0%, #0a0a0a 30%,
            #1a1815 45%, #3a3631 70%, #25221e 100%);
    box-shadow:
        inset 0 3px 6px rgba(0,0,0,0.9),
        inset 0 -1px 2px rgba(255,255,255,0.04),
        0 1px 0 rgba(255,255,255,0.18),
        0 -1px 0 rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.15s;
}

.jack-socket::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #8a7044 0%, #5a3a1a 40%, transparent 70%);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.8);
}

.jack-socket::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: inset 0 0 3px rgba(0,0,0,1);
}

.patch-jack.plugged .jack-socket {
    background:
        radial-gradient(circle at 50% 50%,
            #222 0%, #1a1a1a 30%,
            #3a3631 45%, #25221e 70%, #15120e 100%);
}

.patch-jack.plugged .jack-socket::before {
    background:
        radial-gradient(circle at 40% 35%, #e0d8c8 0%, #8a857c 40%, #3a3631 70%, #1a1d1a 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.4),
        inset 0 -1px 1px rgba(0,0,0,0.6),
        2px 2px 3px rgba(0,0,0,0.5);
}

.patch-jack.plugged .jack-socket::after {
    background: #1a1d1a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.jack-label {
    font-family: "DM Mono", monospace;
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: var(--engrave-dark);
    margin-top: 5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jack-led {
    position: absolute;
    top: 2px; right: 4px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #3a0a0a;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.7);
}

.patch-jack.active .jack-led {
    background: radial-gradient(circle, #c0ffc8 0%, #4aff70 60%, #0a5020 100%);
    box-shadow:
        0 0 4px rgba(74,255,112,0.8),
        0 0 8px rgba(74,255,112,0.4);
}

.patch-jack:hover .jack-socket {
    transform: scale(1.05);
}

.patch-jack.filtered-out {
    opacity: 0.25;
    pointer-events: none;
}

/* -------------------------------------------------------------------
   ZONE 4: KNOB ROW
   ------------------------------------------------------------------- */

.knob-row {
    grid-row: 3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    padding: 8px 24px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08) 0%, transparent 30%, rgba(0,0,0,0.14) 100%);
    border: 1px solid rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    z-index: 5;
}

.knob-row-label {
    position: absolute;
    top: 3px; left: 16px;
    font-size: 9px;
}

.knob-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.knob {
    width: 66px;
    height: 66px;
    position: relative;
    cursor: grab;
    flex-shrink: 0;
}

.knob:active { cursor: grabbing; }

/* Knob skirt */
.knob-skirt {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 30%, #4a4742 0%, var(--well) 50%, var(--well-deep) 100%);
    box-shadow:
        inset 0 2px 3px rgba(0,0,0,0.7),
        inset 0 -1px 1px rgba(255,255,255,0.05),
        0 1px 2px rgba(255,255,255,0.15);
}

/* Tick marks on skirt */
.knob-ticks {
    position: absolute;
    inset: -6px;
    pointer-events: none;
}
.knob-tick {
    position: absolute;
    top: 2px; left: 50%;
    width: 2px; height: 5px;
    background: rgba(243,238,229,0.65);
    transform-origin: 50% 37px;
    margin-left: -1px;
    box-shadow: 0 0 1px rgba(0,0,0,0.5);
}

/* Knob cap — chicken head shape via rotated triangle */
.knob-cap {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%,
            #a88a55 0%,
            var(--bakelite) 40%,
            var(--bakelite-dark) 80%,
            #2a1a0a 100%);
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.2),
        inset 0 -3px 5px rgba(0,0,0,0.5),
        0 3px 4px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.08);
    transform: rotate(0deg);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

/* chicken-head indicator pointer */
.knob-indicator {
    position: absolute;
    top: 4px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, #2a1a0a 0%, var(--bakelite-dark) 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Center dimple + painted indicator line on cap */
.knob-cap::before {
    content: "";
    position: absolute;
    inset: 40%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #d8b880 0%, #8a6a3a 50%, var(--bakelite-dark) 100%);
    box-shadow:
        inset 0 1px 1px rgba(0,0,0,0.4),
        inset 0 -1px 1px rgba(255,255,255,0.2);
}
.knob-cap::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 24px;
    background: var(--cream);
    border-radius: 1px;
    box-shadow:
        0 0 1px rgba(0,0,0,0.6),
        inset 0 0 1px rgba(0,0,0,0.3);
}

.knob-label {
    font-family: "DM Mono", monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--engrave-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.knob-value {
    font-family: "VT323", monospace;
    font-size: 14px;
    color: var(--phosphor-amber);
    background: #0a0a0a;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.8),
        0 0 4px rgba(255,173,92,0.3);
    min-width: 44px;
    text-align: center;
    text-shadow: 0 0 3px rgba(255,173,92,0.8);
}

/* -------------------------------------------------------------------
   ZONE 5: NIXIE STRIP
   ------------------------------------------------------------------- */

.nixie-strip {
    grid-row: 4;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.7),
        inset 0 -1px 0 rgba(255,255,255,0.05);
    z-index: 5;
}

.nixie-label {
    position: absolute;
    top: -10px; left: 16px;
    background: var(--aluminum);
    padding: 0 8px;
    font-size: 9px;
    z-index: 2;
}

.nixie-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.nixie-tubes {
    display: flex;
    gap: 3px;
    padding: 4px 6px;
    background: #050605;
    border: 1px solid rgba(0,0,0,0.8);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,0.9),
        inset 0 0 10px rgba(255,90,138,0.06);
}

.nixie-tube {
    position: relative;
    width: 22px;
    height: 38px;
    background:
        radial-gradient(ellipse 85% 70% at 50% 40%, rgba(255,200,160,0.08) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 10px 10px 3px 3px;
    overflow: hidden;
    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.6),
        inset 0 -3px 4px rgba(255,90,138,0.12);
}

.nixie-tube::before {
    content: "";
    position: absolute;
    top: -6px; left: 2px; right: 2px;
    height: 6px;
    background: linear-gradient(180deg, #3a3631 0%, #1a1d1a 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.nixie-digit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Major Mono Display", "DM Mono", monospace;
    font-size: 22px;
    color: var(--phosphor-amber);
    text-shadow:
        0 0 3px var(--phosphor-amber),
        0 0 7px rgba(255,173,92,0.6),
        0 0 12px rgba(255,90,138,0.3);
    transition: transform 0.28s cubic-bezier(0.33, 0, 0.1, 1);
}

.nixie-digit.flicker { opacity: 0.55; }

.nixie-group .engraved-label {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    color: rgba(26,29,26,0.85);
    text-align: center;
}

/* -------------------------------------------------------------------
   LOWER ROW: TOGGLES + PAPER TAPE
   ------------------------------------------------------------------- */

.lower-row {
    grid-row: 5;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px;
    min-height: 0;
    z-index: 5;
}

/* -------------------------------------------------------------------
   ZONE 6: TOGGLE SWITCH BANK
   ------------------------------------------------------------------- */

.toggle-module {
    position: relative;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(255,255,255,0.03) 40%, rgba(0,0,0,0.12) 100%);
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.15),
        inset 0 -2px 0 rgba(0,0,0,0.25);
    padding: 22px 14px 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 6px 8px;
    min-height: 0;
    overflow: hidden;
}

.toggle-label {
    position: absolute;
    top: 4px; left: 16px;
    font-size: 9px;
}

.toggle-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 4px 0;
    min-height: 0;
}

.toggle-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #2a0a0a;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.7);
    flex-shrink: 0;
}

.toggle-wrap.on .toggle-led {
    background: radial-gradient(circle, #c8ffcc 0%, #4aff70 60%, #0a5020 100%);
    box-shadow:
        0 0 3px rgba(74,255,112,0.9),
        0 0 8px rgba(74,255,112,0.4);
}
.toggle-wrap.on.warn .toggle-led {
    background: radial-gradient(circle, #ffd8a8 0%, #ff7030 60%, #7a2010 100%);
    box-shadow:
        0 0 3px rgba(255,112,48,0.9),
        0 0 8px rgba(201,80,46,0.4);
}
.toggle-led.flash {
    animation: ledFlash 0.2s;
}
@keyframes ledFlash {
    0% { filter: brightness(2); }
    100% { filter: brightness(1); }
}

.toggle-switch {
    position: relative;
    width: 22px;
    height: 38px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-body {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 28px;
    background:
        radial-gradient(ellipse at 30% 20%, #4a4742 0%, var(--well) 60%, var(--well-deep) 100%);
    border-radius: 3px;
    box-shadow:
        inset 0 2px 3px rgba(0,0,0,0.7),
        inset 0 -1px 1px rgba(255,255,255,0.1);
}

.toggle-handle {
    position: absolute;
    top: 50%; left: 50%;
    margin-left: -3px;
    width: 6px;
    height: 20px;
    background:
        linear-gradient(90deg, #8a7244 0%, #b8955a 40%, #5a4020 100%);
    border-radius: 3px 3px 2px 2px;
    transform-origin: 50% 50%;
    transform: translate(-50%, -82%) rotate(20deg);
    transition: transform 0.14s cubic-bezier(0.4, 1.5, 0.5, 1);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.4),
        0 2px 3px rgba(0,0,0,0.6);
}

.toggle-handle::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    margin-left: -3px;
    width: 6px; height: 3px;
    background: radial-gradient(ellipse, #e0c088 0%, #8a6a3a 100%);
    border-radius: 50%;
}

.toggle-wrap.on .toggle-handle {
    transform: translate(-50%, -12%) rotate(-20deg);
}

.toggle-engraved {
    font-family: "DM Mono", monospace;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    color: var(--engrave-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
}

/* -------------------------------------------------------------------
   ZONE 7: PAPER TAPE READER
   ------------------------------------------------------------------- */

.tape-module {
    position: relative;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.16));
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 6px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    padding: 22px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.tape-label {
    position: absolute;
    top: 4px; left: 16px;
    font-size: 9px;
}

.tape-reader {
    flex: 1;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 6px;
    align-items: center;
    min-height: 0;
}

.tape-spool {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, #5a4024 0%, var(--bakelite-dark) 60%, #1a0a00 100%);
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.15),
        inset 0 -2px 3px rgba(0,0,0,0.5),
        0 2px 3px rgba(0,0,0,0.5);
    animation: spoolSpin 4s linear infinite;
    justify-self: center;
}

.tape-spool::before {
    content: "";
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #e8d8a8 0%, #8a6a3a 60%, #2a1a0a 100%);
    box-shadow: inset 0 0 2px rgba(0,0,0,0.5);
}
.tape-spool::after {
    content: "";
    position: absolute;
    inset: 42%;
    background: #1a1d1a;
    border-radius: 50%;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.9);
}

.tape-spool-right { animation-direction: normal; }
.tape-spool-left { animation-direction: normal; animation-duration: 4s; }

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

body.tape-paused .tape-spool { animation-play-state: paused; }

.tape-window {
    position: relative;
    height: 40px;
    background: #1a1812;
    border: 1px solid rgba(0,0,0,0.6);
    border-radius: 3px;
    overflow: hidden;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.7);
}

.tape-strip {
    position: absolute;
    top: 2px; bottom: 2px;
    left: 0;
    display: flex;
    gap: 0;
    animation: tapeScroll 14s linear infinite;
    will-change: transform;
}

body.tape-paused .tape-strip { animation-play-state: paused; }

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

.tape-char {
    flex-shrink: 0;
    width: 16px;
    height: 100%;
    background: var(--cream);
    border-right: 1px solid #c8bfa8;
    position: relative;
    box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
}

/* Sprocket holes in center row */
.tape-char::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 4px;
    background: #1a1812;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.7);
}

/* Data holes: up to 5 positions per char */
.tape-char .hole {
    position: absolute;
    width: 5px; height: 5px;
    background: #1a1812;
    border-radius: 50%;
    left: 50%; margin-left: -2.5px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.7);
}
.tape-char .h0 { top: 2px; }
.tape-char .h1 { top: 9px; }
/* h2 is sprocket row, displaced slightly */
.tape-char .h3 { bottom: 9px; }
.tape-char .h4 { bottom: 2px; }

.tape-decoded {
    display: flex;
    gap: 8px;
    font-family: "DM Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--engrave-dark);
    padding: 2px 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    min-height: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.decoded-prefix { color: var(--hazard); font-weight: 500; }
.decoded-text { overflow: hidden; text-overflow: ellipsis; }

/* -------------------------------------------------------------------
   BOTTOM BEZEL
   ------------------------------------------------------------------- */

.bottom-bezel {
    grid-row: 6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.18) 100%);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.25);
    overflow: hidden;
    z-index: 5;
}

.serial-plate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.18));
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.barcode {
    width: 60px; height: 20px;
    background: repeating-linear-gradient(90deg,
        #1a1d1a 0px, #1a1d1a 1px, transparent 1px, transparent 2px,
        #1a1d1a 2px, #1a1d1a 4px, transparent 4px, transparent 5px,
        #1a1d1a 5px, #1a1d1a 6px, transparent 6px, transparent 9px,
        #1a1d1a 9px, #1a1d1a 12px, transparent 12px, transparent 13px);
    background-color: var(--cream);
    padding: 2px 0;
}

.contact-plate {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 10px;
}
.contact-plate .engraved-label { font-size: 10px; }

.hazard-stripe {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 14px;
    background: repeating-linear-gradient(45deg,
        var(--hazard) 0px, var(--hazard) 9px,
        var(--bezel-black) 9px, var(--bezel-black) 18px);
    border-radius: 2px;
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.2),
        inset 0 -1px 1px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}
.hazard-stripe::after {
    /* peeling corner */
    content: "";
    position: absolute;
    right: -4px;
    top: -2px;
    width: 18px; height: 18px;
    background:
        linear-gradient(135deg, var(--aluminum-light) 0%, var(--aluminum) 50%, transparent 50%);
    transform: rotate(-20deg);
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* -------------------------------------------------------------------
   WEAR OVERLAYS
   ------------------------------------------------------------------- */

.wear-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: multiply;
}

.wear-coffee-ring {
    position: absolute;
    right: 6%;
    bottom: 12%;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(90, 40, 10, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    box-shadow:
        inset 0 0 0 1px rgba(90, 40, 10, 0.08),
        0 0 0 1px rgba(90, 40, 10, 0.05);
    transform: rotate(8deg);
    background:
        radial-gradient(ellipse at 50% 50%, transparent 70%, rgba(90, 40, 10, 0.08) 75%, rgba(90, 40, 10, 0.14) 82%, transparent 88%);
}
.wear-coffee-ring::after {
    content: "";
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(90, 40, 10, 0.1);
    border-radius: 50%;
}

/* -------------------------------------------------------------------
   MAINTENANCE CARD OVERLAY
   ------------------------------------------------------------------- */

.maintenance-card {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
    background: rgba(0,0,0,0.55);
}

.maintenance-card.open {
    opacity: 1;
    pointer-events: auto;
}

.card-inner {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    background:
        linear-gradient(180deg, #f5efe2 0%, var(--cream) 100%);
    background-image:
        repeating-linear-gradient(0deg,
            rgba(140, 110, 70, 0.025) 0px,
            rgba(140, 110, 70, 0.025) 1px,
            transparent 1px, transparent 24px),
        linear-gradient(180deg, #f5efe2 0%, var(--cream) 100%);
    color: var(--bezel-black);
    border: 1px solid rgba(90, 60, 30, 0.35);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.7),
        0 8px 16px rgba(0,0,0,0.4),
        inset 0 0 0 3px var(--cream),
        inset 0 0 0 4px rgba(90, 60, 30, 0.3);
    padding: 40px 50px;
    overflow-y: auto;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    font-family: "Spectral", Georgia, serif;
    font-size: 16px;
    line-height: 1.62;
}

.maintenance-card.open .card-inner { transform: translateY(0); }

.card-header {
    border-bottom: 2px double rgba(90, 60, 30, 0.5);
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.card-meta {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(90, 60, 30, 0.7);
    text-transform: uppercase;
}
.card-close {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--hazard);
    background: var(--cream);
    border: 1px solid rgba(201, 80, 46, 0.5);
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 2px;
    text-transform: uppercase;
    transition: background 0.15s;
}
.card-close:hover { background: rgba(201, 80, 46, 0.1); }

.card-title {
    font-family: "Spectral", serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.card-subtitle {
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: 14px;
    color: rgba(90, 60, 30, 0.75);
}

.card-body { padding: 8px 0 20px; }
.card-body p { margin-bottom: 14px; }
.card-body h3 {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hazard);
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(90, 60, 30, 0.3);
}
.card-body ul { margin: 6px 0 14px 22px; }
.card-body li { margin-bottom: 6px; }
.card-body code {
    font-family: "DM Mono", monospace;
    background: rgba(90,60,30,0.1);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 13px;
}
.card-body figcaption {
    font-style: italic;
    font-size: 13px;
    color: rgba(90, 60, 30, 0.75);
    margin-top: 6px;
    text-align: center;
}
.card-schematic {
    display: block;
    margin: 14px auto;
    max-width: 100%;
    background: var(--cream);
    border: 1px solid rgba(90, 60, 30, 0.4);
    padding: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(90, 60, 30, 0.35);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(90, 60, 30, 0.7);
    text-transform: uppercase;
}

/* -------------------------------------------------------------------
   RESPONSIVE: 720–1199 — drop 2 knobs, 4×4 patch-bay
   ------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .upper-row { grid-template-columns: 1fr 1fr; }
    .patch-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
    .knob-row .knob-wrap[data-knob="FILTER"],
    .knob-row .knob-wrap[data-knob="VERBOSITY"] { display: none; }
    .knob { width: 58px; height: 58px; }
    .knob-ticks .knob-tick { transform-origin: 50% 33px; }
    .brand-name { font-size: 15px; }
    .dymo-tape { font-size: 9px; padding: 4px 10px; }
}

/* -------------------------------------------------------------------
   RESPONSIVE: <720 — portrait rack
   ------------------------------------------------------------------- */

@media (max-width: 719px) {
    body { padding: 6px; }
    .panel {
        grid-template-rows: 50px minmax(220px, 1fr) auto auto auto 48px;
        min-height: calc(100vh - 12px);
        padding: 8px 8px;
    }
    .top-rail { padding: 0 20px; }
    .dymo-tape { display: none; }
    .brand-plate { gap: 6px; }
    .brand-model, .brand-serial { font-size: 9px; }
    .brand-name { font-size: 13px; }

    .upper-row { grid-template-columns: 1fr; grid-template-rows: 1.4fr 1fr; }
    .crt-module { padding: 14px; }
    .patch-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }

    .knob-row {
        flex-wrap: wrap;
        padding: 18px 10px 10px;
    }
    .knob { width: 48px; height: 48px; }
    .knob-ticks .knob-tick { transform-origin: 50% 28px; }
    .knob-label { font-size: 9px; }
    .knob-value { font-size: 11px; min-width: 34px; padding: 1px 3px; }
    .knob-row .knob-wrap[data-knob="FILTER"],
    .knob-row .knob-wrap[data-knob="VERBOSITY"] { display: flex; }

    .nixie-strip { flex-wrap: wrap; padding: 14px 10px; gap: 8px; }
    .nixie-tube { width: 16px; height: 28px; }
    .nixie-digit { font-size: 16px; }
    .nixie-group .engraved-label { font-size: 7.5px; }

    .lower-row { grid-template-columns: 1fr; }
    .toggle-module { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); padding: 18px 10px 10px; }
    .tape-module { padding: 18px 10px 8px; }

    .bottom-bezel { padding: 0 20px; flex-wrap: wrap; gap: 4px; }
    .contact-plate { gap: 6px; }
    .contact-plate .engraved-label { font-size: 8px; }
    .hazard-stripe { display: none; }
    .barcode { width: 40px; }

    .maintenance-card { padding: 12px; }
    .card-inner { padding: 24px 20px; font-size: 14px; }
    .card-title { font-size: 22px; }
    .grease-note { font-size: 13px; }
}

/* -------------------------------------------------------------------
   Powering on transition
   ------------------------------------------------------------------- */

body.powering-on .panel { filter: brightness(0.5); }

/* crt ignite animation */
.crt-screen::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 0;
    background:
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(157,255,180,0.35), transparent 70%);
    pointer-events: none;
    z-index: 8;
    transform: translateY(-50%);
    transition: height 0.45s cubic-bezier(0.5, 0.2, 0.3, 1);
}
body.crt-ignite .crt-screen::before { height: 100%; opacity: 0; transition: height 0.45s, opacity 0.35s 0.45s; }
