/* ng-headings v1 2026-11-28 (claude): next-generation headings for the Studio and Rack mirrors. Paint only, no layout change.
h1/h2: an accent sheen sweeps through the ink when a panel opens and again on hover. h3/h4: accent first letter, underline that rises on hover.
Rollback: remove the /__app/ngh.css link in appHead (zakk-apps Worker). */
@property --ngh-p{syntax:"<percentage>";inherits:false;initial-value:100%}
:root{--ngh-acc:var(--c-accent,#ffb340)}
:is(h1,h2):not(.sr-only){background-image:linear-gradient(100deg,currentColor 0 43%,var(--ngh-acc) 50%,currentColor 57% 100%);background-size:280% 100%;background-position:var(--ngh-p) 0;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none;text-wrap:balance;font-kerning:normal;transition:--ngh-p .9s cubic-bezier(.2,.7,.2,1);animation:ngh-in .5s cubic-bezier(.2,.8,.2,1) backwards,ngh-sheen 1.5s .08s cubic-bezier(.3,.6,.2,1) backwards}
:is(h1,h2):not(.sr-only)>*{-webkit-text-fill-color:currentColor}
:is(h1,h2):not(.sr-only):hover,:is(header,section,article,div):hover>:is(h1,h2):not(.sr-only){--ngh-p:0%}
@keyframes ngh-in{from{clip-path:inset(0 100% -20% 0);transform:translateY(.18em)}to{clip-path:inset(0 0 -20% 0);transform:none}}
@keyframes ngh-sheen{from{--ngh-p:100%}to{--ngh-p:0%}}
:is(h3,h4){text-wrap:balance;text-decoration-line:underline;text-decoration-thickness:2px;text-decoration-color:transparent;text-underline-offset:.6em;transition:text-decoration-color .25s,text-underline-offset .3s cubic-bezier(.2,.8,.2,1)}
:is(h3,h4)::first-letter{color:var(--ngh-acc)}
:is(h3,h4):hover,:is(header,section,article,div,li,details,fieldset):hover>:is(h3,h4){text-decoration-color:var(--ngh-acc);text-underline-offset:.32em}
@media (prefers-reduced-motion:reduce){:is(h1,h2):not(.sr-only){animation:none;transition:none}:is(h3,h4){transition:none}}
@media print,(forced-colors:active){:is(h1,h2):not(.sr-only){background-image:none;-webkit-text-fill-color:currentColor;animation:none}}
/* keys v1 2026-11-28 (claude): pill buttons on the Studio and Rack mirrors become hardware keys with motion (owner rule: no pill buttons, no unanimated actions). Toggle switches keep their shape. Rollback: delete from this line to the end of the keys block. */
:is(.ux-chip,.gr-chip,.mode-btn,.ux-fold-btn,.ux-find,.gl-itog,.btn-primary,.gmm-btn,.gmb-btn,.gma-fab,.pfs-btn,.gd-chip,.gsm-sw,.gd-handle,.ux-tbtn,.ux-recfmt,.ux-bpmw,.ux-sync,.gd-b,.sx-pill,.sx-astate),.cats button{border-radius:7px!important;transition:transform .14s cubic-bezier(.2,.8,.2,1),box-shadow .16s,border-color .16s,background-color .16s,color .16s,filter .16s}
@media (hover:hover){:is(.ux-chip,.gr-chip,.mode-btn,.ux-fold-btn,.ux-find,.gl-itog,.btn-primary,.gmm-btn,.gmb-btn,.gma-fab,.pfs-btn,.gd-chip,.gsm-sw,.gd-handle,.ux-tbtn,.ux-recfmt,.ux-sync,.gd-b,.sx-pill,.sx-astate):hover:not(:disabled),.cats button:hover:not(:disabled){box-shadow:0 0 0 1px var(--ngh-acc),0 8px 16px -8px color-mix(in srgb,var(--ngh-acc) 55%,transparent)}}
:is(.ux-chip,.gr-chip,.mode-btn,.ux-fold-btn,.ux-find,.gl-itog,.btn-primary,.gmm-btn,.gmb-btn,.gma-fab,.pfs-btn,.gd-chip,.gsm-sw,.gd-handle,.ux-tbtn,.ux-recfmt,.ux-sync,.gd-b,.sx-pill,.sx-astate):active:not(:disabled),.cats button:active:not(:disabled){filter:brightness(.86);box-shadow:inset 0 2px 5px rgba(0,0,0,.55)}
:is(.ux-chip,.gr-chip,.mode-btn,.ux-fold-btn,.ux-find,.gl-itog,.btn-primary,.gmm-btn,.gmb-btn,.gma-fab,.pfs-btn,.gd-chip,.gsm-sw,.gd-handle,.ux-tbtn,.ux-recfmt,.ux-sync,.gd-b,.sx-pill,.sx-astate):focus-visible,.cats button:focus-visible{outline:2px solid var(--ngh-acc);outline-offset:2px}
@media (prefers-reduced-motion:reduce){:is(.ux-chip,.gr-chip,.mode-btn,.ux-fold-btn,.ux-find,.gl-itog,.btn-primary,.gmm-btn,.gmb-btn,.gma-fab,.pfs-btn,.gd-chip,.gsm-sw,.gd-handle,.ux-tbtn,.ux-recfmt,.ux-bpmw,.ux-sync,.gd-b,.sx-pill,.sx-astate),.cats button{transition:none;transform:none!important}}
/* helpers */
.ngh-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.gma-cred{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.1);opacity:.8}
.gma-cred a{color:inherit}
.gm-framed .gm-credit,.gm-framed .gma-fab,.gm-framed .gma-pan{display:none!important}
/* keys v2 2026-11-29 (claude): every action moves (owner rule: no pill buttons, no unanimated actions). Only transform and filter animate on general controls, so step lights, pads and meters keep switching on the beat. Nothing shrinks or shifts under the pointer, so no click is lost at an edge. The :where() rules carry no specificity, so anything the apps style themselves wins. Rollback: delete from this line to the end-of-block comment. */
:where(button,[role=button],a.btn,#pill a,input[type=button],input[type=submit],summary,select){transition:transform .14s cubic-bezier(.2,.8,.2,1),filter .18s ease}
:where(.btn,.gmp-b,.sx-btn,.cc-btn,.gma-btn,.ngp-b,.chip,.chips>button,#cab-btn,#ork-toggle,#pill a,.pfs-x,.gmp-pload,.ic,.pc-chip,.rg-btn,.mod-open,.harm-chord,.fxh-tile,.ux-more){transition:transform .14s cubic-bezier(.2,.8,.2,1),filter .18s ease,box-shadow .18s ease}
@media (hover:hover){:where(button,[role=button],a.btn,#pill a,input[type=button],input[type=submit]):where(:hover):where(:not(:disabled,[aria-disabled=true],[class*=scrim],[class*=backdrop])){filter:brightness(1.14)}:where(summary,select):where(:hover){filter:brightness(1.12)}:where(.k.w,.key):where(:hover){filter:brightness(.93)}:where(.k.b,.key.black):where(:hover){filter:brightness(1.7)}:where(.btn,.gmp-b,.sx-btn,.cc-btn,.gma-btn,.ngp-b,.chip,.chips>button,#cab-btn,#ork-toggle,#pill a,.pfs-x,.gmp-pload,.ic,.pc-chip,.rg-btn,.mod-open,.harm-chord,.fxh-tile,.ux-more):where(:hover):where(:not(:disabled,[aria-disabled=true],[class*=scrim],[class*=backdrop])){box-shadow:0 0 0 1px var(--ngh-acc),0 8px 16px -8px color-mix(in srgb,var(--ngh-acc) 55%,transparent)}:where(.dm-st,.cell,.ngp-st,.gmp-step,.gml-step):where(:hover){transform:scale(1.06)}}
:where(button,[role=button],a.btn,#pill a,input[type=button],input[type=submit]):where(:active):where(:not(:disabled,[aria-disabled=true],[class*=scrim],[class*=backdrop])){filter:brightness(.84);box-shadow:inset 0 2px 6px rgba(0,0,0,.5);transition-duration:60ms}
:where(.dm-st,.cell,.ngp-st,.gmp-step,.gml-step):where(:active){transform:scale(1.12);filter:brightness(1.3);box-shadow:none}
:where(.pad,.ngp-pad):where(:active){transform:scale(1.03);filter:brightness(1.25);box-shadow:none}
:where(.k,.key):where(:active){transform:translateY(1.5px)}
:where(.k.b,.key.black):where(:active){filter:brightness(1.45)}
button.switch{transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,filter .18s ease}
.chips>button,.pfs-x,#pill a,#cab-btn,#ork-toggle,#apill,.pc-chip{border-radius:7px!important}
@media (prefers-reduced-motion:reduce){:where(button,[role=button],a.btn,#pill a,input[type=button],input[type=submit],summary,select),button.switch{transition:none}:where(.dm-st,.cell,.ngp-st,.gmp-step,.gml-step,.pad,.ngp-pad,.k,.key):where(:hover,:active){transform:none}}
/* end keys v2 */
/* topbar fit 2026-11-29 (claude): the Studio top bar was wider than the window at many sizes (71px at 1024, a few px at 1241 and 1381, more on mirrors with longer artist names), so the last button was cut off and the page scrolled sideways. The action group now takes the space that is left; as it gets tight the search box shrinks, then drops its shortcut hint and label, Edit layout drops to its icon, then the least-used buttons hide. Names stay for screen readers. Rollback: delete from this line to the end-of-block comment. */
@media (min-width:1021px){.topbar .top-actions{flex:1 1 0;min-width:0;container:gm-acts/inline-size;justify-content:safe flex-end}}
@media (min-width:641px) and (max-width:1020px){.topbar{grid-template-columns:auto minmax(0,1fr)}.topbar .top-actions{justify-self:stretch;min-width:0;container:gm-acts/inline-size;justify-content:safe flex-end}}
@container gm-acts (max-width:692px){.ux100 .topbar .ux-find{min-width:0}.topbar .ux-find-k{display:none}}
@container gm-acts (max-width:636px){.ux100 .topbar .ux-find{flex:0 0 auto;width:40px;min-width:0;padding:0;justify-content:center}.topbar .ux-find-t{display:none}}
@container gm-acts (max-width:552px){.topbar .gl-eb-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@container gm-acts (max-width:480px){.topbar .gl-edit-btn{display:none}}
@container gm-acts (max-width:430px){.topbar .gm-about{display:none}}
@container gm-acts (max-width:355px){.topbar #btn-freeplugins{display:none}}
.topbar a.gm-about{text-decoration:none;color:inherit}
/* phones: Record sat on top of the Console tab below 420px, so a tap on Console started a recording. Record and Export become icon keys there; their names stay for screen readers. */
@media (max-width:420px){.topbar .top-rec .tr-l{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.topbar #rec-take,.topbar #bounce{min-width:40px;padding-inline:0;justify-content:center}}
/* tablets: the glow behind the Studio hero bled 60px past the screen edge and the page scrolled sideways. */
.sound-mode{overflow-x:clip}
/* end topbar fit */
/* phones 2026-11-29 (claude): the drum machine's 16 steps were 6px wide on a phone (on the Rack a more specific rule kept the master column beside them, overriding the phone layout), and the Audio · App button sat on piano keys and dock buttons. Below 520px steps wrap to two rows of 8, the master column moves under the steps as the phone layout intends, and below 640px the button becomes an icon key that rises above fixed bottom bars (lift() in gm-app.js). Rollback: delete from this line to the end-of-block comment. */
@media (max-width:760px){html .dm-rackmod.gd-expanded .dm-main{grid-template-columns:minmax(0,1fr)}}
@media (max-width:520px){html .dm-steps{grid-template-columns:repeat(8,minmax(0,1fr));row-gap:4px}}
@media (max-width:640px){.gma-fab{width:40px;height:40px;padding:0;gap:0;justify-content:center}.gma-fab .gma-lbl-a,.gma-fab .gma-lbl-i{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
.gma-fab.gma-lift{width:40px;height:40px;padding:0;gap:0;justify-content:center}.gma-fab.gma-lift .gma-lbl-a,.gma-fab.gma-lift .gma-lbl-i{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* end phones */
/* scroll hints 2026-11-29 (claude): The Studio's instrument categories and dock nav had a fixed fade on the right edge that stayed on even at the end of the row (fading the last item), or no hint at all. The fade now follows the scroll: right edge at the start, both edges in the middle, left edge at the end, none when the row fits. Driven by the row's own scroll position (scroll-driven animation); browsers without it keep their previous look. */
@property --sf-l{syntax:"<length>";inherits:false;initial-value:0px}
@property --sf-r{syntax:"<length>";inherits:false;initial-value:0px}
@keyframes gm-sf{0%{--sf-l:0px;--sf-r:28px}5%{--sf-l:28px}95%{--sf-r:28px}100%{--sf-l:28px;--sf-r:0px}}
@supports (animation-timeline:scroll()){#inst-cats,.ux-dock nav.ux-nav,html.gma-rack .gm-tscroll{-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--sf-l),#000 calc(100% - var(--sf-r)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--sf-l),#000 calc(100% - var(--sf-r)),transparent);animation:gm-sf linear both;animation-timeline:scroll(self inline)}}
/* end scroll hints */
/* touch 2026-11-29 (claude): on touch screens, controls under the 24px minimum get a bigger tap area. Where the layout has room they grow by 2-4px; toggle switches and knobs get an invisible pad around them instead, so nothing moves. */
@media (pointer:coarse){
.row-sw{min-width:24px}
.switch{position:relative}.switch::before{content:"";position:absolute;inset:-5px -3px}
.gk-dial{position:relative}.gk-dial::before{content:"";position:absolute;inset:-2px -3px}
.gmp-c input[type=checkbox]{min-width:24px;min-height:24px}
#burger,.gm-mv{min-width:24px}
html .gm-ml-in .gm-ml-i,html .gm-ml-b,html .gm-ml-co{min-width:24px}
html .sx-root .sx-strips .sx-sus{min-height:24px}
#uxrecfmt{min-width:24px;min-height:24px}
#uxbpm,.gd-range{min-height:24px}
}
@media (pointer:coarse) and (max-width:760px){html .dm-rackmod .dm-row,html .dm-rackmod.gd-expanded .dm-row{grid-template-columns:52px 26px 24px minmax(0,1fr)}}
/* end touch */
/* focus 2026-11-29 (claude): a keyboard audit found 2 Studio fields (instrument search, tempo) that showed only a text caret, and 18 Rack knobs with no focus mark at all. They now get the accent ring the other controls use. */
html #inst-search:focus-visible,html #tp-bpm:focus-visible{outline:2px solid var(--ngh-acc,#ffb340);outline-offset:1px}
html .gsm-kn:focus-visible{outline:2px solid var(--ngh-acc,#ffb340);outline-offset:3px}
/* end focus */
/* legibility 2026-11-29 (claude): a contrast audit of every visible text element (Studio 1,458, Rack 394, Track maker and About pages) found one label under the 4.5:1 minimum (the Rack's empty drum slot, 4.0:1, now 5.8:1) and three labels under 10px on the Rack. They grow as far as their boxes allow: maker credit and module tag to 10px, the wheel labels from 7px to 9px (their strip is 22px wide). */
html .dm-bank.dm-empty{color:#8a919b}
html small.gm-maker,html .lco h2 .lco-tag{font-size:10px}
html .sx-root .sx-strip b{font-size:9px}
/* end legibility */
/* csp 2026-11-29 (claude): the Studio's security policy (style-src 'self') blocks inline styles, so a few injected style blocks and attributes never applied there (console showed 4 blocked styles). Their rules now live in files: the knob polish in /__app/gmk-gear.css, the rest here. */
html.gma-rack .host-mark{font-weight:900;letter-spacing:.1em;font-size:1.05em;text-transform:uppercase}
.gm-credit{margin:24px auto;max-width:720px;padding:0 16px;font:12px/1.5 system-ui,sans-serif;opacity:.65;text-align:center}
@media (min-width:641px){#inst-drawer-close{display:none!important}}
/* end csp */
/* rack faq v1 (2026-11-29): questions on the rack About page. Opening one draws an accent bar down its left edge, turns the plus into a cross and, where ::details-content is supported, eases the answer open. */
html.gma-rack .gm-faq{display:grid;gap:10px;max-width:820px;interpolate-size:allow-keywords}
html.gma-rack .gm-faq details{position:relative;border:1px solid rgba(128,128,128,.28);border:1px solid color-mix(in srgb,currentColor 15%,transparent);border-radius:14px;background:color-mix(in srgb,currentColor 3%,transparent);overflow:clip;transition:border-color .2s,background-color .2s}
html.gma-rack .gm-faq details::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ngh-acc);transform:scaleY(0);transform-origin:50% 0;transition:transform .34s cubic-bezier(.2,.8,.2,1)}
html.gma-rack .gm-faq details[open]::before{transform:scaleY(1)}
html.gma-rack .gm-faq details:hover,html.gma-rack .gm-faq details[open]{border-color:color-mix(in srgb,currentColor 28%,transparent)}
html.gma-rack .gm-faq summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;box-sizing:border-box;padding:14px 18px;font-weight:700;line-height:1.35;transition:color .18s}
html.gma-rack .gm-faq summary::-webkit-details-marker{display:none}
html.gma-rack .gm-faq summary::after{content:"";flex:none;width:14px;height:14px;color:var(--ngh-acc);background:linear-gradient(currentColor,currentColor) 50%/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 50%/2px 100% no-repeat;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
html.gma-rack .gm-faq details[open]>summary::after{transform:rotate(135deg)}
html.gma-rack .gm-faq summary:hover{color:var(--ngh-acc)}
html.gma-rack .gm-faq summary:focus-visible{outline:2px solid var(--ngh-acc);outline-offset:-2px;border-radius:13px}
html.gma-rack .gm-faq details>p{margin:0;padding:0 18px 16px;max-width:68ch;opacity:.84}
@supports selector(::details-content){html.gma-rack .gm-faq details::details-content{block-size:0;overflow-y:clip;transition:block-size .3s cubic-bezier(.2,.8,.2,1),content-visibility .3s allow-discrete}html.gma-rack .gm-faq details[open]::details-content{block-size:auto}}
@media (prefers-reduced-motion:reduce){html.gma-rack .gm-faq details::before,html.gma-rack .gm-faq summary::after{transition:none}html.gma-rack .gm-faq details::details-content{transition:none!important}}
/* end rack faq */
/* rack about mobile v1 (2026-11-29): on narrow screens the build table scrolls inside its own box (with the edge fade from the scroll hints) instead of widening the page, and the hero art never exceeds the column. */
html.gma-rack .gm-tscroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html.gma-rack main.wrap img.art{max-width:100%;height:auto}
/* 2026-11-30: sections reached by a link (#questions, #source) land below the sticky top bar instead of under it */
html.gma-rack main.wrap :is(section,h2)[id]{scroll-margin-top:80px}
/* end rack about mobile */