.tv-launch-link{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid var(--border, #d6e4e2);border-radius:10px;color:var(--primary, #075b56);background:var(--surface, #fff);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.tv-launch-link[hidden]{display:none}.tv-mode{height:auto;min-height:100%;overflow-x:clip;overflow-y:visible;background:#08111d;color:#f5f9ff;color-scheme:dark}.tv-mode #app,.tv-mode #mobileDock,.tv-mode #quickSearchHost,.tv-mode #quickSearchTrigger{display:none!important}#tvScreen{min-height:100dvh;width:100%}.tv-board{--tv-bg: #08111d;--tv-panel: #121e2d;--tv-line: #354459;--tv-text: #f5f9ff;--tv-muted: #becbdc;--tv-green: #5de6b1;--tv-blue: #80c9ff;--tv-amber: #ffd37c;padding:clamp(16px,1.5vw,36px);max-width:3200px;margin:0 auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.tv-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}.tv-brand{display:block;color:var(--tv-blue);font-size:clamp(15px,1vw,23px);font-weight:700;letter-spacing:.06em}.tv-heading h1{color:var(--tv-text);margin:5px 0;font-size:clamp(27px,2.2vw,50px);line-height:1.2}.tv-heading p{margin:0;color:var(--tv-muted);font-size:clamp(14px,.95vw,22px)}.tv-time{display:grid;gap:3px;text-align:center;color:var(--tv-muted);font-size:clamp(16px,1vw,24px)}.tv-time strong{font-variant-numeric:tabular-nums;color:var(--tv-text);font-size:clamp(32px,2.5vw,60px);line-height:1.15}.tv-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:440px}.tv-actions button,.tv-wake{min-height:44px;border:1px solid #4d6079;border-radius:10px;background:#17273b;color:var(--tv-text);font-size:15px;font-weight:600;padding:10px 14px}.tv-actions button{cursor:pointer}.tv-actions button:disabled{opacity:.65;cursor:progress}.tv-actions button:hover{background:#243d59}.tv-actions button:focus-visible,.tv-wake:focus-within,.tv-launch-link:focus-visible{outline:3px solid #80c9ff;outline-offset:3px}.tv-wake{display:flex;align-items:center;flex-wrap:wrap;gap:8px;cursor:pointer}.tv-wake input{width:20px;height:20px;accent-color:#5de6b1}.tv-wake span{font-size:12px;color:var(--tv-muted)}.tv-board [hidden]{display:none!important}.tv-sync{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:12px 16px;border:1px solid var(--tv-line);border-radius:10px;color:var(--tv-muted);font-size:clamp(14px,.9vw,21px)}.tv-sync[data-state=ok]{border-color:#326955}.tv-sync[data-state=ok] [data-tv-last-update]{color:#95edc8}.tv-sync[data-state=stale],.tv-sync[data-state=error]{color:#ffe2a6;border-color:#927d4a;background:#332a16}.tv-error{padding:16px 20px;margin-bottom:16px;border:1px solid #ce9b46;border-radius:10px;color:#ffe7bb;background:#382a18;font-size:clamp(17px,1.1vw,26px);line-height:1.5}.tv-rooms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1vw,22px)}.tv-room{min-width:0;display:flex;flex-direction:column;padding:clamp(14px,1.1vw,28px);border:1px solid var(--tv-line);border-top:5px solid #7087a3;border-radius:14px;background:var(--tv-panel);color:var(--tv-text);overflow-wrap:anywhere}.tv-room--operating{border-top-color:var(--tv-green)}.tv-room--occupied{border-top-color:var(--tv-blue)}.tv-room--uncertain{border-top-color:var(--tv-amber)}.tv-room--empty{border-top-color:#6d809c}.tv-room--inactive{background:#101722;border-top-color:#718093}.tv-room--inactive .tv-patient-label{color:#becbdc}.tv-room-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:14px}.tv-room h2{margin:0;color:var(--tv-text);font-size:clamp(24px,1.5vw,36px);line-height:1.2}.tv-room-status{padding:6px 9px;border:1px solid #4e647e;background:#22344a;color:#d4e9ff;border-radius:8px;font-size:clamp(14px,.9vw,21px);font-weight:700;line-height:1.25}.tv-room--operating .tv-room-status{color:#9df4cd;background:#163b31;border-color:#3f8c6e}.tv-room--uncertain .tv-room-status{color:#ffe1a1;background:#45351b;border-color:#9c7841}.tv-current{display:grid;gap:6px}.tv-field-label{color:var(--tv-muted);font-size:clamp(13px,.85vw,20px)}.tv-patient-label{display:block;min-height:1.25em;font-size:clamp(21px,1.3vw,31px);line-height:1.3;font-weight:750}.tv-case-status{color:#d8e3f1;font-size:clamp(15px,.95vw,22px);line-height:1.4}.tv-progress{margin-top:13px;min-height:38px}.tv-progress-label{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:clamp(13px,.85vw,20px);color:var(--tv-muted)}.tv-progress-label strong{color:#9df4cd}.tv-progress progress{display:block;width:100%;height:9px;border:0;border-radius:20px;overflow:hidden;accent-color:var(--tv-green);background:#324359}.tv-progress progress::-webkit-progress-bar{background:#324359;border-radius:20px}.tv-progress progress::-webkit-progress-value{background:var(--tv-green);border-radius:20px}.tv-progress progress::-moz-progress-bar{background:var(--tv-green);border-radius:20px}.tv-progress-missing{display:block;color:var(--tv-muted);font-size:clamp(13px,.85vw,20px);padding:8px 0}.tv-eta{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:10px 0 14px;color:var(--tv-muted);font-size:clamp(14px,.9vw,21px)}.tv-eta strong{color:var(--tv-text);font-size:clamp(19px,1.2vw,29px);font-variant-numeric:tabular-nums}.tv-next{display:grid;gap:5px;padding-top:12px;border-top:1px solid var(--tv-line)}.tv-next strong{font-size:clamp(18px,1.1vw,26px);line-height:1.35}.tv-next>span:last-child{color:var(--tv-muted);font-size:clamp(13px,.85vw,20px)}.tv-room-footer{margin-top:auto;padding-top:12px;color:#c6d5e8;font-size:clamp(13px,.8vw,19px)}.tv-room--loading{min-height:250px}.tv-room--loading p{color:var(--tv-muted);font-size:18px}.tv-footer{padding:18px 0 0;color:var(--tv-muted);font-size:clamp(13px,.85vw,20px);text-align:center;line-height:1.5}@media(min-width:1400px){.tv-board{padding:clamp(16px,2vh,30px)}.tv-header{margin-bottom:10px}.tv-sync{padding:8px 12px;margin-bottom:10px}.tv-rooms{grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(10px,1.2vh,18px)}.tv-room{padding:clamp(10px,1.1vh,20px);line-height:1.2}.tv-room-head{gap:5px;margin-bottom:7px}.tv-room h2{font-size:clamp(21px,2.35vh,36px);line-height:1.15}.tv-room-status{font-size:clamp(13px,1.4vh,20px);padding:4px 7px;line-height:1.15}.tv-current{gap:3px}.tv-field-label{font-size:clamp(13px,1.4vh,20px);line-height:1.2}.tv-patient-label{font-size:clamp(19px,2.1vh,31px);line-height:1.2}.tv-case-status{font-size:clamp(14px,1.5vh,22px);line-height:1.2}.tv-progress{margin-top:6px;min-height:27px}.tv-progress-label{font-size:clamp(13px,1.4vh,20px);margin-bottom:4px;line-height:1.2}.tv-progress-missing{font-size:clamp(13px,1.4vh,20px);padding:3px 0;line-height:1.2}.tv-eta{gap:3px;margin:5px 0 7px;font-size:clamp(13px,1.4vh,20px);line-height:1.2}.tv-eta strong{font-size:clamp(18px,2vh,29px);line-height:1.2}.tv-next{padding-top:7px;gap:3px}.tv-next strong{font-size:clamp(18px,1.9vh,26px);line-height:1.2}.tv-next>span:last-child{font-size:clamp(13px,1.4vh,20px);line-height:1.2}.tv-room-footer{padding-top:7px;font-size:clamp(13px,1.4vh,19px);line-height:1.2}.tv-footer{padding-top:10px}}@media(min-width:1400px)and (max-height:960px){.tv-board{padding:14px}.tv-header{margin-bottom:8px}.tv-heading h1{margin:3px 0}.tv-sync{padding:6px 12px;margin-bottom:8px}.tv-room{padding:9px}.tv-room-head{gap:4px}.tv-current,.tv-next{gap:2px}.tv-footer{padding-top:7px}}@media(max-width:1200px){.tv-header{flex-wrap:wrap}.tv-actions{max-width:none}.tv-rooms{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.tv-launch-link{display:none}.tv-rooms{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-header{gap:16px}}@media(max-width:560px){.tv-rooms{grid-template-columns:minmax(0,1fr)}.tv-board{padding:14px}.tv-header{align-items:flex-start}.tv-time{text-align:left}.tv-actions{width:100%;justify-content:flex-start}.tv-sync{padding:12px}.tv-room{padding:18px}}
