*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#555;font-family:Arial,Helvetica,sans-serif;color:#eff6fc}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9bdfff;outline-offset:2px}#frame{position:absolute;left:50%;top:0;transform:translateX(-50%)}#uci{width:1112px;height:834px;position:relative;overflow:hidden;transform-origin:top left;background:#13171b url('hexagon-wallpapers.jpg') center/cover}footer{position:absolute;bottom:0;left:0;width:100%;height:26px;background:#0a1722;padding:4px 12px;display:flex;justify-content:space-between;font-size:11px;gap:12px;align-items:center}footer a{color:#8fcde8}footer button{background:none;border:0;color:#d4e8f7;text-decoration:underline}.abs{position:absolute}.control{background:linear-gradient(#193344,#0f2330);border:1px solid #4c7a9e;color:#f1f6fa;border-radius:7px;box-shadow:inset 0 0 5px #030a1070;white-space:pre-line;text-align:center}.control.active{background:linear-gradient(#88b7ff,#578bd2);color:white}.control.red{background:linear-gradient(#ef7c87,#9f2433)}.panel{background:#112633;border:1px solid #46677b;border-radius:8px}.label{display:flex;align-items:center;justify-content:center;white-space:pre-line;text-align:center;overflow:hidden}.header{background:#001626}.brand-logo{object-fit:contain;padding:5px 14px}.venue{color:#76b9ed;font-size:26px}.icon{padding:0;background:none;border:0}.icon img{width:100%;height:100%;object-fit:contain}.icon.active{filter:drop-shadow(0 0 3px #62bdff)}.power{background:radial-gradient(ellipse at center,#052538,#000 80%);border:1px solid #3179a5;border-radius:9px;color:#00adff;font-size:52px;line-height:.9;padding:4px;box-shadow:inset 0 0 8px #126391}.power.off{color:#f32d2d}.power small{display:block;font-size:13px;line-height:1.1;color:#d2eeff}.source{padding:0;overflow:hidden;font-size:13px}.source-title{height:38px;display:flex;align-items:center;justify-content:center;padding:2px 4px;overflow:hidden}.source img{width:112px;height:50px;object-fit:contain}.source-meta{color:#86c6ff;font-size:13px;text-align:left}.chan{background:#dbe7ed;padding:0;border:1px solid #86b5d1;color:#172b3d;overflow:hidden}.chan img{width:100%;height:55px;object-fit:contain;padding:3px 5px}.chan span{display:block;height:19px;background:#30485b;color:white;font-size:10px;padding:3px}.count{color:#64c7fa;font-size:13px;background:#001522}.key{border-radius:1px}.shade{background:#0b1622;border:1px solid #28455e;border-radius:7px;z-index:4}.popup{z-index:5;background:#192f40;border-radius:8px}.popup-text{z-index:6;background:#183042;border-radius:7px;text-align:left;justify-content:flex-start;padding:8px;line-height:1.3;overflow:hidden}.popup-poster{z-index:6;object-fit:contain;background:#102838;border-radius:7px}.popbtn{z-index:6}.tune{background:linear-gradient(#9de3fb,#59b8db);color:#132836}.tv{padding:0;background:#30383d;border:4px solid #33383d;border-radius:2px;box-shadow:inset 0 0 12px #111}.tv img{width:85%;height:67px;object-fit:contain;margin-top:24px}.tv small{position:absolute;top:5px;left:5px;color:#a1c9ed;font-size:11px}.tv .tvmeta{position:absolute;top:5px;right:5px;font-size:11px}.tv.active{border-color:#66baf6}.vertical{writing-mode:vertical-lr;direction:rtl;appearance:auto;accent-color:#70a9ef;cursor:pointer}.horizontal{accent-color:#dc91ba}.room-heading{font-size:17px}.game-card{text-align:left;overflow:hidden;cursor:pointer}.game-card.selected{border:2px solid #66baff}.game-status{position:absolute;left:3px;right:3px;top:3px;height:22px;text-align:center;background:#22679d;border-radius:7px;font-size:13px;padding:3px}.game-art{position:absolute;left:12px;top:35px;width:124px;height:72px;display:flex;align-items:center;justify-content:center;gap:4px}.game-art img{max-width:57px;max-height:69px;object-fit:contain}.game-art.poster{background:#0a1c2b;border:1px solid #32628b;border-radius:4px;font-size:12px;text-align:center;padding:5px;white-space:pre-line}.game-title{position:absolute;left:146px;top:37px;width:197px;max-height:53px;font-size:17px;line-height:1.2;overflow:hidden}.game-score{position:absolute;left:146px;top:91px;font-size:13px;color:#b8daec}.game-channel{position:absolute;left:12px;bottom:6px;font-size:12px}.weekend{background:#091b29}.schedule-copy{text-align:left;justify-content:flex-start;line-height:1.35}.schedule-select{color:white;background:#19374b;border:1px solid #50758d;padding:6px;border-radius:5px}.schedule-tv.active{background:#007fc4}.guide-cell{border-radius:3px;text-align:left;padding:7px;font-size:14px;overflow:hidden}.guide-cell.active{background:#375e80}.guide-art{object-fit:contain;background:#122a3d}.program-poster{background:linear-gradient(145deg,#235470,#0b1a2d);border:1px solid #447695;display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre-line;padding:12px;font-size:24px;line-height:1.25;border-radius:5px}.keyboard{background:#132d41;z-index:10;border:1px solid #6494b8;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}.keyboard-row{display:flex;justify-content:center;gap:6px}.keyboard-row button{min-width:48px;height:42px}.settings-form{display:grid;grid-template-columns:230px 1fr;gap:14px;align-items:center;padding:20px;overflow:auto}.settings-form input,.settings-form select{background:#183549;color:#edf6fc;border:1px solid #5c829c;padding:10px}.settings-form h2,.settings-form p{grid-column:1/-1}.demo-note{color:#9ec5db;font-size:13px}.song-panel{font-size:13px}.feedback{background:#113348;color:#dff8ff;border:1px solid #5483a6;border-radius:6px;z-index:20;padding:12px;text-align:center;pointer-events:none}.power-shade{z-index:15;background:#081320e8}.book{padding:12px;font-size:14px;line-height:1.35}.remove{background:#742a38;color:white}.selected-art{display:flex;align-items:center;justify-content:center;gap:22px}.selected-art img{width:90px;height:90px;object-fit:contain}
.room-heading{display:flex;align-items:center;text-align:left;gap:12px;padding:3px 9px}.room-heading svg{width:32px;height:30px;flex-shrink:0}.label svg{width:38px;height:38px}.new-badge{position:absolute;left:1px;right:1px;bottom:0;background:#ffd957;color:#102336;font:bold 11px Arial;letter-spacing:.4px;border-radius:3px;padding:3px;animation:newFeature 1.8s ease-in-out infinite}.game-feature{box-shadow:0 0 0 1px #d5be47;border-radius:10px}@keyframes newFeature{0%,100%{background:#ffd957;box-shadow:0 0 3px #ffdf59}50%{background:#fff5b0;box-shadow:0 0 13px #ffdf59}}@media(prefers-reduced-motion:reduce){.new-badge{animation:none}}.guide-art img{max-width:100%;max-height:100%}.song-panel{font-size:12px}#uci .disabled{opacity:.45}.vertical{touch-action:none}.new-badge{pointer-events:none}

.control.icon.active{background:none}.source-meta{white-space:nowrap;text-overflow:ellipsis;display:block;font-size:12px;line-height:18px}.source-title{font-size:12px}.vertical{-webkit-appearance:none;appearance:none;background:transparent}.vertical::-webkit-slider-runnable-track{width:9px;border-radius:5px;background:linear-gradient(#d6e1ea,#659ee7);height:100%}.vertical::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:70px;height:26px;border-radius:10px;background:#6499df;margin-left:-30px;box-shadow:0 1px 3px #11263e}.horizontal::-webkit-slider-thumb{cursor:pointer}
.setup-panel{padding:16px;display:flex;flex-direction:column;gap:10px}.setup-heading{display:flex;justify-content:space-between;align-items:center;height:32px}.setup-heading h2{font-size:21px;margin:0}.setup-heading span{font-size:11px;color:#83caff}.setup-body{flex:1;min-height:0;overflow:auto;font-size:13px}.setup-body h3{font-size:15px;margin:10px 0}.setup-grid{display:grid;gap:12px;margin:8px 0}.setup-grid.two{grid-template-columns:repeat(2,1fr)}.setup-grid.three{grid-template-columns:repeat(3,1fr)}.setup-grid.four{grid-template-columns:repeat(4,1fr)}.sf{display:flex;flex-direction:column;gap:5px;color:#aed7f4;font-size:12px;min-width:0}.sf input,.sf select,.sf textarea{box-sizing:border-box;width:100%;min-width:0;background:#0b2034;color:#fff;border:1px solid #527c9b;border-radius:4px;padding:7px;font:14px Arial;height:33px}.sf textarea{height:174px;resize:none;line-height:1.5}.setup-table{width:100%;border-collapse:collapse;table-layout:fixed}.setup-table th{text-align:left;color:#85ceff;font-size:12px;padding:7px}.setup-table td{padding:4px 7px;border-bottom:1px solid #274258;font-size:13px}.setup-table .sf{font-size:0;gap:0}.setup-table .sf input,.setup-table .sf select{height:29px;font-size:13px}.setup-actions{display:flex;gap:12px;align-items:center;margin:10px 0}.setup-actions button,.setup-grid>button{position:static;min-height:34px;padding:6px 15px}.setup-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #476d89;padding-top:10px;font-size:13px;height:42px}.setup-bottom button{position:static;padding:8px 22px;background:#4b97bb}.setup-readback{border:1px solid #3c617e;border-radius:6px;padding:18px;margin:18px 0;background:#102638}.setup-link{color:#84d6ff}.device-state{color:#9ce7b4}.device-state.offline{color:#efc773}.master-power{border-radius:50%;font-size:40px;line-height:1;background:#132b36;border:2px solid #6bbab1}.master-power small{font-size:11px;display:block;line-height:1.5}.master-power.is-on{color:#9de3c7;box-shadow:0 0 10px #64bbae55}.master-power.is-off{color:#ef8790;border-color:#bd6773}
.setup-body h3{margin:7px 0}.setup-table td{padding:2px 7px}.setup-grid{margin:6px 0}.setup-body p{margin:8px 0}

.preset-button{font-size:12px;white-space:nowrap;padding:2px;line-height:1.2}.preset-heading{font-size:11px;letter-spacing:1px;color:#acd7f0}

/* Exact LinkPi controller master-power styling */
.master-power{--power-light:#b0bdcf;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 64px;width:64px;height:64px;border-radius:18px;border:1px solid #465064;background:linear-gradient(155deg,#283243 0%,#141c29 48%,#0b101a 100%);color:var(--power-light);box-shadow:inset 0 1px 0 #ffffff25,inset 0 -2px 4px #0008,0 5px 12px #0005;transition:box-shadow .2s,border-color .2s,transform .15s}
.master-power:before{content:'';position:absolute;inset:4px;border:1px solid currentColor;border-radius:14px;opacity:.22;pointer-events:none}
.master-power svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;filter:drop-shadow(0 0 4px currentColor)}
.master-power .power-state{font-size:9px;font-weight:700;letter-spacing:2px;line-height:11px;margin-left:2px}
.master-power[data-state=on]{--power-light:#71f6ab;border-color:#3a785d;box-shadow:inset 0 1px 0 #ffffff25,inset 0 -2px 4px #0008,0 4px 12px #0006,0 0 16px #39df8520}
.master-power[data-state=off]{--power-light:#ff7b88;border-color:#88414e;box-shadow:inset 0 1px 0 #ffffff25,inset 0 -2px 4px #0008,0 4px 12px #0006,0 0 16px #ed435520}
.master-power[data-state=warning],.master-power[data-state=transition]{--power-light:#ffd17a;border-color:#997849}
.master-power:hover{box-shadow:inset 0 1px 0 #ffffff35,0 0 15px #ffffff12}
.master-power:active{transform:translateY(2px);box-shadow:inset 0 2px 6px #0009}
.master-power:focus-visible{outline:2px solid var(--power-light);outline-offset:4px}
/* Match the other 100px header controls. */
.master-power{width:100px;height:100px;gap:7px;border-radius:24px}.master-power:before{inset:6px;border-radius:19px}.master-power svg{width:42px;height:42px}.master-power .power-state{font-size:12px;line-height:15px}
input.abs[type="range"]{margin:0}

.power-sequence{position:absolute;inset:0;z-index:500;background:radial-gradient(ellipse at 50% 25%,#253f53,#071623 75%);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#eaf6ff}.power-sequence img{width:260px;height:120px;object-fit:contain;margin-bottom:30px}.power-sequence small{letter-spacing:4px;color:#87cde8}.power-sequence h1{font-size:38px;margin:22px 0 10px}.power-sequence p{font-size:20px;color:#b9d4e3;margin:10px 0 30px}.sequence-track{width:460px;height:12px;background:#09121d;border:1px solid #3a5c73;border-radius:8px;overflow:hidden}.sequence-track div{height:100%;background:#83dbc0;transition:width .3s}.power-sequence strong{margin:14px;font-size:18px}.power-sequence span{margin-top:40px;font-size:12px;color:#93adbf}.power-sequence button{position:static;padding:18px 32px;font-size:20px}
