
/* SoulOne LIVE v0.8 — quiet stage console */
.meter-title--simple{margin:13px 4px 7px;display:flex;align-items:center}
.meter-title--simple .legend{display:none!important}
.meter-title--simple strong{font-size:17px;font-weight:800;letter-spacing:-.025em}
.setlist-order-hint{display:block;color:#68849b;font-size:11px;margin:5px 2px 8px}
.reorder-setlist .songitem{gap:7px;border:1px solid transparent;border-bottom-color:#e4edf5;border-radius:8px;padding:9px 5px}
.reorder-setlist .songitem:hover{background:#f0f7fd}
.reorder-setlist .songitem.selected{border-color:#b6d9f8}
.reorder-setlist .songitem.is-dragging{opacity:.45}
.reorder-setlist .songitem.drop-target{box-shadow:inset 0 3px #0b7ad6;background:#e9f4ff}
.song-grip{cursor:grab;touch-action:none;font-size:20px;line-height:28px;color:#7e9bb4;padding:2px 3px;user-select:none;flex-shrink:0}
.reorder-actions{display:flex;flex-direction:column;gap:3px;flex:0 0 auto}
.reorder-actions button{width:30px;height:26px;padding:0;border-radius:6px;font-weight:850;background:#f4f9fd}
.reorder-actions button:disabled{opacity:.22}
.reorder-setlist .songitem .name{min-width:0;flex:1}
.reorder-setlist .song-meta{font-size:10px;white-space:nowrap}
#mixer.clean-mixer{gap:8px}
#mixer .clean-group{border-radius:12px}
#mixer .striphead .track-title{overflow-wrap:anywhere}
.live-bottom-controls{border-radius:12px!important;box-shadow:none!important;background:#fff!important}
@media(max-width:980px){.reorder-setlist .song-meta{display:none}.live-bottom-controls{gap:8px!important;flex-wrap:wrap}}

/* v0.8 editing affordances — no permanent up/down arrow column */
.reorder-setlist .songitem{gap:7px;position:relative;min-height:68px}
.reorder-setlist .songitem .name{min-width:0}
.reorder-setlist .songitem .song-meta{flex-shrink:0}
.reorder-setlist .song-grip{font-size:19px;color:#8ca5b9;cursor:grab;touch-action:none;padding:5px 3px}
.reorder-setlist .reorder-actions{display:none!important}
.sl-song-more{flex:0 0 34px!important;width:34px;height:37px;border-radius:9px;padding:0!important;font-size:23px!important;line-height:30px;display:grid;place-items:center;background:#f2f7fc;border:1px solid #d3e3f0;color:#284f70}
.sl-song-more:hover{background:#e4f1ff}
.sl-song-menu{position:fixed;z-index:2100;width:203px;padding:6px;border:1px solid #d0dfec;background:#fff;border-radius:12px;box-shadow:0 15px 40px #152e4a36;display:flex;flex-direction:column;gap:2px}
.sl-song-menu button{text-align:left;border:0;box-shadow:none;background:transparent;border-radius:7px;color:#24435e;padding:11px 12px;font-size:13px;font-weight:700}
.sl-song-menu button:hover:not(:disabled){background:#eef6ff}
.sl-song-menu .sl-menu-danger{color:#b33137}
.sl-song-menu button:disabled{opacity:.3}
.sl-restore{width:100%;margin-top:9px;background:transparent;color:#43718f;font-size:12px;border:1px dashed #b5ccdf;padding:9px;border-radius:9px}
.sl-restore[hidden]{display:none!important}
.sl-editor-backdrop{position:fixed;inset:0;background:#0c294887;z-index:3000;display:flex;justify-content:center;align-items:center;padding:14px;overscroll-behavior:contain}
.sl-editor{width:min(435px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;padding:22px;background:#fff;border:1px solid #d4e1ec;border-radius:17px;box-shadow:0 20px 70px #102b4852;display:flex;flex-direction:column;gap:12px;color:#213e56}
.sl-editor h3{font-size:20px;font-weight:850;margin:0;line-height:1.3;color:#1d3c58}
.sl-editor-description{color:#648099;font-size:13px;line-height:1.5;margin:0}
.sl-editor-fields{display:grid;gap:12px}
.sl-editor-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:#36536c}
.sl-editor-fields input,.sl-editor-fields select{width:100%;min-height:42px;font-size:15px;padding:8px 11px;background:#fff;border:1px solid #c8d9e7;border-radius:9px;color:#213c56}
.sl-editor-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:7px}
.sl-editor-actions button{min-height:42px;padding:9px 14px;font-size:13px;font-weight:800;border-radius:9px}
.sl-editor .sl-save{background:#086ecf;border-color:#086ecf;color:#fff}
.sl-editor .sl-danger{background:#b93238;border-color:#b93238;color:#fff}
.sl-section-row{display:flex!important;flex-wrap:wrap;align-items:center;gap:7px!important;margin:7px 0!important;padding:4px 0}
.sl-section-row>button:first-child{white-space:nowrap;flex-shrink:0}
.sl-section-row>.small-note{flex:1 1 40px}
.sl-section-row .sl-sec-edit,.sl-section-row .sl-sec-delete{border:1px solid #d5e2ee;font-weight:750;border-radius:7px;padding:8px 9px;font-size:12px;white-space:nowrap}
.sl-section-row .sl-sec-edit{color:#1a639c;background:#f3f8fd}
.sl-section-row .sl-sec-delete{color:#a34b4e;background:#fff8f8}
.sl-section-help{padding:10px 12px!important;border-radius:9px!important;background:#f3f7fb!important;color:#6b8296!important;border:1px solid #e0eaf2!important;font-size:12px!important}
@media(max-width:560px){.reorder-setlist .song-meta{display:none}.reorder-setlist .songitem{gap:4px;padding-left:3px;padding-right:2px}.sl-song-more{width:32px;flex-basis:32px}.sl-editor{padding:18px}.sl-section-row>.small-note{flex:0 0 auto}}

/* iPhone stage view v0.9: no page drift; each dense panel scrolls independently. */
html,body{max-width:100%;overflow-x:hidden}
.mobile-mix-toggle{border:1px solid #bad1e6;background:#e8f4ff;color:#16588a;border-radius:9px;padding:9px 14px;font-size:13px;font-weight:850;min-height:44px;touch-action:manipulation}
.mobile-mix-toggle[aria-expanded=true]{background:#0a70cb;color:white}
.mobile-mix-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mobile-mix-close{border:1px solid #d2e0ec;background:white;min-width:44px;min-height:44px;font-size:22px}
.mobile-orientation-help{font-size:11px;line-height:1.3;color:#5b7892;display:none}
@media(max-width:1100px) and (pointer:coarse){
 html{scrollbar-gutter:auto}
 body{overscroll-behavior:none}
 .app{width:100%;max-width:100%;min-width:0;padding:5px max(7px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))}
 .cloud-toolbar{margin:0 auto 5px;padding:4px 9px;min-height:31px;font-size:11px}
 .cloud-toolbar button{padding:4px 9px}
 .cloud-toolbar a{font-size:10px}
 .top.stage-header{margin:0;min-width:0;box-shadow:none;border-radius:10px;padding:7px}
 .stage-actions .stage-icon{display:none}
 .stage-identity .song-head{min-width:0}
 .stage-identity .song-head strong{max-width:unset;font-size:17px}
 .stage-footer-note{display:none}
 #fullscreenOffer{display:none!important}
 .main-grid{gap:6px;margin-top:6px;min-width:0}
 .timeline{padding:7px;min-width:0}
 .timeline .heading{margin:0 0 5px;gap:5px}
 .timeline .heading .eyebrow{font-size:10px}
 .timeline .heading .small-note{display:none}
 .section-nav button{min-height:38px;min-width:38px}
 .wave-row{height:29px;grid-template-columns:85px minmax(0,1fr)}
 .wave-name{font-size:10px;padding:0 4px}
 .wave-name .w-dot{height:18px}
 .segments{padding-left:86px;height:29px}
 .time-numbers{padding-left:85px;margin-top:3px}
 .progress-panel{margin-top:6px;padding:6px 9px;min-height:0;gap:7px}
 .progress-panel .transport{flex-wrap:nowrap;gap:7px}
 .progress-panel .transport button{min-width:46px;height:46px;font-size:20px;touch-action:manipulation}
 .progress-panel .transport button.start{min-width:63px;height:50px;font-size:26px}
 .progress-panel .clock{font-size:23px}
 .progress-panel .clock small{font-size:12px}
 .tabs button{min-height:40px;padding:8px 4px;font-size:11px}
 .tabcontent{min-height:0;overflow:auto;overscroll-behavior:contain}
 .setlist{max-height:none}
 .songitem{min-height:52px;margin:0;padding:6px}
 .song-grip,.sl-song-more{touch-action:manipulation}
 .sl-song-more{min-width:44px!important;min-height:44px}
 .meter-title{margin:6px 2px!important;min-height:44px}
 .meter-title strong{font-size:14px}
 #mixer.mobile-mix-closed{display:none!important}
 .mobile-mix-close{display:none}
 .mixer{max-width:100%;overscroll-behavior-x:contain}
 .live-bottom-controls{margin-top:5px!important;padding:7px!important;font-size:11px}
 .bottomline{display:none}
 .sl-editor-backdrop,.cloud-shade{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 .sl-editor,.cloud-dialog{max-height:calc(100dvh - 18px)}
 .mobile-orientation-help{display:block}
}
@media (max-width:1100px) and (pointer:coarse) and (orientation:portrait){
 .stage-center{gap:4px}
 .main-grid{display:flex;flex-direction:column}
 .main-grid>.right{order:0}
 .main-grid>div:first-child{display:contents}
 .main-grid .progress-panel{order:1;position:sticky;top:0;z-index:5;background:white;box-shadow:0 2px 12px #234c6d16}
 .main-grid .timeline{order:2}
 .main-grid #downloadPanel{order:3}
 .right .tabcontent{max-height:190px}
 .progress-panel .length{min-width:0;width:100%;flex-basis:100%}
 .progress-panel .transport{order:0;flex:1 1 auto}
 .progress-panel .clock{order:0}
 .stage-center .field-label{font-size:8px}
 .stage-field--pitch{min-width:100px}
 .stage-field--pitch .ctl-group button,.stage-field--bpm .value-row button{min-width:36px;height:37px}
 .stage-identity .song-head strong{font-size:15px}
 .meter-title{margin-top:7px}
 .mobile-mix-close{display:block}
 #mixer:not(.mobile-mix-closed){max-height:44dvh;overflow-y:auto}
}
@media (max-width:1100px) and (pointer:coarse) and (orientation:landscape){
 html,body{height:100%;overflow:hidden}
 body{height:100dvh}
 .cloud-toolbar{display:none}
 .app{height:100dvh;display:flex;flex-direction:column;overflow:hidden;gap:4px}
 .top.stage-header{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,1.1fr) auto;gap:5px;padding:4px 8px}
 .stage-identity{grid-area:auto;grid-column:1;grid-row:1}
 .stage-identity .brand img{width:25px!important;height:25px!important}
 .stage-identity .song-head{padding-left:7px}
 .stage-identity .song-head strong{font-size:15px}
 .stage-identity .song-head small{display:none}
 .stage-center{grid-column:2;grid-row:1;border:0;padding:0;margin:0;gap:3px;justify-content:space-around}
 .stage-field{gap:1px;padding:0}
 .stage-field .field-label{font-size:8px}
 .stage-field strong{font-size:17px}
 .stage-field--bpm .value-row button,.stage-field--pitch .ctl-group button{min-width:36px;height:36px}
 .stage-field--pitch{min-width:112px}
 .stage-actions{grid-column:3;grid-row:1}
 .stage-actions #status{display:none}
 .main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(195px,28%);gap:5px;flex:1 1 auto;min-height:0;margin:0;overflow:hidden}
 .main-grid>div:first-child{min-height:0;min-width:0;display:flex;flex-direction:column;gap:5px}
 .main-grid .timeline{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
 .timeline .heading{flex:0 0 auto}
 .timeline .heading .section-nav{flex-wrap:nowrap}
 .section-nav button{min-height:30px;min-width:34px;padding:3px}
 .timeline .stems-visual{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .timeline .segments{flex:0 0 23px;height:23px}
 .timeline .time-numbers{flex:0 0 16px}
 .wave-row{height:26px;flex-shrink:0}
 .main-grid .progress-panel{flex:0 0 auto;margin:0;min-height:0;flex-wrap:nowrap;padding:3px 7px}
 .progress-panel .transport{order:0;flex-basis:auto;min-width:0;gap:5px}
 .progress-panel .transport button{height:40px;min-width:40px}
 .progress-panel .transport button.start{height:46px;min-width:58px}
 .progress-panel .clock{font-size:20px}
 .progress-panel .length{order:0;min-width:70px}
 .main-grid .right{min-width:0;min-height:0;display:flex;flex-direction:column}
 .right .tabs{flex:0 0 auto}
 .right .tabcontent{flex:1;min-height:0;max-height:unset;overflow-y:auto}
 .meter-title{flex:0 0 40px;order:2}
 #mixer{order:3;flex:0 1 auto;max-height:calc(100dvh - 75px);overflow:auto}
 #mixer:not(.mobile-mix-closed){position:fixed;z-index:65;left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));max-height:70dvh;padding:9px!important;display:grid;background:#f7fbff;border:1px solid #b6cfe3;border-radius:12px;box-shadow:0 0 0 100vmax #10233a88,0 20px 60px #10233a55}
 .mobile-mix-close{display:block}
 .live-bottom-controls{display:none!important}
 .stage-footer-note,.bottomline,#fullscreenOffer{display:none!important}
 .mobile-orientation-help{display:none}
}

/* Mixer sheet v0.9.1: the close button is always INSIDE the sheet, not behind it. */
@media(max-width:1100px) and (pointer:coarse){
 #mixer.mobile-mix-closed{display:none!important}
 .mobile-mix-toggle{flex-shrink:0}
 .mobile-mixer-backdrop[hidden]{display:none!important}
 .mobile-mixer-backdrop{display:none}
 #mixer .mobile-mixer-sheet-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:4;background:#f7fbff;border-bottom:1px solid #d0e1ee;padding:4px 8px 8px}
 #mixer .mobile-mixer-sheet-bar strong{font-size:14px;color:#1f4263;letter-spacing:0;white-space:nowrap}
 #mixer .mobile-mix-close{display:grid!important;place-items:center!important;flex:0 0 46px;min-width:46px;min-height:46px;border:1px solid #abcde6;border-radius:11px;background:#fff;color:#174c77;font-size:29px;line-height:1;font-weight:600;padding:0}
 #mixer .mobile-mix-close:focus-visible{outline:3px solid #1679d3;outline-offset:2px}
 .meter-title{justify-content:space-between;gap:8px}
 .meter-title .mobile-mix-toggle{margin-left:auto}
}
@media(max-width:1100px) and (pointer:coarse) and (orientation:landscape){
 body.mobile-mixer-open{overflow:hidden}
 .mobile-mixer-backdrop:not([hidden]){position:fixed;inset:0;display:block;background:#0b294888;z-index:64;overscroll-behavior:contain}
 #mixer:not(.mobile-mix-closed){top:max(16px,env(safe-area-inset-top));bottom:max(9px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto;max-height:none;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;align-content:start;box-shadow:0 12px 50px #10283a42;z-index:65;padding:8px!important;gap:6px}
 #mixer:not(.mobile-mix-closed) .clean-group{min-width:0}
 #mixer:not(.mobile-mix-closed) .clean-group--music .clean-rail{overscroll-behavior-x:contain}
 #mixer .mobile-mixer-sheet-bar{margin-bottom:0}
}
@media(max-width:1100px) and (pointer:coarse) and (orientation:portrait){
 #mixer:not(.mobile-mix-closed){max-height:43dvh;overflow-y:auto;align-content:start}
 #mixer .mobile-mixer-sheet-bar{padding:4px 6px 8px}
}

/* On iPhone landscape, use a right-hand drawer rather than a giant centered modal. */
@media(max-width:1100px) and (pointer:coarse) and (orientation:landscape){
 #mixer.mixer.clean-mixer:not(.mobile-mix-closed){
  left:auto!important;right:max(7px,env(safe-area-inset-right))!important;
  width:min(500px,61vw)!important;
  grid-template-columns:minmax(0,1fr) 94px!important;
  grid-auto-rows:min-content!important;
  gap:6px!important;
  background:#f8fbff;
 }
 #mixer:not(.mobile-mix-closed) .mobile-mixer-sheet-bar{grid-column:1/-1;grid-row:1}
 #mixer:not(.mobile-mix-closed) .clean-group--monitor{grid-column:1;grid-row:2;min-width:0}
 #mixer:not(.mobile-mix-closed) .clean-group--master{grid-column:2;grid-row:2;min-width:0}
 #mixer:not(.mobile-mix-closed) .clean-group--music{grid-column:1/-1;grid-row:3;min-width:0}
 #mixer:not(.mobile-mix-closed) .clean-rail{min-height:165px}
 #mixer:not(.mobile-mix-closed) .clean-group--monitor .clean-rail{overflow-x:auto}
 #mixer:not(.mobile-mix-closed) .clean-group--master .clean-rail{overflow:hidden}
 #mixer:not(.mobile-mix-closed) .strip{min-height:165px;max-height:176px}
 #mixer:not(.mobile-mix-closed) .striphead{min-height:42px;max-height:42px;padding:4px}
 #mixer:not(.mobile-mix-closed) .strip .faderbox{height:89px;padding:4px}
 #mixer:not(.mobile-mix-closed) .strip .meter,#mixer:not(.mobile-mix-closed) .strip .v-range{height:75px}
 #mixer:not(.mobile-mix-closed) .strip .dual button{height:28px}
 #mixer:not(.mobile-mix-closed) .clean-group{padding:5px}
 #mixer:not(.mobile-mix-closed) .clean-group h3{margin:1px 2px 4px}
}
