﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ============================================================
   ShadowQS — Stylesheet
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f5f5;
    --fg: #172b4d;
    --card: #fff;
    --primary: #2f6bff;
    --primary-light: #e9efff;
    --muted: #717171;
    --border: #e5e7eb;
    --radius: 0.75rem;
    --risk: #c0392b;
    --attention: #e67e22;
    --healthy: #27ae60;
    --sidebar-w: 220px;
    --topbar-h: 52px;
    --font: 'DM Sans', system-ui, sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

.nav-link.disabled,
.nav-link[aria-disabled="true"] {
    color: #9aa4b2;
    background: transparent;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

    .nav-link.disabled svg,
    .nav-link[aria-disabled="true"] svg {
        opacity: 0.7;
    }

/* Prevent text overflow in cards/lists */
.card,
.summary-item,
.timeline-item,
.history-item {
    min-width: 0;
}

    /* Force wrap for long tokens */
    .summary-item,
    .meta,
    .fact-value,
    .detail-meta-grid .value,
    .timeline-meta,
    .event-sub,
    .event-title,
    .evidence-item,
    .history-item,
    .card p,
    .card div,
    .card span {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }



/* ── TOPBAR (mobile only, hidden on desktop) ── */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--fg);
    cursor: pointer;
}

.topbar-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── SIDEBAR OVERLAY (mobile) ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 149;
}

    .sidebar-overlay.visible {
        display: block;
    }


/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 150;
    transition: transform 0.25s ease;
    padding: 4px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

    .sidebar-logo img {
        display: block;
        height: 32px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }


.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.login-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

    .nav-link:hover {
        background: var(--bg);
        color: var(--fg);
    }

    .nav-link.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .nav-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.nav-badge {
    margin-left: auto;
    background: var(--attention);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.nav-alpha {
    margin-left: auto;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fg);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--muted);
}


/* ── MAIN CONTENT ── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    min-height: 100vh;
}

.page {
    display: none;
}

    .page.active {
        display: block;
    }

/* Inner content wrapper — centred within the available space */
.page-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 32px;
}


/* ── TYPOGRAPHY ── */
h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 12px;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}


/* ── CARDS ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

    .card-link:hover {
        border-color: #c0c8d8;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }


/* ── STATUS BADGES ── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-risk {
    color: var(--risk);
}

.badge-attention {
    color: var(--attention);
}

.badge-healthy {
    color: var(--healthy);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.dot-risk {
    background: var(--risk);
}

.dot-attention {
    background: var(--attention);
}

.dot-healthy {
    background: var(--healthy);
}

.dot-muted {
    background: #ccc;
}


/* ── SEARCH ── */
.search-bar {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
    font-size: 13.5px;
    font-family: var(--font);
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23717171' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

    .search-bar:focus {
        border-color: var(--primary);
    }


/* ── GROUP HEADER ── */
.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 20px 0 10px;
    cursor: pointer;
    user-select: none;
}

    .group-header .count {
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
    }

    .group-header .chevron {
        transition: transform 0.2s;
        font-size: 10px;
    }

    .group-header.collapsed .chevron {
        transform: rotate(-90deg);
    }


/* ── PROJECT CARD ── */
.project-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.project-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

.project-contractor {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12.5px;
    color: var(--muted);
}

    .project-meta strong {
        color: var(--fg);
        font-weight: 500;
    }

.project-dates {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.inferred-tag {
    font-size: 10px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}


/* ── EVENTS ── */
.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-select {
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23717171' stroke-width='2' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.15s;
}

    .filter-select:focus {
        border-color: var(--primary);
    }

.filter-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s;
}

    .filter-btn:hover {
        border-color: #c0c8d8;
    }

.events-count {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--bg);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    cursor: pointer;
}

    .event-row:last-child {
        border-bottom: none;
    }

    .event-row:hover {
        background: #fafafa;
    }

.event-main {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 2px;
}

.event-sub {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-type {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    color: var(--muted);
    padding: 1px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.event-amount {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg);
    white-space: nowrap;
}


/* ── RETENTION ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--fg);
}

.stat-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
}

.section-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    margin-top: 4px;
}

.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.ret-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ret-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-released {
    background: var(--healthy);
}

.legend-due {
    background: var(--attention);
}

.legend-held {
    background: #e5e7eb;
}

.ret-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

    .ret-row:last-child {
        border-bottom: none;
    }

.ret-name {
    min-width: 160px;
    flex: 1;
}

.ret-project {
    font-size: 13.5px;
    font-weight: 500;
}

.ret-contractor {
    font-size: 12px;
    color: var(--muted);
}

.ret-bar-wrap {
    flex: 2;
    min-width: 100px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.ret-bar-released {
    background: var(--healthy);
}

.ret-bar-due {
    background: var(--attention);
    opacity: 0.6;
}

.ret-bar-held {
    background: #d1d5db;
}

.ret-amount {
    min-width: 44px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}

.ret-rate {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.ret-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

    .ret-total-row strong {
        color: var(--fg);
        font-size: 14px;
    }

.release-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

    .release-item:last-child {
        border-bottom: none;
    }

.release-icon {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.release-main {
    flex: 1;
    min-width: 0;
}

.release-title {
    font-size: 13.5px;
    font-weight: 500;
}

.release-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.release-right {
    text-align: right;
    flex-shrink: 0;
}

.release-amount {
    font-size: 13px;
    font-weight: 600;
}

.release-date {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.coming-soon-card {
    background: linear-gradient(135deg, #f8faff, #eef3ff);
    border: 1px dashed #c5d3f0;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.coming-soon-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.coming-soon-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.coming-soon-desc {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 14px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

form:has(.btn-primary),
form:has(.btn-outline) {
    display: contents;
}

a.btn-primary,
a.btn-outline,
a.btn-sm,
a.btn-save,
a.btn-nudge,
a.btn-reconnect {
    text-decoration: none;
}

.btn-outline,
a.btn-outline,
button.btn-outline {
        padding: 7px 16px;
        border: 1px solid var(--primary);
        border-radius: 7px;
        color: var(--primary);
        background: transparent;
        font-size: 13px;
        font-family: var(--font);
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s;
    }

    .btn-outline:hover,
    a.btn-outline:hover,
    button.btn-outline:hover {
        background: var(--primary-light);
    }
    /* ── PROJECT DETAIL ── */
    .back-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--muted);
        font-size: 13px;
        margin-bottom: 16px;
        cursor: pointer;
        text-decoration: none;
        transition: color 0.15s;
    }

        .back-link:hover {
            color: var(--fg);
        }

    .detail-header {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px;
        margin-bottom: 16px;
    }

    .detail-title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 4px;
    }

    .detail-title {
        font-size: 17px;
        font-weight: 700;
    }

    .detail-type {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 14px;
    }

    .detail-meta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 20px;
        font-size: 13px;
    }

        .detail-meta-grid .label {
            color: var(--muted);
        }

        .detail-meta-grid .value {
            font-weight: 500;
        }

    .coverage-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        color: var(--muted);
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .contract-upload {
        border: 1.5px dashed var(--border);
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        color: var(--muted);
        font-size: 13px;
        margin-top: 14px;
        cursor: pointer;
        transition: border-color 0.15s;
    }

        .contract-upload:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

    .contract-upload-sub {
        font-size: 11.5px;
        color: #b0b8c8;
        margin-top: 3px;
    }

    .summary-tabs {
        display: flex;
        gap: 6px;
    }

    .summary-tab {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        border: 1px solid var(--border);
        color: var(--muted);
        background: transparent;
        font-family: var(--font);
        transition: all 0.15s;
    }

        .summary-tab.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

    .summary-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid var(--bg);
        font-size: 13px;
    }

        .summary-item:last-child {
            border-bottom: none;
        }

    .summary-date {
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
    }

    .ret-progress-wrap {
        margin: 12px 0;
    }

    .ret-progress {
        height: 8px;
        background: #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
    }

    .ret-progress-released {
        background: var(--healthy);
    }

    .ret-progress-due {
        background: var(--attention);
        opacity: 0.7;
    }

    .ret-labels {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 8px;
        font-size: 12px;
    }

    .ret-label {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .team-row {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
    }

    .nudge-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        background: #fffbf5;
        border: 1px solid #fde8c8;
        border-radius: 8px;
        padding: 10px 14px;
        margin-top: 10px;
        font-size: 13px;
    }

    .btn-nudge {
        padding: 6px 14px;
        background: var(--attention);
        color: #fff;
        border: none;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font);
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .risk-bar {
        background: #fff5f5;
        border: 1px solid #f5c6c1;
        border-radius: var(--radius);
        padding: 14px 18px;
        margin-bottom: 16px;
    }

    .risk-bar-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--risk);
    }

    .risk-bar-sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: 2px;
    }

    .open-events-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .dismiss-count {
        font-size: 12px;
        color: var(--muted);
    }

    .event-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px 18px;
        margin-bottom: 10px;
    }

    .event-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 6px;
    }

    .event-card-type {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        margin-bottom: 4px;
    }

    .event-card-title {
        font-size: 14px;
        font-weight: 600;
    }

    .event-card-desc {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .event-card-footer {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .event-card-amount {
        font-size: 13px;
        font-weight: 600;
        color: var(--fg);
    }

    .event-card-date {
        font-size: 12px;
        color: var(--muted);
    }

    .event-card-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .btn-sm {
        padding: 5px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-family: var(--font);
        font-weight: 500;
        cursor: pointer;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--fg);
        transition: background 0.12s;
    }

        .btn-sm:hover {
            background: var(--bg);
        }

    .btn-sm-primary {
        border-color: var(--primary);
        color: var(--primary);
    }

        .btn-sm-primary:hover {
            background: var(--primary-light);
        }

    .forward-card {
        background: #f0f4ff;
        border: 1px solid #d0dbff;
        border-radius: var(--radius);
        padding: 14px 18px;
        margin-top: 16px;
    }

    .forward-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .forward-item {
        font-size: 13px;
        color: var(--fg);
        padding: 5px 0;
        border-bottom: 1px solid #dce6ff;
    }

        .forward-item:last-child {
            border-bottom: none;
        }
    /* ── SETTINGS ── */
    .toggle-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .toggle-info h3 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 3px;
    }

    .toggle-info p {
        font-size: 13px;
        color: var(--muted);
    }

    .toggle {
        position: relative;
        width: 44px;
        height: 24px;
        flex-shrink: 0;
        cursor: pointer;
    }

        .toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    .toggle-slider {
        position: absolute;
        inset: 0;
        background: #e5e7eb;
        border-radius: 12px;
        transition: background 0.2s;
    }

        .toggle-slider::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            top: 3px;
            left: 3px;
            transition: transform 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }

    .toggle input:checked ~ .toggle-slider {
        background: var(--healthy);
    }

        .toggle input:checked ~ .toggle-slider::after {
            transform: translateX(20px);
        }

    .notif-on {
        color: var(--healthy);
        font-size: 12.5px;
        font-weight: 500;
        margin-top: 10px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .account-card {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding: 16px 18px;
    }

    .account-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--fg);
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .account-name {
        font-size: 14px;
        font-weight: 600;
    }

    .account-email {
        font-size: 12.5px;
        color: var(--muted);
    }

    .account-detail {
        font-size: 12.5px;
        color: var(--muted);
        margin-top: 4px;
    }

        .account-detail strong {
            color: var(--fg);
        }

    .settings-note {
        font-size: 12.5px;
        color: var(--muted);
        margin-top: 16px;
        line-height: 1.6;
    }

        .settings-note span {
            color: var(--primary);
        }
    /* ── EMPTY / ONBOARDING ── */
    .demo-phases {
        display: flex;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
        margin-bottom: 32px;
    }

    .demo-phase-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
        margin-right: 10px;
    }

    .phase-step {
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--muted);
        border: 1px solid var(--border);
        background: transparent;
    }

        .phase-step.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            font-weight: 600;
        }

    .phase-sep {
        color: var(--border);
        margin: 0 8px;
        font-size: 14px;
    }

    .empty-center {
        text-align: center;
        padding: 40px 20px 36px;
        max-width: 520px;
        margin: 0 auto;
    }

    .empty-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .empty-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .empty-desc {
        font-size: 13.5px;
        color: var(--muted);
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .scan-progress-wrap {
        margin: 16px 0 8px;
    }

    .scan-meta {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .scan-emails {
        font-weight: 700;
        font-size: 18px;
    }

    .scan-pct {
        color: var(--muted);
    }

    .scan-bar {
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
        overflow: hidden;
        max-width: 340px;
        margin: 0 auto;
    }

    .scan-bar-fill {
        height: 100%;
        background: var(--primary);
        border-radius: 3px;
        width: 16%;
        transition: width 0.5s;
    }

    .scan-note {
        font-size: 12px;
        color: var(--muted);
        margin-top: 8px;
    }

    .invite-card {
        background: var(--primary-light);
        border: 1px solid #c5d3f0;
        border-radius: var(--radius);
        padding: 22px 24px;
        max-width: 520px;
        margin: 0 auto;
    }

    .invite-card-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 10px;
    }

    .invite-card-icon {
        font-size: 22px;
        flex-shrink: 0;
    }

    .invite-card-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .invite-card-desc {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.6;
    }

    .btn-primary,
    a.btn-primary,
    button.btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 20px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font);
        margin: 12px 0 10px;
        transition: background 0.15s;
    }

        .btn-primary:hover,
        a.btn-primary:hover,
        button.btn-primary:hover {
            background: #1a57f0;
        }

    .invite-link-row {
        display: flex;
        align-items: center;
        border: 1px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        background: var(--card);
        margin-top: 4px;
    }

    .invite-link-input {
        flex: 1;
        padding: 8px 12px;
        font-size: 12.5px;
        color: var(--muted);
        border: none;
        outline: none;
        background: transparent;
        font-family: var(--font);
        min-width: 0;
    }

    .invite-link-btn {
        padding: 8px 14px;
        background: var(--primary);
        color: #fff;
        border: none;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font);
        display: flex;
        align-items: center;
        gap: 5px;
        transition: background 0.15s;
        white-space: nowrap;
    }

        .invite-link-btn:hover {
            background: #1a57f0;
        }

    .mailbox-count {
        font-size: 12px;
        color: var(--muted);
        margin-top: 8px;
    }
    /* ── ADMIN ── */
    .admin-layout {
        display: flex;
        gap: 24px;
    }

    .admin-tabs {
        width: 180px;
        flex-shrink: 0;
    }

    .admin-tab {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 500;
        color: var(--muted);
        cursor: pointer;
        transition: background 0.12s, color 0.12s;
        margin-bottom: 2px;
    }

        .admin-tab:hover {
            background: var(--bg);
            color: var(--fg);
        }

        .admin-tab.active {
            background: var(--primary-light);
            color: var(--primary);
        }

        .admin-tab svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
        }

    .admin-content {
        flex: 1;
        min-width: 0;
    }

    .admin-tab-panel {
        display: none;
    }

        .admin-tab-panel.active {
            display: block;
        }

    .alert-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #fffbf5;
        border: 1px solid #fde8c8;
        border-radius: 10px;
        padding: 12px 16px;
        margin-bottom: 20px;
        font-size: 13px;
        flex-wrap: wrap;
    }

    .team-progress-row {
        margin-bottom: 18px;
    }

    .team-progress-label {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .team-progress-bar {
        height: 8px;
        background: #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 4px;
    }

    .team-progress-fill {
        height: 100%;
        background: var(--healthy);
        border-radius: 4px;
        width: 60%;
    }

    .team-progress-sub {
        font-size: 12px;
        color: var(--muted);
        text-align: right;
    }

    .member-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .member-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--fg);
        color: #fff;
        font-weight: 700;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .member-info {
        flex: 1;
        min-width: 140px;
    }

    .member-name {
        font-size: 13.5px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
    }

    .member-role {
        font-size: 11px;
        font-weight: 600;
        padding: 1px 7px;
        border-radius: 5px;
        border: 1px solid var(--border);
        color: var(--muted);
        background: var(--bg);
    }

    .member-email {
        font-size: 12px;
        color: var(--muted);
    }

    .member-status {
        font-size: 12px;
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .status-connected {
        color: var(--healthy);
    }

    .status-error {
        color: var(--attention);
    }

    .status-none {
        color: var(--muted);
    }

    .member-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .btn-reconnect {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        border: 1px solid var(--border);
        border-radius: 7px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        font-family: var(--font);
        background: transparent;
        color: var(--fg);
        transition: background 0.12s;
        white-space: nowrap;
    }

        .btn-reconnect:hover {
            background: var(--bg);
        }

    .invite-section {
        margin-top: 20px;
    }

    .invite-section-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 6px;
    }

    .invite-section-desc {
        font-size: 12.5px;
        color: var(--muted);
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
    }

    .form-input {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--card);
        color: var(--fg);
        font-size: 13.5px;
        font-family: var(--font);
        outline: none;
        transition: border-color 0.15s;
    }

        .form-input:focus {
            border-color: var(--primary);
        }

    .form-hint {
        font-size: 12px;
        color: var(--muted);
        margin-top: 4px;
    }

    .form-row {
        display: flex;
        gap: 12px;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .form-select {
        padding: 9px 28px 9px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--card);
        color: var(--fg);
        font-size: 13.5px;
        font-family: var(--font);
        cursor: pointer;
        outline: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23717171' stroke-width='2' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        transition: border-color 0.15s;
    }

        .form-select:focus {
            border-color: var(--primary);
        }

    .form-time {
        padding: 9px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--card);
        color: var(--fg);
        font-size: 13.5px;
        font-family: var(--font);
        outline: none;
        transition: border-color 0.15s;
    }

    .btn-save {
        padding: 9px 22px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13.5px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font);
        margin-top: 8px;
        transition: background 0.15s;
    }

        .btn-save:hover {
            background: #1a57f0;
        }

    .bell-icon {
        color: var(--healthy);
        cursor: pointer;
        opacity: 0.7;
    }

    .bell-off {
        color: var(--muted);
        cursor: pointer;
        opacity: 0.5;
    }

    .contractor-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

        .contractor-row:last-child {
            border-bottom: none;
        }

    .contractor-name {
        flex: 1;
        font-size: 13.5px;
        min-width: 0;
    }

    .contractor-bar-wrap {
        width: 160px;
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .contractor-bar {
        height: 100%;
        background: var(--primary);
        border-radius: 3px;
    }

    .contractor-amount {
        font-size: 13px;
        font-weight: 600;
        min-width: 38px;
        text-align: right;
    }

    .footnote {
        font-size: 12px;
        color: var(--muted);
        margin-top: 20px;
    }
    /* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
    /* ── TABLET (≤900px) ── */
    @media (max-width: 900px) {
        .page-inner {
            padding: 24px 20px;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .detail-meta-grid {
            grid-template-columns: 1fr;
        }

        .admin-tabs {
            width: 150px;
        }

        .contractor-bar-wrap {
            width: 100px;
        }
    }
    /* ── MOBILE (≤680px) — sidebar becomes drawer ── */
    @media (max-width: 680px) {
        body {
            display: block;
        }
        /* Show topbar, hide desktop sidebar logo */
        .topbar {
            display: flex;
        }

        .sidebar-logo {
            display: none;
        }
        /* Sidebar slides off-canvas by default */
        .sidebar {
            transform: translateX(-100%);
            top: 0;
            z-index: 150;
        }

            .sidebar.open {
                transform: translateX(0);
            }
        /* Main fills full width, offset for topbar */
        .main {
            margin-left: 0;
            min-height: 0;
        }

        .page-inner {
            padding: 16px 16px;
            padding-top: calc(var(--topbar-h) + 16px);
        }

        h1 {
            font-size: 18px;
        }
        /* Stats 2-col on mobile */
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .stat-value {
            font-size: 20px;
        }
        /* Admin stacks vertically */
        .admin-layout {
            flex-direction: column;
        }

        .admin-tabs {
            width: 100%;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 4px;
        }

        .admin-tab {
            flex: 1;
            min-width: 130px;
            justify-content: center;
        }
        /* Retention bars stack */
        .ret-row {
            flex-wrap: wrap;
            gap: 8px;
        }

        .ret-name {
            min-width: 100%;
        }

        .ret-bar-wrap {
            flex: 1;
            min-width: 120px;
        }
        /* Events hide amount on small screens */
        .event-amount {
            display: none;
        }
        /* Project cards tighten */
        .card-link {
            padding: 14px 14px;
        }

        .card {
            padding: 14px 14px;
        }
        /* Project detail meta single column */
        .detail-meta-grid {
            grid-template-columns: 1fr;
            gap: 6px;
        }

        .detail-header {
            padding: 14px;
        }
        /* Filter row scrolls */
        .filter-row {
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 4px;
            -webkit-overflow-scrolling: touch;
        }

        .filter-select, .filter-btn {
            flex-shrink: 0;
        }
        /* Phases wrap */
        .demo-phases {
            gap: 6px;
        }

        .phase-sep {
            display: none;
        }

        .phase-step {
            font-size: 11.5px;
            padding: 4px 10px;
        }
        /* Invite card */
        .invite-card {
            padding: 16px;
        }

        .invite-card-header {
            flex-direction: column;
            gap: 8px;
        }
        /* Contractor bars */
        .contractor-bar-wrap {
            width: 80px;
        }
        /* Release items */
        .release-item {
            flex-wrap: wrap;
            gap: 8px;
        }
        /* Event card actions */
        .event-card-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .event-card-actions {
            flex-wrap: wrap;
        }
        /* Nudge row */
        .nudge-row {
            flex-direction: column;
            align-items: flex-start;
        }
        /* Member card actions */
        .member-actions {
            margin-left: 0;
            width: 100%;
            justify-content: flex-end;
        }
    }
    /* ── VERY SMALL (≤400px) ── */
    @media (max-width: 400px) {
        .stats-grid {
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }

        .stat-value {
            font-size: 18px;
        }

        .stat-card {
            padding: 12px 12px;
        }

        .summary-tabs {
            flex-wrap: wrap;
        }

        .event-card-actions {
            gap: 6px;
        }

        .btn-sm {
            padding: 5px 8px;
            font-size: 11px;
        }

        .page-inner {
            padding: 12px;
            padding-top: calc(var(--topbar-h) + 12px);
        }
    }
    /* ============================================================
   LOGIN PAGE — additional styles
   (used when User.Identity.IsAuthenticated == false)
   ============================================================ */
    /* ── LOGIN PAGE ── */
    .login-wrap {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    /* Override the app-level body flex layout for the login page */
    body:has(.login-wrap) {
        display: block;
        min-height: 100vh;
    }
    /* ── LEFT PANEL ── */
.login-left {
    flex: 0 0 55%;
    min-width: 0;
    min-height: 100vh;
    background: #172b4d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px;
}

    .login-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        margin-bottom: 64px;
    }

    .login-logo-icon {
        width: 32px;
        height: 32px;
        background: var(--primary);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 800;
        font-size: 14px;
    }

    .login-logo-text {
        font-size: 17px;
        font-weight: 700;
        color: #fff;
        font-family: var(--font);
    }

.login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

    .login-headline {
        font-size: 36px;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
        margin-bottom: 16px;
        font-family: var(--font);
    }

    .login-subhead {
        font-size: 15px;
        color: rgba(255,255,255,0.65);
        line-height: 1.65;
        max-width: 380px;
        margin-bottom: 48px;
    }

    .login-features {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-bottom: 48px;
    }

    .login-feature {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .login-feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: rgba(47, 107, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
    }

        .login-feature-icon svg {
            width: 17px;
            height: 17px;
            color: #6b9fff;
        }

    .login-feature-title {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 3px;
    }

    .login-feature-desc {
        font-size: 13px;
        color: rgba(255,255,255,0.55);
        line-height: 1.55;
    }

    .login-quote {
        border-left: 3px solid rgba(47,107,255,0.5);
        padding-left: 18px;
        margin-bottom: 32px;
    }

    .login-quote-text {
        font-size: 13.5px;
        color: rgba(255,255,255,0.7);
        line-height: 1.65;
        font-style: italic;
        margin-bottom: 10px;
    }

    .login-quote-author {
        font-size: 12.5px;
        color: rgba(255,255,255,0.45);
        font-weight: 500;
    }

    .login-quote-role {
        font-size: 12px;
        color: rgba(255,255,255,0.35);
        margin-top: 2px;
    }

    .login-badges {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .login-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: rgba(255,255,255,0.45);
    }

        .login-badge svg {
            width: 14px;
            height: 14px;
            color: rgba(255,255,255,0.35);
        }
    /* ── RIGHT PANEL ── */
    .login-right {
        flex: 1 1 0%;
        min-width: 0;
        background: #f7f8fa;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 48px 24px;
    }

    .login-form-box {
        width: 100%;
        max-width: 360px;
    }

    .login-form-title {
        font-size: 22px;
        font-weight: 700;
        color: var(--fg);
        margin-bottom: 6px;
        font-family: var(--font);
    }

    .login-form-sub {
        font-size: 13.5px;
        color: var(--muted);
        margin-bottom: 28px;
    }

    .login-btn {
        width: 100%;
        padding: 11px 16px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: #fff;
        color: var(--fg);
        font-size: 14px;
        font-weight: 500;
        font-family: var(--font);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
        transition: border-color 0.15s, box-shadow 0.15s;
        text-decoration: none;
    }

        .login-btn:hover {
            border-color: #c0c8d8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        }

        .login-btn svg, .login-btn img {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

    .login-btn-disabled {
        opacity: 0.55;
        pointer-events: none;
        cursor: default;
        color: #98a2b3;
        border-color: #eaecf0;
        background: #f8fafc;
    }

        .login-btn-disabled svg {
            opacity: 0.8;
        }

        .login-btn-disabled:hover {
            transform: none;
            box-shadow: none;
        }


    .login-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 14px 0;
        color: var(--muted);
        font-size: 12.5px;
    }

        .login-divider::before, .login-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

    .login-request {
        width: 100%;
        padding: 11px 16px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: transparent;
        color: var(--muted);
        font-size: 14px;
        font-family: var(--font);
        cursor: pointer;
        text-align: center;
        transition: border-color 0.15s, color 0.15s;
        display: block;
        text-decoration: none;
    }

        .login-request:hover {
            border-color: #c0c8d8;
            color: var(--fg);
        }

    .login-small-print {
        font-size: 12px;
        color: #aaa;
        margin-top: 20px;
        line-height: 1.6;
        text-align: center;
    }
    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
        .login-left {
            flex: 0 0 48%;
            padding: 40px;
        }

        .login-headline {
            font-size: 28px;
        }
    }

    @media (max-width: 680px) {
        .login-wrap {
            flex-direction: column;
        }

        .login-left {
            width: 100%;
            padding: 32px 24px;
            justify-content: flex-start;
        }

        .login-hero {
            justify-content: flex-start;
        }

        .login-headline {
            font-size: 26px;
        }

        .login-features {
            gap: 20px;
            margin-bottom: 32px;
        }

        .login-quote {
            display: none;
        }

        .login-right {
            padding: 36px 20px;
        }
    }
