:root {
    --bg: #0f1117;
    --bg-raised: #161922;
    --ink: #e4e6ed;
    --ink-secondary: #9ca0ae;
    --muted: #6b7080;
    --panel: #1a1d28;
    --panel-hover: #1f2330;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.15);
    --accent-hover: #818cf8;
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.15);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.12);
    --red: #ef4444;
    --sidebar-bg: #12141e;
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Login screen ---------- */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.login-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-brand {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.login-brand-text {
    flex: 1;
}

.login-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

.login-brand h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
}

.login-brand p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-secondary);
    line-height: 1.5;
}

.login-status {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    text-align: center;
    min-height: 1.4em;
}

.login-status.error {
    color: var(--red);
}

.login-google-container {
    display: flex;
    justify-content: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-dev-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-dev-panel label {
    font-size: 0.82rem;
    color: var(--ink-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.login-footer {
    margin: 0;
    text-align: center;
    font-size: 0.76rem;
    color: var(--muted);
}

.btn-sso {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-sso:hover {
    background: #252540;
    border-color: rgba(255,255,255,0.25);
}

.btn-sso svg {
    flex-shrink: 0;
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 24px 20px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    width: 120px;
    height: auto;
    margin-bottom: 8px;
}

.sidebar-brand h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.controls,
.nav-panel {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--sidebar-border);
}

.eyebrow,
.panel-title {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.sidebar .eyebrow,
.sidebar .panel-title {
    color: var(--ink-secondary);
}

.lede {
    margin: 0;
    line-height: 1.5;
    font-size: 0.88rem;
    color: var(--ink-secondary);
}

label,
input,
textarea,
select,
button {
    display: block;
    width: 100%;
}

label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-secondary);
}

select,
input[type="text"],
input[type="url"],
input[type="number"],
textarea {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--ink);
    transition: border-color 0.15s;
}

select:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

/* Range sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 4px 0 14px;
    border: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px var(--accent-soft);
    transition: background 0.15s;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: var(--accent-hover);
}

.slider-value {
    float: right;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    border: none;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--ink-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
}

/* Legacy button fallback for non-classed buttons */
button:not(.btn) {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.badges,
#scope-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ai-grid {
    align-items: start;
}

.card-list {
    display: grid;
    gap: 10px;
}

.compact-list .card {
    padding: 12px 14px;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: var(--bg-raised);
    transition: background 0.12s;
}

.card:hover {
    background: var(--panel-hover);
}

.card p,
.card small {
    margin: 6px 0 0;
    line-height: 1.45;
    color: var(--ink-secondary);
    font-size: 0.88rem;
}

.card a {
    color: var(--accent-hover);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.card-meta {
    font-size: 0.82rem;
}

.form-stack {
    display: grid;
    gap: 0;
}

.two-column-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

.two-column-form textarea,
.two-column-form button {
    grid-column: 1 / -1;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin-bottom: 14px;
    color: var(--ink);
}

.checkbox-row input {
    width: auto;
    margin: 0;
    accent-color: var(--accent);
}

.inline-status {
    min-height: 22px;
    margin-top: 4px;
    font-size: 0.85rem;
}

.status-info {
    color: var(--ink-secondary);
}

.status-connected {
    color: var(--green);
    font-weight: 600;
}

.status-warning {
    color: var(--amber);
    font-weight: 600;
}

.account-toolbar {
    margin-top: 8px;
}

.account-card {
    gap: 10px;
}

.account-actions,
.device-flow-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.account-actions button,
.device-flow-actions button,
.device-flow-actions a {
    width: auto;
    margin: 0;
}

.device-flow-actions a {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: 600;
}

.device-flow-panel {
    margin-top: 14px;
}

.hidden {
    display: none !important;
}

.app-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recommendation-card pre {
    margin: 12px 0 0;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.55;
    color: var(--ink);
}

/* ---------- Strategy Lab Tabs ---------- */
.lab-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.lab-tab {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lab-tab:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.lab-tab.active {
    background: var(--accent);
    color: #fff;
}

.lab-pane, .cred-pane, .partner-pane {
    animation: labFadeIn 0.2s ease;
}

.cred-tab, .partner-tab {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--ink-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.cred-tab:hover, .partner-tab:hover {
    background: var(--accent-soft);
    color: var(--ink);
}
.cred-tab.active, .partner-tab.active {
    background: var(--accent);
    color: #fff;
}

.cred-help {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--ink-secondary);
    line-height: 1.5;
}

@keyframes labFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lab-header {
    margin-bottom: 20px;
}

.lab-header h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.lab-desc {
    margin: 0;
    color: var(--ink-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.lab-results-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- Scenario Cards ---------- */
.scenario-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scenario-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-secondary);
}

.scenario-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-channel {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.badge-goal {
    background: var(--green-soft);
    color: var(--green);
}

.scenario-checklist {
    margin: 0;
    padding-left: 18px;
    font-size: 0.82rem;
    color: var(--ink-secondary);
    line-height: 1.7;
}

.scenario-checklist li::marker {
    color: var(--accent);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    width: auto;
    align-self: flex-start;
}

/* ---------- Optimizer Tabs & Panes ---------- */

.opt-tab {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--ink-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.opt-tab:hover {
    background: var(--accent-soft);
    color: var(--ink);
}
.opt-tab.active {
    background: var(--accent);
    color: #fff;
}
.opt-pane {
    animation: labFadeIn 0.2s ease;
}

/* ---------- Range Rows / Toggle Rows ---------- */

.range-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.range-row label {
    min-width: 110px;
    font-size: 0.85rem;
    color: var(--ink-secondary);
    font-weight: 600;
}
.range-row input {
    width: 90px;
}
.range-row span {
    color: var(--ink-secondary);
    font-size: 0.85rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.toggle-row label {
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Results Table ---------- */

.results-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.results-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    color: var(--ink-secondary);
    font-weight: 700;
    white-space: nowrap;
}
.results-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.results-table tbody tr:hover {
    background: var(--bg-raised);
}

.placeholder-text {
    color: var(--ink-secondary);
    font-size: 0.9rem;
    padding: 20px 0;
    text-align: center;
}

/* ---------- Optimizer Explainer Card ---------- */

.opt-how-it-works {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--ink-secondary);
    line-height: 1.6;
}
.opt-how-it-works strong {
    color: var(--ink);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.metric {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.metric span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.metric strong {
    font-size: 0.95rem;
}

.status-live,
.status-connected,
.status-enabled,
.status-managed {
    color: var(--green);
    font-weight: 600;
}

.status-pending,
.status-review {
    color: var(--amber);
}

#nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

#nav-items li {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    font-size: 0.88rem;
    color: var(--ink-secondary);
}

#nav-items li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
}

#nav-items li.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 600;
}

.auth-status {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.auth-status-connected {
    color: var(--green);
}

.auth-status-warning {
    color: var(--amber);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.stat-card-sm {
    padding: 8px 6px;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.stat-card-sm .stat-value {
    font-size: 1.15rem;
}
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 4px;
}
.stat-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Pipeline Board ---------- */
.pipeline-board {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.pipeline-col {
    flex: 1 0 160px;
    min-width: 160px;
    max-width: 240px;
    background: var(--panel);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.pipeline-col-header {
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pipeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.pipeline-count {
    margin-left: auto;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.pipeline-cards {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 420px;
    overflow-y: auto;
}
.pipeline-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.pipeline-card:hover {
    border-color: var(--accent);
}
.pipeline-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.pipeline-card-meta {
    font-size: 0.72rem;
    color: var(--muted);
}
.pipeline-card-crm {
    font-size: 0.68rem;
    color: var(--green);
    margin-top: 3px;
}
.pipeline-empty {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    padding: 16px 4px;
}

/* ---------- Activity Feed ---------- */
.activity-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.activity-body {
    flex: 1;
    min-width: 0;
}
.activity-body strong {
    color: var(--ink);
    font-size: 0.85rem;
}
.activity-date {
    font-size: 0.72rem;
    color: var(--muted);
}

/* ---------- Responsive: pipeline + stat-grid ---------- */
@media (max-width: 900px) {
    .stat-grid-3, .stat-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pipeline-board {
        flex-wrap: nowrap;
    }
    .pipeline-col {
        flex: 0 0 150px;
    }
}

.auth-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.4;
}

.google-login-container {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .grid,
    .hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .two-column-form {
        grid-template-columns: 1fr;
    }
}

/* ---------- Admin: Modals & Toolbar ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.hidden { display: none; }

.modal-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 380px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.modal-card h3 { margin: 0 0 20px; color: var(--text); }
.modal-card label { display: block; margin-bottom: 4px; font-size: 0.85rem; color: var(--muted); }
.modal-card input,
.modal-card select {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.admin-toolbar .admin-user-count {
    font-size: 0.85rem;
    color: var(--muted);
}

.section-header {
    margin-bottom: 20px;
}
.section-header h2 { margin: 0 0 4px; }
.section-header p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.admin-roles-cell .badge { margin: 2px 4px 2px 0; }
.admin-actions-cell { white-space: nowrap; }
.admin-actions-cell .btn { margin-right: 4px; }
.admin-muted { color: var(--muted); font-size: 0.85rem; }
.admin-scope-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.admin-scope-list .badge { font-size: 0.75rem; }

.btn-sm {
    font-size: 0.78rem;
    padding: 4px 10px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.inline-status { display: inline-block; margin-top: 8px; font-size: 0.85rem; }

.scope-detail-row td {
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.06);
    border-top: none;
}
.scope-detail-row.hidden { display: none; }

.customer-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}
.customer-detail-grid strong {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.customer-card .panel-title { font-size: 1.1rem; }
