/* Admin operations surface. Scoped to preserve existing shop editors. */
#ccAdminLive{--cc-live-line:#49473f;--cc-live-muted:#bdb9ae;--cc-live-gold:#e7d4a1;min-width:0;margin:20px 0 30px;color:#eee9df;font:13px/1.65 Tahoma,Arial,sans-serif}
#ccAdminLive [hidden]{display:none!important}
#ccAdminLive ::selection{background:#d4bb78;color:#151412}
#ccAdminLive input{caret-color:#e7d4a1}
#ccAdminLive input::placeholder{color:#b2aea3;opacity:1}
#ccAdminLive h2{margin:0;font-size:19px;line-height:1.45;color:#f0e5c9}
#ccAdminLive h3{margin:0;font-size:14px;line-height:1.5;color:#ece3d0}
.cc-live-heading,.cc-live-actions,.cc-live-subheading,.cc-live-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cc-live-heading{align-items:flex-start;flex-wrap:wrap}
#ccAdminLive .cc-live-intro{margin:5px 0 0;color:var(--cc-live-muted);max-width:68ch;font-size:12px}
.cc-live-actions{justify-content:flex-end;flex-wrap:wrap;gap:10px 16px}
.cc-live-auto{display:inline-flex;align-items:center;gap:7px;color:var(--cc-live-muted);font-size:11px;cursor:pointer;min-height:40px}
#ccAdminLive .cc-live-auto input{width:17px;height:17px;min-height:17px;margin:0;accent-color:#d4bb78}
#ccAdminLive .cc-live-freshness{margin:14px 0 0;padding:8px 0;color:var(--cc-live-muted);font-size:11px;border-bottom:1px solid var(--cc-live-line);font-variant-numeric:tabular-nums}
#ccAdminLive .cc-live-freshness[data-state=warning]{color:#efc594}
#ccAdminLive .cc-live-freshness[data-state=partial]{color:#e6d3a3}
.cc-live-notice{background:#27231c;border:1px solid #736344;margin:14px 0;padding:9px 13px}
#ccAdminLive .cc-live-notice p{margin:0;color:#efdab4;font-size:12px;max-width:75ch}
#ccAdminLive .cc-live-notice p+p{margin-top:5px}
.cc-live-summary{display:flex;align-items:stretch;flex-wrap:wrap;margin:0;padding:15px 0;border-bottom:1px solid var(--cc-live-line);gap:15px 28px}
.cc-live-metric{flex:1;min-width:150px;max-width:300px}
.cc-live-metric dt{color:var(--cc-live-muted);font-size:12px}
.cc-live-metric dd{margin:3px 0;color:#f2ead9;font-variant-numeric:tabular-nums}
.cc-live-metric dd strong{font-size:23px;font-weight:600;line-height:1.3}
.cc-live-unit{font-size:11px;color:var(--cc-live-muted)}
.cc-live-metric small{display:block;font-size:11px;color:#b8b3a6;max-width:35ch}
#ccAdminLive .cc-live-source-note{font-size:10px;color:#bbb3a4;margin-top:3px}
#ccAdminLive [data-state=stale] .cc-live-source-note{color:#edc391}
#ccAdminLive [data-state=unavailable] .cc-live-source-note{color:#ddbc96}
.cc-live-subheading{margin:22px 0 10px;align-items:baseline;flex-wrap:wrap}
.cc-live-hint{color:var(--cc-live-muted);font-size:11px}
.cc-live-channels{display:flex;flex-wrap:wrap;gap:8px}
#ccAdminLive .cc-live-channel{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px 12px;min-height:45px;padding:10px 13px;background:#202020;border:1px solid #666052;color:#ded9ce;font-size:12px;text-align:left;line-height:1.5}
#ccAdminLive .cc-live-channel[aria-pressed=true]{border-color:#d5bc7c;background:#302b20;color:#f4e1ad}
#ccAdminLive .cc-live-channel:hover{background:#2c2a25;border-color:#c0ad7d}
.cc-live-channel strong{font-size:12px;font-weight:600}
.cc-live-channel small{width:100%;color:#c4b9a0;font-size:10px}
.cc-live-channel-count{font-variant-numeric:tabular-nums;color:inherit}
#ccAdminLive .cc-live-channel-message{margin:10px 0 0;color:#d0c4a8;font-size:11px;max-width:100ch}
#ccAdminLive .cc-live-filters select:disabled{opacity:.8;cursor:not-allowed;color:#c6bdab}
.cc-live-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(130px,.4fr) minmax(150px,.5fr) auto auto;gap:10px;margin:23px 0 20px;align-items:end}
.cc-live-filters label{display:block;font-size:11px;color:var(--cc-live-muted);min-width:0}
#ccAdminLive .cc-live-filters input,#ccAdminLive .cc-live-filters select{display:block;width:100%;margin-top:5px;min-height:42px;background:#151515;border:1px solid #696459;color:#ece7dc;border-radius:3px;font-size:12px;min-width:0}
#ccAdminLive .cc-live-filters button,#ccAdminLive .cc-live-pagination button,#ccAdminLive .cc-live-refresh{min-height:42px;font-size:12px}
.cc-live-results-heading{margin:0 0 9px;flex-wrap:wrap}
.cc-live-result-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;font-size:11px}
.cc-live-result-actions a{color:#e6d2a1;text-underline-offset:4px}
#ccAdminLive .cc-live-roster-status{font-size:11px;color:#beb6a6;margin:0 0 9px}
#ccAdminLive .cc-live-roster-status[data-state=stale]{color:#edc391}
.cc-live-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--cc-live-line);scrollbar-color:#817454 #191919}
#ccAdminLive .cc-live-table{width:100%;min-width:760px;border-collapse:collapse;margin:0;font-size:12px}
#ccAdminLive .cc-live-table th{padding:10px 13px;background:#242321;color:#dcd3bf;font-size:11px;font-weight:600;text-align:left;border-bottom:1px solid #676051;white-space:nowrap}
#ccAdminLive .cc-live-table td{padding:11px 13px;vertical-align:middle;border-bottom:1px solid #34332e;background:#171717;color:#e4dfd3;overflow-wrap:anywhere}
#ccAdminLive .cc-live-table tbody tr:last-child td{border-bottom:0}
#ccAdminLive .cc-live-table tbody tr:hover td{background:#201f1c}
#ccAdminLive .cc-live-table td:first-child{min-width:155px;max-width:220px}
#ccAdminLive .cc-live-table th,#ccAdminLive .cc-live-table td{width:auto}
#ccAdminLive .cc-live-table th:first-child{width:23%}
#ccAdminLive .cc-live-table th:nth-child(2){width:15%}
#ccAdminLive .cc-live-table th:nth-child(3){width:7%}
#ccAdminLive .cc-live-table th:nth-child(4){width:19%}
#ccAdminLive .cc-live-table th:nth-child(5){width:22%}
#ccAdminLive .cc-live-table th:nth-child(6){width:14%}
.cc-live-table td strong{display:block;font-size:12px;font-weight:600;color:#f0e7d4}
.cc-live-table td small{display:block;font-size:11px;color:#bcb5a6;margin-top:2px}
.cc-live-numeric{font-variant-numeric:tabular-nums}
.cc-live-time{font-size:10px;font-variant-numeric:tabular-nums;max-width:170px}
.cc-live-player-status{display:inline-block;font-size:11px;white-space:nowrap;color:#c8c2b6}
.cc-live-player-status[data-mode=connected]{color:#b2d0b1}
.cc-live-player-status[data-mode=offline]{color:#e4cea0}
#ccAdminLive .cc-live-table .cc-live-empty,#ccAdminLive .cc-live-table .cc-live-loading{padding:30px 15px;text-align:center;font-size:12px;color:#c5beb0;background:#1b1a18}
.cc-live-loading-value{color:#a9a292}
.cc-live-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:11px 0 0;font-size:11px;color:var(--cc-live-muted);font-variant-numeric:tabular-nums}
.cc-live-definition{margin:20px 0 0;color:var(--cc-live-muted);font-size:11px;max-width:78ch}
.cc-live-definition summary{cursor:pointer;color:#d6c8a7;width:fit-content;padding:4px 0;text-decoration:underline;text-underline-offset:4px}
#ccAdminLive .cc-live-definition p{margin:8px 0;font-size:11px;color:var(--cc-live-muted)}
.cc-live-quick{margin:23px 0 0;padding-top:18px;border-top:1px solid var(--cc-live-line)}
.cc-live-quick ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;list-style:none;padding:0;margin:10px 0 0}
.cc-live-quick li{border-bottom:1px solid #39372f;min-width:0}
.cc-live-quick a{display:flex;flex-direction:column;gap:3px;padding:11px 3px;text-decoration:none;color:#e6d2a1;line-height:1.6;overflow-wrap:anywhere;min-height:62px}
.cc-live-quick a:hover{background:#22201b;color:#f5e4b8}
.cc-live-quick strong{font-size:13px;font-weight:600}
#ccAdminLive button:focus-visible,#ccAdminLive input:focus-visible,#ccAdminLive select:focus-visible,#ccAdminLive a:focus-visible,#ccAdminLive summary:focus-visible,#ccAdminLive .cc-live-table-wrap:focus-visible{outline:2px solid #f0d58c;outline-offset:3px}
#ccAdminLive button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:1000px){.cc-live-filters{grid-template-columns:minmax(180px,1fr) minmax(120px,.5fr) minmax(140px,.6fr)}.cc-live-filters>button{justify-self:start;min-width:95px}.cc-live-filters>button:last-child{grid-column:2}.cc-live-metric{min-width:140px}.cc-live-quick ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#ccAdminLive{margin-top:16px}.cc-live-heading{gap:12px}#ccAdminLive h2{font-size:17px}.cc-live-actions{justify-content:flex-start;width:100%;gap:8px 14px}.cc-live-auto{font-size:10px}.cc-live-summary{gap:15px 20px}.cc-live-metric{flex-basis:calc(50% - 20px);min-width:115px}.cc-live-metric dd strong{font-size:21px}.cc-live-filters{grid-template-columns:1fr 1fr;gap:10px}.cc-live-filters>label:first-child{grid-column:1/-1}.cc-live-filters>button{width:100%;justify-self:stretch}.cc-live-filters>button:last-child{grid-column:auto}.cc-live-channels{gap:7px}#ccAdminLive .cc-live-channel{flex:1;min-width:125px;padding:9px 11px;gap:4px 8px}.cc-live-subheading{gap:5px}.cc-live-pagination{justify-content:space-between;gap:8px}.cc-live-quick ul{grid-template-columns:1fr}.cc-live-freshness{overflow-wrap:anywhere}.cc-live-definition{max-width:100%}}

/* Clear, source-aware character filters. Numbers are never conflated with native connections. */
.cc-live-roster-views{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0 0}
#ccAdminLive .cc-live-roster-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:53px;min-width:0;padding:10px 14px;border:1px solid #665f4d;border-radius:4px;background:#21201d;color:#e1dbcb;line-height:1.4;text-align:left}
#ccAdminLive .cc-live-roster-choice span{font-size:12px;overflow-wrap:anywhere}
#ccAdminLive .cc-live-roster-choice strong{font-size:20px;font-weight:600;color:#efe4c7;font-variant-numeric:tabular-nums;white-space:nowrap}
#ccAdminLive .cc-live-roster-choice[aria-pressed=true]{border-color:#ddc487;background:#302a1d;box-shadow:inset 0 0 0 1px #8a7449}
#ccAdminLive .cc-live-roster-choice:hover{border-color:#d4bd81;background:#2a2823}
#ccAdminLive .cc-live-roster-choice:disabled{opacity:1;cursor:not-allowed;color:#bcb8ac;border-color:#45433c;background:#1b1c1b}
#ccAdminLive .cc-live-roster-choice:disabled strong{color:#cac4b6}
#ccAdminLive .cc-live-roster-view-note{font-size:11px;color:#c8baa0;margin:7px 0 17px;max-width:92ch}
#ccAdminLive .cc-live-channel-meter{height:4px;width:100%;background:#36332b;border-radius:4px;overflow:hidden;margin:0}
#ccAdminLive .cc-live-channel-meter>span{display:block;height:100%;background:#d7bd7d}
@media(max-width:650px){.cc-live-roster-views{grid-template-columns:1fr 1fr;gap:7px}#ccAdminLive .cc-live-roster-choice{min-height:49px;padding:8px 10px}#ccAdminLive .cc-live-roster-choice strong{font-size:18px}#ccAdminLive .cc-live-roster-choice:first-child{grid-column:1/-1}}


/* Source-aware presence dashboard: separate native connections from SQL flags. */
#ccAdminLive{font:15px/1.6 system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;margin:12px 0 28px}
#ccAdminLive h2{font-size:22px;color:#f3e2be}
#ccAdminLive h3{font-size:17px}
#ccAdminLive .cc-live-intro{font-size:14px;max-width:82ch;margin-top:5px}
#ccAdminLive .cc-live-auto{font-size:13px}
#ccAdminLive .cc-live-freshness{font-size:13px;padding:12px 0;margin:9px 0}
#ccAdminLive .cc-live-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:0;margin:0;padding:12px 0 4px}
#ccAdminLive .cc-live-metric{flex:none;min-width:0;max-width:none;padding:17px 17px 14px;border:1px solid #45423b;border-radius:8px;background:#1c1d20}
#ccAdminLive .cc-live-metric dt{font-size:13px;color:#c8beaa}
#ccAdminLive .cc-live-metric dd{margin:7px 0}
#ccAdminLive .cc-live-metric dd strong{font-size:31px;font-weight:650}
#ccAdminLive .cc-live-metric small{font-size:12px;line-height:1.5;max-width:none}
#ccAdminLive .cc-live-source-note{font-size:11px;color:#aeb1a9}
#ccAdminLive .cc-live-notice{border-radius:7px;margin:12px 0;padding:11px 14px;background:#27231d}
#ccAdminLive .cc-live-notice details{color:#d7c7a7;font-size:13px}
#ccAdminLive .cc-live-notice summary{cursor:pointer;line-height:1.6;font-weight:600}
#ccAdminLive .cc-live-notice p{font-size:12px;line-height:1.6;margin-top:9px}
#ccAdminLive .cc-live-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#ccAdminLive .cc-live-channel{border-radius:7px;min-height:85px;padding:13px 15px;background:#1b1d20;font-size:14px}
#ccAdminLive .cc-live-channel strong{font-size:14px}
#ccAdminLive .cc-live-channel-count{font-size:16px;font-weight:650}
#ccAdminLive .cc-live-channel small{font-size:12px;line-height:1.5}
#ccAdminLive .cc-live-channel-meter{height:5px}
#ccAdminLive .cc-live-channel-message{font-size:13px;margin-top:11px;max-width:none;line-height:1.6}
#ccAdminLive .cc-live-filters{grid-template-columns:minmax(185px,1.6fr) minmax(160px,.7fr) minmax(175px,1fr) auto auto;gap:11px;margin:22px 0 19px}
#ccAdminLive .cc-live-filters label{font-size:13px}
#ccAdminLive .cc-live-filters input,#ccAdminLive .cc-live-filters select{min-height:46px;font-size:14px;border-radius:5px;padding:9px}
#ccAdminLive .cc-live-roster-views{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
#ccAdminLive .cc-live-roster-choice{min-height:63px;padding:11px 13px;border-radius:7px}
#ccAdminLive .cc-live-roster-choice span{font-size:13px;line-height:1.35}
#ccAdminLive .cc-live-roster-choice strong{font-size:23px}
#ccAdminLive .cc-live-roster-view-note{font-size:13px;line-height:1.6;margin:9px 0 20px}
#ccAdminLive .cc-live-results-heading{margin-top:7px;margin-bottom:11px}
#ccAdminLive .cc-live-roster-status{font-size:12px}
#ccAdminLive .cc-live-table-wrap{border-radius:7px;border-color:#484743}
#ccAdminLive .cc-live-table{min-width:900px;font-size:14px}
#ccAdminLive .cc-live-table th{font-size:12px;padding:12px 14px;background:#262728}
#ccAdminLive .cc-live-table td{font-size:13px;padding:13px 14px}
#ccAdminLive .cc-live-table td strong{font-size:14px}
#ccAdminLive .cc-live-table td small{font-size:12px}
#ccAdminLive .cc-live-time{font-size:11px}
#ccAdminLive .cc-live-player-status{font-size:12px}
#ccAdminLive .cc-live-pagination{font-size:13px;margin:14px 0}
#ccAdminLive .cc-live-definition{font-size:13px;max-width:none}
#ccAdminLive .cc-live-definition summary,#ccAdminLive .cc-live-definition p{font-size:13px}
#ccAdminLive .cc-live-quick{margin-top:24px}
#ccAdminLive .cc-live-quick ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
#ccAdminLive .cc-live-quick a{padding:13px;background:#1c1d20;border:1px solid #3f3d34;border-radius:6px}
#ccAdminLive .cc-live-quick strong{font-size:14px}
#ccAdminLive button:disabled{cursor:not-allowed}
@media(max-width:1250px){#ccAdminLive .cc-live-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#ccAdminLive .cc-live-filters{grid-template-columns:minmax(0,1fr) minmax(160px,.6fr) minmax(180px,.8fr)}#ccAdminLive .cc-live-filters>button{width:100%}#ccAdminLive .cc-live-filters>button:last-child{grid-column:auto}}
@media(max-width:760px){#ccAdminLive .cc-live-channels{grid-template-columns:repeat(2,minmax(0,1fr))}#ccAdminLive .cc-live-roster-views{grid-template-columns:repeat(2,minmax(0,1fr))}#ccAdminLive .cc-live-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#ccAdminLive .cc-live-filters label:first-child{grid-column:1/-1}#ccAdminLive .cc-live-quick ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#ccAdminLive h2{font-size:20px}#ccAdminLive .cc-live-summary{gap:9px}#ccAdminLive .cc-live-metric{padding:13px}#ccAdminLive .cc-live-metric dd strong{font-size:25px}#ccAdminLive .cc-live-metric dt{font-size:12px}#ccAdminLive .cc-live-channels{grid-template-columns:1fr 1fr;gap:8px}#ccAdminLive .cc-live-channel{padding:12px;min-height:78px}#ccAdminLive .cc-live-channel:first-child{grid-column:1/-1;min-height:46px}#ccAdminLive .cc-live-roster-choice strong{font-size:21px}#ccAdminLive .cc-live-filters{gap:8px}#ccAdminLive .cc-live-filters select{max-width:100%}#ccAdminLive .cc-live-quick ul{grid-template-columns:1fr}#ccAdminLive .cc-live-auto{font-size:12px}}

/* Responsive roster: keep each character, evidence and Channel together. */
#ccAdminLive .cc-live-player-status{padding:4px 8px;border:1px solid #53534d;border-radius:5px;background:#292a28;color:#e0ded5;white-space:normal;line-height:1.5}
#ccAdminLive .cc-live-player-status[data-mode=connected]{border-color:#5f7c60;background:#1e3023;color:#d3e8ce}
#ccAdminLive .cc-live-player-status[data-mode=offline]{border-color:#897244;background:#342d1d;color:#f1d8a6}
@media(max-width:760px){
 #ccAdminLive .cc-live-table-wrap{overflow:visible;border:0;border-radius:0}
 #ccAdminLive .cc-live-table{display:block;min-width:0;width:100%}
 #ccAdminLive .cc-live-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 #ccAdminLive .cc-live-table tbody{display:grid;gap:12px}
 #ccAdminLive .cc-live-player-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:15px;border:1px solid #4a4840;border-radius:8px;background:#1b1d20}
 #ccAdminLive .cc-live-player-row td{display:block;min-width:0;max-width:none;width:auto;padding:0;border:0;background:transparent!important;font-size:14px;overflow-wrap:anywhere}
 #ccAdminLive .cc-live-player-row td::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;line-height:1.4;color:#bcb4a3}
 #ccAdminLive .cc-live-player-row td:first-child{grid-column:1/-1;order:0;min-width:0;max-width:none;padding-bottom:9px;border-bottom:1px solid #3a3c3b}
 #ccAdminLive .cc-live-player-row td:first-child::before,#ccAdminLive .cc-live-player-row td:nth-child(5)::before{display:none}
 #ccAdminLive .cc-live-player-row td:first-child strong{font-size:16px;color:#f3e8ce}
 #ccAdminLive .cc-live-player-row td:nth-child(5){grid-column:1/-1;order:1}
 #ccAdminLive .cc-live-player-row td:nth-child(2){grid-column:1/-1;order:2}
 #ccAdminLive .cc-live-player-row td:nth-child(3){order:3}
 #ccAdminLive .cc-live-player-row td:nth-child(4){order:4}
 #ccAdminLive .cc-live-player-row td:nth-child(6){grid-column:1/-1;order:5;padding-top:8px;border-top:1px solid #353936}
 #ccAdminLive .cc-live-player-row td small{font-size:12px;line-height:1.55;margin-top:4px}
 #ccAdminLive .cc-live-player-row .cc-live-player-status{font-size:13px}
 #ccAdminLive .cc-live-table tbody tr:not(.cc-live-player-row){display:block}
 #ccAdminLive .cc-live-table .cc-live-empty,#ccAdminLive .cc-live-table .cc-live-loading{display:block;min-width:0;max-width:none;width:100%;border:1px solid #4a4840;border-radius:8px;font-size:14px}
 #ccAdminLive .cc-live-filters input,#ccAdminLive .cc-live-filters select{font-size:16px}
}
