:root{color-scheme:dark;--bg:#0a1221;--surface:#111d30;--line:#25344b;--muted:#9bacc3;--cyan:#35d7e0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f4f7fc;font:15px/1.5 system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#1b2d45;color:#fff;padding:10px 16px}button:hover,button:focus-visible{border-color:var(--cyan);background:#203e56}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--cyan);border-color:var(--cyan);color:#05232c;font-weight:750}.primary:hover{background:#7beaf0;color:#05232c}input,textarea,select{background:#0c1729;border:1px solid var(--line);color:white;padding:11px 13px;border-radius:8px;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid var(--cyan);outline-offset:2px}label{display:block;font-size:13px;color:var(--muted)}label input{display:block;width:100%;margin:7px 0 20px}.brand{color:var(--cyan);font-weight:850;letter-spacing:1.5px}.brand span{color:var(--muted);font-size:10px;display:inline-block;margin-left:18px;letter-spacing:2px}.login{max-width:460px;padding:36px;margin:8vh auto}.login h1{font-size:38px;line-height:1.15;margin:45px 0 18px;letter-spacing:-1.5px}.login form{margin:30px 0}.login button{width:100%}.muted,small{color:var(--muted)}#login-error{color:#ffb6ae}header{height:82px;padding:20px 30px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}#staff-name{font-size:13px;color:var(--muted);margin-right:15px}main{height:calc(100dvh - 82px);display:grid;grid-template-columns:350px 1fr}aside{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.aside-head{padding:28px 22px 18px}.eyebrow{font-size:10px;color:var(--cyan);letter-spacing:2px;font-weight:750}h1{font-size:22px;margin:9px 0 20px}#count{font-size:13px;color:var(--muted)}#search,select{width:100%;margin-bottom:10px}#inbox{overflow:auto;flex:1}.conversation{display:block;text-align:left;background:transparent;width:100%;border:0;border-radius:0;padding:19px 22px;border-bottom:1px solid #1a293e}.conversation.selected{background:#173042;border-left:3px solid var(--cyan);padding-left:19px}.customer{font-size:15px;font-weight:700;display:flex;justify-content:space-between}.preview{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin:8px 0}.badge{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#d3b780}.unread{background:var(--cyan);color:#06232c;min-width:21px;text-align:center;border-radius:20px;font-size:11px;padding:2px 5px}#connection{font-size:11px;color:var(--muted);padding:10px 22px;margin:0;border-top:1px solid var(--line)}.thread{min-width:0;min-height:0}#empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px;text-align:center;color:var(--muted)}#empty h2{color:white;font-size:24px;margin-bottom:0}.star{color:var(--cyan);font-size:75px}#active{height:100%;display:flex;flex-direction:column}.thread-head{padding:22px 28px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.thread-head h2{font-size:20px;margin:0}.thread-head p{font-size:12px;color:var(--muted);margin:3px 0}.actions{display:flex;gap:8px}.actions button{font-size:12px}#messages{flex:1;min-height:0;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:16px}.message{max-width:80%;align-self:flex-start}.message.staff{align-self:flex-end}.message .meta{font-size:11px;color:var(--muted);margin-bottom:5px}.bubble{border-radius:12px 12px 12px 2px;background:#1b2c44;padding:12px 16px;white-space:pre-wrap;overflow-wrap:anywhere}.staff .bubble{background:#16404b;border-radius:12px 12px 2px 12px}#reply-form{padding:18px 28px 25px;border-top:1px solid var(--line)}#reply{width:100%;resize:vertical;margin:8px 0}.compose-footer{display:flex;justify-content:space-between;align-items:center;gap:15px}.compose-footer span{font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:24px;right:24px;background:#712f38;border:1px solid #ca8a8a;padding:15px 24px;border-radius:10px;max-width:90vw}[hidden]{display:none!important}@media(max-width:800px){header{padding:15px;height:auto}.brand span{display:none}main{height:auto;display:block}aside{height:340px;border-bottom:1px solid var(--line)}.aside-head{padding:14px}h1{margin:5px 0 10px}.thread{height:75dvh}.thread-head{padding:16px;flex-wrap:wrap}#messages{padding:16px}#reply-form{padding:14px}.login{margin-top:2vh}#staff-name{display:none}.message{max-width:94%}}

header{flex-wrap:wrap;height:auto;min-height:82px}dialog{color:#f4f7fc;background:var(--surface);border:1px solid var(--line);border-radius:14px;width:min(620px,92vw);max-height:90vh;overflow:auto}dialog::backdrop{background:#000a}.agent-head,.agent-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.agent-row{border-bottom:1px solid var(--line);padding:12px 0}.agent-row span{overflow-wrap:anywhere}#agent-error{color:#ffb6ae}

#remote-modal{width:min(940px,94vw)}#remote-devices{display:flex;flex-direction:column;gap:10px}.remote-device{padding:15px;border:1px solid var(--line);border-radius:10px}.remote-device h3{margin:0 0 7px}.remote-device p{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.remote-grid{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.remote-grid select,.remote-grid input{display:block;width:100%;margin:5px 0 0}.remote-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}#remote-diagnostics{display:grid;grid-template-columns:170px 1fr;gap:6px 14px}#remote-diagnostics dt{color:var(--muted)}#remote-diagnostics dd{margin:0;overflow-wrap:anywhere}#remote-details{white-space:pre-wrap;font:12px/1.6 ui-monospace,monospace;background:var(--bg);padding:15px;border-radius:8px;max-height:200px;overflow:auto}#remote-error{color:#ffb6ae}#remote-command-log{font-size:12px;color:var(--muted)}.actions{flex-wrap:wrap}@media(max-width:600px){#remote-diagnostics{grid-template-columns:1fr}#remote-diagnostics dd{margin-bottom:8px}.remote-grid{grid-template-columns:1fr}}

#numbers-modal{width:min(850px,94vw)}.number-row{display:grid;grid-template-columns:1fr 100px 100px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.number-row input{width:100%;padding:8px}.number-row small{display:block}.number-row span{overflow-wrap:anywhere}#numbers-search{width:100%}#numbers-error{color:#ffb6ae}@media(max-width:600px){.number-row{grid-template-columns:1fr 75px}.number-row button{grid-column:2}}

#customer-player-status{padding:10px 28px;background:#122b37;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere;max-height:145px;overflow:auto;flex-shrink:0}#customer-player-status p{margin:4px 0}

.reply-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.sender-choice{display:flex;align-items:center;gap:10px;white-space:nowrap}#reply-department{width:auto;margin:0;padding:6px 10px}#reply-department option{color:white}

#customer-modal{width:min(720px,94vw)}#customer-error{color:#ffb6ae}#customer-credentials{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--bg);border-radius:8px}.customer-job{border-bottom:1px solid var(--line);padding:10px 0}.customer-job p{overflow-wrap:anywhere}.customer-job button{margin:0 8px 8px 0}#customer-connection{color:var(--cyan)}

.payment-setup{color:var(--cyan);font-weight:700}

#payment-modal a{color:var(--cyan)}

#diagnostics-modal{width:min(850px,94vw)}#diagnostics-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}#diagnostics-form label{flex:1}#diagnostics-form button{margin-bottom:12px}.diagnostic-check{padding:12px;margin:8px 0;border-left:4px solid var(--cyan);background:var(--bg);overflow-wrap:anywhere}.diagnostic-check.error{border-color:#ff6b79}.diagnostic-check.warning{border-color:#ffd166}.diagnostic-check.unknown{border-color:#a8b4c4}.diagnostic-check p{margin:6px 0}#diagnostics-error{color:#ffb6ae}#diagnostics-modal details{margin:18px 0}#diagnostics-modal summary{cursor:pointer}#diagnostics-evidence p{overflow-wrap:anywhere}

#queue-summary{font-weight:700;color:var(--cyan)}#online-agents{font-size:12px;color:var(--muted)}#take-next{width:100%;margin-bottom:12px}.conversation .queue-position{font-weight:700;color:var(--cyan)}#preview-modal{width:min(1000px,94vw)}#preview-video{display:block;width:100%;max-height:65vh;background:#000;margin:16px 0}#preview-error{color:#ffb6ae}#preview-start{margin-top:12px}

#settings-modal{width:min(850px,94vw)}#settings-modal label{display:block;margin:14px 0}#settings-modal input,#settings-modal textarea{display:block;width:100%;margin-top:6px}#settings-message{color:var(--cyan)}#settings-deployment p{overflow-wrap:anywhere}

#settings-login-message{color:#ffb6ae}#settings-login-form input{display:block;width:100%;margin:8px 0 14px}#settings-content[hidden]{display:none}

#check-channels{width:100%;margin:0 0 12px}#preview-channel-tools[hidden],#preview-player-tools[hidden]{display:none}#preview-search,#preview-channel{display:block;width:100%;margin:8px 0}#preview-channel{min-height:190px}#preview-channel option{padding:7px}#preview-browse{margin:8px 0}

#tickets-modal{width:min(950px,94vw)}#ticket-form label{display:block;margin:12px 0}#ticket-form input,#ticket-form select,#ticket-form textarea{display:block;width:100%;margin-top:6px}.ticket-card{padding:15px;margin:12px 0;background:var(--bg);border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}.ticket-card p{white-space:pre-wrap}.ticket-card summary{cursor:pointer}.ticket-card textarea{width:100%;margin:10px 0}.ticket-card .remote-buttons{margin:10px 0}#ticket-error{color:#ffb6ae}#ticket-result,#tickets-mail-status{color:var(--cyan)}

#ticket-form input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}

/* Individual TV selection and independently checked stream samples. */
.tv-card{padding:10px;margin:8px 0;border:1px solid #34465c;border-radius:8px}.tv-card.selected{border:2px solid #22b9cb;background:#112735}.tv-card p{margin:7px 0}.tv-card button{margin:3px}.tv-select{font-weight:700;text-align:left}.channel-health{display:inline-block;margin:6px 10px 6px 0}.chat-tv-choice{padding:10px;border-bottom:1px solid #34465c}.chat-tv-choice strong{margin-right:12px}.chat-tv-choice p:empty{display:none}.channel-check-tools{padding:10px;margin:10px 0;background:#142131;border-radius:8px}

#customer-player-status{max-height:36vh;overflow-y:auto}#announcements-modal{max-width:720px;width:90vw}#announcement-list article{padding:10px;border-bottom:1px solid #34465c}

/* Customer-first workspace. */
#desk>header{height:74px;min-height:74px;padding:14px 26px;background:#101c30}#desk>header>div:last-child{display:flex;align-items:center;gap:12px}.desk-layout{display:grid;grid-template-columns:220px minmax(0,1fr);height:calc(100dvh - 74px)}#desk-nav{padding:20px 14px;background:#101b2c;border-right:1px solid var(--line);overflow-y:auto}#desk-nav button{display:block;width:100%;text-align:left;border:1px solid transparent;background:transparent;margin:3px 0;padding:12px 14px;font-size:15px}#desk-nav button:hover,#desk-nav button:focus-visible{background:#20374d;border-color:var(--cyan)}#desk-nav .nav-current{color:#66edf0;background:#143841;border-color:#267b85;font-weight:750}.nav-label{font-size:10px;letter-spacing:1.8px;color:#9aacbf;margin:23px 14px 10px}#desk-nav .nav-label:first-child{margin-top:0}#desk-workspace{min-width:0;min-height:0;overflow:hidden}.workspace-page{height:100%;overflow-y:auto;padding:32px;scrollbar-gutter:stable}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading h1{font-size:34px;line-height:1.2;margin:8px 0 12px}.page-heading p{margin:4px 0}.desk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.desk-stats article{background:#142338;border:1px solid #30435b;border-radius:14px;padding:20px}.desk-stats strong{font-size:34px;color:#6de9ed}.desk-stats p{margin:6px 0;color:#b7c7db}.welcome-card{padding:24px;background:#142b39;border:1px solid #31576b;border-radius:14px;margin-bottom:28px}.welcome-card h2{margin-top:0}.welcome-card button{margin:6px 12px 0 0}.watch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(310px,100%),1fr));gap:20px}.watch-card{background:#142237;border:1px solid #354b66;border-radius:15px;padding:22px;min-width:0;box-shadow:0 6px 18px #0002}.watch-card h2{font-size:27px;letter-spacing:-.4px;margin:12px 0 4px;line-height:1.2;overflow-wrap:anywhere}.watch-card h3{font-size:18px;color:#c9e8f3;margin:8px 0 3px;overflow-wrap:anywhere}.watch-card p{overflow-wrap:anywhere}.device-identity{color:#a8b9cd;font-size:13px;margin:0}.watch-channel{font-size:19px;font-weight:650;line-height:1.35;border-top:1px solid #30425a;padding-top:16px;margin-top:18px}.watch-card .muted{font-size:13px}.presence{display:inline-block;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:700}.presence.online{background:#143e35;color:#95f2be}.presence.offline{background:#313947;color:#c8d1dd}.watch-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.watch-actions .primary{flex:1}.watch-filters{display:grid;grid-template-columns:1fr 230px;gap:20px;margin-bottom:18px}.watch-filters label{font-size:14px}.watch-filters input,.watch-filters select{margin:7px 0 0;width:100%}.watch-pagination{display:flex;justify-content:space-between;gap:15px;margin:25px 0}#watch-error,#overview-error{color:#ffb6ae}#chat-view{height:100%;grid-template-columns:300px minmax(0,1fr)}#chat-view .aside-head{padding:22px 18px 12px}#chat-view .customer{font-size:20px}#chat-view .preview{font-size:14px}#chat-view .thread-head h2{font-size:26px;overflow-wrap:anywhere}.thread-head{align-items:flex-start;padding:20px}.thread-head .actions{justify-content:flex-end;max-width:440px}.chat-tv-choice{background:#173445;border-left:5px solid var(--cyan);padding:15px 20px}.chat-tv-choice strong{display:block;font-size:19px;margin-bottom:9px}#customer-player-status{padding:12px 20px;max-height:25vh}.tv-card.selected{background:#174553;border-color:#62ebea}.tv-select{font-size:16px}#reply-form{background:#111f32}#reply-form label{font-size:15px;color:#d4e4f4}#reply{background:#1b2e45;font-size:16px;min-height:85px}.compose-footer span{font-size:13px;color:#c6d9e9}.thread{overflow:hidden}#toast{z-index:100;bottom:20px;background:#203c47;border-color:#52abb8}
@media(max-width:1100px){.desk-layout{grid-template-columns:185px minmax(0,1fr)}.desk-stats{grid-template-columns:repeat(2,1fr)}.workspace-page{padding:22px}#chat-view{grid-template-columns:245px minmax(0,1fr)}.thread-head{flex-wrap:wrap}.thread-head .actions{max-width:none;justify-content:flex-start}.compose-footer{flex-wrap:wrap}}
@media(max-width:800px){#desk>header{height:auto;min-height:74px;padding:12px}.desk-layout{display:block;height:auto}#desk-nav{display:flex;overflow-x:auto;gap:7px;padding:9px;border-bottom:1px solid var(--line)}#desk-nav button{width:auto;white-space:nowrap;font-size:14px;margin:0}#desk-nav>div{display:flex}#desk-nav .nav-label{display:none}.workspace-page{height:calc(100dvh - 150px);padding:18px}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}.watch-filters{grid-template-columns:1fr}.desk-stats{gap:10px}.desk-stats article{padding:14px}#chat-view{height:auto;display:block}#chat-view>aside{height:330px}#chat-view>.thread{height:85dvh}.watch-card h2{font-size:26px}}
