.settings-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.settings-card {
    grid-column: span 6;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.settings-card.full-width {
    grid-column: 1 / -1;
}

.connection-code-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0.75rem 0;
}

.connection-code-box {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.connection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.connection-row:last-child {
    border-bottom: none;
}

.connection-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.connection-title {
    font-weight: 600;
    color: #111827;
}

.connection-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.status-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.active {
    background: #dcfce7;
    color: #166534;
}

.status-pill.pending {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 900px) {
    .settings-card {
        grid-column: 1 / -1;
    }
}