/* THE EQUIPMENT SHELL · generated by gear_shell.py.
   A chassis, a power button and an LCD. Site tokens only — the metal is
   built out of the existing surface colours so it themes with everything
   else rather than being a second palette. */

.gc { --gc-face:#191D24; --gc-face2:#12161C; --gc-edge:#2C333D;
  --gc-screw:#3A424E; --gc-print:#8C97A4; --gc-led:#4FD38A;
  --gc-lcd:#0A1410; --gc-lcdink:#7FE8A8;
  /* ⛔⛔ A RACK UNIT IS AS WIDE AS THE RACK, AND IT HAS TO SAY SO.
     Measured, in the live page: the EQ chassis sat at 759 px inside a
     1,198 px pane and would not grow — so pulling the graphic EQ out to a
     wide window gave a wide empty pane with a narrow unit floating in it.
     `width:auto` on a block is supposed to fill, and here it did not; with
     box-sizing:border-box, 100% says the same thing and says it explicitly.
     ⛔ Declared once, on the chassis, so every unit behaves the same rather
       than each surface fighting its container on its own. */
  width:100%; box-sizing:border-box;
  position:relative; border:1px solid var(--gc-edge); border-radius:7px;
  background:
    linear-gradient(180deg, var(--gc-face) 0%, var(--gc-face2) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),
             0 2px 9px rgba(0,0,0,.42);
  overflow:hidden; }

/* ── THE RACK EARS. Two vertical strips with screws, which is what makes a
   box read as a piece of equipment rather than a div with a border. ───── */
.gc__ear { position:absolute; top:0; bottom:0; width:17px; z-index:2;
  background:linear-gradient(90deg,#20252D,#161A20);
  border-right:1px solid rgba(0,0,0,.4); pointer-events:none; }
.gc__ear--r { right:0; left:auto; border-right:0;
  border-left:1px solid rgba(0,0,0,.4);
  background:linear-gradient(270deg,#20252D,#161A20); }
.gc__ear::before, .gc__ear::after { content:''; position:absolute; left:4px;
  width:8px; height:8px; border-radius:50%;
  background:radial-gradient(circle at 36% 32%, #596575, var(--gc-screw) 62%,
    #1B2027 100%);
  box-shadow:inset 0 0 2px rgba(0,0,0,.65); }
.gc__ear::before { top:9px; }
.gc__ear::after { bottom:9px; }

/* ── THE FACE PLATE. Header carries the brand, the model and the power. ─ */
.gc__plate { position:relative; z-index:3; display:flex; align-items:center;
  gap:11px; padding:7px 23px; border-bottom:1px solid var(--gc-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.035),transparent); }

/* ⛔ OUR PLATE. The corner a manufacturer puts its name in. */
.gc__brand { display:flex; flex-direction:column; gap:1px; min-width:0; }
.gc__brandname { font:800 8px/1 'Segoe UI',sans-serif; letter-spacing:.2em;
  text-transform:uppercase; color:var(--gel,#C9A84C); white-space:nowrap; }
.gc__model { font:700 13px/1 'Courier New',monospace; letter-spacing:.07em;
  color:var(--ink,#e7ecf2); white-space:nowrap; }
.gc__kind { font:400 9px/1.3 'Segoe UI',sans-serif; color:var(--gc-print);
  letter-spacing:.05em; }
.gc__plate .gc__kind { margin-left:3px; padding-left:11px;
  border-left:1px solid var(--gc-edge); }

/* the vent grille — eight hairlines, the cheapest honest metal detail */
.gc__vent { flex:1; height:13px; min-width:18px; opacity:.5;
  background:repeating-linear-gradient(180deg,
    rgba(255,255,255,.055) 0 1px, transparent 1px 3px); }

/* ── THE POWER BUTTON. A real button, with a ring that lights. ────────── */
.gc__pwr { position:relative; z-index:4; flex:0 0 auto; display:flex;
  align-items:center; gap:7px; cursor:pointer; border:0; background:none;
  padding:0; }
.gc__pwrring { width:19px; height:19px; border-radius:50%;
  border:2px solid #39414D; display:grid; place-items:center;
  background:radial-gradient(circle at 38% 30%,#262C35,#14181E);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.07); }
.gc__pwrring::after { content:''; width:7px; height:7px; border-radius:50%;
  background:#2A313B; }
.gc__pwrlab { font:700 8px/1 'Courier New',monospace; letter-spacing:.15em;
  text-transform:uppercase; color:#5D6873; }
.gc.is-on .gc__pwrring { border-color:var(--gc-led); }
.gc.is-on .gc__pwrring::after { background:var(--gc-led);
  box-shadow:0 0 7px var(--gc-led); }
.gc.is-on .gc__pwrlab { color:var(--gc-led); }
.gc__pwr:focus-visible { outline:2px solid var(--gel,#C9A84C);
  outline-offset:3px; border-radius:4px; }

/* ── THE SURFACE. Where the board actually mounts. ──────────────────────
   ⛔⛔ overflow:auto, AND IT IS NOT COSMETIC. The chassis is overflow:hidden
      so the rack ears and the rounded corners clip properly — which meant
      that the moment the 16-channel console (1,240 px of channel strips)
      was wrapped in one, it was clipped at the unit's edge with no way to
      reach the rest of it. The pane outside had overflow:auto and never saw
      the overflow, because the chassis had already cut it off. The unit
      itself has to be the scroller: you slide along a big desk in a real
      room too. */
.gc__face { position:relative; z-index:1; padding:9px 23px 11px;
  overflow:auto; }

/* ⛔⛔ AN UNPOWERED UNIT IS DARK AND DOES NOTHING. This is the entire point
   of giving it a power button: a student who cannot find their sound has to
   learn to look at the lamp before they look at the fader. It is dimmed and
   pointer-blocked, never unmounted — the state underneath is untouched and
   comes straight back on. */
.gc:not(.is-on) .gc__face { opacity:.17; pointer-events:none;
  filter:grayscale(1); }
.gc:not(.is-on) .gc__off { display:flex; }
.gc__off { display:none; position:absolute; inset:38px 0 0; z-index:6;
  align-items:center; justify-content:center; text-align:center;
  padding:16px; }
.gc__offcard { max-width:34ch; }
.gc__offcard b { display:block; font:700 11px/1.3 'Courier New',monospace;
  letter-spacing:.18em; text-transform:uppercase; color:var(--gc-print); }
.gc__offcard p { margin:7px 0 0; font:400 11.5px/1.5 'Segoe UI',sans-serif;
  color:#6B7785; }

/* ── THE LCD. Dark glass, phosphor ink, four soft keys and an encoder. ── */
.gc__lcdwrap { display:flex; align-items:stretch; gap:9px; margin:0 0 9px; }
.gc__lcd { flex:1 1 auto; min-width:0; border-radius:4px;
  border:1px solid #05100B; padding:7px 9px; min-height:74px;
  background:
    linear-gradient(180deg, rgba(127,232,168,.07), transparent 62%),
    var(--gc-lcd);
  box-shadow:inset 0 0 14px rgba(0,0,0,.72);
  font:400 11px/1.45 'Courier New',monospace; color:var(--gc-lcdink);
  /* ⛔ the scanline is what stops it reading as a textarea */
  background-blend-mode:normal; }
.gc:not(.is-on) .gc__lcd { color:transparent; }
.gc__lcdtop { display:flex; justify-content:space-between; gap:9px;
  padding-bottom:4px; margin-bottom:5px;
  border-bottom:1px solid rgba(127,232,168,.22);
  font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  font-size:9px; }
.gc__lcdrow { display:flex; justify-content:space-between; gap:10px; }
.gc__lcdrow.is-sel { background:rgba(127,232,168,.16);
  margin:0 -4px; padding:0 4px; border-radius:2px; }
.gc__lcdrow b { font-weight:700; font-variant-numeric:tabular-nums; }
.gc__lcdnote { margin-top:5px; font-size:9.5px; opacity:.6; }

.gc__soft { flex:0 0 auto; display:grid; grid-template-columns:repeat(2,1fr);
  gap:4px; align-content:center; }
.gc__sk { cursor:pointer; border:1px solid var(--gc-edge); border-radius:3px;
  background:linear-gradient(180deg,#262C35,#171C23); color:var(--gc-print);
  padding:5px 8px; font:700 8px/1 'Courier New',monospace;
  letter-spacing:.11em; text-transform:uppercase; min-width:52px; }
.gc__sk:hover { color:var(--ink,#e7ecf2); border-color:var(--gel,#C9A84C); }
.gc__sk.on { background:var(--gel,#C9A84C); color:#17120a;
  border-color:var(--gel,#C9A84C); }

/* the encoder — push to select, turn to change. Drag it like a knob. */
.gc__enc { flex:0 0 auto; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:4px; }
.gc__encknob { width:38px; height:38px; border-radius:50%;
  cursor:ns-resize; touch-action:none;
  background:
    radial-gradient(circle at 40% 28%, #39414D, #1C222A 64%, #0E1216 100%);
  border:1px solid #0A0D11;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.1), 0 2px 5px rgba(0,0,0,.5);
  position:relative; }
.gc__encknob::after { content:''; position:absolute; left:50%; top:4px;
  width:2px; height:11px; margin-left:-1px; border-radius:1px;
  background:var(--gel,#C9A84C); transform-origin:50% 100%; }
.gc__enclab { font:700 7.5px/1 'Courier New',monospace; letter-spacing:.12em;
  text-transform:uppercase; color:#5D6873; }

/* ── THE POWER CHAIN READOUT. The lesson, written where it happens. ───── */
.gcchain { border:1px solid var(--rule,#2a3340); border-radius:7px;
  background:var(--bg-soft,#10151b); padding:9px 11px; }
.gcchain__h { display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  font:700 9px/1 'Courier New',monospace; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ink-soft,#8c97a4); }
.gcchain__h b { color:var(--ink,#e7ecf2); letter-spacing:.05em; }
.gcchain__btns { margin-left:auto; display:flex; gap:4px; }
.gcchain__steps { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.gcchain__st { display:flex; align-items:center; gap:6px;
  border:1px solid var(--rule,#2a3340); border-radius:4px; padding:4px 8px;
  font:700 9px/1 'Courier New',monospace; letter-spacing:.07em;
  color:#5D6873; }
.gcchain__st i { width:6px; height:6px; border-radius:50%;
  background:#2A313B; font-style:normal; }
.gcchain__st.is-on { color:var(--ink,#e7ecf2);
  border-color:rgba(79,211,138,.5); }
.gcchain__st.is-on i { background:#4FD38A; box-shadow:0 0 6px #4FD38A; }
.gcchain__st.is-bad { border-color:#D64545; color:#E88; }
.gcchain__st.is-bad i { background:#D64545; box-shadow:0 0 6px #D64545; }
.gcchain__say { margin:8px 0 0; font:400 11.5px/1.5 'Segoe UI',sans-serif;
  color:#6B7785; }
.gcchain__say.is-bad { color:#E0A0A0; }
.gcchain__say b { color:var(--ink,#e7ecf2); }

@media (max-width:700px){
  .gc__ear { display:none; }
  .gc__plate, .gc__face { padding-left:11px; padding-right:11px; }
  .gc__lcdwrap { flex-wrap:wrap; }
}
