:root {
  --sl-bg-0: #05080d;
  --sl-bg-1: #0a1119;
  --sl-bg-2: #101a25;

  --sl-panel: #0c141d;
  --sl-panel-alt: #131f2c;
  --sl-panel-edge: #1d3248;

  --sl-cyan: #00d4ff;
  --sl-cyan-dim: #3e8190;
  --sl-amber: #ffaa00;
  --sl-red: #ff3344;
  --sl-green: #4ee198;
  --sl-text: #d3dfeb;
  --sl-text-dim: #7f92a5;

  --sl-gap: 10px;
  --sl-radius: 6px;
  --sl-font-main: 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace;

  --header-height: 64px;
  --left-col-width: 360px;
  --fault-collapsed: 42px;
  --fault-expanded: 220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--sl-font-main);
  color: var(--sl-text);
  background:
    radial-gradient(circle at 24% -10%, rgba(0, 212, 255, 0.2), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255, 170, 0, 0.08), transparent 42%),
    linear-gradient(180deg, var(--sl-bg-2), var(--sl-bg-0));
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 5px
    );
  mix-blend-mode: soft-light;
  opacity: 0.2;
  animation: scanlines 7s linear infinite;
}

@keyframes scanlines {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: var(--header-height) 1fr auto;
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14, 22, 31, 0.98), rgba(8, 13, 20, 0.98));
  border: 1px solid var(--sl-panel-edge);
  border-radius: var(--sl-radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 22px rgba(0, 0, 0, 0.35);
}

/* ── Metal Texture Overlay ───────────────────────────────────────── */
.panel-head {
  background:
    linear-gradient(180deg, rgba(19, 30, 42, 0.82), rgba(13, 22, 31, 0.88)),
    url('../brushed-metal-texture.jpg') center / cover;
}

.panel-header-shell {
  background:
    linear-gradient(180deg, rgba(10, 17, 26, 0.88), rgba(6, 11, 18, 0.92)),
    url('../brushed-metal-texture.jpg') center / cover;
}

.panel--power,
.panel--eq {
  background:
    linear-gradient(160deg, rgba(14, 22, 31, 0.92), rgba(8, 13, 20, 0.94)),
    url('../brushed-metal-texture.jpg') center / cover;
}

.panel.encrypted {
  filter: grayscale(0.8) brightness(0.55);
}

.panel.decrypted {
  animation: decrypt-pop 360ms ease;
}

@keyframes decrypt-pop {
  0% {
    opacity: 0.35;
    transform: scale(0.985);
  }
  55% {
    opacity: 1;
    transform: scale(1.005);
  }
  100% {
    transform: scale(1);
  }
}

.panel-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  pointer-events: none;
  z-index: 5;
}

.panel-corner-tl {
  top: 1px;
  left: 1px;
  border-right: 0;
  border-bottom: 0;
}

.panel-corner-tr {
  top: 1px;
  right: 1px;
  border-left: 0;
  border-bottom: 0;
}

.panel-corner-bl {
  bottom: 1px;
  left: 1px;
  border-right: 0;
  border-top: 0;
}

.panel-corner-br {
  bottom: 1px;
  right: 1px;
  border-left: 0;
  border-top: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(58, 91, 120, 0.6);
}

.panel-title {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--sl-text-dim);
}

.panel-status {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sl-cyan);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 420px) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 0;
}

.slicer-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--sl-text);
}

.status-row {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-indicator {
  color: var(--sl-green);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.file-info {
  color: var(--sl-cyan);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-zone {
  min-height: 38px;
  border: 1px dashed rgba(82, 121, 154, 0.7);
  border-radius: var(--sl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(16, 24, 34, 0.9), rgba(10, 16, 24, 0.95));
  transition: 180ms ease;
  user-select: none;
  padding: 0 10px;
  flex-wrap: wrap;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.drag-over {
  outline: none;
  border-color: rgba(255, 170, 0, 0.85);
  box-shadow: 0 0 14px rgba(255, 170, 0, 0.25);
  background: linear-gradient(180deg, rgba(34, 29, 20, 0.95), rgba(15, 18, 22, 0.95));
}

.drop-icon {
  color: var(--sl-amber);
  font-size: 12px;
}

.drop-text {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--sl-text-dim);
}

.drop-zone-browse {
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255, 170, 0, 0.8);
  background: linear-gradient(180deg, rgba(48, 36, 14, 0.92), rgba(22, 19, 12, 0.95));
  color: var(--sl-amber);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 0 10px;
  cursor: pointer;
}

.drop-zone-browse:hover {
  color: #ffe3b4;
  border-color: rgba(255, 201, 105, 0.95);
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.transport-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.transport-btn {
  min-width: 78px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(82, 121, 154, 0.7);
  background: linear-gradient(180deg, rgba(20, 31, 45, 0.95), rgba(12, 20, 30, 0.96));
  color: var(--sl-text);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
}

.transport-btn:hover:enabled {
  border-color: rgba(255, 170, 0, 0.8);
  color: #ffffff;
}

.transport-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.transport-primary {
  border-color: rgba(255, 170, 0, 0.75);
  color: var(--sl-amber);
}

.transport-btn.is-muted {
  border-color: rgba(255, 51, 68, 0.8);
  color: var(--sl-red);
}

.loop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(82, 121, 154, 0.7);
  background: linear-gradient(180deg, rgba(20, 31, 45, 0.95), rgba(12, 20, 30, 0.96));
  color: var(--sl-text-dim);
  font-size: 10px;
  letter-spacing: 1px;
  user-select: none;
  cursor: pointer;
}

.loop-toggle input {
  margin: 0;
  accent-color: var(--sl-amber);
}

.loop-toggle:hover {
  border-color: rgba(255, 170, 0, 0.8);
  color: #ffffff;
}

.loop-toggle input:checked + span {
  color: var(--sl-amber);
}

.loop-toggle input:disabled {
  cursor: default;
}

.loop-toggle:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
}

.time-display {
  font-size: 11px;
  color: var(--sl-text);
  letter-spacing: 1px;
}

.time-sep {
  color: var(--sl-text-dim);
  margin: 0 4px;
}

.main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, var(--left-col-width)) 1fr;
  gap: var(--sl-gap);
  padding: var(--sl-gap);
}

.left-column,
.right-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sl-gap);
}

.left-column,
.right-column {
  overflow: auto;
}

.chart-canvas {
  width: 100%;
  display: block;
  background:
    linear-gradient(180deg, rgba(6, 10, 15, 0.2), rgba(6, 10, 15, 0.7)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 7px
    );
}

.panel--overview .chart-canvas {
  height: 128px;
}

.panel--spectrogram .chart-canvas {
  height: 220px;
}

.panel--heatmap .chart-canvas {
  height: 180px;
}

.panel--spectrum .chart-canvas {
  height: 210px;
}

.chart-square {
  aspect-ratio: 1 / 1;
  max-height: 340px;
  min-height: 220px;
}

.panel--power {
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.power-controls {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.power-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 8px;
}

.power-label {
  color: var(--sl-text-dim);
  font-size: 10px;
  letter-spacing: 1px;
}

.power-value {
  text-align: right;
  color: var(--sl-cyan);
  font-size: 10px;
}

.power-slider {
  appearance: none;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.22), rgba(255, 170, 0, 0.6));
  border: 1px solid rgba(255, 170, 0, 0.35);
}

.power-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 16px;
  border-radius: 2px;
  background: var(--sl-cyan);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
  cursor: pointer;
}

.power-slider::-moz-range-thumb {
  width: 12px;
  height: 16px;
  border-radius: 2px;
  background: var(--sl-cyan);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
  cursor: pointer;
}

/* ── Beat Tap / Signal Sync ──────────────────────────────────── */

.panel--beat-tap {
  display: flex;
  flex-direction: column;
}

.panel--beat-tap .chart-canvas {
  height: 100px;
}

.panel--beat-tap .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beat-tap-score {
  color: var(--sl-amber);
  font-weight: bold;
  margin-left: auto;
}

/* ── Club Visualisation Row ──────────────────────────────────── */

.club-viz-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sl-gap);
  flex: 1;
  min-height: 200px;
}

.panel--phase-scope,
.panel--oscilloscope {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel--phase-scope .chart-canvas,
.panel--oscilloscope .chart-canvas {
  flex: 1;
  min-height: 0;
}

/* ── EQ Dials ───────────────────────────────────────────────────── */

.panel--eq {
  display: flex;
  flex-direction: column;
}

.eq-controls {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 14px 6px 12px;
  gap: 4px;
}

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

.eq-dial-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--sl-text-dim);
  text-align: center;
}

.eq-dial-outer {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(60, 80, 100, 0.35), rgba(10, 15, 22, 0.95)),
    url('../brushed-metal-texture.jpg') center / cover;
  border: 2px solid rgba(100, 130, 160, 0.45);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 212, 255, 0.08);
  cursor: ns-resize;
  user-select: none;
  touch-action: none;
  outline: none;
  transition: box-shadow 120ms ease;
}

.eq-dial-outer:hover,
.eq-dial-outer:focus-visible {
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(0, 212, 255, 0.2);
}

.eq-dial-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(50, 65, 82, 0.7), rgba(14, 20, 28, 0.98) 70%),
    url('../brushed-metal-texture.jpg') center / cover;
  transition: transform 40ms ease-out;
}

.eq-dial-indicator {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--sl-amber);
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.7);
}

.eq-dial-readout {
  font-size: 9px;
  color: var(--sl-cyan);
  letter-spacing: 0.5px;
  text-align: center;
  min-height: 13px;
}

.eq-dial-freq {
  font-size: 8px;
  color: var(--sl-text-dim);
  letter-spacing: 0.3px;
  opacity: 0.7;
}

.eq-status {
  font-size: 9px;
  letter-spacing: 1px;
}

body.dial-dragging,
body.dial-dragging * {
  cursor: ns-resize !important;
  user-select: none !important;
}



.fault-drawer {
  border-radius: 0;
  max-height: var(--fault-collapsed);
  transition: max-height 220ms ease;
}

.fault-drawer.expanded {
  max-height: calc(var(--fault-collapsed) + var(--fault-expanded));
}

.fault-drawer-toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--fault-collapsed);
  padding: 0 12px;
  border-bottom: 1px solid rgba(58, 91, 120, 0.6);
  cursor: pointer;
}

.fault-count {
  font-size: 10px;
  color: var(--sl-amber);
  letter-spacing: 1px;
}

.fault-chevron {
  color: var(--sl-text-dim);
  transition: transform 160ms ease;
}

.fault-drawer.expanded .fault-chevron {
  transform: rotate(180deg);
}

.fault-list {
  max-height: var(--fault-expanded);
  overflow: auto;
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
}

.fault-empty {
  color: var(--sl-text-dim);
  font-size: 10px;
  padding: 8px 6px;
}

.fault-entry {
  display: grid;
  grid-template-columns: 54px 102px 114px 1fr;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1.25;
  border-left: 2px solid transparent;
  background: rgba(15, 22, 31, 0.7);
}

.fault-entry:nth-child(even) {
  background: rgba(18, 27, 37, 0.78);
}

.fault-entry.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fault-entry--crit {
  border-left-color: var(--sl-red);
}

.fault-entry--warn {
  border-left-color: var(--sl-amber);
}

.fault-entry--info {
  border-left-color: var(--sl-cyan);
}

.fault-severity {
  font-weight: 700;
}

.fault-entry--crit .fault-severity {
  color: var(--sl-red);
}

.fault-entry--warn .fault-severity {
  color: var(--sl-amber);
}

.fault-entry--info .fault-severity {
  color: var(--sl-cyan);
}

.fault-range {
  color: var(--sl-text-dim);
}

.fault-type {
  color: var(--sl-text);
}

.fault-message {
  color: #b8c7d6;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay-passive {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 212, 255, 0.11), transparent 55%),
    rgba(3, 8, 14, 0.62);
  pointer-events: all;
}

.overlay-blocking {
  background: rgba(2, 6, 10, 0.84);
  pointer-events: all;
}

.overlay-card {
  min-width: 280px;
  max-width: min(90vw, 560px);
  border: 1px solid rgba(71, 111, 144, 0.8);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(11, 19, 28, 0.97), rgba(7, 13, 20, 0.97));
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.45);
  padding: 18px 22px;
  text-align: center;
}

.overlay-title {
  font-size: 15px;
  letter-spacing: 2px;
}

.overlay-subtitle {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--sl-cyan);
}

.overlay-actions {
  margin-top: 14px;
}

.overlay-btn {
  min-width: 140px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 170, 0, 0.85);
  background: linear-gradient(180deg, rgba(48, 36, 14, 0.92), rgba(22, 19, 12, 0.95));
  color: var(--sl-amber);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}

.overlay-btn:hover {
  border-color: rgba(255, 201, 105, 0.95);
  color: #ffe3b4;
}

.overlay-hint {
  margin-top: 10px;
  color: var(--sl-text-dim);
  font-size: 10px;
  letter-spacing: 0.4px;
}

.progress-label {
  font-size: 12px;
  letter-spacing: 1px;
}

.progress-track {
  margin-top: 10px;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(80, 112, 139, 0.75);
  background: rgba(7, 12, 18, 0.85);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0b6d85, #00d4ff);
  transition: width 160ms ease;
}

.progress-stage {
  margin-top: 8px;
  font-size: 10px;
  color: var(--sl-text-dim);
}

#progress-overlay.is-error .progress-fill {
  background: linear-gradient(90deg, #8d1f32, var(--sl-red));
}

.shared-tooltip {
  position: fixed;
  z-index: 70;
  max-width: 320px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.6);
  background: rgba(7, 12, 19, 0.96);
  color: #e5f5ff;
  font-size: 10px;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}

.flash-messages {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flash-message {
  min-width: 180px;
  max-width: 340px;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 15, 23, 0.94);
  font-size: 10px;
  letter-spacing: 0.8px;
  transform: translateX(0);
  transition: transform 220ms ease, opacity 220ms ease;
}

.flash-message.leaving {
  opacity: 0;
  transform: translateX(12px);
}

.flash-ok {
  border-color: rgba(78, 225, 152, 0.6);
  color: #a5f0c8;
}

.flash-warn {
  border-color: rgba(255, 170, 0, 0.65);
  color: #ffd08a;
}

.flash-error {
  border-color: rgba(255, 51, 68, 0.7);
  color: #ffabb5;
}

.orientation-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 84px;
  z-index: 65;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid rgba(255, 170, 0, 0.6);
  background: rgba(18, 14, 7, 0.92);
  color: #ffd183;
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.show-orientation-hint .orientation-hint {
  opacity: 1;
}

body.is-playing-glow .panel {
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.08),
    0 0 20px rgba(0, 212, 255, 0.14),
    0 0 34px rgba(255, 170, 0, 0.08);
}

@media (max-width: 1279px) {
  :root {
    --left-col-width: 320px;
  }

  .panel--spectrogram .chart-canvas {
    height: 205px;
  }
}

@media (max-width: 1023px) {
  .app-shell {
    grid-template-rows: auto 1fr auto;
  }

  .header-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-right {
    align-items: stretch;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .left-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .panel--power {
    grid-column: 1 / -1;
  }

  .panel--eq {
    grid-column: 1 / -1;
  }



  .chart-square {
    max-height: 280px;
  }
}

@media (max-width: 767px) {
  :root {
    --sl-gap: 8px;
    --fault-expanded: 260px;
  }

  .left-column {
    display: flex;
  }

  .club-viz-row {
    grid-template-columns: 1fr;
    min-height: 160px;
  }

  .panel--phase-scope .chart-canvas {
    height: 200px;
  }

  .panel--overview .chart-canvas {
    height: 118px;
  }

  .panel--spectrogram .chart-canvas {
    height: 185px;
  }

  .panel--heatmap .chart-canvas {
    height: 160px;
  }

  .fault-entry {
    grid-template-columns: 44px 90px 92px 1fr;
    font-size: 9px;
  }
}

@media (max-width: 599px) {
  :root {
    --header-height: auto;
    --fault-collapsed: 40px;
  }

  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100%;
    grid-template-rows: auto 1fr auto;
    padding-bottom: 56px;
  }

  .header-bar {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .transport-controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 38;
    padding: 6px 8px;
    background: rgba(8, 14, 22, 0.97);
    border-top: 1px solid rgba(66, 95, 122, 0.8);
    justify-content: space-between;
  }

  .transport-btn {
    flex: 1;
    min-width: 0;
  }

  .loop-toggle {
    min-width: 74px;
    justify-content: center;
    padding: 0 6px;
  }

  .time-display {
    align-self: flex-start;
    margin-bottom: 2px;
  }

  .drop-text {
    font-size: 9px;
  }

  .fault-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 44px;
    z-index: 34;
  }

  .orientation-hint {
    bottom: 104px;
  }

  .eq-dial-outer {
    width: 44px;
    height: 44px;
  }

  .eq-dial-label {
    font-size: 8px;
  }

  .eq-dial-readout {
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .slicer-title {
    font-size: 12px;
  }

  .panel-title {
    font-size: 9px;
  }

  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .fault-entry {
    grid-template-columns: 40px 74px 78px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
