.th-connectivity-dialog {
    width: min(640px, 100vw);
    margin: auto auto 0;
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius-panel) var(--th-radius-panel) 0 0;
    background: var(--th-card);
    color: var(--th-foreground);
    box-shadow: 0 20px 60px color-mix(in oklab, var(--th-foreground) 18%, transparent);
}

.th-connectivity-dialog::backdrop {
    background: color-mix(in oklab, var(--th-foreground) 42%, transparent);
    backdrop-filter: blur(2px);
}

.th-connectivity-dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px max(24px, env(safe-area-inset-bottom));
    text-align: center;
}

.th-connectivity-icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 50%;
    background: var(--th-secondary);
    color: var(--th-destructive);
}

.th-connectivity-icon .bemusic-icon {
    width: 52px;
    height: 52px;
}

.th-connectivity-dialog h2 {
    margin: 16px 0 0;
    color: var(--th-foreground);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.th-connectivity-dialog p {
    max-width: 34ch;
    margin: 8px 0 0;
    color: var(--th-muted-foreground);
    font-size: 15px;
    line-height: 1.5;
}

.th-connectivity-dialog .th-connectivity-status:empty {
    display: none;
}

.th-connectivity-dialog .th-connectivity-status:not(:empty) {
    margin-top: 12px;
    font-size: 13px;
}

.th-connectivity-retry {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
}

.th-connectivity-retry:disabled {
    cursor: wait;
    opacity: .7;
}

@media (max-width: 480px) {
    .th-connectivity-dialog-content {
        padding: 12px 20px max(24px, env(safe-area-inset-bottom));
    }
}

.th-connectivity-dialog-content::before {
    content: "";
    width: 40px;
    height: 4px;
    margin-bottom: 32px;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--th-muted-foreground);
}
