/*! Medina Beat Machine — Copyright (c) 2026 Alejandro Medina. All rights reserved. Proprietary software: copying, redistribution, reverse engineering or reuse of this code is prohibited except as permitted in /LICENSE.txt. */
html{scroll-padding-top:var(--transport-height, 140px)}.studio-shortcuts{display:flex;gap:6px;max-width:1440px;margin:8px auto 0;overflow-x:auto;padding-bottom:4px}.studio-shortcuts a{flex-shrink:0;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid #9d723766;border-radius:6px;color:#e3d5b7;text-decoration:none;font-size:12px}.studio-shortcuts a:hover{background:#30271c;border-color:var(--gold)}.session-guide{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:24px;margin-bottom:18px;padding:22px;border-left:3px solid var(--gold);background:linear-gradient(120deg,#282319,#10151e);border-radius:4px 12px 12px 4px}.session-guide h2{font:italic 32px Georgia,serif;margin:8px 0;color:#f7dfaf}.session-guide p{line-height:1.7;color:#c9c5bd}.session-guide a{color:#f3d495;text-underline-offset:3px}.guide-workflow summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:700;color:#f0dfbc}.guide-workflow details+details{border-top:1px solid #9d723744}.guide-workflow ol{padding-left:24px;margin:8px 0 18px}.guide-workflow li{padding:5px 0 8px 6px;color:#d0af70}.guide-workflow li a{display:inline-block;padding:6px 0;font-weight:700}.guide-workflow li span{display:block;color:#c5c9d0;font-size:12px;line-height:1.6}:is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #f3c66b;outline-offset:3px}@media(max-width:700px){.session-guide{grid-template-columns:minmax(0,1fr);gap:4px;padding:16px}.guide-intro p{margin:6px 0}.session-guide h2{font-size:28px}.studio-controls label{flex-wrap:wrap;max-width:100%}.studio-controls input:not([type=checkbox]),.studio-controls select,.bank-tools input,.bank-tools select{min-height:44px;font-size:16px}.studio-controls button,.toolbar button,.header-actions a,.header-actions button,.seq-tools button,.seq-tools select{min-height:44px}.studio-panel summary{min-height:44px}.studio-controls input[type=range]{min-height:44px}.studio-panel,.studio-master,.panel,.toolbar{min-width:0}}.studio-panel,.studio-master{margin:14px 0;padding:20px;background:linear-gradient(145deg,#202732ed,#0a0e15f5),url(../assets/diamond-pave.svg);border-color:#b6c1ca}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.studio-heading h2{font:600 clamp(15px,2.5vw,24px) Georgia,serif;letter-spacing:.1em;margin:6px 0}.studio-eyebrow{font:10px ui-monospace,monospace;letter-spacing:.2em;color:#a9bac6}.studio-controls{display:flex;gap:9px 12px;align-items:center;flex-wrap:wrap;margin:12px 0}.studio-controls label,.studio-controls fieldset label{display:flex;align-items:center;gap:7px;font-size:11px;color:#b9c5ce}.studio-controls input:not([type=range]):not([type=checkbox]),.studio-controls select,.studio-track-head input,.song-section input{background:#080d14;color:#e6edf1;border:1px solid #657382;border-radius:5px;padding:9px;max-width:100%;min-width:0}.studio-controls input[type=number]{width:77px}.studio-controls input[type=text]{max-width:240px}.studio-controls input[type=range]{width:100px;accent-color:#b9ccd5}.studio-controls button,.studio-track-head button,.studio-editor>button{min-height:42px;font-size:10px;letter-spacing:.05em;border-color:#7d8b98;background:linear-gradient(#343e49,#141b24);color:#e6edf1}.studio-controls .record{background:linear-gradient(#a4454a,#491c24);border-color:#c27c7c}.studio-controls [aria-pressed=true]{border-color:#e9d6a4;color:#fff0bf;box-shadow:inset 0 0 0 1px #d6c098}.studio-controls fieldset{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #55636e;border-radius:8px}.studio-controls fieldset legend{color:#becdd6;font-size:10px}.studio-panel details,.studio-channel{border-top:1px solid #65738266;margin-top:14px;padding-top:12px}.studio-panel summary,.studio-channel summary{cursor:pointer;padding:9px 0;color:#d1dce5;font-size:12px;letter-spacing:.06em}.studio-timeline{border:1px solid #52606d;border-radius:8px;overflow:hidden;margin-top:16px;background:#080d14}.studio-ruler{padding:10px 12px;color:#8b9cab;background:linear-gradient(90deg,#1d2834,#101720);font:10px ui-monospace,monospace;letter-spacing:.15em}.studio-track{padding:10px;border-top:1px solid #354352}.studio-track.selected{box-shadow:inset 3px 0 #c4d7dd;background:#b8cfe809}.studio-track-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:7px}.studio-track-head input{width:180px;font-size:12px}.studio-track-head button{padding:5px 9px;min-height:36px}.studio-track-head [aria-pressed=true]{background:#66543b;color:#ffedc1}.studio-lane{height:70px;position:relative;background:repeating-linear-gradient(90deg,#8293a81a 0 1px,transparent 1px 6.25%);border:1px solid #465466;border-radius:4px;overflow:hidden}.studio-clip{position:absolute;top:4px;height:60px;border:1px solid #a8bac7;background:#263c49;box-shadow:none;padding:0;border-radius:3px;overflow:hidden;min-width:12px}.studio-clip.selected{border-color:#fff0c5;background:#435864}.studio-clip canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.8}.studio-clip span{position:relative;z-index:1;display:block;text-align:left;font:9px ui-monospace,monospace;white-space:nowrap;color:#f2f6f7;background:#0b131b99;padding:4px}.studio-empty{color:#9faeba;text-align:center;padding:20px;font-size:13px}.studio-editor{margin:14px 0}.studio-editor h3{font:11px ui-monospace,monospace;color:#b7c9d5;margin-right:auto}.studio-wave,.piano-roll{width:100%;display:block;border:1px solid #647585;border-radius:5px;background:#0a1018;touch-action:manipulation}.piano-roll{height:320px;cursor:crosshair}.studio-wave{height:100px}.studio-analysis{padding:16px;border:1px solid #4e6472;border-radius:6px;line-height:1.8;color:#bed0da;font:12px ui-monospace,monospace;overflow-wrap:anywhere}#studioMasterMeter{width:min(300px,100%);height:44px;border:1px solid #57616e;border-radius:5px;cursor:pointer}#channelMeter{max-width:100%;height:24px;border:1px solid #57616e}#studioPreview{width:min(100%,650px);margin:12px 0}#studioRecord.is-recording{background:#7f2632;border-color:#ffc3bf;box-shadow:inset 0 0 0 1px #ffe0db}.song-section input{width:145px}#studioName{width:min(240px,100%)}@media(max-width:700px){.studio-panel,.studio-master{padding:12px}.studio-controls{gap:8px}.studio-controls button{flex:1 1 135px;padding:10px 7px;min-height:44px}.studio-controls label{flex-wrap:wrap}.studio-track-head input{width:100%;flex:1 1 100%}.studio-track-head button{flex:1;min-height:42px}.studio-heading{gap:8px}.studio-heading .chip{font-size:9px}.piano-roll{height:290px}.studio-controls fieldset{width:100%}.studio-controls fieldset input{width:65px!important}.studio-empty{padding:10px}#studioRecord{flex-basis:100%}.studio-controls>input{max-width:100%}.song-section select{max-width:100%}.bank-tools input{min-width:0;width:100%}.toolbar label{max-width:100%}main{min-width:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}header{overflow:hidden}.fx-grid input{min-width:0;margin-inline:0}.strip-meter{width:40px;height:12px;background:#0b1117;border-radius:2px}@media(max-width:700px){.seqrow{grid-template-columns:132px repeat(var(--steps, 16),minmax(34px,1fr))}.seq{min-width:calc(132px + var(--steps, 16) * 38px)}.step{height:34px}}.sample-workbench{margin:18px 0;padding:22px;border:1px solid #8793a4;border-radius:12px;background:linear-gradient(130deg,#252b35,#10131b);box-shadow:inset 0 1px #ffffff25}.sample-workbench h2{margin:8px 0;color:#e4edf4;letter-spacing:.12em}#sampleWave{display:block;width:100%;height:180px;border:1px solid #596577;border-radius:6px;margin:12px 0}.sample-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.sample-fields label{display:grid;gap:7px;color:#c9d5e1;font-size:12px}.sample-fields input{width:100%;min-width:0;background:#10131b;color:#eef3f8;border:1px solid #6c7a8d;border-radius:5px;padding:10px}#sampleMeter{width:min(260px,100%);margin-left:12px;vertical-align:middle}.sample-workbench button:disabled,#record:disabled,#assignSample:disabled,#upload:disabled,#recordStop:disabled{opacity:.45;cursor:default}@media(max-width:700px){.sample-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-workbench{padding:14px}.sample-workbench button{min-height:44px}}.sample-capture{margin:12px 0;padding:12px;border:1px solid #667484;border-radius:8px;background:#10151e}.sample-capture-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;letter-spacing:.05em;color:#ced8e2}#sampleCaptureState{display:flex;align-items:center;gap:7px}.sample-rec-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:#7a8796}#sampleClock{font-variant-numeric:tabular-nums;white-space:nowrap}#sampleLiveWave{display:block;width:100%;height:100px;margin-top:10px;border-radius:4px}.sample-permission-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#sampleMicRetry{font-size:11px;padding:8px 10px;min-height:36px}#sampleMicRetry:disabled{opacity:.45;cursor:default}.sample-capture[data-state=recording]{border-color:#d18989}.sample-capture[data-state=recording] .sample-rec-dot{background:#f17e7e;animation:sample-record-pulse 1s ease-in-out infinite}.sample-capture[data-state=recording] #sampleCaptureLabel{color:#ffc4c4}.sample-capture[data-state=requesting] .sample-rec-dot{background:#e5c88f}@keyframes sample-record-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.sample-capture[data-state=recording] .sample-rec-dot{animation:none}}.sample-trim{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-trim input{padding:10px 0;accent-color:#c6d3df;min-height:44px}#sampleWave{cursor:crosshair}#samplePlayback,#sampleChop{border-color:#b9d6c9}#sampleEditJump:focus-visible,#sampleWave:focus-visible{outline:2px solid #c6d3df}.sample-capture[data-state=counting] .sample-rec-dot{background:#e4c98a}.vocal-tune{padding:10px 12px;border:1px solid rgba(233,57,173,.35);border-radius:10px;background:#e939ad0f}.vocal-tune-toggle{font-weight:700;letter-spacing:.04em}
