/* ==========================================================================
   SHIMMER / HALL REVERB — Studio Hardware / Plugin Aesthetic (Pure CSS)
   Matches Shimmer-02.png 1:1 with zero frameworks or external libraries.
   ========================================================================== */

:root {
  --bg-page: #0b0d11;
  --chassis-top: #1c2129;
  --chassis-bot: #13171d;
  --card-top: #1a1f27;
  --card-bot: #14181f;
  --inset-bg: #0e1217;
  --border-outer: #2c333f;
  --border-subtle: #252c36;
  --border-focus: #f08c2b;

  --amber: #f08c2b;
  --amber-bright: #ffa447;
  --amber-deep: #cf6b12;
  --amber-glow: rgba(240, 140, 43, 0.32);

  --cyan: #2ddbc0;
  --cyan-bright: #4ef5da;
  --cyan-glow: rgba(45, 219, 192, 0.28);

  --text-primary: #e8ecf2;
  --text-secondary: #cfd6e2;
  --text-muted: #8d96a5;
  --text-dim: #667080;

  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, #171c24 0%, #090b0f 75%);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.app-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Drag & Drop Audio File Overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.84);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drop-overlay.is-visible {
  display: flex;
}

.drop-overlay-box {
  border: 2px dashed var(--amber);
  background: #161b22;
  border-radius: 10px;
  padding: 34px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 15px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--amber-glow);
}

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

/* ==========================================================================
   MAIN REVERB HARDWARE CHASSIS
   ========================================================================== */

.reverb-unit {
  background: linear-gradient(180deg, var(--chassis-top) 0%, var(--chassis-bot) 100%);
  border: 1px solid #303744;
  border-radius: 9px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 2px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: visible;
  transition: opacity 0.2s ease;
}

.reverb-unit.is-bypassed .unit-body {
  filter: saturate(0.42) brightness(0.84);
}

/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */

.unit-header {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #1d222b 0%, #151920 100%);
  border-bottom: 1px solid #282f3b;
  border-radius: 8px 8px 0 0;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding-bottom: 1px;
}

.brand-bars span {
  display: block;
  width: 3.5px;
  border-radius: 1.5px;
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  box-shadow: 0 0 6px rgba(240, 140, 43, 0.35);
}

.v-divider {
  width: 1px;
  height: 24px;
  background: #2d3441;
  flex-shrink: 0;
}

.unit-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.title-main {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #edf1f7;
}

.title-sub {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #939cab;
}

.preset-label {
  color: #9aa3b2;
  font-size: 13px;
}

/* Custom Studio Preset Dropdown */
.preset-dropdown {
  position: relative;
  width: 280px;
}

.preset-trigger {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  background: var(--inset-bg);
  border: 1px solid #2e3643;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
  transition: border-color 0.15s ease;
}

.preset-trigger:hover,
.preset-trigger[aria-expanded="true"] {
  border-color: #465164;
}

.preset-caret {
  font-size: 9px;
  color: #9aa3b2;
}

.preset-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  background: #151921;
  border: 1px solid #384152;
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  z-index: 120;
  padding: 4px;
}

.preset-group-label {
  padding: 6px 10px 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--amber);
  text-transform: uppercase;
}

.preset-item {
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.preset-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.preset-item.is-selected {
  background: rgba(240, 140, 43, 0.18);
  color: var(--amber-bright);
  font-weight: 500;
}

.preset-alg-tag {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-del-btn {
  color: #8891a0;
  font-size: 12px;
  padding: 0 4px;
}

.preset-del-btn:hover {
  color: #ff6b6b;
}

.preset-nav {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 30px;
  height: 32px;
  background: linear-gradient(180deg, #212731 0%, #171c23 100%);
  border: 1px solid #2f3744;
  border-radius: 4px;
  color: #b7c0ce;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.12s ease;
}

.icon-btn:hover {
  background: linear-gradient(180deg, #28303c 0%, #1d232c 100%);
  color: #fff;
  border-color: #414c5e;
}

.icon-btn:active {
  transform: translateY(1px);
}

.power-btn {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(180deg, #26201b 0%, #1b1714 100%);
  border: 1px solid #454d5c;
  color: #6f7887;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.power-btn.is-on {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: radial-gradient(circle at 50% 50%, rgba(240, 140, 43, 0.20) 0%, rgba(30, 22, 16, 0.95) 100%);
  box-shadow: 0 0 12px rgba(240, 140, 43, 0.28), inset 0 0 6px rgba(240, 140, 43, 0.18);
}

/* ==========================================================================
   MAIN 3-COLUMN GRID
   ========================================================================== */

.unit-body {
  display: grid;
  grid-template-columns: 168px minmax(420px, 1fr) minmax(450px, 1.08fr);
  gap: 10px;
  padding: 10px 12px;
}

.card {
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bot) 100%);
  border: 1px solid var(--border-outer);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   COLUMN 1: ALGORITHM PANEL
   ========================================================================== */

.algorithm-card {
  display: flex;
  flex-direction: column;
  padding: 11px 0;
}

.alg-header {
  padding: 0 14px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #a6afbe;
  border-bottom: 1px solid #262d38;
}

.alg-list {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  gap: 3px;
}

.alg-option {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.alg-option:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.alg-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.6px solid #6e7787;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.alg-option.is-active {
  background: linear-gradient(90deg, rgba(240, 140, 43, 0.24) 0%, rgba(240, 140, 43, 0.11) 100%);
  border-color: rgba(240, 140, 43, 0.58);
  color: #ffffff;
  font-weight: 500;
  box-shadow: inset 0 0 12px rgba(240, 140, 43, 0.08);
}

.alg-option.is-active .alg-radio {
  border-color: var(--amber-bright);
  box-shadow: 0 0 7px rgba(240, 140, 43, 0.5);
}

.alg-option.is-active .alg-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-bright);
}

/* ==========================================================================
   COLUMN 2: PARAMETER CARDS (EARLY / SPACE, TONE, SHIMMER)
   ========================================================================== */

.center-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.param-card {
  padding: 10px 14px 11px;
  transition: opacity 0.2s ease;
}

.param-card.is-hall-dimmed {
  opacity: 0.54;
}

.param-card.is-hall-dimmed:hover {
  opacity: 0.85;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: #2a313d;
}

.shimmer-mode-hint {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: #10141a;
  border: 1px solid #2b3340;
  border-radius: 3px;
  padding: 2px 6px;
}

.param-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.param-row {
  display: grid;
  grid-template-columns: 84px 1fr 78px 30px;
  align-items: center;
  gap: 12px;
  height: 28px;
}

.param-row-stepper {
  grid-template-columns: 84px 1fr 30px;
}

.param-label {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

/* Custom Studio Horizontal Fader */
.fader-track-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: ew-resize;
  touch-action: none;
}

.fader-groove {
  position: relative;
  width: 100%;
  height: 7px;
  background: #0c0f14;
  border: 1px solid #252c36;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.fader-fill {
  height: 100%;
  background: linear-gradient(90deg, #cf6d17 0%, var(--amber) 70%, var(--amber-bright) 100%);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 8px rgba(240, 140, 43, 0.35);
}

.fader-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #c2c9d4 0%, #87909e 100%);
  border: 1px solid #404854;
  border-radius: 2.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.fader-track-wrap:hover .fader-thumb,
.fader-track-wrap.is-dragging .fader-thumb {
  background: linear-gradient(180deg, #dce2ec 0%, #9ba4b3 100%);
  border-color: var(--amber);
}

/* Numeric Value Pill (Click to edit!) */
.value-pill {
  height: 24px;
  padding: 0 6px;
  background: var(--inset-bg);
  border: 1px solid #2d3542;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: text;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.value-pill:hover {
  border-color: #424d5f;
}

.value-inline-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--amber-bright);
  font-family: inherit;
  font-size: 12.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Pitch Stepper Row (< +12 st >) */
.pitch-stepper {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  height: 26px;
  background: var(--inset-bg);
  border: 1px solid #2d3542;
  border-radius: 4px;
  overflow: hidden;
}

.stepper-arrow {
  height: 100%;
  background: linear-gradient(180deg, #212731 0%, #171b22 100%);
  border: none;
  color: #b7c0ce;
  font-size: 9.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-arrow:first-child {
  border-right: 1px solid #2b323e;
}

.stepper-arrow:last-child {
  border-left: 1px solid #2b323e;
}

.stepper-arrow:hover {
  background: #2a3240;
  color: #fff;
}

.stepper-value {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  cursor: ns-resize;
}

/* Synced Mini Rotary Encoder */
.mini-knob-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
}

.mini-knob-svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

/* ==========================================================================
   COLUMN 3: VISUALIZATIONS & BIG KNOBS
   ========================================================================== */

.right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vis-card {
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
}

.vis-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vis-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vis-title-main {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}

.vis-title-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.vis-readout {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.spectrum-card {
  height: 214px;
}

.spectrum-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}

.spectrum-wrap canvas,
.meters-pane canvas,
.tail-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Meters + 3 Big Knobs Middle Card */
.meters-knobs-card {
  height: 174px;
  padding: 10px 14px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.meters-pane {
  width: 112px;
  flex-shrink: 0;
}

.pane-v-divider {
  width: 1px;
  background: #282f3b;
  margin: 4px 0;
}

.big-knobs-pane {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.big-knob-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.big-knob-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.big-knob-touch {
  width: 78px;
  height: 78px;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-knob-svg {
  width: 78px;
  height: 78px;
  overflow: visible;
}

.big-knob-slot .value-pill {
  width: 72px;
  height: 24px;
}

/* Reverb Tail Bottom Card */
.tail-card {
  flex: 1;
  min-height: 116px;
}

.tail-wrap {
  flex: 1;
  min-height: 68px;
  position: relative;
}

/* ==========================================================================
   BOTTOM UTILITY & OUTPUT GAIN FOOTER
   ========================================================================== */

.unit-footer {
  height: 48px;
  padding: 0 16px;
  background: linear-gradient(180deg, #171c23 0%, #12161c 100%);
  border-top: 1px solid #272e3a;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freeze-btn {
  height: 31px;
  padding: 0 16px;
  background: linear-gradient(180deg, #212731 0%, #171b22 100%);
  border: 1px solid #333b49;
  border-radius: 5px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.freeze-btn:hover {
  border-color: #495568;
  background: linear-gradient(180deg, #272f3b 0%, #1c212a 100%);
}

.freeze-btn.is-frozen {
  background: linear-gradient(180deg, rgba(45, 219, 192, 0.24) 0%, rgba(22, 118, 108, 0.28) 100%);
  border-color: var(--cyan);
  color: #e6fffb;
  box-shadow: 0 0 14px var(--cyan-glow), inset 0 0 8px rgba(45, 219, 192, 0.22);
}

.freeze-btn.is-frozen .snowflake-icon {
  color: var(--cyan-bright);
}

/* A / B Snapshot Comparison */
.ab-btn {
  width: 34px;
  height: 29px;
  background: #171c23;
  border: 1px solid #313846;
  border-radius: 4px;
  color: #9ba4b4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ab-btn:hover {
  color: #fff;
  border-color: #454f62;
}

.ab-btn.is-active {
  background: linear-gradient(180deg, rgba(240, 140, 43, 0.24) 0%, rgba(240, 140, 43, 0.12) 100%);
  border-color: var(--amber);
  color: var(--amber-bright);
  box-shadow: 0 0 8px rgba(240, 140, 43, 0.2);
}

.ab-copy-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #9ba4b4;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 6px;
  cursor: pointer;
}

.ab-copy-btn:hover {
  color: var(--amber-bright);
  background: rgba(255, 255, 255, 0.04);
}

/* CPU Meter */
.cpu-group {
  gap: 10px;
}

.cpu-label {
  font-size: 12.5px;
  color: #9aa3b2;
  font-variant-numeric: tabular-nums;
  min-width: 78px;
}

.cpu-label strong {
  color: var(--text-primary);
  font-weight: 500;
}

.cpu-bar-track {
  width: 132px;
  height: 11px;
  background: #0d1015;
  border: 1px solid #28303c;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.cpu-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1fb89e 0%, var(--cyan-bright) 100%);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: width 0.18s ease;
}

/* Output Gain Footer Slider */
.outgain-group {
  flex: 1;
  max-width: 340px;
  justify-content: flex-end;
  gap: 12px;
}

.outgain-group .param-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.outgain-group .fader-track-wrap {
  flex: 1;
  min-width: 120px;
}

.outgain-group .value-pill {
  width: 72px;
}

/* ==========================================================================
   STUDIO AUDITION & I/O RACK BAR (Self-Contained Web App Source & Recorder)
   ========================================================================== */

.studio-rack {
  background: linear-gradient(180deg, #181c24 0%, #12151b 100%);
  border: 1px solid #2b323e;
  border-radius: 7px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rack-section {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.rack-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-right: 2px;
}

.rack-v-sep {
  width: 1px;
  height: 22px;
  background: #282f3a;
}

.rack-btn {
  height: 26px;
  padding: 0 8px;
  background: linear-gradient(180deg, #222833 0%, #171c24 100%);
  border: 1px solid #313947;
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.13s ease;
  white-space: nowrap;
}

.rack-btn:hover:not(:disabled) {
  border-color: #4a566b;
  color: #fff;
}

.rack-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rack-btn-primary.is-playing {
  background: linear-gradient(180deg, rgba(240, 140, 43, 0.28) 0%, rgba(200, 98, 18, 0.2) 100%);
  border-color: var(--amber);
  color: var(--amber-bright);
  box-shadow: 0 0 10px rgba(240, 140, 43, 0.22);
}

.rack-btn.is-toggled {
  border-color: rgba(45, 219, 192, 0.55);
  color: var(--cyan-bright);
  background: rgba(45, 219, 192, 0.10);
}

.rack-select {
  height: 26px;
  padding: 0 6px;
  background: var(--inset-bg);
  border: 1px solid #2e3643;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.chord-pads {
  display: flex;
  gap: 4px;
}

.chord-btn {
  height: 26px;
  padding: 0 7px;
  background: #141820;
  border: 1px solid #2c3442;
  border-radius: 4px;
  color: #c6cfdd;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
}

.chord-btn:hover {
  border-color: var(--amber);
  color: #fff;
}

.chord-btn:active,
.chord-btn.is-triggered {
  background: rgba(240, 140, 43, 0.26);
  border-color: var(--amber-bright);
  color: var(--amber-bright);
  transform: translateY(1px);
}

.impulse-btn {
  border-color: rgba(45, 219, 192, 0.35);
  color: var(--cyan);
}

.impulse-btn:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}

.file-status {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mic-dot,
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #636d7e;
}

#liveMicBtn.is-live {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(45, 219, 192, 0.14);
}

#liveMicBtn.is-live .mic-dot {
  background: var(--cyan-bright);
  box-shadow: 0 0 6px var(--cyan-bright);
}

.rec-btn.is-recording {
  border-color: #ff4d4d;
  color: #ff8080;
  background: rgba(255, 65, 65, 0.16);
}

.rec-btn.is-recording .rec-dot {
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  animation: pulseRec 1s infinite;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.studio-hints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--text-dim);
  gap: 12px;
  flex-wrap: wrap;
}

.studio-hints strong {
  color: var(--text-muted);
}

.studio-hints kbd {
  background: #171c24;
  border: 1px solid #2d3543;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 10.5px;
  color: #b4bece;
}

.status-badge {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 500;
}

/* Responsive adaptation for narrower viewports */
@media (max-width: 1120px) {
  .unit-body {
    grid-template-columns: 150px 1fr;
  }
  .right-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .unit-header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .unit-body {
    grid-template-columns: 1fr;
  }
  .unit-footer {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
}
