/* Reference-led studio shell; grid and recording models remain unchanged. */
body.reference-studio{--studio-bg:var(--sc-canvas);--studio-card:var(--sc-panel);--studio-line:color-mix(in srgb,var(--sc-border) 45%,var(--sc-panel));--studio-ink:var(--sc-text);--studio-muted:var(--sc-secondary);background:var(--studio-bg);color:var(--studio-ink);font-family:Inter,ui-sans-serif,system-ui,sans-serif;}
.reference-studio .sidebar,.reference-studio .breadcrumb,.reference-studio #mobileAccount,.reference-studio .journey,.reference-studio .workspace-mode,.reference-studio .workspace-heading,.reference-studio #blockNavigation,.reference-studio .bottom-nav,.reference-studio .workflow-footer{display:none!important}
.reference-studio .app{display:block;margin:0;max-width:none}.reference-studio .main-shell{margin:0;width:100%}.reference-studio main{max-width:920px;margin:0 auto;padding:24px 20px 220px}.reference-studio .topbar{position:relative;top:auto;max-width:920px;margin:auto;padding:20px;border:0;background:transparent;height:auto;min-height:64px;display:flex;justify-content:space-between;gap:16px}.reference-studio #studioBrand{display:flex;gap:10px;align-items:center;font-size:18px;white-space:nowrap}.reference-studio #studioBrand svg{color:#bd9ae8;width:24px;height:28px}.reference-studio #studioBrand em{color:#aaa0c7;font-style:normal}.reference-studio .top-actions{gap:10px}.reference-studio #studioExport{color:#b789fa;font-size:17px;font-weight:650;min-height:44px}.reference-studio .save-status{display:none}.reference-studio .project-menu summary{font-size:12px;padding:8px}.reference-studio .song-heading{margin:0 0 28px;padding:0;border:0}.reference-studio #songHeaderFields{display:block}.reference-studio #songHeaderFields>.field:not(:first-child),.reference-studio #songHeaderFields>.field-row{display:none}.reference-studio #songHeaderFields .field:first-child>span{display:none}.reference-studio #songHeaderFields input[type=text]{font-size:clamp(25px,6vw,38px);font-weight:750;padding:0;border:0;background:transparent;box-shadow:none;width:100%;min-width:0;color:var(--studio-ink)}.reference-studio #songHeaderFields [data-dictate]{display:none}.reference-studio #workspace{display:block;min-width:0}.reference-studio h2{font-size:clamp(24px,5vw,32px);line-height:1.2;margin:0 0 22px;letter-spacing:-.5px}.reference-studio .studio-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.reference-studio .studio-section-heading h2{margin:0}.reference-studio .tempo-chip{white-space:nowrap;display:flex;align-items:center;gap:4px;background:var(--studio-card);border:1px solid var(--studio-line);border-radius:10px;padding:8px;font-size:13px}.reference-studio .tempo-chip input{width:44px;min-width:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none}.reference-studio .button{border-radius:12px;min-height:48px;box-shadow:none;text-shadow:none}.reference-studio .button.secondary{background:linear-gradient(135deg,#1c1c25,#18181e);border:1px solid var(--studio-line);color:var(--studio-ink)}.reference-studio .button.primary{background:linear-gradient(135deg,#8d4de5,#6d35c1);color:white;border:1px solid #a76beb}.reference-studio .button::after{display:none}.reference-studio button:focus-visible,.reference-studio input:focus-visible,.reference-studio textarea:focus-visible{outline:3px solid #d5bcff;outline-offset:3px}.reference-studio .panel,.reference-studio .studio-card{background:var(--studio-card);border:1px solid var(--studio-line);border-radius:16px;box-shadow:none}.reference-studio .studio-card{padding:20px;margin-bottom:20px}.reference-studio .studio-caption{font-size:13px;line-height:1.6;color:var(--studio-muted);margin:12px 0}.reference-studio .studio-writing-tabs{display:flex;gap:0;margin:16px 0}.reference-studio .studio-writing-tabs>*{flex:1;min-width:0}.reference-studio .studio-writing-tabs [aria-pressed=true]{border-color:#b17df5;background:#392753}.reference-studio .studio-lyrics .panel{background:transparent;border:0;margin:0}.reference-studio .studio-lyrics .panel-head,.reference-studio .studio-lyrics .lyric-meta,.reference-studio .studio-lyrics .editor-foot,.reference-studio #simpleDictate{display:none}.reference-studio .studio-lyrics .form-body{padding:0}.reference-studio .studio-lyrics textarea{display:block;width:100%;min-height:220px;max-height:55vh;resize:vertical;border:1px solid #383543;border-radius:12px;background:#15151b;color:var(--studio-ink);font-size:19px;line-height:1.65;padding:18px}.reference-studio .studio-lyrics label>span{font-size:12px;color:var(--studio-muted)}.reference-studio .studio-monitor{background:#202029;border:1px solid var(--studio-line);border-radius:14px;padding:14px;margin:20px 0}.reference-studio .studio-monitor h3{font-size:16px;margin:0 0 14px;display:flex;align-items:center;gap:8px}.reference-studio .studio-monitor>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.reference-studio .studio-monitor label{font-size:13px;display:flex;gap:7px;align-items:center}.reference-studio .studio-monitor p{font-size:12px;color:var(--studio-muted);margin:12px 0 0}.reference-studio .studio-primary-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:8px 16px}.reference-studio .studio-primary-pair button{display:flex;flex-direction:column;gap:8px;min-height:100px}.reference-studio .studio-primary-pair svg{width:32px;height:32px}.reference-studio .studio-record{background:#f5344b!important;border:1px solid #ff5868!important;color:white!important;min-height:64px;box-shadow:0 0 20px #eb2f4530!important;font-size:18px}.reference-studio .studio-primary-pair .studio-record{border-radius:50%;width:104px;justify-self:center}.reference-studio .studio-review{border:2px solid #b787ff!important;border-radius:40px!important;color:#c5a1ff!important}.reference-studio .studio-capture{text-align:center}.reference-studio #recordPartButton{width:100%;margin:20px 0 6px}.reference-studio #studioElapsed{display:block;font-size:64px;letter-spacing:2px;margin:20px 0}.reference-studio .studio-record-label{color:#ff4e64;font-weight:600}.reference-studio .studio-count{display:flex;justify-content:center;gap:22px;padding:20px 0}.reference-studio .studio-count b{width:52px;height:52px;display:grid;place-items:center;border:2px solid #8f59d2;border-radius:50%;font-size:24px;color:#be95ff}.reference-studio .studio-count b.active{background:#9551f2;color:white;box-shadow:0 0 18px #9751e866}.reference-studio #studioCaptureLyrics{white-space:pre-wrap;text-align:center;font-size:21px;line-height:1.7;max-height:180px;overflow:auto;margin:20px 0}.reference-studio #studioWaveform{width:100%;height:80px}.reference-studio .studio-extras{margin:24px 0;border-top:1px solid var(--studio-line);padding-top:12px}.reference-studio .studio-extras summary{min-height:44px;display:flex;align-items:center;color:var(--studio-muted)}.reference-studio .studio-history{display:flex;gap:20px;margin:16px 0}.reference-studio .studio-use-voice{width:100%;min-height:64px;border:2px solid #ac76eb!important;color:#d3bcfa!important;font-size:20px;box-shadow:0 0 14px #a563ee19!important;margin:20px 0}.reference-studio .studio-use-voice svg{width:28px;height:28px}
.reference-studio .session{position:fixed;z-index:35;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom));width:min(880px,calc(100% - 24px));margin:0;padding:12px 16px;border:1px solid #343140;border-radius:16px;background:#1b1b24;box-shadow:0 -5px 24px #0004}.reference-studio .session-heading,.reference-studio .session .mini-tracks,.reference-studio .session .master-control,.reference-studio .session .session-foot,.reference-studio .session>div[data-metronome]{display:none}.reference-studio .session-content{display:block;padding:0}.reference-studio .transport{display:flex;gap:14px;justify-content:space-between;min-width:0}.reference-studio .transport>div{flex:1;min-width:0}.reference-studio #playButton{width:52px;height:52px;min-width:52px;background:transparent;border:2px solid #a76beb;color:#c8a6ff}.reference-studio #stopButton{width:44px;height:44px;min-width:44px}.reference-studio #audioStatus{font-size:11px;white-space:normal}.reference-studio .project-listening-options{position:absolute;right:8px;bottom:100%;background:#191920;max-height:45vh;overflow:auto;border-radius:12px;max-width:calc(100vw - 24px)}.reference-studio .project-listening-options:not([open]){position:static;margin:0;font-size:10px}.reference-studio .project-listening-options summary{padding:3px;min-height:20px}.reference-studio #studioNavigation{position:fixed;z-index:36;bottom:0;left:0;right:0;background:#111116;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #25232d}.reference-studio .studio-tabs{display:grid;grid-template-columns:repeat(4,1fr);max-width:880px;margin:auto;gap:4px;padding:6px 12px}.reference-studio .studio-tabs button{border:0;background:transparent;color:#a59bb9;min-height:62px;padding:6px;display:flex;flex-direction:column;align-items:center;gap:5px;border-bottom:3px solid transparent;font-size:13px}.reference-studio .studio-tabs button svg{width:23px;height:23px}.reference-studio .studio-tabs [aria-current=page]{color:#b27af6;border-bottom-color:#b27af6}.reference-studio [hidden]{display:none!important}
@media(max-width:500px){.reference-studio main{padding:12px 14px 230px}.reference-studio .topbar{padding:16px 14px}.reference-studio .studio-card{padding:16px}.reference-studio .top-actions{gap:4px}.reference-studio #studioBrand{font-size:16px;gap:6px}.reference-studio .project-menu summary{font-size:10px}.reference-studio .studio-primary-pair{gap:12px;padding:8px 0}.reference-studio .song-heading{margin-bottom:24px}}
.reference-studio .studio-grid-range{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--studio-muted);margin-bottom:14px}.reference-studio .studio-grid-range button{min-height:44px;padding:8px}.reference-studio .studio-grid-scroll{overflow-x:auto;padding:4px 2px 12px;max-width:100%;overscroll-behavior-x:contain}.reference-studio .studio-grid-rows{min-width:400px}.reference-studio .studio-beat-row{display:grid;grid-template-columns:80px repeat(8,minmax(32px,1fr));gap:5px;margin:10px 0;padding:4px;border:2px solid transparent;border-radius:12px;min-height:60px}.reference-studio .studio-beat-row.selected{border-color:#ad77f1;box-shadow:0 0 12px #a266df26}.reference-studio .studio-row-pad{display:flex;align-items:center;gap:7px;border:1px solid #34323e;background:#1b1b23;border-radius:9px;color:#eee9f8;padding:7px;font-size:12px;min-height:56px;min-width:0;overflow-wrap:normal;word-break:normal;position:sticky;left:0;z-index:1}.reference-studio .studio-row-pad svg{width:20px;height:22px;flex:none;color:#ceb3f7}.reference-studio .studio-step{border:1px solid #35343e;border-radius:7px;background:linear-gradient(#24242d,#1d1d25);min-width:0;min-height:56px;padding:0;color:#fff;font-size:11px}.reference-studio .studio-step.on{background:linear-gradient(135deg,#b079ff,#9e59ed);border-color:#b884ff;box-shadow:0 0 8px #a56bed26}.reference-studio .studio-sound-bank{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin:16px 0}.reference-studio .studio-sound-bank label{font-size:13px;font-weight:650}.reference-studio .studio-sound-bank select{min-width:0;background:#20202b;color:#e6dafa;border:1px solid #a06ae0;border-radius:10px;min-height:44px}.reference-studio .studio-beat-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reference-studio .studio-beat-actions button{min-height:60px;padding:10px 8px;font-size:14px;white-space:normal}.reference-studio #padRecord svg{color:#ff5363}.reference-studio #padStatus{font-size:12px;color:var(--studio-muted);line-height:1.5;margin:12px 0}.reference-studio .session-footnote{display:none}.reference-studio #songHeaderFields .header-compact-field{display:none}.reference-studio #songHeaderFields .title-dictation{display:none}

/* Compact reference header and persistent player. */
.reference-studio #songHeaderFields .brief-fields{display:block}
.reference-studio #songHeaderFields .brief-fields>.field:not(.brief-title){display:none}
.reference-studio #songHeaderFields .brief-title>span,.reference-studio #songHeaderFields .brief-title>.dictate-action{display:none}
.reference-studio #songHeaderFields .brief-title input{font-size:34px;font-weight:750;padding:0;border:0;background:transparent;box-shadow:none;color:var(--studio-ink);width:100%;height:auto;min-height:48px}
.reference-studio #songIdea{margin:0;border:0;padding:0}.reference-studio #songIdea>summary{font-size:12px;color:var(--studio-muted);min-height:28px;padding:0}
.reference-studio .session>.monitor-controls,.reference-studio .session-footer{display:none}
.reference-studio .session{padding:10px 14px}.reference-studio .session-content{gap:0}.reference-studio .transport{margin:0;padding:0}.reference-studio .session .project-listening-options{border:0;padding:0}
.reference-studio #beatPads{padding:0;border:0;background:transparent;margin:0;display:block}
.reference-studio .studio-grid-rows{min-width:0}.reference-studio .studio-beat-row{grid-template-columns:70px repeat(8,minmax(0,1fr));gap:4px;margin:8px 0;padding:3px}
.reference-studio .studio-row-pad{padding:5px;gap:4px;font-size:11px}.reference-studio .studio-row-pad svg{width:16px}
.reference-studio .studio-grid-range{margin-bottom:0}.reference-studio .studio-grid-scroll{padding-bottom:0}
.reference-studio .project-menu summary{background:#20202a;border-color:#343040;color:#bbb2cb}
.reference-studio .studio-monitor .monitor-controls{margin:0;padding:0;border:0;background:transparent;display:block}.reference-studio .studio-monitor .monitor-options{font-size:12px}
@media(max-width:350px){.reference-studio .studio-beat-row{grid-template-columns:60px repeat(8,minmax(0,1fr));gap:3px}.reference-studio #studioBrand{font-size:14px}.reference-studio .studio-row-pad{font-size:10px}}

.reference-studio #padSound{background:#23202e!important;color:#eee4fa!important;box-shadow:none!important}
.reference-studio #studioPlayerTitle{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px}.reference-studio #transportTime{font-size:11px}.reference-studio .studio-project-progress{height:4px;background:linear-gradient(to right,#ba8af5 var(--progress,0%),#34303f var(--progress,0%));border-radius:4px;margin-top:6px}.reference-studio .transport>#playButton{order:2}.reference-studio .transport>#stopButton{order:3}.reference-studio .transport>div{order:1}.reference-studio #audioStatus{font-size:10px;line-height:1.3}
.reference-studio #songIdea .field{display:flex!important}.reference-studio #songIdea .field>span{display:block}

[data-theme=light] .reference-studio{--studio-bg:var(--sc-canvas);--studio-card:var(--sc-panel)}
.reference-studio .studio-lyrics textarea{background:var(--studio-bg)!important;color:var(--studio-ink)!important}

/* Palette choices keep their semantic colors; only the dark neutral surfaces changed. */
.reference-studio .button.secondary,.reference-studio .studio-step,.reference-studio .studio-row-pad,.reference-studio .session,.reference-studio .studio-monitor,.reference-studio #studioNavigation,.reference-studio .project-listening-options{background:var(--studio-card);color:var(--studio-ink);border-color:var(--studio-line)}
.reference-studio .button.primary{background:linear-gradient(135deg,var(--sc-solid),var(--sc-solid-hover));color:var(--sc-on-solid);border-color:var(--sc-accent-text)}
.reference-studio .studio-step.on{background:var(--sc-solid);border-color:var(--sc-accent-text);color:var(--sc-on-solid)}
.reference-studio .studio-beat-row.selected,.reference-studio .studio-use-voice,.reference-studio .studio-review{border-color:var(--sc-accent-text)!important;box-shadow:0 0 14px color-mix(in srgb,var(--sc-accent-text) 17%,transparent)!important}
.reference-studio .studio-use-voice,.reference-studio .studio-review,.reference-studio #studioExport,.reference-studio .studio-tabs [aria-current=page],.reference-studio #studioBrand svg,.reference-studio .studio-row-pad svg{color:var(--sc-accent-text)!important}.reference-studio .studio-tabs [aria-current=page]{border-bottom-color:var(--sc-accent-text)}
.reference-studio #padSound{background:var(--studio-card)!important;color:var(--studio-ink)!important}
.reference-studio .studio-writing-tabs [aria-pressed=true]{background:color-mix(in srgb,var(--sc-solid) 28%,var(--studio-card));border-color:var(--sc-accent-text)}
.reference-studio .studio-lyrics-help{font-size:12px;line-height:1.6;margin:12px 0}.reference-studio .studio-lyrics-help summary{min-height:44px;display:flex;align-items:center}
.reference-studio .lyric-prompter{max-height:180px;min-height:0;background:transparent;font-size:20px;color:var(--studio-ink)}.reference-studio .prompter-controls{flex-wrap:wrap;font-size:12px}.reference-studio .prompter-controls .button{min-height:44px}
.reference-studio .topbar{padding-top:10px;padding-bottom:10px}.reference-studio .song-heading{margin-bottom:18px}.reference-studio .studio-section-heading{margin-bottom:8px}.reference-studio .studio-grid-range{height:44px}.reference-studio .studio-grid-range button{min-height:44px!important}.reference-studio .studio-sound-bank{margin:12px 0}.reference-studio .studio-use-voice{margin:12px 0}
.reference-studio :is(button,input,textarea,summary,select){scroll-margin-top:20px;scroll-margin-bottom:220px}

.reference-studio #studioInputWave{width:100%;height:84px}.reference-studio .studio-take-review h3{font-size:22px;margin-top:0}.reference-studio .studio-take-review .recording-review{padding:0;border:0}.reference-studio .studio-take-review .voice-button-row{display:flex;gap:12px}.reference-studio .studio-take-review .voice-button-row button{min-height:56px;flex:1}
.reference-studio .compose-desk{background:var(--studio-card);border-color:var(--studio-line);overflow:hidden;border-radius:16px}.reference-studio .compose-toolbar{padding:16px;display:flex;flex-wrap:wrap;gap:12px}.reference-studio .compose-toolbar .eyebrow{display:none}.reference-studio .compose-toolbar strong{font-size:12px}.reference-studio .compose-guidance{font-size:12px;padding:0 16px}.reference-studio .compose-lane-track{height:100px;background:var(--studio-bg)}.reference-studio .compose-item{height:82px;top:9px;background:color-mix(in srgb,var(--sc-solid) 32%,var(--studio-card));border-color:var(--sc-accent-text);border-radius:10px;overflow:hidden}.reference-studio .compose-item.selected{outline:2px solid var(--sc-accent-text);box-shadow:0 0 14px color-mix(in srgb,var(--sc-accent-text) 20%,transparent)}.reference-studio .studio-track-wave{position:absolute;left:0;bottom:0;width:100%;height:46px;pointer-events:none;opacity:.8}.reference-studio .compose-item-select{position:relative;z-index:1;justify-content:flex-start}.reference-studio .compose-item-select small{font-size:10px}.reference-studio .compose-lane-name{background:var(--studio-card);color:var(--studio-ink);font-size:13px}.reference-studio .compose-inspector{background:var(--studio-card);border-color:var(--studio-line)}.reference-studio .compose-bottom{display:flex;flex-direction:column}.reference-studio .compose-section{background:var(--studio-card);color:var(--studio-ink);border-color:var(--studio-line)}.reference-studio .compose-section.selected{border-color:var(--sc-accent-text)}


.reference-studio #songIdea{display:none}
.reference-studio .studio-arrange>#addSection{width:100%;min-height:56px;margin-top:16px}

.reference-studio #studioPlayerArtwork{width:44px;height:44px;object-fit:cover;border-radius:7px;order:0}.reference-studio .session #audioStatus{max-height:26px;overflow:hidden}.reference-studio .session #playButton{min-height:56px;width:56px;height:56px}.reference-studio .session #stopButton{min-height:56px;width:56px;height:56px}.reference-studio .studio-primary-pair .button{font-size:16px}.reference-studio .studio-lyrics .studio-caption{font-size:12px}

.reference-studio .studio-timeline-tools{margin:0;padding:8px 16px;border-top:1px solid var(--studio-line)}.reference-studio .studio-timeline-tools .compose-toolbar{padding:8px 0}.reference-studio .studio-timeline-tools .compose-guidance{padding:0}.reference-studio .studio-arrange .compose-ruler{height:38px}.reference-studio .studio-arrange .compose-section-row{border-top:1px solid var(--studio-line)}
[data-purple-glow=true] .reference-studio .button.primary{background:linear-gradient(135deg,#8b4ee0,#6c35b9);border-color:#a16fe7;color:#fff}
.reference-studio .studio-record{background:#e82e46!important;border-color:#ff6a79!important;color:#fff!important}

.reference-studio .studio-arrange h2{margin-bottom:12px}.reference-studio .studio-arrange>.studio-writing-tabs{max-width:260px;margin:8px 0}.reference-studio .studio-arrange>.studio-caption{margin:8px 0 14px;font-size:12px}
.reference-studio .studio-arrange .compose-lane-track{height:88px}.reference-studio .studio-arrange .compose-item{height:72px;top:8px}.reference-studio .compose-item.resolved{background:color-mix(in srgb,var(--sc-solid) 45%,var(--studio-card));border-color:var(--sc-accent-text);color:var(--studio-ink)}.reference-studio .compose-item.clip{background:color-mix(in srgb,#cb459a 30%,var(--studio-card));border-color:#ae70a1;color:var(--studio-ink)}

.reference-studio .save-status{display:block;font-size:12px;white-space:normal;max-width:220px;color:var(--sc-danger);line-height:1.4}.reference-studio .save-status:has(>span){display:none}.reference-studio .top-actions:has(.save-status:not(:has(>span))){flex-wrap:wrap}
.reference-studio[data-studio-screen=takes] #voiceActivity{display:none!important}
.reference-studio .topbar{min-height:52px;padding:4px 14px}.reference-studio main{padding-top:8px}.reference-studio #songHeaderFields .brief-title input{min-height:44px}.reference-studio .song-heading{margin-bottom:16px}
.reference-studio #studioPlayerTitle{margin-bottom:2px;line-height:1.2}.reference-studio .session #audioStatus{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:12px;line-height:12px}.reference-studio .studio-project-progress{margin-top:4px}.reference-studio .session .project-listening-options summary{line-height:16px;padding:0;min-height:18px}
.reference-studio .prompter-controls{padding:8px 0;display:block}.reference-studio .prompter-controls summary{font-size:12px;min-height:44px;display:flex;align-items:center}
[data-purple-glow=true] .reference-studio .studio-writing-tabs [aria-pressed=true]{background:linear-gradient(135deg,#8b4ee0,#6c35b9);color:white;border-color:#bd8bff}

.reference-studio .studio-context-actions{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--studio-line)}.reference-studio .studio-context-actions button{flex:1;min-height:56px}

.reference-studio .studio-lyrics textarea{font-family:inherit!important;min-height:180px;height:180px;font-size:18px;line-height:1.55;padding:16px}.reference-studio .studio-lyrics .studio-writing-tabs{margin:12px 0}.reference-studio .studio-lyrics .studio-monitor{margin:14px 0;padding:12px}.reference-studio .studio-monitor h3{margin-bottom:8px;font-size:14px}.reference-studio .studio-monitor>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.reference-studio .studio-monitor>div>label{flex-direction:column-reverse;justify-content:flex-end;text-align:center;font-size:12px;gap:8px}.reference-studio .studio-monitor input[type=checkbox]{appearance:none;width:44px;height:26px;border-radius:20px;background:#30303a;border:1px solid #777;position:relative;margin:0}.reference-studio .studio-monitor input[type=checkbox]:before{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#f6f3fc;position:absolute;left:3px;top:3px}.reference-studio .studio-monitor input[type=checkbox]:checked{background:var(--sc-solid)}.reference-studio .studio-monitor input[type=checkbox]:checked:before{left:21px}
.reference-studio [data-monitor-compact]{min-height:52px!important;border:0!important;background:none!important;font-size:12px;padding:0 4px 30px!important;position:relative;width:100%;line-height:18px}.reference-studio [data-monitor-compact]:before{content:"";position:absolute;bottom:0;left:calc(50% - 22px);width:44px;height:26px;border-radius:20px;border:1px solid #777;background:#30303a}.reference-studio [data-monitor-compact]:after{display:block!important;content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#f6f3fc;left:calc(50% - 18px);bottom:4px;transform:none!important;animation:none!important;opacity:1!important;inset:auto auto 4px calc(50% - 18px)}.reference-studio [data-monitor-compact][aria-pressed=true]:before{background:var(--sc-solid)}.reference-studio [data-monitor-compact][aria-pressed=true]:after{left:calc(50% + 0px)}.reference-studio .studio-monitor .monitor-options{margin:0}.reference-studio .studio-monitor .monitor-options summary{font-size:10px;min-height:18px;padding:0}.reference-studio .studio-monitor p{font-size:10px;line-height:1.4;margin-top:8px}
[data-purple-glow=true] .reference-studio .studio-step.on{background:linear-gradient(135deg,#b079ff,#9e59ed);border-color:#bd8bff;color:white}[data-purple-glow=true] .reference-studio .studio-beat-row.selected{border-color:#bd8bff!important}
.reference-studio .studio-beat-actions .ui-icon{width:24px;height:24px}.reference-studio .studio-beat-actions button{font-size:15px}

.reference-studio .topbar{min-height:44px;padding-top:0;padding-bottom:0}.reference-studio #songHeaderFields .brief-title input{line-height:1.15}.reference-studio .song-heading{margin-bottom:8px}
.reference-studio .studio-monitor{position:relative}.reference-studio .studio-monitor .monitor-options{position:absolute;right:10px;top:0;z-index:5}.reference-studio .studio-monitor .monitor-options>summary{min-height:44px;font-size:10px;display:flex;align-items:center}.reference-studio .studio-monitor .monitor-options[open]{width:min(280px,calc(100% - 20px));padding:10px;background:var(--studio-card);border:1px solid var(--studio-line);border-radius:10px;box-shadow:0 8px 20px #0008}
.reference-studio .studio-record{background:#d92540!important}.reference-studio .studio-tabs button,.reference-studio #studioBrand em{color:var(--studio-muted)}.reference-studio .project-menu summary{background:var(--studio-card);border-color:var(--studio-line);color:var(--studio-ink)}.reference-studio canvas{color:var(--sc-accent-text)}
[data-purple-glow=true] .reference-studio .studio-step.on{color:#1b1027}
@media(max-width:500px){.reference-studio .studio-lyrics textarea{min-height:168px;height:168px}.reference-studio .studio-primary-pair button{min-height:96px}.reference-studio .studio-primary-pair .studio-record{width:96px}}

.reference-studio .studio-capture #countInDisplay{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.reference-studio .studio-capture #recordPartButton{position:sticky;top:8px;z-index:6}.reference-studio #studioElapsed{margin:12px 0}.reference-studio .studio-record-label{font-size:14px}.reference-studio .studio-capture .studio-extras{margin:12px 0}

/* Keep local state changes from moving the primary action or the dock. */
.reference-studio .studio-capture #studioPreparation,.reference-studio .studio-capture #studioRecording{min-height:250px}
.reference-studio .studio-capture #studioPreparation{padding-top:36px}
.reference-studio .studio-capture #recordAudioHelp{min-height:20px;margin:8px 0}
.reference-studio #padStatus{min-height:38px}
.reference-studio .studio-lyrics .studio-primary-pair{margin-bottom:24px}
.reference-studio .save-status:not(:has(>span)){position:absolute;top:100%;right:14px;z-index:30;background:var(--studio-card);padding:10px;border:1px solid var(--sc-danger);border-radius:8px;max-width:min(340px,calc(100vw - 28px));box-shadow:0 4px 20px #0007}
.reference-studio .top-actions:has(.save-status:not(:has(>span))){flex-wrap:nowrap}
@media(max-width:500px){.reference-studio .studio-lyrics textarea{min-height:144px;height:144px}.reference-studio .studio-lyrics .studio-monitor{margin:10px 0;padding:10px}.reference-studio .studio-lyrics h2{margin-bottom:12px}}
/* Browser focus/reveal must respect the persistent player and navigation. */
.reference-studio #workspace :is(button,input,textarea,select,summary){scroll-margin-top:16px;scroll-margin-bottom:220px}

.reference-studio .studio-capture .lyric-prompter{height:92px;min-height:92px;max-height:92px;padding:10px 12px;font-size:16px;line-height:1.45}
.reference-studio .studio-capture .prompter-shell{margin:0 0 12px}.reference-studio .studio-capture .prompter-section .eyebrow{display:none}.reference-studio .studio-capture .prompter-controls{padding:0}.reference-studio .studio-capture .prompter-controls summary{min-height:32px}
.reference-studio .studio-capture #studioPreparation,.reference-studio .studio-capture #studioRecording{min-height:210px}.reference-studio .studio-capture #studioInputWave{height:64px}.reference-studio #studioElapsed{font-size:60px}

/* Default Lyrics actions precede optional monitoring/help; short screens remain usable. */
.reference-studio #songHeaderFields .brief-title{position:relative;padding-right:44px}
.reference-studio #studioEditTitle{position:absolute;right:0;top:0;width:44px;height:44px;display:grid;place-items:center;color:var(--sc-accent-text)}
.reference-studio #studioEditTitle svg{width:20px;height:20px}
.reference-studio .studio-lyrics .studio-primary-pair{margin:12px 0;padding:0;gap:16px}
.reference-studio .studio-lyrics .voice-button-row:has(#simpleKeepLyrics){justify-content:flex-end;margin:4px 0}
.reference-studio #simpleKeepLyrics{min-height:44px;font-size:13px;padding:8px 14px}
.reference-studio .studio-lyrics .field:has(#simpleLyrics){margin:0;gap:4px}
.reference-studio .studio-lyrics .field:has(#simpleLyrics)>span{line-height:1.3}
.reference-studio .studio-arrange .compose-lane-name{font-size:15px;font-weight:650}
.reference-studio .studio-arrange .compose-item-select{font-size:15px;font-weight:650;line-height:1.3}
.reference-studio .studio-arrange .compose-item-select small{font-size:12px;line-height:1.4}
.reference-studio .studio-arrange .compose-item.selected{outline:3px solid var(--sc-accent-text);outline-offset:-3px;box-shadow:inset 0 0 16px color-mix(in srgb,var(--sc-accent-text) 20%,transparent)}
@media(max-height:740px){.reference-studio .studio-lyrics textarea{height:104px;min-height:104px}.reference-studio .studio-lyrics{padding:14px}.reference-studio .studio-primary-pair button{min-height:72px}.reference-studio .studio-primary-pair .studio-record{width:80px}.reference-studio .studio-lyrics .studio-writing-tabs{margin:6px 0}}
@media(max-height:740px){
 .reference-studio .studio-lyrics{display:flex;flex-direction:column}
 .reference-studio .studio-lyrics>h2{order:-5}.reference-studio .studio-lyrics>.studio-section-choice{order:-4}
 .reference-studio .studio-lyrics>.studio-writing-tabs{order:-3}.reference-studio .studio-lyrics>.studio-primary-pair{order:-2}
 .reference-studio .studio-primary-pair .studio-record{width:96px;padding:8px}
}
.reference-studio .studio-primary-pair .studio-record{padding:8px}
@media(max-width:380px){
 .reference-studio .topbar{gap:4px}.reference-studio #studioBrand{font-size:14px;white-space:normal;gap:4px;min-width:0}
 .reference-studio #studioBrand svg{width:18px;min-width:18px}.reference-studio #studioBrand span{max-width:76px}
 .reference-studio .top-actions{gap:4px;flex-shrink:0}.reference-studio .project-menu summary{padding:4px}
}
/* Keep selected-track actions near the visible timeline, even with many real tracks. */
.reference-studio .studio-arrange .compose-scroll{max-height:clamp(160px,calc(100svh - 630px),320px);overflow:auto;overscroll-behavior:contain}
.reference-studio .studio-arrange .compose-item-select strong{font-size:15px;line-height:1.3}
.reference-studio .studio-arrange .compose-item-select small{font-size:12px}
.reference-studio .studio-context-actions{background:var(--studio-card)}
.reference-studio .studio-monitor .monitor-options[open]{padding:0}
.reference-studio .studio-monitor .monitor-options[open]>:not(summary){margin-left:10px;margin-right:10px}

.reference-studio #studioRecovery{font-size:12px;min-height:44px;padding:4px;color:var(--sc-danger)}
.reference-studio .save-status:has(#studioRecovery){padding:0 8px}
.reference-studio #storageNotice{scroll-margin-top:16px;scroll-margin-bottom:220px;margin-top:20px}

/* Beat identity stays next to the grid; no new navigation surface. */
.studio-beat-name{display:flex;align-items:end;gap:12px;margin:16px 0;flex-wrap:wrap}.studio-beat-name .field{flex:1 1 180px;min-width:0}.studio-beat-name input{width:100%;min-height:52px}.studio-beat-name .button{min-height:56px;white-space:normal}.studio-beat-result{padding:12px;border-left:3px solid var(--accent);line-height:1.5}.studio-converted{outline:2px solid var(--accent);outline-offset:4px}.idea-actions{flex-wrap:wrap}.idea-actions .button{min-height:56px;overflow-wrap:normal;word-break:normal}@media(max-width:380px){.studio-beat-name>*{flex-basis:100%}}

.studio-grid-range{flex-wrap:wrap;gap:8px}.studio-grid-length{display:flex;align-items:center;gap:6px}.studio-grid-length select{min-height:44px;width:auto}.studio-sound-bank{display:flex;align-items:end;gap:12px;margin:16px 0;flex-wrap:wrap}.studio-sound-bank .field{flex:1;min-width:140px}.studio-sound-bank button{min-height:56px}.studio-beat-actions{display:flex;gap:12px;flex-wrap:wrap}.studio-beat-actions button{min-height:56px;flex:1 1 110px}.studio-beat-actions .button.primary{flex-grow:2}.studio-library .idea-actions{display:flex;gap:12px}.studio-library .idea-actions .button{flex:1 1 150px}.studio-library .idea-card{min-width:0}.studio-library strong{overflow-wrap:anywhere}

.reference-studio .studio-beat-actions{display:grid;grid-template-columns:1fr .65fr 1.1fr;gap:10px}.reference-studio .studio-beat-actions button{min-width:0;min-height:56px;padding:10px 8px;font-size:14px;white-space:normal}.reference-studio .studio-beat-name{gap:8px;margin:8px 0 12px}.reference-studio .studio-beat-name .field{flex:1 1 150px}.reference-studio .studio-beat-name .button{min-height:52px;padding:10px;font-size:13px}.reference-studio .studio-beat-name .text-button{min-height:44px}.reference-studio .studio-sound-bank{margin:8px 0}.reference-studio .studio-grid-scroll{padding-top:8px;padding-bottom:8px}
.reference-studio .studio-beat-name{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end}.reference-studio .studio-beat-name .field,.reference-studio .studio-sound-bank .field{margin-bottom:0}.reference-studio .studio-beat-name .text-button{min-width:44px}.reference-studio .studio-beat-row{margin:4px 0}.reference-studio .studio-sound-bank #studioAddRow{min-height:56px}.reference-studio .studio-grid-scroll{padding-top:4px;padding-bottom:4px}

.reference-studio .studio-beat .studio-sound-bank{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end}.reference-studio .studio-beat .studio-sound-bank .field{min-width:0}.reference-studio .studio-beat-click .monitor-controls{margin:0;padding:0;border:0;background:none}.reference-studio .studio-beat-click .monitor-options{display:none}.reference-studio .studio-beat-click [data-monitor-toggle]{min-height:56px;padding:8px;font-size:12px;max-width:106px;white-space:normal}
/* Named lyrics and immediately visible takes: compact charcoal cards, stable controls. */
.reference-studio .lyric-entry-tools,.reference-studio .take-input-choices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end;margin-bottom:16px}
.reference-studio .lyric-entry-tools .field,.reference-studio .take-input-choices .field{min-width:0;margin:0}
.reference-studio .take-input-choices>p{grid-column:1/-1;margin:0}
.reference-studio #notebookText{min-height:clamp(144px,21svh,240px);font-size:20px;line-height:1.65;padding:18px;border-radius:18px;resize:vertical}
.reference-studio #lyricSaveStatus{min-height:2.8em;margin:12px 0;line-height:1.4}
.reference-studio .studio-lyrics #saveLyric{min-height:56px;width:100%}
.reference-studio .take-list{margin-top:24px;padding-bottom:20px}
.reference-studio .take-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 56px 56px;gap:10px;align-items:start;margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--lime) 5%,var(--white)),var(--white));}
.reference-studio .take-card>div{min-width:0;align-self:center}.reference-studio .take-card strong,.reference-studio .take-card span{display:block;overflow-wrap:anywhere}.reference-studio .take-card span{font-size:14px;line-height:1.5;color:var(--muted);margin-top:5px}
.reference-studio .take-card>button,.reference-studio .take-menu>summary{min-width:56px;min-height:56px;display:flex;align-items:center;justify-content:center;margin:0;list-style:none;border-radius:14px}
.reference-studio .take-menu>summary::-webkit-details-marker{display:none}.reference-studio .take-menu>summary{font-size:22px;cursor:pointer;border:1px solid var(--line)}
.reference-studio .take-menu[open]{grid-column:1/-1;display:grid;grid-template-columns:1fr 56px}.reference-studio .take-menu[open]>summary{grid-column:2;grid-row:1}.reference-studio .take-menu>div{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:12px}.reference-studio .take-menu button{min-height:48px}.reference-studio .take-menu .field{min-width:140px;flex:1;margin:0}
.reference-studio .studio-writing-tabs>button{min-height:56px}.reference-studio .studio-lyrics .field:has(#notebookText){margin:0}
@media(max-width:360px){.reference-studio .lyric-entry-tools,.reference-studio .take-input-choices{gap:8px}.reference-studio .take-card{padding:12px;gap:8px;grid-template-columns:minmax(0,1fr) 56px 56px}}

.reference-studio .take-menu[open]{display:block;grid-column:auto}.reference-studio .take-menu>div{position:absolute;z-index:6;right:12px;top:76px;width:min(280px,calc(100% - 24px));padding:16px;background:var(--white);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px #0006}.reference-studio .take-menu>div .field{flex-basis:100%}.reference-studio .take-card:has(.take-menu[open]){z-index:5}

.reference-studio .take-menu:not([open])>div{display:none}.reference-studio .take-input-choices select{min-height:48px}.reference-studio .studio-takes .lyric-prompter{height:160px;min-height:120px;max-height:32svh}.reference-studio .studio-takes .studio-capture{padding:20px}.reference-studio .studio-lyrics #notebookText{background:linear-gradient(145deg,color-mix(in srgb,var(--white) 88%,var(--paper)),var(--paper));border-color:var(--line)}

.reference-studio .take-menu>div{position:fixed;right:12px;top:160px;width:min(280px,calc(100vw - 24px));max-height:calc(100svh - 230px);overflow:auto;z-index:150}
.reference-studio .studio-capture .studio-record{margin-bottom:16px}
@media(max-height:740px){
 .reference-studio .studio-lyrics #notebookText{height:104px;min-height:104px;padding:12px;font-size:18px}
 .reference-studio .studio-lyrics .lyric-entry-tools{margin-bottom:8px}
 .reference-studio .studio-lyrics .studio-writing-tabs{margin:4px 0 8px}
}
.reference-studio .studio-lyrics #notebookText{height:clamp(104px,calc(100svh - 680px),180px);min-height:clamp(104px,calc(100svh - 680px),180px)}
/* Equal preparation/recording footprints leave the selected lyrics visible on phones. */
.reference-studio .studio-capture #studioPreparation,.reference-studio .studio-capture #studioRecording{min-height:148px}
.reference-studio .studio-capture #studioInputWave{height:44px}
.reference-studio .studio-capture #studioElapsed{font-size:56px}
/* Owner library reference: one preview per raised card, one selected-item action area. */
.library-reference{max-width:860px;margin:0 auto;padding:0 0 28px}
.library-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.library-heading h1{font-size:clamp(28px,5vw,42px);margin:0;letter-spacing:-.03em}.library-heading>button{min-width:48px;min-height:56px;color:var(--sc-accent-text)}
.library-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid var(--line);border-radius:19px;background:var(--white);gap:4px}.library-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;border-radius:15px;color:var(--muted);font-size:18px;font-weight:650;min-width:0}.library-tabs button[aria-pressed=true]{background:linear-gradient(120deg,var(--sc-solid),color-mix(in srgb,var(--sc-solid) 85%,#5426bb));color:var(--sc-on-solid);box-shadow:inset 0 1px 2px #fff6,0 0 14px color-mix(in srgb,var(--lime) 35%,transparent)}.library-tabs svg{width:22px;height:22px}.library-tabs span{font-size:14px;padding:2px 8px;border-radius:20px;background:#ffffff0b}
.library-search{display:block;margin:16px 0 12px}.library-search input{width:100%;min-height:48px;border-radius:14px;background:var(--white);border:1px solid var(--line);padding:12px 16px;color:var(--ink);font:inherit}
.library-filters{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 12px;max-width:100%;scrollbar-width:thin}.library-filters button{white-space:nowrap;flex-shrink:0;min-height:46px;padding:8px 18px;border:1px solid var(--line);border-radius:24px;color:var(--muted);background:var(--white)}.library-filters button[aria-pressed=true]{border-color:var(--sc-accent-text);color:var(--ink);box-shadow:inset 0 0 16px color-mix(in srgb,var(--lime) 20%,transparent),0 0 9px color-mix(in srgb,var(--lime) 25%,transparent)}
.library-reference h2{font-size:26px;line-height:1.2;margin:18px 0}.library-beat-card{position:relative;display:grid;grid-template-columns:68px minmax(0,1fr);gap:15px;align-items:center;padding:20px 18px;margin:14px 0;border:1px solid var(--line);border-radius:21px;background:linear-gradient(135deg,color-mix(in srgb,var(--white) 94%,var(--lime)),var(--white));min-width:0}.library-beat-card.selected{border-color:var(--sc-accent-text)}.library-beat-card.previewing{box-shadow:0 0 16px color-mix(in srgb,var(--lime) 28%,transparent),inset 0 0 22px color-mix(in srgb,var(--lime) 10%,transparent);border-color:var(--sc-accent-text)}
.library-audition{width:68px;min-height:68px;border:2px solid color-mix(in srgb,var(--sc-accent-text) 45%,var(--line));border-radius:50%;display:grid;place-items:center;color:var(--sc-accent-text)}.library-audition svg{width:30px;height:30px}.previewing .library-audition{color:var(--sc-on-solid);background:linear-gradient(145deg,var(--sc-solid),color-mix(in srgb,var(--sc-solid) 85%,#5426bb));box-shadow:0 0 16px color-mix(in srgb,var(--lime) 40%,transparent)}
.library-card-content{min-width:0}.library-name{display:block;text-align:left;font:inherit;font-weight:700;font-size:21px;line-height:1.3;min-height:44px;color:var(--ink);overflow-wrap:anywhere;padding:0 42px 0 0;width:100%}.library-card-content p{font-size:13px;line-height:1.4;color:var(--muted);margin:3px 0 10px}.library-rhythm{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.library-rhythm i{height:25px;border-radius:5px;border:1px solid var(--line);background:color-mix(in srgb,var(--paper) 30%,var(--white))}.library-rhythm .lit{background:linear-gradient(145deg,color-mix(in srgb,var(--lime) 80%,white),var(--lime));box-shadow:0 0 9px color-mix(in srgb,var(--lime) 22%,transparent);border-color:color-mix(in srgb,var(--lime) 60%,white)}
.library-preview-label{position:absolute;right:16px;top:8px;font-size:11px;color:var(--sc-accent-text)}.library-progress{position:absolute;bottom:6px;left:18px;right:18px;height:3px;border-radius:4px;overflow:hidden}.library-progress i{display:block;height:100%;width:0;background:var(--lime)}.library-audio-kind{display:flex;gap:6px;align-items:center;font-size:14px;color:var(--muted)}.library-audio-kind svg{width:20px}
.library-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.library-section-title button{min-height:48px;color:var(--sc-accent-text)}
.library-card-menu{position:absolute;right:8px;top:20px}.library-card-menu summary{list-style:none;display:grid;place-items:center;min-width:44px;min-height:44px;font-size:20px;cursor:pointer;color:var(--sc-accent-text)}.library-card-menu summary::-webkit-details-marker{display:none}.library-card-menu>div{position:absolute;right:0;top:44px;z-index:8;width:220px;padding:12px;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 24px #0006}.library-card-menu:not([open])>div{display:none}.library-card-menu button{min-height:48px;width:100%;text-align:left}
.library-selection{padding:16px;margin:24px 0 16px;border:1px solid var(--line);border-radius:20px;background:var(--white);text-align:center}.library-selection p{font-size:15px;margin:0 0 12px;color:var(--muted);overflow-wrap:anywhere}.library-selection>div{display:flex;flex-wrap:wrap;gap:10px}.library-selection button{flex:1 1 180px;min-height:60px;white-space:normal;font-size:17px}.library-selection small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:12px}.library-import{border:1px solid var(--line);padding:14px;border-radius:16px}.library-import summary{min-height:48px;cursor:pointer}.library-import .button{min-height:56px;margin:8px 0;width:100%}.library-import p{font-size:13px;line-height:1.5;color:var(--muted)}.library-empty{padding:24px 12px;line-height:1.6}
@media(max-width:380px){.library-beat-card{padding:17px 12px;grid-template-columns:58px minmax(0,1fr);gap:10px}.library-audition{width:58px;min-height:58px}.library-name{font-size:18px;padding-right:32px}.library-rhythm{gap:4px}.library-rhythm i{height:23px}.library-tabs button{font-size:16px}.library-card-content p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.library-reference *{animation:none!important;transition:none!important}}

.library-tabs button,.library-name,.library-heading button{border:0;background:none}.library-audition{background:transparent}
.reference-studio:has(#libraryReference) #songHeaderFields{display:none}
.library-search>.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.library-tempo-note{font-size:12px;color:var(--muted);margin:4px 0 14px;line-height:1.5}
.library-beat-card:not(:has(.library-card-menu)) .library-name{padding-right:0}
.library-beat-card{padding-top:14px;padding-bottom:14px}.library-heading{margin-bottom:12px}.library-search{margin-top:12px}.library-reference h2{margin:12px 0}
[data-purple-glow=true] .library-tabs button[aria-pressed=true],[data-purple-glow=true] .library-beat-card.previewing .library-audition{background:linear-gradient(135deg,#8b4ee0,#6c35b9);color:#fff;border-color:#bd8bff}
[data-purple-glow=true] .library-rhythm .lit{background:linear-gradient(135deg,#b079ff,#9e59ed);border-color:#bd8bff}
.library-filters [hidden]{display:none}

.library-card-menu>div{position:fixed;right:20px;top:auto;z-index:60;width:min(260px,calc(100vw - 40px));max-height:50vh;overflow:auto}.library-card-menu summary{min-height:56px;min-width:48px}

.library-search[hidden]{display:none}.library-heading h1{flex:1}.library-heading{gap:8px}.library-heading>button{padding:8px}.library-heading>button svg{width:24px;height:24px}.library-heading #librarySearchToggle{border:1px solid var(--line);border-radius:14px;background:var(--white)}.library-tempo-note{font-size:12px}
/* Five stable, readable destinations; export uses the same player clearance. */
.reference-studio .studio-tabs{grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:6px;gap:2px}
.reference-studio .studio-tabs button{min-width:0;font-size:12px;padding-inline:2px}
.reference-studio .studio-export{display:grid;gap:18px;padding-bottom:24px;min-width:0}
.reference-studio .studio-export .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.reference-studio .studio-export input{min-width:0;max-width:100%}
.reference-studio .compose-scroll{width:100%;min-width:0;max-width:100%;overflow:auto;touch-action:pan-x pan-y}
.reference-studio .compose-canvas{min-width:0}
.reference-studio .compose-zoom{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0}
.reference-studio .compose-zoom button{min-height:44px;padding:8px;font-size:12px}
.reference-studio .compose-bottom{display:block}
.reference-studio .compose-empty-expand{display:none}
.reference-studio .compose-drag-ghost.magnetic{border:2px solid #e2c7ff;box-shadow:0 0 12px #b27af680}
.reference-studio .compose-toolbar{display:grid;gap:10px;margin-bottom:12px}
.reference-studio .compose-trim-handle{position:absolute;bottom:0;z-index:5;width:44px;min-height:44px;padding:3px;border:1px solid #c6a0ff;border-radius:6px;background:#2a1b40;color:#fff;font-size:12px;touch-action:none}
.reference-studio .compose-trim-handle.start{left:0}.reference-studio .compose-trim-handle.end{right:0}
.reference-studio .compose-item:has(.compose-trim-handle){min-height:104px}
.reference-studio .compose-lane:has(.compose-trim-handle){min-height:112px}
.reference-studio .studio-arrange .compose-lane.clip .compose-lane-track{height:128px}
.reference-studio .studio-arrange .compose-item.clip{height:112px}
.reference-studio .compose-lane.backing .compose-item{background:#183d43;border-color:#66b5be}
.reference-studio .compose-lane.vocal .compose-item{background:#442444;border-color:#d38bbf}

/* Keep complete rows visible; the page scrolls vertically, timeline scrolls horizontally. */
.reference-studio .studio-arrange .compose-scroll{max-height:none;overscroll-behavior:auto}
.reference-studio .compose-item.clip .compose-move-handle{position:absolute;bottom:0;left:calc(50% - 22px);z-index:5;background:#251c34;border:1px solid #b6a2cd;border-radius:6px}

/* The listening disclosure opens above the fixed player; do not clip its controls. */
.reference-studio .session{overflow:visible}
.reference-studio .project-listening-options[open]{padding:12px;border:1px solid var(--studio-line);box-shadow:0 8px 24px #0008;width:min(420px,calc(100vw - 48px))}
.reference-studio .project-listening-options [data-listening-boost]{min-height:48px;white-space:normal}

.reference-studio .compose-lane.pattern .compose-item{background:#452f69;color:#f4ebff;border-color:#b08be8}.reference-studio .compose-lane-name[data-pattern-row]{text-align:left;white-space:normal;cursor:pointer;min-height:56px}.pattern-inline-editor{margin-top:16px}.pattern-inline-editor>.panel{margin:12px 0}.pattern-inline-editor .phrase-step-scroll{max-width:100%}

/* Editable length and finite backing repeat are separate, compact actions. */
.reference-studio .studio-grid-range{height:auto;min-height:44px;flex-wrap:wrap;gap:8px}
.studio-loop-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-top:16px;padding:12px;border:1px solid #443553;border-radius:14px}
.studio-loop-controls .field{flex:1 1 140px;min-width:0;margin:0}.studio-loop-controls select{width:100%;min-height:48px}.studio-loop-controls button{flex:1 1 150px;min-height:56px;white-space:normal}.studio-loop-controls p{flex-basis:100%;margin:0;font-size:12px;line-height:1.5;color:var(--studio-muted)}
