/* ==========================================================================
   SUZAN STUDIO — BOUTIQUE ANODIZED HARDWARE SKIN (v1.0)
   Aesthetic: Matte Anodized Graphite, Silk-Screen Off-White Ink,
              Single Warm Amber LED Accent (#E66E2E), Precision 2px-4px Radii.
   Zero JS / Zero Layout Risk — Pure Visual Faceplate Override Layer.
   ========================================================================== */

:root {
  /* Core Matte Anodized Chassis Surfaces (Zero purple/blue/brown AI tint) */
  --c-roasted-cacao: #0D0D0F;
  --c-cacao-ganache: #141417;
  --c-dark-truffle: #1B1B1F;

  --bg-deep: #0D0D0F;
  --bg-abyss: #08080A;
  --bg-panel: #141417;
  --bg-panel-elevated: #1C1C20;
  --bg-inset: #101013;
  --bg-well: #0A0A0C;
  --bg-stone: #232328;

  /* Precision 1px Hairline Silk-Screen Borders */
  --border-subtle: rgba(235, 234, 228, 0.08);
  --border-line: rgba(235, 234, 228, 0.14);
  --border-focus: rgba(230, 110, 46, 0.55);

  /* Restrained Functional LED & Industrial Ink Palette */
  --c-creme-brulee: #D9C9A3;
  --c-macaron-rose: #C98276;
  --c-blueberry-glaze: #8FA3B8;
  --c-matcha-cream: #8AA896;
  --c-lavender-pastry: #A29AB5;
  --c-glazed-mint: #89AAA6;
  --c-dulce-leche: #D49A62;
  --c-peach-chantilly: #D19B82;
  --c-warm-butter: #EBEAE4;
  --c-warm-white: #EBEAE4;
  --c-dusty-pink: #C98276;
  --c-butter-yellow: #D9C9A3;

  --c-rosa-seda: #E66E2E;
  --c-melocoton: #D49A62;
  --c-amarillo: #D9C9A3;
  --c-rosa-vivo: #D9483B;
  --c-lila: #A29AB5;
  --c-menta: #7FA88E;
  --c-azul-cielo: #8FA3B8;
  --c-sky-blue: #8FA3B8;
  --c-grafito: #141417;
  --c-piedra: #1C1C20;
  --c-pearl: #EBEAE4;

  /* Desaturated Hardware Track Color Coding (Readable, Zero Candy Neon) */
  --c-perc: #8AA896;
  --c-perc-tint: rgba(138, 168, 150, 0.06);
  --c-perc-border: rgba(138, 168, 150, 0.28);

  --c-buchla: #E66E2E;
  --c-buchla-tint: rgba(230, 110, 46, 0.07);
  --c-buchla-border: rgba(230, 110, 46, 0.34);

  --c-fm: #8FA3B8;
  --c-fm-tint: rgba(143, 163, 184, 0.06);
  --c-fm-border: rgba(143, 163, 184, 0.28);

  --c-granular: #A29AB5;
  --c-granular-tint: rgba(162, 154, 181, 0.06);
  --c-granular-border: rgba(162, 154, 181, 0.28);

  --c-karplus: #D9C9A3;
  --c-karplus-tint: rgba(217, 201, 163, 0.07);
  --c-karplus-border: rgba(217, 201, 163, 0.32);

  --c-rings: #89AAA6;
  --c-rings-tint: rgba(137, 170, 166, 0.06);
  --c-rings-border: rgba(137, 170, 166, 0.28);

  --c-acid: #D49A62;
  --c-acid-tint: rgba(212, 154, 98, 0.06);
  --c-acid-border: rgba(212, 154, 98, 0.30);

  --c-vocal: #C98276;
  --c-vocal-tint: rgba(201, 130, 118, 0.06);
  --c-vocal-border: rgba(201, 130, 118, 0.28);

  --text-primary: #EBEAE4;
  --text-muted: rgba(235, 234, 228, 0.66);
  --text-faint: rgba(235, 234, 228, 0.38);

  --shadow-lux: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* 1. Kill Ambient Particle Canvas & Grid Pattern (Classic AI-Template Tells) */
#stageCanvas {
  display: none !important;
}

html,
body {
  background-color: #0D0D0F !important;
  background-image: none !important;
  color: #EBEAE4 !important;
}

/* Subtle Matte Anodized Grain */
body::after {
  opacity: 0.018 !important;
}

/* 2. Top Hardware Console Bar — Subtle Brushed Anodized Aluminum */
.top-nav {
  background-color: #141417 !important;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  ) !important;
  border-bottom: 1px solid #26262C !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: none !important;
}

#studioGuestBanner {
  display: none !important;
}

.brand-orb img {
  border-radius: 3px !important;
  border: 1px solid #32323A !important;
  box-shadow: none !important;
}

.brand-name {
  color: #EBEAE4 !important;
  letter-spacing: 0.16em !important;
  font-weight: 700 !important;
}

.brand-tag {
  color: #8B8A85 !important;
  letter-spacing: 0.12em !important;
}

/* 3. Replace Glossy Gradient Pills with Machined Tactile Switches */
#btnHeaderUpgradePro {
  background: #1B1B20 !important;
  background-image: none !important;
  color: #E66E2E !important;
  border: 1px solid rgba(230, 110, 46, 0.55) !important;
  border-radius: 3px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-family: var(--font-mono) !important;
  font-size: 9.5px !important;
  padding: 4px 10px !important;
  letter-spacing: 0.08em !important;
}

#btnHeaderUpgradePro:hover {
  background: #E66E2E !important;
  color: #0D0D0F !important;
}

#btnHeaderLicense,
.lang-switch-capsule,
.btn-checkpoint,
.btn-export,
.btn-export-midi,
.btn-projects-mgr,
.btn-sound-vault,
.btn-code-studio,
.btn-vocal-studio,
.pattern-info-btn {
  background: #1B1B20 !important;
  background-image: none !important;
  border: 1px solid #2D2D34 !important;
  border-radius: 3px !important;
  color: #D8D7D1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  text-shadow: none !important;
}

#btnHeaderLicense:hover,
.btn-checkpoint:hover:not(:disabled),
.btn-export:hover:not(:disabled),
.btn-export-midi:hover,
.btn-projects-mgr:hover,
.btn-sound-vault:hover,
.btn-code-studio:hover,
.btn-vocal-studio:hover {
  background: #24242B !important;
  border-color: #45454F !important;
  color: #EBEAE4 !important;
  box-shadow: none !important;
}

/* Showcase Chips: Flat Precision Switches */
.chip,
.chip-lofi {
  background: #18181C !important;
  background-image: none !important;
  border: 1px solid #2A2A31 !important;
  border-radius: 3px !important;
  color: #B8B7B1 !important;
  box-shadow: none !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.03em !important;
}

.chip:hover,
.chip-lofi:hover {
  background: #222228 !important;
  border-color: #44444E !important;
  color: #EBEAE4 !important;
}

.chip.active,
.chip-lofi.active {
  background: #EBEAE4 !important;
  border-color: #EBEAE4 !important;
  color: #0D0D0F !important;
  box-shadow: none !important;
}

/* Transport Buttons: Classic Hardware Play / Rec LEDs */
.btn-play-song {
  background: #1B231E !important;
  background-image: none !important;
  border: 1px solid #354E3E !important;
  border-radius: 3px !important;
  color: #9CC7AC !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.btn-play-song.playing {
  background: #7FA88E !important;
  border-color: #A4CFB4 !important;
  color: #0D0D0F !important;
  box-shadow: 0 0 8px rgba(127, 168, 142, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-record {
  background: #261615 !important;
  background-image: none !important;
  border: 1px solid #5E2E2B !important;
  border-radius: 3px !important;
  color: #E07A70 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.btn-record.recording {
  background: #D9483B !important;
  border-color: #F26B5E !important;
  color: #0D0D0F !important;
  box-shadow: 0 0 10px rgba(217, 72, 59, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* 4. Panels, Racks, Sequencer & Gesture Synth — Anodized Metal Enclosures */
.sequencer-loom,
.synth-rack,
.module-card,
.panel-section,
.gesture-synth-panel,
.gesture-panel,
.fx-panel,
.modal-content,
.scene-bar,
.scale-bar {
  background-color: #141417 !important;
  background-image: none !important;
  border: 1px solid #26262C !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: none !important;
}

/* Subtle Machined Rack-Mount Corner Screws (Pure CSS, Zero Pseudo-Element Collisions) */
.sequencer-loom,
.gesture-synth-panel,
.gesture-panel {
  background-image:
    radial-gradient(circle at 10px 10px, #2E2E36 0px, #2E2E36 2.5px, #0B0B0D 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) 10px, #2E2E36 0px, #2E2E36 2.5px, #0B0B0D 3.5px, transparent 4px),
    radial-gradient(circle at 10px calc(100% - 10px), #2E2E36 0px, #2E2E36 2.5px, #0B0B0D 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #2E2E36 0px, #2E2E36 2.5px, #0B0B0D 3.5px, transparent 4px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
}

.track-row {
  background: #111114 !important;
  background-image: none !important;
  border: 1px solid #222228 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

.track-info {
  background: #16161A !important;
  border-right: 1px solid #25252B !important;
}

.track-patch-select,
select,
input[type="text"],
input[type="email"],
input[type="number"] {
  background: #0B0B0D !important;
  border: 1px solid #2C2C33 !important;
  border-radius: 2px !important;
  color: #EBEAE4 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Sequencer Step Pads: Crisp Hardware Rubber Pads (Elektron Style) */
.step-btn,
.seq-step,
.step-cell {
  border-radius: 2px !important;
  border-color: #26262D !important;
  box-shadow: none !important;
}

.step-btn:not(.active),
.seq-step:not(.active) {
  background: #0E0E11 !important;
}

.step-btn.active,
.seq-step.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* Track Mini Switches (Mute / Solo / Clear / Stem) */
.track-mini-btn,
.track-clear-btn,
.track-dup-btn,
.track-stem-btn,
.scene-btn,
.scale-chip,
.gs-profile-btn,
.gs-btn {
  border-radius: 2px !important;
  box-shadow: none !important;
}

.scene-btn.active,
.gs-profile-btn.active {
  background: #E66E2E !important;
  border-color: #F08247 !important;
  color: #0D0D0F !important;
  box-shadow: none !important;
}

/* Sliders: Precision Hardware Faders */
input[type="range"] {
  accent-color: #E66E2E;
}

.module-slider::-webkit-slider-thumb,
.track-vol-slider::-webkit-slider-thumb,
.track-pan-slider::-webkit-slider-thumb {
  border-radius: 2px !important;
  background: #EBEAE4 !important;
  border: 1px solid #0D0D0F !important;
  box-shadow: none !important;
}

/* Duration / Status Badges */
.duration-live-badge {
  background: #1B1B20 !important;
  border: 1px solid #32323A !important;
  color: #E66E2E !important;
  border-radius: 2px !important;
}

/* Bottom Keyboard Keys: Clean Matte Ivory & Obsidian */
.piano-key,
.kb-key {
  border-radius: 0 0 3px 3px !important;
  box-shadow: none !important;
}

/* 5. Mobile & Tablet Protection (Zero Horizontal Overflow, Clean Tap Targets) */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .top-nav {
    padding: 8px 10px !important;
  }

  .brand-name {
    font-size: 16px !important;
    letter-spacing: 0.12em !important;
  }

  .brand-tag {
    font-size: 7px !important;
    letter-spacing: 0.08em !important;
  }

  #btnHeaderUpgradePro,
  #btnHeaderLicense,
  .chip,
  .chip-lofi {
    min-height: 30px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
  }

  .sequencer-loom,
  .gesture-synth-panel,
  .gesture-panel {
    background-image: none !important;
  }

  .suzan-macro-deck {
    gap: 10px !important;
    padding: 6px 8px !important;
  }

  .macro-deck-badge {
    display: none !important;
  }
}

/* 6. Boutique Rotary LED Hardware Macro Deck (BODY / SPACE / DRIFT / TONE) */
.suzan-macro-deck {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px;
  margin-top: 4px;
  background: #0F0F12;
  border: 1px solid #24242A;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
}

.macro-deck-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8B8A85;
  white-space: nowrap;
}

.macro-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E66E2E;
  box-shadow: 0 0 6px rgba(230, 110, 46, 0.75);
}

.macro-knobs-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}

.hw-knob-unit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hw-knob-dial {
  position: relative;
  width: 44px;
  height: 44px;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-knob-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hw-knob-track {
  fill: none;
  stroke: #26262E;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.hw-knob-arc {
  fill: none;
  stroke: #E66E2E;
  stroke-width: 2.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(230, 110, 46, 0.45));
}

.hw-knob-cap {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2C2C33 0%, #17171B 70%, #0E0E11 100%);
  border: 1px solid #3A3A44;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hw-knob-dial.is-dragging .hw-knob-cap {
  border-color: #E66E2E;
}

.hw-knob-pointer {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  background: #EBEAE4;
  border-radius: 1px;
}

.hw-knob-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 42px;
}

.hw-knob-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: #C9C8C2;
}

.hw-knob-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #E66E2E;
  font-variant-numeric: tabular-nums;
}

