/* Conference audio setup wizard (same as /ui chat) — used on dashboard */
.ai-topic-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ai-topic-modal.open {
    display: flex;
}
.ai-topic-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.ai-topic-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 500px);
    max-height: 88vh;
    overflow: auto;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ai-topic-modal-dialog h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #e2e8f0;
}
.ai-topic-modal-dialog .ai-topic-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}
.conf-setup-modal-dialog {
    width: min(94vw, 720px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.conf-setup-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem 0.65rem;
    border-bottom: 1px solid #1e293b;
}
.conf-setup-modal-head-text h2 {
    margin: 0 0 0.35rem;
}
.conf-setup-modal-head-text .ai-topic-hint {
    margin: 0;
}
.conf-setup-modal-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: #1e293b;
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.conf-setup-modal-close:hover {
    background: #334155;
    color: #f8fafc;
}
.conf-setup-modal-body {
    padding: 1rem 1.35rem 1.25rem;
    overflow-y: auto;
    max-height: min(70vh, 520px);
}
.conf-setup-apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 560px) {
    .conf-setup-apps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.conf-setup-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.5rem;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 12px;
    cursor: pointer;
    color: #e2e8f0;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.conf-setup-app-card:hover {
    border-color: #3b82f6;
    background: #0f172a;
    transform: translateY(-1px);
}
.conf-setup-app-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conf-setup-app-logo svg {
    width: 44px;
    height: 44px;
}
.conf-setup-app-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.conf-setup-app-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}
.conf-setup-panel[hidden] {
    display: none !important;
}
.conf-setup-cable-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.conf-setup-cable-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #e2e8f0;
}
.conf-setup-cable-os {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}
.conf-setup-cable-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.conf-setup-cable-list li {
    font-size: 0.84rem;
    color: #94a3b8;
    padding-left: 1rem;
    position: relative;
}
.conf-setup-cable-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
}
.conf-setup-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.conf-setup-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #3b82f6;
    color: #93c5fd;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.conf-setup-download-link:hover {
    background: #1d4ed8;
    color: #fff;
}
.conf-setup-download-link.is-recommended {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.conf-setup-cable-note {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}
.conf-setup-cable-status {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
}
.conf-setup-cable-status.is-ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.conf-setup-cable-status.is-warn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}
.conf-setup-apps-lead {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
}
.conf-setup-carousel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.conf-setup-step-visual {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    background: #020617;
    aspect-ratio: 16 / 9;
}
.conf-setup-step-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conf-setup-step-copy h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: #f1f5f9;
}
.conf-setup-step-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #94a3b8;
}
.conf-setup-dots-wrap {
    display: flex;
    justify-content: center;
    padding-top: 0.15rem;
}
.conf-setup-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}
.conf-setup-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #475569;
    cursor: pointer;
}
.conf-setup-dot.active {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.conf-setup-modal-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1.35rem 1.15rem;
    border-top: 1px solid #1e293b;
    background: #0b1220;
}
.conf-setup-foot-left,
.conf-setup-foot-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.conf-setup-dont-show {
    margin: 0;
    padding: 0.35rem 0.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
}
.conf-setup-dont-show:hover {
    color: #cbd5e1;
}
.conf-setup-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    border: 1px solid transparent;
}
.conf-setup-btn--ghost {
    background: transparent;
    border-color: #475569;
    color: #cbd5e1;
}
.conf-setup-btn--ghost:hover {
    background: #1e293b;
}
.conf-setup-btn--primary {
    background: linear-gradient(135deg, #00c9ff 0%, #7b2cbf 100%);
    color: #fff;
}
.conf-setup-btn--primary:hover {
    filter: brightness(1.06);
}
.conf-setup-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
body.conf-setup-modal-open {
    overflow: hidden;
}
