.shared-segue-drawer{height:min(900px,94vh)!important;background:#071925;color:#e9f3f8;border-top:2px solid #24a8f4}.shared-segue-drawer .offcanvas-header{height:58px;padding:8px 14px;border-bottom:1px solid #27475c}.shared-segue-drawer .offcanvas-header h2,.shared-segue-drawer .offcanvas-header p{margin:0}.shared-segue-drawer .offcanvas-header p{color:#7f9aad}.shared-segue-drawer .offcanvas-body{padding:0;overflow:auto}.shared-segue-studio{min-width:900px;background:#071925}.segue-studio-toolbar{min-height:58px;padding:7px 12px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border-bottom:1px solid #25465c;background:#0b2130}.segue-studio-toolbar small{color:#46baff}.segue-studio-toolbar h2{margin:1px 0;font-size:18px}.studio-segue-toggle{display:flex;align-items:center;gap:8px}.studio-segue-toggle span{display:flex;flex-direction:column}.studio-segue-toggle small{color:#7e99aa}.segue-transition-strip{min-height:62px;padding:7px 12px;display:grid;grid-template-columns:minmax(210px,1fr) 145px auto auto minmax(280px,1fr);gap:8px;align-items:center;border-bottom:1px solid #203e52}.transition-preset{display:flex;flex-direction:column}.transition-preset span{color:#7f9aac;font-size:10px}.segue-transition-strip label{display:flex;flex-direction:column;gap:3px;font-size:10px}.segue-transition-strip .ciq-input{height:30px;padding:3px 6px}.studio-legend{display:flex;justify-content:flex-end;gap:6px}.studio-legend span{padding:3px 6px;border:1px solid #31536a;border-radius:3px;font-size:9px;white-space:nowrap}.studio-legend .selected{color:#62d9ff;border-color:#168ec4}.studio-legend .overlay{color:#d49bff;border-color:#8c4db5}.studio-legend .next{color:#5fe0c7;border-color:#178e7c}.multitrack-ruler{height:30px;margin-left:155px;padding:0 8px;display:flex;justify-content:space-between;align-items:end;color:#728da0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(16.666% - 1px),#1e3a4d calc(16.666% - 1px),#1e3a4d 16.666%)}.multitrack-stage{position:relative;overflow:hidden}.multitrack-boundary,.multitrack-playhead{position:absolute;z-index:8;top:0;bottom:0;width:1px;pointer-events:none}.multitrack-boundary{background:#ffd05b;box-shadow:0 0 5px #000}.multitrack-boundary b{position:absolute;top:0;left:-17px;padding:1px 4px;background:#ffd05b;color:#102130;font-size:8px}.multitrack-playhead{z-index:9;background:#fff;box-shadow:0 0 4px #fff}.studio-lane{height:112px;display:grid;grid-template-columns:155px 1fr;border-top:1px solid #244357}.studio-lane.active{box-shadow:inset 3px 0 #32aff7}.studio-lane>header{padding:8px;display:flex;min-width:0;flex-direction:column;position:relative;background:#0a2131}.studio-lane>header small{color:#43b9fc}.studio-lane>header b,.studio-lane>header span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-lane>header span{color:#809caf;font-size:10px}.studio-lane>header button{margin-top:auto;padding:2px 5px;border:1px solid #31536a;background:#102e42;color:#9ec1d7;font-size:10px}.studio-lane-track{position:relative;overflow:hidden;background:repeating-linear-gradient(90deg,#071925 0,#071925 calc(100% - 1px),#183447 calc(100% - 1px),#183447 100%)}.studio-lane-track>audio{display:none}.studio-clip{height:82px;min-width:30px;position:absolute;top:14px;overflow:hidden;border:1px solid #1c87bd;border-radius:3px;background:#0e4f72;box-shadow:0 5px 14px #0005;cursor:grab}.studio-lane.selected .studio-clip{border-color:#55d6ff;background:#0d5d7b}.studio-lane.overlay .studio-clip,.studio-lane.empty-voice .studio-clip{border-color:#a759d2;background:#45235c}.studio-lane.next .studio-clip{border-color:#20aa94;background:#0b5958}.studio-clip canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.75}.studio-gain-line,.studio-gain-points{position:absolute;inset:0}.studio-gain-line svg{width:100%;height:100%}.studio-gain-line polyline{fill:none;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 1px #000)}.gain-point{width:10px;height:10px;padding:0;position:absolute;z-index:5;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#159eea;box-shadow:0 1px 4px #000;cursor:move}.voice-slot-empty{position:absolute;z-index:6;inset:0;padding:7px 10px;display:grid;grid-template-columns:28px 180px 1fr;gap:8px;align-items:center;background:#321847dc}.voice-slot-empty>i{font-size:21px;color:#d495ff}.voice-slot-empty>span{color:#bca2cb;font-size:10px}.voice-slot-empty>div{display:flex;justify-content:flex-end;gap:5px}.voice-slot-empty .ciq-btn{height:28px;font-size:10px}.segue-studio-bottom-bar{display:grid;grid-template-columns:340px 1fr;border-top:1px solid #23475e;background:#0a1b29}.studio-zoom{padding:6px 10px;display:flex;align-items:center;gap:5px}.studio-zoom b{margin-right:3px;font-size:10px}.studio-zoom button{height:28px;padding:0 8px;border:1px solid #365b72;border-radius:3px;background:#102d42;color:#dceaf3}.studio-zoom input{width:105px;accent-color:#168fff}.studio-zoom output{min-width:27px;color:#60c4ff;font-size:10px}.segue-studio-bottom-bar .ciq-transport{border-top:0}.segue-inspector{min-height:92px;padding:9px 12px;display:grid;grid-template-columns:minmax(200px,1fr) 135px 160px 130px 115px 115px auto;gap:8px;align-items:end;border-top:1px solid #2e536a;background:#0b2130}.segue-inspector h3,.segue-inspector p{margin:0}.segue-inspector p{color:#819bab;font-size:10px}.segue-inspector label{display:flex;flex-direction:column;gap:3px;font-size:10px}.segue-inspector label small{color:#718b9c}.segue-inspector .ciq-input{height:31px;padding:4px 7px}.inspector-actions{display:flex;gap:5px}.voice-track-choices{margin-bottom:10px;padding:9px;border:1px solid #31536a;background:#092131}.voice-choice,.voice-future{width:100%;min-height:52px;padding:7px 9px;display:grid;grid-template-columns:35px 1fr;gap:8px;align-items:center;text-align:left;border:1px solid #29506a;background:#0c2b40;color:#e8f2f7}.voice-choice:hover{background:#124462}.voice-choice i,.voice-future i{font-size:21px;color:#55bdff}.voice-choice span,.voice-future span{display:flex;flex-direction:column}.voice-choice small,.voice-future small{color:#84a0b2}.voice-future{margin:5px 0;opacity:.65}.voice-track-choices>strong{display:block;margin:9px 0 2px;color:#8eabba;font-size:10px;text-transform:uppercase}@media(max-width:1150px){.segue-transition-strip{grid-template-columns:1fr 145px auto auto}.studio-legend{display:none}.segue-studio-bottom-bar{grid-template-columns:1fr}.segue-inspector{grid-template-columns:repeat(3,1fr)}.inspector-actions{grid-column:1/4}.voice-slot-empty{grid-template-columns:28px 1fr}.voice-slot-empty>span{display:none}.voice-slot-empty>div{grid-column:1/3;justify-content:flex-start}}

.studio-lane-track{cursor:crosshair}.studio-clip{touch-action:none}.studio-clip.dragging{z-index:7;cursor:grabbing;box-shadow:0 0 0 2px #4cc4ff,0 8px 20px #0009}.studio-lane.position-locked .studio-clip{cursor:not-allowed;border-style:double}.studio-lane.position-locked>header small{color:#ffc24d}.studio-media-markers{position:absolute;z-index:3;inset:0;pointer-events:none}.studio-media-marker{--marker:#53aff4;position:absolute;top:0;bottom:0;width:1px;background:var(--marker);filter:drop-shadow(0 0 2px #000)}.studio-media-marker:before{content:"";position:absolute;top:0;left:-3px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid var(--marker)}.studio-media-marker b{position:absolute;top:7px;left:3px;padding:1px 3px;border-radius:2px;background:#06111dcc;color:var(--marker);font-size:7px;white-space:nowrap}.studio-media-marker.cue{--marker:#e66dd7}.studio-media-marker.intro{--marker:#53aff4}.studio-media-marker.hookstart,.studio-media-marker.hookend{--marker:#8edb55}.studio-media-marker.vocal{--marker:#f2c84d}.studio-media-marker.outro{--marker:#ff8248}.studio-media-marker.mixout{--marker:#c56aff}.studio-hook-region{position:absolute;top:0;bottom:0;background:#8edb5523;border-left:1px solid #8edb55;border-right:1px solid #8edb55}.studio-gain-line{z-index:4}.studio-gain-points{z-index:5}.multitrack-snap{position:absolute;z-index:10;top:0;bottom:0;width:1px;pointer-events:none;background:#ff4fd8;box-shadow:0 0 6px #ff4fd8}.multitrack-snap b{position:absolute;top:18px;left:3px;padding:1px 3px;background:#ff4fd8;color:#101b24;font-size:7px}.ciq-transport .transport-record{color:#ff5b62}.ciq-transport .transport-record.recording{color:#fff;background:#d32635;border-color:#ff6870;animation:record-pulse 1s infinite}@keyframes record-pulse{50%{box-shadow:0 0 0 4px #f23b4750}}.voice-slot-empty .record{border-color:#c44752;color:#ff969b}.voice-recording-review{padding:8px 12px;display:grid;grid-template-columns:minmax(230px,1fr) minmax(290px,1.4fr) minmax(180px,.8fr) auto auto;gap:8px;align-items:center;border-top:1px solid #77414a;border-bottom:1px solid #2c4d61;background:#241822}.voice-recording-review[hidden]{display:none}.voice-recording-review>div:first-child{display:flex;align-items:center;gap:9px}.voice-recording-review>div:first-child>i{color:#ff5b62;font-size:20px}.voice-recording-review>div:first-child>span{display:flex;flex-direction:column}.voice-recording-review small{color:#a78e9a}.voice-recording-review audio{display:none}.recording-take-transport{height:36px;display:flex;align-items:center;gap:6px;padding:3px 6px;border:1px solid #4d3d4c;border-radius:4px;background:#0b1c29}.recording-take-transport button{width:29px;height:28px;border:1px solid #b34b55;border-radius:3px;background:#57212a;color:#fff}.recording-take-transport time{min-width:120px;color:#849dac;font-size:10px;font-variant-numeric:tabular-nums}.recording-take-transport time b{color:#ff8087}.recording-take-transport input{flex:1;accent-color:#e94855}.voice-recording-review .ciq-input{height:32px}.segue-inspector{grid-template-columns:minmax(250px,1fr) 145px 115px 115px 190px auto}.studio-snap-toggle{align-self:center!important;display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important}.studio-snap-toggle input{accent-color:#168fff}.segue-inspector input:disabled{opacity:.6;border-color:#815c2b}.voice-slot-empty{z-index:7}@media(max-width:1250px){.voice-recording-review{grid-template-columns:1fr 1fr}.voice-recording-review .ciq-input{grid-column:1/2}.segue-inspector{grid-template-columns:repeat(3,1fr)}}
.studio-lane.volume-editing .studio-clip{cursor:crosshair;box-shadow:0 0 0 2px #f0c84b,0 6px 16px #0007}.studio-lane>header button.active{border-color:#f0c84b;background:#584b19;color:#fff3a6}.studio-lane.volume-editing .studio-gain-line polyline{stroke:#fff59d;stroke-width:2}.studio-lane.volume-editing .gain-point{background:#f0c84b}
.segue-toolbar-actions{display:flex;align-items:center;gap:14px}.segue-toolbar-actions>.ciq-btn{white-space:nowrap}
.voice-record-mode{min-height:66px;padding:7px 12px;display:grid;grid-template-columns:minmax(270px,1fr) auto minmax(420px,1.5fr);gap:14px;align-items:center;border-bottom:1px solid #29495d;background:#091d2b}.voice-record-mode>div:first-child{display:flex;flex-direction:column}.voice-record-mode>div:first-child span,.voice-record-mode>small{color:#819cad;font-size:10px}.record-mode-switch{display:flex;border:1px solid #31556c;border-radius:4px;overflow:hidden}.record-mode-switch button{height:32px;padding:0 10px;border:0;border-right:1px solid #31556c;background:#0d2b3f;color:#93adbd}.record-mode-switch button:last-child{border-right:0}.record-mode-switch button.active{background:#167fc0;color:#fff}.guided-record-steps{margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);counter-reset:guided;list-style:none}.guided-record-steps li{min-height:30px;padding:7px 6px 5px 25px;position:relative;border-top:1px solid #315167;border-bottom:1px solid #315167;color:#7893a5;font-size:9px;white-space:nowrap}.guided-record-steps li:first-child{border-left:1px solid #315167;border-radius:4px 0 0 4px}.guided-record-steps li:last-child{border-right:1px solid #315167;border-radius:0 4px 4px 0}.guided-record-steps li:before{counter-increment:guided;content:counter(guided);width:15px;height:15px;position:absolute;left:6px;top:6px;display:grid;place-items:center;border:1px solid #47677b;border-radius:50%;font-size:8px}.guided-record-steps li.active{background:#173b52;color:#fff;border-color:#27a9f2}.guided-record-steps li.active:before{background:#1d9ce6;border-color:#5bc6ff}.guided-record-steps li.done{color:#65d7b7}.guided-record-steps li.done:before{content:"✓";background:#176d5c;border-color:#36b99a}.voice-record-mode>small{grid-column:1/-1;margin-top:-8px;color:#53bff8}.ciq-transport .transport-record{width:auto!important;min-width:112px;padding:0 10px!important;gap:6px}.ciq-transport .transport-record.armed{color:#0d1c26;background:#f0b73c;border-color:#ffd16a;animation:armed-pulse 1.2s infinite}@keyframes armed-pulse{50%{box-shadow:0 0 0 4px #f0b73c38}}.segue-hotkey-scaffold{padding:8px 12px;border-top:1px solid #2b4b60;background:#081a27}.segue-hotkey-scaffold>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.segue-hotkey-scaffold>header>div{display:flex;align-items:center;gap:8px}.segue-hotkey-scaffold>header i{color:#42baff}.segue-hotkey-scaffold>header span{display:flex;flex-direction:column}.segue-hotkey-scaffold>header small{color:#7894a6}.future-chip{padding:3px 7px!important;display:block!important;border:1px solid #66552b;border-radius:10px;color:#e0bd60;font-size:9px}.segue-hotkey-bank{display:grid;grid-template-columns:repeat(8,minmax(90px,1fr));gap:6px}.segue-hotkey-bank button{min-height:48px;padding:5px 7px;display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto;gap:1px 6px;text-align:left;border:1px dashed #36566a;border-radius:4px;background:#0b2231;color:#7892a2;opacity:.72}.segue-hotkey-bank kbd{grid-row:1/3;width:22px;height:22px;display:grid;place-items:center;align-self:center;border:1px solid #47697e;border-radius:3px;background:#102f43;color:#a7c0cf}.segue-hotkey-bank button span{font-size:10px}.segue-hotkey-bank button small{font-size:8px;color:#607b8d}@media(max-width:1250px){.voice-record-mode{grid-template-columns:1fr auto}.guided-record-steps{grid-column:1/-1}.voice-record-mode>small{margin-top:0}.segue-hotkey-bank{grid-template-columns:repeat(4,1fr)}}
.studio-lane.recording-target .voice-slot-empty,.studio-lane.take-ready .voice-slot-empty{display:none}.studio-lane.recording-target .studio-clip{border-color:#ff5d67;box-shadow:0 0 0 2px #ff5d6745,0 6px 16px #0007}.studio-lane.take-ready .studio-clip{border-color:#65d9b8}
.segue-transition-strip.with-recording{grid-template-columns:minmax(165px,.65fr) 135px auto auto minmax(210px,.75fr) minmax(500px,1.7fr)}.transition-recording-compact{min-width:0;display:grid;grid-template-columns:auto minmax(245px,1fr) auto;grid-template-rows:30px 13px;column-gap:8px;align-items:center;padding-left:9px;border-left:1px solid #2c4d61}.transition-recording-compact .record-mode-switch{grid-column:1;grid-row:1/3}.transition-recording-compact .record-mode-switch button{height:29px;padding:0 8px;font-size:9px}.transition-recording-compact .guided-record-steps{grid-column:2;grid-row:1}.transition-recording-compact .guided-record-steps li{min-height:27px;padding:6px 3px 4px 22px}.transition-recording-compact .guided-record-steps li:before{left:4px;top:5px}.transition-recording-compact>small{grid-column:2;grid-row:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53bff8;font-size:8px}.transition-recording-compact .record-mode-description{grid-column:3;grid-row:1/3;padding:3px 6px;border:1px solid #31536a;border-radius:9px;color:#93adbd;font-size:8px;white-space:nowrap}.transition-recording-compact .guided-record-steps[hidden]+small{grid-row:1/3;align-self:center}.transition-recording-compact .guided-record-steps[hidden]~.record-mode-description{border-color:#6c4560;color:#d5a7ca}@media(max-width:1380px){.segue-transition-strip.with-recording{grid-template-columns:minmax(160px,1fr) 130px auto auto minmax(220px,1fr)}.transition-recording-compact{grid-column:1/-1;border-left:0;border-top:1px solid #203e52;padding:5px 0 0}.segue-transition-strip.with-recording{min-height:105px}}
.segue-cue-routing{min-height:72px;padding:7px 12px;display:grid;grid-template-columns:minmax(275px,1.15fr) minmax(165px,.7fr) minmax(220px,1fr) minmax(220px,1fr) auto;grid-template-rows:auto 15px;gap:5px 9px;align-items:center;border-bottom:1px solid #24536a;background:#082634}.cue-isolation-state{display:flex;align-items:center;gap:10px}.cue-isolation-state>i{font-size:24px;color:#60dcb9}.cue-isolation-state>span{display:flex;flex-direction:column}.cue-isolation-state b{color:#b7f9e7}.cue-isolation-state small{color:#7fa99f}.segue-cue-routing label{display:flex;flex-direction:column;gap:3px;color:#93afbf;font-size:9px}.segue-cue-routing .ciq-input{height:30px;padding:3px 6px}.segue-cue-routing>.ciq-btn{height:31px;align-self:end;white-space:nowrap}.cue-device-status{grid-column:2/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71cfae;font-size:9px}.cue-device-status[data-state="info"]{color:#f1c55a}.cue-device-status[data-state="error"]{color:#ff7b82}@media(max-width:1250px){.segue-cue-routing{grid-template-columns:1fr 1fr 1fr}.cue-isolation-state{grid-column:1/-1}.segue-cue-routing>.ciq-btn{grid-column:3}.cue-device-status{grid-column:1/3}}


/* Segue Studio cleanup: monitoring is optional, editing stays close to the selected lane. */
.shared-segue-studio{position:relative;overflow:hidden}
.segue-monitoring-accordion{border-bottom:1px solid #24536a;background:#082634}
.segue-monitoring-accordion>summary{
    min-height:38px;padding:6px 12px;display:flex;align-items:center;justify-content:space-between;
    list-style:none;cursor:pointer;color:#dbeaf2
}
.segue-monitoring-accordion>summary::-webkit-details-marker{display:none}
.segue-monitoring-accordion>summary>span{display:flex;align-items:center;gap:9px}
.segue-monitoring-accordion>summary>span>i{color:#59d6b6}
.segue-monitoring-accordion>summary>span>span{display:flex;flex-direction:column}
.segue-monitoring-accordion>summary small{color:#7d9eaf;font-size:9px}
.segue-monitoring-accordion>summary>i{color:#6d91a5;transition:transform .15s}
.segue-monitoring-accordion[open]>summary>i{transform:rotate(180deg)}
.segue-monitoring-accordion .segue-cue-routing{border-top:1px solid #1d4052;border-bottom:0}

.segue-edit-inspector{
    padding:9px 12px;
    display:grid;
    grid-template-columns:minmax(520px,1.35fr) minmax(520px,1fr);
    gap:10px;
    border-top:1px solid #2e536a;
    background:#0b2130
}
.transition-assist-block,.selected-lane-block{
    min-width:0;padding:9px;border:1px solid #294c61;border-radius:5px;background:#09202e
}
.transition-assist-block{
    display:grid;
    grid-template-columns:minmax(180px,1fr) 125px auto auto 125px auto;
    gap:7px;align-items:end
}
.selected-lane-block{
    display:grid;
    grid-template-columns:minmax(180px,1fr) 125px 110px 110px minmax(145px,.9fr) auto;
    gap:7px;align-items:end
}
.inspector-heading{align-self:center}
.inspector-heading>span{display:flex;align-items:center;gap:8px}
.inspector-heading>span>i{font-size:17px;color:#4dbdf2}
.inspector-heading>span>span{display:flex;flex-direction:column}
.inspector-heading b{font-size:11px}
.inspector-heading small{font-size:9px;color:#7897a8}
.transition-assist-block label,.selected-lane-block label{display:flex;flex-direction:column;gap:3px;font-size:9px}
.transition-assist-block label small,.selected-lane-block label small{color:#6f8d9d}
.transition-assist-block .ciq-input,.selected-lane-block .ciq-input{height:30px;padding:3px 6px}
.transition-assist-block .ciq-btn,.selected-lane-block .ciq-btn{height:30px;white-space:nowrap}
.transition-assist-block .beat-match{border-color:#6a4b86;color:#dcb5ff}
.beat-match-status{
    grid-column:2/-1;min-height:18px;padding-top:2px;color:#789aab;font-size:9px
}
.beat-match-status[data-state="ready"]{color:#5fe0b5}
.beat-match-status[data-state="warning"]{color:#f1bd58}
.beat-match-status[data-state="info"]{color:#73bce8}
.segue-edit-inspector .transition-recording-compact{
    grid-column:1/-1;border-left:0;border-top:1px solid #294c61;padding:7px 0 0
}

/* VoiceTrack Carts: overlay drawer by default, workspace split when pinned. */
.segue-voice-drawer{
    position:absolute;z-index:40;top:58px;right:0;bottom:0;width:min(470px,42vw);
    display:flex;flex-direction:column;
    transform:translateX(102%);transition:transform .18s ease;
    background:#081b28;border-left:1px solid #31566d;box-shadow:-12px 0 30px #0008
}
.shared-segue-studio.voice-drawer-open .segue-voice-drawer{transform:translateX(0)}
.segue-voice-drawer>header{
    min-height:43px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid #2a4a5d;background:#0b2534
}
.segue-voice-drawer>header>span{display:flex;align-items:center;gap:8px}
.segue-voice-drawer>header>span>i{color:#56c9ed}
.segue-voice-drawer>header>span>span{display:flex;flex-direction:column}
.segue-voice-drawer>header small{color:#7897a8;font-size:8px}
.segue-voice-drawer>header>div{display:flex;gap:5px}
.segue-voice-drawer>header button{
    width:29px;height:29px;border:1px solid #31566d;border-radius:3px;background:#0d2b3b;color:#a9c5d2
}
.segue-voice-drawer>header button.active{color:#52d9b5;border-color:#278a70;background:#0c3b31}
.voice-drawer-content{min-height:0;flex:1;overflow:auto;padding:7px}
.voice-drawer-content .segue-cart-console{margin:0}

.shared-segue-studio.voice-drawer-pinned.voice-drawer-open{
    padding-right:min(470px,42vw)
}
.shared-segue-studio.voice-drawer-pinned .segue-voice-drawer{
    position:absolute;box-shadow:none
}

@media(max-width:1250px){
    .segue-edit-inspector{grid-template-columns:1fr}
    .transition-assist-block,.selected-lane-block{grid-template-columns:repeat(3,1fr)}
    .inspector-heading{grid-column:1/-1}
    .beat-match-status{grid-column:1/-1}
    .selected-lane-block .inspector-actions{grid-column:1/-1}
}
@media(max-width:950px){
    .segue-voice-drawer{width:75vw}
    .shared-segue-studio.voice-drawer-pinned.voice-drawer-open{padding-right:0}
    .transition-assist-block,.selected-lane-block{grid-template-columns:1fr 1fr}
}


/* Segue Studio inspector alignment rebase.
   Keep the earlier VoiceTrack drawer behaviour; only simplify the lower controls. */
.segue-studio-bottom-bar{
    grid-template-columns:300px minmax(0,1fr);
}
.segue-studio-bottom-bar .ciq-transport{
    min-width:0;
    overflow:hidden;
}
.segue-studio-bottom-bar .transport-scrub{
    min-width:60px;
    flex:1 1 auto;
}
.transport-tail{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:5px;
    padding-left:6px;
    border-left:1px solid #31536a;
    background:#0a1b29;
}
.transport-tail .transport-volume{
    width:86px;
    flex:0 0 86px;
}
.ciq-transport .transport-text-btn{
    width:auto;
    min-width:92px;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    white-space:nowrap;
}
.ciq-transport .transport-text-btn.save{
    min-width:112px;
    background:linear-gradient(#168fff,#0964b9);
    border-color:#30a5ff;
}

/* Two balanced inspector cards. Each card is simply:
   heading -> aligned control row -> optional status. */
.segue-edit-inspector{
    padding:8px 10px 10px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    align-items:stretch;
}
.transition-assist-block,
.selected-lane-block{
    min-width:0;
    min-height:116px;
    padding:9px 10px;
    display:flex;
    flex-direction:column;
    gap:8px;
    border:1px solid #294c61;
    border-radius:5px;
    background:#09202e;
}
.inspector-heading{
    min-height:34px;
    display:flex;
    align-items:center;
}
.inspector-heading>span{
    display:flex;
    align-items:center;
    gap:8px;
}
.inspector-heading>span>i{
    flex:0 0 auto;
    font-size:17px;
    color:#4dbdf2;
}
.inspector-heading>span>span{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.inspector-heading b{
    font-size:11px;
    line-height:1.15;
}
.inspector-heading small{
    color:#7897a8;
    font-size:9px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.inspector-control-row{
    min-width:0;
    display:grid;
    gap:7px;
    align-items:end;
}
.transition-controls{
    grid-template-columns:minmax(120px,1.15fr) auto auto minmax(105px,.9fr) auto;
}
.selected-controls{
    grid-template-columns:minmax(125px,1.2fr) minmax(95px,.8fr) minmax(95px,.8fr) minmax(145px,1fr);
}
.inspector-control-row label{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
    margin:0;
    color:#93afbf;
    font-size:9px;
}
.inspector-control-row label>span:first-child{
    min-height:11px;
    line-height:11px;
}
.inspector-control-row label small{
    min-height:11px;
    color:#718b9c;
    font-size:8px;
    line-height:11px;
}
.inspector-control-row .ciq-input{
    width:100%;
    height:31px;
    min-width:0;
    padding:4px 7px;
}
.inspector-control-row>.ciq-btn{
    height:31px;
    white-space:nowrap;
}
.transition-controls>.beat-match{
    border-color:#6a4b86;
    color:#dcb5ff;
}
.beat-match-status{
    min-height:16px;
    margin:0;
    padding:0;
    color:#789aab;
    font-size:9px;
    line-height:16px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.beat-match-status[data-state="ready"]{color:#5fe0b5}
.beat-match-status[data-state="warning"]{color:#f1bd58}
.beat-match-status[data-state="info"]{color:#73bce8}

.studio-snap-toggle .snap-box{
    height:31px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 7px;
    border:1px solid #31536a;
    border-radius:3px;
    background:#0c2b40;
    color:#d8e8ef;
    font-size:9px;
}
.studio-snap-toggle .snap-box input{
    flex:0 0 auto;
    margin:0;
}

/* Retire the old card-internal action layout; save/reset are now in transport. */
.segue-edit-inspector .inspector-actions{display:none!important}

/* Responsive behaviour uses simple stacking; no overlay or absolute control placement. */
@media(max-width:1350px){
    .segue-edit-inspector{
        grid-template-columns:1fr;
    }
}
@media(max-width:1050px){
    .transition-controls{
        grid-template-columns:1fr 1fr 1fr;
    }
    .selected-controls{
        grid-template-columns:1fr 1fr;
    }
    .transport-tail .transport-volume,
    .transport-tail .volume-icon{
        display:none;
    }
}
@media(max-width:800px){
    .segue-studio-bottom-bar{
        grid-template-columns:1fr;
    }
    .transition-controls,
    .selected-controls{
        grid-template-columns:1fr;
    }
    .transport-tail .transport-text-btn{
        min-width:38px;
        width:38px;
        padding:0;
    }
    .transport-tail .transport-text-btn span{
        display:none;
    }
}


/* Final Segue Studio visual tidy:
   1. Inspector headings belong to the left edge of each card.
   2. When the VoiceTrack drawer is open, use the available viewport height
      instead of leaving a large unused area below the inspector. */
.transition-assist-block .inspector-heading,
.selected-lane-block .inspector-heading{
    justify-content:flex-start !important;
    text-align:left !important;
}
.transition-assist-block .inspector-heading>span,
.selected-lane-block .inspector-heading>span{
    width:100%;
    justify-content:flex-start !important;
    text-align:left !important;
}

/* Let the studio consume the available screen rather than ending immediately
   after the inspector and exposing a large blank page area. */
.segue-studio-shell{
    min-height:calc(100vh - 18px);
    display:flex;
    flex-direction:column;
}
.segue-studio-shell>.segue-studio-main{
    flex:0 0 auto;
}
.segue-studio-shell>.segue-edit-inspector{
    flex:0 0 auto;
}

/* The unused remainder belongs to the studio surface, not a separate blank
   page. Keep the inspector itself compact and anchored directly under transport. */
.segue-studio-shell::after{
    content:"";
    flex:1 1 auto;
    min-height:0;
    background:#071b28;
}


/* Final drawer sizing: shrink the shared Segue Studio to its rendered content.
   The VoiceTrack Carts drawer remains absolutely contained by this surface and
   therefore does not participate in height calculation. */
.shared-segue-drawer{
    height:fit-content!important;
    max-height:94vh!important;
    min-height:0!important;
}
.shared-segue-drawer .offcanvas-body{
    height:auto!important;
    min-height:0!important;
    max-height:calc(94vh - 58px);
    overflow:auto;
}
.shared-segue-studio{
    height:auto!important;
    min-height:0!important;
}

/* Remove the previous filler treatment; the drawer itself now ends at content. */
.segue-studio-shell{
    min-height:0!important;
    display:block!important;
}
.segue-studio-shell::after{
    display:none!important;
    content:none!important;
}
