#page-channels,.ch-dialog{--ch-panel:var(--surface,#15151f);--ch-line:var(--border,#30303e);--ch-muted:var(--text-muted,#9797ad);color:var(--text-primary,#eeeef7)}
.ch-head,.ch-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.ch-head h1{font-size:28px;margin:0 0 8px;font-weight:700}.ch-head p{max-width:680px;margin:0;line-height:1.6}.ch-muted{color:var(--ch-muted);font-size:13px;line-height:1.6;margin:8px 0}.ch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ch-btn{border:1px solid var(--ch-line);border-radius:10px;background:rgba(255,255,255,.035);color:inherit;padding:10px 15px;font:inherit;font-size:13px;cursor:pointer;transition:background .15s}.ch-btn:hover{background:rgba(255,255,255,.09)}.ch-btn:focus-visible,.ch-dialog input:focus-visible,.ch-dialog textarea:focus-visible,.ch-dialog select:focus-visible{outline:2px solid var(--accent,#9d8bff);outline-offset:3px}.ch-btn:disabled{opacity:.45;cursor:not-allowed}.ch-primary{background:var(--accent,#7c66eb);border-color:transparent;color:#fff}.ch-primary:hover{background:#8d77f5}.ch-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.ch-metric{padding:20px;border:1px solid var(--ch-line);border-radius:14px;background:linear-gradient(135deg,rgba(130,100,235,.08),transparent)}.ch-metric strong{display:block;font-size:30px;font-weight:650;margin-bottom:5px}.ch-metric span{font-size:12px;color:var(--ch-muted)}.ch-tabs{display:flex;gap:6px;border-bottom:1px solid var(--ch-line);padding-bottom:12px;margin-bottom:18px;overflow-x:auto}.ch-tabs .ch-btn{white-space:nowrap;border-color:transparent}.ch-tabs .ch-selected{background:rgba(130,100,235,.17);color:#c4b6ff}.ch-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}.ch-search{background:var(--ch-panel);border:1px solid var(--ch-line);color:inherit;padding:10px 14px;border-radius:10px;width:min(100%,330px);font:inherit;font-size:13px}.ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:16px;margin-top:20px}.ch-card{border:1px solid var(--ch-line);background:rgba(255,255,255,.018);border-radius:14px;padding:20px;margin:16px 0;min-width:0;overflow-wrap:anywhere}.ch-grid .ch-card{margin:0}.ch-card h3{font-size:16px;margin:0 0 8px;line-height:1.5}.ch-card .ch-actions{margin-top:14px}.ch-number{display:block;font-size:28px;margin-top:15px}.ch-card code{display:block;margin:16px 0;font-size:12px;overflow-wrap:anywhere}.ch-badge{display:inline-flex;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:600;background:rgba(155,155,180,.12);color:#bdbdd0}.ch-status-ready,.ch-status-published{background:rgba(50,190,140,.12);color:#70dbb2}.ch-status-scheduled,.ch-status-running,.ch-status-sending,.ch-status-completed{background:rgba(135,105,240,.15);color:#bca8ff}.ch-status-attention,.ch-status-failed,.ch-status-uncertain,.ch-status-blocked{background:rgba(235,160,80,.12);color:#f1bd7f}.ch-empty{padding:60px 20px;text-align:center;border:1px dashed var(--ch-line);border-radius:16px;margin-top:22px}.ch-empty h2{font-size:20px}.ch-empty p{max-width:500px;margin:12px auto 20px}.ch-empty-icon{font-size:36px;color:var(--accent,#a38aff)}.ch-notice,.ch-form-error{padding:12px 16px;margin-bottom:16px;border:1px solid var(--ch-line);border-radius:10px;font-size:13px;line-height:1.6}.ch-error-text,.ch-form-error{color:#f1ab9d}.ch-dialog{margin:auto;inset:0;width:min(620px,calc(100vw - 32px));max-width:none;max-height:90dvh;overflow:auto;border:1px solid var(--ch-line);border-radius:18px;padding:26px;background:#15151f;box-shadow:0 30px 100px #0008}.ch-dialog.ch-wide{width:min(980px,calc(100vw - 32px))}.ch-dialog::backdrop{background:rgba(5,5,12,.75);backdrop-filter:blur(5px)}.ch-dialog-head{align-items:center;margin-bottom:18px}.ch-dialog h2{font-size:20px;margin:0}.ch-dialog h3{font-size:15px;margin-top:20px}.ch-field{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px;min-width:0}.ch-field input,.ch-field textarea,.ch-field select{width:100%;box-sizing:border-box;border:1px solid var(--ch-line);border-radius:9px;padding:11px 12px;background:#101019;color:inherit;font:inherit;min-width:0}.ch-field textarea{resize:vertical;min-height:100px;line-height:1.65}.ch-field input[type=file]{font-size:12px}.ch-field select{min-height:42px}.ch-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0;font-size:13px;line-height:1.5}.ch-check input{margin-top:3px;accent-color:var(--accent,#9d8bff);flex:none}.ch-form-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px}.ch-channel-picker{max-height:240px;overflow:auto;border:1px solid var(--ch-line);border-radius:10px;padding:0 12px;margin:12px 0 20px}.ch-copy-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;padding:18px;background:rgba(255,255,255,.025);border-radius:10px;margin:16px 0}.ch-scroll{overflow:auto;max-height:360px}.ch-table{width:100%;font-size:12px;border-collapse:collapse}.ch-table th,.ch-table td{padding:10px;border-bottom:1px solid var(--ch-line);text-align:left;white-space:nowrap}.ch-dialog summary{cursor:pointer;font-size:13px;padding:10px 0}.ch-runtime{font-size:12px;color:var(--ch-muted)}
@media(max-width:680px){.ch-head{flex-direction:column}.ch-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ch-metric{padding:16px}.ch-metric strong{font-size:25px}.ch-head h1{font-size:24px}.ch-form-grid{grid-template-columns:minmax(0,1fr);gap:12px}.ch-dialog{padding:18px}.ch-dialog-head{gap:10px}.ch-dialog-head h2{font-size:18px}.ch-toolbar{align-items:flex-start;flex-direction:column}.ch-tabs{gap:0}.ch-tabs .ch-btn{padding:10px}.ch-card{padding:16px}.ch-actions .ch-btn{font-size:12px}.ch-empty{padding:35px 16px}}
