:root {
    --crm-border: #dde3ea;
    --crm-soft: #f6f8fb;
    --crm-text: #172033;
}

body {
    background: var(--crm-soft);
    color: var(--crm-text);
}

.app-container {
    max-width: 1180px;
    padding: 24px 16px;
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 120px);
    place-items: center;
}

.auth-panel,
.section-panel,
.metric-box {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 8px;
}

.auth-panel {
    width: min(100%, 420px);
    padding: 28px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.metric-box {
    min-height: 110px;
    padding: 18px;
}

.metric-box strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 14px;
}

.metric-label {
    color: #65748b;
    font-size: .9rem;
}

.section-panel {
    padding: 20px;
}

.table th {
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-group-sm .btn {
    white-space: nowrap;
}

.setup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--crm-border);
}

.setup-row:last-child {
    border-bottom: 0;
}

.command-box {
    background: #111827;
    border-radius: 8px;
    color: #f8fafc;
    overflow-x: auto;
    padding: 16px;
}

@media (max-width: 576px) {
    .auth-panel,
    .section-panel {
        padding: 18px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
