.source-tools{display:grid;justify-items:end;gap:7px;flex:none}.source-control-toggle,.source-mixer-toggle{border:1px solid var(--line);border-radius:22px;background:var(--card-2);color:var(--ink);padding:7px 13px;font:700 11px var(--sans);min-height:36px;cursor:pointer}.source-control-toggle.active{background:#08b947;border-color:#08b947;color:white}.source-control-panel{background:transparent;border:0;border-radius:0;padding:16px;margin:0 0 20px}.source-control-heading{display:flex;justify-content:space-between;gap:12px;font:600 12px var(--sans)}.source-control-heading span{color:#66dab0;font-size:10px}.source-control-body{display:flex;justify-content:center;align-items:center;gap:20px;margin:15px 0}.source-control-panel button{min-height:44px;border:1px solid #354152;background:#202e42;color:#f0f5ff;border-radius:12px;cursor:pointer;touch-action:manipulation}.source-control-panel button:disabled{opacity:.35}.source-control-panel button:active{background:#365d88}.source-control-panel button:focus-visible{outline:2px solid #73b7ff;outline-offset:2px}.source-control-panel small{display:block;font-size:10px;color:#abbdd4}.source-dpad{width:220px;height:220px;flex:none;padding:11px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;border-radius:50%;background:radial-gradient(circle,#354f70,#101e31);border:1px solid #395273}.source-dpad button{font-size:28px;background:transparent;border:0}.source-dpad .up{grid-area:1/2}.source-dpad .left{grid-area:2/1}.source-dpad .center{grid-area:2/2;border-radius:50%;background:#385579;font-size:15px;box-shadow:0 4px 12px #0005}.source-dpad .right{grid-area:2/3}.source-dpad .down{grid-area:3/2}.source-control-side{display:grid;gap:10px;width:88px}.source-control-side button{padding:7px;font-size:22px}.source-control-side label{font:500 10px var(--sans);color:#b4c5dc}.source-control-side input{width:100%;margin-top:12px;accent-color:#41c4e0}.source-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.source-presets>div{min-width:0}.source-presets button{width:100%;min-height:48px;background:#143e4c;border-color:#236877;padding:6px}.source-presets strong{display:block;font-size:16px;color:#84e3f0}.source-presets span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:500 10px var(--sans)}.source-presets .preset-edit{font-size:10px;min-height:32px;margin-top:4px;background:transparent;border:0}.source-remote-extras{display:flex;flex-wrap:wrap;gap:7px}.source-remote-extras button{flex:1;padding:8px;font-size:11px}.source-control-result{font:400 11px var(--sans);color:#becfe4;margin:12px 0 0;min-height:16px}[data-control-panel][hidden],[data-source-tvs][hidden]{display:none!important}@media(max-width:370px){.source-control-panel{padding:12px}.source-control-body{gap:12px}.source-dpad{width:188px;height:188px}.source-control-side{width:68px}.source-presets{gap:4px}}
.tv-tile-label{display:flex;align-items:center;gap:5px;padding:9px 7px;font:600 11px var(--sans);min-width:0}.tv-tile-label>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-tile-label .dot{flex:none}
.google-remote{background:transparent;padding:14px}.google-remote-layout{display:grid;grid-template-columns:58px minmax(0,1fr);gap:16px;margin-top:18px}.google-apps{display:grid;align-content:start;gap:12px}.google-apps button{font-size:23px;font-weight:700;min-height:62px;padding:7px 2px}.google-apps small{font-size:9px;margin-top:4px}.google-apps .app-youtube{background:#b91c28}.google-apps .app-netflix{background:#f5f5f5;color:#db1723}.google-apps .app-netflix small{color:#333}.google-apps .app-prime{background:#1762a8;font-size:15px}.google-apps .app-disney{background:#102660;font-size:12px}.google-navigation{min-width:0}.google-navigation .source-dpad{width:min(100%,230px);height:auto;aspect-ratio:1;margin:0 auto 17px;background:radial-gradient(circle,#3a3d46,#171a20);border-color:#30333c;box-sizing:border-box}.google-navigation .source-dpad .center{background:#42454e}.google-buttons{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}.remote-rocker{display:grid;text-align:center;background:#252832;border-radius:24px;overflow:hidden;align-content:space-between}.remote-rocker button{background:transparent;border:0;font-size:22px}.remote-middle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.remote-middle button{padding:5px 1px;border-radius:50%;background:#252832;font-size:17px}.remote-middle .remote-mute{grid-column:1/-1;border-radius:18px;font-size:10px;min-height:32px}@media(max-width:370px){.google-remote-layout{gap:9px;grid-template-columns:48px minmax(0,1fr)}.google-remote{padding:10px}.google-buttons{gap:4px;grid-template-columns:36px minmax(0,1fr) 36px}.google-buttons button{min-width:0}}

.tv-compact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}.tv-compact-card{min-height:62px;display:flex;flex-direction:column;justify-content:center}.tv-compact-card .tv-wifi{padding:5px 6px 0;margin:0;gap:4px}.tv-compact-card .tv-wifi small{font-size:9px}.tv-compact-card .tv-tile-label{padding:6px;font-size:10px;gap:4px}.tv-compact-card .wifi-bars{transform:scale(.85);transform-origin:left center}@media(max-width:350px){.tv-compact-grid{gap:6px!important}.tv-compact-card .tv-tile-label{font-size:9px;padding:6px 4px}.tv-compact-card .tv-wifi{padding-left:4px}.tv-compact-card .tv-wifi small{font-size:8px}}

.tv-compact-card .tv-wifi{padding:0 6px 7px}.tv-compact-card .tv-tile-label{padding:7px 6px 5px}

.source-tools{align-content:center;justify-items:stretch;min-width:82px}.source-tools>button{width:100%;text-align:center}.source-mixer-toggle[hidden]{display:none!important}
/* Preview, selector and full control share one page flow on phones. */
.source-screen{height:100dvh;min-height:0;overflow:hidden}.source-screen>.topbar,.source-screen>.tabbar{flex-shrink:0}.source-screen>.content{min-height:0;padding-bottom:8px;scroll-padding-top:0}
/* Keep the preview geometry when the same source switches between its remote and TVs. */
.source-screen:has([data-control-panel]) .source-stage{position:relative;background:var(--bg);padding-bottom:2px}
.source-screen:has([data-control-panel]) .source-monitor{max-height:27dvh;margin-top:0!important;margin-bottom:8px!important}
.source-screen .source-selector-row{position:relative;top:8px}
.source-tvs-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.source-tvs-heading>.eyebrow{margin:0}
.source-control-panel,.google-remote{padding:6px 0 0;margin:0;background:transparent;border:0}.source-control-heading{font-size:11px;align-items:center;min-height:16px}.source-control-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-control-body{margin:8px 0;gap:18px}.source-control-body .source-dpad{width:clamp(145px,40vw,176px);height:auto;aspect-ratio:1;box-sizing:border-box}.source-control-side{width:76px;gap:6px}.source-control-side button{min-height:44px;padding:4px}.source-control-side input{margin-top:7px;min-height:24px}.source-presets button{min-height:44px}.source-presets .preset-edit{min-height:28px;margin-top:0}.source-control-result{margin:5px 0 0;min-height:0;font-size:10px}.source-control-result:empty{display:none}
.compact-google-layout{display:grid;grid-template-columns:48px 44px minmax(0,164px);gap:30px;justify-content:center;margin-top:6px;align-items:stretch;max-width:370px;margin-inline:auto}.compact-google-layout .google-apps{gap:6px;align-content:space-between}.compact-google-layout .google-apps button{min-height:44px;height:48px;padding:3px 1px;font-size:21px}.compact-google-layout .google-apps small{font-size:8px;margin-top:2px}.compact-google-layout .app-prime{font-size:14px}.compact-google-layout .app-disney{font-size:10px}.compact-rockers{display:grid;align-content:center}.compact-rockers .remote-rocker{height:144px}.compact-rockers .remote-rocker button{min-height:40px;padding:0}.compact-rockers small{font-size:9px}.compact-navigation{display:grid;grid-template-rows:44px auto 44px;gap:4px;align-content:center;min-width:0}.compact-navigation .source-dpad{width:clamp(132px,38vw,164px);height:auto;aspect-ratio:1;max-width:100%;box-sizing:border-box;justify-self:center;padding:4px;gap:0;background:radial-gradient(circle,#343d4b,#1d2532);border-color:#485362}.compact-navigation .source-dpad .center{background:#2c394c}.compact-nav-row{display:flex;justify-content:space-between;gap:4px;width:100%;max-width:164px;justify-self:center}.compact-nav-row button{min-width:40px;min-height:44px;border-radius:50%;background:var(--card-2);border-color:var(--line);font-size:21px;flex:0 1 44px;padding:0}.compact-nav-row .compact-mute{font-size:9px;flex:1;max-width:60px;border-radius:16px}@media(max-width:350px){.compact-google-layout{grid-template-columns:44px 40px minmax(0,164px);gap:30px}.compact-nav-row button{min-width:36px}.source-screen>.content{padding-inline:12px}}
@media(max-height:700px){.source-control-body{margin:4px 0}.source-control-panel{padding-top:4px}}
.compact-google-layout .google-apps{min-width:0}.compact-google-layout .google-apps button{min-width:0;width:100%;overflow:hidden}.compact-google-layout .google-apps .app-prime{font-size:13px}.compact-google-layout .google-apps .app-disney{font-size:9px}
.compact-navigation{grid-template-rows:44px auto auto}.compact-navigation>.compact-nav-row:last-child{margin-top:8px;min-height:44px}
.source-control-panel .source-presets{width:100%;max-width:400px;margin-inline:auto;gap:6px}.source-control-panel .source-presets button{min-height:36px;padding:4px;border-radius:10px}.source-control-panel .source-presets strong{font-size:14px}.source-control-panel .source-presets span{font-size:9px}.source-control-panel .source-presets .preset-edit{min-height:24px;padding:3px;font-size:9px}

.control-input-dialog{background:var(--card,#17191d);color:var(--ink,#fff);border:1px solid var(--line,#333);border-radius:14px;padding:20px;width:min(360px,85vw)}
.control-input-dialog::backdrop{background:#0008}.control-input-dialog label{display:grid;gap:12px}.control-input-dialog input{min-width:0;padding:12px;background:var(--bg,#101214);color:inherit;border:1px solid var(--line,#333);border-radius:8px}.control-input-dialog form>div{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.control-input-dialog button{padding:10px 14px;border-radius:8px;background:var(--card);color:inherit;border:1px solid var(--line)}

.source-control-body{margin-bottom:0}.source-presets{margin-top:20px}.remote-playback svg{display:block;width:22px;height:22px;fill:currentColor;margin:auto}

.source-screen>.content:has(>.source-control-panel){display:flex;flex-direction:column}.source-screen>.content>.source-stage{flex-shrink:0}/* Center the active remote in the remaining mobile space; let short screens scroll. */
.source-screen>.content>.source-control-panel:not([hidden]){display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;padding-block:8px}.source-control-panel .compact-google-layout{width:100%;margin-block:0}


.source-control-panel .source-dpad{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));min-height:0;flex-shrink:0}.source-control-panel .source-dpad button{min-width:0;min-height:0;padding:0;display:grid;place-content:center;justify-items:center}.source-control-panel .source-dpad .control-arrow{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* A soft internal light marks the assigned source without changing card geometry. */
.tv-compact-card.is-source-active,.source-console .tv-compact-card.is-source-active{background:#000}

/* PTZ shares the Google remote shell, directional pad and rocker. */
.ptz-remote .compact-navigation{grid-template-rows:auto auto;gap:12px;align-content:center}
.source-control-panel .ptz-preset-column{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;max-width:none;align-content:center}
.ptz-preset-slot{position:relative;min-width:0}
.source-control-panel .ptz-preset-column .ptz-preset{width:100%;height:44px;min-height:44px;padding:3px 2px;background:var(--card-2);border-color:var(--line);color:var(--ink)}
.ptz-preset-column .ptz-preset strong{font-size:14px;line-height:16px}
.ptz-preset-column .ptz-preset span{display:block;max-width:100%;font-size:8px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.source-control-panel .ptz-preset-column .preset-edit{position:absolute;right:-22px;top:10px;width:22px;min-height:24px;padding:0;border:0;background:transparent;font-size:7px;color:var(--ink-dim)}
.ptz-speed-control{display:grid;gap:5px;width:100%;max-width:164px;justify-self:center;font:10px var(--sans);color:var(--ink-dim);text-align:center}
.ptz-speed-control input{width:100%;min-width:0;margin:0;min-height:28px;accent-color:var(--accent)}

.source-control-panel .ptz-preset-column .ptz-preset.active{box-shadow:0 0 0 2px var(--green);border-color:transparent}

.source-selector-icon{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:var(--ink-dim);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

.source-control-panel{position:relative}.source-control-panel .source-control-result{position:static;margin:0 12px 8px;font:500 12px/1.4 var(--sans);color:var(--red);letter-spacing:0;text-transform:none;max-height:none;overflow:visible;overflow-wrap:anywhere}.source-control-panel .source-control-result:empty{display:none}

.ptz-remote.has-focus .compact-google-layout{grid-template-columns:44px 40px 40px minmax(0,164px);gap:clamp(8px,3vw,22px);max-width:430px}.ptz-focus{gap:8px}.ptz-focus .focus-auto{font-size:10px;min-height:32px;padding:0}.ptz-remote.has-focus .compact-navigation .source-dpad{width:164px;max-width:100%}

.ptz-focus{position:relative;align-self:center;height:144px}.ptz-focus .focus-auto{position:absolute;top:152px;width:100%}

.cec-power-switch{width:46px;height:26px;min-width:46px;border:0;border-radius:20px;background:#383e46;padding:3px;cursor:pointer;align-self:center;margin:0 8px;}
.cec-power-switch span{display:block;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .18s;}
.cec-power-switch.is-on{background:#00c853;}.cec-power-switch.is-on span{transform:translateX(20px);}
.cec-power-switch.is-mixed{box-shadow:inset 0 0 0 2px #cda743;}
.cec-power-switch:disabled{opacity:.45;cursor:default;}.cec-power-switch:focus-visible{outline:2px solid #78a8ff;outline-offset:4px;}
.cec-membership{display:flex;justify-content:space-between;gap:12px;width:100%;margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:10px;background:transparent;color:inherit;text-align:left;}
.cec-membership[aria-checked="true"] span{color:#00d66a;}.tv-remote-panel>small{display:block;margin-top:8px;color:var(--muted);}

.tv-power-settings:not(:empty){margin-bottom:20px}.tv-power-picker{display:flex;flex-direction:column;gap:8px}.tv-power-picker select{width:100%;min-width:0;padding:11px;border-radius:6px;background:var(--card-2);border:1px solid var(--line);color:var(--ink);font:inherit}.tv-power-picker select:disabled{opacity:.55}

.cec-power-control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0 8px;flex:none}.cec-power-label{margin:0;font-size:9px;line-height:1;letter-spacing:.11em}.cec-power-control .cec-power-switch{margin:0}

/* Black LCD with a matching source list. The hidden select retains source values. */
.source-retro-display{position:relative;isolation:isolate;flex:1;min-width:0;height:42px;border:2px solid #222;border-bottom-color:#373737;border-radius:6px;background:#060606;box-shadow:inset 0 3px 6px #000,inset 2px 0 4px #000,0 1px 0 #ffffff0b;overflow:hidden}
.source-retro-display::after{content:"";position:absolute;z-index:2;inset:0;box-shadow:inset 0 2px 4px #000a;background:linear-gradient(175deg,#ffffff04,transparent 55%);pointer-events:none}
.source-retro-display:focus-within{outline:2px solid transparent;outline-offset:3px;animation:source-selector-outline-fade .8s ease 2s both}
.source-retro-display:has(.source-picker-trigger[aria-expanded=true]){outline:2px solid #6a9eff;outline-offset:3px;animation:none}
@keyframes source-selector-outline-fade{from{outline-color:#6a9eff}to{outline-color:transparent}}
@media(prefers-reduced-motion:reduce){.source-retro-display:focus-within{animation-duration:1ms}}
.source-retro-face{position:absolute;z-index:1;inset:4px 27px 4px 7px;display:flex;container-type:inline-size;pointer-events:none}
.source-retro-name{display:grid;grid-template-columns:repeat(var(--lcd-columns),minmax(0,1fr));gap:.5px;width:min(100%,calc(50% + var(--lcd-columns) * .3em));min-width:0;font:700 clamp(11px,calc(105cqw / var(--lcd-columns)),18px)/1 var(--mono);letter-spacing:0;white-space:pre;color:#00b7f4}
.source-retro-name>span{display:grid;place-items:center;min-width:0;overflow:hidden;background:#ffffff04;border-radius:1px;text-shadow:0 0 2px #00b7f418}
.source-retro-arrow{position:absolute;left:calc(100% + 7px);top:0;height:100%;display:grid;place-items:center;font:16px/1 monospace;color:#b9b9ae}
.source-retro-display>select{position:absolute;z-index:3;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}


.source-retro-window{display:flex;width:100%;min-width:0;overflow:hidden}
.source-retro-name{flex-shrink:0}

.source-control-toggle,.source-control-toggle.active,.source-tools>.source-control-toggle,.source-console .source-control-toggle{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:8px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#9aa2ad}
.source-control-toggle svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.source-control-toggle:hover{opacity:.75}.source-control-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:4px}

.source-retro-display>.source-picker-trigger{position:absolute;z-index:3;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:pointer;color:inherit}
.source-picker-menu{position:fixed;z-index:100;box-sizing:border-box;padding:7px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #626b7466;border-radius:12px;background:rgba(4,6,8,.84);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 14px 36px #0009,inset 0 1px #ffffff0c;color:#00b7f4}
.source-picker-heading{padding:8px 9px 6px;font:600 10px/1.4 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#9ca7b0}
.source-picker-menu>[role=group]+[role=group]{margin-top:5px;padding-top:5px;border-top:1px solid #ffffff13}
.source-picker-option{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 8px;border:1px solid transparent;border-radius:7px;cursor:pointer;touch-action:manipulation}
.source-picker-option-label{flex:1;min-width:0;padding:6px 2px;font:700 14px/1.5 var(--mono);letter-spacing:.1em;overflow-wrap:anywhere;color:#8c969f;background:none}
.source-picker-mark{display:none}
.source-picker-option.is-active .source-picker-option-label{color:#c8d1d7}
body:has(.source-picker-trigger:focus-visible) .source-picker-option.is-active .source-picker-option-label{text-decoration:underline;text-underline-offset:4px}
.source-picker-option[aria-selected=true] .source-picker-option-label{color:#00b7f4}
@media(forced-colors:active){.source-retro-face{display:none}.source-picker-trigger::after{content:attr(data-selected-label);color:ButtonText}.source-picker-menu{background:Canvas;color:CanvasText;border-color:ButtonText}.source-picker-option.is-active{outline:2px solid Highlight}.source-picker-mark,.source-picker-heading{color:CanvasText}}

@media(max-width:767px){.source-tools{justify-items:center;align-content:center}.source-tools>.source-control-toggle,.source-tools>.source-control-toggle.active{width:52px;height:52px;min-height:52px;justify-self:center;background:transparent;color:var(--ink);border:0;border-radius:0;padding:10px}.source-control-toggle svg{width:30px;height:30px}}

.source-retro-display.has-channel{height:68px}.has-channel .source-retro-window{flex-direction:column;justify-content:center;gap:7px}.has-channel .source-retro-name{height:24px;flex:none}.source-retro-channel{display:block;color:#00b7f4;font:600 13px/1.2 var(--mono);letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

[data-channel-catalog]{touch-action:none;user-select:none;-webkit-touch-callout:none}.channel-catalog-dialog{width:min(560px,94vw);max-height:85dvh;overflow:auto}.channel-catalog-row{display:grid;grid-template-columns:65px minmax(0,1fr) 40px;gap:6px;margin:8px 0}.channel-catalog-row input{width:100%;padding:8px}.channel-catalog-dialog p{font-size:12px;color:var(--ink-dim)}

.source-retro-display.has-channel .source-retro-face{bottom:31px}.source-retro-display.has-channel>.source-picker-trigger{height:34px;bottom:auto}.source-retro-display>.source-channel-trigger{position:absolute;z-index:3;left:0;bottom:0;width:100%;height:30px;display:flex;align-items:center;gap:8px;padding:3px 10px;border:0;border-top:1px solid #ffffff0d;background:transparent;color:#00b7f4;text-align:left;cursor:pointer}.source-channel-trigger .source-retro-channel{display:flex;align-items:center;gap:9px;flex:1;min-width:0}.source-retro-channel>span:first-child{overflow:hidden;text-overflow:ellipsis}.source-channel-number{flex:none}.source-channel-arrow{flex:none;color:#b9b9ae;font:16px monospace}.source-channel-trigger:focus-visible{outline:2px solid #6a9eff;outline-offset:-2px}

/* Matching LCD panels: source above, station and number below. */
.source-retro-display.has-channel{height:64px;box-sizing:border-box;background:#0b0d0f;padding:3px}
.source-retro-display.has-channel .source-retro-face{inset:4px 4px auto;height:27px;box-sizing:border-box;padding:1px 28px 1px 7px;border:1px solid #ffffff0b;border-radius:3px;background:linear-gradient(110deg,#020509,#0a1015 65%,#020305);box-shadow:inset 0 2px 4px #000}
.source-retro-display.has-channel .source-retro-window{justify-content:center;gap:0}
.source-retro-display.has-channel .source-retro-name{display:block;width:100%;font:700 17px/24px var(--mono);letter-spacing:.12em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-retro-display.has-channel .source-retro-name>span{display:inline;background:transparent;border-radius:0}
.source-retro-display.has-channel .source-retro-arrow{left:auto;right:7px}
.source-retro-display.has-channel>.source-picker-trigger{top:4px;left:4px;width:calc(100% - 8px);height:27px;min-height:0;box-sizing:border-box}
.source-retro-display.has-channel>.source-channel-trigger{left:4px;bottom:4px;width:calc(100% - 8px);height:27px;min-height:0;box-sizing:border-box;padding:1px 7px;border:1px solid #ffffff0b;border-radius:3px;background:linear-gradient(110deg,#020509,#0a1015 65%,#020305);box-shadow:inset 0 2px 4px #000}
.source-channel-trigger .source-retro-channel{font:700 17px/24px var(--mono);letter-spacing:.12em;color:#d4cf91;gap:9px;text-shadow:0 0 1px #d4cf9118}
.source-channel-trigger .source-channel-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-channel-trigger .source-channel-number{padding-left:9px;border-left:1px solid #d4cf9126}
.source-channel-trigger .source-channel-state{flex:none;font:600 8px/1 var(--sans);letter-spacing:0;text-shadow:none;color:#b6b9bc}
.source-channel-state:empty{display:none}
.source-channel-trigger[data-tuning-state="confirmed"] .source-channel-state{color:#60c996}
.source-channel-trigger[data-tuning-state="pending"]{cursor:wait}

.channel-catalog-dialog form>[data-channel-rows]{display:block}.channel-catalog-row input{box-sizing:border-box}

/* TV/control and Power share the left side; the LCD fills the rest. */
.source-selector-row>.source-tools:not(:has(.source-mixer-toggle)){min-width:52px;justify-items:center}.source-selector-row>.cec-power-control{margin:0;min-width:46px}


.tv-remote-launch>svg{width:18px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}.tv-remote-launch:disabled{opacity:.45;cursor:default}
.android-remote-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink);box-shadow:0 24px 80px #0008}.android-remote-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.android-remote-dialog header{display:flex;align-items:start;justify-content:space-between;gap:12px}.android-remote-dialog h2{font:600 18px var(--sans);margin:0}.android-remote-dialog header p{margin:5px 0 0;color:var(--ink-dimmer);font:13px var(--sans)}.android-remote-dialog header button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:var(--card-2);color:inherit;cursor:pointer}.android-remote-dialog [data-android-status]{font:12px var(--sans);color:var(--ink-dimmer);margin:14px 0 0}.android-remote-dialog .source-control-panel{padding:4px 0 0;margin:0}.android-remote-dialog .compact-google-layout{grid-template-columns:44px 40px minmax(0,164px);gap:clamp(12px,5vw,28px)}.android-remote-dialog .source-control-result{color:var(--ink-dimmer);margin:8px 0;min-height:16px}.android-player-layout .google-apps{align-content:space-between}.android-player-layout .google-apps .remote-rocker{height:144px}.android-player-layout .google-apps .remote-rocker button{font-size:22px;height:40px;min-height:40px}.android-player-layout .app-motv{background:#216548}

.remote-create-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:90dvh;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);padding:22px}.remote-create-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.remote-create-dialog header,.remote-output-sheet header{display:flex;justify-content:space-between;align-items:center;gap:12px}.remote-create-dialog h2,.remote-output-sheet h2{font:600 20px var(--sans);margin:5px 0}.remote-create-dialog header button,.remote-output-sheet header button{border:0;background:transparent;color:inherit;font-size:20px;padding:8px;cursor:pointer}.remote-create-dialog label,.remote-output-sheet label{display:grid;gap:7px;margin:15px 0;font:500 12px var(--sans)}.remote-create-dialog input:not([type=checkbox]),.remote-create-dialog select,.remote-output-sheet input:not([type=checkbox]),.remote-output-sheet select{box-sizing:border-box;width:100%;min-width:0;padding:11px;border-radius:9px;border:1px solid var(--line);background:var(--card-2);color:var(--ink);font:13px var(--sans)}.remote-create-dialog p,.remote-create-dialog small,.remote-output-sheet p,.remote-output-sheet small{color:var(--ink-dimmer);font:12px/1.5 var(--sans)}.remote-create-dialog .output-check,.remote-output-sheet .output-check,.remote-output-sheet .output-switch{display:flex;align-items:center;gap:9px}.output-switch{justify-content:space-between}.output-switch input,.output-check input{accent-color:var(--green);width:20px;height:20px}.output-link{display:flex;gap:7px}.output-link button{background:var(--card-2);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px;cursor:pointer}.remote-output-sheet{max-height:90dvh}.remote-output-sheet .row{gap:9px}.remote-output-sheet .btn{font-size:12px}

.source-screen .tv-compact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}.source-screen .tv-compact-card,.source-screen .source-console .tv-compact-card{aspect-ratio:16/9;min-height:0;border-radius:8px;border:1px solid #ffffff26;background:rgba(0,0,0,.52);color:#f2f5f8;justify-content:center;padding:4px 2px;box-sizing:border-box;gap:3px}.source-screen .tv-compact-card .tv-tile-label{padding:0 4px;font-size:10px;line-height:1.1}.source-screen .tv-compact-card .dot{width:4px;height:4px;flex:none}.source-screen .tv-compact-card .tv-wifi{padding:0 4px;gap:4px;line-height:1}.source-screen .tv-compact-card .tv-wifi small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-matrix-tag{color:#a0b2c3}.tv-matrix-tag svg{width:12px;height:12px;flex:none}.source-screen .tv-compact-card.is-source-active{border-color:#60d4aa;background:#071c17cc}.source-screen .tv-placeholder{background:#0002;border-style:dashed;opacity:.25}.matrix-sheet-monitor{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;display:grid;place-items:center;margin:12px 0}

/* Native horizontal paging: each panel has at most six rows of four TVs. */
.source-tv-pages{min-width:0;max-width:100%}
.tv-pages-viewport{display:flex;min-width:0;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x;padding:0;box-sizing:border-box;gap:0}
.tv-pages-viewport::-webkit-scrollbar{display:none}
.tv-pages-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.source-screen .tv-pages-viewport>.tv-page{flex:0 0 100%;min-width:0;box-sizing:border-box;padding:3px;align-content:start;scroll-snap-align:start;scroll-snap-stop:always;margin:0!important}
.tv-page-navigation{display:flex;align-items:center;gap:4px;font:11px var(--mono);white-space:nowrap}
.tv-page-navigation button{width:32px;height:32px;min-height:32px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff08;color:var(--ink);font-size:22px;padding:0;cursor:pointer}
.tv-page-navigation button:disabled{opacity:.25;cursor:default}
.tv-page-navigation button:focus-visible{outline:2px solid var(--accent)}
.channel-shortcuts-dialog{width:min(400px,94vw);max-height:85dvh;overflow:auto;box-sizing:border-box}
.channel-shortcuts-dialog>p{font-size:12px;color:var(--ink-dim);line-height:1.5}
.channel-shortcuts-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.channel-shortcuts-list button{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px;text-align:left;border:1px solid #ffffff24;background:#ffffff08;color:var(--ink);border-radius:10px;cursor:pointer}
.channel-shortcuts-list strong{color:#8ab9ff;font-size:18px;min-width:32px}.channel-shortcuts-list span{font-size:12px;overflow-wrap:anywhere}
.channel-shortcuts-actions{display:flex;justify-content:space-between;gap:10px}.channel-shortcuts-dialog button:disabled{opacity:.5;cursor:wait}
.channel-shortcuts-dialog button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
