/* One live channel list, with category navigation adapted to each console layout. */
.channel-category-workspace { display: block; min-width: 0; }
.channel-category-main { min-width: 0; }
.channel-category-filters { border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); overflow: hidden; }
.channel-category-filter-row { display: flex; align-items: flex-start; gap: 18px; padding: 16px 18px; }
.channel-category-filter-row + .channel-category-filter-row { border-top: 1px solid var(--hairline); }
.channel-category-filter-label { flex: 0 0 64px; padding-top: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.channel-category-chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
#channelCard .channel-category-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 6px 11px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.5; border-radius: 6px; white-space: nowrap; }
#channelCard .channel-category-chip:hover { background: var(--sage); color: var(--ink); }
#channelCard .channel-category-chip[aria-pressed="true"] { border-color: var(--hairline-strong); background: var(--sage); color: var(--ink); font-weight: 600; }
#channelCard .channel-category-chip[data-channel-site-type][aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.channel-category-count { color: inherit; opacity: .65; font-size: 10px; font-variant-numeric: tabular-nums; }
.channel-brand-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #939a87; }
.channel-brand-dot[data-brand="openai"] { background: #57705a; }
.channel-brand-dot[data-brand="claude"] { background: #b97d5d; }
.channel-brand-dot[data-brand="domestic"] { background: #6687ae; }
.channel-brand-dot[data-brand="gemini"] { background: #907bab; }
.channel-brand-dot[data-brand="grok"] { background: #657477; }
.channel-brand-dot[data-brand="other"] { background: #a49168; }
.channel-category-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 19px 0 12px; }
.channel-category-results { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-right: auto; }
.channel-category-results strong { font-size: 14px; font-weight: 550; }
#channelResultCount { font-size: 11px; color: var(--muted); white-space: nowrap; }
.channel-category-search { position: relative; flex: 0 1 240px; min-width: 170px; }
.channel-category-search svg { position: absolute; left: 11px; top: 12px; width: 16px; height: 16px; stroke: var(--muted); stroke-width: 1.4; fill: none; pointer-events: none; }
#channelSearch { width: 100%; min-height: 40px; font-size: 12px; padding: 8px 10px 8px 33px; }
#channelCard .channel-category-toolbar select, #channelClearFilters { min-height: 40px; font-size: 12px; padding: 8px 10px; }
.channel-category-table { border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
.channel-category-table table { min-width: 940px; }
.channel-category-table td, .channel-category-table th { padding-left: 11px; padding-right: 11px; }
.channel-category-table td:nth-child(2) { min-width: 184px; }
.channel-category-table .channel-name-cell.editable { text-decoration: none; }
.channel-name-content { display: grid; grid-template-columns: minmax(92px, 1fr) 60px; align-items: center; gap: 10px; width: 100%; }
.channel-name-content:not(:has(.channel-name-badge:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.channel-name-identity { display: flex; align-items: center; gap: 6px; min-width: 0; }
.channel-name-identity .prov-wrap { margin-right: 0; flex-shrink: 0; }
.channel-name-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.channel-name-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 60px; }
.channel-name-badges:not(:has(.channel-name-badge:not([hidden]))) { display: none; }
.channel-name-cell.editable .channel-name-label { text-decoration: underline dotted var(--hairline-strong); text-underline-offset: 3px; }
.channel-name-cell.editable:hover .channel-name-label { text-decoration-color: var(--accent); }
.channel-name-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 60px; height: 24px; padding: 3px 8px; border-radius: 999px; font: 500 11px/1.5 var(--sans); vertical-align: middle; white-space: nowrap; cursor: default; }
.channel-name-badge[hidden] { display: none !important; }
.channel-image-badge { background: #e2ecd9; color: #2e583f; }
.channel-official-badge { background: #e3edf5; color: #355e7d; }
.channel-name-badge svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.channel-category-table .channel-pool-badge { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 26px; padding: 2px 9px; border: 0; vertical-align: middle; white-space: nowrap; }
.channel-pool-badge.shared { background: var(--ok-tint); color: var(--ok); }
.channel-pool-badge.exclusive { background: #ede8f5; color: #6e528e; }
.channel-category-table td:nth-child(3) { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.channel-category-table td:nth-child(7) { min-width: 155px; max-width: 245px; white-space: normal; }
.channel-brand-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.channel-brand-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; background: #eeeee5; border: 1px solid var(--hairline); color: var(--ink); border-radius: 5px; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.channel-model-count { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
#channelCard button.channel-model-count { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; max-width: 100%; margin: 3px 0 -3px; padding: 3px 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); box-shadow: none; font-size: 10px; font-weight: 400; line-height: 1.6; text-align: left; }
#channelCard button.channel-model-count span { text-decoration: underline dotted var(--hairline-strong); text-underline-offset: 4px; }
#channelCard button.channel-model-count:hover, #channelCard button.channel-model-count[aria-expanded="true"] { color: var(--accent); background: transparent; }
#channelCard button.channel-model-count:hover span, #channelCard button.channel-model-count[aria-expanded="true"] span { text-decoration-color: currentColor; }
#channelCard button.channel-model-count:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.channel-model-count svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.channel-model-count[aria-expanded="true"] svg { transform: rotate(180deg); }
.channel-model-popover { position: fixed; inset: auto; z-index: 1100; display: flex; flex-direction: column; width: 344px; max-width: calc(100vw - 24px); max-height: min(380px, calc(100dvh - 24px)); margin: 0; padding: 0; overflow: hidden; border: 1px solid #d5ddce; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 40px rgba(24,48,40,.15), 0 3px 10px rgba(24,48,40,.06); font: 400 12px/1.55 var(--sans); }
.channel-model-popover[hidden] { display: none !important; }
.channel-model-popover::backdrop { background: transparent; pointer-events: none; }
.channel-model-popover-heading { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 14px 15px 13px; border-bottom: 1px solid #e0e5d9; background: #eef1e7; }
.channel-model-popover-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #d8e0cf; border-radius: 9px; background: #e4eadc; color: #4b6952; }
.channel-model-popover-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.channel-model-popover-label { min-width: 0; flex: 1; }
.channel-model-popover-label > span { display: block; color: #65765e; font-size: 10px; line-height: 1.4; margin-bottom: 3px; }
.channel-model-popover-label strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.channel-model-popover-count { flex: 0 0 auto; padding: 3px 8px; border: 1px solid #d8e0cf; border-radius: 6px; color: #50644b; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.channel-model-popover-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 5px 15px; margin: 0; scrollbar-width: thin; scrollbar-color: #bdc9b7 transparent; }
.channel-model-popover-list li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.channel-model-popover-list li + li { border-top: 1px solid #e8e8dd; }
.channel-model-popover-list li > .channel-brand-dot { width: 6px; height: 6px; margin-top: 7px; }
.channel-model-popover-list li > div { min-width: 0; flex: 1; }
.channel-model-popover-list code { display: block; font: 500 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; user-select: text; }
.channel-model-mapping { display: block; padding-top: 5px; color: #687361; }
.channel-model-mapping > span { display: block; font-size: 10px; }
.channel-model-mapping code { font-size: 11px; font-weight: 400; }
@media (pointer: coarse) { #channelCard button.channel-model-count { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .channel-model-count svg { transition: none; } }
.channel-site-tag { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; line-height: 1.5; white-space: nowrap; color: #6f7465; background: #eeeee5; }
.channel-site-tag.official { background: #17473e; border-color: #17473e; color: #fff; font-weight: 700; }
.channel-site-tag.commercial { background: #ede1be; border-color: #d0bd88; color: #765b28; font-weight: 600; }
.channel-site-tag.charity { background: #f0f2ed; color: #65705f; }
.channel-category-table button.channel-site-tag { min-height: 32px; min-width: 44px; justify-content: center; padding: 5px 8px; box-shadow: none; cursor: pointer; text-decoration: underline dotted; text-decoration-color: currentColor; text-underline-offset: 3px; }
.channel-category-table button.channel-site-tag:hover:not(:disabled) { border-color: currentColor; text-decoration-style: solid; box-shadow: none; }
.channel-category-table button.channel-site-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.channel-category-actions { min-width: 82px; }
.channel-category-actions .test-res { display: block; max-width: 170px; margin: 6px 0 0; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.channel-category-actions .test-res:empty { display: none; }
.channel-action-note { display: block; margin-top: 6px; font-size: 11px; }
.channel-category-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding: 13px 1px 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.channel-category-main > #chHint { margin-top: 14px; font-size: 11px; line-height: 1.85; }
.channel-category-breadcrumb { font-size: 12px; color: var(--muted); line-height: 1.75; padding: 1px 0 14px; overflow-wrap: anywhere; }
.channel-category-nav { padding: 0 15px 0 0; border-right: 1px solid var(--hairline); min-width: 0; }
.channel-category-nav-title { padding: 5px 10px 17px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
#channelCard .channel-category-nav button { display: flex; align-items: center; width: 100%; min-height: 39px; padding: 9px 10px; gap: 8px; border: 0; border-radius: 6px; font-size: 12px; font-weight: 400; text-align: left; color: var(--ink); background: transparent; }
#channelCard .channel-category-nav button:hover { background: #e8ecdf; }
#channelCard .channel-category-nav button[aria-pressed="true"] { background: #dfe7d2; color: #3e583d; font-weight: 600; }
.channel-category-nav .channel-category-count { margin-left: auto; }
.channel-category-nav-group { margin-top: 11px; }
#channelCard .channel-category-nav .channel-category-nav-child { padding-left: 26px; font-size: 11px; }
.channel-category-site-mark { display: block; width: 7px; height: 7px; border-radius: 2px; background: #a5ab97; flex-shrink: 0; }
.channel-category-site-mark[data-site="official"] { background: #17473e; width: 8px; height: 8px; }
.channel-category-site-mark[data-site="commercial"] { background: #b09654; }
.channel-category-site-mark[data-site="charity"] { background: #a0ad96; border-radius: 50%; }
.channel-category-nav-help { margin-top: 24px; padding: 14px 8px 0; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 10px; line-height: 1.9; }
#channelCard[data-channel-layout="sidebar"] .channel-category-workspace { display: grid; grid-template-columns: 194px minmax(0, 1fr); gap: 23px; }
#channelCard[data-channel-layout="sidebar"] [data-category-row="site"] { display: none !important; }
#channelCard[data-channel-layout="sidebar"] .channel-category-filter-row { padding: 12px; border-top: 0; gap: 8px; }
#channelCard[data-channel-layout="sidebar"] .channel-category-filter-label { flex-basis: 56px; }
#channelCard[data-channel-layout="overview"] .channel-category-filter-row { padding: 12px 14px; }
.channel-category-dialog { width: min(580px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 27px; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); border-radius: 15px; box-shadow: 0 24px 90px rgba(12,36,27,.25); }
.channel-category-dialog::backdrop { background: rgba(10,32,25,.56); backdrop-filter: blur(3px); }
.channel-category-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.channel-category-dialog-heading h2 { font: 500 26px/1.4 var(--serif); }
.channel-category-dialog-heading p { margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.channel-category-dialog button { min-height: 42px; }
.channel-category-dialog fieldset { border: 0; padding: 0; margin: 27px 0; }
.channel-category-dialog legend, .channel-category-models h3 { font: 500 13px/1.6 var(--sans); margin-bottom: 10px; }
.channel-category-options { display: flex; flex-wrap: wrap; gap: 9px; }
.channel-category-options label { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 15px; border: 1px solid var(--hairline-strong); border-radius: 7px; cursor: pointer; font-size: 13px; }
.channel-category-options label:has(input:checked) { background: var(--sage); border-color: var(--ink); }
.channel-category-options input { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--ink); }
.channel-category-models p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.channel-category-error { margin-top: 18px; padding: 11px 13px; border-radius: 6px; background: #f6e9e4; color: #a34435; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.channel-category-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--hairline); }
#chNewRes[role="alert"] { white-space: pre-wrap; color: #a34435; }
#channelIssuePanel .issue-field { grid-column: span 4; }
#channelIssuePanel .issue-url, #channelIssuePanel .issue-wide { grid-column: span 6; }
#channelRows tr[hidden], .channel-category-nav [hidden], .channel-category-workspace > [hidden], .channel-category-main > [hidden], .channel-category-dialog [hidden] { display: none !important; }
@media (max-width: 1120px) {
  #channelCard[data-channel-layout="sidebar"] .channel-category-workspace { grid-template-columns: 175px minmax(0, 1fr); gap: 15px; }
  #channelCard[data-channel-layout="sidebar"] .channel-category-filter-row { display: block; }
  #channelCard[data-channel-layout="sidebar"] .channel-category-filter-label { display: block; padding: 0 0 8px; }
  .channel-category-results { flex-basis: 100%; margin-bottom: 3px; }
  .channel-category-search { flex-grow: 1; }
}
@media (max-width: 700px) {
  .channel-category-filter-row { display: block; padding: 12px; }
  .channel-category-filter-label { display: block; padding: 0 0 9px; }
  #channelCard .channel-category-chip { min-height: 38px; padding: 7px 9px; }
  .channel-category-chips { gap: 5px; }
  .channel-category-search { flex-basis: 100%; }
  .channel-category-toolbar { gap: 8px; }
  #channelCard[data-channel-layout="sidebar"] .channel-category-workspace { display: block; }
  #channelCard[data-channel-layout="sidebar"] .channel-category-filters { display: none; }
  .channel-category-nav { border: 1px solid var(--hairline); border-radius: 9px; padding: 10px; margin-bottom: 16px; background: var(--surface); }
  .channel-category-nav-title { padding: 3px 7px 9px; }
  .channel-category-nav-group { margin-top: 3px; }
  .channel-category-nav-brands { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 5px 8px; }
  #channelCard .channel-category-nav .channel-category-nav-child { width: auto; padding: 8px 10px; min-height: 36px; }
  .channel-category-nav-help { display: none; }
  .channel-category-dialog { padding: 21px; }
  .channel-category-dialog-heading h2 { font-size: 23px; }
  .channel-category-options { gap: 7px; }
  .channel-category-options label { flex: 1 1 auto; justify-content: center; padding: 10px; }
  #channelIssuePanel .issue-field { grid-column: 1 / -1; }
}
