/* Channels: a status strip, then one section per channel with cards for each connected account. */
.channels-workspace .ch-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 22px; }
.channels-workspace .ch-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; background: #fff; border: 1px solid #e3e8e3; border-radius: 12px; padding: 11px 13px; cursor: pointer; font: inherit; color: inherit; }
.channels-workspace .ch-tile:hover { border-color: #b9cdbf; background: #fbfdfb; }
.channels-workspace .ch-tile strong { font-size: 13px; }
.channels-workspace .ch-tile small { grid-column: 2; color: #66736b; font-size: 12px; }
.channels-workspace .ch-dot { width: 9px; height: 9px; border-radius: 50%; background: #b7bfba; }
.channels-workspace .ch-dot.ok { background: #1f8a5b; }
.channels-workspace .ch-dot.wait { background: #d69a1e; }
.channels-workspace .ch-dot.bad { background: #c4473c; }
.channels-workspace .ch-dot.na { background: #d7dbd8; }
.channels-workspace .ch-section { margin: 0 0 26px; }
.channels-workspace .ch-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 0 0 12px; }
.channels-workspace .ch-section-head h2 { margin: 0 0 4px; font-size: 17px; }
.channels-workspace .ch-section-head p { margin: 0; color: #66736b; font-size: 13px; line-height: 1.5; max-width: 680px; }
.channels-workspace .ch-section-head .btn { flex: none; }
.channels-workspace .ch-soon { opacity: .85; }
.channels-workspace .ch-account { background: #fff; border: 1px solid #e3e8e3; border-radius: 14px; padding: 16px; margin: 0 0 10px; display: grid; gap: 12px; }
.channels-workspace .ch-account-top { display: flex; gap: 12px; align-items: center; }
.channels-workspace .ch-avatar { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #1d5a40; background: #e5f2ea; }
.channels-workspace .ch-avatar .icon { width: 19px; height: 19px; }
.channels-workspace .ch-avatar.messenger { background: #e6efff; color: #1d4fb8; }
.channels-workspace .ch-avatar.instagram { background: #fbe8f1; color: #a3255f; }
.channels-workspace .ch-avatar.whatsapp { background: #e2f6e9; color: #12763f; }
.channels-workspace .ch-avatar.sms { background: #f1ecfa; color: #59408c; }
.channels-workspace .ch-avatar.allegro { background: #fff0e3; color: #b4501a; }
.channels-workspace .ch-hint { font-size: 12px; color: #5d6b64; line-height: 1.55; margin: 6px 0 0; }
.channels-workspace .ch-meta-line { font-size: 12px; color: #5d6b64; margin: 8px 0 0; }
.channels-workspace .ch-steps { margin: 10px 0 6px; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.channels-workspace .ch-code { font: 700 26px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; margin: 8px 0 4px; padding: 10px 14px; border-radius: 10px; background: #f5f8f6; border: 1px dashed #bcd3c5; display: inline-block; width: fit-content; justify-self: start; align-self: flex-start; }
[data-theme="dark"] .channels-workspace .ch-avatar.allegro { background: #3a2a1d; color: #f2b58a; }
[data-theme="dark"] .channels-workspace .ch-hint, [data-theme="dark"] .channels-workspace .ch-meta-line { color: #a9aec0; }
[data-theme="dark"] .channels-workspace .ch-code { background: #1f2230; border-color: #3a3e4d; color: #eef0f7; }
.channels-workspace .ch-account-name { min-width: 0; flex: 1; display: grid; gap: 2px; }
.channels-workspace .ch-account-name strong { font-size: 14px; overflow-wrap: anywhere; }
.channels-workspace .ch-account-name small { color: #66736b; font-size: 12px; }
.channels-workspace .ch-pill { flex: none; font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: #eef1ef; color: #4e5a53; }
.channels-workspace .ch-pill.ok { background: #e1f3e8; color: #17603f; }
.channels-workspace .ch-pill.wait { background: #fff1d6; color: #7a5108; }
.channels-workspace .ch-pill.bad { background: #fde7e4; color: #9b2c22; }
.channels-workspace .ch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.channels-workspace .ch-chips span { font-size: 12px; color: #4e5a53; background: #f3f6f3; border-radius: 7px; padding: 4px 8px; }
.channels-workspace .ch-error, .channels-workspace .ch-warning { margin: 0; font-size: 13px; border-radius: 9px; padding: 9px 11px; }
.channels-workspace .ch-error { background: #fde7e4; color: #8a271e; }
.channels-workspace .ch-warning { background: #fff4dc; color: #6f4b08; border: 1px solid #f0dca7; margin: 0 0 10px; }
.channels-workspace .ch-diagnostic { margin: 0; font-size: 13px; background: #eef6f1; color: #24533c; border-radius: 9px; padding: 9px 11px; }
.channels-workspace .ch-note { margin: 0; font-size: 12px; color: #66736b; line-height: 1.5; }
.channels-workspace .ch-empty { margin: 0; padding: 22px; border: 1px dashed #d3ddd5; border-radius: 12px; color: #66736b; background: #fbfcfb; font-size: 13px; text-align: center; }
.channels-workspace .ch-forward { display: grid; gap: 8px; background: #f7faf7; border: 1px solid #e3ebe4; border-radius: 10px; padding: 12px; }
.channels-workspace .ch-forward p { margin: 0; font-size: 13px; }
.channels-workspace .ch-copy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.channels-workspace .ch-copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid #dfe7e1; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.channels-workspace .ch-dns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.channels-workspace .ch-dns li { display: grid; gap: 4px; border-radius: 9px; padding: 9px 11px; background: #f3f6f3; font-size: 12px; }
.channels-workspace .ch-dns li.bad { background: #fff4dc; }
.channels-workspace .ch-dns code { overflow-wrap: anywhere; }
.channels-workspace .ch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.channels-workspace .ch-actions .btn { min-height: 34px; font-size: 13px; padding: 7px 12px; }
.channels-workspace .ch-connect-panel { background: #fff; border: 1px solid #cfe0d4; border-radius: 14px; padding: 16px; margin: 0 0 12px; box-shadow: 0 4px 16px #103e310d; }
.channels-workspace .ch-connect-panel h3 { margin: 0 0 12px; font-size: 15px; }
.channels-workspace .ch-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0 0 14px; }
.channels-workspace .ch-method { display: grid; gap: 4px; text-align: left; border: 1px solid #dfe7e1; border-radius: 11px; background: #fbfcfb; padding: 12px; cursor: pointer; font: inherit; color: inherit; }
.channels-workspace .ch-method:hover { border-color: #b9cdbf; }
.channels-workspace .ch-method.on { border-color: var(--accent, #157a52); background: #eef7f1; box-shadow: 0 0 0 1px var(--accent, #157a52) inset; }
.channels-workspace .ch-method strong { font-size: 13px; }
.channels-workspace .ch-method small { color: #66736b; font-size: 12px; line-height: 1.4; }
.channels-workspace .ch-form { display: grid; gap: 12px; border-top: 1px solid #edf1ed; padding-top: 12px; }
.channels-workspace .ch-connect { border-top: 0; padding-top: 0; }
.channels-workspace .ch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channels-workspace .ch-row3 { grid-template-columns: minmax(0, 2fr) minmax(70px, .6fr) minmax(110px, .9fr); }
.channels-workspace .ch-field { display: grid; gap: 5px; font-size: 12px; font-weight: 650; color: #3f4b44; min-width: 0; align-content: start; }
.channels-workspace .ch-field small { font-weight: 400; color: #6d7770; line-height: 1.4; }
.channels-workspace .ch-field input, .channels-workspace .ch-field select, .channels-workspace .ch-field textarea { width: 100%; border: 1px solid #d5dfd8; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 400; background: #fff; color: inherit; }
.channels-workspace .ch-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.channels-workspace .ch-more summary { cursor: pointer; font-size: 13px; color: #355f49; font-weight: 600; }
.channels-workspace .ch-more[open] { display: grid; gap: 8px; }
.channels-workspace .ch-more[open] .btn { justify-self: start; }
.channels-workspace .ch-problems { background: #fff3d9; color: #75510c; border: 1px solid #efdca8; border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.channels-workspace .ch-problems p { margin: 2px 0; }
@media (max-width: 720px) {
  .channels-workspace .ch-section-head { flex-direction: column; }
  .channels-workspace .ch-row, .channels-workspace .ch-row3 { grid-template-columns: 1fr; }
  .channels-workspace .ch-account-top { flex-wrap: wrap; }
  .channels-workspace .ch-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[data-theme="dark"] .channels-workspace .ch-tile, [data-theme="dark"] .channels-workspace .ch-account, [data-theme="dark"] .channels-workspace .ch-connect-panel,
[data-theme="dark"] .channels-workspace .ch-field input, [data-theme="dark"] .channels-workspace .ch-field select, [data-theme="dark"] .channels-workspace .ch-field textarea,
[data-theme="dark"] .channels-workspace .ch-copy code { background: #272a37; color: #eef0f7; border-color: var(--line); }
[data-theme="dark"] .channels-workspace .ch-method, [data-theme="dark"] .channels-workspace .ch-forward, [data-theme="dark"] .channels-workspace .ch-empty,
[data-theme="dark"] .channels-workspace .ch-chips span, [data-theme="dark"] .channels-workspace .ch-dns li { background: #20232e; color: #d8dbe6; border-color: var(--line); }
[data-theme="dark"] .channels-workspace .ch-method.on { background: #1f3a2f; }
[data-theme="dark"] .channels-workspace .ch-section-head p, [data-theme="dark"] .channels-workspace .ch-account-name small, [data-theme="dark"] .channels-workspace .ch-tile small,
[data-theme="dark"] .channels-workspace .ch-note, [data-theme="dark"] .channels-workspace .ch-method small, [data-theme="dark"] .channels-workspace .ch-field small { color: #a9aec0; }
[data-theme="dark"] .channels-workspace .ch-field { color: #d8dbe6; }
[data-theme="dark"] .channels-workspace .ch-form { border-color: var(--line); }
[data-theme="dark"] .channels-workspace .ch-avatar { background: #1d3b2e; color: #8fe0b5; }
[data-theme="dark"] .channels-workspace .ch-avatar.messenger { background: #1c2a45; color: #9dbcf5; }
[data-theme="dark"] .channels-workspace .ch-avatar.instagram { background: #3d1d2c; color: #f19bc3; }
[data-theme="dark"] .channels-workspace .ch-avatar.whatsapp { background: #193826; color: #84deaa; }
[data-theme="dark"] .channels-workspace .ch-avatar.sms { background: #2c2440; color: #c3b0ef; }
[data-theme="dark"] .channels-workspace .ch-more summary { color: #8fdcb5; }
[data-theme="dark"] .channels-workspace .ch-pill { background: #2d3140; color: #c9cddb; }
[data-theme="dark"] .channels-workspace .ch-pill.ok { background: #1d3b2e; color: #8fe0b5; }
[data-theme="dark"] .channels-workspace .ch-pill.wait { background: #3d3118; color: #f0c56b; }
[data-theme="dark"] .channels-workspace .ch-pill.bad, [data-theme="dark"] .channels-workspace .ch-error { background: #43201d; color: #f4a097; }
[data-theme="dark"] .channels-workspace .ch-warning, [data-theme="dark"] .channels-workspace .ch-problems { background: #3a3018; color: #f0d08a; border-color: #5c4a1e; }
[data-theme="dark"] .channels-workspace .ch-diagnostic { background: #1d3b2e; color: #b6ecd0; }
[data-theme="dark"] .channels-workspace .ch-dns li.bad { background: #3a3018; }
