/* A dedicated work surface: the landing logo must never float above the DAW. */
html:root body.roster-site.hir-studio-open #brand-entry{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html:root body.roster-site.hir-studio-open #drum-machine{z-index:1000!important;height:calc(100dvh - 24px)!important;max-height:none!important;padding:18px 24px 46px;background:#090e10;isolation:isolate;border-radius:16px 16px 0 0;box-shadow:0 -20px 90px #0009}
html:root body.roster-site.hir-studio-open #sequencer-handle{z-index:1001!important}
#drum-machine .drum-content{min-height:0;overflow:auto;overscroll-behavior:contain}
#drum-machine .studio-daw-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 12px;flex-shrink:0}
#drum-machine .studio-daw-tools button,#drum-machine .studio-daw-tools select,#drum-machine .studio-import-button{min-height:44px;border:1px solid #ffffff28;border-radius:8px;padding:8px 14px;background:#ffffff05;color:#cdd4d2;font:inherit}
#drum-machine .studio-daw-tools button[aria-pressed=true]{border-color:#dfb267;color:#f3ca86;background:#dfb26714}
#drum-machine .studio-daw-tools p{font-size:12px;color:#a9b1b0;margin:0;flex:1}
#drum-machine .studio-samples{border:1px solid #ffffff20;border-radius:10px;padding:14px;margin:0 0 12px;background:#ffffff03}
#drum-machine .studio-samples[hidden]{display:none}
#drum-machine .studio-samples header{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
#drum-machine .studio-samples strong{color:#f0ede5;flex:1}
#drum-machine .studio-sample-list{display:flex;flex-wrap:wrap;gap:8px;max-height:140px;overflow:auto}
#drum-machine .studio-sample-list button{min-height:44px;padding:8px 12px;border:1px solid #ffffff26;border-radius:6px;font-size:12px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drum-machine .studio-samples small{display:block;color:#a9b1b0;margin-top:10px;line-height:1.5}
#drum-machine .studio-samples.is-drop-target{border-color:#e5b76f;background:#e5b76f0b}
#drum-machine .studio-fx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px;border-top:1px solid #ffffff17;margin-top:12px}
#drum-machine .studio-fx label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;color:#b9c2bf}
#drum-machine .studio-fx input{width:100%;min-height:32px;accent-color:#e5b76f;margin:0}
#drum-machine .studio-fx label span{display:flex;justify-content:space-between;gap:6px}
#drum-machine .studio-fx output{font-variant-numeric:tabular-nums;color:#e5b76f}
#drum-machine .studio-fx-reset{grid-column:1/-1;min-height:36px;font-size:11px;text-align:left;color:#d7bd92}
#drum-machine .mixer-strip{min-width:180px}
#drum-machine .mixer-grid{grid-template-columns:repeat(6,minmax(180px,1fr))}
#drum-machine .mixer-channels{overflow:auto}
#drum-machine .studio-edit-history{display:flex;gap:8px}
#drum-machine .drum-note{cursor:crosshair}
#drum-machine .drum-note[data-note-owner]{cursor:grab}
#drum-machine .drum-note.note-end{cursor:ew-resize}
#drum-machine[data-paint=true] .drum-step{touch-action:none}
#drum-machine[data-note-drag=true] .piano-scroll{touch-action:none}
#drum-machine .studio-dragging{outline:2px solid #f4d29b;outline-offset:-2px}
#drum-machine .studio-edit-guide{color:#a9b1b0;font-size:12px;line-height:1.5;margin:8px 0}
@media(max-width:680px){
 html:root body.roster-site.hir-studio-open #drum-machine{height:calc(100dvh - env(safe-area-inset-top,0px) - 8px)!important;padding:12px 12px calc(48px + env(safe-area-inset-bottom,0px));border-radius:12px 12px 0 0}
 #drum-machine .studio-daw-tools{gap:6px}#drum-machine .studio-daw-tools button{padding:7px 10px;font-size:12px}
 #drum-machine .studio-daw-tools p{flex-basis:100%}
 #drum-machine .drum-toolbar{gap:10px}#drum-machine .mixer-strip{min-width:180px}
 #drum-machine .studio-samples header{gap:8px}#drum-machine .studio-samples select{width:100%;min-height:44px}
 #drum-machine .studio-fx input{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#drum-machine{transition:none!important}}

#drum-machine .mixer-master .mixer-strip{min-width:0}
#drum-machine .mixer-master{flex-basis:95px}
#drum-machine .studio-fx-reset{cursor:pointer}

#drum-machine .drum-note[data-note-owner]{touch-action:none}
#drum-machine input.mixer-fader{height:80px}
@media(max-width:680px){#drum-machine .drum-note,#drum-machine .piano-label{height:32px;min-height:32px}#drum-machine .piano-scroll{min-height:160px}#drum-machine .studio-sample-list{max-height:110px}}
#drum-machine .studio-sound-settings{flex-shrink:0;border-bottom:1px solid #ffffff1c;margin:0 0 8px}
#drum-machine .studio-sound-settings summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#d9d9d0;font-size:12px;list-style:none}
#drum-machine .studio-sound-settings summary:before{content:'+';color:#e5b76f}
#drum-machine .studio-sound-settings[open] summary:before{content:'−'}
#drum-machine .studio-sound-settings .melody-controls{padding-bottom:8px}
#drum-machine .piano-tools p{display:none}
#drum-machine .studio-daw-tools [hidden]{display:none!important}
@media(max-width:680px){#drum-machine .drum-links a:not(:first-child){display:none}#drum-machine .drum-footer{gap:8px}#drum-machine .drum-links{max-width:180px}#drum-machine .studio-edit-guide{font-size:11px}}
#drum-machine .studio-edit-menu{position:relative;font-size:12px}
#drum-machine .studio-edit-menu summary{min-height:44px;min-width:50px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff28;border-radius:8px;cursor:pointer;list-style:none}
#drum-machine .studio-edit-menu .pattern-actions{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:160px;padding:8px;background:#101719;border:1px solid #ffffff35;border-radius:8px;display:flex;flex-direction:column;align-items:stretch;box-shadow:0 12px 30px #0008}
#drum-machine .studio-edit-menu:not([open]) .pattern-actions{display:none}
#drum-machine .studio-edit-menu .pattern-actions button{max-width:none;text-align:left;white-space:nowrap}
#drum-machine .studio-daw-tools button[aria-label=Undo],#drum-machine .studio-daw-tools button[aria-label=Redo]{font-size:22px;line-height:1;min-width:44px;padding:6px}
@media(max-width:680px){#drum-machine .studio-daw-tools>p{display:none}#drum-machine .sequencer-tabs{margin-bottom:4px}#drum-machine .studio-edit-guide{margin:5px 0}#drum-machine .drum-body{scrollbar-gutter:auto}}
@media(max-width:680px){#drum-machine .piano-scroll{height:clamp(160px,calc(100dvh - 600px),320px);max-height:320px;flex:none}}
