/* Setup wizard: Channels screen and the redirect overlay. */
.setup-ch { width: 100%; }
.setup-ch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setup-ch-card {
    display: flex; gap: 14px; align-items: center; padding: 14px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
    transition: border-color var(--transition);
}
.setup-ch-card.is-on { border-color: var(--success); }
.setup-ch-glyph {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
    color: #fff; font-weight: 800; font-size: 14px;
}
.setup-ch-text { min-width: 0; flex: 1; }
.setup-ch-text b { font-weight: 700; font-size: 15px; }
.setup-ch-text small { display: block; font-weight: 500; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.setup-ch-pill {
    font-weight: 700; font-size: 11.5px; border-radius: 6px; padding: 3px 9px; white-space: nowrap;
    background: var(--primary-soft-2); color: var(--primary);
}
.setup-ch-pill.is-ok { background: var(--success-soft); color: var(--success); }
.setup-ch-note {
    border-radius: var(--radius-md); padding: 12px 14px; margin: 0 0 14px;
    font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--primary-soft-2);
}
.setup-ch-note.is-ok { background: var(--success-soft); }
.setup-ch-note.is-warn { background: var(--warning-soft); margin: 14px 0 0; }
.setup-ch-note.is-bad { background: var(--danger-soft); }

.setup-ch-redirect {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--overlay);
}
.setup-ch-redirect[hidden] { display: none; }
.setup-ch-redirect > div {
    background: var(--surface); border-radius: var(--radius-lg); padding: 26px 30px; text-align: center;
    display: flex; flex-direction: column; gap: 12px; align-items: center;
    font-weight: 700; font-size: 16px; max-width: min(360px, calc(100vw - 32px));
}
.setup-ch-redirect small { font-weight: 500; font-size: 13px; color: var(--text-3); }
.setup-ch-spin {
    width: 15px; height: 15px; border: 2px solid var(--border-strong); border-top-color: var(--primary);
    border-radius: 50%; animation: setupChSpin .8s linear infinite;
}
@keyframes setupChSpin { to { transform: rotate(360deg); } }

.setup-ch-glyph svg { display: block; }

@media (max-width: 900px) {
    .setup-ch-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .setup-ch-card { flex-wrap: wrap; align-items: flex-start; }
    .setup-ch-text { flex-basis: calc(100% - 54px); }
    .setup-ch-card .btn, .setup-ch-card > .setup-ch-pill { margin-left: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .setup-ch-spin { animation: none; border-top-color: var(--primary); border-right-color: var(--primary); }
    .setup-ch-card { transition: none; }
}
