:root {
    --ink: #10131a;
    --panel: #171b24;
    --muted: #697386;
    --line: #dfe4ea;
    --track-red: #c81e2b;
    --steel: #f5f7fa;
}

body.portal-body {
    background: var(--steel);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.portal-sidebar {
    width: 270px;
    background: #11151d;
    color: #fff;
    padding: 24px 18px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
}

.brand-lockup {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-bottom: 28px;
}

.brand-lockup small {
    display: block;
    color: #a9b2c3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--track-red);
    border: 2px solid #fff;
    font-weight: 800;
}

.portal-sidebar .nav-link {
    color: #dce3ef;
    border-radius: 6px;
    padding: 11px 12px;
}

.portal-sidebar .nav-link:hover {
    background: #202634;
    color: #fff;
}

.portal-main {
    flex: 1;
    margin-left: 270px;
    min-width: 0;
}

.portal-main-public {
    margin-left: 0;
}

.portal-topbar {
    min-height: 82px;
    background: linear-gradient(90deg, #11151d 0%, #1e2532 70%, #c81e2b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
}

.portal-content {
    padding: 28px;
}

.metric-card,
.portal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(16, 19, 26, .06);
}

.metric-card {
    padding: 20px;
    border-top: 4px solid var(--track-red);
}

.metric-card span {
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.portal-card {
    padding: 22px;
}

.hero-band {
    min-height: calc(100vh - 82px);
    background:
        linear-gradient(90deg, rgba(13, 16, 23, .92), rgba(13, 16, 23, .56)),
        url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80") center/cover;
    color: #fff;
    display: grid;
    align-items: center;
    padding: 48px 28px;
}

.progress-track {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.stage-pill {
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    font-size: .82rem;
}

.stage-pill.complete {
    background: #11151d;
    color: #fff;
    border-color: #11151d;
}

.stage-pill.current {
    border-color: var(--track-red);
    box-shadow: inset 0 0 0 2px var(--track-red);
}

.table thead th {
    color: #4b5565;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.portal-toast {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 1080;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .portal-sidebar {
        position: static;
        width: 100%;
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-content {
        padding: 18px;
    }

    .progress-track {
        grid-template-columns: repeat(2, 1fr);
    }
}
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
}

.page-subtitle {
    margin-top: 8px;
    color: #6b7280;
    font-size: 15px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    background: #fff;
    border-radius: 6px;
    border-top: 4px solid #c8102e;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 24px 22px;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

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

.card-header h2 {
    font-size: 22px;
    margin: 0;
    color: #111827;
}

.card-header p {
    margin: 6px 0 0;
    color: #6b7280;
}

.btn {
    display: inline-block;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    text-align: left;
    font-size: 12px;
    color: #374151;
    letter-spacing: .08em;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.portal-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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