.cloud-app .notation-toggle { min-height: 36px; padding: 6px 10px; border: 1px solid #46563a; color: #d5e4cb; font-size: 12px; }
.cloud-app .notation-toggle[aria-pressed=true] { background: #35432b; color: var(--accent); border-color: #859b61; }
#playbackBar { flex-wrap: wrap; gap: 12px 18px; }
.stage-sound-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; flex: 1 0 100%; gap: 10px 18px; padding-top: 10px; border-top: 1px solid #36432d; }
.stage-click-tools, .stage-pad-tools, .stage-reading-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stage-sound-tools button { min-height: 40px; padding: 6px 11px; border: 1px solid #46563a; color: #dce8d2; background: #202a1b; font-size: 12px; white-space: nowrap; }
.stage-sound-tools #clickMultiplier { flex: 0 0 82px; width: 82px; min-width: 82px; height: 40px; min-height: 40px; font-size: 14px; }
.stage-sound-tools button[aria-pressed=true] { color: var(--accent); background: #35432b; border-color: #859b61; }
.stage-bpm { display: flex; gap: 6px; align-items: center; color: #b5c3a8; font-size: 10px; }
.stage-bpm input { width: 59px; min-height: 40px; padding: 6px; border: 1px solid #46563a; border-radius: 8px; color: #e4eddd; background: #141d11; font: inherit; font-size: 14px; }
.stage-reading-tools { display: none; }
.stage-mode .stage-reading-tools { display: flex; }
.stage-reading-tools .notation-toggle { min-height: 40px; }
.stage-mode #playbackBar { justify-content: flex-start; }
.stage-mode #playbackBar .speed-control { margin-left: 0; }
.stage-mode .stage-top { gap: 18px; }
.stage-top .stage-song-heading { flex: 1; gap: 12px; }
.stage-song-heading .brand-small, .stage-song-heading #stageKey { flex: none; }
.stage-song-heading #stageTitle { min-width: 0; max-width: none; font-size: 15px; }
.stage-top #stageKey { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; }
.stage-top .stage-top-actions { gap: 6px; }
.stage-top-actions button { min-height: 38px; padding: 7px 12px; border: 1px solid #35462d; border-radius: 8px; }
.stage-top-actions #exitStage { margin-left: 6px; border-color: #536747; font-size: 13px; }
.stage-mode .sheet-scroll { bottom: var(--stage-sound-bar, 132px); }
.main-app { padding-bottom: var(--stage-sound-bar, 132px); }
.stage-sound-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid #657349; background: #181e16; }
.stage-sound-dialog h2 { margin: 0; font-size: 23px; }
.stage-sound-dialog h3 { margin: 23px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #b5c3a8; }
.sound-mixer { display: grid; grid-template-columns: 130px minmax(65px, 1fr) auto; gap: 12px 10px; margin-top: 24px; align-items: center; }
.sound-mixer label { font-size: 12px; color: #dce8d2; }
.sound-mixer output { display: block; margin-top: 4px; color: #9fb48c; font-size: 11px; }
.sound-mixer input { width: 100%; accent-color: #c9ed83; }
.sound-mixer button { min-height: 36px; border: 1px solid #46563a; padding: 6px 10px; font-size: 12px; }
.sound-mixer button[aria-pressed=true] { background: #57382d; border-color: #99634b; color: #ffd0bb; }
.sound-hint { color: #aebda1; font-size: 12px; line-height: 1.6; white-space: normal; }
.sound-hint.is-error { color: #ffd0bb; }
.pad-banks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pad-bank { display: flex; min-width: 0; }
.pad-bank > button:first-child { flex: 1; min-width: 0; min-height: 48px; padding: 10px; overflow-wrap: anywhere; border: 1px solid #46563a; font-size: 13px; background: #252e20; }
.pad-bank > button[aria-pressed=true]:first-child { border-color: #b6cf83; background: #36442b; color: var(--accent); }
.pad-bank .pad-remove { width: 28px; flex: 0 0 28px; border: 1px solid #46563a; border-left: 0; border-radius: 0 6px 6px 0; font-size: 16px; color: #b5c3a8; }
.pad-bank strong { display: block; font-weight: 600; }
.pad-bank small { display: block; color: #aebda1; font-size: 10px; line-height: 1.4; margin-top: 5px; }
.pad-bank .pad-edit { flex: 0 0 36px; padding: 4px; border: 1px solid #46563a; border-left: 0; border-radius: 0; font-size: 10px; color: #cbd9bf; }
.pad-type-filter { display: flex; gap: 10px; align-items: center; margin: 15px 0; color: #b5c3a8; font-size: 12px; }
.pad-type-filter select { min-width: 0; flex: 1; max-width: 230px; padding: 8px; border: 1px solid #46563a; border-radius: 6px; background: #202a1b; color: #dce8d2; }
.pad-preview { min-height: 38px; padding: 8px 15px; border: 1px solid #64794c; color: var(--accent); font-size: 13px; }
.pad-preview[aria-pressed=true] { background: #35432b; }
.pad-import small { line-height: 1.6; color: #aebda1; }
#padImportCancelEdit { min-height: 38px; border: 1px solid #46563a; padding: 8px; font-size: 13px; }
.pad-legacy { margin-top: 20px; border-top: 1px solid #46563a; padding-top: 4px; }
.pad-legacy button { min-height: 38px; padding: 8px 12px; border: 1px solid #64794c; color: #d7edbd; font-size: 12px; }
.pad-follow { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 0 0 12px; color: #cbd9bf; }
.pad-follow input { accent-color: var(--accent); }
.pad-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pad-notes button { min-height: 45px; border: 1px solid #46563a; background: #252e20; color: #dce8d2; }
.pad-notes button[aria-pressed=true] { border-color: #b6cf83; background: #36442b; color: var(--accent); }
#padImportDetails { margin-top: 18px; border-top: 1px solid #36432d; padding-top: 16px; }
#padImportDetails summary { cursor: pointer; font-size: 13px; color: #dce8d2; }
.pad-import { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.pad-import label { display: grid; gap: 7px; font-size: 12px; color: #dce8d2; min-width: 0; }
.pad-import input, .pad-import select { min-width: 0; width: 100%; min-height: 38px; padding: 8px; border: 1px solid #46563a; border-radius: 6px; color: #e4eddd; background: #141d11; }
.pad-import :is(.pad-file, p, button) { grid-column: 1 / -1; }
.pad-import p { margin: 0; }
#stageNotationToggle { display: none; }
.stage-mode #stageNotationToggle { display: block; }
.cloud-app.is-landing .stage-sound-tools, .cloud-app.is-dashboard .stage-sound-tools { display: none; }
@media (max-width: 760px) {
  #playbackBar, .stage-mode #playbackBar { gap: 8px 12px; padding: 9px 12px max(9px, env(safe-area-inset-bottom)); }
  .stage-sound-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
  .stage-click-tools, .stage-pad-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px; gap: 8px; }
  .stage-pad-tools #stageSoundOpen { grid-column: 2 / -1; }
  .stage-mode .stage-reading-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stage-sound-tools button { width: 100%; min-height: 44px; padding: 6px 9px; font-size: 12px; }
  .stage-reading-tools .notation-toggle { min-height: 44px; }
  .stage-sound-tools #clickMultiplier { width: 100%; min-width: 0; height: 44px; min-height: 44px; font-size: 16px; }
  .stage-sound-tools .stage-bpm { height: 44px; gap: 4px; padding: 0 8px; border: 1px solid #46563a; border-radius: 8px; background: #141d11; }
  .stage-sound-tools .stage-bpm input { flex: 1; width: 0; height: 42px; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; text-align: center; }
  .song-audio-available #playbackBar .stage-sound-tools { grid-column: 1 / -1; }
  .stage-mode #playbackBar .playback-left > div, .stage-mode #playbackBar .restart-button { display: none; }
  .stage-mode #playbackBar .speed-control { gap: 6px; }
  .stage-mode #playbackBar .speed-control input { width: 64px; }
  .stage-sound-dialog { padding: 20px; }
  .sound-mixer { grid-template-columns: 95px minmax(45px, 1fr) auto; gap: 10px 8px; }
  .sound-mixer button { max-width: 104px; font-size: 11px; }
  .stage-mode .stage-top { gap: 10px; padding-inline: 12px; }
  .stage-top .stage-song-heading { gap: 7px; }
  .stage-song-heading #stageTitle { font-size: 13px; }
  .stage-top-actions button { min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .stage-top-actions #exitStage { margin-left: 2px; font-size: 12px; }
}
@media (max-width: 600px) {
  .stage-top .stage-arrow-button { min-width: 36px; padding-inline: 9px; }
  .stage-top .stage-arrow-button svg { display: block; }
  .stage-arrow-button span { display: none; }
}
@media (max-width: 450px) {
  .stage-sound-tools { gap: 8px; }
  .stage-sound-tools button { padding-inline: 8px; }
  .stage-bpm { font-size: 10px; }
  .pad-banks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .stage-sound-tools { display: none !important; } .main-app { padding-bottom: 0; } }
