.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}
/* Compact source workspace: keep the monitor in view and remove the old footer gap. */
.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}.source-screen:has([data-control-panel]:not([hidden])) .source-stage{position:sticky;top:0;z-index:3;background:var(--bg);padding-bottom:2px}.source-screen:has([data-control-panel]:not([hidden])) .source-monitor{max-height:27dvh;margin-top:0!important;margin-bottom:8px!important}.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:not([hidden])){display:flex;flex-direction:column}.source-screen>.content>.source-stage{flex-shrink:0}.source-screen>.content>.source-control-panel:not([hidden]){display:flex;flex-direction:column;justify-content:center;flex:1 0 auto;padding-block:12px}.source-control-panel .compact-google-layout{width:100%;margin-block:0}
@media(max-height:700px){.source-screen>.content>.source-control-panel:not([hidden]){padding-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:absolute;top:0;left:0;right:0;margin:0;font:600 10.5px/1.4 var(--mono);color:var(--ink-dimmer);letter-spacing:.11em;text-transform:uppercase;max-height:30px;overflow:auto}.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-cec-settings:not(:empty){margin-bottom:20px}.tv-cec-settings>small{display:block;margin-top:8px;color:var(--ink-dimmer)}
