.ch-workspace{--ch-ink:#33465c;--ch-muted:#74859c;--ch-border:#dfe7f0;--ch-blue:#376d9f;max-width:1320px;margin:0 auto;padding:10px 8px 40px;color:var(--ch-ink)}
.ch-workspace *{box-sizing:border-box}
.ch-back{font-size:14px;color:var(--ch-muted);display:inline-block;margin-bottom:20px}
.ch-page-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}
.ch-page-header h1{font-size:28px;line-height:1.2;font-weight:650;margin:0;letter-spacing:-.5px;overflow-wrap:anywhere}
.ch-eyebrow{font-size:11px;letter-spacing:1.1px;font-weight:650;color:var(--ch-muted);margin:0 0 7px}
.ch-page-label{font-size:12px;color:var(--ch-muted);padding:7px 12px;border:1px solid var(--ch-border);border-radius:7px;white-space:nowrap}
.ch-section-nav{display:flex;gap:24px;border-bottom:1px solid var(--ch-border);margin:0 0 24px;padding:0 2px 13px}
.ch-section-nav a{font-size:14px;color:#58728f;font-weight:550;text-decoration:none}
.ch-section-nav a:hover{color:var(--ch-blue)}
.ch-card{background:#fff;border:1px solid var(--ch-border);border-radius:12px;padding:25px;margin-bottom:20px;box-shadow:0 3px 15px #29435c03;min-width:0;scroll-margin-top:100px}
.ch-card-head{margin:0 0 22px}.ch-workspace h2{font-size:18px;line-height:1.4;font-weight:650;margin:0 0 6px;color:var(--ch-ink)}
.ch-card-head p,.ch-sources-intro p{font-size:13px;line-height:1.6;color:var(--ch-muted);margin:0}
.ch-workspace .cold-field{display:block;margin:0;min-width:0}
.ch-workspace .cold-label,.ch-workspace .cold-input,.ch-workspace .cold-offset{display:block;flex:none;width:100%;max-width:100%;padding:0;margin:0;text-align:left}
.ch-workspace .cold-label{font-size:13px;font-weight:550;line-height:1.45;color:#60748c;margin-bottom:9px}
.ch-workspace .cold-label label{margin:0;font-style:normal}.ch-workspace .cold-label em{font-style:normal}
.ch-workspace .form-control{width:100%;min-width:0;max-width:100%;height:43px;border:1px solid #d5dfeb;border-radius:7px;background:#fff;color:#364d65;font-size:14px;padding:10px 12px;box-shadow:none;line-height:1.5}
.ch-workspace .form-control:focus{border-color:#94b5d6;box-shadow:0 0 0 3px #5488ba14;outline:none}
.ch-workspace .form-control.is-invalid{border-color:#c98686}
.ch-workspace select.form-control{padding-right:28px}
.ch-workspace input[type=checkbox]{width:19px;height:19px;accent-color:#527da4;vertical-align:middle;margin:5px 0;cursor:pointer}
.ch-workspace .btn,.ch-button{border-radius:7px;font-size:13px;font-weight:550;padding:9px 15px;min-height:39px;line-height:1.4;box-shadow:none!important}
.ch-workspace .btn-outline-success{color:#507960;border-color:#c5d7cc;background:#fff}
.ch-workspace .btn-outline-success:hover:not(:disabled){background:#f1f7f3;color:#3e6550;border-color:#a5c2b0}
.ch-workspace .btn-outline-danger{color:#a16b6b;border-color:#e5d5d5;background:#fff}
.ch-workspace .btn-outline-danger:hover:not(:disabled){background:#fbf4f4;color:#995858}
.ch-workspace button:focus-visible,.ch-workspace a:focus-visible,.ch-workspace summary:focus-visible{outline:3px solid #a9c4df;outline-offset:3px}
.ch-workspace button:disabled{opacity:.5;cursor:default}
.ch-workspace .text-danger,.ch-error{color:#af6060!important;font-size:13px}
.ch-sources-card{padding:25px}.ch-sources-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.ch-count{white-space:nowrap;font-size:12px;color:var(--ch-muted);background:#f5f8fb;border:1px solid #e6edf4;padding:5px 10px;border-radius:20px}
.ch-hint{font-size:12px;color:#7e8fa3;margin:10px 0 22px;line-height:1.6}
.ch-workspace .ch-source-row{border:1px solid #e3eaf2;border-radius:9px;padding:17px 19px;margin-bottom:14px;background:#fdfefe}
.ch-workspace .ch-source-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#4f647e;font-weight:600}
.ch-source-heading .grip-icon{order:-1;color:#99a8b7;cursor:grab;padding:3px;min-width:18px;touch-action:none}
.ch-source-state{margin-left:auto;font-size:11px;font-weight:400;color:#8a99a9}
.ch-source-state.is-unsaved{color:#a17e40}
.ch-workspace .ch-source-row .input-group{display:block;width:100%;margin:0}
.ch-workspace textarea.ch-source-url{display:block;height:auto;min-height:70px;max-height:260px;resize:vertical;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;border-radius:7px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.65;background:#fff}
.ch-workspace .source-comment-summary{display:flex;align-items:flex-start;gap:14px;padding:0;margin:12px 0 0;min-width:0}
.ch-workspace .source-comment-text{font-size:13px;line-height:1.6;overflow-wrap:anywhere;min-width:0;color:#75889d;flex:1}
.ch-workspace .source-comment-action{border:0;background:none;padding:0;color:#6685a5;font-size:12px;white-space:nowrap;line-height:1.6;min-height:24px}
.ch-workspace .source-comment-editor{margin:12px 0 0}.ch-workspace .source-comment-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.ch-workspace .source-comment-label{font-size:12px;margin:0;color:#74859a}
.ch-workspace textarea.source-comment-input{height:auto;min-height:46px;resize:vertical;font-size:14px;line-height:1.6}
.ch-workspace .ch-source-actions.input-group-append{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:13px 0 0}
.ch-workspace .ch-source-actions .btn{border-radius:7px!important;margin:0}
.ch-workspace .ch-source-actions .btn-outline-danger{order:-1;border-color:transparent;color:#9b7777;background:transparent}
.ch-workspace .ch-add-source{margin-top:3px;color:var(--ch-blue);border-color:#d2dfed}
.ch-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}
.ch-settings-grid,.ch-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ch-settings-grid .ch-card,.ch-bottom-grid .ch-card{margin:0}
.ch-field-stack{display:grid;gap:20px}
.ch-advanced{margin:20px 0 0;padding:0}.ch-advanced summary{cursor:pointer;padding:20px 25px;font-size:14px;font-weight:600;color:#5b718b;list-style-position:inside}
.ch-advanced summary small{font-size:12px;font-weight:400;color:#8b98a8;margin-left:12px}
.ch-advanced[open] summary{border-bottom:1px solid #edf1f6}.ch-advanced .ch-field-grid{padding:25px}
.ch-settings{scroll-margin-top:100px}.ch-form-error:empty{display:none}
.ch-settings-save{margin:18px 0 28px;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--ch-border)}
.ch-save-hint{font-size:12px;color:var(--ch-muted);max-width:460px;line-height:1.6}
.ch-settings-actions{display:flex;gap:12px;flex-shrink:0;align-items:center}
.ch-workspace .ch-primary{background:#4e779d!important;color:#fff!important;border:1px solid #4e779d!important}
.ch-workspace .ch-primary:hover:not(:disabled){background:#41698e!important}
.ch-workspace .ch-delete-channel{color:#a48686;background:none!important;border-color:transparent!important;font-size:12px}
.ch-icon-form>.cold-field{margin-bottom:16px}.ch-icon-form input[type=file]{width:100%;font-size:13px;color:#73859b;white-space:normal}
.ch-icon-form input[type=file]::file-selector-button{border:1px solid #d6e1ec;border-radius:6px;background:#f6f9fc;padding:8px 10px;color:#5b728d;margin-right:12px;cursor:pointer}
.ch-workspace .channel-icon-container img{max-width:160px;max-height:72px;object-fit:contain}
.ch-sync-form>.cold-field{margin-bottom:18px}.ch-sync-form .cold-input{font-size:13px;overflow-wrap:anywhere}.ch-sync-form em{font-style:normal}
@media(min-width:1500px){.ch-workspace{padding:16px 26px 50px}.ch-card{padding:28px}.ch-source-row{padding:19px 22px!important}}
@media(max-width:900px){.ch-workspace{padding:10px 0 30px}.ch-settings-save{align-items:flex-start;flex-direction:column}.ch-settings-actions{align-self:flex-end}.ch-advanced summary small{display:block;margin:6px 0 0 18px}}
@media(max-width:620px){.ch-page-header{gap:12px;margin-bottom:20px}.ch-page-header h1{font-size:24px}.ch-page-label{display:none}.ch-back{margin-bottom:16px}.ch-section-nav{gap:20px;overflow:auto;white-space:nowrap}.ch-section-nav a{font-size:13px}.ch-card,.ch-sources-card{padding:18px 15px;border-radius:10px}.ch-field-grid,.ch-settings-grid,.ch-bottom-grid{grid-template-columns:minmax(0,1fr);gap:20px}.ch-sources-intro{gap:12px}.ch-count{font-size:11px;padding:4px 7px}.ch-workspace .ch-source-row{padding:14px 12px;margin-bottom:12px}.ch-workspace .form-control{font-size:16px}.ch-workspace textarea.ch-source-url{font-size:13px;min-height:92px}.ch-workspace .btn{min-height:42px}.ch-workspace .source-comment-action{min-height:32px}.ch-source-state{font-size:10px}.ch-advanced{padding:0}.ch-advanced summary{padding:18px 15px}.ch-advanced .ch-field-grid{padding:18px 15px}.ch-settings-actions{width:100%;justify-content:space-between;gap:5px}.ch-workspace .ch-primary{padding:11px 13px}.ch-save-hint{font-size:12px}.ch-workspace .source-comment-summary{gap:8px}.ch-workspace h2{font-size:17px}.ch-workspace .source-comment-input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.ch-workspace *{scroll-behavior:auto!important;transition:none!important}}

/* Lazy-loaded legacy input-group styles must not shrink the multiline URL to 1%. */
.ch-workspace .ch-source-row .input-group textarea.ch-source-url{width:100%!important;max-width:100%;flex:0 0 100%;margin:0}
