/* ==========================================================================
   Dark Hole Studio v6.0 — Hardware Amp & Digital Touch Console UI
   Inspired by Neural DSP Quad Cortex, Line 6 Helix & Studio Rack Hardware.
   Pure CSS tactile surfaces, recessed OLED displays, illuminated LED pads &
   machined studio faders — 100% offline, crisp in both Dark & Light modes.
   ========================================================================== */

:root {
  --amp-led-red: #ff3b5c;
  --amp-led-amber: #fbbf24;
  --amp-led-cyan: #38bdf8;
  --amp-led-green: #22c55e;
  --amp-oled-bg: #000000;
  --amp-oled-border: rgba(255, 255, 255, 0.16);
  --amp-font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* ---------- 1. True Pitch-Black Carbon Amp Chassis (Zero Navy Tint) ---------- */
html[data-theme="dark"] {
  --bg-page: #000000;
  --bg-card: #0a0a0c;
  --bg-input: #040406;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --ink: #ffffff;
}

html[data-theme="dark"] body {
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 80% 35% at 50% -12%, rgba(255, 255, 255, 0.035), transparent 62%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1.5px,
      transparent 1.5px,
      transparent 5px
    );
  background-attachment: fixed;
}

html[data-theme="light"] body {
  background-color: #dfe4ec;
  background-image:
    radial-gradient(ellipse 85% 40% at 50% -10%, rgba(255, 255, 255, 0.78), transparent 60%),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.012) 0px,
      rgba(15, 23, 42, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  background-attachment: fixed;
}

/* ---------- 2. Machined Rack Modules (.topbar & .card) ---------- */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .card {
  background: linear-gradient(180deg, #111114 0%, #0a0a0c 55%, #060608 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    0 14px 34px rgba(0, 0, 0, 0.78),
    0 2px 6px rgba(0, 0, 0, 0.6);
  position: relative;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .card {
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.06),
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 2px 4px rgba(15, 23, 42, 0.05);
  position: relative;
}

/* Subtle machined rack-mount corner rivets on studio hardware modules */
.topbar::after,
.selector-card::after,
.transport-card::after,
.guitar-card::after,
.vocal-card::after,
.backing-card::after,
.lab-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border-radius: 8px;
  background-image:
    radial-gradient(circle 2.3px at 3px 3px, rgba(148, 163, 184, 0.32) 60%, transparent 72%),
    radial-gradient(circle 2.3px at calc(100% - 3px) 3px, rgba(148, 163, 184, 0.32) 60%, transparent 72%),
    radial-gradient(circle 2.3px at 3px calc(100% - 3px), rgba(148, 163, 184, 0.24) 60%, transparent 72%),
    radial-gradient(circle 2.3px at calc(100% - 3px) calc(100% - 3px), rgba(148, 163, 184, 0.24) 60%, transparent 72%);
  opacity: 0.72;
}

html[data-theme="light"] .topbar::after,
html[data-theme="light"] .selector-card::after,
html[data-theme="light"] .transport-card::after,
html[data-theme="light"] .guitar-card::after,
html[data-theme="light"] .vocal-card::after,
html[data-theme="light"] .backing-card::after,
html[data-theme="light"] .lab-panel::after {
  background-image:
    radial-gradient(circle 2.3px at 3px 3px, rgba(71, 85, 105, 0.28) 60%, transparent 72%),
    radial-gradient(circle 2.3px at calc(100% - 3px) 3px, rgba(71, 85, 105, 0.28) 60%, transparent 72%),
    radial-gradient(circle 2.3px at 3px calc(100% - 3px), rgba(71, 85, 105, 0.22) 60%, transparent 72%),
    radial-gradient(circle 2.3px at calc(100% - 3px) calc(100% - 3px), rgba(71, 85, 105, 0.22) 60%, transparent 72%);
}

/* Keep Theory Book article reading paper calm & clean without rivets */
.reader-article::after {
  display: none !important;
}

html[data-theme="light"] .reader-article {
  background: #ffffff;
}

/* ---------- 3. Recessed OLED Digital Touchscreen Readouts ---------- */
.studio-fold-bar {
  padding: 8px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #060a12 0%, #0b111e 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(56, 189, 248, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.studio-fold-bar .fold-bar-title {
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.studio-fold-bar .fold-bar-sub {
  color: #38bdf8;
  font-family: var(--amp-font-mono);
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.studio-fold-bar .fold-action-pill {
  background: linear-gradient(180deg, #252e40 0%, #171d2a 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.studio-fold-bar:hover .fold-action-pill,
.studio-fold-bar.is-open .fold-action-pill {
  border-color: var(--amp-led-cyan);
  color: #ffffff;
  background: linear-gradient(180deg, #1d3550 0%, #122236 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.studio-fold-bar .drawer-chevron {
  color: #94a3b8;
}

.key-root-badge {
  background: linear-gradient(145deg, #ff3b5c 0%, #be123c 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 16px rgba(255, 59, 92, 0.48),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  font-family: var(--amp-font-mono);
}

/* BPM Digital OLED Counter */
.bpm-control {
  background: linear-gradient(180deg, #060911 0%, #0b101b 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  border-radius: 12px;
}

.bpm-readout strong {
  font-family: var(--amp-font-mono);
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
  font-size: 1.05rem;
}

.bpm-readout span {
  color: #94a3b8 !important;
  font-family: var(--amp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.bpm-control .btn-step {
  background: linear-gradient(180deg, #273042 0%, #161c28 100%);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.45);
}

.bpm-control .btn-step:hover {
  border-color: var(--amp-led-amber);
  color: #fde68a;
}

.bpm-control #btnTapTempo {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

/* Live Status OLED Strip */
.live-status-bar {
  background: linear-gradient(180deg, #050911 0%, #0a101d 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.75);
}

.live-status-bar .status-badge {
  background: rgba(34, 197, 94, 0.16) !important;
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80 !important;
  font-family: var(--amp-font-mono);
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.live-status-bar .status-detail {
  color: #e2e8f0 !important;
}

/* ---------- 4. Illuminated Hardware Stomp & Tactile Pads ---------- */
/* Primary Play / Transport Stomp Switch */
.btn-play {
  background: linear-gradient(180deg, #ef2348 0%, #be123c 100%) !important;
  border: 1px solid rgba(255, 160, 178, 0.32) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 16px rgba(225, 29, 72, 0.36),
    0 2px 4px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.1s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-play:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 22px rgba(225, 29, 72, 0.52),
    0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

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

.btn-play.is-playing {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%) !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 22px rgba(16, 185, 129, 0.55) !important;
}

/* Tactile Silicon Function Pads with Top LED Indicator Strip */
html[data-theme="dark"] .btn-secondary {
  background: linear-gradient(180deg, #232b3b 0%, #161c28 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 3px 8px rgba(0, 0, 0, 0.38);
  position: relative;
}

html[data-theme="dark"] .btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, #2a3447 0%, #1a2232 100%);
  color: #ffffff;
}

html[data-theme="light"] .btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #e7ecf3 100%);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 5px rgba(15, 23, 42, 0.08);
}

.btn-secondary.is-on {
  background: linear-gradient(180deg, #065f46 0%, #064e3b 100%) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  color: #ecfdf5 !important;
  box-shadow:
    inset 0 2px 0 #34d399,
    0 0 16px rgba(16, 185, 129, 0.42) !important;
}

/* Backing Play Stomp Button (Cyan/Cobalt LED) */
.btn-backing {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.35) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(2, 132, 199, 0.38) !important;
}

.btn-backing.is-playing {
  background: linear-gradient(180deg, #10b981 0%, #047857 100%) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.48) !important;
}

/* Mode Switcher Bank (Recessed Hardware Selector) */
.mode-switcher {
  background: linear-gradient(180deg, #070a12 0%, #0d121d 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.72);
  padding: 4px;
}

.mode-btn {
  color: #94a3b8 !important;
  position: relative;
}

.mode-btn:hover {
  color: #f8fafc !important;
}

.mode-btn.is-active {
  background: linear-gradient(180deg, #273247 0%, #171e2d 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 var(--amp-led-red),
    0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

/* Collapsible Audio Drawer Hardware Strip */
.btn-drawer-toggle {
  background: linear-gradient(180deg, #1b2230 0%, #121722 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .btn-drawer-toggle {
  background: linear-gradient(180deg, #ffffff 0%, #e8edf4 100%);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .drawer-summary-pill {
  background: #0b101b;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
  font-family: var(--amp-font-mono);
}

html[data-theme="dark"] .drawer-summary-pill {
  background: #05080f;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
  font-family: var(--amp-font-mono);
}

/* ---------- 5. Hardware Preset Footswitches (Box Pills & Root Matrix) ---------- */
html[data-theme="dark"] .box-pill,
html[data-theme="dark"] .mini-pill,
html[data-theme="dark"] .root-btn {
  background: linear-gradient(180deg, #21293a 0%, #141925 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.box-pill.is-active,
.fingering-system-switch .mini-pill.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 14px rgba(37, 99, 235, 0.45) !important;
}

.root-btn.is-active {
  background: linear-gradient(180deg, #ef2348 0%, #be123c 100%) !important;
  border-color: rgba(254, 205, 211, 0.45) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 14px rgba(239, 35, 72, 0.48) !important;
}

/* ---------- 6. Machined Studio Channel Faders & Range Sliders ---------- */
.studio-mixer-strip {
  background: linear-gradient(180deg, #060608 0%, #0d0d10 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.78);
  border-radius: 12px;
}

.studio-mixer-strip .metro-vol-control {
  background: #121216 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.studio-mixer-strip .mixer-ch-label {
  color: #f4f4f5 !important;
  font-weight: 700;
}

.studio-mixer-strip .metro-vol-val {
  font-family: var(--amp-font-mono);
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.32);
}

.studio-mixer-strip .btn-metro-vol {
  background: linear-gradient(180deg, #263042 0%, #151b27 100%);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}

/* Sleek anodized hardware fader cap for all audio range sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #04060a 0%, #161d2b 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 48%, #94a3b8 52%, #e2e8f0 100%);
  border: 1px solid rgba(15, 23, 42, 0.55);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 48%, #94a3b8 52%, #e2e8f0 100%);
  border: 1px solid rgba(15, 23, 42, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

/* ---------- 7. Recessed Multi-Touch Fretboard & Tuner Glass Bay ---------- */
.fretboard-scroll {
  background: linear-gradient(180deg, #060910 0%, #0b101b 100%) !important;
  border: 2px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;
  padding: 10px 8px !important;
  box-shadow:
    inset 0 4px 20px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.guitar-live-monitor,
.tuner-strip {
  background: linear-gradient(180deg, #060a13 0%, #0d1424 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.26) !important;
  box-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.78);
  color: #e2e8f0;
}

.guitar-live-monitor .glm-pos-text,
.guitar-live-monitor .glm-cents-val,
.guitar-live-monitor .glm-field > span,
.tuner-strip .tuner-label,
.tuner-strip .tuner-scale-labels {
  color: #cbd5e1 !important;
}

.guitar-live-monitor .glm-note,
.tuner-strip .tuner-note {
  font-family: var(--amp-font-mono);
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.guitar-live-monitor .glm-freq,
.tuner-strip .tuner-freq {
  font-family: var(--amp-font-mono);
  color: #38bdf8 !important;
}

.guitar-live-monitor .glm-note-badge,
.tuner-strip .tuner-note-box {
  background: #04070d !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* Ear & Rhythm Lab Digital Pads */
html[data-theme="dark"] .lab-choice-btn,
html[data-theme="dark"] .poly-cell {
  background: linear-gradient(180deg, #1d2536 0%, #121723 100%);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 5px rgba(0, 0, 0, 0.35);
}

.rhythm-tap-pad {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(225, 29, 72, 0.35);
}

/* Cinema Fullscreen Amp Theatre Mode */
.guitar-card.is-cinema-fullscreen {
  background: radial-gradient(ellipse 80% 60% at 50% 45%, #101624 0%, #05070c 100%) !important;
}

.guitar-card.is-cinema-fullscreen > .cinema-hud {
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.96) 0%, rgba(12, 16, 26, 0.96) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.24) !important;
  color: #f8fafc !important;
}

.guitar-card.is-cinema-fullscreen .cinema-scale-title {
  color: #f8fafc !important;
}

.guitar-card.is-cinema-fullscreen .cinema-bpm-pill {
  background: #05080f !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
  color: #fbbf24 !important;
  font-family: var(--amp-font-mono);
}

.guitar-card.is-cinema-fullscreen .cinema-bpm-pill span {
  color: #94a3b8;
}

.guitar-card.is-cinema-fullscreen > .fretboard-scroll {
  border-color: rgba(56, 189, 248, 0.32) !important;
  box-shadow:
    inset 0 4px 26px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(56, 189, 248, 0.12);
}

/* ---------- 8. Online LED Dot on Brand Subtitle ---------- */
.badge-offline {
  font-family: var(--amp-font-mono);
}

.badge-offline::before {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}


/* Cinema Fullscreen HUD Controls & Toast Layer Polish (v6.0.4 — Zero-Jitter Locked HUD) */
.guitar-card.is-cinema-fullscreen > .cinema-hud {
  position: relative;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 8px 12px;
}

.guitar-card.is-cinema-fullscreen .cinema-hud-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.guitar-card.is-cinema-fullscreen .cinema-hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.guitar-card.is-cinema-fullscreen .cinema-hud-controls::-webkit-scrollbar {
  display: none;
}

.guitar-card.is-cinema-fullscreen .cinema-note-pill {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: var(--amp-font-mono);
}

.guitar-card.is-cinema-fullscreen .cinema-btn-exit {
  margin-left: auto;
}

.cinema-key-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cinema-key-step {
  width: 34px;
  height: 38px;
  padding: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(180deg, #2b3549 0%, #171e2c 100%);
  border: 1px solid rgba(254, 205, 211, 0.28);
  color: #f8fafc;
  cursor: pointer;
}

.cinema-key-step:hover {
  border-color: #fb7185;
  color: #ffffff;
}

.cinema-select {
  position: relative;
  z-index: 30;
  min-height: 38px !important;
  height: 38px !important;
  line-height: 1.25 !important;
  padding: 6px 28px 6px 12px !important;
  font-size: 0.84rem !important;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #0b101b !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  cursor: pointer;
  flex-shrink: 0;
}

.toast {
  z-index: 10050 !important;
}

.cinema-select--root {
  min-width: 112px;
  max-width: 136px;
  font-weight: 800 !important;
  background-color: #be123c !important;
  border-color: rgba(254, 205, 211, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(190, 18, 60, 0.35);
}

.cinema-select--scale {
  min-width: 185px;
  max-width: 260px;
  font-weight: 700 !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
  color: #e0f2fe !important;
}


/* ==========================================================================
   v6.1.0 — "WOW Moment" Hardware Animations, Count-In Overlay & Click Ripples
   ========================================================================== */

/* In Guitar mode, hide top #btnPlay so BOTH practice buttons sit right on the Fretboard header! */
.transport-primary.is-guitar-mode #btnPlay {
  display: none !important;
}

/* Hide top #btnMic whenever Guitar Live Monitor is visible — show it ONLY in Vocal-only mode */
.transport-primary:not(.is-vocal-mode) #btnMic {
  display: none !important;
}

.btn-fb-practice {
  padding: 8px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

.btn-cinema-open {
  padding: 8px 14px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

html[data-theme="dark"] .btn-cinema-open {
  color: #bae6fd !important;
}

.cinema-tap-hint {
  display: none;
}

.guitar-card.is-cinema-fullscreen > .cinema-tap-hint {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  opacity: 0.88;
  flex-shrink: 0;
  pointer-events: none;
}

.cinema-tap-flash {
  position: fixed;
  inset: 0;
  z-index: 10025;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cinema-tap-flash.hidden {
  display: none !important;
}

.cinema-tap-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 2px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.42);
}

.cinema-tap-flash.is-flashing .cinema-tap-icon {
  animation: dhTapFlash 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dhTapFlash {
  0%   { opacity: 0; transform: scale(0.65); }
  28%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.38); }
}

/* Global Tactile Click Ripple & Micro-Spring Physics */
.dh-ripple-host {
  position: relative;
  overflow: hidden;
}

.dh-click-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(56, 189, 248, 0.18) 45%, transparent 72%);
  transform: scale(0);
  opacity: 0.9;
  animation: dhRippleWave 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 4;
}

@keyframes dhRippleWave {
  0%   { transform: scale(0.08); opacity: 0.92; }
  100% { transform: scale(1.15); opacity: 0; }
}

.btn-secondary,
.btn-backing,
.root-btn,
.box-pill,
.mini-pill,
.mode-btn,
.chord-card,
.btn-step,
.btn-drawer-toggle,
.studio-fold-bar {
  transition:
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease;
}

.btn-secondary:active,
.btn-backing:active,
.root-btn:active,
.box-pill:active,
.mini-pill:active,
.mode-btn:active,
.chord-card:active,
.btn-step:active,
.btn-drawer-toggle:active,
.studio-fold-bar:active {
  transform: scale(0.96);
}

/* Smooth Studio Drawer Reveal Animation */
.studio-fold-body:not(.hidden),
#transportSettingsDrawer:not(.hidden),
.fret-settings-drawer:not(.hidden),
.guitar-live-monitor:not(.hidden) {
  animation: dhDrawerReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top center;
}

@keyframes dhDrawerReveal {
  0%   { opacity: 0; transform: translateY(-6px) scaleY(0.97); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Cinema Fullscreen Smooth Zoom-In Entrance */
.guitar-card.is-cinema-fullscreen {
  animation: dhCinemaEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dhCinemaEnter {
  0%   { opacity: 0.25; transform: scale(0.965); }
  100% { opacity: 1; transform: scale(1); }
}

/* Giant Center Count-In Overlay (1 → 2 → 3 → 4) */
.cinema-countin-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.14) 0%, transparent 55%);
}

.cinema-countin-overlay.hidden {
  display: none !important;
}

.cinema-countin-num {
  font-family: var(--amp-font-mono);
  font-size: clamp(5.5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  color: #fbbf24;
  text-shadow:
    0 0 24px rgba(251, 191, 36, 0.78),
    0 0 64px rgba(239, 35, 72, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.85);
}

.cinema-countin-num.is-pop {
  animation: dhCountInPop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dhCountInPop {
  0%   { opacity: 0; transform: scale(1.65); }
  30%  { opacity: 1; transform: scale(0.96); }
  65%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.72; transform: scale(0.92); }
}

/* BPM Heartbeat LED Pulse on Every Beat */
.bpm-control.is-beat-pulse,
.cinema-bpm-pill.is-beat-pulse {
  border-color: rgba(251, 191, 36, 0.78) !important;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(251, 191, 36, 0.42) !important;
}

/* SVG Fretboard Note Shockwave & Vibrating String Glow */
.fb-shockwave {
  transform-box: fill-box;
  transform-origin: center;
  animation: dhFretShockwave 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dhFretShockwave {
  0%   { transform: scale(0.85); opacity: 0.95; stroke-width: 3.5; }
  100% { transform: scale(2.65); opacity: 0;    stroke-width: 0.5; }
}

.fb-string-line {
  transition: stroke 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.fb-string-line.is-plucked {
  stroke: #38bdf8 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.9));
}

.fb-note.is-active .fb-note-circle,
.fb-note.is-flash .fb-note-circle {
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.85));
}

/* Golden Screen-Edge Flash on Closing Chord Resolution */
.guitar-card.is-chord-flash {
  box-shadow:
    inset 0 0 42px rgba(251, 191, 36, 0.32),
    0 0 32px rgba(251, 191, 36, 0.35) !important;
}

/* Chord Card Hover & Strum Lift */
.chord-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.prog-bar.is-active {
  animation: dhChordBarPulse 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dhChordBarPulse {
  0%   { transform: scale(0.97); }
  50%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* Respect accessibility reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .dh-click-ripple,
  .fb-shockwave,
  .cinema-countin-num.is-pop,
  .guitar-card.is-cinema-fullscreen,
  .studio-fold-body:not(.hidden),
  #transportSettingsDrawer:not(.hidden),
  .fret-settings-drawer:not(.hidden),
  .guitar-live-monitor:not(.hidden),
  .prog-bar.is-active {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep Cinema Fullscreen purely focused on the giant fretboard (hide Input strip while fullscreen) */
.guitar-card.is-cinema-fullscreen > .guitar-live-monitor {
  display: none !important;
}


/* ==========================================================================
   v6.4.0 — Pure Pitch-Black OLED Overrides Across All Dark Surfaces
   (Eliminates all blue/navy slate tint for true Neural DSP carbon black)
   ========================================================================== */
html[data-theme="dark"] .bpm-control,
html[data-theme="dark"] .studio-mixer-strip,
html[data-theme="dark"] .fretboard-scroll,
html[data-theme="dark"] .guitar-live-monitor,
html[data-theme="dark"] .tuner-strip,
html[data-theme="dark"] .live-status-bar,
html[data-theme="dark"] .mode-switcher,
html[data-theme="dark"] .vocal-canvas-wrap,
html[data-theme="dark"] .vocal-guide-bar,
html[data-theme="dark"] .fret-settings-drawer,
html[data-theme="dark"] .backing-controls-row,
html[data-theme="dark"] .box-tour-bar,
html[data-theme="dark"] .scale-banner,
html[data-theme="dark"] .closing-chord-strip,
html[data-theme="dark"] .book-lead-box,
html[data-theme="dark"] .book-callout,
html[data-theme="dark"] .book-reading-toolbar,
html[data-theme="dark"] .book-font-controls,
html[data-theme="dark"] .member-pill,
html[data-theme="dark"] .auth-tabs {
  background: #030305 !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}

html[data-theme="dark"] .select-input,
html[data-theme="dark"] .text-input,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .cinema-select,
html[data-theme="dark"] .meta-chip,
html[data-theme="dark"] .toggle-chip,
html[data-theme="dark"] .prog-bar,
html[data-theme="dark"] .chord-card,
html[data-theme="dark"] .toc-btn,
html[data-theme="dark"] .lab-choice-btn,
html[data-theme="dark"] .poly-cell,
html[data-theme="dark"] .acc-legend-item,
html[data-theme="dark"] .cof-info-panel,
html[data-theme="dark"] .quiz-opt,
html[data-theme="dark"] .library-item,
html[data-theme="dark"] .stat-row {
  background: #0b0b0e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f4f4f5;
}

html[data-theme="dark"] .btn-secondary:not(.is-on),
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-install,
html[data-theme="dark"] .btn-back-shelf,
html[data-theme="dark"] .box-pill:not(.is-active),
html[data-theme="dark"] .mini-pill:not(.is-active),
html[data-theme="dark"] .root-btn:not(.is-active),
html[data-theme="dark"] .btn-step,
html[data-theme="dark"] .btn-metro-vol,
html[data-theme="dark"] .cinema-key-step {
  background: linear-gradient(180deg, #17171b 0%, #0d0d10 100%) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e4e4e7;
}

html[data-theme="dark"] .btn-secondary:not(.is-on):hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-install:hover,
html[data-theme="dark"] .box-pill:not(.is-active):hover,
html[data-theme="dark"] .mini-pill:not(.is-active):hover,
html[data-theme="dark"] .root-btn:not(.is-active):hover {
  background: linear-gradient(180deg, #222228 0%, #141418 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff;
}

html[data-theme="dark"] .mode-btn.is-active {
  background: linear-gradient(180deg, #1f1f24 0%, #111114 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 var(--amp-led-red),
    0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .modal-dialog,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .book-card,
html[data-theme="dark"] .reader-article {
  background: #08080a !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}

html[data-theme="dark"] .guitar-card.is-cinema-fullscreen {
  background: #000000 !important;
}

html[data-theme="dark"] .guitar-card.is-cinema-fullscreen > .cinema-hud {
  background: linear-gradient(180deg, #101013 0%, #070709 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .cinema-select--root {
  background: linear-gradient(180deg, #dc2626 0%, #9f1239 100%) !important;
  background-color: #be123c !important;
  border-color: rgba(254, 205, 211, 0.45) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .cinema-select--scale {
  background-color: #09090c !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .free-trial-banner {
  background: linear-gradient(180deg, #14110b 0%, #0b0906 100%) !important;
  border-color: rgba(251, 191, 36, 0.28) !important;
}

html[data-theme="dark"] .app-footer {
  color: #71717a;
}

html[data-theme="dark"] kbd {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #e4e4e7 !important;
}

/* Guaranteed High-Contrast Active LED States on Pure Pitch-Black (v6.4.2) */
html[data-theme="dark"] .root-btn.is-active {
  background: linear-gradient(180deg, #ef2348 0%, #be123c 100%) !important;
  border-color: rgba(254, 205, 211, 0.55) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 16px rgba(239, 35, 72, 0.55) !important;
}

html[data-theme="dark"] .box-pill.is-active,
html[data-theme="dark"] .fingering-system-switch .mini-pill.is-active,
html[data-theme="dark"] .accidental-switch .mini-pill.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: rgba(147, 197, 253, 0.58) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 14px rgba(37, 99, 235, 0.48) !important;
}

html[data-theme="dark"] .check-pill:not(.is-in):not(.is-out),
html[data-theme="dark"] .studio-mixer-strip .metro-vol-control {
  background: #0d0d10 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #d4d4d8 !important;
}

html[data-theme="dark"] .guitar-live-monitor .glm-note-badge,
html[data-theme="dark"] .tuner-strip .tuner-note-box {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Universal Pitch-Black Cinema Theatre Styling (works identically whether launched from Light or Dark mode — v6.4.4) */
.guitar-card.is-cinema-fullscreen {
  background: #000000 !important;
}

.guitar-card.is-cinema-fullscreen > .cinema-hud {
  background: linear-gradient(180deg, #111114 0%, #08080a 100%) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.guitar-card.is-cinema-fullscreen .cinema-note-pill {
  background: #030305 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f4f4f5 !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-step,
.guitar-card.is-cinema-fullscreen .cinema-btn:not(.is-on),
.guitar-card.is-cinema-fullscreen .cinema-btn-exit {
  background: linear-gradient(180deg, #1b1b20 0%, #0f0f13 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f4f4f5 !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-exit {
  border-color: rgba(248, 113, 113, 0.42) !important;
  color: #fca5a5 !important;
}

.guitar-card.is-cinema-fullscreen > .box-tour-bar {
  background: #0a0a0d !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.guitar-card.is-cinema-fullscreen .fingering-system-switch {
  background: #030305 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.guitar-card.is-cinema-fullscreen .box-pill:not(.is-active),
.guitar-card.is-cinema-fullscreen .fingering-system-switch .mini-pill:not(.is-active),
.guitar-card.is-cinema-fullscreen .toggle-chip--tour {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e4e4e7 !important;
}

.guitar-card.is-cinema-fullscreen > .fretboard-scroll {
  background: #020203 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 4px 28px rgba(0, 0, 0, 0.92) !important;
}

.guitar-card.is-cinema-fullscreen > .fretboard-legend {
  color: #a1a1aa !important;
}


/* ==========================================================================
   v6.5.0 — Pro Studio Hardware Button Precision (Neural DSP / Logic Pro Grade)
   Sharp 6px architectural chamfers, seamless segmented encoders, pinpoint LED
   jewels (zero candy gloss / zero clipped outer glow), uniform 36px rhythm.
   ========================================================================== */

/* Global Precision Geometry & Restraint */
.btn-play,
.btn-secondary,
.btn-backing,
.btn-ghost,
.btn-install,
.btn-back-shelf,
.btn-theme-toggle,
.select-input,
.root-btn,
.box-pill,
.mini-pill,
.toggle-chip {
  border-radius: 7px !important;
  letter-spacing: 0.005em;
}

/* Refined Anodized Crimson Primary Switch (Crisp, Zero Muddy Glow) */
.btn-play {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.5) !important;
  font-weight: 700 !important;
}

.btn-play:hover {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 2px 8px rgba(220, 38, 38, 0.32) !important;
}

.btn-play.is-playing {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
  border-color: rgba(134, 239, 172, 0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 6px rgba(22, 163, 74, 0.35) !important;
}

/* Refined Hardware Toggle ON State (Dark Machined Metal + Pinpoint Green LED, NOT Neon Block!) */
.btn-secondary.is-on {
  background: linear-gradient(180deg, #191c1f 0%, #101215 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.52) !important;
  color: #f4f4f5 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.55) !important;
}

/* Pinpoint Hardware LED Jewel on Cinema Toggle Switches (Click / Mic) */
.cinema-led-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 12px !important;
}

.cinema-led-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f3f46;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
  transition: background 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.cinema-led-btn.is-on::before {
  background: #22c55e;
  border-color: #86efac;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.95);
}

/* Uniform 36px Machined Row Rhythm Inside Cinema HUD (Zero Clipped Glows) */
.guitar-card.is-cinema-fullscreen > .cinema-hud {
  padding: 10px 12px;
  gap: 8px;
}

.guitar-card.is-cinema-fullscreen .cinema-hud-controls {
  gap: 8px;
  padding: 2px 1px;
  align-items: center;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-play,
.guitar-card.is-cinema-fullscreen .cinema-btn,
.guitar-card.is-cinema-fullscreen .cinema-select,
.guitar-card.is-cinema-fullscreen .cinema-key-step {
  height: 36px !important;
  min-height: 36px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  box-sizing: border-box;
}

/* Seamless Segmented Key Switcher: [ ◀ | คีย์ C ▾ | ▶ ] */
.cinema-key-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0 !important;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0d10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.cinema-key-group .cinema-key-step {
  width: 32px;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #1b1b1f 0%, #111114 100%) !important;
  color: #a1a1aa !important;
  box-shadow: none !important;
}

.cinema-key-group .cinema-key-step:hover {
  background: #242429 !important;
  color: #ffffff !important;
}

.cinema-key-group .cinema-select--root,
html[data-theme="dark"] .cinema-key-group .cinema-select--root {
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0 !important;
  min-width: 98px;
  max-width: 122px;
  padding: 0 22px 0 12px !important;
  line-height: 34px !important;
  background: linear-gradient(180deg, #cc2229 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.guitar-card.is-cinema-fullscreen .cinema-select:not(.cinema-select--root) {
  padding: 0 22px 0 11px !important;
  line-height: 34px !important;
  max-width: 225px;
  background-color: #0e0e12 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f4f4f5 !important;
}

.guitar-card.is-cinema-fullscreen .cinema-select--scale {
  max-width: 265px !important;
}

/* Seamless Segmented BPM Encoder: [ − | 84 BPM | + ] */
.guitar-card.is-cinema-fullscreen .cinema-bpm-pill {
  height: 36px;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 7px !important;
  overflow: hidden;
  background: #050507 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.guitar-card.is-cinema-fullscreen .cinema-btn-step {
  width: 32px;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #1b1b1f 0%, #111114 100%) !important;
  color: #d4d4d8 !important;
  box-shadow: none !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-step:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-step:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-step:hover {
  background: #25252b !important;
  color: #ffffff !important;
}

.guitar-card.is-cinema-fullscreen .cinema-bpm-pill strong {
  padding: 0 4px 0 10px;
  font-size: 0.9rem;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.guitar-card.is-cinema-fullscreen .cinema-bpm-pill span {
  padding-right: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #71717a;
}

/* Refined Exit Button */
.guitar-card.is-cinema-fullscreen .cinema-btn-exit {
  padding: 0 12px !important;
  background: linear-gradient(180deg, #1a1517 0%, #110d0f 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}

.guitar-card.is-cinema-fullscreen .cinema-btn-exit:hover {
  background: linear-gradient(180deg, #2a161a 0%, #1a0d10 100%) !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
  color: #fecaca !important;
}

/* Crisp Subtle Hardware Note Pill */
.guitar-card.is-cinema-fullscreen .cinema-note-pill {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px !important;
  padding: 0 12px;
  font-size: 0.78rem;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Subtle Active Root & Box Pills (Crisp Hardware LED, No Oversaturated Neon Halo) */
html[data-theme="dark"] .root-btn.is-active {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 6px rgba(220, 38, 38, 0.35) !important;
}

html[data-theme="dark"] .box-pill.is-active,
html[data-theme="dark"] .fingering-system-switch .mini-pill.is-active,
html[data-theme="dark"] .accidental-switch .mini-pill.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 6px rgba(37, 99, 235, 0.35) !important;
}


/* ==========================================================================
   v6.6.0 — Pure Pitch-Black OLED for Theory Book, Portal, Ear Lab & SVGs
   (Removes all blue-navy tint + converts Musical Staff & Chord SVGs to OLED)
   ========================================================================== */
html[data-theme="dark"] .toc-card,
html[data-theme="dark"] .chapter-article,
html[data-theme="dark"] .book-glossary,
html[data-theme="dark"] .key-builder-card,
html[data-theme="dark"] .kb-table-card,
html[data-theme="dark"] .cof-info-card,
html[data-theme="dark"] .formula-card,
html[data-theme="dark"] .interval-card,
html[data-theme="dark"] .chord-diagram-card,
html[data-theme="dark"] .quiz-card,
html[data-theme="dark"] .locked-teaser-card,
html[data-theme="dark"] .welcome-banner {
  background: #08080a !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  color: #f4f4f5;
}

html[data-theme="dark"] .book-lab-divider,
html[data-theme="dark"] .staff-box,
html[data-theme="dark"] .chord-controls-bar,
html[data-theme="dark"] .teaser-sample-row,
html[data-theme="dark"] .book-glossary-item,
html[data-theme="dark"] .kb-note:not(.is-sharp):not(.is-flat),
html[data-theme="dark"] .kb-step:not(.is-h),
html[data-theme="dark"] .kb-tetra-box:not(.kb-tetra-box--upper),
html[data-theme="dark"] .kb-minor-rel-box,
html[data-theme="dark"] .kb-table th,
html[data-theme="dark"] .step-badge:not(.step-badge--h),
html[data-theme="dark"] .toc-mobile-toggle,
html[data-theme="dark"] .btn-demo,
html[data-theme="dark"] .lab-opt-btn:not(.is-correct):not(.is-wrong),
html[data-theme="dark"] .lab-stat-pill:not(.lab-stat-pill--streak),
html[data-theme="dark"] .lab-controls-bar,
html[data-theme="dark"] .lab-feedback:not(.is-ok):not(.is-wrong),
html[data-theme="dark"] .poly-card {
  background: #0c0c0f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e4e4e7;
}

html[data-theme="dark"] .auth-tab.is-active {
  background: #18181c !important;
  color: #60a5fa !important;
}

html[data-theme="dark"] .toc-btn:not(.is-active) {
  background: #0c0c0f !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e4e4e7 !important;
}

html[data-theme="dark"] .toc-btn:not(.is-active):hover,
html[data-theme="dark"] .interval-card:hover,
html[data-theme="dark"] .kb-table-row:hover,
html[data-theme="dark"] .btn-demo:hover,
html[data-theme="dark"] .member-pill--editable:hover {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

html[data-theme="dark"] .toc-btn.is-active {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  border-left-color: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .rhythm-tap-pad {
  background: linear-gradient(180deg, #16161a 0%, #09090c 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* OLED Dark-Mode Musical Staff SVG (Eliminates Blinding White Paper Box) */
html[data-theme="dark"] .staff-svg {
  background: #030305 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  max-width: 100% !important;
}

html[data-theme="dark"] .staff-svg [fill="#0f172a"],
html[data-theme="dark"] .staff-svg [fill="#334155"] {
  fill: #f4f4f5 !important;
}

html[data-theme="dark"] .staff-svg [stroke="#0f172a"],
html[data-theme="dark"] .staff-svg [stroke="#334155"] {
  stroke: #e4e4e7 !important;
}

html[data-theme="dark"] .staff-svg [stroke="#94a3b8"] {
  stroke: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme="dark"] .staff-svg [stroke="#64748b"],
html[data-theme="dark"] .staff-svg [stroke="#cbd5e1"] {
  stroke: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme="dark"] .staff-svg [fill="#e11d48"] {
  fill: #fb7185 !important;
}

html[data-theme="dark"] .staff-svg [stroke="#e11d48"] {
  stroke: #fb7185 !important;
}

html[data-theme="dark"] .staff-svg [fill="#2563eb"] {
  fill: #38bdf8 !important;
}

html[data-theme="dark"] .staff-svg [stroke="#2563eb"] {
  stroke: #38bdf8 !important;
}

/* OLED Dark-Mode Guitar Chord Diagram SVG (Matches Pure Carbon Aesthetic) */
html[data-theme="dark"] .chord-svg {
  background: #030305 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 6px !important;
}

html[data-theme="dark"] .chord-svg [stroke="#0f172a"] {
  stroke: #f4f4f5 !important;
}

html[data-theme="dark"] .chord-svg [stroke="#cbd5e1"] {
  stroke: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .chord-svg [stroke="#64748b"] {
  stroke: rgba(255, 255, 255, 0.48) !important;
}

html[data-theme="dark"] .chord-svg [stroke="#334155"] {
  stroke: #e4e4e7 !important;
}

html[data-theme="dark"] .chord-svg [fill="#111827"] {
  fill: #2563eb !important;
}

html[data-theme="dark"] .chord-svg [fill="#dc2626"] {
  fill: #ef4444 !important;
}

html[data-theme="dark"] .chord-svg [fill="#0369a1"] {
  fill: #38bdf8 !important;
}

html[data-theme="dark"] .chord-svg [fill="#2563eb"] {
  fill: #fbbf24 !important;
}

html[data-theme="dark"] .chord-svg [fill="#64748b"] {
  fill: #a1a1aa !important;
}


/* ==========================================================================
   v6.7.0 — Dark Hole Theory Real Hardcover Book Reader (Page-Flip + TOC Drawer)
   ========================================================================== */
.portal-shell--book {
  max-width: 1180px;
}

body.is-toc-open {
  overflow: hidden;
}

/* Sticky Top Book Control Bar */
.book-top-bar {
  position: sticky;
  top: 8px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 14px 13px;
  border-radius: 10px;
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

html[data-theme="dark"] .book-top-bar {
  background: rgba(10, 10, 13, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

.book-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 300px;
}

.book-toc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px !important;
  height: 36px;
  font-size: 0.84rem;
  font-weight: 700;
  flex-shrink: 0;
}

.book-toc-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}

html[data-theme="dark"] .book-toc-count {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.book-crumb {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.book-crumb strong {
  font-family: var(--amp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dc2626;
}

html[data-theme="dark"] .book-crumb strong {
  color: #f87171;
}

.book-crumb span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.book-mode-switch,
.book-font-controls--top {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .book-mode-switch,
html[data-theme="dark"] .book-font-controls--top {
  background: #030305;
  border-color: rgba(255, 255, 255, 0.12);
}

.book-mode-switch .mini-pill,
.book-font-controls--top .mini-pill {
  height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.book-mode-switch .mini-pill.is-active,
.book-font-controls--top .mini-pill.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
}

/* Reading Progress Ribbon along bottom of Sticky Bar */
.book-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(148, 163, 184, 0.2);
}

.book-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 100%);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide-Over Book Table of Contents Drawer */
.toc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.toc-drawer-backdrop.hidden {
  display: none !important;
}

.toc-card.toc-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 100;
  width: min(370px, 90vw);
  max-height: 100dvh !important;
  border-radius: 0 14px 14px 0 !important;
  padding: 18px 16px !important;
  margin: 0 !important;
  transform: translateX(-104%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.toc-card.toc-drawer.is-open {
  transform: translateX(0);
}

.toc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.toc-drawer-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.toc-drawer .toc-body {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.toc-btn--book {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px !important;
  text-align: left;
  border-radius: 8px !important;
}

.toc-ch-num {
  font-family: var(--amp-font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.toc-btn--book.is-active .toc-ch-num {
  background: #dc2626;
  color: #ffffff;
}

.toc-ch-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.toc-drawer-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Real Hardcover Book Stage & Floating Side Arrows */
.book-stage {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 940px) 46px;
  justify-content: center;
  align-items: start;
  gap: 14px;
  margin-top: 4px;
}

.book-edge-nav {
  position: sticky;
  top: 44vh;
  width: 44px;
  height: 68px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(252, 251, 247, 0.92);
  color: #0f172a;
  font-size: 1.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}

html[data-theme="dark"] .book-edge-nav {
  background: linear-gradient(180deg, #16161a 0%, #0b0b0e 100%);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e4e4e7;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
}

.book-edge-nav:hover:not(:disabled) {
  border-color: #dc2626;
  color: #ffffff;
  background: #dc2626;
  transform: scale(1.04);
}

.book-edge-nav:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

/* Physical Book Page Container with Spine & Stacked Paper Edge */
.book-sheet-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 4px 12px 12px 4px;
  background: #fcfbf7;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-left: 4px solid #b91c1c;
  box-shadow:
    inset 14px 0 22px -18px rgba(15, 23, 42, 0.22),
    4px 4px 0 -1px #f3f0e6,
    5px 5px 0 0 rgba(15, 23, 42, 0.12),
    9px 9px 0 -1px #eae5d7,
    10px 10px 0 0 rgba(15, 23, 42, 0.1),
    0 22px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

html[data-theme="dark"] .book-sheet-wrap {
  background: #070709;
  border-color: rgba(255, 255, 255, 0.14);
  border-left: 4px solid #dc2626;
  box-shadow:
    inset 16px 0 24px -18px rgba(220, 38, 38, 0.3),
    4px 4px 0 -1px #0d0d11,
    5px 5px 0 0 rgba(255, 255, 255, 0.12),
    9px 9px 0 -1px #09090c,
    10px 10px 0 0 rgba(255, 255, 255, 0.08),
    0 26px 56px rgba(0, 0, 0, 0.85);
}

/* Classic Running Book Header */
.book-running-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 30px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  font-family: var(--amp-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

html[data-theme="dark"] .book-running-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  color: #71717a;
}

/* Inner Book Sheet (Removes Duplicate Outer Card Box) */
.book-sheet {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 26px 32px 24px !important;
  min-height: 470px;
}

.book-sheet::after {
  display: none !important;
}

.book-chapter-ornament {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.book-ch-roman {
  font-family: var(--amp-font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #dc2626;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

html[data-theme="dark"] .book-ch-roman {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(239, 68, 68, 0.32);
}

.book-meta-inline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Real Book Page Visibility & Smooth Page-Turn Animations */
.book-sheet[data-read-mode="book"] .book-page {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.book-sheet[data-read-mode="book"] .book-page.is-current-page {
  display: flex;
}

.book-sheet[data-read-mode="scroll"] .book-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-sheet[data-read-mode="scroll"] .book-page + .book-page {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed rgba(148, 163, 184, 0.32);
}

.book-page.is-flip-next {
  animation: dhBookFlipNext 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.book-page.is-flip-prev {
  animation: dhBookFlipPrev 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dhBookFlipNext {
  0%   { opacity: 0; transform: translateX(28px) scale(0.992); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes dhBookFlipPrev {
  0%   { opacity: 0; transform: translateX(-28px) scale(0.992); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Page 4 Next Chapter Bridge Card */
.book-summary-box--page {
  padding: 20px 22px !important;
  font-size: 1.02rem;
}

.book-next-chapter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .book-next-chapter-card {
  background: #0d0d10;
  border-color: rgba(255, 255, 255, 0.14);
}

.book-next-chapter-card h4 {
  margin: 4px 0 0;
  font-size: 1.06rem;
  color: var(--ink);
}

/* Bottom Book Spine Navigation Bar */
.book-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.025);
}

html[data-theme="dark"] .book-bottom-nav {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: #040406;
}

.book-turn-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px !important;
  font-size: 0.84rem;
  font-weight: 700;
  flex-shrink: 0;
}

.book-turn-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.book-page-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.book-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

html[data-theme="dark"] .book-page-tab {
  background: #0d0d10;
  border-color: rgba(255, 255, 255, 0.14);
  color: #a1a1aa;
}

.book-page-tab:hover {
  border-color: rgba(59, 130, 246, 0.55);
  color: var(--ink);
}

.book-page-tab.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.5);
  color: #ffffff;
}

.book-page-tab .bpt-num {
  font-family: var(--amp-font-mono);
  font-size: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.18);
}

.book-page-tab.is-active .bpt-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Classic Printed Page Folio at Very Bottom */
.book-folio {
  text-align: center;
  padding: 8px 16px 12px;
  font-family: var(--amp-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #71717a;
  background: rgba(15, 23, 42, 0.025);
}

html[data-theme="dark"] .book-folio {
  background: #040406;
  color: #71717a;
}

/* Responsive Tablet & Mobile Real Book Layout */
@media (max-width: 1020px) {
  .book-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .book-edge-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .book-top-bar {
    top: 4px;
    padding: 8px 10px 11px;
    gap: 8px;
  }
  .book-top-left {
    flex: 1 1 100%;
    gap: 8px;
  }
  .book-top-right {
    width: 100%;
    justify-content: space-between;
  }
  .book-running-head {
    padding: 10px 16px;
    font-size: 0.66rem;
  }
  .book-sheet {
    padding: 18px 16px 18px !important;
    min-height: 360px;
  }
  .book-bottom-nav {
    padding: 12px 12px;
    gap: 8px;
  }
  .book-turn-btn {
    padding: 0 10px !important;
    font-size: 0.78rem;
  }
  .book-page-tab {
    padding: 0 7px;
  }
  .book-page-tab .bpt-lbl {
    display: none;
  }
  .book-sheet-wrap {
    box-shadow:
      3px 3px 0 -1px #0d0d11,
      4px 4px 0 0 rgba(255, 255, 255, 0.1),
      0 14px 32px rgba(0, 0, 0, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-page.is-flip-next,
  .book-page.is-flip-prev,
  .toc-card.toc-drawer {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   v6.8.0 — 3D Hardcover Studio Bookshelf & Cover Artwork (index.html)
   ========================================================================== */
.shelf-rack {
  position: relative;
  padding-bottom: 24px !important;
}

/* Realistic Smoked-Walnut / Obsidian Studio Bookshelf Plank */
.shelf-rack::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 15px !important;
  border-radius: 5px 5px 8px 8px !important;
  background: linear-gradient(180deg, #b89872 0%, #8c6b48 52%, #5c432a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 225, 0.55),
    0 10px 22px rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="dark"] .shelf-rack::after {
  background: linear-gradient(180deg, #2b2420 0%, #171311 50%, #0b0908 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(217, 179, 130, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 185, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.85) !important;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 20px;
}

/* Hardcover Book Showcase Card */
.book-card.book-card--hardcover {
  display: grid !important;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border-radius: 14px !important;
  overflow: visible !important;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-card.book-card--flagship {
  grid-template-columns: 214px minmax(0, 1fr);
}

.book-card.book-card--hardcover:hover {
  transform: translateY(-2px);
}

/* Left Book Pedestal Stage */
.book-3d-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 18px 20px;
  background: radial-gradient(circle at 50% 45%, rgba(148, 163, 184, 0.16) 0%, transparent 72%);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px 0 0 14px;
}

html[data-theme="dark"] .book-3d-stage {
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06) 0%, #030305 76%);
  border-right-color: rgba(255, 255, 255, 0.09);
}

/* Standing 3D Hardcover Volume */
.book-3d-volume {
  position: relative;
  display: block;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 3 / 4;
  border-radius: 3px 8px 8px 3px;
  text-decoration: none;
  color: #ffffff;
  overflow: visible;
  transform: perspective(900px) rotateY(-4deg);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
  box-shadow:
    -2px 0 0 #0a0a0c,
    0 12px 24px rgba(0, 0, 0, 0.55),
    0 3px 8px rgba(0, 0, 0, 0.4);
}

.book-card--flagship .book-3d-volume {
  max-width: 186px;
}

.book-card--hardcover:hover .book-3d-volume,
.book-3d-volume:hover {
  transform: perspective(900px) rotateY(-12deg) translateY(-6px);
  box-shadow:
    -3px 0 0 #0a0a0c,
    12px 20px 32px rgba(0, 0, 0, 0.68),
    0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Cover Artwork Full Bleed */
.book-jacket-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px 7px 7px 3px;
  display: block;
}

/* Physical Hardcover Spine Crease on Left Edge */
.book-3d-spine-groove {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  z-index: 3;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 22%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(255, 255, 255, 0.14) 68%,
    transparent 100%
  );
  pointer-events: none;
}

/* Subtle Glossy Cover Rim Light */
.book-3d-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 3px 7px 7px 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.13) 0%, transparent 38%, rgba(0, 0, 0, 0.14) 100%);
  pointer-events: none;
}

/* Realistic Stacked Paper Pages Edge on the Right Side of the Hardcover */
.book-3d-pages-edge {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -8px;
  width: 9px;
  z-index: -1;
  border-radius: 0 3px 3px 0;
  background:
    repeating-linear-gradient(
      90deg,
      #e8e2d5 0px,
      #f7f3ea 1px,
      #cfc7b8 2px
    );
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-left: 0;
  box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

html[data-theme="dark"] .book-3d-pages-edge {
  background:
    repeating-linear-gradient(
      90deg,
      #d6d0c4 0px,
      #ece6da 1px,
      #a8a196 2px
    );
  border-color: rgba(255, 255, 255, 0.22);
}

/* Subtle Foil Cover Typography Overlay (Top & Bottom ONLY — Keeps Center Art Clear!) */
.book-jacket-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 10px 11px 18px;
  border-radius: 3px 7px 7px 3px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.08) 28%,
    rgba(0, 0, 0, 0) 56%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.book-jacket-kicker {
  font-family: var(--amp-font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.book-jacket-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-jacket-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.book-jacket-edition {
  font-family: var(--amp-font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(228, 228, 231, 0.86);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Soft Contact Shadow Where the Book Stands on the Shelf */
.book-3d-ground-shadow {
  width: 82%;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, transparent 72%);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.book-card--hardcover:hover .book-3d-ground-shadow {
  transform: scaleX(0.92);
  opacity: 0.72;
}

/* Right Editorial Info Column */
.book-card--hardcover .book-body {
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.book-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.book-type-pill {
  font-family: var(--amp-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--text-muted);
}

html[data-theme="dark"] .book-type-pill {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

.book-card-heading {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Auth Screen Mini 3D Books with Real Cover Art */
.mini-book.mini-book--photo {
  position: relative;
  padding: 0 !important;
  aspect-ratio: 3 / 4;
  min-height: 146px;
  border-radius: 3px 8px 8px 3px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 8px 0 12px -6px rgba(0, 0, 0, 0.65),
    4px 4px 0 -1px #d6d0c4,
    5px 5px 0 0 rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.45);
}

.mini-book-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-book-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 10px 10px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 78%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-book-caption span {
  font-size: 0.62rem;
  color: rgba(251, 191, 36, 0.92);
}

.mini-book-caption strong {
  font-size: 0.82rem;
  color: #ffffff;
}

/* Mobile Responsive 3D Bookshelf */
@media (max-width: 680px) {
  .shelf-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .book-card.book-card--hardcover,
  .book-card.book-card--flagship {
    grid-template-columns: 1fr;
  }
  .book-3d-stage {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px 14px 0 0;
    padding: 18px 16px 12px;
  }
  .book-3d-volume,
  .book-card--flagship .book-3d-volume {
    max-width: 164px;
  }
  .book-card--hardcover .book-body {
    padding: 14px 16px 16px;
  }
}

/* ==========================================================================
   v6.8.1 — Mobile QA Fixes: Cinema Fullscreen HUD Portrait Fit + BPM Spacing
   ========================================================================== */
.guitar-card.is-cinema-fullscreen .cinema-btn-play,
.guitar-card.is-cinema-fullscreen .cinema-btn,
.guitar-card.is-cinema-fullscreen .cinema-btn-exit {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.bpm-display {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 3px;
}

@media (max-width: 720px) {
  .guitar-card.is-cinema-fullscreen > .cinema-hud {
    padding: 8px 8px !important;
    gap: 6px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-hud-left {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-key-group .cinema-key-step {
    width: 28px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-key-group .cinema-select--root {
    min-width: 78px !important;
    max-width: 96px !important;
    padding: 0 18px 0 8px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-select--scale {
    flex: 1 1 130px !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-note-pill {
    flex: 1 1 100% !important;
    max-width: none !important;
    height: 28px !important;
    min-height: 28px !important;
    font-size: 0.74rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-hud-controls {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
    padding: 0 !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-play {
    padding: 0 11px !important;
    font-size: 0.8rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-step {
    width: 28px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-bpm-pill strong {
    padding: 0 3px 0 7px !important;
    font-size: 0.84rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-bpm-pill span {
    padding-right: 7px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-led-btn {
    padding: 0 9px !important;
    font-size: 0.78rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-exit {
    padding: 0 10px !important;
    margin-left: auto !important;
    order: 2;
  }

  .guitar-card.is-cinema-fullscreen #cinemaMetroSoundSelect,
  .guitar-card.is-cinema-fullscreen #cinemaDrumSelect {
    flex: 1 1 135px !important;
    min-width: 0 !important;
    max-width: none !important;
    order: 5;
  }
}

/* ==========================================================================
   v6.9.0 — Mobile Sticky Thumb-Reach Practice Dock & Compact Live Monitor
   (Strictly Mobile/Tablet <= 860px; Desktop stays 100% unchanged!)
   ========================================================================== */
.mobile-practice-dock,
.glm-mobile-settings-btn {
  display: none;
}

@media (max-width: 860px) {
  body:has(#mobilePracticeDock) .app-shell {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-practice-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 250, 252, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  }

  html[data-theme="dark"] .mobile-practice-dock {
    background: rgba(7, 7, 10, 0.95);
    border-top-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.85);
  }

  body.has-cinema-fs .mobile-practice-dock {
    display: none !important;
  }

  .mobile-practice-dock .mpd-play {
    height: 40px;
    padding: 0 15px !important;
    font-size: 0.86rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-practice-dock .mpd-cinema {
    height: 40px;
    padding: 0 11px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-practice-dock .mpd-jump {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 4px 10px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.15;
    text-align: right;
    overflow: hidden;
  }

  .mobile-practice-dock .mpd-jump strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  html[data-theme="dark"] .mobile-practice-dock .mpd-jump strong {
    color: #f4f4f5;
  }

  .mobile-practice-dock .mpd-jump span {
    font-family: var(--amp-font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    color: #f59e0b;
    white-space: nowrap;
  }

  /* Compact Mobile Guitar Live Monitor: hide advanced Audio Interface dropdowns behind 1-tap toggle */
  .glm-mobile-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 2px;
  }

  .guitar-live-monitor .glm-controls-row {
    display: none;
  }

  .guitar-live-monitor .glm-controls-row.is-mobile-open {
    display: grid;
  }
}

/* ==========================================================================
   v7.0.0 — Pure Giant Scale + Chord Cinema Fullscreen Stage
   (Zero Clutter: Minimal 1-Row Top Bar + HUGE Fretboard + Big Chord Diagram!)
   ========================================================================== */
.guitar-card.is-cinema-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 232px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px !important;
  padding: 10px 14px 12px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden !important;
}

/* Hide all non-essential clutter in Cinema Fullscreen by default */
.guitar-card.is-cinema-fullscreen > .cinema-tap-hint,
.guitar-card.is-cinema-fullscreen > .fretboard-legend,
.guitar-card.is-cinema-fullscreen > .cinema-rotate-tip,
.guitar-card.is-cinema-fullscreen > .box-tour-bar {
  display: none !important;
}

/* Reveal Box / Fingering Bar ONLY when user taps ⚙️ */
.guitar-card.is-cinema-fullscreen.is-cinema-options-open > .box-tour-bar {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Ultra-Minimal Single-Row Top Bar */
.guitar-card.is-cinema-fullscreen > .cinema-hud {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 7px 10px !important;
  gap: 7px !important;
}

.cinema-hud-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.cinema-hud-primary .cinema-select--scale {
  flex: 1 1 180px;
  min-width: 130px;
  max-width: 300px !important;
}

.cinema-hud-primary .cinema-btn-more {
  width: 36px;
  padding: 0 !important;
  justify-content: center;
  margin-left: auto;
}

.cinema-hud-primary .cinema-btn-exit {
  margin-left: 0 !important;
}

.cinema-hud-extras {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guitar-card.is-cinema-fullscreen.is-cinema-options-open .cinema-hud-extras {
  display: flex;
}

/* HUGE Hero Scale Fretboard Stage */
.guitar-card.is-cinema-fullscreen > .fretboard-scroll {
  grid-column: 1 / 2;
  grid-row: 3;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #030305 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.guitar-card.is-cinema-fullscreen .fretboard-svg {
  width: 100% !important;
  min-width: 820px !important;
  height: auto !important;
  max-height: 82dvh !important;
}

/* BIG Crisp OLED Guitar Chord Card Right Next to the Scale Fretboard! */
.guitar-card.is-cinema-fullscreen > .closing-chord-strip {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  gap: 10px !important;
  grid-column: 2 / 3;
  grid-row: 3;
  margin: 0 !important;
  padding: 16px 14px !important;
  border-radius: 12px !important;
  background: #060609 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  height: 100%;
  box-sizing: border-box;
}

.guitar-card.is-cinema-fullscreen .closing-chord-diagram .chord-svg {
  width: 168px !important;
  height: auto !important;
  background: #020204 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  padding: 8px !important;
}

.guitar-card.is-cinema-fullscreen .closing-chord-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.guitar-card.is-cinema-fullscreen .closing-chord-head {
  justify-content: center;
  gap: 6px;
}

.guitar-card.is-cinema-fullscreen .closing-kicker {
  display: none !important;
}

.guitar-card.is-cinema-fullscreen #closingChordTitle {
  margin: 0 !important;
  font-size: 1.9rem !important;
  font-weight: 900 !important;
  line-height: 1.05;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.guitar-card.is-cinema-fullscreen #closingChordTip {
  display: none !important;
}

.guitar-card.is-cinema-fullscreen .closing-chord-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.guitar-card.is-cinema-fullscreen .closing-chord-actions button {
  width: 100%;
  justify-content: center;
  height: 34px;
  padding: 0 10px !important;
  font-size: 0.78rem !important;
}

/* Tablet & Mobile Portrait/Landscape Pure Giant Scale + Chord Layout */
@media (max-width: 960px) {
  .guitar-card.is-cinema-fullscreen {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
  }

  .cinema-hud-primary {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .cinema-hud-primary .cinema-select--scale {
    flex: 1 1 135px !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .cinema-hud-primary .cinema-btn-more {
    margin-left: auto !important;
  }

  .guitar-card.is-cinema-fullscreen > .fretboard-scroll {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    padding: 8px 6px !important;
  }

  .guitar-card.is-cinema-fullscreen > .closing-chord-strip {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    height: auto !important;
    padding: 10px 12px !important;
    gap: 12px !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-diagram .chord-svg {
    width: 104px !important;
    padding: 5px !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-info {
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .guitar-card.is-cinema-fullscreen #closingChordTitle {
    font-size: 1.45rem !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-actions {
    flex-direction: row !important;
    flex-wrap: wrap;
    width: auto !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-actions button {
    width: auto !important;
    height: 32px !important;
    font-size: 0.74rem !important;
  }
}

/* Mobile Landscape: Side-by-Side Giant Fretboard + Compact Chord! */
@media (max-height: 500px) and (orientation: landscape) {
  .guitar-card.is-cinema-fullscreen {
    grid-template-columns: minmax(0, 1fr) 172px !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .guitar-card.is-cinema-fullscreen > .fretboard-scroll {
    grid-column: 1 / 2 !important;
    grid-row: 3 !important;
  }

  .guitar-card.is-cinema-fullscreen > .closing-chord-strip {
    grid-column: 2 / 3 !important;
    grid-row: 3 !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 8px !important;
    gap: 6px !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-diagram .chord-svg {
    width: 108px !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-info {
    align-items: center !important;
  }

  .guitar-card.is-cinema-fullscreen #closingChordTitle {
    font-size: 1.35rem !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-actions button {
    width: 100% !important;
    height: 28px !important;
  }
}

/* ==========================================================================
   v7.1.0 — 3D Sculpted Tactile Hardware Depth in Dark Mode
   (Pure Pitch-Black Chassis + Raised Brushed Gunmetal Keycaps & Clear Hierarchy)
   ========================================================================== */

/* 1. Raised Brushed Gunmetal Hardware Buttons (Distinct 3D Elevation Above Black Chassis) */
html[data-theme="dark"] .btn-secondary:not(.is-on),
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-install,
html[data-theme="dark"] .btn-back-shelf,
html[data-theme="dark"] .btn-cinema-open,
html[data-theme="dark"] .btn-demo,
html[data-theme="dark"] .book-turn-btn:not(.btn-play),
html[data-theme="dark"] .book-page-tab:not(.is-active),
html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn:not(.is-on):not(.cinema-btn-exit) {
  background: linear-gradient(180deg, #2e3038 0%, #202228 52%, #16171c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.34) !important;
  border-bottom-color: rgba(0, 0, 0, 0.85) !important;
  color: #f4f4f5 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 3px 7px rgba(0, 0, 0, 0.78),
    0 1px 0 rgba(0, 0, 0, 0.9) !important;
  transition: transform 0.1s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

html[data-theme="dark"] .btn-secondary:not(.is-on):hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-install:hover,
html[data-theme="dark"] .btn-back-shelf:hover,
html[data-theme="dark"] .btn-cinema-open:hover,
html[data-theme="dark"] .btn-demo:hover,
html[data-theme="dark"] .book-turn-btn:not(.btn-play):hover,
html[data-theme="dark"] .book-page-tab:not(.is-active):hover,
html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn:not(.is-on):not(.cinema-btn-exit):hover {
  background: linear-gradient(180deg, #3a3d47 0%, #282a32 52%, #1d1e24 100%) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  border-top-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 5px 12px rgba(0, 0, 0, 0.85) !important;
}

/* 2. Raised Root Keys, Box Pills, Mini Pills & Tactile Step Rockers (◀ / ▶ / − / + / −5 / +5) */
html[data-theme="dark"] .root-btn:not(.is-active),
html[data-theme="dark"] .box-pill:not(.is-active),
html[data-theme="dark"] .mini-pill:not(.is-active),
html[data-theme="dark"] .btn-step,
html[data-theme="dark"] .btn-metro-vol,
html[data-theme="dark"] .cinema-key-group .cinema-key-step,
html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn-step {
  background: linear-gradient(180deg, #2b2d34 0%, #1d1f25 54%, #14151a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: rgba(255, 255, 255, 0.3) !important;
  border-bottom-color: rgba(0, 0, 0, 0.85) !important;
  color: #ececef !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] .root-btn:not(.is-active):hover,
html[data-theme="dark"] .box-pill:not(.is-active):hover,
html[data-theme="dark"] .mini-pill:not(.is-active):hover,
html[data-theme="dark"] .btn-step:hover,
html[data-theme="dark"] .btn-metro-vol:hover,
html[data-theme="dark"] .cinema-key-group .cinema-key-step:hover,
html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn-step:hover {
  background: linear-gradient(180deg, #383b44 0%, #262830 54%, #1b1c22 100%) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
}

/* Keep seamless segmented borders intact inside Cinema Key Group & BPM Encoder */
html[data-theme="dark"] .cinema-key-group .cinema-key-step,
html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn-step {
  border-width: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn-step:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] .guitar-card.is-cinema-fullscreen .cinema-btn-step:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
}

/* 3. Physical Press-Down Travel on Click (Tactile Micro-Switch Feel!) */
html[data-theme="dark"] .btn-secondary:active,
html[data-theme="dark"] .btn-ghost:active,
html[data-theme="dark"] .btn-play:active,
html[data-theme="dark"] .btn-backing:active,
html[data-theme="dark"] .root-btn:active,
html[data-theme="dark"] .box-pill:active,
html[data-theme="dark"] .mini-pill:active,
html[data-theme="dark"] .btn-step:active {
  transform: translateY(1px) !important;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.78),
    0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Sculpted Anodized Primary Buttons (Crimson Play & Cobalt Backing) */
html[data-theme="dark"] .btn-play:not(.is-playing) {
  background: linear-gradient(180deg, #ef3340 0%, #cc1f2b 52%, #9e1520 100%) !important;
  border: 1px solid rgba(255, 160, 168, 0.36) !important;
  border-top-color: rgba(255, 210, 214, 0.52) !important;
  border-bottom-color: #5c0a11 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.42),
    0 4px 10px rgba(0, 0, 0, 0.8),
    0 1px 8px rgba(220, 38, 38, 0.35) !important;
}

html[data-theme="dark"] .btn-play.is-playing {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 52%, #15803d 100%) !important;
  border: 1px solid rgba(134, 239, 172, 0.48) !important;
  border-top-color: rgba(220, 252, 231, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.38),
    0 4px 10px rgba(0, 0, 0, 0.8),
    0 1px 10px rgba(34, 197, 94, 0.38) !important;
}

html[data-theme="dark"] .btn-backing {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  border-top-color: rgba(219, 234, 254, 0.54) !important;
  border-bottom-color: #1e3a8a !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.78),
    0 1px 8px rgba(37, 99, 235, 0.35) !important;
}

/* 5. Sculpted Illuminated Active Keys (Root Red & Box/Mode Cobalt) */
html[data-theme="dark"] .root-btn.is-active {
  background: linear-gradient(180deg, #ef3340 0%, #cc1f2b 54%, #a11622 100%) !important;
  border: 1px solid rgba(255, 175, 182, 0.45) !important;
  border-top-color: rgba(255, 220, 224, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.42),
    0 3px 10px rgba(220, 38, 38, 0.42) !important;
}

html[data-theme="dark"] .box-pill.is-active,
html[data-theme="dark"] .fingering-system-switch .mini-pill.is-active,
html[data-theme="dark"] .accidental-switch .mini-pill.is-active,
html[data-theme="dark"] .book-mode-switch .mini-pill.is-active,
html[data-theme="dark"] .book-font-controls--top .mini-pill.is-active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 54%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.52) !important;
  border-top-color: rgba(219, 234, 254, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.38),
    0 3px 10px rgba(37, 99, 235, 0.42) !important;
}

/* 6. Active Toggle ON Button (Sculpted Gunmetal + Crisp Green LED Border) */
html[data-theme="dark"] .btn-secondary.is-on {
  background: linear-gradient(180deg, #232d27 0%, #171f1b 52%, #101613 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.68) !important;
  border-top-color: rgba(134, 239, 172, 0.62) !important;
  color: #f0fdf4 !important;
  box-shadow:
    inset 0 1px 0 rgba(134, 239, 172, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(34, 197, 94, 0.22) !important;
}

/* 7. Recessed Machined Dropdown Fields (Visually Distinct from Raised Buttons!) */
html[data-theme="dark"] .select-input,
html[data-theme="dark"] .text-input,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .cinema-select:not(.cinema-select--root) {
  background: linear-gradient(180deg, #101116 0%, #171820 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-top-color: rgba(0, 0, 0, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.24) !important;
  color: #f4f4f5 !important;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .select-input:hover,
html[data-theme="dark"] .cinema-select:not(.cinema-select--root):hover {
  border-color: rgba(255, 255, 255, 0.34) !important;
}

/* 8. Tactile Checkbox Toggle Tiles (Clear Raised Unchecked vs Illuminated Checked) */
html[data-theme="dark"] .toggle-chip {
  background: linear-gradient(180deg, #212228 0%, #15161b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 5px rgba(0, 0, 0, 0.65) !important;
  color: #d4d4d8 !important;
}

html[data-theme="dark"] .toggle-chip:has(input:checked) {
  background: linear-gradient(180deg, #262934 0%, #171922 100%) !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  border-top-color: rgba(147, 197, 253, 0.62) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(147, 197, 253, 0.22),
    0 2px 8px rgba(37, 99, 235, 0.24) !important;
}

/* 9. Mode Switcher Active Tab & Theme Button Warm Gold Accent */
html[data-theme="dark"] .mode-btn:not(.is-active) {
  color: #a1a1aa !important;
}

html[data-theme="dark"] .mode-btn.is-active {
  background: linear-gradient(180deg, #2f313a 0%, #1f2027 55%, #15161b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-top-color: rgba(255, 255, 255, 0.36) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 #ef4444,
    0 3px 8px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .btn-theme-toggle {
  background: linear-gradient(180deg, #2b2416 0%, #1b160d 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.42) !important;
  border-top-color: rgba(253, 224, 71, 0.55) !important;
  color: #fde68a !important;
  box-shadow:
    inset 0 1px 0 rgba(253, 224, 71, 0.22),
    0 3px 7px rgba(0, 0, 0, 0.75) !important;
}

/* 10. Subtle Elevated Studio Cards on Pure #000000 Canvas */
html[data-theme="dark"] .card {
  background: linear-gradient(180deg, #101115 0%, #09090c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .lab-opt-btn:not(.is-correct):not(.is-wrong),
html[data-theme="dark"] .quiz-opt:not(.is-correct):not(.is-wrong),
html[data-theme="dark"] .interval-card,
html[data-theme="dark"] .chord-card {
  background: linear-gradient(180deg, #1c1d23 0%, #111216 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 3px 8px rgba(0, 0, 0, 0.72) !important;
}


/* ==========================================================================
   v7.2.0 — Cohesive Brushed Silverface 3D Light Mode (Zero Zebra Black Slabs!)
   ========================================================================== */

/* 1. Mode Switcher in Light Mode (Recessed Silver Rail + Raised White Active Pill) */
html[data-theme="light"] .mode-switcher {
  background: linear-gradient(180deg, #e2e8f0 0%, #eef2f7 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme="light"] .mode-btn {
  color: #475569 !important;
}

html[data-theme="light"] .mode-btn:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .mode-btn.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 #dc2626,
    0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

/* 2. BPM Control Tray in Light Mode (Recessed Cool Titanium, Crisp Amber Digits) */
html[data-theme="light"] .bpm-control {
  background: linear-gradient(180deg, #e6ecf4 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.1),
    0 1px 0 #ffffff !important;
}

html[data-theme="light"] .bpm-readout strong {
  color: #b45309 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .bpm-readout span {
  color: #475569 !important;
}

html[data-theme="light"] .bpm-control .btn-step,
html[data-theme="light"] .bpm-control .btn-tap {
  background: linear-gradient(180deg, #ffffff 0%, #e9eef5 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(15, 23, 42, 0.12),
    0 2px 4px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .bpm-control .btn-step:hover,
html[data-theme="light"] .bpm-control .btn-tap:hover {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

/* 3. Studio Mixer Strip in Light Mode (Silver Tray + Clean Pearl Channel Modules) */
html[data-theme="light"] .studio-mixer-strip {
  background: linear-gradient(180deg, #e8edf5 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .studio-mixer-strip .metro-vol-control {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .studio-mixer-strip .mixer-ch-label {
  color: #0f172a !important;
}

html[data-theme="light"] .studio-mixer-strip .metro-vol-val {
  color: #b45309 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .studio-mixer-strip .btn-metro-vol {
  background: linear-gradient(180deg, #ffffff 0%, #e7ecf3 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

/* Range Slider Track in Light Mode */
html[data-theme="light"] input[type="range"] {
  background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18) !important;
}

/* 4. Guitar Live Monitor & Tuner Strip in Light Mode (Clean Silver Studio Bay) */
html[data-theme="light"] .guitar-live-monitor,
html[data-theme="light"] .tuner-strip {
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.07) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .guitar-live-monitor .glm-pos-text,
html[data-theme="light"] .guitar-live-monitor .glm-cents-val,
html[data-theme="light"] .guitar-live-monitor .glm-field > span,
html[data-theme="light"] .tuner-strip .tuner-label,
html[data-theme="light"] .tuner-strip .tuner-scale-labels {
  color: #334155 !important;
}

html[data-theme="light"] .guitar-live-monitor .glm-note-badge,
html[data-theme="light"] .tuner-strip .tuner-note-box {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .guitar-live-monitor .glm-note,
html[data-theme="light"] .tuner-strip .tuner-note {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .guitar-live-monitor .glm-freq,
html[data-theme="light"] .tuner-strip .tuner-freq {
  color: #0284c7 !important;
}

html[data-theme="light"] .live-status-bar {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: inset 0 1px 3px rgba(16, 185, 129, 0.08) !important;
}

html[data-theme="light"] .live-status-bar .status-badge {
  background: #d1fae5 !important;
  border-color: rgba(5, 150, 105, 0.4) !important;
  color: #065f46 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .live-status-bar .status-detail {
  color: #0f172a !important;
}

/* 5. Sculpted 3D Brushed-Silver Buttons & Active States in Light Mode */
html[data-theme="light"] .btn-secondary:not(.is-on),
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-install,
html[data-theme="light"] .btn-back-shelf,
html[data-theme="light"] .btn-cinema-open,
html[data-theme="light"] .root-btn:not(.is-active),
html[data-theme="light"] .box-pill:not(.is-active),
html[data-theme="light"] .mini-pill:not(.is-active) {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 58%, #e4eaf2 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  border-top-color: rgba(15, 23, 42, 0.12) !important;
  border-bottom-color: rgba(15, 23, 42, 0.28) !important;
  color: #0f172a !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(15, 23, 42, 0.08),
    0 2px 5px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme="light"] .btn-secondary:not(.is-on):hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .btn-install:hover,
html[data-theme="light"] .btn-back-shelf:hover,
html[data-theme="light"] .btn-cinema-open:hover,
html[data-theme="light"] .root-btn:not(.is-active):hover,
html[data-theme="light"] .box-pill:not(.is-active):hover,
html[data-theme="light"] .mini-pill:not(.is-active):hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef6 100%) !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
  color: #0f172a !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 10px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .btn-secondary.is-on:not(.cinema-btn) {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid #10b981 !important;
  color: #065f46 !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 8px rgba(16, 185, 129, 0.22) !important;
}

html[data-theme="light"] .select-input {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 0 #ffffff !important;
}

html[data-theme="light"] .toggle-chip {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  color: #334155 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] .toggle-chip:has(input:checked) {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
  color: #1e3a8a !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="light"] .accidental-switch .mini-pill.is-active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: rgba(29, 78, 216, 0.7) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 6px rgba(37, 99, 235, 0.28) !important;
}

/* Keep Fretboard Frame Harmonious on Light Silverface Desk (Only outside Cinema Fullscreen) */
html[data-theme="light"] .guitar-card:not(.is-cinema-fullscreen) > .fretboard-scroll {
  background: linear-gradient(180deg, #1f1b18 0%, #151210 100%) !important;
  border: 2px solid rgba(15, 23, 42, 0.22) !important;
  box-shadow:
    inset 0 3px 14px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(15, 23, 42, 0.12) !important;
}

/* ==========================================================================
   v7.3.0 — Mobile Sticky Dock Built-In Hardware Tempo Controls [ − | 80 BPM | + ]
   ========================================================================== */
@media (max-width: 860px) {
  .mobile-practice-dock {
    gap: 6px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-practice-dock .mpd-play {
    padding: 0 12px !important;
    font-size: 0.82rem !important;
  }

  .mobile-practice-dock .mpd-cinema {
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  .mpd-bpm-group {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: stretch;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #eef2f7;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.1);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
  }

  html[data-theme="dark"] .mpd-bpm-group {
    background: #040406;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.88), 0 2px 6px rgba(0, 0, 0, 0.65);
  }

  .mpd-bpm-group.is-beat-pulse {
    border-color: rgba(251, 191, 36, 0.78) !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.38) !important;
  }

  .mpd-bpm-step {
    width: 34px !important;
    min-width: 34px !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mpd-bpm-step:first-child {
    border-right: 1px solid rgba(15, 23, 42, 0.14) !important;
  }

  .mpd-bpm-step:last-child {
    border-left: 1px solid rgba(15, 23, 42, 0.14) !important;
  }

  html[data-theme="dark"] .mpd-bpm-step:first-child {
    border-right-color: rgba(255, 255, 255, 0.16) !important;
  }

  html[data-theme="dark"] .mpd-bpm-step:last-child {
    border-left-color: rgba(255, 255, 255, 0.16) !important;
  }

  .mpd-bpm-center {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    cursor: pointer;
    overflow: hidden;
  }

  .mpd-bpm-line {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
  }

  .mpd-bpm-line strong {
    font-family: var(--amp-font-mono);
    font-size: 0.92rem;
    font-weight: 800;
    color: #b45309;
    font-variant-numeric: tabular-nums;
  }

  html[data-theme="dark"] .mpd-bpm-line strong {
    color: #fbbf24;
  }

  .mpd-bpm-line small {
    font-family: var(--amp-font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
  }

  html[data-theme="dark"] .mpd-bpm-line small {
    color: #71717a;
  }

  .mpd-key-line {
    font-size: 0.62rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  html[data-theme="dark"] .mpd-key-line {
    color: #d4d4d8;
  }
}

/* ==========================================================================
   v7.4.0 — Giant Active-Box Zoom in Cinema Fullscreen (Fills 100% Stage!)
   ========================================================================== */
.guitar-card.is-cinema-fullscreen .fretboard-svg--zoomed {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: 82dvh !important;
  display: block;
}

.guitar-card.is-cinema-fullscreen > .fretboard-scroll:has(.fretboard-svg--zoomed) {
  overflow-x: hidden !important;
  justify-content: center !important;
}

.guitar-card.is-cinema-fullscreen .closing-chord-diagram .chord-svg {
  width: 186px !important;
}

@media (max-width: 960px) {
  .guitar-card.is-cinema-fullscreen .fretboard-svg--zoomed {
    max-height: 58dvh !important;
  }

  .guitar-card.is-cinema-fullscreen .closing-chord-diagram .chord-svg {
    width: 120px !important;
  }
}

/* ==========================================================================
   v7.5.0 — Crystal-Clear Fret Numbers + Top-Left Guitar Neck Minimap HUD
   ========================================================================== */

/* Bold, High-Contrast Fret Numbers & String Labels on Dark Fretboard Bay */
.fretboard-scroll .fb-fret-num {
  fill: #e4e4e7 !important;
  font-family: var(--amp-font-mono);
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}

.fretboard-scroll .fb-fret-num--mark {
  fill: #fbbf24 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.fretboard-scroll .fretboard-svg--zoomed .fb-fret-num {
  font-size: 15.5px !important;
}

.fretboard-scroll .fretboard-svg--zoomed .fb-fret-num--mark {
  font-size: 17px !important;
}

.fretboard-scroll .fb-string-label {
  fill: #f4f4f5 !important;
  font-family: var(--amp-font-mono);
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

/* Guitar Neck Minimap HUD (Hidden in normal view; Top-Left in Cinema Fullscreen!) */
.cinema-neck-minimap {
  display: none;
}

.guitar-card.is-cinema-fullscreen > .cinema-neck-minimap {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  grid-column: 1 / 2;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  z-index: 15;
  margin: 10px 0 0 12px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guitar-card.is-cinema-fullscreen > .fretboard-scroll {
  padding-top: 62px !important;
}

.cnm-svg-wrap {
  display: flex;
  align-items: center;
}

.cnm-svg {
  width: 210px;
  height: 36px;
  display: block;
}

.cnm-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cnm-step {
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  font-size: 0.72rem !important;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cnm-label {
  font-family: var(--amp-font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .guitar-card.is-cinema-fullscreen > .cinema-neck-minimap {
    grid-column: 1 / -1;
    margin: 8px 8px 0 8px;
    padding: 5px 8px;
    gap: 7px;
    max-width: calc(100% - 16px);
  }

  .cnm-svg {
    width: 138px;
    height: 28px;
  }

  .cnm-nav {
    gap: 5px;
    padding-left: 6px;
  }

  .cnm-label {
    font-size: 0.74rem !important;
  }

  .guitar-card.is-cinema-fullscreen > .fretboard-scroll {
    padding-top: 52px !important;
  }
}

/* ==========================================================================
   v8.0.0 — Guided 15-Min Practice Presets, Cleaner Hierarchy & Legibility
   ========================================================================== */

/* 1. 15-Minute Guided Practice Presets Strip */
.quick-routines-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .quick-routines-bar {
  background: linear-gradient(180deg, #101116 0%, #09090c 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.72);
}

.qr-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.qr-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.qr-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(15, 23, 42, 0.07);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-theme="dark"] .qr-card {
  background: linear-gradient(180deg, #25272f 0%, #17181e 58%, #111216 100%);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 7px rgba(0, 0, 0, 0.72);
}

.qr-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.55);
}

.qr-card.is-active {
  border-color: #dc2626 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(220, 38, 38, 0.4), 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}

.qr-badge {
  font-family: var(--amp-font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.14);
  color: #dc2626;
}

html[data-theme="dark"] .qr-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.qr-card strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

html[data-theme="dark"] .qr-card strong {
  color: #ffffff;
}

.qr-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

html[data-theme="dark"] .qr-card small {
  color: #a1a1aa;
}

/* 2. Cleaner Collapsible Audio Settings Toggle inside Transport Card */
.btn-drawer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

html[data-theme="dark"] .btn-drawer-toggle {
  background: linear-gradient(180deg, #25272f 0%, #17181d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top-color: rgba(255, 255, 255, 0.28) !important;
  color: #f4f4f5 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.65) !important;
}

.drawer-summary-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* 3. Wider Zero-Truncation Cinema Scale Dropdown */
.cinema-hud-primary .cinema-select--scale {
  max-width: 340px !important;
}

/* 4. Guitar-Distance Legibility Boost Across Small Labels & Minimap */
.toggle-chip,
.mini-pill,
.box-pill {
  font-size: 0.82rem !important;
}

.label-title {
  font-size: 0.8rem !important;
}

.cnm-label {
  font-size: 0.82rem !important;
}

/* 5. Dismissible Mobile Portrait Landscape Rotation Hint in Cinema Mode */
.guitar-card.is-cinema-fullscreen > .cinema-rotate-tip {
  display: none !important;
}

@media (max-width: 600px) and (orientation: portrait) {
  .guitar-card.is-cinema-fullscreen > .cinema-rotate-tip:not(.is-dismissed) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
  }
}

/* 6. Eliminate Duplicate Start Buttons & Keyboard Hint Noise on Mobile */
@media (max-width: 860px) {
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .qr-card {
    padding: 9px 10px;
  }

  /* On mobile, the sticky bottom dock is the ONE clear Start/Fullscreen bar — hide duplicate header buttons */
  .guitar-card:not(.is-cinema-fullscreen) .fretboard-quick-actions {
    display: none !important;
  }

  .shortcut-hint {
    display: none !important;
  }
}

/* v8.0.2 — Give Scale Dropdown Generous Width & Clean Line-Height (Zero Bottom Clip) */
.scale-selects {
  grid-template-columns: minmax(155px, 0.72fr) minmax(0, 1.65fr) !important;
  gap: 8px;
  align-items: stretch;
}

.scale-selects .select-input {
  min-height: 42px;
  padding: 8px 11px !important;
  font-size: 0.84rem !important;
  line-height: 1.48 !important;
}

@media (max-width: 720px) {
  .scale-selects {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   v8.0.3 — Prevent Orphan Moon Button Wrap + Long-Key Mobile Cinema Stress Fit
   ========================================================================== */

/* Keep all topbar-actions buttons on ONE balanced single row across tablet/laptop/desktop */
@media (min-width: 600px) {
  .topbar-actions {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .topbar-actions > button,
  .topbar-actions > a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .topbar-actions .btn-theme-toggle {
    flex: 0 0 auto !important;
  }
}

/* On medium widths (600px–1180px), make theme toggle a sleek compact 36×36 icon button so it never forces a wrap */
@media (min-width: 600px) and (max-width: 1180px) {
  .topbar-actions {
    width: auto !important;
    max-width: 100%;
  }

  .topbar-actions > button,
  .topbar-actions > a {
    padding: 6px 9px !important;
    font-size: 0.77rem !important;
  }

  .topbar-actions .btn-theme-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .topbar-actions .btn-theme-toggle .theme-label {
    display: none !important;
  }
}

/* Guarantee Mobile Portrait Cinema HUD stays strictly 2 clean rows even with F♯/G♭ + long scale + 160 BPM */
@media (max-width: 600px) {
  .guitar-card.is-cinema-fullscreen .cinema-hud-primary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-key-group {
    flex: 0 0 auto !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-key-group .cinema-key-step {
    width: 26px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-key-group .cinema-select--root {
    min-width: 74px !important;
    max-width: 104px !important;
    padding: 0 18px 0 7px !important;
    font-size: 0.77rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-hud-primary .cinema-select--scale {
    flex: 1 1 175px !important;
    min-width: 155px !important;
    max-width: none !important;
    padding: 0 22px 0 9px !important;
    font-size: 0.78rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-play {
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-bpm-pill .cinema-btn-step {
    width: 26px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-bpm-pill strong {
    padding: 0 3px 0 6px !important;
    font-size: 0.82rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-bpm-pill span {
    padding-right: 6px !important;
    font-size: 0.62rem !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-more {
    width: 34px !important;
    min-width: 34px !important;
  }

  .guitar-card.is-cinema-fullscreen .cinema-btn-exit {
    padding: 0 9px !important;
    font-size: 0.76rem !important;
  }
}

/* ==========================================================================
   v8.2.0 — Book-Cover Square App Icons in Topbar Brand Logo
   ========================================================================== */
.brand-logo {
  border-radius: 8px !important;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

html[data-theme="light"] .brand-logo {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

/* ==========================================================================
   v8.4.1 — Ultra-Clean Pale Milky Cream-White Light Mode (Airy & Soft)
   ========================================================================== */
html[data-theme="light"] {
  --bg: #faf9f6;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f5f4f0;
  --bg-subtle: #efede7;
  --border: rgba(28, 25, 23, 0.08);
  --border-strong: rgba(28, 25, 23, 0.15);
  --text: #1c1917;
  --text-muted: #6b6761;
  --ink: #1c1917;
  --ink-hover: #292524;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.03), 0 6px 20px rgba(28, 25, 23, 0.045);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #faf9f6 !important;
  color: #1c1917 !important;
}

/* Airy Clean Pale Cream-White Cards */
html[data-theme="light"] .topbar,
html[data-theme="light"] .card,
html[data-theme="light"] .quick-routines-bar,
html[data-theme="light"] .modal-dialog,
html[data-theme="light"] .auth-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%) !important;
  border: 1px solid rgba(28, 25, 23, 0.09) !important;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.03),
    0 8px 24px rgba(28, 25, 23, 0.045) !important;
}

/* Whisper-Soft Pale Cream Trays */
html[data-theme="light"] .mode-switcher,
html[data-theme="light"] .bpm-control,
html[data-theme="light"] .studio-mixer-strip,
html[data-theme="light"] .guitar-live-monitor,
html[data-theme="light"] .tuner-strip,
html[data-theme="light"] .scale-banner,
html[data-theme="light"] .box-tour-bar,
html[data-theme="light"] .closing-chord-strip,
html[data-theme="light"] .fret-settings-drawer,
html[data-theme="light"] .backing-controls-row,
html[data-theme="light"] .lab-controls-bar,
html[data-theme="light"] .poly-card,
html[data-theme="light"] .book-reading-toolbar,
html[data-theme="light"] .book-font-controls,
html[data-theme="light"] .member-pill,
html[data-theme="light"] .book-mode-switch,
html[data-theme="light"] .book-font-controls--top {
  background: #f6f5f1 !important;
  border-color: rgba(28, 25, 23, 0.1) !important;
  box-shadow: inset 0 1px 3px rgba(28, 25, 23, 0.04) !important;
}

html[data-theme="light"] .studio-mixer-strip .metro-vol-control,
html[data-theme="light"] .guitar-live-monitor .glm-note-badge,
html[data-theme="light"] .tuner-strip .tuner-note-box,
html[data-theme="light"] .meta-chip,
html[data-theme="light"] .prog-bar,
html[data-theme="light"] .chord-card,
html[data-theme="light"] .interval-card,
html[data-theme="light"] .lab-opt-btn:not(.is-correct):not(.is-wrong),
html[data-theme="light"] .quiz-opt:not(.is-correct):not(.is-wrong),
html[data-theme="light"] .lab-stat-pill:not(.lab-stat-pill--streak),
html[data-theme="light"] .book-glossary-item,
html[data-theme="light"] .toc-btn:not(.is-active),
html[data-theme="light"] .book-page-tab:not(.is-active) {
  background: #ffffff !important;
  border-color: rgba(28, 25, 23, 0.1) !important;
  color: #1c1917 !important;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04) !important;
}

html[data-theme="light"] .mode-btn {
  color: #6b6761 !important;
}

html[data-theme="light"] .mode-btn.is-active {
  background: #ffffff !important;
  color: #1c1917 !important;
  border-color: rgba(28, 25, 23, 0.1) !important;
  box-shadow:
    inset 0 -2px 0 #dc2626,
    0 2px 6px rgba(28, 25, 23, 0.07) !important;
}

/* Crisp Clean White-Cream Buttons */
html[data-theme="light"] .btn-secondary:not(.is-on),
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-install,
html[data-theme="light"] .btn-back-shelf,
html[data-theme="light"] .btn-cinema-open,
html[data-theme="light"] .btn-drawer-toggle,
html[data-theme="light"] .root-btn:not(.is-active),
html[data-theme="light"] .box-pill:not(.is-active),
html[data-theme="light"] .mini-pill:not(.is-active),
html[data-theme="light"] .btn-step,
html[data-theme="light"] .btn-metro-vol,
html[data-theme="light"] .qr-card:not(.is-active) {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f3 100%) !important;
  border: 1px solid rgba(28, 25, 23, 0.13) !important;
  border-bottom-color: rgba(28, 25, 23, 0.18) !important;
  color: #1c1917 !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 3px rgba(28, 25, 23, 0.05) !important;
}

html[data-theme="light"] .btn-secondary:not(.is-on):hover,
html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .btn-install:hover,
html[data-theme="light"] .btn-back-shelf:hover,
html[data-theme="light"] .btn-cinema-open:hover,
html[data-theme="light"] .btn-drawer-toggle:hover,
html[data-theme="light"] .root-btn:not(.is-active):hover,
html[data-theme="light"] .box-pill:not(.is-active):hover,
html[data-theme="light"] .mini-pill:not(.is-active):hover,
html[data-theme="light"] .qr-card:not(.is-active):hover {
  background: #ffffff !important;
  border-color: rgba(28, 25, 23, 0.28) !important;
  color: #1c1917 !important;
  box-shadow: 0 3px 8px rgba(28, 25, 23, 0.08) !important;
}

html[data-theme="light"] .select-input,
html[data-theme="light"] .text-input,
html[data-theme="light"] .search-input {
  background: #ffffff !important;
  border: 1px solid rgba(28, 25, 23, 0.15) !important;
  color: #1c1917 !important;
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.04) !important;
}

html[data-theme="light"] .toggle-chip {
  background: #ffffff !important;
  border: 1px solid rgba(28, 25, 23, 0.12) !important;
  color: #44403c !important;
}

html[data-theme="light"] .toggle-chip:has(input:checked) {
  background: #f0f6ff !important;
  border-color: rgba(37, 99, 235, 0.38) !important;
  color: #1e40af !important;
}

html[data-theme="light"] input[type="range"] {
  background: #e7e5df !important;
  border-color: rgba(28, 25, 23, 0.14) !important;
}

html[data-theme="light"] .drawer-summary-pill {
  background: #f3f1ec !important;
  color: #44403c !important;
  border-color: rgba(28, 25, 23, 0.12) !important;
}

/* Clean Pale Cream Sticky Bars & Mobile Practice Dock */
html[data-theme="light"] .book-top-bar {
  background: rgba(255, 254, 251, 0.95) !important;
  border-color: rgba(28, 25, 23, 0.1) !important;
}

html[data-theme="light"] .book-sheet-wrap {
  background: #fffefb !important;
  border-color: rgba(28, 25, 23, 0.12) !important;
}

html[data-theme="light"] .mobile-practice-dock {
  background: rgba(255, 254, 251, 0.96) !important;
  border-top-color: rgba(28, 25, 23, 0.1) !important;
}

html[data-theme="light"] .mpd-bpm-group {
  background: #f5f4f0 !important;
  border-color: rgba(28, 25, 23, 0.14) !important;
}

/* Soft Champagne-White Book Pedestal & Light Shelf Plank */
html[data-theme="light"] .book-3d-stage {
  background: radial-gradient(circle at 50% 45%, rgba(28, 25, 23, 0.03) 0%, #f8f7f3 80%) !important;
  border-right-color: rgba(28, 25, 23, 0.07) !important;
}

html[data-theme="light"] .shelf-rack::after {
  background: linear-gradient(180deg, #ede9e0 0%, #ded8cc 55%, #cfc8ba 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px rgba(28, 25, 23, 0.1) !important;
}

html[data-theme="light"] .book-type-pill {
  background: #f4f2ed !important;
  color: #6b6761 !important;
}

html[data-theme="light"] .btn-theme-toggle {
  background: linear-gradient(180deg, #ffffff 0%, #f5f4f0 100%) !important;
  border: 1px solid rgba(28, 25, 23, 0.16) !important;
  color: #1c1917 !important;
}
