.nav-section {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 0.5rem 0.75rem 0.15rem;
    font-weight: 700;
}
.nav-section-sub {
    font-size: 0.62rem;
    color: #6b7280;
    padding: 0 0.75rem 0.35rem;
    line-height: 1.35;
}
.sidebar .nav-section {
    color: #9ca3af;
}
.sidebar .nav-section-sub {
    color: #6b7280;
}
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.pipeline-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.pipeline-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.pipeline-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.pipeline-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.pipeline-code {
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.pipeline-tagline {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
    margin-bottom: 8px;
}
.pipeline-metric {
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

/* Auth0 gate — hide PHI/platform UI until approved sign-in */
body.platform-auth-pending .main-content-wrapper > :not(#platform-auth-gate) {
    display: none !important;
}
body.platform-auth-pending #summit-pipeline-nav,
body.platform-auth-pending .sidebar-scroll,
body.platform-auth-pending .sidebar .nav-section,
body.platform-auth-pending .sidebar nav:not(.sidebar-auth-nav) {
    opacity: 0.35;
    pointer-events: none;
}
body.platform-auth-ready #summit-pipeline-nav,
body.platform-auth-ready .sidebar-scroll,
body.platform-auth-ready .sidebar .nav-section,
body.platform-auth-ready .sidebar nav {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
}
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.sidebar-auth-panel {
    flex-shrink: 0;
    margin-bottom: 16px;
    padding: 14px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}
.sidebar-auth-panel .sidebar-auth-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 8px;
}

.sidebar-auth-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background: #374151;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.sidebar-auth-btn:hover { background: #4b5563; }
.sidebar-auth-btn.primary { background: #4f46e5; border-color: #4338ca; }
.sidebar-auth-btn.primary:hover { background: #4338ca; }

#platform-auth-gate {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(249, 250, 251, 0.96);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
body.platform-auth-pending .main-content-wrapper { position: relative; }
body.platform-auth-pending #platform-auth-gate { display: flex; }
body.platform-auth-ready #platform-auth-gate { display: none; }
.auth-gate-card {
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Fixed auth bar for pages without a sidebar */
#summit-platform-auth-bar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    max-width: 280px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
#summit-platform-auth-bar .sidebar-auth-label { margin-bottom: 6px; }
.summit-auth-bar-user {
    font-size: 12px;
    color: #d1d5db;
    margin: 0 0 10px;
    line-height: 1.4;
    word-break: break-all;
}
.summit-auth-bar-user strong { color: #fff; }
.summit-auth-bar-actions .sidebar-auth-btn { margin-top: 6px; }
#summit-platform-auth-status {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    max-width: 300px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.summit-auth-widget-error {
    font-size: 11px;
    color: #fca5a5;
    margin: 0 0 8px;
    line-height: 1.4;
}
body.platform-auth-pending .sidebar-auth-panel,
body.platform-auth-pending #summit-platform-auth-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
}
