:root{color-scheme:dark;--page:#0d1117;--panel:#171d26;--raised:#202935;--border:#303b48;--muted:#94a3b5;--text:#edf3fa;--accent:#47d5c2;--danger:#ff6c72;--warning:#e8bc68;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at top left,#192330 0,transparent 55%),var(--page);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer;min-height:36px;border:1px solid var(--border);border-radius:6px;padding:7px 12px;background:var(--raised);color:var(--text);transition:background .14s,border-color .14s}button:hover:not(:disabled){background:#2b3948;border-color:#53677d}button:disabled{opacity:.43;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button.primary{background:#16453f;color:#b3fff0;border-color:#317b70}button.primary:hover:not(:disabled){background:#205f56}.danger{color:#ffadb0;background:#3d232b;border-color:#63313c}.subtle{background:transparent;color:var(--muted);border-color:transparent}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.shell{max-width:1760px;margin:0 auto;padding:24px 28px 14px}.topbar{display:flex;align-items:center;gap:22px;margin-bottom:24px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:37px;height:37px;fill:var(--accent);stroke:none}.brand-mark path+path{fill:#14252b}.eyebrow,.micro-label{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--muted)}.eyebrow{display:block}.brand .eyebrow{color:var(--accent)}h1{font-size:23px;line-height:1.25;letter-spacing:-.04em;margin:3px 0 0;font-weight:650}h1 span{color:var(--muted);font-size:16px;font-weight:400;letter-spacing:0;margin-left:8px}.instance{margin-left:auto;text-align:right;min-width:0}.instance strong{display:block;font-size:14px;font-weight:550;overflow-wrap:anywhere;max-width:460px}.badge{font-size:11px;white-space:nowrap;padding:7px 10px;border-radius:20px;background:#28303b;color:#b1bccb;border:1px solid #3b4859}.badge.online{background:#193b35;color:#82e4c5;border-color:#2e5c50}.badge.offline{background:#352c29;color:#e8c296;border-color:#514238}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(365px,1fr);gap:22px;align-items:start}.monitor-workspace{min-width:0}.preview-card{display:grid;grid-template-columns:minmax(0,1fr) auto;background:#121821;border:1px solid var(--border);border-radius:9px;overflow:hidden}.video-wrap{position:relative;min-width:0;width:100%;aspect-ratio:16/9;min-height:240px;background:#040609;align-self:stretch}.video-wrap video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.video-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:25px;color:var(--muted);font-size:12px}.video-placeholder>svg{width:38px;height:38px;margin-bottom:8px;opacity:.6}.video-placeholder strong{font-size:15px;font-weight:500;color:#c3cfdd}.has-video .video-placeholder{display:none}.preview-overlay{position:absolute;left:14px;right:14px;top:13px;display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:.12em;pointer-events:none}.signal-label{color:#c5d6e9;background:#182330d4;border:1px solid #485c7470;padding:3px 7px;border-radius:3px}#videoMuteLabel{background:#702d35d4;color:#ffd6d8;padding:3px 7px;border-radius:3px}.meter-panel{display:flex;align-items:stretch;gap:8px;padding:10px 10px 9px 7px;background:linear-gradient(90deg,#19202a,#131923);border-left:1px solid var(--border);min-width:128px}.meter-stack{display:flex;flex-direction:column;align-items:center;min-width:46px;gap:6px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;padding:7px}.meter-stack .icon-button{min-height:28px;height:28px;width:30px;border:0;background:transparent;color:var(--muted)}.meter-stack .icon-button[aria-pressed=true]{color:var(--accent);background:#25433e}.meters{display:flex;gap:0;flex:1;min-height:170px;align-items:stretch}.meter{position:relative;display:flex;flex-direction:column;min-height:0;width:32px;min-width:32px;align-items:center}.meter canvas{position:absolute;inset:0 0 16px;width:32px;height:calc(100% - 16px);min-height:0;min-width:0}.meter-label{position:absolute;bottom:0;font-size:9px;color:#9babbe;margin-top:3px}.inactive-meter{
  position:relative;
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  max-width:42px;
  height:100%;
  min-height:0;
  align-self:stretch
}
.inactive-meter .inactive-meter-canvas{
  position:absolute;
  inset:0;
  width:42px;
  min-width:42px;
  max-width:42px;
  height:100%;
  min-height:0
}
.preview-card.audio-ch-0 .meter-panel{
  width:52px;
  min-width:52px;
  max-width:52px;
  padding-left:4px;
  padding-right:4px
}
.preview-card.audio-ch-0 .meter-stack{
  width:42px;
  min-width:42px;
  max-width:42px
}
.preview-card.audio-ch-0 .meters{
  width:42px;
  min-width:42px;
  max-width:42px;
  justify-content:center
}.meter-caption{font-size:10px;color:#bbc6d4;font-weight:600;letter-spacing:.04em;text-align:center;width:100%;padding-top:2px}.gain-strip{display:flex;flex-direction:column;align-items:center;width:55px;min-width:55px;gap:5px}.gain-title{font-size:9px;color:var(--muted);letter-spacing:.12em;line-height:28px}.fader-well{position:relative;display:flex;justify-content:flex-end;flex:1;width:55px;min-height:166px;padding:4px 0}.fader-scale{position:absolute;inset:5px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.fader-scale span{font-size:8px;color:#8290a2;line-height:1;display:flex;align-items:center;gap:4px}.fader-scale span::after{content:"";height:1px;width:21px;background:#4a5668}.fader-scale span:nth-child(3){color:#d7e2ef}.fader-well input{writing-mode:vertical-lr;direction:rtl;appearance:none;-webkit-appearance:none;position:absolute;inset:4px 0 4px auto;z-index:1;margin:0;width:36px;height:calc(100% - 8px);min-height:0;background:transparent;cursor:ns-resize;touch-action:none;border:0;padding:0}.fader-well input::-webkit-slider-runnable-track{width:7px;border-radius:3px;background:#06090d;border-left:1px solid #030406;border-right:1px solid #344253;box-shadow:inset 1px 0 3px #000}.fader-well input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:34px;height:18px;border:1px solid #919ca9;border-radius:3px;background:linear-gradient(to bottom,#d0d6dd 0,#7e8998 32%,#414a58 46%,#ebf2f8 49%,#ebf2f8 54%,#4a5665 58%,#8f99a7 100%);box-shadow:0 3px 7px #000b;margin-left:-14px}.fader-well input::-moz-range-track{width:7px;background:#06090d;border:1px solid #344253;border-radius:3px}.fader-well input::-moz-range-thumb{width:34px;height:18px;border:1px solid #919ca9;border-radius:3px;background:linear-gradient(#c5cfdb,#596576 45%,#eff6ff 49%,#eff6ff 54%,#627084 58%,#9ba9ba);box-shadow:0 3px 7px #000b}.gain-strip output{font-variant-numeric:tabular-nums;font-size:10px;color:var(--accent);white-space:nowrap}.gain-reset{min-height:20px;padding:0 5px;font-size:9px;background:transparent;color:var(--muted);border-color:#3b4655}.live-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0}.call-readout{display:flex;align-items:center;gap:10px;min-width:85px}.call-readout strong{display:block;font-size:14px;font-weight:600}.call-readout span:not(.status-light){display:block;font-size:11px;color:var(--muted)}.status-light{width:7px;height:7px;border-radius:100%;background:#78879b}.status-light.live{background:var(--accent);box-shadow:0 0 10px #47d5c260}.live-buttons{display:flex;gap:7px;align-items:center}.live-button{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px}.live-button.active{color:#ffd2d4;border-color:#b0505a;background:#512d35}.live-button svg{width:17px;height:17px}.preview-note{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding-top:10px;color:var(--muted);font-size:10px}.preview-note span:first-child{max-width:78%}#profileBadge{white-space:nowrap}.properties-panel{border:1px solid var(--border);background:var(--panel);border-radius:9px;overflow:hidden;min-width:0}.tabs{display:flex;border-bottom:1px solid var(--border);background:#141a23;overflow-x:auto;padding:0 7px;scrollbar-width:thin}.tabs button{flex:1;padding:12px 9px;border-radius:0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;min-height:45px;white-space:nowrap}.tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:#e6fff9;background:#20352f55}.tabs button.dirty::after{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--warning);margin-left:4px}.panel-scroll{max-height:calc(100vh - 240px);min-height:395px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4a5768 transparent}.tab-panel{padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.panel-heading h2{margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em}.panel-heading .subtle{font-size:11px;min-height:26px;padding:2px 0}h3{font-size:12px;font-weight:600;margin:16px 0 10px}.form-grid,.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:#afbdd0}.field input:not([type=checkbox]),.field select{width:100%;min-width:0;border:1px solid #384555;border-radius:5px;padding:8px 9px;background:#101720;color:var(--text);min-height:35px;font-size:12px}.field input:disabled,.field select:disabled{opacity:.5}.field input[type=checkbox]{appearance:none;width:28px;height:16px;border:1px solid #516074;border-radius:12px;background:#283343;position:relative;flex:none;cursor:pointer;margin:0}.field input[type=checkbox]::before{content:"";position:absolute;width:10px;height:10px;top:2px;left:3px;border-radius:50%;background:#95a4b8;transition:transform .15s}.field input[type=checkbox]:checked{background:#20564c;border-color:#3d9b87}.field input[type=checkbox]:checked::before{transform:translateX(10px);background:#9bffde}.field.check-field{flex-direction:row;align-items:center;justify-content:space-between;min-height:31px;gap:12px;color:#c1cdde}.field.full-width,.full-width{grid-column:1/-1}.field.dirty input,.field.dirty select{border-color:#97743c}.field.conflict input,.field.conflict select{border-color:var(--danger)}.field-feedback{font-size:10px;color:var(--warning);display:flex;align-items:center;flex-wrap:wrap;gap:4px}.field-feedback button{font-size:10px;min-height:22px;padding:1px 5px}.field.conflict .field-feedback{color:#ffafb3}.property-group{border-top:1px solid #2c3644;margin:18px 0 0;padding:12px 0 0}.property-group summary{font-size:12px;font-weight:600;cursor:pointer;color:#d0dbeb}.group-content{padding-top:14px;display:grid;gap:12px}.group-title{color:#7e91a8;font-size:10px;letter-spacing:.1em;text-transform:uppercase;margin:21px 0 12px}.hint{font-size:11px;color:var(--muted);line-height:1.6;margin:11px 0 15px;overflow-wrap:anywhere}.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-actions button{font-size:12px}.segmented{display:flex;gap:0}.segmented button{flex:1;border-radius:0;font-size:11px}.segmented button:first-child{border-radius:5px 0 0 5px}.segmented button:last-child{border-radius:0 5px 5px 0}.apply-bar{border-top:1px solid var(--border);display:flex;gap:8px;align-items:center;padding:12px 15px;background:#151b24}.apply-bar>span{margin-right:auto;font-size:10px;color:var(--muted)}.apply-bar button{min-height:32px;font-size:12px;padding:5px 11px}.notice{min-height:26px;padding:14px 0 0;color:var(--warning);font-size:12px;white-space:pre-line}.notice.error{color:#ffb1b6}.activity{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);padding-top:10px}.spinner{width:12px;height:12px;border:2px solid #324155;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.consent-card{border:1px solid #8b6940;border-left:3px solid var(--warning);background:#362d20;padding:14px 16px;border-radius:6px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:14px}.consent-card strong{font-size:13px}.consent-card p{margin:5px 0 0;font-size:12px;color:#d4c7af}.consent-card>div:last-child{display:flex;gap:7px;white-space:nowrap}.consent-card button{font-size:11px}.app-footer{display:flex;justify-content:space-between;gap:15px;color:#637389;font-size:9px;letter-spacing:.08em;padding:20px 0 0}.stats-content{font-size:11px;color:var(--muted)}.stats-content details{border-top:1px solid #344150;padding:9px 0;margin-top:8px}.stats-content summary{cursor:pointer;color:#d2dfed}.stats-content table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px;margin-top:9px}.stats-content th,.stats-content td{padding:6px;text-align:left;border-bottom:1px solid #2b3543;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;vertical-align:top}.stats-content th{font-weight:400;color:#91a4bb;width:52%}.stats-content td{color:#d2ddea}.stats-content h3{color:#deebf9}.stats-content pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.5 ui-monospace,monospace}.tab-panel>button{font-size:12px;margin-top:12px}
@media(min-width:1550px){.workspace{grid-template-columns:minmax(0,1.9fr) minmax(430px,1fr)}.video-wrap{min-height:330px}.panel-scroll{min-height:540px}.meters{min-height:260px}}
@media(max-width:1150px){.shell{padding:20px}.workspace{gap:16px;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr)}.live-toolbar{align-items:flex-start;gap:8px;flex-wrap:wrap}.live-buttons{margin-left:auto}.live-button{padding:7px 9px;font-size:11px}.tab-panel{padding:16px}.topbar{gap:14px}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.panel-scroll{max-height:none;min-height:360px}.monitor-workspace{max-width:none}.video-wrap{min-height:260px}.topbar{flex-wrap:wrap}.brand{margin-right:auto}.instance{margin-left:0}.meter-panel{padding-left:12px;padding-right:12px}.live-toolbar{flex-wrap:nowrap;align-items:center}.live-buttons{margin:0}.tab-panel{padding:20px}.field-grid{gap:17px}.preview-note{margin-bottom:3px}}
@media(max-width:520px){.shell{padding:14px 12px}.topbar{gap:11px;margin-bottom:17px}.brand-mark{width:30px;height:30px}h1{font-size:21px}h1 span{font-size:12px;margin-left:4px}.instance{order:3;flex:1 0 100%;text-align:left;display:flex;align-items:baseline;gap:10px}.instance .eyebrow{font-size:8px}.instance strong{font-size:11px}.badge{font-size:9px;padding:5px 7px}.video-wrap{min-height:216px}.meter-panel{padding:8px 6px;gap:3px;min-width:109px}.meter-stack{min-width:32px;gap:4px}.meter{width:27px;min-width:27px}.meter canvas{width:27px;min-height:133px}.meters{min-height:133px}.gain-strip{width:49px;min-width:49px}.fader-well{width:49px;min-height:136px}.fader-well input{min-height:130px}.meter-caption{font-size:9px}.video-placeholder{padding:13px;font-size:10px}.video-placeholder strong{font-size:12px}.video-placeholder>svg{width:27px;height:27px}.live-toolbar{gap:10px;align-items:flex-start;flex-direction:column;padding:12px 0}.call-readout{gap:8px}.call-readout>div{display:flex;align-items:baseline;gap:8px}.call-readout strong{font-size:12px}.live-buttons{width:100%}.live-button{flex:1;justify-content:center;font-size:11px}.preview-note{font-size:9px;gap:9px}.tab-panel{padding:16px}.form-grid,.field-grid{gap:12px}.tabs{padding:0 2px}.tabs button{font-size:11px;padding:11px 8px}.consent-card{flex-direction:column;align-items:flex-start}.app-footer{font-size:8px;letter-spacing:.03em}.apply-bar{padding:10px}.apply-bar>span{max-width:50%}}
@media(prefers-reduced-motion:reduce){*,*::before{transition:none!important}.spinner{animation:none}}

.gain-strip output.pending{color:var(--warning)}.gain-strip output.pending::after{content:"…"}


/* Browser management v2: dual monitor deck, broadcast meters, stats and logs. */
.monitor-deck{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;transition:none}
.monitor-deck.dual{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.monitor-deck .preview-card{min-width:0;transition:none}
.output-monitor[hidden]{display:none!important}
.output-video-wrap video{background:#05080d}
.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.meter{width:54px;min-width:54px}
.meter canvas{display:block;width:54px;height:calc(100% - 16px);max-width:none}
.meters{gap:5px}
.meter-label{text-align:center;font-variant-numeric:tabular-nums}
.meter-caption{font-family:"Segoe UI",Arial,sans-serif;font-stretch:normal;letter-spacing:.04em}
.segmented button.active-layer{background:#2d745e;border-color:#61d0a1;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.stats-content details{border:1px solid #2a3948;border-radius:7px;overflow:hidden;margin:0 0 10px;background:#101820}
.stats-content details>summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#172330;font-weight:650}
.stats-session-meta{font-size:10px;letter-spacing:.08em;color:#9eb2c6}
.stats-content details>h3{margin:12px 12px 5px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#afc3d6}
.stats-table,.logs-table{width:calc(100% - 24px);margin:0 12px 12px;border-collapse:collapse;border:1px solid #334456;font-size:12px}
.stats-table thead th,.logs-table thead th{position:sticky;top:0;background:#223245;color:#e6f1fb;text-align:left;border:1px solid #3a4b5d;padding:7px 9px}
.stats-table tbody th,.stats-table tbody td,.logs-table tbody td{border:1px solid #2b3a49;padding:6px 9px;text-align:left;vertical-align:top}
.stats-table tbody tr:nth-child(even),.logs-table tbody tr:nth-child(even){background:#14202a}
.stats-table tbody tr:nth-child(odd),.logs-table tbody tr:nth-child(odd){background:#0f1820}
.logs-content{max-height:62vh;overflow:auto;border:1px solid #293746;border-radius:7px;background:#0d151d}
.logs-table{width:100%;margin:0;border:0;font-family:"Cascadia Mono","Consolas",monospace;font-size:11px}
.logs-table td:first-child{white-space:nowrap;color:#8ea4b8}
.logs-table td:nth-child(2),.logs-table td:nth-child(3){white-space:nowrap;color:#8ea4b8}
.logs-table td:nth-child(2){font-weight:700}
.logs-table td:nth-child(3){font-weight:400}
.logs-table td:last-child{white-space:pre-wrap;word-break:break-word}
@media(max-width:1050px){.monitor-deck.dual{grid-template-columns:1fr}.output-monitor{animation:outputReveal .22s ease}}
@keyframes outputReveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}


/* Browser management monitor geometry refinements. */
:root{--meter-channel-width:54px;--meter-gap:5px;--meter-pair-width:113px;--monitor-gain-width:55px;--monitor-panel-width:193px}
.preview-card{grid-template-columns:minmax(0,1fr) var(--monitor-panel-width);align-items:start}
.video-wrap{aspect-ratio:16/9;min-height:0;height:auto;align-self:start}
.meter-panel{width:var(--monitor-panel-width);min-width:var(--monitor-panel-width);max-width:var(--monitor-panel-width);height:100%;min-height:0;align-self:stretch}
.meter-stack{width:var(--meter-pair-width);min-width:var(--meter-pair-width);max-width:var(--meter-pair-width);min-height:0}
.meters{width:var(--meter-pair-width);min-width:var(--meter-pair-width);max-width:var(--meter-pair-width);min-height:0;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;justify-content:flex-start}
.meter{width:var(--meter-channel-width);min-width:var(--meter-channel-width);max-width:var(--meter-channel-width);flex:0 0 var(--meter-channel-width)}
.meter canvas{width:var(--meter-channel-width);max-width:var(--meter-channel-width)}
.meters:has(.meter:only-child){justify-content:center}
.fader-well{min-height:0}
.fader-well input{min-height:0}
.monitor-deck .video-wrap{aspect-ratio:16/9}
.monitor-deck.dual{grid-template-columns:repeat(2,minmax(0,1fr))}
.monitor-deck.dual .preview-card{min-width:0}
.horizontal-fader-well{position:relative;height:64px;margin-top:8px;padding:0 17px}
.horizontal-fader-scale{position:absolute;left:10px;right:10px;bottom:0;display:flex;justify-content:space-between;pointer-events:none}
.horizontal-fader-scale span{font-size:9px;color:#8290a2;line-height:1;position:relative;min-width:24px;text-align:center}
.horizontal-fader-scale span::before{content:"";position:absolute;left:50%;top:-10px;width:1px;height:7px;background:#4a5668}
.horizontal-fader-scale span:nth-child(3){color:#d7e2ef}
.horizontal-fader-well input{appearance:none;-webkit-appearance:none;position:absolute;left:17px;right:17px;top:4px;width:calc(100% - 34px);height:34px;margin:0;background:transparent;cursor:ew-resize;border:0;padding:0}
.horizontal-fader-well input::-webkit-slider-runnable-track{height:7px;border-radius:3px;background:#06090d;border-top:1px solid #030406;border-bottom:1px solid #344253;box-shadow:inset 0 1px 3px #000}
.horizontal-fader-well input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:34px;border:1px solid #919ca9;border-radius:3px;background:linear-gradient(to right,#d0d6dd 0,#7e8998 32%,#414a58 46%,#ebf2f8 49%,#ebf2f8 54%,#4a5665 58%,#8f99a7 100%);box-shadow:0 3px 7px #000b;margin-top:-14px}
.horizontal-fader-well input::-moz-range-track{height:7px;background:#06090d;border:1px solid #344253;border-radius:3px}
.horizontal-fader-well input::-moz-range-thumb{width:18px;height:34px;border:1px solid #919ca9;border-radius:3px;background:linear-gradient(to right,#c5cfdb,#596576 45%,#eff6ff 49%,#eff6ff 54%,#627084 58%,#9ba9ba);box-shadow:0 3px 7px #000b}
.panel-heading .subtle{min-height:30px;padding:4px 12px}
@media(max-width:1050px){.monitor-deck.dual{grid-template-columns:1fr}}
@media(max-width:520px){
  .preview-card{grid-template-columns:1fr}
  .video-wrap{width:100%;aspect-ratio:16/9;min-height:0}
  .meter-panel{justify-self:center;border-left:0;border-top:1px solid var(--border);height:200px}
}


/* StudioCall compact monitor/header refinements. */
.topbar{justify-content:space-between}
.brand-logo{width:38px;height:38px;object-fit:contain;flex:0 0 38px}
.brand h1{margin-top:2px}
.video-column{min-width:0;display:flex;flex-direction:column}
.monitor-label-row{height:25px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;background:#111821;border-bottom:1px solid #263340}
.monitor-label{font-size:9px;line-height:1;letter-spacing:.14em;font-weight:750;color:#b8c9dc}
.monitor-warning{font-size:8px;line-height:1;letter-spacing:.08em;color:#ffd6d8;background:#702d35;padding:3px 6px;border-radius:3px}
.preview-overlay,.signal-label{display:none}
:root{--meter-channel-width:31px;--meter-gap:3px;--meter-pair-width:65px;--monitor-gain-width:43px;--monitor-panel-width:120px}
.preview-card{grid-template-columns:minmax(0,1fr) var(--monitor-panel-width)}
.meter-panel{width:var(--monitor-panel-width);min-width:var(--monitor-panel-width);max-width:var(--monitor-panel-width);gap:4px;padding:7px 4px 6px 4px}
.meter-stack{width:var(--meter-pair-width);min-width:var(--meter-pair-width);max-width:var(--meter-pair-width);gap:3px}
.meters{width:var(--meter-pair-width);min-width:var(--meter-pair-width);max-width:var(--meter-pair-width);gap:var(--meter-gap)}
.meter{width:var(--meter-channel-width);min-width:var(--meter-channel-width);max-width:var(--meter-channel-width);flex-basis:var(--meter-channel-width)}
.meter canvas{width:var(--meter-channel-width);max-width:var(--meter-channel-width)}
.meter-label{font-size:8px}
.meter-caption{font-size:8px;padding-top:0}
.gain-strip{width:var(--monitor-gain-width);min-width:var(--monitor-gain-width);gap:3px}
.gain-title{font-size:8px;line-height:24px}
.fader-well{width:var(--monitor-gain-width)}
.fader-scale span{font-size:7px;gap:2px}
.fader-scale span::after{width:14px}
.fader-well input{width:30px}
.fader-well input::-webkit-slider-thumb{width:28px;margin-left:-11px}
.fader-well input::-moz-range-thumb{width:28px}
.meter-stack .icon-button{width:26px;height:24px;min-height:24px;padding:4px}
.meter-stack .icon-button svg{width:17px;height:17px}
.file-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.file-picker-row input{min-width:0}
.file-picker-button{min-height:35px;padding:7px 13px;white-space:nowrap}
.horizontal-fader-well{height:62px;padding:0}
.horizontal-fader-well input{left:0;right:0;width:100%}
.horizontal-fader-scale{left:9px;right:9px}
.logs-content+.hint{margin-top:8px}
@media(max-width:520px){
  .brand-logo{width:31px;height:31px;flex-basis:31px}
  .preview-card{grid-template-columns:1fr}
  .meter-panel{width:var(--monitor-panel-width);min-width:var(--monitor-panel-width);max-width:var(--monitor-panel-width)}
}

/* Keep horizontal output fader labels centred on the actual thumb travel. */
.horizontal-fader-scale{display:block;height:18px}
.horizontal-fader-scale span{position:absolute;min-width:0;width:auto;transform:translateX(-50%);text-align:center}
.horizontal-fader-scale span:nth-child(1){left:0}
.horizontal-fader-scale span:nth-child(2){left:25%}
.horizontal-fader-scale span:nth-child(3){left:50%}
.horizontal-fader-scale span:nth-child(4){left:75%}
.horizontal-fader-scale span:nth-child(5){left:100%}


/* Quicklink browser polish: brand, compact controls and wide diagnostics. */
:root{--accent:#3FA7E0}
.brand .eyebrow{color:#3FA7E0}
.status-light.live{background:#47d5c2;box-shadow:0 0 10px #47d5c260}
.badge{border-radius:9px}
.live-buttons{gap:6px}
.live-button{width:36px;min-width:36px;height:36px;min-height:36px;padding:7px;justify-content:center}
.live-button svg{width:19px;height:19px}
.app-footer{justify-content:flex-end}
.workspace.data-wide{grid-template-columns:1fr}
.workspace.data-wide .monitor-workspace{width:100%;max-width:1250px}
.workspace.data-wide .properties-panel{grid-column:1/-1;width:100%}
.workspace.data-wide .panel-scroll{max-height:none;min-height:0}
.workspace.data-wide .apply-bar{display:none}
.workspace.data-wide .stats-content table{font-size:12px}
.workspace.data-wide .logs-content{max-height:70vh}
@media(max-width:520px){.live-buttons .live-button{flex:0 0 36px}}


/* Diagnostics belong to the preview column, below one or both monitors. */
.diagnostics-panel{margin-top:14px;border:1px solid var(--border);background:var(--panel);border-radius:9px;overflow:hidden;width:100%}
.diagnostic-tabs{display:flex;border-bottom:1px solid var(--border);background:#141a23;padding:0 7px}
.diagnostic-tabs button{flex:0 0 auto;min-width:92px;padding:11px 16px;border-radius:0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;min-height:43px}
.diagnostic-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:#e8f5ff;background:#20364a55}
.diagnostics-body{min-height:170px;max-height:48vh;overflow:auto;scrollbar-width:thin;scrollbar-color:#4a5768 transparent}
.diagnostic-panel{padding:16px}
.diagnostic-panel .panel-heading{margin-bottom:8px}
.diagnostic-panel .hint{margin:6px 0 12px}
.diagnostic-panel .stats-table{font-size:12px}
.diagnostic-panel .logs-content{max-height:none}

.workspace.data-wide{grid-template-columns:minmax(0,1.65fr) minmax(365px,1fr)}
.workspace.data-wide .monitor-workspace{width:auto;max-width:none}
.workspace.data-wide .properties-panel{grid-column:auto;width:auto}
.workspace.data-wide .panel-scroll{max-height:calc(100vh - 240px);min-height:395px}
.workspace.data-wide .apply-bar{display:flex}


/* Keep call/mute controls aligned to the INPUT preview width. */
.live-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:10px 0 14px}
.input-live-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;width:100%}
.input-live-controls .live-buttons{margin-left:auto;flex:0 0 auto}
.monitor-deck.dual + .live-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.monitor-deck.dual + .live-toolbar .input-live-controls{grid-column:1;gap:2px}
@media(max-width:1050px){
  .monitor-deck.dual + .live-toolbar{grid-template-columns:1fr;gap:0}
  .monitor-deck.dual + .live-toolbar .input-live-controls{grid-column:1}
}
@media(max-width:520px){
  .input-live-controls{align-items:center}
  .input-live-controls .live-buttons{width:auto;margin-left:auto}
}


/* Split-pane browser workspace: preview/logs left, collapsible config right. */
.workspace{
  display:grid;
  grid-template-columns:minmax(430px,1fr) 14px var(--config-width,390px);
  gap:0;
  align-items:stretch
}
.monitor-workspace{
  min-width:0;
  display:flex;
  flex-direction:column;
  height:calc(100vh - 108px);
  min-height:600px;
  padding-right:10px
}
.preview-region{flex:0 0 auto;min-width:0}
.preview-cluster{width:100%;max-width:100%;min-width:0}
.preview-cluster .monitor-deck,.preview-cluster .live-toolbar{width:100%}
.logs-panel{
  flex:1 1 280px;
  min-height:170px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--panel);
  overflow:hidden;
  display:flex;
  flex-direction:column
}
.logs-toolbar{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:4px 8px;
  border-bottom:1px solid var(--border);
  background:#141a23
}
.logs-toolbar .subtle{padding-left:12px;padding-right:12px}

.logs-title{
  margin-right:auto;
  padding-left:6px;
  color:#e6f1fb;
  font-size:12px
}
.log-enabled,.log-level{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  color:#aebdcd;
  white-space:nowrap
}
.log-enabled input{width:14px;height:14px;margin:0;accent-color:#3FA7E0}
.log-level select{
  height:25px;
  min-width:108px;
  padding:1px 22px 1px 6px;
  font-size:10px
}
.logs-panel.logs-collapsed{
  flex:0 0 38px;
  min-height:38px;
  height:38px
}
.logs-panel.logs-collapsed .logs-content{display:none}
.logs-panel.logs-collapsed .logs-toolbar{
  height:38px;
  min-height:38px;
  border-bottom:0
}
.logs-panel.logs-collapsed .logs-toolbar > :not(.logs-title){display:none}
.monitor-workspace.logs-pane-collapsed .horizontal-splitter{margin-top:auto}
.logs-panel.logs-disabled:not(.logs-collapsed) .logs-content{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:90px;
  color:var(--muted);
  font-size:11px
}
.logs-panel .logs-content{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  border:0;
  border-radius:0
}
.logs-table td:first-child{width:96px;white-space:nowrap}
.logs-table td:nth-child(2){width:72px;white-space:nowrap}
.logs-table td:nth-child(3){width:120px;white-space:nowrap}
.log-level-cell{font-weight:700;letter-spacing:.03em}
.logs-table tr.log-error .log-level-cell{color:#ff8992}
.logs-table tr.log-warning .log-level-cell{color:#f5c56b}
.logs-table tr.log-info .log-level-cell{color:#8fbad7}
.logs-table tr.log-debug .log-level-cell{color:#8c99a7}
.splitter{user-select:none;touch-action:none;position:relative}
.horizontal-splitter{
  flex:0 0 14px;
  cursor:row-resize;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible
}
.horizontal-splitter::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:6px;
  height:2px;
  background:#2e3947
}
.horizontal-splitter span{
  position:relative;
  z-index:1;
  width:44px;
  height:3px;
  border-radius:2px;
  background:#425164
}
.horizontal-splitter:hover::before,.horizontal-splitter:focus-visible::before{background:var(--accent)}
.horizontal-splitter:hover span,.horizontal-splitter:focus-visible span{background:var(--accent)}
.vertical-splitter{
  min-width:14px;
  cursor:col-resize;
  border-left:1px solid transparent;
  border-right:1px solid transparent
}
.vertical-splitter::before{
  content:"";position:absolute;left:6px;top:0;bottom:0;width:2px;background:#2e3947
}
.vertical-splitter:hover::before,.vertical-splitter:focus-visible::before{background:var(--accent)}
.splitter-collapse{
  position:absolute;
  z-index:3;
  left:50%;top:18px;
  transform:translateX(-50%);
  width:20px;height:34px;min-height:34px;padding:0;
  border-radius:5px;
  background:#1a2430;
  border:1px solid #3a4859;
  color:#b7c5d4;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1
}
.splitter-collapse .splitter-icon{
  width:14px;
  height:14px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform-origin:50% 50%
}
.horizontal-splitter .logs-splitter-collapse{
  top:50%;
  transform:translate(-50%,-50%);
  width:34px;
  height:20px;
  min-height:20px;
  padding:0
}
.monitor-workspace.logs-pane-collapsed .logs-splitter-collapse .splitter-icon{
  transform:rotate(180deg)
}
.workspace.config-collapsed .config-splitter-collapse .splitter-icon{
  transform:rotate(180deg)
}
.monitor-workspace.logs-pane-collapsed .preview-cluster{
  width:100%!important;
  max-width:100%!important
}
.config-collapsed-title{display:none}
.workspace.config-collapsed{
  grid-template-columns:minmax(0,1fr) 38px 0
}
.workspace.config-collapsed .properties-panel{display:none}
.workspace.config-collapsed .vertical-splitter{
  min-width:38px;
  background:#141a23;
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
  cursor:default
}
.workspace.config-collapsed .vertical-splitter::before{display:none}
.workspace.config-collapsed .config-collapsed-title{
  display:block;
  position:absolute;
  left:50%;
  top:62px;
  transform:translateX(-50%) rotate(180deg);
  writing-mode:vertical-rl;
  color:#aebdcd;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  user-select:none
}
.workspace.config-collapsed .vertical-splitter .splitter-collapse{
  top:14px
}
.properties-panel{width:100%;min-width:0;align-self:start}
.workspace.config-collapsed .monitor-workspace{padding-right:10px}

/* Let audio metering consume width before resorting to hidden overflow. */
.preview-card{--monitor-panel-width:90px;overflow:visible}
.preview-card.audio-ch-1{--monitor-panel-width:90px}
.preview-card.audio-ch-2{--monitor-panel-width:120px}
.preview-card.audio-ch-many{--monitor-panel-width:132px}
.preview-card .video-column{overflow:hidden;border-radius:8px 0 0 8px}
.meter-panel{
  position:relative;
  overflow:visible;
  border-radius:0 8px 8px 0;
  width:var(--monitor-panel-width);
  min-width:var(--monitor-panel-width);
  max-width:var(--monitor-panel-width)
}
.meter-stack{width:auto;min-width:31px;max-width:none}
.meters{
  width:auto;min-width:31px;max-width:none;
  overflow:hidden;
  gap:3px
}
.audio-ch-1 .meters{width:31px;min-width:31px;max-width:31px}
.audio-ch-2 .meters,.audio-ch-many .meters{width:65px;min-width:65px;max-width:65px}
.meter-more{
  min-height:22px;
  height:22px;
  padding:1px 5px;
  border-radius:4px;
  font-size:8px;
  white-space:nowrap;
  background:#1d2a37;
  border-color:#405164;
  color:#b9c9d9
}
.meter-more[aria-expanded=true]{border-color:var(--accent);color:#dff4ff}
.meter-bank-popout{
  position:absolute;
  z-index:40;
  right:4px;
  top:34px;
  width:min(570px,calc(100vw - 48px));
  max-height:330px;
  padding:8px;
  border:1px solid #4a5d72;
  border-radius:8px;
  background:#0e151d;
  box-shadow:0 12px 30px #000b
}
.meter-bank-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:7px;
  font-size:11px;color:#d6e4f2
}
.meter-bank-close{
  width:25px;height:25px;min-height:25px;padding:0;
  font-size:18px;line-height:1;background:transparent
}
.meter-bank-meters{
  display:flex;
  align-items:stretch;
  gap:3px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 5px
}
.meter-bank-meters .meter{
  flex:0 0 31px;
  width:31px;min-width:31px;max-width:31px;
  height:240px
}
.meter-bank-meters .meter canvas{width:31px;max-width:31px}

/* Stats is again the final tab in the right-side config pane. */
.tabs button{min-width:66px}

/* The old diagnostics-wide layout no longer participates in layout. */
.diagnostics-panel,.diagnostic-tabs,.diagnostics-body{display:none!important}

@media(max-width:1050px){
  .monitor-workspace{height:auto;min-height:0}
}
@media(max-width:900px){
  .workspace,.workspace.config-collapsed{
    grid-template-columns:1fr;
    gap:16px
  }
  .vertical-splitter{display:none}
  .workspace.config-collapsed .properties-panel{display:block}
  .monitor-workspace{padding-right:0;height:auto;min-height:0}
  .preview-cluster{width:100%!important}
  .logs-panel{min-height:260px}
}
@media(max-width:520px){
  .horizontal-splitter{display:none}
  .logs-panel{min-height:240px}
  .preview-card.audio-ch-1,.preview-card.audio-ch-2,.preview-card.audio-ch-many{
    --monitor-panel-width:120px
  }
  .meter-bank-popout{position:fixed;left:12px;right:12px;top:80px;width:auto}
}


/* Default splitter position: reserve more vertical space for Logs. */
.monitor-workspace{padding-right:0}
.preview-cluster{width:76%;max-width:100%}
@media(max-width:900px){
  .monitor-workspace{padding-right:0}
  .preview-cluster{width:76%}
}
@media(max-width:520px){
  .preview-cluster{width:100%!important}
}


/* Splitter/pane reliability and full-height configuration. */
.workspace{
  height:calc(100vh - 108px);
  min-height:560px;
  align-items:stretch
}
.monitor-workspace{
  height:100%;
  min-height:0
}
.properties-panel{
  align-self:stretch;
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden
}
.properties-panel .tabs{flex:0 0 auto}
.properties-panel .panel-scroll{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden
}
.properties-panel .apply-bar{flex:0 0 auto}
.splitter.dragging,.splitter:active{background:#172330}
body.splitter-dragging{cursor:grabbing!important;user-select:none!important}

/* All-channel meter mixer is a movable floating tool window. */
.meter-more{
  min-height:28px;
  height:auto;
  padding:4px 7px;
  font-size:9px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#17374f;
  border:1px solid #3FA7E0;
  color:#e8f7ff;
  box-shadow:inset 0 0 0 1px #ffffff0d
}
.meter-more::after{
  content:attr(data-channel-count);
  display:inline-grid;
  place-items:center;
  min-width:17px;
  height:17px;
  margin-left:5px;
  padding:0 3px;
  border-radius:9px;
  background:#3FA7E0;
  color:#07121b;
  font-size:8px;
  font-weight:900
}
.meter-more[data-channel-count=""]::after{display:none}
.meter-more:hover:not(:disabled){background:#214b68;border-color:#70c7f4}
.meter-more[aria-expanded=true]{background:#245b7e;border-color:#7dd2ff;color:#fff}
.meter-bank-popout{
  position:fixed;
  z-index:1000;
  left:20px;
  top:80px;
  right:auto;
  width:min(1060px,calc(100vw - 32px));
  max-height:min(76vh,620px);
  padding:0;
  border:1px solid #51677e;
  border-radius:9px;
  background:#0e151d;
  box-shadow:0 18px 48px #000c;
  overflow:hidden
}
.meter-bank-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:38px;
  margin:0;
  padding:5px 8px 5px 12px;
  border-bottom:1px solid #354558;
  background:#172330;
  font-size:12px;
  color:#e1edf8;
  cursor:move;
  user-select:none;
  touch-action:none
}
.meter-bank-heading strong::after{
  content:" · drag to move";
  color:#7f94aa;
  font-size:9px;
  font-weight:400
}
.meter-bank-close{cursor:pointer}
.meter-bank-meters{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(62px,1fr));
  align-items:start;
  gap:6px;
  overflow:auto;
  max-height:calc(min(76vh,620px) - 39px);
  padding:9px
}
.channel-meter-tile{
  min-width:0;
  border:1px solid #2d3d4d;
  border-radius:6px;
  background:#101a23;
  padding:6px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px
}
.channel-meter-tile>strong{
  font-size:9px;
  letter-spacing:.08em;
  color:#afc4d8
}
.channel-meter-tile .meter{
  position:relative;
  flex:0 0 215px;
  width:31px;
  min-width:31px;
  height:215px;
  min-height:215px
}
.channel-meter-tile .meter canvas{
  width:31px;
  max-width:31px;
  height:199px
}
.channel-gain-slider{
  width:100%;
  min-width:0;
  accent-color:#3FA7E0
}
.channel-gain-readout{
  font-size:9px;
  font-variant-numeric:tabular-nums;
  color:#d4e5f5;
  white-space:nowrap
}
.channel-gain-reset{
  min-height:22px;
  padding:1px 5px;
  font-size:8px;
  background:transparent;
  color:#8fa3b8
}

/* No hidden gutter: Logs owns the complete left split-pane width. */
.monitor-workspace{padding-right:0}
.workspace.config-collapsed .monitor-workspace{padding-right:0}

@media(max-width:1050px) and (min-width:901px){
  .workspace{height:calc(100vh - 108px);min-height:560px}
  .monitor-workspace{height:100%;min-height:0}
}
@media(max-width:900px){
  .workspace,.workspace.config-collapsed{
    height:auto;
    min-height:0
  }
  .properties-panel{
    height:auto;
    max-height:none
  }
  .properties-panel .panel-scroll{
    max-height:none
  }
  .meter-bank-popout{
    width:min(860px,calc(100vw - 24px))
  }
}
@media(max-width:520px){
  .meter-bank-popout{
    position:fixed;
    left:12px;
    right:auto;
    top:70px;
    width:calc(100vw - 24px);
    max-height:calc(100vh - 82px)
  }
  .meter-bank-meters{
    grid-template-columns:repeat(4,minmax(54px,1fr));
    max-height:calc(100vh - 126px)
  }
  .meter-bank-heading strong::after{display:none}
}


/* Browser Logs follow control mirrors the C++ client. */
.log-autoscroll{
  display:flex;
  align-items:center;
  gap:6px;
  margin-right:auto;
  font-size:10px;
  color:#aebdcd;
  user-select:none;
  white-space:nowrap
}
.log-autoscroll input{
  width:14px;
  height:14px;
  margin:0;
  accent-color:#3FA7E0
}
.log-autoscroll span{font-weight:600}


/* Per-channel preview audio controls. The visible 1-2 channel pane and the
   all-channel popout intentionally use the same broadcast-style vertical fader. */
.master-gain-strip[hidden]{display:none!important}
.preview-card{--monitor-panel-width:150px}
.preview-card.audio-ch-1{--monitor-panel-width:118px}
.preview-card.audio-ch-2{--monitor-panel-width:194px}
.preview-card.audio-ch-many{--monitor-panel-width:194px}
.meter-panel{gap:5px;padding-right:6px}
.meter-stack{min-width:30px;gap:4px}
.meters{gap:4px;overflow:visible}
.inline-channel-tile{
  display:flex;
  align-items:stretch;
  gap:2px;
  min-width:72px;
}
.inline-channel-tile .meter{
  flex:0 0 31px;
  width:31px;
  min-width:31px;
}
.channel-gain-strip{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:39px;
  min-width:39px;
  gap:3px;
}
.channel-gain-strip .gain-title{
  font-size:8px;
  line-height:20px;
  height:20px;
}
.channel-gain-strip .fader-well{
  width:39px;
  min-width:39px;
  min-height:145px;
  padding:2px 0;
}
.channel-gain-strip .fader-scale{inset:3px 0}
.channel-gain-strip .fader-scale span{font-size:7px}
.channel-gain-strip .fader-scale span::after{width:13px}
.channel-gain-strip .fader-well input{
  width:28px;
  inset:2px 0 2px auto;
  height:calc(100% - 4px);
}
.channel-gain-strip .fader-well input::-webkit-slider-thumb{
  width:28px;
  height:16px;
  margin-left:-11px;
}
.channel-gain-strip .fader-well input::-moz-range-thumb{
  width:28px;
  height:16px;
}
.channel-gain-readout{
  min-height:14px;
  font-size:8px;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.meter-more{
  min-height:18px!important;
  height:18px!important;
  padding:0 4px!important;
  border-radius:3px!important;
  font-size:7px!important;
  line-height:16px!important;
  letter-spacing:.05em!important;
  box-shadow:none!important;
}
.meter-more::after{display:none!important}
.meter-more:disabled{
  opacity:.28;
  background:#151d26;
  border-color:#33404e;
  color:#718094
}
.meter-bank-popout{
  max-width:calc(100vw - 32px);
  width:auto;
}
.meter-bank-meters{
  display:flex;
  grid-template-columns:none;
  align-items:flex-start;
  gap:4px;
  padding:7px;
}
.channel-meter-tile{
  flex:0 0 72px;
  width:72px;
  min-width:72px;
  max-width:72px;
  padding:5px 3px;
  gap:4px;
}
.channel-meter-tile .channel-gain-strip{width:39px;min-width:39px}
.channel-meter-tile .meter{
  flex:0 0 215px;
  width:31px;
  min-width:31px;
  max-width:31px;
}
.channel-meter-tile .fader-well{min-height:150px}
.channel-gain-reset{display:none!important}

/* Source metadata activity sits immediately before the recorder. */
.metadata-indicator{
  width:30px;
  min-width:30px;
  height:36px;
  display:inline-grid;
  place-items:center;
  border:1px solid #354150;
  border-radius:5px;
  background:#171d25;
  color:#677587;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  opacity:.72;
  user-select:none
}
.metadata-indicator.active{
  border-color:#4d9ec1;
  background:#173246;
  color:#8edcff;
  opacity:1;
  box-shadow:inset 0 0 0 1px #73c9ef22,0 0 7px #4ebbe833
}
.cc-indicator{font-size:10px;letter-spacing:.02em}

/* Compact recorder transport beside the mute controls. */
.record-button{
  min-height:36px;
  height:36px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 9px;
  border-radius:6px;
  background:#181f28;
  border:1px solid #3a4655;
  color:#dce6f1;
  font-variant-numeric:tabular-nums;
}
.record-button .record-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#7e8792;
  box-shadow:inset 0 0 0 1px #ffffff18;
}
.record-button.recording{
  border-color:#9b3f48;
  background:#352126;
  color:#ffe7e9;
}
.record-button.recording .record-dot{
  background:#ef4f5b;
  box-shadow:0 0 9px #ef4f5b80;
}
.record-timecode{
  min-width:72px;
  font-family:"Consolas","Cascadia Mono",monospace;
  font-size:11px;
  letter-spacing:.025em;
}


/* Inline preview mixer: intentionally much tighter than the full popout.
   Popout dimensions/scales remain unchanged. */
.preview-card.audio-ch-1{--monitor-panel-width:56px}
.preview-card.audio-ch-2,.preview-card.audio-ch-many{--monitor-panel-width:92px}
.meter-panel{padding-right:3px;padding-left:3px;gap:1px}
.meter-stack{min-width:0;width:100%;gap:3px}
.meters{gap:1px;justify-content:center}
.inline-channel-tile{
  min-width:0;
  width:43px;
  gap:1px;
  align-items:stretch
}
.inline-channel-tile .meter{
  flex:0 0 8px;
  width:8px;
  min-width:8px;
  max-width:8px
}
.inline-channel-tile .meter canvas{
  width:8px;
  min-width:8px;
  max-width:8px
}
.inline-channel-tile .meter-label{
  font-size:7px;
  transform:translateX(-1px)
}
.inline-gain-strip{
  width:33px;
  min-width:33px;
  gap:1px
}
.inline-gain-strip .fader-well{
  width:33px;
  min-width:33px;
  min-height:150px;
  padding:1px 0
}
.inline-gain-strip .fader-well input{
  width:25px;
  inset:1px 0 1px auto;
  height:calc(100% - 2px)
}
.inline-gain-strip .fader-well input::-webkit-slider-thumb{
  width:24px;
  height:14px;
  margin-left:-9px
}
.inline-gain-strip .fader-well input::-moz-range-thumb{
  width:24px;
  height:14px
}
.inline-gain-strip .channel-gain-readout{
  font-size:7px;
  line-height:12px;
  min-height:12px
}


/* Inline meter/fader pairing refinement. */
.preview-card.audio-ch-1{--monitor-panel-width:52px}
.preview-card.audio-ch-2,.preview-card.audio-ch-many{--monitor-panel-width:86px}
.inline-channel-tile{
  width:41px;
  gap:0;
  align-items:flex-start
}
.inline-channel-tile .meter{
  flex:0 0 9px;
  width:9px;
  min-width:9px;
  max-width:9px;
  height:166px;
  min-height:166px
}
.inline-channel-tile .meter canvas{
  width:9px;
  min-width:9px;
  max-width:9px;
  height:150px
}
.inline-gain-strip{
  width:32px;
  min-width:32px;
  gap:0
}
.inline-gain-strip .fader-well{
  width:32px;
  min-width:32px;
  height:150px;
  min-height:150px;
  flex:0 0 150px;
  padding:0
}
.inline-gain-strip .fader-scale{
  inset:0;
  opacity:.85
}
.inline-gain-strip .fader-scale span{
  font-size:6px;
  line-height:1
}
.inline-gain-strip .fader-scale span::after{
  width:8px
}
.inline-gain-strip .fader-well input{
  width:24px;
  inset:0 0 0 auto;
  height:150px
}
.inline-gain-strip .channel-gain-readout{
  margin-top:2px
}


/* Inline audio pane follows the actual 16:9 video area, not the label row. */
.preview-card .meter-panel{
  align-self:end;
  min-height:0;
  overflow:visible
}
.preview-card.audio-ch-1{--monitor-panel-width:62px}
.preview-card.audio-ch-2,.preview-card.audio-ch-many{--monitor-panel-width:116px}
.meter-stack{
  height:100%;
  min-height:0
}
.meters{
  flex:1 1 auto;
  min-height:0;
  align-items:stretch
}
.inline-channel-tile{
  width:54px;
  height:100%;
  min-height:0;
  align-items:stretch
}
.inline-channel-tile .meter{
  flex:0 0 24px;
  width:24px;
  min-width:24px;
  max-width:24px;
  height:100%;
  min-height:0
}
.inline-channel-tile .meter canvas{
  width:24px;
  min-width:24px;
  max-width:24px;
  height:calc(100% - 16px)
}
.inline-gain-strip{
  width:30px;
  min-width:30px;
  height:100%;
  min-height:0
}
.inline-gain-strip .fader-well{
  width:30px;
  min-width:30px;
  height:auto;
  min-height:0;
  flex:1 1 auto;
  padding:0
}
.inline-gain-strip .fader-well input{
  width:22px;
  inset:0 0 0 auto;
  height:100%
}
.inline-gain-strip .channel-gain-readout{
  flex:0 0 14px;
  min-height:14px;
  margin:2px 0 0
}


/* Conventional record transport icon: outlined circle with filled centre. */
.record-button .record-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  border:1.5px solid currentColor;
  background:transparent;
  display:grid;
  place-items:center;
  box-shadow:none;
}
.record-button .record-dot::after{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}
.record-button.recording .record-dot{
  background:transparent;
  border-color:#ef4f5b;
  color:#ef4f5b;
  box-shadow:0 0 7px #ef4f5b55;
}
.record-button.recording .record-dot::after{
  background:#ef4f5b;
}


/* Final inline audio width ownership: prevent legacy meter width caps from
   clipping channel 2 or the ALL CHANNELS control. */
.preview-card .meter-stack{
  width:100%;
  max-width:none
}
.preview-card .meters,
.preview-card.audio-ch-0 .meters,
.preview-card.audio-ch-1 .meters,
.preview-card.audio-ch-2 .meters,
.preview-card.audio-ch-many .meters{
  width:100%;
  min-width:0;
  max-width:none;
  overflow:visible;
  justify-content:flex-start
}
.preview-card.audio-ch-0{--monitor-panel-width:52px}
.preview-card.audio-ch-1{--monitor-panel-width:68px}
.preview-card.audio-ch-2{--monitor-panel-width:122px}
.preview-card.audio-ch-many{--monitor-panel-width:122px}
.preview-card .inline-channel-tile{
  flex:0 0 54px;
  width:54px;
  min-width:54px;
  max-width:54px
}
.preview-card .meter-more{
  align-self:center;
  max-width:108px;
  width:auto;
  white-space:nowrap
}


/* In-call dual-preview layout: never sacrifice the audio control column when
   two preview cards share the deck. Shrink video first. */
.monitor-deck.dual .preview-card{
  min-width:0;
  overflow:visible
}
.monitor-deck.dual .preview-card.audio-ch-1{
  --monitor-panel-width:68px;
  grid-template-columns:minmax(0,1fr) 68px
}
.monitor-deck.dual .preview-card.audio-ch-2,
.monitor-deck.dual .preview-card.audio-ch-many{
  --monitor-panel-width:122px;
  grid-template-columns:minmax(0,1fr) 122px
}
.monitor-deck.dual .preview-card .meter-panel{
  width:var(--monitor-panel-width);
  min-width:var(--monitor-panel-width);
  max-width:var(--monitor-panel-width);
  overflow:visible
}
.monitor-deck.dual .preview-card .meter-stack,
.monitor-deck.dual .preview-card .meters{
  width:100%;
  min-width:0;
  max-width:none;
  overflow:visible
}
.monitor-deck.dual .preview-card .inline-channel-tile{
  flex:0 0 54px;
  width:54px;
  min-width:54px;
  max-width:54px
}
.monitor-deck.dual .preview-card .meter-more:not([hidden]){
  display:block;
  width:max-content;
  max-width:112px;
  margin-left:auto;
  margin-right:auto
}


/* Preview body geometry: audio pane always spans exactly the 16:9 picture body.
   The 25px INPUT/OUTPUT label row is excluded; no top gap or bottom strip. */
.preview-card{
  align-items:stretch
}
.preview-card .video-column{
  align-self:stretch
}
.preview-card .video-wrap{
  flex:1 1 auto;
  min-height:0
}
.preview-card .meter-panel{
  align-self:start!important;
  margin-top:25px;
  height:calc(100% - 25px)!important;
  min-height:0;
  max-height:none;
  box-sizing:border-box
}
.monitor-deck.dual .preview-card .meter-panel{
  align-self:start!important;
  margin-top:25px;
  height:calc(100% - 25px)!important
}


/* Dual preview cards must size to their own 16:9 video bodies. Do not let the
   grid row stretch the shorter OUTPUT card to INPUT's height. */
.monitor-deck.dual{
  align-items:start
}
.monitor-deck.dual .preview-card{
  align-self:start;
  height:fit-content
}
.monitor-deck.dual .output-monitor .meter-panel,
.monitor-deck.dual .input-monitor .meter-panel{
  margin-top:25px;
  height:calc(100% - 25px)!important;
  align-self:start!important
}


/* Make retained process-crash reports obvious after the client reconnects. */
.logs-table tr.crash-entry td{
  background:#3a1e24!important;
  color:#ffd8dc!important;
  border-color:#7a3944!important;
  font-weight:650
}
.logs-table tr.crash-entry td:nth-child(2),
.logs-table tr.crash-entry td:nth-child(3){
  color:#ff7f89!important;
  text-transform:uppercase
}


/* Dual in-call cards must use identical audio-column geometry. This prevents
   a transient mono OUTPUT report from making its 16:9 video taller than INPUT. */
.monitor-deck.dual .preview-card,
.monitor-deck.dual .preview-card.audio-ch-1,
.monitor-deck.dual .preview-card.audio-ch-2,
.monitor-deck.dual .preview-card.audio-ch-many{
  --monitor-panel-width:122px;
  grid-template-columns:minmax(0,1fr) 122px
}


/* WebRTC source-channel selector exists only in the INPUT popout strip.
   It deliberately does not use the platform/native checkbox appearance. */
.channel-meter-tile .send-channel-toggle{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
  padding:0;
  margin:5px auto 7px;
  border:1px solid #596777;
  border-radius:2px;
  background:#090d12;
  box-shadow:none
}
.channel-meter-tile .send-channel-toggle:hover:not(:disabled){
  background:#111922;
  border-color:#75869a
}
.channel-meter-tile .send-channel-toggle-fill{
  display:block;
  width:10px;
  height:10px;
  background:transparent
}
.channel-meter-tile .send-channel-toggle[aria-checked="true"] .send-channel-toggle-fill{
  background:var(--accent)
}
.channel-meter-tile .send-channel-toggle[aria-checked="true"]{
  border-color:#607a78
}
.channel-meter-tile .send-channel-toggle:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px
}

/* Recorder transport/settings: compact, cohesive and separate from output. */
#recordButton{
  border-top-right-radius:0;
  border-bottom-right-radius:0
}
#recordButton + .record-settings-button{
  margin-left:-5px;
  border-top-left-radius:0;
  border-bottom-left-radius:0
}
.record-settings-button{margin-right:6px}
.profile-saveas-dialog{
  width:min(380px,calc(100vw - 28px));padding:0;border:1px solid var(--border);
  border-radius:8px;background:#151c25;color:var(--text);box-shadow:0 18px 48px #0009
}
.profile-saveas-dialog::backdrop{background:#05080ca8}
.profile-saveas-form{padding:14px;display:grid;gap:14px}
.profile-saveas-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.profile-saveas-heading h2{margin:0;font-size:16px;font-weight:600}
.profile-saveas-actions{display:flex;justify-content:flex-end;gap:7px}
.profile-saveas-actions button{min-height:32px;padding:5px 11px}
.record-settings-dialog{
  width:min(340px,calc(100vw - 28px));padding:0;border:1px solid var(--border);
  border-radius:8px;background:#151c25;color:var(--text);box-shadow:0 18px 48px #0009
}
.record-settings-dialog::backdrop{background:#05080ca8}
.record-settings-form{padding:14px;display:grid;gap:12px}
.record-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.record-settings-heading h2{margin:0;font-size:16px;font-weight:600}
.dialog-close{width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1}
.record-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.record-settings-actions{display:flex;justify-content:flex-end;gap:7px}
.record-settings-actions button{min-height:32px;padding:5px 11px}
.record-settings-dialog .hint{margin:0}
@media(max-width:520px){.record-settings-grid{grid-template-columns:1fr}}


/* Live manual colour correction controls. */
.colour-preview-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#05080d;
  pointer-events:none;
  z-index:1
}
.colour-button{
  font-size:19px;
  line-height:1;
  padding:4px;
  filter:saturate(.92)
}
.colour-button.active{
  border-color:#5dbce9;
  background:#1e3d52;
  box-shadow:inset 0 0 0 1px #78ccf133
}
.output-live-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  min-width:0;
  width:100%;
  padding-left:4px
}
.output-live-label{
  margin-right:auto;
  font-size:9px;
  letter-spacing:.14em;
  font-weight:750;
  color:#91a8be
}
.monitor-deck.dual + .live-toolbar .output-live-controls{grid-column:2}
@media(max-width:1050px){
  .monitor-deck.dual + .live-toolbar .output-live-controls{
    grid-column:1;
    margin-top:7px
  }
}
.colour-palette{
  position:fixed;
  z-index:1000;
  left:max(18px,calc(50vw - 290px));
  top:100px;
  width:min(580px,calc(100vw - 32px));
  border:1px solid #50657b;
  border-radius:9px;
  background:linear-gradient(180deg,#1a222c,#111820);
  box-shadow:0 22px 60px #000b;
  color:var(--text);
  user-select:none
}
.colour-palette-header{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 9px 8px 13px;
  border-bottom:1px solid #354454;
  background:#202a35;
  border-radius:8px 8px 0 0;
  cursor:move;
  touch-action:none
}
.colour-palette-header>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px
}
.colour-palette-header strong{font-size:13px;font-weight:650}
.colour-palette-header span{font-size:9px;color:#91a5b9;letter-spacing:.06em}
.colour-palette-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px 5px
}
.colour-enable{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:#d9e5f1
}
.colour-enable input{accent-color:var(--accent)}
.colour-reset{
  margin-left:auto;
  min-height:28px;
  padding:3px 10px;
  font-size:10px;
  border:1px solid #445569
}
.colour-knob-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px;
  padding:8px 10px 12px
}
.colour-knob{
  --angle:0deg;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:7px 2px 6px;
  border-radius:6px;
  outline:none;
  cursor:ns-resize;
  touch-action:none
}
.colour-knob:hover{background:#26324080}
.colour-knob:focus-visible{box-shadow:inset 0 0 0 1px var(--accent)}
.knob-face{
  position:relative;
  width:54px;
  height:54px;
  border-radius:50%;
  background:
    radial-gradient(circle at 38% 32%,#718090 0,#34404d 35%,#161d25 71%,#090d12 100%);
  border:1px solid #7b8998;
  box-shadow:
    inset 0 1px 2px #ffffff42,
    inset 0 -5px 9px #0009,
    0 3px 7px #0008
}
.knob-face::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:50%;
  border:1px solid #a8b5c31f
}
.knob-face.hue-ring{
  border:2px solid transparent;
  background:
    radial-gradient(circle,#26313c 0 58%,transparent 60%),
    conic-gradient(#ff4747,#ffe34b,#56dc69,#46dfe4,#4b61e9,#cc52e8,#ff4747);
  box-shadow:0 3px 7px #0008
}
.knob-indicator{
  position:absolute;
  left:50%;
  top:5px;
  width:2px;
  height:18px;
  border-radius:2px;
  background:#e9f6ff;
  box-shadow:0 0 4px #8ed6ff;
  transform-origin:1px 22px;
  transform:translateX(-1px) rotate(var(--angle))
}
.knob-label{
  font-size:9px;
  color:#aab9c8;
  white-space:nowrap
}
.knob-value{
  min-width:50px;
  text-align:center;
  padding:2px 4px;
  border:1px solid #344354;
  border-radius:3px;
  background:#0b1016;
  color:#d9f3ff;
  font:9px/1.3 "Consolas","Cascadia Mono",monospace;
  font-variant-numeric:tabular-nums
}
.colour-palette-note{
  border-top:1px solid #2f3c4a;
  padding:7px 11px 9px;
  color:#7f94a9;
  font-size:9px
}
@media(max-width:520px){
  .colour-palette{width:calc(100vw - 20px);left:10px!important}
  .colour-knob-grid{grid-template-columns:repeat(3,1fr)}
  .knob-face{width:50px;height:50px}
}


/* Keep the expanded INPUT transport bounded after adding the colour button.
   In dual/narrow layouts the portal sub-status yields to the live controls,
   while the primary call state and status lamp remain visible. */
.monitor-deck.dual + .live-toolbar .input-live-controls .call-readout{
  min-width:0;
  flex:1 1 auto;
  gap:5px;
  overflow:hidden
}
.monitor-deck.dual + .live-toolbar .input-live-controls .call-readout>div{
  min-width:0
}
.monitor-deck.dual + .live-toolbar .input-live-controls #portalState{
  display:none
}
.monitor-deck.dual + .live-toolbar .input-live-controls #callState{
  white-space:nowrap;
  font-size:11px
}
@media(max-width:520px){
  .input-live-controls{gap:7px;min-width:0}
  .input-live-controls .call-readout{
    min-width:0;
    flex:1 1 auto;
    gap:5px;
    overflow:hidden
  }
  .input-live-controls .call-readout>div{min-width:0}
  .input-live-controls #portalState{display:none}
  .input-live-controls #callState{white-space:nowrap;font-size:11px}
  .input-live-controls .live-buttons{flex:0 0 auto;max-width:calc(100% - 42px)}
}


/* Final mobile monitor geometry: when the audio pane stacks below video, give
   it the same height as the 16:9 video body. Late desktop pane rules must not
   collapse the inline faders to zero height on narrow screens. */
@media(max-width:520px){
  .preview-card .meter-panel,
  .monitor-deck.dual .preview-card .meter-panel,
  .monitor-deck.dual .input-monitor .meter-panel,
  .monitor-deck.dual .output-monitor .meter-panel{
    margin-top:0!important;
    height:clamp(150px,calc((100vw - 26px) * 9 / 16),280px)!important;
    min-height:150px!important;
    align-self:stretch!important;
    justify-self:center
  }
}


/* Colour correction interaction guidance and precise nudge controls. */
.colour-instruction{
  margin:1px 12px 2px;
  padding:6px 8px;
  border-top:1px solid #2e3b49;
  border-bottom:1px solid #2e3b49;
  color:#8fa4b8;
  font-size:9px;
  line-height:1.2;
  text-align:center;
  letter-spacing:.025em
}
.knob-value-control{
  display:grid;
  grid-template-columns:20px minmax(46px,1fr) 20px;
  align-items:center;
  gap:3px;
  width:92px;
  max-width:100%
}
.knob-value-control .knob-value{
  min-width:0;
  width:100%;
  box-sizing:border-box
}
.knob-step{
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px;
  padding:0;
  border:1px solid #425368;
  border-radius:3px;
  background:#141d26;
  color:#bed0df;
  font-size:13px;
  line-height:18px;
  font-weight:600;
  box-shadow:none
}
.knob-step:hover:not(:disabled){
  border-color:#65819b;
  background:#1c2935;
  color:#edf8ff
}
.knob-step:active:not(:disabled){
  background:#263849;
  transform:translateY(1px)
}
.knob-step:focus-visible{
  outline:1px solid var(--accent);
  outline-offset:1px
}
@media(max-width:520px){
  .knob-value-control{
    grid-template-columns:18px minmax(42px,1fr) 18px;
    width:84px;
    gap:2px
  }
  .knob-step{
    width:18px;
    min-width:18px;
    height:19px;
    min-height:19px;
    font-size:12px
  }
}


/* Machine-wide StudioCall profile library. */
.profile-bar{
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto;
  grid-template-rows:auto 1fr;
  column-gap:10px;
  row-gap:4px;
  padding:10px 12px 8px;
  border-bottom:1px solid var(--border);
  background:#111923;
  align-items:center
}
.profile-select-label{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#9fb0c3;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  align-self:center
}
.profile-select-label select{
  min-width:0;
  flex:1 1 auto;
  height:32px;
  padding:5px 9px;
  font-size:11px
}
.profile-status{
  grid-column:1;
  grid-row:2;
  align-self:end;
  min-width:0;
  color:#8295aa;
  font-size:9px;
  line-height:1.15;
  padding-bottom:1px
}
.profile-status.error{color:var(--danger,#ff7c83)}
.profile-actions{
  grid-column:2;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:wrap;
  align-self:center
}
.profile-actions button{
  min-height:32px;
  padding:5px 10px;
  font-size:11px;
  line-height:1
}
.profile-actions .danger{color:#ff9ca1}
@media(max-width:520px){
  .profile-bar{grid-template-columns:1fr}
  .profile-status,.profile-actions{grid-column:1;grid-row:auto}
  .profile-actions{justify-content:flex-start}
}


/* Portal hyperlink focused views. */
body.view-config-max .workspace{
  display:block;
}
body.view-config-max .monitor-workspace,
body.view-config-max #configSplitter{
  display:none!important;
}
body.view-config-max .properties-panel{
  width:min(60vw,1100px);
  min-width:0;
  margin:0 auto;
}
body.view-config-max .panel-scroll{
  max-height:calc(100vh - 210px);
  min-height:calc(100vh - 330px);
}
@media(max-width:1100px){
  body.view-config-max .properties-panel{
    width:min(88vw,900px);
  }
}
body.view-logs-max .workspace{
  display:block;
}
body.view-logs-max .preview-region,
body.view-logs-max #configSplitter,
body.view-logs-max .properties-panel{
  display:none!important;
}
body.view-logs-max .monitor-workspace{
  width:100%;
  max-width:none;
  height:calc(100vh - 108px);
  min-height:0;
  padding-right:0;
}
body.view-logs-max #logsSplitter{
  display:none!important;
}
body.view-logs-max .logs-panel{
  min-height:calc(100vh - 108px);
  height:calc(100vh - 108px);
  border-radius:9px;
}
body.view-logs-max .logs-content{
  max-height:none;
  flex:1 1 auto;
}
.logs-disabled-tip{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:40px;
  color:var(--muted);
}
.logs-disabled-tip strong{
  color:var(--text);
  font-size:16px;
  font-weight:650;
}
.logs-disabled-tip span{
  max-width:520px;
  line-height:1.6;
}
.profile-action-message{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 16px;
  white-space:pre-line;
}


/* Focused colour-correction / audio-gain portal view. */
body.view-preview-focus .workspace{
  display:block;
}
body.view-preview-focus #configSplitter,
body.view-preview-focus .properties-panel,
body.view-preview-focus #logsSplitter,
body.view-preview-focus .logs-panel{
  display:none!important;
}
body.view-preview-focus .monitor-workspace{
  width:100%;
  max-width:none;
  height:auto;
  min-height:0;
  padding-right:0;
  display:block;
}
body.view-preview-focus .preview-region{
  width:min(72vw,1180px);
  margin:0 auto;
}
body.view-preview-focus .profile-bar{
  width:min(100%,900px);
  margin:0 auto 14px;
  border:1px solid var(--border);
  border-radius:9px;
}
body.view-preview-focus .profile-select-label select{
  max-width:420px;
}
body.view-preview-focus .preview-cluster{
  width:min(100%,1040px)!important;
  margin:0 auto;
}
body.view-preview-focus .live-toolbar{
  width:min(100%,1040px);
  margin:0 auto;
}
@media(max-width:900px){
  body.view-preview-focus .preview-region{
    width:94vw;
  }
}

/* Keep focused configuration controls comfortably bounded on wide displays. */
body.view-config-max .profile-bar{
  max-width:860px;
  margin-left:auto;
  margin-right:auto;
}
body.view-config-max .profile-select-label select{
  max-width:420px;
}
body.view-config-max .tab-panel{
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}
body.view-config-max .tab-panel .field input:not([type=checkbox]),
body.view-config-max .tab-panel .field select{
  max-width:520px;
}
body.view-config-max .tab-panel .segmented{
  max-width:620px;
}
body.view-config-max .tab-panel .inline-actions{
  max-width:720px;
}


/* Use the same comfortable profile selector width in every focused view. */
body.view-config-max .profile-select-label,
body.view-preview-focus .profile-select-label{
  max-width:640px;
}
body.view-config-max .profile-select-label select,
body.view-preview-focus .profile-select-label select{
  width:560px;
  max-width:min(560px,100%);
  flex:0 1 560px;
}
@media(max-width:760px){
  body.view-config-max .profile-select-label select,
  body.view-preview-focus .profile-select-label select{
    width:100%;
    max-width:100%;
    flex:1 1 auto;
  }
}


/* Improve stats readability and row tracking. */
.stats-table{
  font-size:13px;
}
.stats-table thead th{
  font-size:12px;
}
.stats-table tbody th,
.stats-table tbody td{
  padding:8px 10px;
  transition:background-color .08s ease,color .08s ease;
}
.stats-table tbody tr:hover th,
.stats-table tbody tr:hover td{
  background:#26384a;
  color:#f4f8fc;
}
.stats-table tbody tr:hover th{
  color:#b9cce0;
}


/* Portal room overrides are temporary runtime state, not profile edits. */
.portal-override-notice{
  padding:7px 12px;
  border-bottom:1px solid #6a3036;
  background:#2d171b;
  color:#ff8f98;
  font-size:11px;
  font-weight:600;
}
.field.portal-override>span:first-child{
  color:#ff7f89;
}
.field.portal-override input:not([type=checkbox]),
.field.portal-override select{
  color:#ff9ca3;
  border-color:#7b3940;
  background:#211417;
  opacity:1;
}
.field.portal-override input[type=checkbox]{
  border-color:#7b3940;
  opacity:1;
}
.portal-override-label{
  color:#ff7f89;
  font-size:10px;
  font-weight:600;
}
