:root,
html[data-theme="calm"] {
  color-scheme: light;
  --bg: #E9EFF2;
  --panel: #F4F7F8;
  --elevated: #F4F7F8;
  --border: #C3D0D8;
  --text: #0E1A22;
  --muted: #4A5D6B;
  --accent: #0891B2;
  --accent-fg: #0E1A22;
  --play-bg: #0F766E;
  --play-fg: #F4F7F8;
  --btn-line: #0F766E;
  --active: #0891B2;
  --key-white: #F4F7F8;
  --key-edge: #9FB0C6;
  --key-black: #1B2A33;
  --key-ink: #0E1A22;
  --key-black-ink: #F4F7F8;
  --divider: #0F766E;
  --paper: #F4F7F8;
  --ink: #0E1A22;
  --radius: 16px;
  --shadow: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08131A;
  --panel: #0E1A22;
  --elevated: #0E1A22;
  --border: #1F8A8A;
  --text: #E6EEF2;
  --muted: #9FB0C6;
  --accent: #22D3EE;
  --accent-fg: #08131A;
  --play-bg: #22D3EE;
  --play-fg: #08131A;
  --btn-line: #1F8A8A;
  --active: #22D3EE;
  --key-white: #C9D6DC;
  --key-edge: #9FB0C6;
  --key-black: #08131A;
  --key-ink: #08131A;
  --key-black-ink: #E6EEF2;
  --divider: #1F8A8A;
  --paper: #F4F7F8;
  --ink: #0E1A22;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--kp-font), Outfit, "Noto Sans", "Noto Sans Arabic", "Noto Sans Ethiopic", system-ui, sans-serif; font-size: 16px; }
body {
  max-width: none; margin: 0;
  padding: 0;
  background: var(--bg);
  background-image: none;
}
.short { display: none; }
.lab, .desk, .work, #notes-pane, #drums-pane, #band-pane, #lights-pane { min-width: 0; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.mast { position: sticky; top: 0; z-index: 16; background: var(--bg); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0; padding-right: 17.5rem; position: static; background: var(--bg); }
#back-home {
  margin: 0 0 0 auto; min-height: 44px; padding: 0 0.7rem;
  border: 0; background: transparent; color: var(--text); font-weight: 750;
}
body .tw-app-bar { top: 0.7rem !important; bottom: auto !important; left: auto !important; right: max(4.6rem, calc((100vw - 80rem) / 2 + 4.6rem)) !important; z-index: 20; }
.brand { display: flex; gap: 0.55rem; align-items: center; color: inherit; text-decoration: none; }
.brand strong { display: block; font-weight: 800; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 0.75rem; }
.menu-btn {
  min-width: 44px; min-height: 44px; height: 44px; padding: 0 0.6rem;
  border-radius: 12px; border: 1px solid var(--btn-line); box-shadow: none;
  background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
}
.menu-btn i { display: grid; gap: 4px; }
.menu-btn i span { display: block; width: 16px; height: 3px; background: currentColor; border-radius: 2px; }
.menu-btn b { font-size: 0.82rem; font-weight: 800; }
.lab { display: block; }
.home, .make, .library { display: none; }
body.is-home .home, body.is-make .make, body.is-library .library { display: block; }
body.is-home .tabs, body.is-home .lab, body.is-home #how, body.is-home #practice,
body.is-make .tabs, body.is-make .lab, body.is-make #how,
body.is-library .tabs, body.is-library .lab, body.is-library #how { display: none; }
.songbar {
  display: flex; align-items: center; gap: 0.65rem;
  position: static;
  margin: 0; padding: 0.45rem 0 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.cover {
  width: 48px; height: 48px; flex: 0 0 48px; border: 0; border-radius: 8px;
  background: linear-gradient(145deg, #22d3ee, #1e3a5f);
}
.songbar-copy { min-width: 0; flex: 1; }
.songbar-copy strong, .songbar-copy span { display: block; }
.songbar-copy strong {
  font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.songbar-copy span { color: var(--muted); font-size: 0.88rem; }
.shelf-block { margin: 0 0 1rem; }
.shelf-block h2, .home > h2 { margin: 0.2rem 0 0.45rem; font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.song-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0.35rem; align-items: center;
  margin: 0 0 0.35rem;
}
.song-row strong { font-weight: 750; }
.song-row span { display: block; color: var(--muted); font-size: 0.85rem; }
#key-pick { margin: 0.4rem 0 0.2rem; }
.do-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.choice { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.8rem; }
.choice .do-card { min-height: 48px; flex: 1 1 5.5rem; text-align: center; font-weight: 750; }
.do-card, .lib-song {
  text-align: left; color: inherit; font: inherit;
  border: 1px solid var(--border); background: transparent; border-radius: 8px;
}
.do-card { min-height: 84px; padding: 0.75rem 0.8rem; }
.do-card strong, .lib-song h2 { display: block; font-size: 1.05rem; }
.do-card span, .lib-song p { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.92rem; }
.do-card.on { box-shadow: inset 3px 0 0 var(--accent); }
#library-find { width: 100%; min-height: 44px; margin-bottom: 0.45rem; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: inherit; font: inherit; }
.lib-song { padding: 0.7rem 0.75rem; margin: 0 0 0.45rem; }
.viz-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0; }
.viz-row button { min-height: 44px; }
.lib-song .open-song { margin-right: 0.35rem; }
#make-go { margin-top: 0.2rem; min-height: 52px; }
body.viz-full .work { display: none; }
body.viz-full .stage-wrap, body.viz-full canvas#viz { display: block; max-height: none; height: min(62vh, 520px); }
@media (max-width: 720px) {
  .top { padding-right: 3.2rem; }
  body .tw-app-bar {
    top: 3.35rem !important;
    right: 0.55rem !important;
    left: 0.55rem !important;
    justify-content: flex-end;
  }
  .songbar { position: static; padding-top: 2.15rem; }
}
@media (max-height: 430px) {
  .home h1 { margin: 0.15rem 0; font-size: 1.35rem; }
  .home .how { margin-bottom: 0.35rem; }
  .do-card { min-height: 48px; padding: 0.4rem 0.7rem; }
  .shelf-block { margin-bottom: 0.45rem; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .top { padding-right: 16rem; }
  body .tw-app-bar {
    top: 0.55rem !important;
    left: auto !important;
    right: max(4.2rem, calc((100vw - 80rem) / 2 + 4.2rem)) !important;
  }
  .songbar { position: static; padding-top: 0.45rem; }
}
.tabs {
  display: flex; gap: 0; overflow-x: auto;
  margin: 0 0 0.4rem; padding: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
}
.tabs button {
  flex: 1 0 4.4rem; min-height: 48px; border-radius: 0; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-weight: 700; padding: 0.3rem 0.2rem;
}
.tabs button.on { background: transparent; color: var(--text); border-bottom-color: var(--accent); }
.how {
  margin: 0 0 0.7rem;
  padding: 0.35rem 0 0.2rem;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
}
.feel {
  margin: 0.15rem 0 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  font-size: 1.35rem;
}
body.playing:not(.show) { padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
body.playing:not(.show) .transport {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  margin: 0;
  background: rgba(5, 8, 20, 0.96);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
}
@media (min-width: 980px) {
  body.playing:not(.show) .transport { left: 0; }
}
.stage-wrap { position: relative; }
.show-progress { display: none; height: 6px; margin: 0.35rem 0 0.2rem; border-radius: 99px; background: #16324f; overflow: hidden; }
.show-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--active), var(--divider)); }
.curtain, .bow {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center; justify-items: center; gap: 0.65rem;
  padding: 1.2rem; text-align: center;
  background: rgba(5, 8, 20, 0.78);
  border-radius: 18px;
}
.curtain[hidden], .bow[hidden] { display: none !important; }
.curtain h2, .bow h2 { margin: 0; font-size: clamp(2rem, 7vw, 4.2rem); letter-spacing: -0.045em; line-height: 0.95; }
.kicker { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; font-weight: 800; color: #67e8f9; }
body.show { max-width: none; padding: 0; overflow: hidden; }
body.show .top, body.show .tabs, body.show .work, body.show #lane, body.show #lesson,
body.show #saved-line, body.show #undo-clear, body.show #along-btn, body.show #rec-btn,
body.show #turn-btn, body.show #show-btn, body.show #more-ways, body.show #how, body.show .menu-btn, body.show .scrim { display: none !important; }
body.show .out {
  position: fixed !important; inset: 0; z-index: 40; order: 0 !important;
  display: flex; flex-direction: column;
  margin: 0; padding: calc(0.7rem + env(safe-area-inset-top)) 0.8rem calc(0.7rem + env(safe-area-inset-bottom));
  background: #050814;
}
body.show .transport { justify-content: center; grid-template-columns: 1.4fr 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
body.show .stage-wrap { flex: 1; min-height: 0; display: flex; }
body.show canvas { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 22px; }
body.show .show-progress { display: block; }
body.show .song-title, body.show .feel, body.show .now { text-align: center; }
body.show .song-title { font-size: clamp(1.6rem, 4vw, 3rem); }
.podium { display: grid; justify-items: center; gap: 0.35rem; margin: 0.45rem 0; }
.avatar { position: relative; width: 140px; height: 170px; transition: transform 0.18s ease; }
.avatar .head { position: absolute; left: 48px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: #f3d2b3; }
.avatar .body { position: absolute; left: 46px; top: 54px; width: 48px; height: 72px; border-radius: 18px; background: #1d4ed8; }
.avatar .arm { position: absolute; left: 84px; top: 70px; width: 52px; height: 8px; border-radius: 8px; background: #f3d2b3; transform-origin: left center; transition: transform 0.16s ease; }
.avatar.idle .arm { transform: rotate(-8deg); }
.avatar.dyn-pp, .avatar.dyn-p, .avatar.dyn-mf, .avatar.dyn-f, .avatar.dyn-ff { transform: none; }
.baton { min-height: 112px; margin: 0.4rem 0; border-radius: 16px; border: 1px dashed #67e8f9; display: grid; place-items: center; text-align: center; color: var(--muted); touch-action: none; }
@media (prefers-reduced-motion: reduce) {
  .avatar, .avatar .arm { transition: none; }
}
.feel.early { color: #facc15; }
.feel.late { color: #fb7185; }
body.is-score .desk { display: flex !important; flex-direction: column; }
body.is-score .work { display: flex; flex-direction: column; }
body.is-score #notes-pane { order: -5; }
body.is-score .out { order: 4 !important; position: static !important; }
body.is-score .staff-wrap { min-height: 240px; }
body.is-score .kit,
body.is-score:not(.show) .stage-wrap,
body.is-score:not(.show) #song-title,
body.is-score:not(.show) #feel,
body.is-score:not(.show) #now-line,
body.is-score:not(.show) #lane,
body.is-score:not(.show) #lesson,
body.is-score:not(.show) #more-ways { display: none; }
body.is-drums .desk { display: flex !important; flex-direction: column; }
body.is-drums .work { order: -1; }
body.is-drums .out { order: 1 !important; position: static !important; }
body.is-lights #lane,
body.is-lights #feel,
body.is-lights #lesson,
body.is-lights #more-ways,
body.is-band #lane,
body.is-band #feel,
body.is-band #lesson,
body.is-band #more-ways { display: none; }
#scenes, #gestures, .shelf-songs, .inst-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
#scenes .btn, #gestures .btn, .shelf-songs .btn, .inst-list .btn {
  min-height: 52px; border: 0; border-radius: 0; border-bottom: 1px solid var(--border);
  background: transparent; text-align: left; font-weight: 650;
}
#scenes .btn.on, #gestures .btn.on, .shelf-songs .btn.on, .inst-list .btn.on {
  background: #102033; color: var(--text); box-shadow: inset 3px 0 0 var(--accent);
}
.who { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; }
.who input, #assign-alias, #assign-inst, #assign-task {
  min-height: 44px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; color: inherit; font: inherit;
}
.who input, #assign-alias { flex: 1; width: 100%; }
#assign-inst, #assign-task, #assign-add { width: 100%; margin-top: 0.35rem; }
.practice { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin: 0 0 0.7rem; }
.practice[hidden] { display: none; }
.practice p { margin: 0; flex: 1 1 12rem; }
.assign-row { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.inst-now {
  width: 100%; min-height: 56px; margin: 0 0 0.55rem; text-align: left;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent;
  font-weight: 750; font-size: 1.15rem;
}
#conduct-btn, #band-warm {
  width: 100%; min-height: 44px; margin-top: 0.55rem;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--elevated); color: var(--text);
}
.family { padding: 0.55rem 0.7rem 0.2rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #07101c; }
.more-box { margin-top: 0.7rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0; background: transparent; }
.looks { display: flex; flex-direction: column; gap: 0; }
.looks .btn.on { background: #102033; color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
body.expert.is-score .out,
body.expert.is-score #lane { display: none !important; }
body.expert.is-score .staff-wrap { min-height: calc(100vh - 9rem); }
.score-tools, .meters { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.score-tools { margin-bottom: 0.4rem; }
.inks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin: 0.45rem 0; }
.inks .btn {
  min-height: 68px;
  background: #f7f1e4;
  color: #1a140c;
  font-size: 1.35rem;
  font-weight: 800;
  border: 0;
  border-radius: 14px 14px 8px 8px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}
.inks .btn.on { background: var(--active); color: var(--accent-fg); }
.pen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0.15rem 0 0.45rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pen .btn { min-height: 52px; font-weight: 700; border: 0; border-radius: 0; border-right: 1px solid var(--border); background: var(--panel); color: var(--text); }
.pen .btn:last-child { border-right: 0; }
.pen .btn.on, .keypad .btn.on { background: #123044; color: var(--text); border-color: var(--border); box-shadow: inset 0 -2px 0 var(--accent); }
.keypad { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.45rem; }
.keypad .btn { min-height: 48px; }
.drum-row { min-width: 0; max-width: 100%; }
.shelf { margin: 0.55rem 0 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.shelf-songs { display: flex; flex-direction: column; gap: 0; }
.work.is-drums .kit { order: -2; }
.work.is-drums #notes-pane { display: block; order: 1; }
.work.is-drums #notes-pane > :not(.staff-wrap) { display: none; }
.work.is-drums .staff-wrap { min-height: 0; max-height: 108px; margin-bottom: 0.45rem; }
#lights-pane, #sound-pane { display: none; }
.work.is-lights #lights-pane, .work.is-sound #sound-pane { display: block; }
.work.is-sound .kit, .work.is-sound #notes-pane, .work.is-sound #drums-pane, .work.is-sound #band-pane, .work.is-sound #lights-pane { display: none; }
.wave-view { width: 100%; height: 160px; background: #071018; border-radius: 8px; display: block; }
#sound-pane .keys { margin: 0.55rem 0; }
#sound-pane .pen { margin-top: 0.45rem; }
body.is-sound:not(.show) .stage-wrap,
body.is-sound #song-title,
body.is-sound #feel,
body.is-sound #now-line,
body.is-sound #lane,
body.is-sound #lesson,
body.is-sound #more-ways { display: none; }
.work.is-lights .kit, .work.is-lights #notes-pane, .work.is-lights #drums-pane, .work.is-lights #band-pane { display: none; }
.stack { display: flex; gap: 0.35rem; align-items: center; margin: 0.28rem 0; }
.stack select { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #071018; color: inherit; font: inherit; }
#rgb-btn { width: 100%; margin: 0.35rem 0; }
.out.frame-glow, .stage-wrap.frame-glow { box-shadow: 0 0 0 2px #e8f7ff, 0 0 24px rgba(34, 211, 238, 0.4); border-radius: 18px; }
.out.frame-line, .stage-wrap.frame-line { box-shadow: inset 0 0 0 2px rgba(232, 247, 255, 0.55); border-radius: 18px; }
.out.frame-double, .stage-wrap.frame-double { box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 8px transparent, inset 0 0 0 9px rgba(255,255,255,.4); border-radius: 18px; }
.out.frame-rgb, .out.is-rgb, .stage-wrap.frame-rgb, .stage-wrap.is-rgb { animation: rgbframe 5s linear infinite; border-radius: 18px; }
@keyframes rgbframe {
  0% { box-shadow: 0 0 0 3px #ef4444, 0 0 24px #ef4444; }
  33% { box-shadow: 0 0 0 3px #22c55e, 0 0 24px #22c55e; }
  66% { box-shadow: 0 0 0 3px #3b82f6, 0 0 24px #3b82f6; }
  100% { box-shadow: 0 0 0 3px #ef4444, 0 0 24px #ef4444; }
}
@media (prefers-reduced-motion: reduce) {
  .out.frame-rgb, .out.is-rgb { animation: none; }
}
@media (max-width: 1100px) {
  html, body { overflow-x: clip; }
  body { padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
  .lab { display: block; }
  canvas { max-height: 22vh; }
  .song-title { font-size: 1.05rem; }
  body.is-score .staff-wrap { min-height: 180px; }
  body.expert.is-score .staff-wrap { min-height: 38vh; }
  .keypad { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }
  .keypad .btn { flex: 0 0 auto; }
  .work.is-drums #notes-pane { display: none; }
  .work.is-drums #drums-pane { order: 0; }
  body.is-band .work { order: -1; }
  body.is-band .out { order: 1 !important; }
  body.is-lights canvas { max-height: 28vh; }
  .work.is-drums .keys { display: none; }
  .work.is-band #band-pane { display: flex; flex-direction: column; }
  .work.is-band .podium,
  .work.is-band #gestures,
  .work.is-band #baton,
  .work.is-band #conduct-btn { order: -1; }
  .transport {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    margin: 0;
    grid-template-columns: 1.4fr 1fr;
    background: #050814;
    border-top: 1px solid var(--border);
    padding: 0.45rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  }
  .transport .btn { min-height: 64px; font-size: 1.05rem; }
  #more-ways .btn { width: 100%; margin-top: 0.35rem; }
}
.out { order: -1; }
.desk { display: flex; flex-direction: column; gap: 0.7rem; }
.work.is-drums #notes-pane, .work.is-notes #drums-pane, #band-pane, #lights-pane { display: none; }
.work.is-drums .kit { order: -2; }
.work.is-drums #notes-pane { display: block; order: 1; }
.work.is-drums #notes-pane > :not(.staff-wrap) { display: none; }
.work.is-band #band-pane { display: block; }
.work.is-band .kit, .work.is-band #notes-pane, .work.is-band #drums-pane { display: none; }
@media (max-width: 1100px) {
  .work.is-drums #notes-pane { display: none; }
}
@media (min-width: 860px) {
  .desk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: stretch; }
  .out { order: 0; position: sticky; top: 0.4rem; }
}
canvas {
  width: 100%; height: auto; aspect-ratio: 16 / 8; max-height: 26vh;
  background: transparent; border-radius: var(--radius); display: block;
  border: 1px solid var(--border);
}
#viz, .wave-view { background: #050814; }
#confetti { background: transparent; border: 0; }
@media (min-width: 860px) {
  canvas { max-height: 42vh; aspect-ratio: 16 / 9; }
}
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.55rem; }
.pad, .key {
  touch-action: none;
  user-select: none;
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.28);
}
.pad.hit, .key.hit { filter: brightness(1.4); transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.28); }
.transport {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.4rem;
  align-items: stretch;
  margin-top: 0.55rem;
}
.transport .btn { min-height: 64px; padding: 0.35rem 0.4rem; line-height: 1.1; }
.song-title { margin: 0.55rem 0 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.lane { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.28rem; margin-top: 0.4rem; }
.col {
  min-height: 76px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0.25rem 0.1rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.col b { font-size: 0.75rem; color: var(--muted); }
.col.on { background: #083044; border-color: var(--accent); }
.col.lock { outline: 2px solid #fff; outline-offset: 1px; }
.marks { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 2.2rem; }
.marks i { width: 14px; height: 8px; border-radius: 99px; display: block; }
.marks i.kick { background: #22d3ee; }
.marks i.snare { background: #f59e0b; }
.marks i.hat { background: #818cf8; }
.pad.tom { background: #34d399; color: #042016; }
.pad.rim { background: #e2e8f0; color: #0f172a; }
.pad.bell { background: #fbbf24; color: #1a140c; }
.pad.tamb { background: #fb7185; color: #1a140c; }
.pad.crash { background: #c4b5fd; color: #1e1b4b; }
.marks i.rim { background: #e2e8f0; }
.marks i.bell { background: #fbbf24; }
.marks i.tamb { background: #fb7185; }
.marks i.crash { background: #c4b5fd; }
#chords, #scenes { margin-top: 0.4rem; }
#bass-btn { width: 100%; margin-top: 0.35rem; }
.marks i.tom { background: #34d399; }
.marks i.shaker { background: #facc15; }
.mix { display: grid; gap: 0.2rem; margin: 0.45rem 0; }
.mix label { display: grid; grid-template-columns: 4.2rem 1fr 2rem; gap: 0.35rem; align-items: center; font-size: 0.85rem; }
.work { display: flex; flex-direction: column; }
.more-box { margin-top: 0.7rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0; background: transparent; }
.more-box:not([open]) > :not(summary) { display: none; }
.more-box summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
#more-kit { margin-top: 0.35rem; }
#click-btn { width: 100%; margin-top: 0.35rem; }
#crazy-btn { width: 100%; margin-top: 0.45rem; }
.marks em { font-style: normal; font-size: 0.68rem; font-weight: 800; color: var(--paper); }
:focus-visible { outline: 3px solid var(--active); outline-offset: 3px; }
.group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 0.75rem 0.85rem;
  margin: 0.55rem 0;
}
.group h2 { margin: 0 0 0.4rem; }
.group .hint { margin: 0 0 0.45rem; }
.drawer .btn { width: 100%; margin-top: 0.4rem; }
.looks .btn, .close { margin-top: 0; }
.close { margin-bottom: 0.2rem; }
.tempo { display: grid; gap: 0.2rem; margin-top: 0.45rem; font-weight: 700; }
.tempo b { color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.pad.kick { background: #0e7490; }
.pad.snare { background: #b45309; }
.pad.hat { background: #4338ca; }
.pad.clap { background: #be185d; }
.pad.hit, .key.hit { filter: brightness(1.4); transform: translateY(2px); }
.keys { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
#band-pane .keys { margin-top: 0.4rem; grid-column: auto; }
#band-warm { width: 100%; margin-top: 0.55rem; }
.key { min-height: 64px; background: #f7f1e4; color: #1a140c; border-radius: 14px 14px 8px 8px; }
.meter { height: 12px; margin-top: 0.5rem; background: var(--panel); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); }
.play {
  width: auto; min-height: 64px; border-radius: 16px; border: 0; background: var(--play-bg); color: var(--play-fg);
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-weight: 800; font-size: 1.2rem;
}
.play-icon { display: block; width: 0; height: 0; margin-left: 4px; border-left: 16px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.play.on .play-icon { width: 14px; height: 14px; margin: 0; border: 0; background: currentColor; }
.btn, .mode {
  min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); padding: 0.4rem 0.7rem;
}
.modes { display: flex; gap: 0.4rem; margin-bottom: 0.45rem; }
.mode { width: 52px; height: 52px; padding: 8px; }
.mode svg { width: 100%; height: 100%; }
.mode.on { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.staff-wrap { background: var(--paper); color: var(--ink); border-radius: var(--radius); min-height: 140px; padding: 0.35rem; overflow: hidden; }
.saved { margin: 0.35rem 0 0; font-weight: 800; color: #14b8a6; }
.saved.bad { color: #fb7185; }
.undo { margin-top: 0.45rem; }
.lesson { color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); margin: 0.35rem 0 0.6rem; }
.drums { display: grid; gap: 0.35rem; }
.drum-row { display: grid; grid-template-columns: 3.2rem repeat(16, minmax(0, 1fr)); gap: 0.2rem; align-items: center; }
.drum-row b { font-size: 0.72rem; }
.cell {
  width: auto; min-width: 0; height: 48px; min-height: 48px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--panel); box-shadow: none;
}
.cell.on { background: var(--accent); border-color: transparent; }
.cell.now { outline: 2px solid #fff; outline-offset: 1px; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
body.menu-open .scrim { display: block; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(22rem, 88vw); z-index: 40;
  background: var(--bg); border-right: 1px solid var(--border); overflow: auto;
  padding: 0.9rem; transform: translateX(-105%);
}
body.menu-open .drawer { transform: none; }
.drawer h2 { margin: 0.2rem 0 0.35rem; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.looks { display: flex; flex-direction: column; gap: 0; }
.title-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.4rem; align-items: center; margin: 0.35rem 0; }
.title-row select { min-height: 44px; width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.looks .btn.on { background: #102033; color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.foot { color: var(--muted); font-size: 0.85rem; }
.foot a { color: inherit; }
.abcjs-note.now, .abcjs-rest.now { outline: 3px solid #0e7490; }
@media (min-width: 980px) {
  body.playing:not(.show) .transport { left: 0; }
}
@media (min-width: 980px) {
  body { display: block; }
  .top, .tabs, .lab, .foot { grid-column: auto; }
  .drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(22rem, 88vw);
    height: auto; transform: translateX(-105%); z-index: 40;
  }
  body.menu-open .drawer { transform: none; }
  .menu-btn { display: grid !important; }
  #menu-close, .scrim { display: none; }
  body.menu-open .scrim { display: block; }
  body.menu-open #menu-close { display: inline-flex; }
}
#mode-both { flex-basis: auto; }
.ws-split {
  display: none;
  width: 18px;
  min-height: 8rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  align-self: stretch;
  position: relative;
}
.ws-split::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 3px;
  border-radius: 2px;
  background: var(--muted);
}
.ws-split:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.work.is-both {
  display: grid !important;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, var(--ws-score, 58%)) 18px minmax(11rem, 1fr);
  grid-template-areas:
    "score split pads"
    "score split drums";
  align-items: start;
  column-gap: 0.15rem;
  row-gap: 0.35rem;
}
.work.is-both #notes-pane { grid-area: score; display: block !important; min-width: 0; }
.staff-wrap svg { max-width: 100%; height: auto; display: block; }
.work.is-both .staff-wrap { max-height: min(28vh, 210px); overflow: auto; }
body.is-both:not(.show) { padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
body.is-both:not(.show) .transport {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  margin: 0;
  background: rgba(5, 8, 20, 0.96);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom));
}
.work.is-both .ws-split { grid-area: split; display: block; }
.work.is-both .kit { grid-area: pads; display: grid !important; margin-bottom: 0; }
.work.is-both #drums-pane { grid-area: drums; display: block !important; min-width: 0; }
.work.is-both #band-pane,
.work.is-both #lights-pane,
.work.is-both #sound-pane { display: none !important; }
body.is-both .desk { display: flex !important; flex-direction: column; }
body.is-both .out { order: 3; position: static !important; }
body.is-both:not(.show) .stage-wrap,
body.is-both:not(.show) #song-title,
body.is-both:not(.show) #feel { display: none; }
@media (max-width: 800px) {
  .work.is-both {
    grid-template-columns: 1fr;
    grid-template-areas: "score" "pads" "drums";
  }
  .work.is-both .ws-split { display: none !important; }
}
@media (max-height: 500px) {
  body.is-both #how, body.is-both .teach-line { display: none; }
  body.is-both .tabs button { min-height: 36px; }
  .work.is-both .staff-wrap { min-height: 88px; max-height: 118px; }
  .work.is-both .pad, .work.is-both .key { min-height: 40px; border-radius: 12px; font-size: 0.92rem; }
  .work.is-both .inks .btn { min-height: 44px; }
  .work.is-both #drums-pane { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-split { transition: none; }
}

/* MU 2.27.0 beat workspace */
body.is-home .songbar { display: none !important; }
.make-beat, .my-songs, .btn, .do-card, .pad, .key {
  border: 1px solid var(--btn-line);
  box-shadow: none;
  background: var(--panel);
  color: var(--text);
}
.make-beat {
  display: block; width: 100%; min-height: 8.5rem; margin: 1.2rem 0 0.7rem;
  border-radius: 22px; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800;
  background: #f0a020; letter-spacing: -0.04em;
}
.my-songs {
  display: block; margin: 0 auto 1rem; min-height: 44px; padding: 0.4rem 1rem;
  border-radius: 12px; font-weight: 800; background: var(--panel);
}
.brand img, .cover {
  border: 3px solid #1a140c; box-shadow: 3px 3px 0 #e8a317; background: #f0a020; border-radius: 10px;
}
.mast, .top, .songbar, .drawer { background: var(--bg); }
.transport, .dock {
  position: fixed; left: 0; right: 0; z-index: 25;
  background: var(--panel); border-top: 1px solid var(--divider);
}
.transport {
  bottom: 0;
  display: grid; grid-template-columns: 1.05fr 1.35fr 0.85fr; gap: 0.35rem;
  padding: 0.4rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
}
.dock {
  bottom: 4.7rem;
  display: flex; gap: 0.35rem; padding: 0.35rem 0.5rem;
  overflow-x: auto;
}
.dock .btn { flex: 1 0 auto; min-height: 44px; box-shadow: 3px 3px 0 #1a140c; }
.transport .play, .transport .btn, .transport .tempo { min-height: 52px; border-radius: 12px; font-weight: 800; }
.transport .tempo { display: grid; gap: 0.1rem; font-size: 0.78rem; }
.transport input[type="range"] { width: 100%; }
.cell.on { background: #f0a020; color: #1a140c; }
.cell.on::after {
  content: "●";
  font-size: 1rem;
  line-height: 1;
  color: #1a140c;
}
.cell.now {
  outline: 4px solid #1a140c;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 3px #1a140c;
  background: #fff1c4;
}
.cell.on.now { background: #f0a020; }
.cell.flash { box-shadow: inset 0 0 0 4px #1a140c, 0 0 0 3px #1a140c; }
.drum-row.is-extra { display: none; }
#drums.is-open .drum-row.is-extra { display: grid; }
.cast, .style-row { display: flex; gap: 0.4rem; margin: 0.35rem 0; flex-wrap: wrap; }
.cast button, .style-row button {
  min-height: 48px; min-width: 4.5rem; border-radius: 14px; font-weight: 800;
  border: 1px solid var(--btn-line); background: var(--panel); box-shadow: none; color: var(--text);
}
.cast button.on, .style-row button.on { background: #f0a020; }
.berty-bob {
  position: absolute; right: 10px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%;
  background: #f0a020; border: 3px solid #1a140c; box-shadow: 2px 2px 0 #1a140c; z-index: 2;
}
.berty-bob::before, .berty-bob::after {
  content: ""; position: absolute; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #1a140c;
}
.berty-bob::before { left: 9px; }
.berty-bob::after { right: 9px; }
.berty-bob.on { transform: translateY(-6px); }
.confetti { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.share-line { font-weight: 750; word-break: break-all; margin: 0.35rem 0; }
#share-line:not([hidden]) {
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 9.5rem;
  z-index: 26;
  margin: 0;
  background: #fff8ea;
  border: 3px solid #1a140c;
  box-shadow: 3px 3px 0 #1a140c;
  padding: 0.25rem 0.5rem;
}
body.is-beat .tabs, body.is-beat #how, body.is-beat #notes-pane, body.is-beat #band-pane,
body.is-beat #lights-pane, body.is-beat #sound-pane, body.is-beat .ws-split,
body.is-beat #lane, body.is-beat #more-ways, body.is-beat #song-title, body.is-beat #feel { display: none !important; }
body.is-beat .desk { display: flex !important; flex-direction: column; width: 100%; }
body.is-beat .work, body.is-beat .out { width: 100%; max-width: 100%; }
body.is-beat .out { order: 0; position: static !important; }
body.is-beat .work { order: 1; }
body.is-beat #drums-pane { display: block !important; }
body.is-beat .grid-box > summary { display: none; }
body.is-beat .grid-box { margin-top: 0; border: 0; }
body.is-beat:not(.show) #kit,
body.is-beat:not(.show) #step-hint,
body.is-beat:not(.show) #now-line,
body.is-beat:not(.show) #lesson,
body.is-beat:not(.show) #saved-line { display: none !important; }
body.is-beat:not(.show) .stage-wrap,
body.is-both:not(.show) .stage-wrap {
  display: block !important;
  height: 92px !important;
  max-height: 92px !important;
  overflow: hidden !important;
  margin: 0 0 0.4rem;
  contain: paint;
  clip-path: inset(0);
  transform: translateZ(0);
}
body.is-beat:not(.show) canvas#viz,
body.is-both:not(.show) canvas#viz {
  display: block !important;
  width: 100% !important;
  height: 84px !important;
  min-height: 0 !important;
  max-height: 84px !important;
  aspect-ratio: auto !important;
  background: #050814;
  border: 3px solid #1a140c;
  box-shadow: 4px 4px 0 #1a140c;
  border-radius: 14px;
}
body.is-both:not(.show) .out { order: -1 !important; position: static !important; }
body.is-both:not(.show) #song-title,
body.is-both:not(.show) #feel,
body.is-both:not(.show) #now-line,
body.is-both:not(.show) #lane,
body.is-both:not(.show) #lesson { display: none !important; }
body.is-beat { padding-bottom: calc(9.2rem + env(safe-area-inset-bottom)); }
body.playing:not(.show) .transport,
body.is-both:not(.show) .transport,
body.is-beat:not(.show) .transport {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top: 3px solid var(--divider) !important;
  grid-template-columns: 1.05fr 1.35fr 0.85fr !important;
}
body.show { background: #050814; color: #fff8ea; max-width: none; }
body.show .out {
  position: fixed !important; inset: 0; z-index: 40;
  display: flex !important; flex-direction: column; align-items: center;
  width: 100vw; max-width: none; margin: 0;
  padding: calc(0.6rem + env(safe-area-inset-top)) 0.8rem calc(0.55rem + env(safe-area-inset-bottom));
  background: #050814;
}
body.show .stage-wrap {
  display: flex !important; flex: 1 1 auto;
  width: min(1100px, 100%) !important; height: auto !important; max-height: none !important;
  min-height: 0; margin: 0 auto; overflow: hidden; align-items: stretch; justify-content: center;
  contain: paint; clip-path: inset(0); transform: translateZ(0);
}
body.show canvas#viz {
  width: 100% !important; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; border-radius: 18px;
}
body.show #song-title, body.show #feel, body.show #now-line { display: block !important; text-align: center; color: #fff8ea; }
body.show #lane {
  display: grid !important; width: min(52rem, 100%); margin: 0.4rem auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.show .col { min-height: 64px; background: #fff8ea; color: #1a140c; border: 3px solid #fff8ea; box-shadow: 3px 3px 0 #e8a317; }
body.show .col.on { background: #f0a020; }
body.show .dock, body.show #lesson, body.show #saved-line, body.show #layers-box, body.show .kit { display: none !important; }
body.show .transport {
  position: relative !important; left: auto; right: auto; bottom: auto;
  width: min(40rem, 100%); margin: 0.35rem auto 0;
  background: #050814 !important; color: #fff8ea !important; border-top: 0 !important;
}
@media (max-height: 430px) {
  body.is-beat:not(.show) .stage-wrap,
  body.is-both:not(.show) .stage-wrap,
  body.is-beat:not(.show) #layers-box,
  body.is-beat:not(.show) #step-hint,
  body.is-beat:not(.show) .songbar,
  #share-line { display: none !important; }
  .songbar, .tabs, #how { display: none !important; }
  body.is-beat:not(.show) { padding-top: 0.15rem; padding-bottom: 6.5rem; }
  body.is-beat:not(.show) #drums-pane { display: block !important; }
  body.is-beat:not(.show) .cell { height: 48px !important; min-height: 48px !important; }
  .top { min-height: 40px; }
  body.is-beat:not(.show) .dock {
    display: flex !important;
    bottom: 3.35rem;
    padding: 0.12rem 0.3rem;
    gap: 0.25rem;
    z-index: 26;
  }
  body.is-beat:not(.show) .dock .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.1rem 0.3rem;
    font-size: 0.78rem;
    box-shadow: 2px 2px 0 #1a140c;
  }
  body.is-beat:not(.show) .transport .play,
  body.is-beat:not(.show) .transport .btn,
  body.is-beat:not(.show) .transport .tempo { min-height: 44px; }
}
@media (max-width: 720px) {
  body.is-home .make-beat { margin-top: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none !important; }
  .berty-bob, .cell.now, .pad, .key { transition: none !important; animation: none !important; }
}
.bar-stack {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  display: flex;
  flex-direction: column;
  background: #fff8ea;
  border-top: 3px solid #1a140c;
}
.bar-stack .dock,
.bar-stack .transport {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto;
  margin: 0;
}
.bar-stack .dock { display: flex !important; }
.bar-stack .transport { border-top: 3px solid #1a140c; }
body.show .bar-stack {
  position: static;
  background: transparent;
  border: 0;
  width: min(40rem, 100%);
  margin: 0.35rem auto 0;
}
body.show .bar-stack .dock { display: none !important; }
body.is-beat { padding-bottom: calc(11rem + env(safe-area-inset-bottom)); }
.tempo b, #tempo-read {
  color: var(--accent) !important;
  text-decoration: underline;
  text-decoration-color: #c47d00;
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}
.drum-row { grid-template-columns: 4.6rem repeat(16, minmax(44px, 1fr)); }
.drum-row b { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 0.68rem; line-height: 1.05; }
.drum-row b svg { width: 22px; height: 22px; display: block; }
.drums { overflow-x: auto; }
.cell { min-width: 44px; min-height: 44px; position: relative; }
.transport .tempo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}
.transport .tempo b { flex: 0 0 auto; }
.transport input[type="range"] { flex: 1; min-height: 44px; margin: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.35rem; }
.brand { min-height: 44px; }
body .tw-app-bar button, body .tw-app-bar a { min-height: 44px; min-width: 44px; }
@media (max-height: 400px) {
  body.is-beat:not(.show) .cell { height: 44px !important; min-height: 44px !important; }
  body.is-beat:not(.show) .top { min-height: 40px; }
  body.is-beat:not(.show) .drums { gap: 2px; }
  body.is-beat:not(.show) .bar-stack { border-top-width: 2px; }
  body.is-beat:not(.show) .bar-stack .transport,
  body.is-beat:not(.show) .bar-stack .dock { padding: 0 0.25rem; border-top-width: 0; }
  body.is-beat:not(.show) .dock .btn,
  body.is-beat:not(.show) .transport .play,
  body.is-beat:not(.show) .transport .btn,
  body.is-beat:not(.show) .transport .tempo { min-height: 44px; height: 44px; }
  body.is-beat:not(.show) { padding-bottom: 6.4rem; }
}
.beat-line { margin: 0 0 0.25rem; font-weight: 800; }
#read-lesson { flex: 0 0 auto; }
body.pref-contrast .cell { background: #fff; color: #000; border: 3px solid #000; box-shadow: none; }
body.pref-contrast .cell.on { background: #ffe14a; color: #000; }
body.pref-contrast .cell.on::after { color: #000; }
body.pref-contrast .cell.now { outline: 4px solid #000; background: #fff; }
body.pref-contrast .cell.on.now { background: #ffe14a; }
html[data-kp-contrast="1"] .drums .cell {
  background: #fff !important; color: #000 !important; border: 3px solid #000 !important; box-shadow: none !important;
}
html[data-kp-contrast="1"] .drums .cell.on { background: #ffe14a !important; color: #000 !important; }
html[data-kp-contrast="1"] .drums .cell.on::after { content: "●"; color: #000 !important; }
html[data-kp-contrast="1"] .drums .cell.now { outline: 4px solid #000 !important; background: #fff !important; }
html[data-kp-contrast="1"] .drums .cell.on.now { background: #ffe14a !important; }
html[data-kp-contrast="1"] #tempo-read,
html[data-kp-contrast="1"] .tempo b { color: #ffe14a !important; text-decoration-color: #ffe14a; }
html[data-kp-contrast="1"] body.is-beat .bar-stack,
html[data-kp-contrast="1"] body.is-beat .transport,
html[data-kp-contrast="1"] body.is-beat .dock,
html[data-kp-contrast="1"] body.playing .transport { background: #000 !important; color: #ffe14a !important; }
html[data-kp-contrast="1"] #chip,
html[data-kp-contrast="1"] .foot,
html[data-kp-contrast="1"] .foot a { color: #ffe14a !important; }
body.pref-less-motion .berty-bob,
body.pref-less-motion .cell.now,
body.pref-less-motion .pad,
body.pref-less-motion .key,
html[data-kp-motion="less"] .berty-bob,
html[data-kp-motion="less"] .cell.now,
html[data-kp-motion="less"] .pad,
html[data-kp-motion="less"] .key { transition: none !important; animation: none !important; }
body.pref-less-motion .berty-bob.on,
html[data-kp-motion="less"] .berty-bob.on { transform: none !important; }
body.pref-less-motion .confetti,
html[data-kp-motion="less"] .confetti { display: none !important; }
@media (forced-colors: active) {
  .cell.on { background: Highlight; color: HighlightText; }
  .cell.on::after { content: "●"; color: HighlightText; }
  .cell.now { outline: 4px solid CanvasText; }
}
@media (max-height: 430px) {
  body.is-beat:not(.show) { padding-bottom: 8.4rem; }
  .beat-line { font-size: 0.82rem; margin: 0 0 0.1rem; }
}

/* MU 2.35.0 — DJ Berty night layout */
html { background: var(--bg); }
html, body, .songbar, .drawer, .transport, .side, .desk, .work {
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
}
body:not(.show) { max-width: none; }
body:not(.is-home):not(.is-make):not(.is-library) {
  height: 100dvh;
  overflow: hidden;
  padding: 0;
}
.lab {
  display: grid;
  grid-template-columns: clamp(120px, 16vw, 232px) 1fr;
  height: calc(100dvh - 48px - 72px);
  margin-top: 48px;
  min-height: 0;
}
.side, .desk, .work, .out { min-width: 0; min-height: 0; }
.side {
  overflow: auto;
  background: var(--panel);
  border-right: 1px solid var(--border);
}
#dock-left { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.35rem; }
#dock-left button {
  min-height: 52px;
  font-size: 17px;
  text-align: left;
  padding: 0.25rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}
#dock-left button.on, #dock-left button[aria-pressed="true"] {
  background: var(--elevated);
  color: var(--accent);
}
.desk { display: flex; flex-direction: column; align-items: stretch; overflow: hidden; height: 100%; background: var(--bg); }
.songbar { flex: 0 0 auto; padding: 0.25rem 0.6rem; border-bottom: 1px solid var(--border); background: var(--panel); }
.work { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.work.is-both, body.is-beat .work {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
.work.is-both #notes-pane { display: block !important; }
body.is-beat #drums-pane, .work.is-both #drums-pane { display: block !important; }
body.is-beat #notes-pane > :not(.staff-wrap):not(.note-row),
.work.is-both #notes-pane > :not(.staff-wrap):not(.note-row) { display: none; }
.work.is-both #song-more, body.is-beat #song-more { display: none; }
.staff-wrap, .work.is-both .staff-wrap, body.is-beat .staff-wrap {
  max-height: none;
  overflow: hidden;
}
.note-row { display: flex; flex-wrap: nowrap; gap: 0.25rem; align-items: stretch; }
.note-row .inks, .note-row .pen { display: flex; flex-wrap: nowrap; gap: 0.25rem; }
.note-row button, .inks button, .pen button { min-width: 44px; min-height: 44px; flex: 1 1 0; }
.drums { overflow: visible; }
.drum-row { grid-template-columns: 4.6rem repeat(16, minmax(44px, 1fr)); gap: 0; }
.cell {
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  min-width: 44px;
  min-height: 44px;
}
.cell.on { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.cell.on::after { content: "●"; color: var(--accent-fg); }
.cell.now { outline: 4px solid #e8f7ff; outline-offset: 1px; }
.cell.on.now { background: var(--accent); }
.cell.flash { box-shadow: inset 0 0 0 3px #e8f7ff; }
#tempo-read, .transport .tempo b {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.style-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.25rem 0; }
.style-row button {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  padding: 0 0.75rem;
}
.style-row button.on { background: var(--accent); color: var(--accent-fg); }
.beat-speak { display: flex; align-items: center; gap: 0.4rem; margin: 0.15rem 0; }
.beat-line { font-size: 16px; margin: 0; }
.read-me { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; }
.sound-banner {
  margin: 0.2rem 0;
  padding: 0.35rem 0.6rem;
  background: var(--elevated);
  border: 1px solid var(--accent);
  border-radius: 10px;
}
.sound-banner button { min-height: 44px; min-width: 44px; }
.stack select {
  background: var(--panel);
  color: var(--text);
  min-height: 44px;
  border: 1px solid var(--border);
}
#scenes .btn.on {
  background: #102033;
  color: var(--text);
}
#scenes .btn.on::after { content: " ✓"; }
.transport {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 25;
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.45rem;
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border) !important;
  grid-template-columns: none !important;
  overflow: visible;
}
body.playing:not(.show) .transport,
body.is-both:not(.show) .transport,
body.is-beat:not(.show) .transport,
body.is-score:not(.show) .transport,
body.is-lights:not(.show) .transport,
body.is-band:not(.show) .transport,
body.is-sound:not(.show) .transport,
.transport {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--divider) !important;
}
.transport .tempo { display: flex; align-items: center; gap: 0.35rem; flex: 1; min-width: 8rem; }
.transport .tempo input { flex: 1; min-width: 4rem; }
.more-pop {
  position: absolute;
  right: 0.4rem;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  z-index: 26;
}
.more-pop .btn { min-height: 44px; }
body.is-home, body.is-make, body.is-library {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
  padding-top: 48px;
  background: #050814;
}
body.is-home .lab, body.is-make .lab, body.is-library .lab, body.is-home .transport, body.is-make .transport, body.is-library .transport { display: none; }
#home { display: none; }
body.is-home #home {
  min-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #050814;
}
.make-beat {
  width: min(90vw, 56rem);
  min-height: 22vh;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-fg);
}
.my-songs { min-height: 52px; min-width: 44px; padding: 0 1.2rem; border-radius: 12px; border: 1px solid var(--border); background: var(--elevated); color: var(--text); }
body.is-score .desk { display: flex !important; }
body.is-score .staff-wrap, body.is-score #staff, body.is-score #staff svg { width: 100%; max-width: none; }
body.is-score .out { display: none; }
body.is-lights .desk {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
body.is-lights .out { display: block !important; min-height: 0; }
body.is-lights .stage-wrap, body.is-lights canvas#viz {
  display: block !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 240px;
}
body.is-lights #notes-pane, body.is-lights #drums-pane, body.is-lights #band-pane, body.is-lights #sound-pane { display: none !important; }
body.is-lights #lights-pane { display: block !important; }
#how, #step-hint, #teach { display: none !important; }
.tabs, .top, .mast, .foot, #dock { display: none !important; }
@media (max-width: 1199px) {
  #dock-left button { align-items: flex-start; font-size: 15px; line-height: 1.15; }
  #dock-left button::before { content: attr(data-ico); display: block; font-size: 16px; line-height: 1; }
}
@media (max-width: 1023px) {
  .lab { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 72px;
    width: min(300px, 86vw);
    transform: translateX(-110%);
    z-index: 40;
    background: var(--panel);
  }
  body.menu-open .side { transform: none; }
  .drawer, body.menu-open .drawer {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    top: auto;
    bottom: auto;
  }
  body.menu-open .scrim {
    display: block;
    position: fixed;
    inset: auto;
    top: 48px;
    bottom: 72px;
    left: min(300px, 86vw);
    right: 0;
    background: rgba(5, 8, 20, 0.55);
    z-index: 35;
  }
}
@media (min-width: 1024px) {
  body.menu-open .scrim, .scrim { display: none !important; }
  .drawer {
    top: 48px;
    bottom: 72px;
    width: min(420px, 42vw);
    background: var(--panel);
  }
}
@media (max-height: 520px) {
  .songbar, .style-row, .note-row { display: none; }
  .staff-wrap { max-height: 72px; }
  .lab { height: calc(100dvh - 48px - 72px); }
}
button, .btn, .play, .cell, select { min-height: 44px; }
.menu-btn { min-width: 44px; min-height: 52px; }
@media (forced-colors: active) {
  .cell.on { background: Highlight; color: HighlightText; }
  .cell.on::after { content: "●"; color: HighlightText; }
  .cell.now { outline: 4px solid CanvasText; }
}

/* MU 2.35.1 — the grid stays above the transport */
html { overflow: hidden; height: 100%; }
html[data-kb-bar] #menu-btn { display: none !important; }
.more-pop[hidden] { display: none !important; }
.cast[hidden], #cast[hidden] { display: none !important; }
body.is-beat #kit, body.is-both #kit,
body.is-beat #drums-pane > details, body.is-both #drums-pane > details { display: none !important; }
body.is-beat .work, body.is-both .work, .work.is-both {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}
body.is-both #notes-pane, .work.is-both #notes-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto;
  min-height: 88px;
  overflow: hidden;
  width: 100% !important;
}
body.is-both #notes-pane > :not(.staff-wrap):not(.note-row) { display: none !important; }
body.is-both .staff-wrap {
  flex: 0 0 88px;
  min-height: 88px !important;
  max-height: none !important;
  height: 88px;
  overflow: hidden !important;
  width: 100% !important;
}
body.is-score .staff-wrap, body.is-score #staff, body.is-score #staff svg,
body.is-beat #staff, body.is-beat #staff svg, body.is-both #staff svg {
  width: 100% !important;
  max-width: none !important;
}
body.is-score .staff-wrap { flex: 1 1 auto; max-height: none !important; min-height: 0; overflow: auto; }
.note-row { display: flex !important; flex-wrap: nowrap; flex: 0 0 auto; }
.note-row .inks, .note-row .pen { display: flex; flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; }
.note-row button, #inks .btn, #pen .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
#inks .btn.on, #pen .btn.on { background: var(--accent); color: var(--accent-fg); }
body.is-beat #drums-pane, body.is-both #drums-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}
body.is-beat #drums, body.is-both #drums {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.drum-row, .drum-row.is-extra { display: grid !important; flex: 0 0 44px; min-height: 44px; height: 44px; }
body.is-beat .cell, body.is-both .cell {
  min-width: 0 !important;
  width: 100%;
  min-height: 44px !important;
  height: 44px !important;
  max-height: none !important;
}
@media (min-width: 1000px) {
  body.is-beat .drum-row, body.is-both .drum-row {
    grid-template-columns: 4.2rem repeat(16, minmax(0, 1fr));
  }
}
.style-row { flex: 0 0 auto; max-height: 44px; overflow: hidden; margin: 0; flex-wrap: nowrap; }
.beat-speak { flex: 0 0 auto; min-height: 0; margin: 0; }
.sound-banner { position: static; flex: 0 0 auto; }
.songbar { max-height: 44px; padding: 0.15rem 0.5rem; }
#scenes .btn,
#gestures .btn,
.shelf-songs .btn,
.inst-list .btn {
  color: var(--text) !important;
  background: var(--panel) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 48px !important;
  text-align: start;
}
#scenes .btn.on,
#scenes .btn[aria-pressed="true"],
#gestures .btn.on,
#gestures .btn[aria-pressed="true"],
.shelf-songs .btn.on,
.shelf-songs .btn[aria-pressed="true"],
.inst-list .btn.on,
.inst-list .btn[aria-pressed="true"] {
  background: var(--elevated) !important;
  color: var(--text) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}
.shelf-songs .btn.on::after,
.shelf-songs .btn[aria-pressed="true"]::after,
.inst-list .btn.on::after,
.inst-list .btn[aria-pressed="true"]::after,
#gestures .btn.on::after,
#gestures .btn[aria-pressed="true"]::after { content: " ✓"; }

/* MU 2.35.1 lock — one column, grid above the transport, one menu */
body:not(.show):not(.is-home):not(.is-make):not(.is-library) {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  padding: 48px 0 0 !important;
}
html.kb-framed body:not(.show) {
  padding-top: 0 !important;
}
body:not(.show) .lab {
  margin-top: 0 !important;
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body:not(.show) .transport {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 64px;
  max-height: none !important;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--divider) !important;
  grid-template-columns: none !important;
}
body.is-beat:not(.show) .transport,
body.is-both:not(.show) .transport,
body.is-score:not(.show) .transport,
body.is-lights:not(.show) .transport,
body.is-band:not(.show) .transport,
body.is-sound:not(.show) .transport,
body.playing:not(.show) .transport {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top: 1px solid var(--divider) !important;
}
body.is-home .transport,
body.is-make .transport,
body.is-library .transport { display: none !important; }
.ws-split, body.is-both .ws-split, .work.is-both .ws-split { display: none !important; }
body.is-beat .out, body.is-both .out, body.is-score .out { display: none !important; }
#dock-left { gap: 0.12rem; padding: 0.2rem; }
#dock-left button {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px !important;
  height: 40px;
  max-height: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  font-size: 15px;
}
#dock-left button::before {
  content: attr(data-ico);
  display: inline !important;
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
}
.side, #dock-left {
  min-height: 0;
  overflow-y: auto;
}
body.is-beat #drums, body.is-both #drums {
  gap: 1px !important;
  overflow: hidden !important;
  height: 100% !important;
  align-content: stretch;
}
body.is-beat .drum-row, body.is-both .drum-row {
  min-height: 0 !important;
  height: auto;
  overflow: hidden;
  align-items: stretch;
}
body.is-beat .drum-row b, body.is-both .drum-row b {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1;
}
body.is-beat .drum-row svg, body.is-both .drum-row svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
#pen .btn, #inks .btn, .note-row .btn, .transport .btn, .drawer .btn,
.read-me, #read-lesson, .cast button, .style-row button, .pad, .berty-bob, .do-card {
  background: var(--elevated) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
#pen .btn.on, #inks .btn.on, .note-row .btn.on, .style-row button.on,
.cast button.on, .pad.on, .transport .play, .make-beat, .berty-bob {
  background: var(--accent) !important;
  color: var(--accent-fg) !important;
}
#tempo-read, .transport .tempo, .transport .tempo b {
  color: var(--text) !important;
  background: transparent !important;
  text-decoration-color: var(--accent) !important;
}
#scenes .btn.on::after { content: none !important; }
body.is-lights .desk {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.82fr) minmax(280px, 1.25fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.is-lights .desk > * { width: auto !important; max-width: none !important; }
body.is-lights .songbar { grid-column: 1 / -1; grid-row: 1; }
body.is-lights .work {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: block !important;
}
body.is-lights .out {
  display: flex !important;
  grid-column: 2;
  grid-row: 2;
  position: relative !important;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  overflow: hidden !important;
  order: 0 !important;
}
body.is-lights .stage-wrap, body.is-lights canvas#viz {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 1 1 auto;
}
body:has(#sound-banner:not([hidden])).is-beat .staff-wrap,
body:has(#sound-banner:not([hidden])).is-both .staff-wrap {
  max-height: 52px !important;
  flex-basis: 48px !important;
}
@media (max-width: 1023px) {
  .side {
    position: fixed !important;
    top: 48px !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(300px, 86vw) !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-bottom: 9rem !important;
    box-sizing: border-box !important;
    transform: translateX(-110%);
  }
  html.kb-framed .side { top: 0 !important; }
  body.menu-open .side { transform: none !important; }
  .drawer, body.menu-open .drawer {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    top: auto !important;
    bottom: auto !important;
  }
}
@media (min-width: 1024px) {
  .drawer {
    overflow-y: auto !important;
    top: 48px;
    bottom: 0;
    max-height: calc(100dvh - 48px);
    padding-bottom: 6rem;
  }
  html.kb-framed .drawer { top: 0; max-height: 100dvh; }
}
@media (max-width: 700px) {
  body:not(.show) .transport {
    flex-wrap: wrap !important;
    align-content: center;
    row-gap: 0.15rem;
    min-height: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.3rem;
  }
  .transport .play, .transport .btn, .transport .tempo { min-height: 44px; }
  .transport .tempo { flex: 1 1 7.5rem; min-width: 6.5rem; order: 2; }
  #play-btn { order: 1; flex: 0 0 auto; }
  #save-dock { order: 3; flex: 0 0 auto; }
  #mute-btn { order: 4; flex: 0 0 auto; }
  #more-tools { order: 5; flex: 0 0 auto; }
  #rec-btn { order: 6; }
  #share-btn { order: 7; }
  body.is-beat .drum-row, body.is-both .drum-row {
    grid-template-columns: 2.6rem repeat(16, minmax(0, 1fr)) !important;
  }
}
@media (max-height: 520px) {
  body.is-beat .songbar, body.is-both .songbar,
  body.is-beat .style-row, body.is-both .style-row,
  body.is-beat .note-row, body.is-both .note-row,
  body.is-score .note-row { display: none !important; }
  body.is-both #notes-pane,
  body.is-both .staff-wrap { display: none !important; }
  .beat-speak { min-height: 0; }
  #beat-line { font-size: 13px; }
}
.key, .staff-wrap, .abcjs-container, .abcjs-staff {
  /* piano keys and staff paper keep their paper colors */
}

/* MU 2.35.1 fit — definite column so the grid shrinks instead of spilling */
html.kb-framed body:not(.show):not(.is-home):not(.is-make):not(.is-library) {
  padding-top: 0 !important;
}
body:not(.show) .lab {
  width: 100% !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
}
body:not(.show) .desk {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  align-self: stretch !important;
}
body.is-both #notes-pane,
body.is-score #notes-pane,
body.is-score .work,
body.is-both .staff-wrap,
body.is-score .staff-wrap,
body.is-score #staff {
  width: 100% !important;
  max-width: none !important;
  align-self: stretch !important;
  min-width: 0 !important;
}
body.is-lights .out > :not(.stage-wrap) { display: none !important; }
body.is-lights .stage-wrap { position: relative !important; flex: 1 1 auto; min-height: 0; height: 100% !important; }
body.is-lights canvas#viz {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}
@media (max-width: 720px) {
  body.is-lights .desk {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  }
}

/* MU 2.35.1 — both-mode grid and the lights stage fill the column */
body.is-both .work.is-both #drums-pane,
body.is-beat #drums-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
}
body.is-both .work.is-both #drums,
body.is-beat #drums {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
body.is-lights .desk {
  display: grid !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  grid-template-areas: "bar bar" "controls stage" !important;
  align-content: stretch !important;
  height: 100% !important;
}
body.is-lights .songbar { grid-area: bar !important; }
body.is-lights .work {
  grid-area: controls !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: auto !important;
  align-self: stretch !important;
}
body.is-lights .out {
  grid-area: stage !important;
  position: relative !important;
  top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: stretch !important;
  overflow: hidden !important;
}
body.is-lights .stage-wrap {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  max-height: none !important;
}
body.is-lights canvas#viz {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}
body.is-lights .work,
body.is-lights .out,
body.is-lights .songbar,
body.is-lights .stage-wrap,
body.is-lights canvas#viz {
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* MU 2.35.2 — Hub language. Dock stays left. Beat grid, notes, and tempo stay left to right. */
html, body, button, input, select, textarea {
  font-family: var(--kp-font), Outfit, "Noto Sans", "Noto Sans Arabic", "Noto Sans Ethiopic", system-ui, sans-serif;
}
html[dir="rtl"] .lab { direction: ltr !important; }
html[dir="rtl"] .home,
html[dir="rtl"] .make,
html[dir="rtl"] .library,
html[dir="rtl"] .drawer,
html[dir="rtl"] .songbar-copy,
html[dir="rtl"] .how,
html[dir="rtl"] .beat-speak,
html[dir="rtl"] .sound-banner,
html[dir="rtl"] .transport,
html[dir="rtl"] .lesson,
html[dir="rtl"] .teach-line,
html[dir="rtl"] .hint,
html[dir="rtl"] #band-pane,
html[dir="rtl"] #sound-pane,
html[dir="rtl"] .saved,
html[dir="rtl"] .share-line,
html[dir="rtl"] .curtain,
html[dir="rtl"] .bow {
  direction: rtl;
  text-align: start;
}
html[dir="rtl"] #drums,
html[dir="rtl"] .drum-row,
html[dir="rtl"] .note-row,
html[dir="rtl"] #inks,
html[dir="rtl"] #pen,
html[dir="rtl"] .staff-wrap,
html[dir="rtl"] #staff,
html[dir="rtl"] .transport .tempo,
html[dir="rtl"] .style-row,
html[dir="rtl"] #lane,
html[dir="rtl"] .keys,
html[dir="rtl"] #sound-notes,
html[dir="rtl"] #songbar-name,
html[dir="rtl"] #classics,
html[dir="rtl"] #open-songs strong,
html[dir="rtl"] #my-saves strong {
  direction: ltr !important;
}
html[dir="rtl"] .drawer { left: 0; right: auto; }

/* MU 2.35.3 — dock rows are easy to tap. Arabic menu stays on the physical left. */
#dock-left button {
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  white-space: nowrap !important;
  overflow: hidden;
  box-sizing: border-box;
}
/* MU 2.35.4 — start screen shows the left drawer. Shared bar keeps Menu first; do not widen Home. */
body.is-home.menu-open .lab,
body.is-make.menu-open .lab,
body.is-library.menu-open .lab {
  display: block !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  position: static !important;
  background: transparent !important;
}
body.is-home.menu-open .desk,
body.is-home.menu-open #dock-left,
body.is-make.menu-open .desk,
body.is-make.menu-open #dock-left,
body.is-library.menu-open .desk,
body.is-library.menu-open #dock-left {
  display: none !important;
}
body.is-home.menu-open .side,
body.is-make.menu-open .side,
body.is-library.menu-open .side {
  display: block !important;
  position: static !important;
  transform: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.is-home.menu-open .drawer,
body.is-make.menu-open .drawer,
body.is-library.menu-open .drawer {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 48px !important;
  bottom: 0 !important;
  width: min(22rem, 88vw) !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  z-index: 50 !important;
  overflow: auto !important;
  background: var(--panel) !important;
  color: var(--text) !important;
}
html.kb-framed body.is-home.menu-open .drawer,
html.kb-framed body.is-make.menu-open .drawer,
html.kb-framed body.is-library.menu-open .drawer { top: 0 !important; }
body.is-home.menu-open .scrim,
body.is-make.menu-open .scrim,
body.is-library.menu-open .scrim {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 40 !important;
  background: rgba(5, 8, 20, 0.55) !important;
}
.kb-bar .kb-menu { order: -1; flex: 0 0 auto; white-space: nowrap; }
html[dir="rtl"] .kb-bar { direction: ltr; }
@media (max-width: 420px) {
  .kb-plate { font-size: 0 !important; }
  .kb-plate::after {
    content: attr(data-ver);
    font-size: 0.9rem;
    font-weight: 700;
  }
}
#menu-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
#menu-langs .btn {
  min-height: 44px;
  min-width: 44px;
}
#menu-langs .btn.on {
  background: var(--elevated);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
#whats-line { margin: 0.15rem 0 0.7rem; }
html[dir="rtl"] .kb-bar { direction: ltr; }
html[dir="rtl"] .drawer,
html[dir="rtl"] body.menu-open .drawer {
  left: 0 !important;
  right: auto !important;
}
html[dir="rtl"] .drawer { transform: translateX(-105%); }
html[dir="rtl"] body.menu-open .drawer { transform: none !important; }
html[dir="rtl"] .kb-menu {
  position: relative;
  left: auto;
  right: auto;
}

/* MU 2.35.5 — readable lists, tip above the transport, wide Sound and Band */
body.is-beat #notes-pane,
body.is-beat .staff-wrap { display: none !important; }
body.is-score .staff-wrap {
  min-height: 88px !important;
  max-height: none !important;
  flex: 1 1 auto;
}
body.is-both .staff-wrap {
  min-height: 88px !important;
  height: 88px !important;
  max-height: none !important;
  flex: 0 0 88px !important;
}
@media (max-height: 520px) {
  body.is-both #notes-pane,
  body.is-both .staff-wrap { display: none !important; }
}
body.is-beat #drums,
body.is-both #drums {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  align-content: stretch !important;
}
body.is-beat .drum-row,
body.is-both .drum-row,
body.is-beat .drum-row.is-extra,
body.is-both .drum-row.is-extra {
  display: grid !important;
  flex: 0 0 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  grid-template-columns: 3.2rem repeat(16, minmax(0, 1fr)) !important;
  overflow: visible !important;
}
body.is-beat .cell,
body.is-both .cell {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: none !important;
}
#read-lesson, .read-me {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
}
.beat-speak { min-height: 44px !important; max-height: none !important; align-items: center; }
@media (min-width: 700px) {
  #scenes, #gestures, .shelf-songs, .inst-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (min-width: 1000px) {
  #scenes, #gestures, .shelf-songs, .inst-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}
#classics > .shelf { color: var(--muted); }
html[data-kp-contrast="1"] #scenes .btn,
html[data-kp-contrast="1"] #gestures .btn,
html[data-kp-contrast="1"] .shelf-songs .btn,
html[data-kp-contrast="1"] .inst-list .btn {
  background: #000 !important;
  color: #ffe14a !important;
  border-bottom-color: #ffe14a !important;
}
html[data-kp-contrast="1"] #scenes .btn.on,
html[data-kp-contrast="1"] .shelf-songs .btn.on,
html[data-kp-contrast="1"] .inst-list .btn.on,
html[data-kp-contrast="1"] #gestures .btn.on {
  background: #111 !important;
  color: #ffe14a !important;
  box-shadow: inset 3px 0 0 #ffe14a !important;
}
.tip-dock {
  display: none;
  flex: 0 0 auto;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
body.tip-on .tip-dock { display: flex; }
body .tip-dock #kp-live {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  flex: 1 1 auto;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0.45rem 0.75rem !important;
  border: 0 !important;
  border-left: 4px solid var(--accent) !important;
  border-radius: 0 !important;
  background: var(--panel) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.tip-x {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}
html[data-kp-contrast="1"] body .tip-dock #kp-live,
html[data-kp-contrast="1"] .tip-x {
  background: #000 !important;
  color: #ffe14a !important;
}
#chord-row, #melodies {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center;
  background: transparent !important;
}
#chords { display: contents !important; }
#chords .btn, #melodies .btn, #bass-btn {
  width: auto !important;
  min-width: 64px !important;
  min-height: 44px !important;
  height: auto !important;
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: var(--elevated) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
#chords .btn.on, #chords .btn[aria-pressed="true"],
#melodies .btn.on, #melodies .btn[aria-pressed="true"],
#bass-btn.on, #bass-btn[aria-pressed="true"] {
  background: var(--accent) !important;
  color: var(--accent-fg) !important;
  border-color: transparent !important;
}
html[data-kp-contrast="1"] #chords .btn,
html[data-kp-contrast="1"] #melodies .btn,
html[data-kp-contrast="1"] #bass-btn {
  background: #000 !important;
  color: #ffe14a !important;
  border-color: #ffe14a !important;
}
html[data-kp-contrast="1"] #chords .btn.on,
html[data-kp-contrast="1"] #melodies .btn.on,
html[data-kp-contrast="1"] #bass-btn.on,
html[data-kp-contrast="1"] #chords .btn[aria-pressed="true"],
html[data-kp-contrast="1"] #melodies .btn[aria-pressed="true"],
html[data-kp-contrast="1"] #bass-btn[aria-pressed="true"] {
  background: #ffe14a !important;
  color: #000 !important;
}
@media (min-width: 700px) and (orientation: landscape), (min-width: 860px) {
  body.is-sound .desk {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.is-sound .out { display: none !important; }
  body.is-sound .work {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.is-sound #sound-pane {
    display: grid !important;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    gap: 0.6rem;
  }
  body.is-sound .sound-controls {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
  }
  body.is-sound #wave-view {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch;
  }
  body.is-sound #sound-notes {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    grid-template-columns: none !important;
  }
  body.is-sound #sound-notes .key {
    flex: 1 1 0;
    min-width: 44px;
    width: auto;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 0.1rem;
    font-size: 0.85rem;
  }
  body.is-band .desk {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-areas: "bar bar" "controls stage" !important;
    align-items: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.is-band .songbar { grid-area: bar !important; }
  body.is-band .work {
    grid-area: controls !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 100% !important;
    overflow: auto !important;
    width: auto !important;
  }
  body.is-band #band-pane {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 48px !important;
  }
  body.is-band .out {
    grid-area: stage !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
    position: static !important;
    width: auto !important;
  }
  body.is-band .stage-wrap {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    flex: 1 1 0 !important;
    min-height: 80px !important;
    height: auto !important;
    max-height: none !important;
  }
  body.is-band canvas#viz {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
  }
  body.is-band #song-title,
  body.is-band #feel,
  body.is-band #now-line { display: block !important; }
  body.is-band #lane {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(44px, 1fr)) !important;
  }
  body.is-band #lane .col { min-width: 44px; min-height: 44px; }
}
@media (max-width: 699px) {
  body.is-sound .desk,
  body.is-band .desk {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.is-sound .work,
  body.is-band .work,
  body.is-sound #sound-pane,
  body.is-band #band-pane,
  body.is-sound .out,
  body.is-band .out {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.is-sound #sound-pane { display: flex !important; flex-direction: column !important; }
  body.is-sound #wave-view { width: 100% !important; height: 160px !important; }
  body.is-band #band-pane { display: flex !important; flex-direction: column !important; min-height: 48px !important; }
  body.is-sound #sound-notes {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  body.is-sound #sound-notes .key { min-width: 44px; min-height: 44px !important; height: 44px !important; }
}

/* MU 2.35.6 — readable words, menus that close, Perform that fits */
.pen .btn {
  color: var(--text) !important;
  background: var(--panel) !important;
  min-height: 44px !important;
}
.pen .btn.on, .pen .btn[aria-pressed="true"] {
  background: var(--elevated) !important;
  color: var(--text) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}
#band-warm, #conduct-btn {
  background: var(--elevated) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  min-height: 44px !important;
}
html[data-kp-contrast="1"] .pen .btn,
html[data-kp-contrast="1"] #band-warm,
html[data-kp-contrast="1"] #conduct-btn {
  background: #000 !important;
  color: #ffe14a !important;
  border-color: #ffe14a !important;
}
html[data-kp-contrast="1"] .pen .btn.on,
html[data-kp-contrast="1"] .pen .btn[aria-pressed="true"] {
  background: #111 !important;
  color: #ffe14a !important;
  box-shadow: inset 3px 0 0 #ffe14a !important;
}
.lab input[type="range"] {
  min-height: 44px !important;
  height: 44px !important;
}
#inks .btn, #pen .btn, .note-row .btn {
  min-width: 44px !important;
  min-height: 44px !important;
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.15;
}
@media (max-width: 480px) {
  .note-row { flex-wrap: wrap !important; }
  .note-row .inks, #inks {
    display: grid !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    grid-template-columns: repeat(8, minmax(44px, 1fr)) !important;
  }
  .note-row .pen, #pen {
    display: flex !important;
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  #pen .btn { flex: 1 1 auto !important; }
}
#dock-left button {
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-height: 44px !important;
}
body.is-beat:not(.show) #drums-pane,
body.is-both:not(.show) #drums-pane,
body.is-beat #drums-pane,
body.is-both #drums-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  height: auto !important;
}
body.is-beat #drums,
body.is-both #drums {
  flex: 1 1 0 !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.is-band .out {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: auto !important;
}
body.is-band .stage-wrap {
  position: relative !important;
  overflow: hidden !important;
  flex: 1 1 0 !important;
  min-height: 80px !important;
}
body.is-band canvas#viz {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
body.is-band #song-title,
body.is-band #feel,
body.is-band #now-line { display: block !important; flex: 0 0 auto; }
body.is-band #lane {
  display: grid !important;
  flex: 0 0 auto;
  grid-template-columns: repeat(8, minmax(44px, 1fr)) !important;
}
body.is-band #lane .col { min-width: 44px; min-height: 44px; }
body.show {
  display: flex !important;
  flex-direction: column !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body.show .lab {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  display: block !important;
  margin: 0 !important;
  grid-template-columns: 1fr !important;
}
body.show .side { display: none !important; }
body.show .desk {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.show .out {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
}
body.show .transport {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  grid-template-columns: none !important;
  z-index: 5 !important;
}
body.show .transport .play,
body.show .transport .btn,
body.show .transport .tempo {
  max-height: 52px !important;
  min-height: 44px !important;
  height: 44px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
@media (min-width: 700px) {
  body.show .transport { flex-wrap: nowrap !important; }
}
.more-pop {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  bottom: 100% !important;
  top: auto !important;
  margin: 0 0 4px !important;
  z-index: 30 !important;
  max-width: min(16rem, calc(100vw - 16px));
}
.transport { position: relative !important; }







/* MU 2.35.7 — left tabs and a bottom player */
body.mu237 {
  --rail: 168px;
  --player: 64px;
  --bar: 52px;
  --tabs: 0px;
  height: 100dvh;
  overflow: hidden;
}
body.mu237 .stage-wrap { position: relative; overflow: hidden; }
body.mu237 .confetti { position: absolute !important; inset: 0 !important; z-index: 1 !important; width: 100% !important; height: 100% !important; }
body.mu237 .side {
  position: fixed !important;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 24;
  display: flex !important;
  flex-direction: column;
  overflow: auto;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
body.mu237.show .side,
body.mu237.show .menu-btn,
body.mu237.is-home .lab,
body.mu237.is-home .side,
body.mu237.is-library .lab,
body.mu237.is-make .lab { display: flex !important; }
body.mu237 .desk {
  position: fixed !important;
  top: calc(var(--bar) + var(--tabs));
  left: var(--rail);
  right: 0;
  bottom: var(--player);
  overflow: auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
  background: var(--bg);
}
body.mu237 .transport,
body.mu237.playing:not(.show) .transport {
  position: fixed !important;
  left: var(--rail) !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 26;
  width: auto !important;
  max-height: var(--player);
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
body.mu237 #dock-left { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
body.mu237 #dock-left .tab {
  display: flex; align-items: center; gap: 0.4rem;
  min-height: 44px; height: 44px; max-height: 44px; flex: 0 0 44px; width: 100%;
  padding: 0 0.45rem; border: 0; border-radius: 8px; background: transparent;
  color: var(--text); font-size: 14px; font-weight: 700; text-align: start;
}
body.mu237 #dock-left .tab svg { width: 24px; height: 24px; flex: 0 0 24px; }
body.mu237 #dock-left .tab.on,
body.mu237 #dock-left .tab[aria-pressed="true"] { background: var(--active); color: var(--accent-fg); }
body.mu237 #menu-btn {
  position: fixed !important; top: 4px; left: 4px; z-index: 28;
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
  border-radius: 10px; background: var(--elevated); color: var(--text); border: 1px solid var(--border);
}
body.mu237 #menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.mu237 #menu-btn svg { width: 24px; height: 24px; }
html[dir="rtl"] body.mu237 #menu-btn { left: 4px; right: auto; }
body.mu237 .home, body.mu237 .make, body.mu237 .library,
body.mu237 #notes-pane, body.mu237 #drums-pane, body.mu237 #band-pane,
body.mu237 #lights-pane, body.mu237 #sound-pane, body.mu237 #remix-pane,
body.mu237 .out { display: none !important; }
body.mu237.tab-songs .home { display: block !important; }
body.mu237.tab-songs.is-make .home { display: none !important; }
body.mu237.tab-songs.is-make .make { display: block !important; }
body.mu237.tab-songs.is-library .home { display: none !important; }
body.mu237.tab-songs.is-library .library { display: block !important; }
body.mu237.tab-songs .home, body.mu237.tab-songs .make, body.mu237.tab-songs .library {
  position: fixed; z-index: 5;
  top: calc(var(--bar) + var(--tabs)); left: var(--rail); right: 0; bottom: var(--player);
  overflow: auto; margin: 0; padding: 0.7rem 0.8rem 1rem; background: var(--bg);
}
body.mu237.tab-tap #drums-pane { display: flex !important; flex-direction: column; min-height: 0; }
body.mu237.tab-tap #mix-details { display: none !important; }
body.mu237.tab-tap .out { display: block !important; max-height: 110px; overflow: hidden; }
body.mu237.tab-tap .stage-wrap { height: 96px; max-height: 96px; overflow: hidden; }
body.mu237.tab-tap #song-title, body.mu237.tab-tap #feel, body.mu237.tab-tap #now-line, body.mu237.tab-tap #lane { display: none !important; }
body.mu237.tab-remix #remix-pane { display: block !important; }
body.mu237.tab-mix #drums-pane { display: block !important; }
body.mu237.tab-mix #drums-pane > :not(#mix-details) { display: none !important; }
body.mu237.tab-mix #mix-details, body.mu237.tab-mix #mix-details > *, body.mu237.tab-mix #mix-pane { display: block !important; }
body.mu237.tab-piano #sound-pane { display: block !important; }
body.mu237.tab-piano #wave-explore { display: none !important; }
body.mu237.tab-score #notes-pane { display: block !important; }
body.mu237.tab-score.is-both #drums-pane { display: flex !important; flex-direction: column; min-height: 0; }
body.mu237.tab-score.is-both #mix-details { display: none !important; }
body.mu237.tab-score.is-both .work {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; align-items: start;
}
body.mu237.tab-band #band-pane { display: block !important; }
body.mu237.tab-viz #lights-pane, body.mu237.tab-viz .out, body.mu237.tab-viz #sound-pane, body.mu237.tab-viz #notes-pane { display: block !important; }
body.mu237.tab-viz #notes-pane > :not(#song-more) { display: none !important; }
body.mu237.tab-viz #song-more > details { display: none !important; }
body.mu237.tab-viz #song-more > details:has(#viz-picks),
body.mu237.tab-viz #song-more > details:has(#viz-picks) > * { display: block !important; }
body.mu237.tab-viz #viz-use, body.mu237.tab-viz #sound-notes { display: none !important; }
body.mu237 .tile-grid, body.mu237 #styles, body.mu237 #ode-slot, body.mu237 #gestures, body.mu237 #band-loops {
  display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 0.35rem;
}
body.mu237 .tile-grid .btn, body.mu237 #styles .btn, body.mu237 #ode-slot .btn { min-height: 44px; min-width: 44px; }
@media (max-width: 700px) {
  body.mu237 .tile-grid, body.mu237 #styles { grid-template-columns: repeat(3, minmax(44px, 1fr)); }
  body.mu237 { --player: 112px; }
  body.mu237 .transport { max-height: 112px; }
}
@media (max-width: 699px) and (orientation: portrait) {
  body.mu237 { --rail: 0px; --tabs: 52px; --player: 112px; }
  body.mu237 .side { top: var(--bar); left: 0; right: 0; bottom: auto; width: auto; height: 52px; border-right: 0; border-bottom: 1px solid var(--border); overflow: hidden; }
  body.mu237 #dock-left { display: grid; grid-template-columns: repeat(8, minmax(44px, 1fr)); width: 100%; }
  body.mu237 #dock-left .tab { width: auto; padding: 0; justify-content: center; }
  body.mu237 #dock-left .tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.mu237 { --rail: 96px; --player: 64px; --tabs: 0px; }
  body.mu237 #dock-left { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
  body.mu237 #dock-left .tab { padding: 0; justify-content: center; }
  body.mu237 #dock-left .tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
body.mu237 .transport .cover { width: 40px; height: 40px; min-width: 40px; }
body.mu237 .transport .songbar-copy { flex: 1 1 8rem; min-width: 0; max-width: 16rem; }
body.mu237 .transport .songbar-copy strong, body.mu237 .transport #play-pos,
body.mu237 .transport .tempo, body.mu237 .transport .tempo b, body.mu237 #tempo-read { font-size: 14px !important; line-height: 1.2; }
body.mu237 .transport .songbar-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
body.mu237 .transport .play, body.mu237 .transport .btn, body.mu237 .transport .tempo { min-height: 44px; max-height: 48px; }
body.mu237 .transport .tempo input { min-height: 32px; height: 32px; }
body.mu237 #show-btn { display: inline-flex !important; align-items: center; gap: 0.25rem; }
body.mu237 #show-btn svg { width: 18px; height: 18px; }
body.mu237 .perform-exit {
  position: fixed; z-index: 60; top: calc(var(--bar) + 6px); inset-inline-start: 8px;
  min-width: 44px; min-height: 44px; padding: 0 0.7rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--elevated); color: var(--text); font-size: 14px; font-weight: 800;
}
body.mu237 .perform-exit[hidden] { display: none !important; }
body.mu237 .desktop-site {
  position: fixed; z-index: 70; left: 8px; right: 8px; top: 56px; display: flex; gap: 0.5rem; align-items: center;
  padding: 0.5rem 0.7rem; background: #10203f; color: var(--text); border: 1px solid #22d3ee; border-radius: 10px;
}
body.mu237 .desktop-site[hidden] { display: none !important; }
body.mu237 .desktop-site p { margin: 0; font-size: 14px; }
body.mu237 .desktop-site button { min-width: 44px; min-height: 44px; }
body.mu237 .drum-row b, body.mu237 .beat-line, body.mu237 .family, body.mu237 .shelf,
body.mu237 .hint, body.mu237 .kicker, body.mu237 .drawer h2, body.mu237 .song-row span, body.mu237 .do-card span { font-size: 14px !important; }
body.mu237 :where(.desk, .home, .library, .make, .drawer, .transport, .side) :where(p, span, b, label, button, summary, h1, h2, a, li, strong, em) { font-size: 14px; }
body.mu237 .pen { display: grid !important; }
body.mu237 .pen .btn.on, body.mu237 .pen .btn[aria-pressed="true"] {
  background: var(--active) !important; color: var(--accent-fg) !important; box-shadow: none !important;
}
body.mu237 .pen .btn.on::after, body.mu237 .pen .btn[aria-pressed="true"]::after { content: " ✓"; }
body.mu237 .note-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; border-radius: 8px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; }
body.mu237 .partial-row { display: flex; gap: 0.35rem; align-items: center; }
body.mu237 .partial-row .pen { flex: 1; }
body.mu237 .avatar { width: 140px; height: 170px; position: relative; transform: none !important; }
body.mu237 .avatar .head { position: absolute; left: 48px; top: 8px; width: 40px; height: 40px; border-radius: 50%; background: #f3d2b3; }
body.mu237 .avatar .body { position: absolute; left: 50px; top: 50px; width: 36px; height: 46px; border-radius: 14px; background: #1d4ed8; }
body.mu237 .avatar .arm { position: absolute; left: 78px; top: 58px; width: 36px; height: 8px; border-radius: 8px; background: #f3d2b3; transform-origin: left center; transform: rotate(-8deg); }
body.mu237 .avatar .tip { position: absolute; right: -4px; top: -2px; width: 8px; height: 12px; background: #22d3ee; border-radius: 2px; }
body.mu237 .avatar.pat2 .arm { animation: mu-pat2 1.2s linear infinite; }
body.mu237 .avatar.pat3 .arm { animation: mu-pat3 1.6s linear infinite; }
body.mu237 .avatar.pat4 .arm { animation: mu-pat4 2s linear infinite; }
body.mu237 .avatar.cue .arm { animation: mu-cue 0.6s linear infinite; }
body.mu237 .avatar.cresc { box-shadow: 0 0 18px #22d3ee; }
body.mu237 .avatar.cut .arm { transform: rotate(16deg); }
body.mu237 .avatar.fade { box-shadow: 0 0 6px #16324f; }
body.mu237 .avatar.bow .arm { transform: rotate(-36deg); }
body.mu237 .avatar.member .arm { transform: rotate(-6deg); }
body.mu237 .avatar.member.loop-on[data-loop="sticks"] .arm { animation: mu-pat2 0.5s linear infinite; }
body.mu237 .avatar.member.loop-on[data-loop="bowing"] .arm { animation: mu-pat4 1.4s linear infinite; }
body.mu237 .avatar.member.loop-on[data-loop="keys"] .arm { animation: mu-cue 0.4s linear infinite; }
body.mu237 .avatar.member.loop-on[data-loop="horn"] .arm { transform: rotate(-28deg); }
body.mu237 .band-cast { display: flex; gap: 0.4rem; justify-content: center; }
body.mu237 .dyn-read { margin: 0; font-size: 14px; font-weight: 800; color: #22d3ee; }
@keyframes mu-pat2 { 0% { transform: rotate(16deg); } 50% { transform: rotate(-40deg); } 100% { transform: rotate(16deg); } }
@keyframes mu-pat3 { 0% { transform: rotate(16deg); } 33% { transform: rotate(-8deg); } 66% { transform: rotate(-40deg); } 100% { transform: rotate(16deg); } }
@keyframes mu-pat4 { 0% { transform: rotate(16deg); } 25% { transform: rotate(4deg); } 50% { transform: rotate(-16deg); } 75% { transform: rotate(-40deg); } 100% { transform: rotate(16deg); } }
@keyframes mu-cue { 0% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } 100% { transform: rotate(-12deg); } }
body.mu237 .tap-tiles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
body.mu237 .tap-tiles .btn { min-height: 44px; }
html[data-kp-contrast="1"] body.mu237 .pen .btn.on,
html[data-kp-contrast="1"] body.mu237 #dock-left .tab.on { background: #ffe14a !important; color: #000 !important; }
html, body.mu237 { overflow-x: hidden; max-width: 100%; }
body.mu237 #drums { max-width: 100%; overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { body.mu237 .avatar .arm { animation: none !important; } }
body.mu237 .work { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body.mu237.tab-tap #drums-pane { flex: 1 1 auto; min-height: 0; overflow: hidden; max-height: 100%; }
body.mu237.tab-tap #drums { flex: 1 1 auto; min-height: 0; overflow: auto; max-height: 100%; }
body.mu237.tab-viz .stage-wrap, body.mu237.tab-tap .stage-wrap { position: relative; overflow: hidden; }
body.mu237.tab-viz .out { min-height: 160px; }
body.mu237.tab-viz .stage-wrap { height: 180px; }
body.mu237.tab-score.is-both #notes-pane,
body.mu237.tab-score.is-both #drums-pane { min-height: 0; max-height: 100%; overflow: auto; }
body.mu237.tab-score .staff-wrap { min-height: 0 !important; max-height: 40vh; overflow: hidden; }
body.mu237.tab-tap #drums-pane { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; max-height: 100% !important; }
body.mu237.tab-tap #drums { flex: 1 1 auto !important; min-height: 0 !important; max-height: 100% !important; overflow: auto !important; height: auto !important; }
body.mu237 .desk > .work { height: 100%; }
body.mu237 .desk {
  position: fixed !important;
  top: calc(var(--bar) + var(--tabs)) !important;
  bottom: var(--player) !important;
  left: var(--rail) !important;
  right: 0 !important;
  height: auto !important;
  max-height: none !important;
}
body.mu237 .transport,
body.mu237.playing:not(.show) .transport,
body.mu237.is-beat:not(.show) .transport {
  position: fixed !important;
  left: var(--rail) !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  height: var(--player) !important;
  max-height: var(--player) !important;
  overflow: hidden !important;
}
body.mu237.tab-tap #drums {
  max-height: calc(100dvh - var(--bar) - var(--tabs) - var(--player) - 150px) !important;
}
@media (min-width: 700px) {
  body.mu237 .transport { flex-wrap: nowrap !important; height: 64px !important; max-height: 64px !important; }
}
body.mu237 #dock-left .tab { height: 44px !important; max-height: 44px !important; min-height: 44px !important; flex: 0 0 44px !important; }

/* MU 2.35.8 — tabs stay on screen. The old drawer slide does not own the rail. */
body.mu237 .side,
body.mu237.menu-open .side {
  transform: none !important;
}
body.mu237 #menu-btn {
  position: fixed !important;
  top: 4px;
  left: 4px;
  right: auto;
  z-index: 30;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}
html[dir="rtl"] body.mu237 #menu-btn { left: 4px; right: auto; }
html[dir="rtl"] body.mu237 .side {
  left: auto !important;
  right: 0 !important;
  border-right: 0 !important;
  border-left: 1px solid var(--border);
}
html[dir="rtl"] body.mu237 .desk,
html[dir="rtl"] body.mu237 .transport,
html[dir="rtl"] body.mu237.playing:not(.show) .transport {
  left: 0 !important;
  right: var(--rail) !important;
}
html[dir="rtl"] body.mu237 .keys,
html[dir="rtl"] body.mu237 #sound-notes,
html[dir="rtl"] body.mu237 #drums,
html[dir="rtl"] body.mu237 .staff-wrap {
  direction: ltr !important;
}
@media (max-width: 699px) and (orientation: portrait) {
  body.mu237 { --rail: 0px; --tabs: 52px; }
  body.mu237 .side,
  body.mu237.menu-open .side {
    transform: none !important;
    top: var(--bar) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 52px !important;
    max-height: 52px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-right: 0 !important;
  }
  body.mu237 #dock-left {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body.mu237 #dock-left .tab {
    min-width: 44px;
    min-height: 44px;
    height: 52px !important;
    max-height: 52px !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    justify-content: center;
    padding: 0 !important;
  }
  html[dir="rtl"] body.mu237 .side { left: 0 !important; right: 0 !important; }
  html[dir="rtl"] body.mu237 #dock-left { direction: rtl; }
  html[dir="rtl"] body.mu237 .desk,
  html[dir="rtl"] body.mu237 .transport { left: 0 !important; right: 0 !important; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.mu237 { --rail: 96px; --tabs: 0px; }
  body.mu237 .side,
  body.mu237.menu-open .side {
    transform: none !important;
    top: var(--bar) !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 96px !important;
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
    padding: 0 !important;
  }
  body.mu237 #dock-left {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: minmax(44px, 1fr);
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body.mu237 #dock-left .tab {
    min-width: 44px;
    min-height: 44px;
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
  }
  html[dir="rtl"] body.mu237 .side {
    left: auto !important;
    right: 0 !important;
  }
}
body.mu237 #ode-slot:empty { display: none !important; }
body.mu237 #clear-song,
body.mu237 #undo-song { min-width: 44px; min-height: 44px; }
body.mu237 .undo-toast {
  position: fixed;
  z-index: 40;
  left: 8px;
  right: 8px;
  bottom: calc(var(--player) + 8px);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  background: #10203f;
  color: var(--text);
  border: 1px solid #22d3ee;
  border-radius: 10px;
  font-size: 14px;
}
body.mu237 .undo-toast[hidden] { display: none !important; }
html, body.mu237 { overflow-x: hidden !important; }

/* MU 2.35.8 — the menu does not cover the tabs. ☰ opens it. */
body.mu237 .drawer { display: none !important; }
body.mu237.menu-open .drawer {
  display: block !important;
  position: fixed !important;
  z-index: 27 !important;
  top: calc(var(--bar) + var(--tabs)) !important;
  left: var(--rail) !important;
  right: 0 !important;
  bottom: var(--player) !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  transform: none !important;
  background: var(--panel) !important;
}
body.mu237.is-home.menu-open #dock-left,
body.mu237.is-make.menu-open #dock-left,
body.mu237.is-library.menu-open #dock-left,
body.mu237 #dock-left { display: grid !important; }
body.mu237.is-home.menu-open .side,
body.mu237.is-make.menu-open .side,
body.mu237.is-library.menu-open .side {
  display: flex !important;
  position: fixed !important;
  transform: none !important;
  width: var(--rail) !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: var(--bg) !important;
  z-index: 32 !important;
}
body.mu237 #dock-left .tab { position: relative; z-index: 33; }
@media (max-width: 699px) and (orientation: portrait) {
  body.mu237.is-home.menu-open .side,
  body.mu237.is-make.menu-open .side,
  body.mu237.is-library.menu-open .side {
    top: var(--bar) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 52px !important;
  }
  body.mu237.menu-open .drawer { left: 0 !important; top: calc(var(--bar) + 52px) !important; }
}
html[dir="rtl"] body.mu237.menu-open .drawer { left: 0 !important; right: var(--rail) !important; }

/* MU 2.35.9 — Exit only in Perform, Viz stage, Score + drums desk */
#perform-exit,
body.mu237 .perform-exit { display: none !important; }
body.mu237.show .perform-exit:not([hidden]) {
  display: inline-flex !important;
  position: absolute;
  z-index: 6;
  top: 8px;
  inset-inline-start: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid #fff8ea;
  background: #10203f;
  color: #fff8ea;
  font-size: 14px;
  font-weight: 800;
}
body.mu237 .perform-exit .mu-exit { width: 18px; height: 18px; }
body.mu237.show .stage-wrap { position: relative !important; }
body.mu237.tab-viz .desk { display: flex !important; flex-direction: column !important; }
body.mu237.tab-viz .out {
  display: flex !important;
  flex: 1 1 60% !important;
  min-height: 60% !important;
  order: -1;
  height: auto !important;
  max-height: none !important;
}
body.mu237.tab-viz .stage-wrap,
body.mu237.tab-viz canvas#viz {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 60% !important;
  flex: 1 1 auto !important;
  max-height: none !important;
}
body.mu237.tab-viz .work {
  flex: 0 1 40% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
body.mu237.tab-viz #notes-pane,
body.mu237.tab-viz #song-more,
body.mu237.tab-viz #sound-notes { display: none !important; }
body.mu237.tab-viz #lights-pane,
body.mu237.tab-viz #wave-explore,
body.mu237.tab-viz #wave-explore > * { display: block !important; }
body.mu237 #scenes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  gap: 0.4rem;
  border: 0 !important;
}
body.mu237 #scenes .btn,
body.mu237 .change-tiles .btn {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
}
body.mu237 #scenes .btn canvas,
body.mu237 .change-tiles .btn canvas { width: 100%; height: 64px; display: block; }
body.mu237 #scenes .tick,
body.mu237 .change-tiles .tick {
  position: absolute;
  top: 4px;
  inset-inline-end: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #041018;
  background: #22d3ee;
  border-radius: 8px;
  min-width: 22px;
  text-align: center;
}
body.mu237.tab-viz #lights-pane .stack { display: none !important; }
body.mu237.tab-score .work,
body.mu237.tab-score.is-both .work {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  min-height: 0;
  overflow: auto;
}
body.mu237.tab-score #notes-pane,
body.mu237.tab-score.is-both #notes-pane { width: 100% !important; max-width: none !important; overflow: visible !important; }
body.mu237.tab-score .staff-wrap,
body.mu237.tab-score.is-both .staff-wrap {
  width: 100% !important;
  max-width: none !important;
  max-height: 40% !important;
  overflow: hidden !important;
}
body.mu237.tab-score .note-row,
body.mu237.tab-score #inks,
body.mu237.tab-score #pen {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}
body.mu237.tab-score #inks .btn,
body.mu237.tab-score #pen .btn {
  min-width: 44px !important;
  min-height: 44px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
body.mu237.tab-score.is-both #drums-pane {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: auto !important;
}
body.mu237.tab-score.is-both #drums { max-height: none !important; overflow: visible !important; }
body.mu237.show #perform-exit:not([hidden]) {
  display: inline-flex !important;
  position: absolute !important;
  z-index: 6;
  top: 8px;
  inset-inline-start: 8px;
  min-width: 44px;
  min-height: 44px;
}
@media (max-height: 520px) {
  body.mu237.tab-score.is-both #notes-pane,
  body.mu237.tab-score.is-both .staff-wrap { display: block !important; }
}
body.mu237.tab-score #inks .btn,
body.mu237.tab-score #pen .btn { min-width: 44px !important; min-height: 44px !important; flex: 0 0 44px !important; }
body.mu237.tab-score #inks .btn,
body.mu237.tab-score #pen .btn {
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 0.7rem !important;
  overflow: visible !important;
}
body.mu237.tab-score.is-both #drums {
  max-height: calc(100dvh - var(--bar) - var(--tabs) - var(--player) - 180px) !important;
  overflow: auto !important;
}
@media (orientation: landscape) and (max-height: 500px) {
  body.mu237.tab-score.is-both #drums {
    max-height: 88px !important;
    overflow: auto !important;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  body.mu237.tab-score.is-both #drums-pane { padding-bottom: 8px !important; }
  body.mu237.tab-score.is-both #drums {
    max-height: 64px !important;
    overflow: auto !important;
  }
}
body.mu237.tab-score.is-both .work { height: 100% !important; overflow: hidden !important; }
body.mu237.tab-score.is-both #notes-pane { flex: 1 1 auto !important; min-height: 0 !important; overflow: auto !important; }
body.mu237.tab-score.is-both #drums-pane { flex: 0 0 88px !important; min-height: 72px !important; max-height: 88px !important; overflow: auto !important; }
body.mu237.tab-score.is-both #drums { flex: 1 1 auto !important; min-height: 64px !important; height: auto !important; max-height: 80px !important; overflow: auto !important; }
@media (orientation: landscape) and (max-height: 520px) {
  body.mu237.tab-score.is-both .work { position: relative !important; }
  body.mu237.tab-score.is-both #drums-pane {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 72px !important;
    max-height: 72px !important;
    z-index: 3;
    background: var(--bg);
  }
  body.mu237.tab-score.is-both #notes-pane { padding-bottom: 80px !important; }
}
@media (orientation: landscape) and (max-height: 520px) {
  body.mu237.tab-score.is-both #drums-pane {
    position: fixed !important;
    left: var(--rail) !important;
    right: 0 !important;
    bottom: var(--player) !important;
    top: auto !important;
    height: 72px !important;
    max-height: 72px !important;
    z-index: 25;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  body.mu237.tab-score.is-both #drums-pane { overflow: hidden !important; }
  body.mu237.tab-score.is-both #drums {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: auto !important;
  }
}

/* MU 2.35.9 — drums stay in the desk box, above the player */
body.mu237.tab-score.is-both #drums-pane > :not(#drums) { display: none !important; }
body.mu237.tab-score.is-both .desk {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
body.mu237.tab-score.is-both .work {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}
body.mu237.tab-score.is-both #notes-pane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 62% !important;
  overflow: auto !important;
  width: 100% !important;
}
body.mu237.tab-score.is-both .staff-wrap {
  width: 100% !important;
  max-width: none !important;
  max-height: 40% !important;
}
body.mu237.tab-score.is-both #drums-pane {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 1 1 36% !important;
  width: 100% !important;
  min-height: 72px !important;
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
  z-index: 2;
  background: var(--bg, #07111f);
}
body.mu237.tab-score.is-both #drums {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin: 0 !important;
}
body.mu237.tab-viz .out { flex: 1 1 62% !important; min-height: 62% !important; }
body.mu237.tab-viz .stage-wrap,
body.mu237.tab-viz canvas#viz { min-height: 62% !important; }

/* MU 2.35.9 — Perform stage is on screen, Exit sits in its header */
body.mu237.show .side,
body.mu237.show .tabs,
body.mu237.show .menu-btn { display: none !important; }
body.mu237.show #home,
body.mu237.show .home { display: none !important; }
body.mu237.show .out { z-index: 80 !important; }
body.mu237.show .out {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 60 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: calc(0.6rem + env(safe-area-inset-top)) 0.8rem calc(0.55rem + env(safe-area-inset-bottom)) !important;
  background: #050814 !important;
  flex-direction: column !important;
}
body.mu237.show .stage-wrap {
  display: flex !important;
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 180px !important;
  overflow: hidden !important;
}
body.mu237.show #perform-exit:not([hidden]) {
  display: inline-flex !important;
  position: fixed !important;
  z-index: 70 !important;
  top: calc(var(--bar, 48px) + 8px) !important;
  inset-inline-start: 12px !important;
  width: auto !important;
  height: auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
}

/* MU 2.35.10 — Mix opens on the desk. Band shows one list and the five notes. */
body.mu237.tab-mix #mix-details {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
}
body.mu237.tab-mix #mix-details > summary { display: none !important; }
body.mu237.tab-mix #mix-pane {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  content-visibility: visible !important;
}
body.mu237.tab-mix #mix {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}
body.mu237.tab-mix #mix label,
body.mu237.tab-mix #mix-pane > label.tempo {
  display: grid !important;
  grid-template-columns: 92px 1fr 40px !important;
  align-items: center !important;
  gap: 0.4rem !important;
  min-height: 44px !important;
}
body.mu237.tab-mix #click-btn,
body.mu237.tab-mix #patterns .btn {
  min-width: 44px !important;
  min-height: 44px !important;
}
body.mu237.tab-mix #patterns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
}
body.mu237.tab-band #band-picks {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.4rem !important;
}
body.mu237.tab-band #band-picks[hidden] { display: none !important; }
body.mu237.tab-band #band-picks .btn {
  min-height: 44px !important;
  min-width: 44px !important;
}
body.mu237.tab-band #band-notes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
}
body.mu237.tab-band #band-notes .key {
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 1 1 44px !important;
}
body.mu237.tab-band #band-pane > details:not([open]) > :not(summary) { display: none !important; }

/* MU 2.35.11 — What's new list, and piano keys a finger can hit */
body.mu237.menu-open .drawer {
  z-index: 80 !important;
}
body.mu237.menu-open .scrim {
  z-index: 40 !important;
}
.whats-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-width: 100%;
}
.whats-list li {
  margin: 0 0 0.5rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  max-width: 100%;
}
.whats-list .news-ver {
  font-weight: 800;
  unicode-bidi: isolate;
}
html[dir="rtl"] .whats-list,
html[dir="rtl"] .whats-list li {
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
.piano-octaves {
  display: flex;
  direction: ltr;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 8px;
  max-width: 100%;
}
.piano-octaves .btn,
.piano-octaves #oct-read {
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
.piano-octaves .btn {
  flex: 1 1 44px;
  white-space: normal;
}
.piano-octaves #oct-read {
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--panel);
}
#sound-notes .key.hit {
  background: #22d3ee !important;
  color: #041018 !important;
  filter: none !important;
}
body.mu237.tab-piano .work {
  overflow: auto !important;
  min-height: 0 !important;
}
body.mu237.tab-piano #sound-pane {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px !important;
}
@media (max-width: 480px) {
  body.mu237 #sound-notes,
  body.mu237.is-sound #sound-notes,
  body.mu237.tab-piano #sound-notes {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
  }
  body.mu237 #sound-notes .key,
  body.mu237.is-sound #sound-notes .key,
  body.mu237.tab-piano #sound-notes .key {
    flex: 1 1 44px !important;
    min-width: 44px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 64px !important;
    height: 64px !important;
    box-sizing: border-box !important;
    padding: 0 4px !important;
  }
  body.mu237 .piano-octaves .btn,
  body.mu237 .piano-octaves #oct-read {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}
@media (min-width: 481px) {
  body.mu237.tab-piano #sound-notes,
  body.mu237.is-sound #sound-notes {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
  }
  body.mu237.tab-piano #sound-notes .key,
  body.mu237.is-sound #sound-notes .key {
    flex: 1 1 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* MU 2.35.12 — menu sits above #scrim; sideways piano keys use the free space */
body.mu237.menu-open .side,
body.mu237.is-home.menu-open .side,
body.mu237.is-make.menu-open .side,
body.mu237.is-library.menu-open .side {
  z-index: 85 !important;
  overflow: visible !important;
}
body.mu237.menu-open .drawer {
  z-index: 2 !important;
  pointer-events: auto !important;
}
body.mu237.menu-open .scrim,
body.mu237.is-home.menu-open .scrim,
body.mu237.is-make.menu-open .scrim,
body.mu237.is-library.menu-open .scrim {
  z-index: 40 !important;
}
#menu-langs .btn {
  min-width: 44px;
  min-height: 44px;
  width: 100%;
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 700px) {
  body.mu237.tab-piano .work {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  body.mu237.tab-piano #sound-pane,
  body.mu237.is-sound #sound-pane {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body.mu237.tab-piano #sound-notes,
  body.mu237.is-sound #sound-notes {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    min-height: 64px !important;
  }
  body.mu237.tab-piano #sound-notes .key,
  body.mu237.is-sound #sound-notes .key {
    flex: 1 1 0 !important;
    min-width: 44px !important;
    width: auto !important;
    min-height: 64px !important;
    height: auto !important;
    align-self: stretch !important;
  }
}

/* MU 2.35.13 — desk is the viewport minus the rail; drums stay above the player; player fits */
html, body.mu237 { overflow-x: hidden !important; max-width: 100vw !important; }
body.mu237 .desk {
  left: var(--rail) !important;
  right: 0 !important;
  width: auto !important;
  max-width: calc(100vw - var(--rail)) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
html[dir="rtl"] body.mu237 .desk,
html[dir="rtl"] body.mu237 .transport,
html[dir="rtl"] body.mu237.playing:not(.show) .transport,
html[dir="rtl"] body.mu237.is-beat:not(.show) .transport {
  left: 0 !important;
  right: var(--rail) !important;
  width: auto !important;
  max-width: calc(100vw - var(--rail)) !important;
}
body.mu237.tab-tap .work {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.mu237.tab-tap .out { flex: 0 0 auto !important; max-height: 96px !important; overflow: hidden !important; }
body.mu237.tab-tap .stage-wrap { height: 88px !important; max-height: 88px !important; }
body.mu237.tab-tap #drums-pane {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.mu237.tab-tap .tap-tiles {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 44px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  flex: 0 0 48px !important;
}
body.mu237.tab-tap .tap-tiles > .btn {
  flex: 0 1 auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  white-space: nowrap !important;
  padding: 0 8px !important;
}
body.mu237.tab-tap #stage-toggle { display: none !important; }
body.mu237.tab-tap #kit {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.mu237.tab-tap #kit .keys { display: none !important; }
body.mu237.tab-tap #kit .pad {
  flex: 0 0 auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 6px !important;
  white-space: nowrap !important;
}
body.mu237.tab-tap .style-row,
body.mu237.tab-tap .beat-speak,
body.mu237.tab-tap #step-hint,
body.mu237.tab-tap #sound-banner,
body.mu237.tab-tap #drums-pane > details { display: none !important; }
body.mu237.tab-tap #drums {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: none !important;
}
body.mu237.tab-tap .drum-row {
  display: grid !important;
  grid-template-columns: minmax(2.4rem, 3.2rem) repeat(16, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  box-sizing: border-box !important;
}
body.mu237.tab-tap .drum-row.is-extra { display: none !important; }
body.mu237.tab-tap #drums.is-open .drum-row.is-extra { display: grid !important; }
body.mu237.tab-tap .cell {
  min-width: 0 !important;
  width: auto !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.mu237.tab-tap #more-drums {
  display: inline-flex !important;
  flex: 0 0 44px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
}
@media (max-height: 599px) {
  body.mu237.tab-tap:not(.stage-on) .out { display: none !important; }
  body.mu237.tab-tap.stage-on .out { display: block !important; flex: 0 0 64px !important; max-height: 64px !important; }
  body.mu237.tab-tap.stage-on .stage-wrap,
  body.mu237.tab-tap.stage-on canvas#viz { height: 56px !important; max-height: 56px !important; }
  body.mu237.tab-tap #stage-toggle { display: inline-flex !important; }
}
body.mu237 #save-dock::before { content: "▣"; margin-inline-end: 4px; }
body.mu237 #rec-btn::before { content: "●"; margin-inline-end: 4px; color: #f43f5e; }
body.mu237 #share-btn::before { content: "↗"; margin-inline-end: 4px; }
body.mu237 #clear-song::before { content: "⌫"; margin-inline-end: 4px; }
body.mu237 #more-tools::before { content: "⋯"; margin-inline-end: 4px; }
body.mu237 .transport .btn,
body.mu237 .transport .play,
body.mu237 .transport .tempo {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}
@media (min-width: 700px) {
  body.mu237 { --player: 64px; }
  body.mu237 .transport,
  body.mu237.playing:not(.show) .transport,
  body.mu237.is-beat:not(.show) .transport {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 64px !important;
    max-height: 64px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    container-type: inline-size;
    container-name: player;
  }
  body.mu237 .transport .btn,
  body.mu237 .transport .play {
    flex: 0 0 auto !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 6px !important;
    font-size: 14px !important;
  }
  body.mu237 .transport .tempo {
    flex: 1 1 4.5rem !important;
    min-width: 4.5rem !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  body.mu237 .transport .tempo input { min-height: 44px !important; height: 44px !important; }
}
@container player (max-width: 740px) {
  .btn,
  .play {
    flex: 0 0 44px !important;
    min-width: 44px !important;
    width: 44px !important;
  }
  .tempo {
    flex: 1 1 44px !important;
    min-width: 44px !important;
    width: auto !important;
  }
  .ctl-word,
  #play-word,
  .tempo > span,
  #tempo-read {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }
  #save-dock::before,
  #rec-btn::before,
  #share-btn::before,
  #clear-song::before,
  #more-tools::before { margin-inline-end: 0 !important; }
}
@media (max-width: 1199px) {
  body.mu237 .transport .cover,
  body.mu237 .transport .songbar-copy { display: none !important; }
}
@media (max-width: 699px) {
  body.mu237 { --player: 112px; }
  body.mu237 .transport,
  body.mu237.playing:not(.show) .transport,
  body.mu237.is-beat:not(.show) .transport {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: 48px 48px !important;
    height: 112px !important;
    max-height: 112px !important;
    min-height: 0 !important;
    gap: 4px !important;
    padding: 4px !important;
    overflow: hidden !important;
    align-content: center !important;
    box-sizing: border-box !important;
  }
  body.mu237 .transport .cover,
  body.mu237 .transport .songbar-copy { display: none !important; }
  body.mu237 .transport .ctl-word,
  body.mu237 .transport #play-word,
  body.mu237 .transport .tempo > span,
  body.mu237 .transport #tempo-read {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }
  body.mu237 .transport .btn,
  body.mu237 .transport .play,
  body.mu237 .transport .tempo {
    min-width: 0 !important;
    width: auto !important;
    height: 48px !important;
    min-height: 44px !important;
    max-height: 48px !important;
    padding: 0 !important;
    position: relative !important;
  }
  body.mu237 .transport .tempo input { width: 100% !important; min-width: 0 !important; min-height: 44px !important; height: 44px !important; }
  body.mu237 #save-dock::before,
  body.mu237 #rec-btn::before,
  body.mu237 #share-btn::before,
  body.mu237 #clear-song::before,
  body.mu237 #more-tools::before { margin-inline-end: 0 !important; }
  /* Score is is-both, so the older 3-column bar was winning and sliding Clear and Play under the piano. */
  body.mu237.is-both:not(.show) .transport {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: 48px 48px !important;
  }
}

/* One piano, and a band of chairs */
body.mu237 { --dock: 0px; }
body.mu237.piano-dock-on { --dock: 48px; }
body.mu237.piano-dock-on.piano-dock-open { --dock: 176px; }
body.mu237 .desk,
html[dir="rtl"] body.mu237 .desk {
  bottom: calc(var(--player) + var(--dock)) !important;
}
.piano-dock {
  position: fixed;
  z-index: 25;
  left: var(--rail);
  right: 0;
  bottom: var(--player);
  height: var(--dock);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  direction: ltr;
}
.piano-dock[hidden] { display: none !important; }
html[dir="rtl"] body.mu237 .piano-dock { left: 0; right: var(--rail); }
#piano-dock-toggle {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  align-self: flex-start;
  font-size: 14px;
}
body.mu237:not(.piano-dock-open) #dock-oct,
body.mu237:not(.piano-dock-open) #dock-keys { display: none !important; }
.piano-board {
  position: relative;
  display: block !important;
  height: 120px !important;
  min-height: 120px !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  direction: ltr !important;
  touch-action: none;
  background: var(--bg);
  border-radius: 10px;
}
.piano-whites {
  display: flex;
  height: 100%;
  min-width: 100%;
  gap: 2px;
  direction: ltr;
}
.pkey {
  border: 0;
  font: 800 14px/1 var(--kp-font), Outfit, system-ui, sans-serif;
  touch-action: none;
  box-sizing: border-box;
}
.pkey.white {
  flex: 1 1 44px;
  min-width: 44px;
  height: 100%;
  min-height: 64px;
  background: var(--key-white);
  color: var(--key-ink);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 0 0 1px var(--key-edge);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 6px;
}
.pkey.white.hit { background: var(--active); color: var(--accent-fg); }
.piano-blacks {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  pointer-events: none;
}
.pkey.black {
  position: absolute;
  top: 0;
  width: 44px;
  height: 100%;
  min-height: 44px;
  margin-left: -22px;
  pointer-events: auto;
  background: var(--key-black);
  color: var(--key-black-ink);
  border-radius: 0 0 6px 6px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.pkey.black.hit { background: #0e7490; }
.chair-stage {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  min-height: 120px;
  padding: 8px 4px 4px;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.chair {
  flex: 1 1 44px;
  min-width: 44px;
  max-width: 92px;
  min-height: 72px;
  border: 2px solid #1a140c;
  border-radius: 12px 12px 8px 8px;
  background: #10203f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px;
}
.chair:nth-child(1), .chair:nth-child(8) { transform: translateY(18px); }
.chair:nth-child(2), .chair:nth-child(7) { transform: translateY(8px); }
.chair svg { width: 28px; height: 28px; }
.chair-card {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.pic-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pic-row .btn { min-width: 44px; min-height: 44px; font-size: 14px; }
.pic-row .btn.on { outline: 3px solid #22d3ee; }
@media (max-width: 699px) and (orientation: portrait) {
  .chair-stage {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    align-items: stretch;
  }
  .chair { transform: none !important; max-width: none; min-height: 64px; }
}
@media (max-height: 520px) {
  .chair { min-height: 44px; height: 48px; }
  .chair svg { width: 18px; height: 18px; }
  .chair-stage { min-height: 0; }
}
body.mu237.tab-piano #sound-notes,
body.mu237.is-sound #sound-notes {
  display: block !important;
  height: 128px !important;
  min-height: 128px !important;
  grid-template-columns: none !important;
}
body.mu237 #band-picks.chair-stage { display: flex !important; }
body.mu237 #band-picks.chair-stage[hidden] { display: none !important; }


/* MU 2.35.14 — a closed Arabic or Dari menu is fully off the screen */
html[dir="rtl"] body.mu237:not(.menu-open) .drawer {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  right: 0 !important;
  width: min(22rem, 88vw) !important;
  max-width: 88vw !important;
  height: auto !important;
  margin: 0 !important;
  transform: translateX(105%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
html[dir="rtl"] body.mu237.menu-open .drawer {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  left: 0 !important;
  right: var(--rail) !important;
  width: auto !important;
  overflow: auto !important;
}

/* Doorway: grid first, 88px pads, one bright Play */
body.mu237 .tw-app-bar { display: none !important; }
body.mu237 #dock-left .tab {
  min-height: 56px;
  height: 56px;
  max-height: none;
  flex: 0 0 56px;
  font-size: 16px;
}
body.mu237 #dock-left .tab.on,
body.mu237 #dock-left .tab[aria-pressed="true"] {
  outline: 3px solid #041018;
  box-shadow: inset 0 0 0 3px #041018;
}
.rail-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 6px 2px 0;
  font-size: 14px;
  font-weight: 800;
  color: #67e8f9;
}
.rail-next, #rail-perform {
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
  font-weight: 800;
}
.tool-line {
  margin: 0;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 800;
}
.tap-write {
  min-height: 64px;
  width: 100%;
  font-size: 22px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  background: #22d3ee;
  color: #041018;
}
.tap-pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 8px;
  margin: 8px 0;
}
.tap-pads .pad {
  min-width: 88px;
  min-height: 88px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
  border: 3px solid transparent;
  background: #10203f;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.tap-pads .pad.guide { outline: 4px solid #22d3ee; background: #0e7490; }
.tap-pads .pad.lit { background: #22d3ee; color: #041018; }
.count-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.count-in b { font-size: 48px; line-height: 1; }
.count-dot { width: 28px; height: 28px; border-radius: 50%; background: #16324f; display: inline-block; }
.count-dot.on { background: #22d3ee; box-shadow: 0 0 16px #22d3ee; }
.playhead-read { margin: 0; font-size: 16px; font-weight: 800; }
.guide-line { margin: 4px 0; font-size: 16px; font-weight: 700; }
.tap-strip { display: grid; gap: 4px; margin: 6px 0; }
.tap-row { display: grid; grid-template-columns: repeat(16, minmax(8px, 1fr)); gap: 2px; }
.tap-dot { height: 14px; border-radius: 3px; background: #16324f; display: block; }
.tap-dot.on { background: #a78bfa; }
.tap-dot.now, .cell.now { outline: 3px solid #22d3ee; }
body.mu237 #play-btn {
  background: #22d3ee !important;
  color: #041018 !important;
  box-shadow: 0 0 0 3px #22d3ee;
}
@media (prefers-reduced-motion: reduce) {
  .count-dot.on { box-shadow: none; outline: 3px solid #22d3ee; }
}
@media (max-width: 699px) and (orientation: portrait) {
  .rail-group, #rail-perform { display: none !important; }
  .tap-pads { grid-template-columns: repeat(2, minmax(88px, 1fr)); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .tap-pads .pad { min-height: 88px; }
  .piano-dock { position: fixed; }
}

@media (max-width: 699px) and (orientation: portrait) {
  body.mu237 #band-picks.chair-stage {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }
}
@media (max-width: 699px) and (orientation: portrait) {
  html[dir="rtl"] body.mu237 .piano-dock { left: 0; right: 0; }
}

/* MU 2.35.17 — under 500px the 16 steps are two bars of 8, each pad at least 40. */
@media (max-width: 499px) {
  body.mu237.tab-tap #drums.is-stacked {
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body.mu237.tab-tap #drums.is-stacked .bar-label {
    flex: 0 0 auto;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    color: #9fb3c8;
  }
  body.mu237.tab-tap #drums.is-stacked .drum-row {
    grid-template-columns: minmax(0, 1.5rem) repeat(8, minmax(40px, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body.mu237.tab-tap #drums.is-stacked .cell {
    min-width: 40px !important;
    width: auto !important;
    height: 44px !important;
    min-height: 40px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  body.mu237 #saved-line.bad {
    display: block !important;
    position: fixed;
    z-index: 46;
    left: 8px;
    right: 8px;
    bottom: calc(var(--player) + 8px);
  }
}
/* The player clips overflow so the beat grid stays put. More opens upward, so let that card out. */
body.mu237 .transport:has(#more-pop:not([hidden])) {
  overflow: visible !important;
  z-index: 28 !important;
}

/* MU 2.35.20 — the Score staff fits its notes on every screen. Sideways phones keep the 2.35.19 rule. */
body.mu237.tab-score .staff-wrap,
body.mu237.tab-score.is-both .staff-wrap {
  height: auto !important;
  max-height: none !important;
  min-height: 120px !important;
  flex: 0 0 auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* MU 2.35.18 — a sideways phone shows one tab. The piano dock stays off. */
@media (orientation: landscape) and (max-height: 500px) {
  body.mu237 #notes-pane,
  body.mu237 #drums-pane,
  body.mu237 #remix-pane,
  body.mu237 #sound-pane,
  body.mu237 #band-pane,
  body.mu237 #lights-pane { display: none !important; }
  body.mu237.tab-tap #drums-pane { display: flex !important; }
  body.mu237.tab-remix #remix-pane { display: block !important; }
  body.mu237.tab-mix #drums-pane { display: block !important; }
  body.mu237.tab-piano #sound-pane { display: block !important; }
  body.mu237.tab-score #notes-pane { display: block !important; }
  body.mu237.tab-score.is-both #drums-pane { display: flex !important; }
  body.mu237.tab-band #band-pane { display: block !important; }
  body.mu237.tab-viz #lights-pane { display: block !important; }
  body.mu237 #lesson:empty,
  body.mu237 #saved-line:empty,
  body.mu237.tab-tap #more-drums { display: none !important; }
  /* MU 2.35.19 — Score staff fits the notes. The panel scrolls if the phone is short. */
  body.mu237.tab-score .staff-wrap,
  body.mu237.tab-score.is-both .staff-wrap {
    height: auto !important;
    max-height: none !important;
    min-height: 120px !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
  }
  body.mu237.tab-score #notes-pane,
  body.mu237.tab-score.is-both #notes-pane {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }
  body.mu237.tab-score .work,
  body.mu237.tab-score.is-both .work {
    overflow-y: auto !important;
  }
}

/* MU 2.35.21 — calm is the default. Dark mode only swaps these colors. No layout, no player sizes. */
html[data-theme] body,
html[data-theme] body.mu237,
html[data-theme] body.mu237 .desk,
html[data-theme] body.mu237 .side,
html[data-theme] body.mu237 .work {
  background-color: var(--bg);
  color: var(--text);
}
html[data-theme] .kb-bar {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-bottom-color: var(--divider) !important;
}
html[data-theme] .kb-home,
html[data-theme] .kb-help,
html[data-theme] .kb-settings,
html[data-theme] .kb-menu,
html[data-theme] .kb-alias,
html[data-theme] .kb-drawer,
html[data-theme] .kb-drawer a,
html[data-theme] .kb-drawer > button,
html[data-theme] .kb-drawer-langs button {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--btn-line) !important;
}
html[data-theme] body.mu237 .transport,
html[data-theme] body.mu237.playing:not(.show) .transport,
html[data-theme] body.mu237.is-both:not(.show) .transport,
html[data-theme] body.mu237.is-beat:not(.show) .transport {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-top-color: var(--divider) !important;
}
html[data-theme] body.mu237 .transport .btn {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--btn-line) !important;
  box-shadow: none !important;
}
html[data-theme] body.mu237 .transport .play,
html[data-theme] body.mu237 #play-btn {
  background: var(--play-bg) !important;
  color: var(--play-fg) !important;
  border-color: transparent !important;
}
html[data-theme] body.mu237 #dock-left .tab.on,
html[data-theme] body.mu237 #dock-left .tab[aria-pressed="true"],
html[data-theme] body.mu237 .pen .btn.on,
html[data-theme] body.mu237 #inks .btn.on {
  background: var(--active) !important;
  color: var(--accent-fg) !important;
}
html[data-theme] body.mu237 .drawer,
html[data-theme] body.mu237.menu-open .drawer {
  background: var(--bg) !important;
  color: var(--text) !important;
}
html[data-theme] .piano-dock,
html[data-theme] .piano-board {
  background: var(--bg) !important;
  border-top-color: var(--divider) !important;
}
html[data-theme] #piano-dock-toggle,
html[data-theme] .piano-octaves .btn,
html[data-theme] #dock-oct-read {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--btn-line) !important;
  box-shadow: none !important;
}
html[data-theme] .theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  margin: 0.35rem 0 0.15rem;
  color: var(--text);
}
html[data-theme] .theme-switch {
  flex: 0 0 auto;
  width: 64px;
  min-width: 64px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--panel);
  position: relative;
}
html[data-theme] .theme-switch::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--btn-line);
}
html[data-theme] .theme-switch[aria-checked="true"] {
  background: var(--play-bg);
  border-color: var(--play-bg);
}
html[data-theme] .theme-switch[aria-checked="true"]::after {
  left: 32px;
  background: var(--play-fg);
}
html[data-theme] .theme-switch .theme-ico {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 34px;
  width: 20px;
  height: 20px;
  color: var(--text);
  pointer-events: none;
}
html[data-theme="calm"] .theme-switch .theme-sun,
html[data-theme="dark"] .theme-switch .theme-moon { display: none; }
html[data-theme] .hint,
html[data-theme] .songbar-copy span { color: var(--muted); }

/* The song list lives on #home. That id beat the token, so the well stayed navy. */
html[data-theme] body.is-home,
html[data-theme] body.is-make,
html[data-theme] body.is-library,
html[data-theme] #home,
html[data-theme] .home,
html[data-theme] .make,
html[data-theme] .library,
html[data-theme] body.mu237.tab-songs .home,
html[data-theme] body.mu237.tab-songs .make,
html[data-theme] body.mu237.tab-songs .library,
html[data-theme] body.mu237 .desk,
html[data-theme] body.mu237 .work,
html[data-theme] body.mu237 .lab,
html[data-theme] body.mu237 .side {
  background: var(--bg) !important;
  color: var(--text) !important;
}
html[data-theme] .make-beat,
html[data-theme] .my-songs,
html[data-theme] .do-card,
html[data-theme] .lib-song,
html[data-theme] body.mu237 .btn:not(.on):not(.play):not([aria-pressed="true"]) {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--btn-line) !important;
  box-shadow: none !important;
}
html[data-theme] body.mu237 .transport .play,
html[data-theme] body.mu237 #play-btn {
  background: var(--play-bg) !important;
  color: var(--play-fg) !important;
  border-color: transparent !important;
}
html[data-theme] .home h1,
html[data-theme] .how,
html[data-theme] .song-row,
html[data-theme] .song-row strong,
html[data-theme] .shelf-songs .btn,
html[data-theme] .inst-list .btn {
  color: var(--text) !important;
}
html[data-theme] .song-row span,
html[data-theme] .shelf-block h2,
html[data-theme] .home > h2,
html[data-theme] #classics > .shelf,
html[data-theme] .family,
html[data-theme] .hint {
  color: var(--muted) !important;
}
html[data-theme] .family { background: transparent !important; }
html[data-theme] .cover,
html[data-theme] .brand img {
  background: linear-gradient(145deg, var(--play-bg), var(--active)) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme] #viz,
html[data-theme] .wave-view,
html[data-theme] canvas#viz {
  background: var(--panel) !important;
  border: 1px solid var(--btn-line) !important;
  box-shadow: none !important;
}
html[data-theme] .stack select,
html[data-theme] .title-row select {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html[data-theme] .looks .btn.on,
html[data-theme] .keypad .btn.on,
html[data-theme] .pen .btn.on,
html[data-theme] .style-row button.on,
html[data-theme] .cast button.on {
  background: var(--active) !important;
  color: var(--accent-fg) !important;
  border-color: transparent !important;
}
html[data-theme] body.show,
html[data-theme] body.show .out,
html[data-theme] body.mu237.show .out,
html[data-theme] body.show .transport {
  background: var(--bg) !important;
  color: var(--text) !important;
}
html[data-theme] body.show #song-title,
html[data-theme] body.show #feel,
html[data-theme] body.show #now-line { color: var(--text) !important; }
html[data-theme] body.show .col {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--btn-line) !important;
  box-shadow: none !important;
}
html[data-theme] body.mu237 .desktop-site,
html[data-theme] body.mu237 .undo-toast,
html[data-theme] body.mu237.show .perform-exit {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--btn-line) !important;
}
html[data-theme] .chair {
  background: var(--panel) !important;
  border-color: var(--btn-line) !important;
}
html[data-theme] .pkey.white {
  background: var(--key-white) !important;
  color: var(--key-ink) !important;
  box-shadow: inset 0 0 0 1px var(--key-edge) !important;
}
html[data-theme] .pkey.black {
  background: var(--key-black) !important;
  color: var(--key-black-ink) !important;
}
html[data-theme] .staff-wrap {
  background: var(--paper) !important;
  color: var(--ink) !important;
}
html[data-theme] .cell:not(.on) {
  background: var(--panel) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
html[data-theme] .cell.now:not(.on) {
  outline: 2px solid var(--active) !important;
  outline-offset: -2px !important;
}
html[data-theme] .cell.on,
html[data-theme] .cell.on.now {
  background: var(--active) !important;
  color: var(--accent-fg) !important;
}
html[data-theme] .cell.on::after { color: var(--accent-fg) !important; }
html[data-theme] .bar-stack {
  background: var(--panel) !important;
  border-top-color: var(--divider) !important;
}
html[data-theme] body.mu237 {
  --play-bg: #22d3ee;
  --play-fg: #041018;
}
html:not(.tempo-known) #songbar-meta,
html:not(.tempo-known) #tempo-read,
html:not(.tempo-known) #songbar-name {
  visibility: hidden;
}
body.mu237 .transport .songbar-copy {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
body.mu237 .whose { font-size: 14px; font-weight: 800; white-space: nowrap; }
body.mu237 #new-beat {
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 800;
  flex: 0 0 auto;
}
body.mu237 .transport .tempo > span,
body.mu237 .transport #tempo-read {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  font-size: 16px !important;
}
@media (orientation: landscape) and (max-height: 500px) {
  body.mu237.tab-tap .tool-line,
  body.mu237.tab-tap .tap-tiles,
  body.mu237.tab-tap #style-row,
  body.mu237.tab-tap .beat-speak,
  body.mu237.tab-tap #more-drums,
  body.mu237.tab-tap .more-box,
  body.mu237.tab-tap .tap-actions,
  body.mu237.tab-tap #playhead-read { display: none !important; }
  body.mu237.tab-tap #drums-pane {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }
  body.mu237.tab-tap .tap-write { min-height: 44px; height: 44px; font-size: 16px; padding: 0 8px; }
  body.mu237.tab-tap .guide-line { margin: 0; min-height: 22px; flex: 0 0 auto; }
  body.mu237.tab-tap .tap-pads { margin: 4px 0; flex: 0 0 auto; }
  body.mu237.tab-tap .tap-pads .pad { min-height: 88px; height: 88px; }
  body.mu237.tab-tap #tap-strip { flex: 0 0 auto; max-height: 18px; overflow: hidden; }
  body.mu237.tab-tap #drums { display: none !important; }
  body.mu237.tab-tap .desk,
  body.mu237.tab-tap .work { overflow: hidden !important; }
}
@media (max-width: 699px) {
  body.mu237 .transport {
    grid-template-columns: minmax(0, 1.4fr) auto auto auto auto auto !important;
    grid-template-rows: 48px 48px !important;
  }
  body.mu237 .transport .songbar-copy { grid-column: 1 / -1; }
}
body.mu237.tab-mix #drums-pane > #style-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
body.mu237.tab-mix #style-row button {
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
}

