/* A fixed ding with a quiet glow and an impact/echo when struck.
   Only sectors rotate; the face and the common elliptical opening stay put. */
#wheel-dock.is-open #tool-wheel{animation:none;transform:none}
#tool-wheel + .wheel-mode-switch{position:absolute;z-index:4;isolation:isolate;left:50%;top:50%;translate:-50% -50%;width:var(--mode-ding-width,27%);aspect-ratio:1;min-width:44px;min-height:44px;padding:0 7px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#315463;cursor:pointer;font-family:"Avenir Next","Segoe UI",sans-serif;font-size:var(--mode-word-size,16px);font-weight:550;letter-spacing:.02em;line-height:1.1;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.wheel-mode-switch .mode-word-current,.wheel-mode-switch .mode-word-next{grid-area:1/1;position:relative;z-index:2;max-width:100%;white-space:nowrap;pointer-events:none;transition:transform .18s}
.wheel-mode-switch .mode-ding-face,.wheel-mode-switch .mode-ding-impact{position:absolute;inset:var(--mode-ding-inset,13%) 0;border-radius:50%;transform:rotate(var(--mode-ding-tilt,-18deg));pointer-events:none;box-sizing:border-box}
.wheel-mode-switch .mode-ding-face{border:0;background:radial-gradient(ellipse at 38% 30%,#fff 35%,#f0f8fa);box-shadow:inset 0 1px 3px #fff,0 0 8px #bce6ec55;animation:mode-ding-breathe 3.2s ease-in-out infinite}
.wheel-mode-switch .mode-ding-impact{border:2px solid #c9f2f5;opacity:0;box-shadow:0 0 8px #ddfbff;z-index:1}
#tool-wheel + .wheel-mode-switch:focus-visible{outline:none}
#tool-wheel + .wheel-mode-switch:focus-visible .mode-ding-face{outline:2px solid #315463;outline-offset:4px}
@media(hover:hover) and (pointer:fine){#tool-wheel + .wheel-mode-switch:hover .mode-ding-face{animation:none;box-shadow:inset 0 1px 3px white,0 0 18px #bce6ecaa}#tool-wheel + .wheel-mode-switch:hover :is(.mode-word-current,.mode-word-next){transform:translateY(-1px)}}
#tool-wheel + .wheel-mode-switch:active .mode-ding-face{animation:none;background:#e4f2f4;box-shadow:inset 0 2px 5px #4a798c44}
#tool-wheel + .wheel-mode-switch:active :is(.mode-word-current,.mode-word-next){transform:scale(.94)}
.wheel-mode-switch.is-clicked .mode-ding-face{animation:mode-note-strike .64s ease-out}
.wheel-mode-switch.is-clicked .mode-ding-impact{animation:mode-note-wave .68s ease-out both}
.wheel-mode-switch.is-clicked .mode-ding-echo{animation-delay:.11s;animation-duration:.78s;border-width:1px}
.wheel-mode-switch.is-clicked :is(.mode-word-current,.mode-word-next){animation:mode-note-vibrate .44s ease-out}
@keyframes mode-ding-breathe{0%,65%,100%{box-shadow:inset 0 1px 3px #fff,0 0 6px #bce6ec35}80%{box-shadow:inset 0 0 9px #fff,0 0 16px #bce6ec99}}
@keyframes mode-note-strike{0%{background:#dceff2;box-shadow:inset 0 2px 6px #40738466}22%{background:#fff;box-shadow:inset 0 0 12px white,0 0 22px #c8f7ffee}100%{background:#f8fcfd;box-shadow:inset 0 1px 3px #fff,0 0 8px #bce6ec55}}
@keyframes mode-note-wave{0%{opacity:.95;transform:rotate(var(--mode-ding-tilt,-18deg)) scale(.98)}100%{opacity:0;transform:rotate(var(--mode-ding-tilt,-18deg)) scale(1.85)}}
@keyframes mode-note-vibrate{0%{transform:scale(.92)}28%{transform:scale(1.05)}52%{transform:scale(.98)}76%{transform:scale(1.01)}100%{transform:none}}
.mode-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mode-changing #tool-wheel,#tool-wheel[aria-busy=true]{pointer-events:none}
#tool-wheel[aria-busy=true] .sector{animation:none!important}
.wheel-mode-switch .mode-word-current{opacity:calc(1 - var(--mode-word-progress,0))}
.wheel-mode-switch .mode-word-next{opacity:var(--mode-word-progress,0)}
body[data-usage-mode=easy] #wheel-labels,body[data-usage-mode=kids] #wheel-labels{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-usage-mode=kids] #wheel-labels .wheel-label{min-height:64px;font-size:1.1rem}
/* Easy: retain the existing editing/playing data, show essential controls. */
body[data-usage-mode=easy] :is(#maker-open,#dance-add-handpan,[data-add-saved],#inspire-rhythm-console,[data-inspire-source=rhythm],#note-editor .zone-number-settings,#note-editor .editor-controls,#note-editor .appearance-controls,#note-color,#reset-note-size,.transpose-row,#scale-fit-options,#extend-scale,#discover-articulation-field,#discover-stairs-field,#discover-route-hint,.chord-scene-scope,.rotation-controls,#open-notation-sheet){display:none!important}
body[data-usage-mode=easy] .check-row:has(#extend-scale){display:none!important}
body[data-usage-mode=easy] #discover-direction option[value^=stairs]{display:none}
body[data-usage-mode=easy] .inspire-source-tabs{grid-template-columns:1fr}
body[data-usage-mode=easy] #notes-section .section-label small{display:none}
body[data-usage-mode=easy] #note-editor{padding-top:8px}
body[data-usage-mode=easy] .create-choices button{min-height:60px}
/* Kids: every alternate entry into files, editing and advanced tools is hidden. */
body[data-usage-mode=kids] :is(#maker-open,#tuner-open,#instrument-tools-toggle,#instrument-tools,#create-panel,#saved-panel,#inspire-panel,#dance-panel,#stage-panel,#dance-source-tabs,#touch-recorder,#play-welcome,#play-panel,#player-drawer,.player-grip,#fullscreen-settings,.workspace-edge-controls,[data-music-settings],#music-floating .transport-caption,#music-floating [data-music-rewind],#music-floating [data-touch-record],#music-floating .slap-controls,#music-floating [data-reset-handpan],#help-button,.pan-handle){display:none!important}
/* Three bounded columns: mobile button width:100% must apply to a cell,
   never to a flex row. Keep one safe inset inside the installed-app dock. */
body[data-usage-mode=kids] #instrument-view #artist-transport-group{left:50%!important;right:auto!important;top:auto!important;bottom:var(--phone-bottom,12px)!important;transform:translateX(-50%)!important;width:360px!important;max-width:calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))!important;min-width:0;display:flex;flex-direction:column!important}
body[data-usage-mode=kids] #instrument-view #artist-transport-group #music-floating{box-sizing:border-box;display:grid!important;grid-template-areas:"play tempo volume"!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 54px!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:10px!important;gap:8px!important}
body[data-usage-mode=kids] #instrument-view #artist-transport-group #music-floating[hidden]{display:none!important}
body[data-usage-mode=kids] #instrument-view #artist-transport-group #music-floating button{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;height:58px!important;min-height:58px!important;margin:0!important;padding:6px!important}
body[data-usage-mode=kids] #instrument-view #artist-transport-group #music-floating [data-music-play]{grid-area:play;font-size:1rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-usage-mode=kids] #instrument-view #music-floating [data-music-play]::before{content:none!important}
body[data-usage-mode=kids] #instrument-view #music-floating [data-music-tempo]{grid-area:tempo}
body[data-usage-mode=kids] #instrument-view #music-floating .slap-controls{display:contents!important}
body[data-usage-mode=kids] #instrument-view #music-floating [data-volume-controls]{grid-area:volume}
@media(max-width:600px),(max-width:950px) and (max-height:500px){
 html[data-installed=true] body[data-usage-mode=kids] #instrument-view #artist-transport-group{bottom:0!important}
 html[data-installed=true] body[data-usage-mode=kids] #instrument-view #artist-transport-group #music-floating{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
}
/* A simple family → variant chooser, using the same catalog as Create. */
#kids-scales{position:fixed;z-index:95;top:max(88px,calc(env(safe-area-inset-top) + 78px));right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:min(430px,calc(100vw - 28px));padding:20px;border:1px solid #e0e7ed;border-radius:25px;background:#fffffffa;overflow:auto;overscroll-behavior:contain;box-shadow:0 14px 45px #334b7120}
#kids-scales[hidden]{display:none}
#kids-scales header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#kids-scales h2{margin:0;font-size:1.25rem}
#kids-scales>input{width:100%;margin-bottom:14px;min-height:48px}
#kids-scales .scale-browser-list{max-height:min(50dvh,550px)}
#kids-scales .scale-browser-list button{min-height:62px;font-size:1rem}
#kids-scales .scale-browser-list [data-scale-choose]{background:#f68b36;color:#fff;border-color:#ed802c;font-size:13px}
@media(max-width:600px){#kids-scales{top:max(82px,calc(env(safe-area-inset-top) + 70px));padding:16px}#kids-scales .scale-browser-list{max-height:calc(100dvh - 330px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.wheel-mode-switch *{animation:none!important;transition:none!important}.wheel-mode-switch .mode-ding-impact{display:none}}
body[data-usage-mode=easy] #lab-tools{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 38px}
body[data-usage-mode=kids] #lab-tools{grid-template-columns:minmax(0,1fr);max-width:190px;margin-left:auto}
body[data-usage-mode=easy] #lab-tools :is(#metronome-open,#tuner-open),body[data-usage-mode=kids] #lab-tools #metronome-open{overflow-wrap:normal;word-break:normal;min-height:44px}
body[data-usage-mode=kids] #music-floating [data-slap-toggle],body[data-usage-mode=kids] #volume-popup .volume-channel:has(#slap-volume-range){display:none!important}
body[data-usage-mode=easy] #inspire-arps :is([data-slap-toggle],.lab-fields>label:has(#arp-length),[data-reset-handpan]){display:none!important}
body[data-usage-mode=easy] #inspire-arps .lab-fields{grid-template-columns:1fr}

#tool-wheel + .wheel-mode-switch.is-clicked .mode-ding-face{animation:mode-note-strike .64s ease-out}

/* Mode remains visible under Lab when the large wheel is closed. */
#wheel-dock #lab-label{line-height:1.12}
#wheel-dock #lab-label #lab-mode-label{display:block;margin-top:3px;font-size:10px;font-weight:500;line-height:1.1;letter-spacing:.02em;color:#76919e;white-space:nowrap}
@media(min-width:1000px) and (min-height:580px){#wheel-dock #lab-label #lab-mode-label{font-size:11px}}
/* Removable prism trial: facets follow each sector, below the white icons. */
.wheel-prism{pointer-events:none}
.wheel-prism-outline{fill:none;stroke:white;stroke-width:6;stroke-linejoin:round;pointer-events:none}
#tool-wheel .wheel-icon{filter:drop-shadow(0 .6px .5px #24475722)}
