/* Opt-in composer controls: preserve the music engines and illustrated banks. */
.kid-composer .song-row { display: flex; justify-content: center; padding: calc(56px + env(safe-area-inset-top)) 0 0; margin: 0; }
.kid-composer .song-name-input { width: min(100%, 560px); min-height: 48px; border: 0; border-bottom: 2px solid #d8ece3; background: transparent; color: #264e48; font: inherit; font-size: clamp(22px, 3.6vw, 32px); font-weight: 900; text-align: center; }
.kid-composer .kid-compose-library { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.kid-composer .help-btn { min-width: 48px; min-height: 48px; }
.kid-composer:has(.kid-compose-options[open]) .bank-dock { position: static; width: 100%; transform: none; margin-top: 24px; }
.kid-composer .kid-compose-cue { margin: 8px auto 16px; text-align: center; color: #264e48; font-size: 16px; font-weight: 700; }
.kid-composer .kid-compose-primary,
.kid-composer .transport-primary { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kid-composer .transport-btn,
.kid-composer .tool-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; height: auto; min-width: 48px; min-height: 48px; padding: 8px 12px; border-radius: 12px; clip-path: none; box-shadow: none; font: inherit; font-weight: 800; }
.kid-composer .transport-btn { min-height: 64px; min-width: 104px; }
.kid-composer .play-circle { background: #187840; color: #fff; }
.kid-composer .stop-octagon { background: #a93838; color: #fff; }
.kid-composer .tool-icon-btn { color: #294e48; }
.kid-composer .tool-icon-btn.active { background: #176c61; color: #fff; }
.kid-composer .kid-control-label { font-size: 16px; white-space: nowrap; }
.kid-composer .kid-compose-options { width: 100%; max-width: 900px; margin: 0 auto 12px; }
.kid-composer .kid-compose-options > summary { width: fit-content; min-height: 48px; padding: 12px 16px; margin: 0 auto; border-radius: 12px; background: #e4eee9; color: #264e48; font-weight: 800; cursor: pointer; }
.kid-composer .kid-compose-options[open] > summary { margin-bottom: 12px; }
.kid-composer .kid-compose-options .top-ui { display: flex; flex-direction: column; gap: 16px; }
.kid-composer .mode-btn { min-width: 48px; min-height: 48px; }
.kid-composer input[type="range"] { min-height: 48px; }
.kid-composer :is(button, summary, input):focus-visible { outline: 3px solid #195ea0; outline-offset: 3px; }
.kid-composer .settings-ui { flex-wrap: wrap; justify-content: center; }
.kid-composer .settings-popover { position: static; width: 100%; }
.kid-composer .settings-popover .settings { max-width: 100%; }
.kid-composer .library-ui { flex-wrap: wrap; justify-content: center; }
.kid-composer .saved-panel { max-width: calc(100vw - 48px); }
/* Expanded tools must remain reachable instead of clipping in the desktop shell. */
@media screen and (min-width: 901px) {
  html:has(body.kid-composer), body.kid-composer { height: auto; min-height: 100%; overflow: auto; }
  .kid-composer .app { overflow: visible; }
}
@media screen and (max-width: 600px) {
  .kid-composer .song-row { flex-wrap: wrap; }
  .kid-composer .song-name-input { min-width: 0; width: 100%; }
  .kid-composer .transport-primary, .kid-composer .kid-compose-primary { gap: 8px; }
  .kid-composer .transport-btn { min-width: 88px; }
  .kid-composer .settings .setting-row { flex-wrap: wrap; }
}
@media print {
  .kid-composer .kid-compose-primary, .kid-composer .kid-compose-options,
  .kid-composer .kid-compose-cue { display: none !important; }
}
