/* ShowtimeMobile (showtimemobile.com) - Bespoke Broadcast Rack & OB Acoustics Stylesheet */

.shtmb-root {
  --shtmb-canvas-main: #ECEEF1;
  --shtmb-canvas-mist: #E1E4E8;
  --shtmb-panel-light: #F6F8FA;
  --shtmb-panel-metal: #D7DCE2;
  --shtmb-rack-bg: #1E2228;
  --shtmb-rack-deep: #14181E;
  --shtmb-rack-slot: #272C34;
  --shtmb-rack-line: #343B46;
  --shtmb-border-alu: #C2C8D0;
  --shtmb-border-strong: #9AA3B0;
  --shtmb-ink-strong: #15181D;
  --shtmb-ink-body: #2E343E;
  --shtmb-ink-muted: #525B68;
  --shtmb-rack-text: #EDF0F4;
  --shtmb-rack-dim: #A5AEBC;
  --shtmb-ebu-emerald: #15803D;
  --shtmb-ebu-emerald-bright: #22C55E;
  --shtmb-ebu-emerald-soft: #DCFCE7;
  --shtmb-tally-red: #C81E1E;
  --shtmb-tally-soft: #FEE2E2;
  --shtmb-vu-amber: #D97706;
  --shtmb-vu-amber-bright: #F59E0B;
  --shtmb-vu-amber-soft: #FEF3C7;
  --shtmb-font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shtmb-font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shtmb-font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shtmb-rail-w: 244px;
  scroll-behavior: smooth;
  font-size: 16px;
}

.shtmb-root *,
.shtmb-root *::before,
.shtmb-root *::after {
  box-sizing: border-box;
}

.shtmb-canvas {
  margin: 0;
  padding: 0;
  background-color: var(--shtmb-canvas-main);
  color: var(--shtmb-ink-body);
  font-family: var(--shtmb-font-sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shtmb-skip-wire {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  background: var(--shtmb-rack-deep);
  color: #FFFFFF;
  font-family: var(--shtmb-font-mono);
  font-size: 0.85rem;
  padding: 12px 18px;
  border: 2px solid var(--shtmb-vu-amber-bright);
  border-radius: 4px;
  text-decoration: none;
}

.shtmb-skip-wire:focus {
  top: 12px;
}

.shtmb-root :focus-visible {
  outline: 3px solid var(--shtmb-vu-amber);
  outline-offset: 2px;
}

.shtmb-rack-rail :focus-visible,
.shtmb-footer-rack :focus-visible {
  outline: 3px solid var(--shtmb-vu-amber-bright);
  outline-offset: 2px;
}

/* Mobile Top Rack Bar (<1080px) */
.shtmb-mobile-rackbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--shtmb-rack-bg);
  color: var(--shtmb-rack-text);
  border-bottom: 2px solid var(--shtmb-rack-line);
  position: sticky;
  top: 0;
  z-index: 90;
}

.shtmb-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--shtmb-rack-text);
  text-decoration: none;
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  min-height: 44px;
}

.shtmb-drawer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 48px;
  padding: 8px 14px;
  background: var(--shtmb-rack-slot);
  color: var(--shtmb-rack-text);
  border: 1px solid var(--shtmb-rack-line);
  border-radius: 4px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.shtmb-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 22, 0.62);
  z-index: 95;
}

.shtmb-drawer-backdrop.shtmb-is-open {
  display: block;
}

/* Left Fixed OB-Rack Charcoal Sidebar (244px desktop) */
.shtmb-rack-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--shtmb-rail-w);
  background: var(--shtmb-rack-bg);
  color: var(--shtmb-rack-text);
  border-right: 2px solid #111419;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.shtmb-rack-head {
  padding: 18px 16px 14px 16px;
  border-bottom: 1px solid var(--shtmb-rack-line);
  background: linear-gradient(180deg, #242931 0%, #1B1F25 100%);
}

.shtmb-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--shtmb-rack-text);
  min-height: 44px;
}

.shtmb-brand-glyph {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.shtmb-brand-word {
  display: block;
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.shtmb-brand-sub {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.69rem;
  color: var(--shtmb-rack-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Static EBU R 128 VU-Scale Bar inside Left Rack */
.shtmb-vu-strip {
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--shtmb-rack-deep);
  border: 1px solid var(--shtmb-rack-line);
  border-radius: 4px;
}

.shtmb-vu-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--shtmb-font-mono);
  font-size: 0.64rem;
  color: var(--shtmb-rack-dim);
  margin-bottom: 5px;
}

.shtmb-vu-leds {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
  height: 7px;
}

.shtmb-vu-seg {
  display: block;
  border-radius: 1px;
  background: var(--shtmb-ebu-emerald-bright);
}

.shtmb-vu-seg-amber {
  background: var(--shtmb-vu-amber-bright);
}

.shtmb-vu-seg-red {
  background: var(--shtmb-tally-red);
}

/* Numbered 01-07 Broadcast Patchbay Navigation */
.shtmb-patchbay-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shtmb-patchbay-caption {
  padding: 0 8px 6px 8px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--shtmb-rack-dim);
}

.shtmb-patch-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #DCE1E8;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.shtmb-patch-link:hover {
  background: var(--shtmb-rack-slot);
  border-color: var(--shtmb-rack-line);
  color: #FFFFFF;
}

.shtmb-patch-link.shtmb-is-active {
  background: #252B34;
  border-color: #3D4756;
  color: #FFFFFF;
  box-shadow: inset 3px 0 0 var(--shtmb-ebu-emerald-bright);
}

.shtmb-patch-num {
  font-family: var(--shtmb-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--shtmb-ebu-emerald-bright);
  background: var(--shtmb-rack-deep);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #2E3642;
  flex-shrink: 0;
}

.shtmb-rack-coords {
  margin: 4px 10px 10px 10px;
  padding: 9px 10px;
  background: rgba(20, 24, 30, 0.72);
  border: 1px solid var(--shtmb-rack-line);
  border-radius: 4px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.68rem;
  line-height: 1.48;
  color: var(--shtmb-rack-dim);
}

/* Docked LEK 9 kap. 28 § Notice at Bottom of Left Rack (Zero Floating Overlay) */
.shtmb-lek-dock {
  margin: auto 10px 12px 10px;
  padding: 11px 11px;
  background: var(--shtmb-rack-deep);
  border: 1px solid #38414F;
  border-top: 2px solid var(--shtmb-vu-amber-bright);
  border-radius: 4px;
  font-size: 0.74rem;
  line-height: 1.42;
  color: #D2D8E1;
}

.shtmb-lek-dock.shtmb-lek-confirmed {
  border-top-color: var(--shtmb-ebu-emerald-bright);
  padding: 9px 11px;
}

.shtmb-lek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.shtmb-lek-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shtmb-vu-amber-bright);
  display: inline-block;
  flex-shrink: 0;
}

.shtmb-lek-dock.shtmb-lek-confirmed .shtmb-lek-dot {
  background: var(--shtmb-ebu-emerald-bright);
}

.shtmb-lek-copy {
  margin: 0 0 8px 0;
  color: #BAC2CE;
  font-size: 0.72rem;
  text-wrap: pretty;
}

.shtmb-lek-dock.shtmb-lek-confirmed .shtmb-lek-copy {
  display: none;
}

.shtmb-lek-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shtmb-lek-btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--shtmb-ebu-emerald);
  color: #FFFFFF;
  border: 1px solid #1E9E4F;
  border-radius: 4px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.shtmb-lek-btn:hover {
  background: #116932;
}

.shtmb-lek-dock.shtmb-lek-confirmed .shtmb-lek-btn {
  display: none;
}

.shtmb-lek-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #93C5FD;
  font-family: var(--shtmb-font-mono);
  font-size: 0.69rem;
  text-decoration: underline;
}

/* Main Brushed-Aluminum Engineering Stage */
.shtmb-stage {
  margin-left: var(--shtmb-rail-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Wide Brushed-Aluminum Engineering Header Bar inside Main Stage */
.shtmb-console-topbar {
  background: linear-gradient(180deg, #F7F8FA 0%, #E2E6EC 100%);
  border-bottom: 1px solid var(--shtmb-border-alu);
  padding: 10px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shtmb-tally-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.shtmb-tally-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: var(--shtmb-tally-red);
  color: #FFFFFF;
  font-family: var(--shtmb-font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 3px;
  text-transform: uppercase;
}

.shtmb-tally-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFE4E6;
}

.shtmb-loc-tag {
  font-family: var(--shtmb-font-mono);
  font-size: 0.75rem;
  color: var(--shtmb-ink-strong);
  font-weight: 500;
}

.shtmb-bus-telemetry {
  font-family: var(--shtmb-font-mono);
  font-size: 0.74rem;
  color: var(--shtmb-ink-muted);
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  padding: 4px 10px;
  border-radius: 3px;
}

/* Main Content Wrapper */
.shtmb-main-deck {
  flex: 1;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 32px 56px 32px;
}

/* Asymmetric 60% / 40% Broadcast Control-Room Hero */
.shtmb-hero-console {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 40px;
}

.shtmb-hero-monitor-frame {
  background: var(--shtmb-rack-bg);
  border: 1px solid #2A303A;
  border-top: 4px solid var(--shtmb-tally-red);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(20, 24, 30, 0.11);
}

.shtmb-monitor-bezel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: var(--shtmb-rack-deep);
  border-bottom: 1px solid var(--shtmb-rack-line);
  font-family: var(--shtmb-font-mono);
  font-size: 0.72rem;
  color: #D7DEE8;
}

.shtmb-bezel-status {
  color: var(--shtmb-ebu-emerald-bright);
  font-weight: 700;
}

.shtmb-hero-photo-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  background: #0F1217;
  overflow: hidden;
}

.shtmb-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shtmb-monitor-bezel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--shtmb-rack-line);
  border-top: 1px solid var(--shtmb-rack-line);
  margin-top: auto;
}

.shtmb-bezel-cell {
  background: #1B2027;
  padding: 10px 12px;
}

.shtmb-bezel-kicker {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.66rem;
  color: var(--shtmb-rack-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shtmb-bezel-val {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

/* Right 40% Hero Spec Column */
.shtmb-hero-spec-col {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 6px;
  padding: 24px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 #FFFFFF;
}

.shtmb-eyebrow {
  display: inline-block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shtmb-ebu-emerald);
  margin-bottom: 8px;
}

.shtmb-h1 {
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.25vw, 2.08rem);
  line-height: 1.15;
  color: var(--shtmb-ink-strong);
  margin: 0 0 12px 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.shtmb-lead {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  line-height: 1.56;
  color: var(--shtmb-ink-body);
  text-wrap: pretty;
}

/* 4-Row Chassis Acoustic Spec Ledger */
.shtmb-spec-ledger {
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 4px;
  background: var(--shtmb-canvas-main);
  margin-bottom: 18px;
}

.shtmb-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--shtmb-border-alu);
  font-size: 0.8rem;
}

.shtmb-ledger-row:last-child {
  border-bottom: none;
}

.shtmb-ledger-key {
  font-family: var(--shtmb-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--shtmb-ink-muted);
}

.shtmb-ledger-val {
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--shtmb-ink-strong);
  text-align: right;
}

.shtmb-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shtmb-btn-primary,
.shtmb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  font-family: var(--shtmb-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shtmb-btn-primary {
  background: var(--shtmb-ebu-emerald);
  color: #FFFFFF;
  border: 1px solid #116932;
}

.shtmb-btn-primary:hover {
  background: #116932;
}

.shtmb-btn-secondary {
  background: #E4E8EE;
  color: var(--shtmb-ink-strong);
  border: 1px solid var(--shtmb-border-strong);
}

.shtmb-btn-secondary:hover {
  background: #D5DCE6;
}

/* Section Headers & Deferred Rendering */
.shtmb-section {
  margin-bottom: 44px;
}

.shtmb-section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

.shtmb-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--shtmb-border-alu);
}

.shtmb-sec-kicker {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--shtmb-ebu-emerald);
  margin-bottom: 4px;
}

.shtmb-h2 {
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: clamp(1.32rem, 1.9vw, 1.72rem);
  line-height: 1.2;
  color: var(--shtmb-ink-strong);
  margin: 0;
  text-wrap: balance;
}

.shtmb-sec-note {
  margin: 0;
  max-width: 440px;
  font-size: 0.86rem;
  color: var(--shtmb-ink-muted);
  text-wrap: pretty;
}

/* Interactive EBU R 128 & DVB-T2 Field-Strength Workbench */
.shtmb-workbench-chassis {
  background: var(--shtmb-canvas-mist);
  border: 1px solid var(--shtmb-border-strong);
  border-radius: 6px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.shtmb-scenario-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.shtmb-scenario-btn {
  min-height: 48px;
  padding: 9px 12px;
  background: var(--shtmb-panel-light);
  color: var(--shtmb-ink-strong);
  border: 1px solid var(--shtmb-border-strong);
  border-radius: 4px;
  font-family: var(--shtmb-font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.shtmb-scenario-btn:hover {
  background: #FFFFFF;
}

.shtmb-scenario-btn[aria-pressed="true"] {
  background: var(--shtmb-rack-bg);
  color: #FFFFFF;
  border-color: var(--shtmb-rack-deep);
  box-shadow: inset 0 3px 0 var(--shtmb-ebu-emerald-bright);
}

.shtmb-scen-tag {
  font-family: var(--shtmb-font-mono);
  font-size: 0.67rem;
  color: var(--shtmb-ink-muted);
}

.shtmb-scenario-btn[aria-pressed="true"] .shtmb-scen-tag {
  color: var(--shtmb-ebu-emerald-bright);
}

.shtmb-slider-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.shtmb-fader-box {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 4px;
  padding: 12px 16px;
}

.shtmb-fader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.shtmb-fader-label {
  font-family: var(--shtmb-font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--shtmb-ink-strong);
}

.shtmb-fader-badge {
  font-family: var(--shtmb-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--shtmb-rack-bg);
  padding: 3px 9px;
  border-radius: 3px;
}

.shtmb-range-input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--shtmb-ebu-emerald);
  cursor: pointer;
}

.shtmb-fader-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--shtmb-font-mono);
  font-size: 0.69rem;
  color: var(--shtmb-ink-muted);
}

/* Dual-Panel Dark #14181E SVG Viewport */
.shtmb-svg-bezel {
  background: var(--shtmb-rack-deep);
  border: 1px solid #2A313C;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
}

.shtmb-workbench-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 5 Single-Line Monospace Readouts */
.shtmb-readout-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.shtmb-readout-cell {
  background: var(--shtmb-rack-bg);
  border: 1px solid #2F3744;
  border-left: 3px solid var(--shtmb-ebu-emerald-bright);
  border-radius: 4px;
  padding: 10px 12px;
}

.shtmb-readout-cell-amber {
  border-left-color: var(--shtmb-vu-amber-bright);
}

.shtmb-readout-cell-red {
  border-left-color: var(--shtmb-tally-red);
}

.shtmb-ro-label {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.67rem;
  color: var(--shtmb-rack-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shtmb-ro-val {
  display: block;
  font-family: var(--shtmb-font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Column Field-Hardware Gallery */
.shtmb-hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shtmb-hw-unit {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shtmb-hw-img-wrap {
  width: 100%;
  aspect-ratio: 1376 / 768;
  background: var(--shtmb-rack-deep);
  border-bottom: 2px solid var(--shtmb-rack-bg);
}

.shtmb-hw-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shtmb-hw-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shtmb-hw-code {
  font-family: var(--shtmb-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--shtmb-ebu-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.shtmb-hw-title {
  font-family: var(--shtmb-font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--shtmb-ink-strong);
  margin: 0 0 8px 0;
  line-height: 1.26;
  text-wrap: balance;
}

.shtmb-hw-desc {
  margin: 0 0 12px 0;
  font-size: 0.87rem;
  color: var(--shtmb-ink-body);
  text-wrap: pretty;
  flex: 1;
}

.shtmb-hw-meta {
  font-family: var(--shtmb-font-mono);
  font-size: 0.72rem;
  color: var(--shtmb-ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--shtmb-border-alu);
}

/* Filterable & Searchable 15-Dossier Engineering Ledger */
.shtmb-ledger-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--shtmb-canvas-mist);
  border: 1px solid var(--shtmb-border-alu);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.shtmb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shtmb-filter-btn {
  min-height: 44px;
  padding: 8px 14px;
  background: var(--shtmb-panel-light);
  color: var(--shtmb-ink-strong);
  border: 1px solid var(--shtmb-border-strong);
  border-radius: 4px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
}

.shtmb-filter-btn[aria-pressed="true"] {
  background: var(--shtmb-ebu-emerald);
  color: #FFFFFF;
  border-color: #116932;
  font-weight: 700;
}

.shtmb-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}

.shtmb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shtmb-search-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: #FFFFFF;
  color: var(--shtmb-ink-strong);
  border: 1px solid var(--shtmb-border-strong);
  border-radius: 4px;
  font-family: var(--shtmb-font-sans);
  font-size: 0.88rem;
}

.shtmb-ledger-count {
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  color: var(--shtmb-ink-muted);
  margin: 0 0 12px 0;
}

.shtmb-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shtmb-dossier-card {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-top: 3px solid var(--shtmb-rack-bg);
  border-radius: 5px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shtmb-dossier-card:hover {
  border-top-color: var(--shtmb-ebu-emerald);
}

.shtmb-dossier-card[hidden] {
  display: none;
}

.shtmb-dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.shtmb-dossier-id {
  font-family: var(--shtmb-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--shtmb-rack-bg);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 3px;
}

.shtmb-dossier-metric {
  font-family: var(--shtmb-font-mono);
  font-size: 0.7rem;
  color: var(--shtmb-ebu-emerald);
  font-weight: 700;
}

.shtmb-dossier-title {
  font-family: var(--shtmb-font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.28;
  margin: 0 0 8px 0;
  text-wrap: balance;
}

.shtmb-dossier-link {
  color: var(--shtmb-ink-strong);
  text-decoration: none;
}

.shtmb-dossier-link:hover {
  color: var(--shtmb-ebu-emerald);
  text-decoration: underline;
}

.shtmb-dossier-blurb {
  margin: 0 0 12px 0;
  font-size: 0.84rem;
  color: var(--shtmb-ink-body);
  text-wrap: pretty;
}

.shtmb-dossier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  border-top: 1px solid var(--shtmb-border-alu);
  font-family: var(--shtmb-font-mono);
  font-size: 0.71rem;
  color: var(--shtmb-ink-muted);
}

.shtmb-dossier-open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--shtmb-ebu-emerald);
  font-weight: 700;
  text-decoration: none;
}

/* Standards Matrix Table */
.shtmb-table-shell {
  overflow-x: auto;
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 6px;
}

.shtmb-norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.shtmb-norm-caption {
  padding: 12px 16px;
  background: var(--shtmb-rack-bg);
  color: #FFFFFF;
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  text-align: left;
  letter-spacing: 0.03em;
}

.shtmb-norm-table th {
  background: var(--shtmb-canvas-mist);
  color: var(--shtmb-ink-strong);
  font-family: var(--shtmb-font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  padding: 11px 14px;
  border-bottom: 2px solid var(--shtmb-border-strong);
}

.shtmb-norm-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--shtmb-border-alu);
  color: var(--shtmb-ink-body);
  vertical-align: top;
}

.shtmb-norm-code {
  font-family: var(--shtmb-font-mono);
  font-weight: 700;
  color: var(--shtmb-ink-strong);
  white-space: nowrap;
}

/* Technical Disclosure FAQ (<details>) */
.shtmb-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shtmb-faq-item {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 5px;
  overflow: hidden;
}

.shtmb-faq-summary {
  list-style: none;
  min-height: 50px;
  padding: 13px 18px;
  font-family: var(--shtmb-font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--shtmb-ink-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shtmb-faq-summary::-webkit-details-marker {
  display: none;
}

.shtmb-faq-marker {
  font-family: var(--shtmb-font-mono);
  font-size: 0.78rem;
  color: var(--shtmb-ebu-emerald);
  background: var(--shtmb-canvas-mist);
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.shtmb-faq-item[open] .shtmb-faq-summary {
  background: var(--shtmb-canvas-mist);
  border-bottom: 1px solid var(--shtmb-border-alu);
}

.shtmb-faq-answer {
  padding: 14px 18px 16px 18px;
  font-size: 0.9rem;
  color: var(--shtmb-ink-body);
  text-wrap: pretty;
}

.shtmb-faq-answer p {
  margin: 0;
}

/* Inner Chapter & Legal Pages Layout */
.shtmb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.75rem;
  color: var(--shtmb-ink-muted);
  margin-bottom: 18px;
}

.shtmb-breadcrumb a {
  color: var(--shtmb-ebu-emerald);
  text-decoration: none;
  font-weight: 500;
}

.shtmb-breadcrumb a:hover {
  text-decoration: underline;
}

.shtmb-article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.shtmb-article-paper {
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-top: 4px solid var(--shtmb-rack-bg);
  border-radius: 6px;
  padding: 30px 34px;
}

.shtmb-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.74rem;
}

.shtmb-meta-badge {
  background: var(--shtmb-rack-bg);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 3px;
  font-weight: 700;
}

.shtmb-meta-plain {
  background: var(--shtmb-canvas-mist);
  color: var(--shtmb-ink-strong);
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--shtmb-border-alu);
}

.shtmb-article-h2 {
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--shtmb-ink-strong);
  margin: 26px 0 10px 0;
  line-height: 1.24;
  text-wrap: balance;
}

.shtmb-article-p {
  margin: 0 0 15px 0;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--shtmb-ink-body);
  text-wrap: pretty;
}

.shtmb-article-list {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.shtmb-article-list li {
  margin-bottom: 8px;
  font-size: 0.94rem;
  text-wrap: pretty;
}

.shtmb-callout-panel {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--shtmb-canvas-main);
  border-left: 4px solid var(--shtmb-ebu-emerald);
  border-top: 1px solid var(--shtmb-border-alu);
  border-right: 1px solid var(--shtmb-border-alu);
  border-bottom: 1px solid var(--shtmb-border-alu);
  border-radius: 0 4px 4px 0;
}

.shtmb-callout-title {
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--shtmb-ebu-emerald);
  margin: 0 0 6px 0;
}

.shtmb-article-figure {
  margin: 22px 0;
  background: var(--shtmb-rack-bg);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #2A313C;
}

.shtmb-article-figcap {
  padding: 10px 14px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.74rem;
  color: #D2D9E3;
}

.shtmb-aside-rack {
  background: var(--shtmb-canvas-mist);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shtmb-aside-title {
  font-family: var(--shtmb-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shtmb-ink-strong);
  margin: 0 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--shtmb-border-strong);
}

.shtmb-aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shtmb-aside-link {
  display: block;
  padding: 8px 10px;
  min-height: 44px;
  background: var(--shtmb-panel-light);
  border: 1px solid var(--shtmb-border-alu);
  border-radius: 4px;
  color: var(--shtmb-ink-strong);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.shtmb-aside-link:hover {
  border-color: var(--shtmb-ebu-emerald);
  color: var(--shtmb-ebu-emerald);
}

/* Contact Form (:user-valid / :user-invalid) */
.shtmb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.shtmb-field-full {
  grid-column: 1 / -1;
}

.shtmb-label {
  display: block;
  font-family: var(--shtmb-font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--shtmb-ink-strong);
  margin-bottom: 6px;
}

.shtmb-input,
.shtmb-select,
.shtmb-textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: #FFFFFF;
  color: var(--shtmb-ink-strong);
  border: 1px solid var(--shtmb-border-strong);
  border-radius: 4px;
  font-family: var(--shtmb-font-sans);
  font-size: 0.92rem;
}

.shtmb-textarea {
  min-height: 120px;
  resize: vertical;
}

.shtmb-input:user-valid,
.shtmb-select:user-valid,
.shtmb-textarea:user-valid {
  border-color: var(--shtmb-ebu-emerald);
  background-color: #F4FDF7;
}

.shtmb-input:user-invalid,
.shtmb-select:user-invalid,
.shtmb-textarea:user-invalid {
  border-color: var(--shtmb-tally-red);
  background-color: #FEF6F6;
}

.shtmb-form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--shtmb-ebu-emerald-soft);
  border: 1px solid var(--shtmb-ebu-emerald);
  color: #0F5328;
  border-radius: 4px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.8rem;
}

/* Rack-Charcoal Västerås Footer */
.shtmb-footer-rack {
  background: var(--shtmb-rack-bg);
  color: var(--shtmb-rack-text);
  border-top: 3px solid var(--shtmb-ebu-emerald);
  padding: 36px 32px 28px 32px;
  margin-top: auto;
}

.shtmb-footer-inner {
  max-width: 1196px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.shtmb-footer-title {
  font-family: var(--shtmb-font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.shtmb-footer-text {
  margin: 0 0 10px 0;
  font-size: 0.83rem;
  color: var(--shtmb-rack-dim);
  text-wrap: pretty;
}

.shtmb-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shtmb-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #D5DCE6;
  text-decoration: none;
  font-size: 0.83rem;
}

.shtmb-footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.shtmb-footer-bottom {
  max-width: 1196px;
  margin: 22px auto 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--shtmb-rack-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--shtmb-font-mono);
  font-size: 0.73rem;
  color: var(--shtmb-rack-dim);
}

/* Responsive Breakpoints (<1080px collapses sidebar into accessible drawer) */
@media (max-width: 1079px) {
  .shtmb-mobile-rackbar {
    display: flex;
  }

  .shtmb-rack-rail {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 272px;
  }

  .shtmb-rack-rail.shtmb-is-open {
    transform: translateX(0);
  }

  .shtmb-stage {
    margin-left: 0;
  }

  .shtmb-hero-console {
    grid-template-columns: 1fr;
  }

  .shtmb-scenario-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shtmb-readout-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shtmb-hardware-grid,
  .shtmb-dossier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shtmb-article-shell {
    grid-template-columns: 1fr;
  }

  .shtmb-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .shtmb-console-topbar,
  .shtmb-main-deck,
  .shtmb-footer-rack {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shtmb-scenario-bar,
  .shtmb-slider-deck,
  .shtmb-readout-strip,
  .shtmb-hardware-grid,
  .shtmb-dossier-grid,
  .shtmb-form-grid,
  .shtmb-footer-inner,
  .shtmb-monitor-bezel-foot {
    grid-template-columns: 1fr;
  }

  .shtmb-article-paper {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shtmb-root {
    scroll-behavior: auto;
  }

  .shtmb-root *,
  .shtmb-root *::before,
  .shtmb-root *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
