:root{font-family:Inter,"Noto Sans SC",system-ui;color:#18212f;background:#f4f6f9}
*{box-sizing:border-box}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body{margin:0;display:flex;min-height:100vh}
aside{width:220px;background:#101827;color:white;padding:24px;position:fixed;inset:0 auto 0 0}
aside h1{font-size:19px;margin:0 0 28px}
nav{display:grid;gap:7px}
nav a{color:#cbd5e1;text-decoration:none;padding:10px 12px;border-radius:7px}
nav a:hover{background:#243047;color:white}
nav a.active{background:#2563eb;color:white}.nav-group{margin:3px 0}.nav-toggle{width:100%;display:flex;justify-content:space-between;background:transparent;color:#e2e8f0;padding:10px 12px;text-align:left}.nav-children{display:block;padding-left:10px}.nav-children[hidden]{display:none}.nav-children a{display:block;padding:8px 12px;font-size:14px}
aside form{position:absolute;bottom:22px}
main{margin-left:220px;width:calc(100% - 220px);padding:28px}
header h2{margin-top:0}
.panel,.cards>div{background:white;border:1px solid #e3e8ef;border-radius:10px;padding:18px;margin-bottom:18px;box-shadow:0 1px 2px #00000008}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cards strong{display:block;font-size:28px;margin-top:8px}
.cards small,td small{display:block;color:#718096}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:11px 9px;border-bottom:1px solid #edf0f4;vertical-align:top}
th{color:#64748b;font-weight:600}
.classification-center th,.classification-center td{text-align:center;vertical-align:middle}.classification-tabs{grid-template-columns:repeat(4,max-content);margin-bottom:14px}.classification-summary{display:flex;align-items:center;gap:28px;flex-wrap:wrap}.classification-summary span{white-space:nowrap}.classification-summary b{font-variant-numeric:tabular-nums}.classification-table{min-width:1120px}.classification-table th:nth-child(2),.classification-table td:nth-child(2),.classification-table th:nth-child(3),.classification-table td:nth-child(3){max-width:210px;overflow-wrap:anywhere}.classification-table th:last-child,.classification-table td:last-child{white-space:nowrap}.failed-classification-table input[type="checkbox"]{display:block;margin:auto}
button,.button{background:#2563eb;color:white;border:0;border-radius:6px;padding:9px 15px;cursor:pointer;text-decoration:none}
.ghost{background:#243047}
.secondary{background:#64748b}
.danger{background:#b91c1c}
.success{background:#15803d;color:white}.warning{background:#d97706}.status.success{background:#dcfce7;color:#166534}.status.info{background:#dbeafe;color:#1d4ed8}.status.warning{background:#ffedd5;color:#c2410c}.status.danger{background:#fee2e2;color:#b91c1c}.status.muted{background:#e5e7eb;color:#4b5563}.status{display:inline-block;border-radius:999px;padding:3px 8px}.actions{display:flex;gap:5px;align-items:flex-start;flex-wrap:wrap}.actions form{margin:0}
.success{background:#15803d;color:white}.warning{background:#d97706}.status.success{background:#dcfce7;color:#166534}.status.info{background:#dbeafe;color:#1d4ed8}.status.warning{background:#ffedd5;color:#c2410c}.status.danger{background:#fee2e2;color:#b91c1c}.status.muted{background:#e5e7eb;color:#4b5563}.status{display:inline-block;border-radius:999px;padding:3px 8px}
.actions{display:flex;gap:5px;align-items:flex-start;flex-wrap:wrap}.actions form{margin:0}
.small{padding:5px 9px}
input,select,textarea{border:1px solid #cbd5e1;border-radius:6px;padding:9px;background:white}
textarea{width:100%}
.inline,.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stack{display:grid;gap:12px;max-width:650px}
.stack label{display:grid;gap:6px}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:12px}.form-grid label{display:grid;gap:6px}.check{display:flex!important;align-items:center;gap:8px!important}.settings-cards a{color:#18212f;text-decoration:none;background:white;border:1px solid #e3e8ef;border-radius:10px;padding:18px}.settings-cards strong{font-size:18px}.panel details{margin:12px 0}.panel summary{cursor:pointer}.panel pre{white-space:pre-wrap;max-width:420px}
.compact{display:flex;gap:4px}
.compact input{width:110px;padding:5px}
.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding-top:18px}
.pager a{padding:5px 9px;text-decoration:none;color:#2563eb}
.pager .active{background:#2563eb;color:white;border-radius:5px}
.disabled{pointer-events:none;opacity:.35}
.mono{font-family:monospace}
.login{display:grid;place-items:center;width:100%}
.loginbox{width:360px;display:grid;gap:15px}
.loginbox label{display:grid;gap:6px}
.error{color:#b91c1c}
.quick-prompts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.ai-center textarea{margin:10px 0}
.ai-result{margin-top:14px;white-space:pre-wrap;line-height:1.6;max-height:480px;overflow:auto}
.ai-result pre{white-space:pre-wrap;background:#f7f9fc;padding:12px;border-radius:7px}
#ai-fab{position:fixed;right:25px;bottom:25px;width:56px;height:56px;border-radius:50%;font-weight:700;box-shadow:0 5px 20px #0004;z-index:20}
.ai-drawer{position:fixed;right:20px;bottom:92px;width:min(390px,calc(100vw - 30px));background:white;border:1px solid #dce3ec;border-radius:12px;padding:18px;box-shadow:0 12px 40px #0003;z-index:21}
.ai-drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ai-drawer textarea{margin:12px 0}
@media(max-width:900px){aside{width:170px}
main{margin-left:170px;width:calc(100% - 170px);padding:16px}
.cards{grid-template-columns:repeat(2,1fr)}
.panel{overflow-x:auto}
}
.table-wrap{overflow-x:auto}.table-wrap table{min-width:760px}th{white-space:nowrap;background:#fafbfc}th,td{height:46px;vertical-align:middle}.bulk-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.selection-banner{padding:10px;background:#eff6ff;color:#1d4ed8;border-radius:6px;margin-bottom:10px}.link-button{background:transparent;color:#1d4ed8;text-decoration:underline;padding:2px}.empty{text-align:center;color:#94a3b8;padding:32px}.create-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.create-grid details{margin:0}.create-grid summary{display:inline-block;margin-bottom:14px}.dashboard-cards{grid-template-columns:repeat(4,minmax(150px,1fr))}.searchable{min-width:150px}.pager{flex-wrap:wrap}.pager label{display:flex;align-items:center;gap:5px}button:disabled,select:disabled{opacity:.45;cursor:not-allowed}#ai-fab{touch-action:none;user-select:none}
.select-inline{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.select-inline input{margin:0;vertical-align:middle}.proxy-group-list{display:grid;gap:8px;margin-top:12px}
@media(max-width:700px){aside{position:static;width:100%;min-height:auto}body{display:block}aside form{position:static}main{margin:0;width:100%;padding:12px}.cards,.dashboard-cards,.create-grid{grid-template-columns:1fr 1fr}.pager{justify-content:flex-start}}
.form-row,.toolbar{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.form-field{display:grid;gap:6px}.toolbar{margin:12px 0}.table-select{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.status-badge{display:inline-block;border-radius:999px;padding:3px 8px;background:#e5e7eb;color:#374151}.status-badge.success{background:#dcfce7;color:#166534}.toast{position:fixed;right:24px;top:24px;z-index:100;padding:12px 18px;border-radius:8px;color:#fff;background:#15803d;box-shadow:0 8px 28px #0004}.toast.warning{background:#d97706}.toast.error{background:#b91c1c}button,input,select{min-height:38px}.loading{opacity:.6;pointer-events:none}
thead th br{display:none}thead th input[type=checkbox]{vertical-align:middle;margin-left:7px}
.import-modal{width:min(760px,calc(100vw - 30px));border:0;border-radius:12px;padding:22px;box-shadow:0 20px 60px #0005}.import-modal::backdrop{background:#0f172a99}.import-modal-head{display:flex;align-items:center;justify-content:space-between}.import-modal-head h3{margin:0}.import-modal progress{width:100%;height:16px}.import-modal [data-failure-list]{max-height:320px;overflow:auto;margin-top:16px}.import-panel code{word-break:break-all}
.group-create-card{max-width:860px;padding:22px}.group-tabs{display:flex;gap:8px;border-bottom:1px solid #e3e8ef;margin-bottom:20px}.group-tab{border-radius:7px 7px 0 0}.group-tab.active{background:#2563eb}.group-create-form{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:14px;align-items:end;max-width:760px}.group-create-form[data-group-panel=subgroup]{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto}.group-create-form[hidden]{display:none}.group-list{margin-top:22px}.subgroup-row>td{background:#f8fafc;padding:14px 24px}.subgroup-box{border-left:3px solid #cbd5e1;padding-left:18px}.subgroup-box table{min-width:650px}.edit-popover{display:grid;gap:10px;min-width:240px;padding:12px;background:#f8fafc;border-radius:8px}.actions details{margin:0}.group-list a{color:#2563eb;text-decoration:none}.group-list a:hover{text-decoration:underline}
@media(max-width:900px){.group-create-form,.group-create-form[data-group-panel=subgroup]{grid-template-columns:1fr}.group-create-card{max-width:none}}
.health-normal,.connection-online{background:#dcfce7;color:#166534}.health-unchecked,.connection-connecting{background:#ffedd5;color:#c2410c}.connection-offline,.policy{background:#e5e7eb;color:#4b5563}.health-abnormal,.reason-abnormal{background:#fee2e2;color:#991b1b}.enable{background:#15803d}.status.warning{background:#ffedd5;color:#9a3412}.accounts-table{min-width:1500px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:16px}.summary-grid div{display:grid;gap:7px}.iproyal-cards{display:grid;gap:18px}.credential-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.credential-grid label{display:grid;gap:6px}.inline-note{color:#9a3412;font-size:14px}.proxy-state-success{background:#dcfce7;color:#166534}.proxy-state-failed{background:#fee2e2;color:#991b1b}.proxy-state-unchecked,.proxy-state-disabled{background:#e5e7eb;color:#4b5563}.proxy-state-testing{background:#ffedd5;color:#c2410c}
.check-failed{color:#c2410c}
.country-combobox{position:relative;max-width:420px}.country-combobox>input[type=search]{width:100%}.country-options{position:absolute;z-index:30;top:42px;width:100%;max-height:280px;overflow:auto;background:#fff;border:1px solid #cbd5e1;border-radius:7px;box-shadow:0 8px 24px #0002;padding:5px}.country-options button{display:block;width:100%;text-align:left;color:#18212f;background:#fff}.country-options button:hover{background:#eff6ff}.country-options button[hidden]{display:none}
.iproyal-cards{max-width:1180px}.iproyal-cards h3,#generated-proxies h3{margin:0 0 18px}.credential-form{align-items:end;max-width:920px}.credential-fields{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;grid-column:1/-1}.credential-fields label,.credential-form details label{display:grid;gap:6px}.credential-actions{grid-column:1/-1}.credential-actions button{width:auto}.proxy-generate-form{display:grid;grid-template-columns:minmax(260px,420px) 120px auto;gap:14px;align-items:end;max-width:960px}.proxy-generate-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.proxy-generate-actions button{white-space:nowrap}.proxy-advanced{grid-column:1/-1;margin:2px 0 0!important;border-top:1px solid #edf0f4;padding-top:14px}.proxy-advanced summary{display:inline-flex;align-items:center;gap:7px;color:#475569;font-weight:600;list-style:none}.proxy-advanced summary::-webkit-details-marker{display:none}.details-arrow{width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid currentColor;transition:transform .16s}.proxy-advanced[open] .details-arrow{transform:rotate(90deg)}.proxy-result-region:not(:empty){margin-bottom:18px}.proxy-result-card{max-width:720px;background:#fff;border:1px solid #dbe4ee;border-left:4px solid #64748b;border-radius:9px;padding:16px 18px;box-shadow:0 1px 2px #00000008}.proxy-result-card.is-success{border-left-color:#16a34a}.proxy-result-card.is-error{border-left-color:#dc2626}.proxy-result-card.is-loading{border-left-color:#2563eb}.proxy-result-title{font-weight:700;margin-bottom:14px}.is-success .proxy-result-title{color:#15803d}.is-error .proxy-result-title{color:#b91c1c}.is-loading .proxy-result-title{color:#1d4ed8;margin-bottom:0}.proxy-result-grid{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 16px;margin:0 0 16px}.proxy-result-grid dt{color:#64748b}.proxy-result-grid dd{margin:0;font-weight:600;overflow-wrap:anywhere}.proxy-view-button{display:inline-block}.danger-outline{background:#fff;color:#b91c1c;border:1px solid #fecaca}.loading-spinner{display:inline-block;width:15px;height:15px;margin-right:8px;vertical-align:-2px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:proxy-spin .8s linear infinite}.iproyal-proxy-table{min-width:1280px}@keyframes proxy-spin{to{transform:rotate(360deg)}}
.dashboard-section{margin:0 0 28px}.dashboard-section h3,.dashboard-recent h3{margin:0 0 14px;font-size:17px}.metric-grid{display:grid;gap:14px}.metric-grid-six,.metric-grid-three{grid-template-columns:repeat(3,minmax(150px,1fr))}.metric-grid-five{grid-template-columns:repeat(5,minmax(140px,1fr))}.metric-grid-two{grid-template-columns:repeat(2,minmax(150px,1fr));max-width:760px}.metric-card{min-height:108px;background:#fff;border:1px solid #dbe4ee;border-left:4px solid #64748b;border-radius:10px;padding:18px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 1px 2px #00000008}.metric-card span{color:#64748b;font-size:14px}.metric-card strong{font-size:28px;line-height:1.2;margin-top:9px;font-variant-numeric:tabular-nums}.metric-info{border-left-color:#3b82f6}.metric-success{border-left-color:#4f9d69}.metric-danger{border-left-color:#c95b5b}.metric-warning{border-left-color:#d28a35}.metric-muted{border-left-color:#94a3b8}.status-completed{background:#dcfce7;color:#166534}.status-running,.status-recovering{background:#dbeafe;color:#1d4ed8}.status-waiting_account{background:#ffedd5;color:#c2410c}.status-failed{background:#fee2e2;color:#b91c1c}.status-stopped{background:#e5e7eb;color:#4b5563}.dashboard-recent{margin-top:2px}
@media(max-width:1200px){.metric-grid-five{grid-template-columns:repeat(3,minmax(140px,1fr))}}
@media(max-width:900px){.metric-grid-six,.metric-grid-three,.metric-grid-five,.metric-grid-two{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:900px){.proxy-generate-form{grid-template-columns:minmax(220px,1fr) 120px}.proxy-generate-actions{grid-column:1/-1}.credential-grid,.credential-fields{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:520px){.proxy-generate-form,.summary-grid{grid-template-columns:1fr}.quantity-field{max-width:140px}.proxy-result-grid{grid-template-columns:95px minmax(0,1fr)}}
@media(max-width:520px){.metric-grid-six,.metric-grid-three,.metric-grid-five,.metric-grid-two{grid-template-columns:1fr}}
.bulk-toolbar button[value="TEST"]{background:#2563eb}.bulk-toolbar button[value="ENABLE"]{background:#15803d}.bulk-toolbar button[value="DISABLE"]{background:#d97706}.bulk-toolbar button[value="DELETE"]{background:#b91c1c}
.toast{white-space:pre-line;max-width:min(520px,calc(100vw - 48px))}
.collection-tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid #dbe2ea}.collection-tab{min-width:88px;border-radius:7px 7px 0 0;background:transparent;color:#64748b;font-weight:600}.collection-tab:hover{background:#eff6ff;color:#1d4ed8}.collection-tab.active{background:#2563eb;color:#fff}.collection-tab-panel[hidden]{display:none!important}.collection-create{padding:18px}.task-form{display:grid;gap:14px}.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}.collection-column{display:flex;min-width:0;flex-direction:column;gap:12px}.collection-column h3{margin:0;padding-bottom:9px;border-bottom:1px solid #e5eaf0;font-size:16px}.collection-column input,.collection-column select{width:100%}.collection-items,.collection-items textarea{height:100%}.collection-items textarea{resize:vertical;min-height:210px;max-height:420px}.collection-policy-column .remember-setting{margin-top:auto}.collection-policy-column .collection-start{width:100%;margin-top:4px}.collection-advanced{margin:0!important}.collection-advanced summary{font-weight:600;color:#475569;min-height:38px;display:flex;align-items:center}.advanced-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px;margin-top:5px;background:#f8fafc;border:1px solid #dbe2ea;border-radius:8px}.remember-setting{font-size:14px;color:#64748b}.status-badge.waiting,.status-badge.waiting_account,.status-badge.queued{background:#fef3c7;color:#92400e}.status-badge.running,.status-badge.recovering{background:#dbeafe;color:#1d4ed8}.status-badge.completed{background:#dcfce7;color:#166534}.status-badge.failed{background:#fee2e2;color:#b91c1c}.status-badge.stopped,.status-badge.interrupted{background:#e5e7eb;color:#475569}.collection-results table{min-width:900px;width:100%;table-layout:auto}.collection-results th,.collection-results td{padding-left:9px;padding-right:9px}.collection-tab-panel th{text-align:center}.collection-tab-panel td{vertical-align:middle}.collection-tab-panel td.numeric{text-align:right;font-variant-numeric:tabular-nums}.collection-tab-panel td.status-cell{text-align:center}.collection-summary table{min-width:1120px}@media(max-width:1100px){.collection-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.advanced-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media(max-width:700px){.collection-grid,.advanced-grid{grid-template-columns:1fr}.collection-policy-column .remember-setting{margin-top:0}}
.account-stat-bar{background:#fff;border:1px solid #e3e8ef;border-radius:10px;padding:9px 14px;margin-bottom:10px;overflow-x:auto}.account-stat-row{display:flex;gap:6px;min-width:max-content}.account-stat-row+ .account-stat-row{margin-top:6px}.account-stat-row div{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:128px;padding:5px 9px;border-left:3px solid #3b82f6;background:#f8fafc;border-radius:5px}.account-stat-row span{font-size:13px;color:#64748b}.account-stat-row b{font-size:17px;font-variant-numeric:tabular-nums}.account-stat-row .stat-success{border-left-color:#15803d}.account-stat-row .stat-warning{border-left-color:#d97706}.account-stat-row .stat-danger{border-left-color:#b91c1c}.account-stat-row .stat-muted{border-left-color:#94a3b8}.account-actionbar{display:grid;gap:8px}.account-toolbar-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto}.account-actionbar select,.filters select{width:180px;height:40px}.account-actionbar button{white-space:nowrap;height:40px}.selected-count{margin:0;min-width:92px;color:#64748b;white-space:nowrap}.selected-count b{color:#18212f;font-size:18px}.account-actionbar button[value="CHECK"]{background:#d97706}.account-actionbar button[value="ENABLE"],.account-actionbar button[value="BIND"]{background:#15803d}.account-actionbar button[value="DISABLE"],.account-actionbar button[value="UNBIND"]{background:#64748b}.account-actionbar button[value="DELETE"]{background:#b91c1c}
body:has(.accounts-table) main>.panel{padding:10px 14px;margin-bottom:10px}body:has(.accounts-table) header h2{margin-bottom:10px}
.creation-modal{position:fixed;z-index:20;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(4,auto);gap:18px;padding:22px;background:#fff;border:1px solid #dbe2ea;border-radius:10px;box-shadow:0 16px 48px #0f172a40}.creation-modal[hidden]{display:none}.creation-modal strong,.creation-modal .preflight-actions,.creation-modal [data-preflight-empty]{grid-column:1/-1}.preflight-actions{display:flex;justify-content:flex-end;gap:10px}.creation-modal [data-preflight-empty]{margin:0;color:#b91c1c}.section-heading{display:flex;align-items:center;justify-content:space-between}.time-cell{width:170px;min-width:170px;white-space:nowrap}.status-badge.waiting,.status-badge.waiting_account,.status-badge.queued{background:#e5e7eb;color:#475569}.status-badge.stopped,.status-badge.interrupted{background:#ffedd5;color:#c2410c}@media(max-width:800px){.creation-modal{grid-template-columns:1fr 1fr}}
.collection-results th:first-child,.collection-results td:first-child{width:64px;white-space:nowrap}.collection-results th:first-child{text-align:center}.collection-results td:first-child{text-align:right}
.index-results th,.index-results td{text-align:center!important;vertical-align:middle}
.channel-discovery-task-table th,.channel-discovery-task-table td{text-align:center;vertical-align:middle}.channel-discovery-task-table .sequence-cell,.channel-candidate-table .sequence-cell{text-align:center!important;vertical-align:middle!important;width:72px;min-width:72px;max-width:72px;padding-left:0!important;padding-right:0!important}
.collection-sort{display:inline-flex;align-items:center;gap:3px;color:inherit;text-decoration:none;white-space:nowrap;line-height:1}.collection-sort span{font-size:11px;color:#2563eb}
.channel-candidate-table th,.channel-candidate-table td{text-align:center;vertical-align:middle}.channel-candidate-table th{height:auto;padding-top:9px;padding-bottom:9px}.channel-candidate-table td{height:auto;padding-top:7px;padding-bottom:7px}.channel-candidate-table input[type="checkbox"]{display:block;width:16px;height:16px;min-height:0;margin:0 auto}.channel-candidate-table a{color:#2563eb}.channel-candidate-table .channel-id-cell{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .15s,color .15s}.channel-candidate-table .channel-id-cell:hover{background:#eff6ff;color:#1d4ed8}
.channel-candidate-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px}.channel-candidate-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0}.channel-candidate-pager button,[data-candidate-keyset] button{display:inline-block;width:auto;min-width:0;min-height:30px;padding:5px 9px;background:#fff;color:#475569;border:1px solid #dbe2ea}.channel-candidate-pager span{white-space:nowrap;color:#64748b}.channel-candidate-pager [data-candidate-pages]{display:flex;align-items:center;gap:8px}.channel-candidate-pager button.active{background:#2563eb;color:#fff;border-color:#2563eb}.channel-candidate-pager button:disabled{cursor:not-allowed;opacity:.5}.channel-candidate-pager select{width:auto;min-width:64px;height:32px;padding:3px 24px 3px 7px}
.channel-candidate-actions{display:flex;flex-direction:row;align-items:center;gap:10px}.channel-candidate-actions form{margin:0}.channel-candidate-actions button{width:auto;min-width:0;height:40px;white-space:nowrap}
body:has(a[href="/collect/channel"].active) .collection-summary th,body:has(a[href="/collect/channel"].active) .collection-summary td{text-align:center;vertical-align:middle}body:has(a[href="/collect/channel"].active) .collection-summary .actions{justify-content:center;align-items:center}
.channel-live-status{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;padding:.65rem 1rem;margin:.75rem 0;background:var(--surface-soft,#f5f7fa);border:1px solid var(--border,#dfe3e8);border-radius:6px;font-size:.9rem}.channel-live-status span{white-space:nowrap}.channel-live-status b{font-variant-numeric:tabular-nums}
.tag-realtime-stats{margin:.75rem 0}.tag-realtime-stats .section-heading{margin-bottom:.65rem}.tag-stats-grid{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:1px;background:var(--border,#dfe3e8);border:1px solid var(--border,#dfe3e8);margin-bottom:.6rem}.tag-stats-progress{grid-template-columns:repeat(6,minmax(100px,1fr))}.tag-stats-grid span{display:flex;flex-direction:column;padding:.55rem .7rem;background:var(--surface,#fff);font-size:.78rem;color:var(--muted,#667085)}.tag-stats-grid b{font-size:1.05rem;color:var(--text,#1f2937);font-variant-numeric:tabular-nums}.tag-stats-rates{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.tag-stats-rates>div{display:flex;gap:.8rem;flex-wrap:wrap;padding:.55rem .7rem;background:var(--surface-soft,#f5f7fa);font-size:.78rem}.tag-stats-rates span{white-space:nowrap}.tag-account-stats{display:block;margin-top:.55rem}.tag-stall-alert{margin-top:.55rem;padding:.5rem .7rem;color:#8a4b00;background:#fff4ce;border:1px solid #e9b949;border-radius:4px;font-weight:600}@media(max-width:900px){.tag-stats-grid,.tag-stats-progress{grid-template-columns:repeat(2,1fr)}.tag-stats-rates{grid-template-columns:1fr}}
.tag-progress table,.tag-results table{width:100%;min-width:0;table-layout:auto}.tag-progress th,.tag-progress td,.tag-results th,.tag-results td{text-align:center!important;vertical-align:middle!important}.tag-progress th:nth-child(2),.tag-progress td:nth-child(2),.tag-results th:nth-child(2),.tag-results td:nth-child(2){width:160px;max-width:200px}.tag-progress th:nth-child(3),.tag-progress td:nth-child(3){width:90px}.tag-progress th:nth-child(n+5):nth-child(-n+7),.tag-progress td:nth-child(n+5):nth-child(-n+7){width:105px}.tag-progress th:last-child,.tag-progress td:last-child,.tag-results th:last-child,.tag-results td:last-child{width:170px;white-space:nowrap}
.channel-center-table{min-width:1280px}.channel-center-table th,.channel-center-table td{text-align:center!important;vertical-align:middle}.channel-center-table .channel-id{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums;white-space:nowrap}
.tag-center-table th,.tag-center-table td{text-align:center!important;vertical-align:middle!important}.tag-center-table small{display:block;text-align:center}
.tag-filter-form .tag-count-filter{width:128px;flex:0 0 128px}.tag-sort-links{display:inline-flex;gap:3px;margin-left:3px}.tag-sort-links a{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #cbd5e1;border-radius:4px;color:#64748b;text-decoration:none}.tag-sort-links a:hover,.tag-sort-links a.active{border-color:#2563eb;background:#2563eb;color:#fff}.tag-center-table th small{margin-top:5px}
.tag-download-line{flex-wrap:nowrap;white-space:nowrap;min-width:max-content}.tag-download-line span{font-variant-numeric:tabular-nums}
.tag-combobox{position:relative;flex:1 1 150px;min-width:140px}.tag-combobox-trigger{width:100%;height:42px;overflow:hidden;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:#fff;color:#18212f;border:1px solid #cbd5e1}.tag-combobox-options{position:absolute;z-index:40;top:44px;left:0;width:max(100%,220px);max-height:300px;overflow:auto;padding:5px;background:#fff;border:1px solid #cbd5e1;border-radius:7px;box-shadow:0 8px 24px #0002}.tag-combobox-options input[type=search]{position:sticky;z-index:1;top:0;width:100%;margin:0 0 5px;background:#fff}.tag-combobox-options button{display:block;width:100%;min-height:34px;padding:6px 8px;text-align:left;background:#fff;color:#18212f}.tag-combobox-options button:hover{background:#eff6ff}.tag-combobox-options button[hidden]{display:none}.tag-language-combobox .tag-combobox-options button{display:flex;align-items:center;justify-content:space-between;gap:12px}.tag-language-combobox .tag-combobox-options button[hidden]{display:none}.tag-language-combobox .tag-combobox-options button small{color:#64748b;font-variant-numeric:tabular-nums}
.tag-summary-run-table th,.tag-summary-run-table td,.tag-collection-summary-table th,.tag-collection-summary-table td{text-align:center!important;vertical-align:middle!important}.tag-summary-run-table .actions{justify-content:center;align-items:center}
.collection-tabs-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;white-space:nowrap}.collection-tabs-toolbar .collection-tabs{flex:1}.index-failed-header{display:flex;align-items:center;justify-content:flex-start;gap:12px}.index-failed-header h3{margin:0}.index-failed-header button{width:auto}.index-failed-table th,.index-failed-table td{padding-top:8px;padding-bottom:8px;text-align:center;vertical-align:middle}.index-failed-table input[type="checkbox"]{display:block;margin:0 auto}.index-summary-table th,.index-summary-table td,.index-run-group-table th,.index-run-group-table td{text-align:center;vertical-align:middle}.index-summary-table .actions{justify-content:center;align-items:center}.index-run-group-pager .pager{justify-content:flex-end}
.tag-failed-header{display:flex;align-items:center;justify-content:flex-start;gap:12px}.tag-failed-header h3{margin:0}.tag-failed-header button{width:auto}.tag-failed-table th,.tag-failed-table td{padding-top:8px;padding-bottom:8px;text-align:center;vertical-align:middle}.tag-failed-table input[type="checkbox"]{display:block;margin:0 auto}
.channel-failed-header{display:flex;align-items:center;justify-content:flex-start;gap:12px}.channel-failed-header h3{margin:0}.channel-failed-header button{width:auto}.channel-failed-table th,.channel-failed-table td{padding-top:8px;padding-bottom:8px;text-align:center;vertical-align:middle}.channel-failed-table input[type="checkbox"]{display:block;margin:0 auto}
.preindexed-import form{display:flex;align-items:center;gap:12px}.preindexed-table{min-width:2100px}.preindexed-table th,.preindexed-table td{text-align:center;white-space:nowrap}.toolbar .button{display:inline-block;background:#2563eb;color:#fff;padding:10px 14px;border-radius:7px;text-decoration:none}
.classification-tabs{grid-template-columns:repeat(5,max-content)}.tag-center-tabs{grid-template-columns:repeat(2,max-content);margin-bottom:14px}.tag-stage-summary{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.tag-stage-summary span{white-space:nowrap}.tag-stage-summary b{font-variant-numeric:tabular-nums}
.runtime-active{color:#16803c}.runtime-paused{color:#667085}.runtime-pausing,.runtime-starting{color:#b54708}.runtime-failed{color:#b42318}

/* TAG MULTI-RUN R1 */
.tag-progress{
  overflow-x:auto;
}

.tag-progress table{
  min-width:1280px;
}

.tag-progress th:nth-child(2),
.tag-progress td:nth-child(2){
  min-width:150px;
  white-space:nowrap;
}

.tag-progress th:nth-child(5),
.tag-progress td:nth-child(5){
  min-width:210px;
  white-space:nowrap;
}

.tag-progress td:nth-child(5){
  font-variant-numeric:tabular-nums;
}

.tag-results{
  overflow-x:auto;
}

.tag-results table{
  min-width:1050px;
}

.tag-results th:nth-child(2),
.tag-results td:nth-child(2){
  min-width:160px;
  white-space:nowrap;
}

.tag-results th:nth-child(3),
.tag-results td:nth-child(3){
  min-width:190px;
  white-space:nowrap;
}

/* TAG result exclusive dynamic authority */
.tag-results-exclusive{
  overflow-x:auto;
}

.tag-results-exclusive table{
  min-width:1050px;
}

.tag-results-exclusive th:nth-child(2),
.tag-results-exclusive td:nth-child(2){
  min-width:160px;
  white-space:nowrap;
}

.tag-results-exclusive th:nth-child(3),
.tag-results-exclusive td:nth-child(3){
  min-width:190px;
  white-space:nowrap;
}

/* TAG MULTI-RUN final table alignment */
.tag-progress th,
.tag-progress td,
.tag-results-exclusive th,
.tag-results-exclusive td{
  text-align:center !important;
  vertical-align:middle !important;
}

.tag-progress th:nth-child(2),
.tag-progress td:nth-child(2),
.tag-results-exclusive th:nth-child(2),
.tag-results-exclusive td:nth-child(2){
  white-space:nowrap;
}

.tag-progress th:nth-child(5),
.tag-progress td:nth-child(5){
  white-space:nowrap;
  min-width:220px;
}

/* CHANNEL_HISTORY_KEYWORD_SEARCH_R1 */
.channel-history-keyword{
  margin-top:18px;
}

.channel-history-search-form{
  display:flex;
  gap:10px;
  align-items:center;
  margin:16px 0 10px;
}

.channel-history-search-form input{
  width:min(520px,100%);
}

.channel-history-message{
  margin:8px 0 14px;
}

.channel-history-table th,
.channel-history-table td{
  text-align:center;
  vertical-align:middle;
}

.channel-history-table{
  min-width:950px;
}
