:root {
    --blue: #75a5bf;
    --blue-deep: #568da9;
    --mint: #91cfc3;
    --mint-pale: #dcefed;
    --yellow: #ffd34e;

    --ink: #172126;
    --muted: #66757d;
    --border: #dce4e6;
    --background: #f6f8f8;
    --surface: #ffffff;

    --radius: 10px;
    --radius-lg: 24px;

    --shadow: 0 10px 35px rgba(30, 54, 65, .07);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

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


/* ---------------------------------
   Typography
---------------------------------- */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--blue-deep);
}

h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.eyebrow {
    color: var(--blue-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 14px;
}

.muted {
    color: var(--muted);
}


/* ---------------------------------
   Navigation
---------------------------------- */

.topbar {
    height: 78px;
    background: var(--blue);
    display: flex;
    align-items: center;
    padding: 0 38px;
    gap: 45px;
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.brand-mark {
    background: white;
    color: var(--blue-deep);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 15px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-family: Georgia, serif;
    font-size: 16px;
}

.brand-copy span {
    opacity: .82;
    font-size: 11px;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.topbar nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: .9;
}

.topbar nav a:hover {
    opacity: 1;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.user-menu form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}


/* ---------------------------------
   Workspace
---------------------------------- */

.workspace {
    max-width: 1320px;
    margin: 0 auto;
    padding: 55px 40px 80px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 35px;
}

.page-heading p {
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ---------------------------------
   Buttons
---------------------------------- */

.button {
    border: 0;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.button.primary {
    background: var(--yellow);
    color: var(--ink);
}

.button.primary:hover {
    filter: brightness(.97);
}

.button.wide {
    width: 100%;
}


/* ---------------------------------
   Summary
---------------------------------- */

.network-summary {
    background: var(--mint-pale);
    border-radius: var(--radius-lg);
    display: flex;
    padding: 24px 30px;
    gap: 55px;
    margin-bottom: 28px;
}

.network-summary > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.summary-number {
    font-family: Georgia, serif;
    color: var(--blue-deep);
    font-size: 27px;
}

.summary-label {
    color: var(--muted);
    font-size: 13px;
}


/* ---------------------------------
   Panels
---------------------------------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    padding: 27px 30px 21px;
    border-bottom: 1px solid var(--border);
}

.panel-header p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 0;
}


/* ---------------------------------
   Tables
---------------------------------- */

.table-wrap {
    overflow-x: auto;
}

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

.contact-table th {
    text-align: left;
    padding: 13px 25px;
    background: #fafbfb;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-table td {
    padding: 19px 25px;
    border-top: 1px solid #edf1f2;
    vertical-align: middle;
    font-size: 14px;
}

.contact-table tbody tr:hover {
    background: #fbfcfc;
}

.secondary {
    display: block;
    color: var(--muted);
    margin-top: 5px;
    font-size: 12px;
}

.category-pill {
    display: inline-block;
    background: var(--mint-pale);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 650;
}

.contact-actions {
    white-space: nowrap;
}

.copy-button {
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 10px;
    margin-right: 5px;
    color: var(--blue-deep);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.copy-button:hover {
    border-color: var(--blue);
}

.copy-button.copied {
    background: var(--mint-pale);
}


/* ---------------------------------
   Empty state
---------------------------------- */

.empty-state {
    padding: 70px 30px 80px;
    text-align: center;
}

.empty-state h3 {
    font-family: Georgia, serif;
    color: var(--blue-deep);
    font-size: 25px;
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto 23px;
    color: var(--muted);
    line-height: 1.6;
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mint-pale);
    color: var(--blue-deep);
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    font-size: 25px;
}


/* ---------------------------------
   Login
---------------------------------- */

.login-page {
    background: var(--mint-pale);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(390px, 520px);
    gap: 70px;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 50px;
}

.login-brand {
    text-align: center;
    color: var(--blue-deep);
}

.login-logo {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
    font-family: Georgia, serif;
    font-size: 48px;
    box-shadow: var(--shadow);
}

.login-brand p {
    margin-top: 17px;
    font-size: 13px;
    letter-spacing: 5px;
    font-weight: 700;
}

.login-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.login-intro {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.login-form label {
    display: block;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 17px;
}

.login-form input {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 14px;
    margin-top: 7px;
    font: inherit;
    outline: none;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(117,165,191,.13);
}


/* ---------------------------------
   Flash messages
---------------------------------- */

.flash-stack {
    margin-bottom: 20px;
}

.flash {
    background: white;
    border: 1px solid var(--border);
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.flash.error {
    border-left: 4px solid #b65f5f;
}


/* ---------------------------------
   Responsive
---------------------------------- */

@media (max-width: 800px) {

    .topbar {
        padding: 0 18px;
    }

    .topbar nav {
        display: none;
    }

    .workspace {
        padding: 35px 18px;
    }

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

    .network-summary {
        gap: 20px;
        flex-wrap: wrap;
    }

    .login-shell {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .login-brand {
        display: none;
    }

    .login-card {
        padding: 35px 25px;
    }
}


/* ==========================================================
   LMV MANAGEMENT VIEWS
   ========================================================== */

.form-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.app-form > label,
.app-form .form-grid > label {
    display: block;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 20px;
}

.app-form input,
.app-form select,
.app-form textarea,
.add-existing select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 12px 13px;
    margin-top: 7px;
    font: inherit;
    color: var(--ink);
}

.app-form textarea {
    resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.secondary-button {
    background: white;
    border: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
}

.small-button {
    background: var(--blue);
    color: white;
    padding: 10px 14px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .12s ease, border-color .12s ease;
}

.staff-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.staff-avatar,
.profile-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-pale);
    color: var(--blue-deep);
    font-family: Georgia, serif;
}

.staff-avatar {
    width: 58px;
    height: 58px;
    font-size: 25px;
}

.staff-card-content {
    flex: 1;
}

.staff-card h2 {
    font-size: 20px;
    margin: 0 0 7px;
}

.staff-card h2 span {
    font-family: inherit;
    font-size: 12px;
    color: var(--muted);
}

.staff-card p {
    font-size: 13px;
    margin-bottom: 12px;
}

.staff-meta {
    color: var(--muted);
    font-size: 12px;
}

.card-arrow {
    color: var(--blue);
    font-size: 24px;
}

.profile-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 23px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    font-size: 35px;
}

.profile-heading h1 {
    margin-bottom: 8px;
}

.profile-heading h1 small {
    font-family: inherit;
    font-size: 18px;
}

.specialties {
    color: var(--muted);
    margin: 0;
}

.focus-note {
    background: var(--mint-pale);
    border-radius: 16px;
    padding: 20px 23px;
    margin-bottom: 20px;
}

.focus-note p {
    margin: 6px 0 0;
    line-height: 1.55;
}

.add-existing {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 20px;
}

.add-existing form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-existing span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.add-existing select {
    margin: 0;
}

.entity-link {
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}

.entity-link:hover {
    color: var(--blue-deep);
}

.status-pill {
    display: inline-block;
    background: #eef2f3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 750;
}

.status-contacted,
.status-emailed,
.status-called {
    background: var(--mint-pale);
}

.status-responded,
.status-active {
    background: #fff2bd;
}

.text-danger {
    border: 0;
    background: transparent;
    color: #a65353;
    cursor: pointer;
    font-size: 11px;
}

.heading-actions {
    display: flex;
    gap: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-panel {
    padding: 28px;
}

.detail-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 13px;
    margin-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    font-size: 14px;
}

.note-block {
    background: var(--background);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.note-block p {
    margin: 5px 0 0;
}

.relationship-panel {
    margin-top: 20px;
}

.relationship-list {
    padding: 0 25px;
}

.relationship-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border);
}

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

.relationship-row div span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, .7fr) 1.3fr;
    gap: 22px;
}

.simple-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

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

.simple-row div span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.checkbox-list {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    margin: 0 !important;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

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

.checkbox-row input {
    width: auto;
    margin: 0;
}

.empty-state.compact {
    padding: 30px;
}

@media (max-width: 800px) {

    .form-grid,
    .detail-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .profile-heading,
    .add-existing form {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ==========================================================
   REAL LMV LOGO
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.lmv-logo {
    display: block;
    width: 245px;
    height: auto;
    max-height: 68px;
    object-fit: contain;
}

@media (max-width: 850px) {
    .lmv-logo {
        width: 190px;
        max-height: 58px;
    }
}

@media (max-width: 600px) {
    .lmv-logo {
        width: 155px;
        max-height: 50px;
    }
}



/* ==========================================================
   CREATE CONTACT LINK FIX
   ========================================================== */

.create-contact-link {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
}



/* ==========================================================
   LMV USABILITY PASS
   ========================================================== */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding: 36px 0 34px;
}

.dashboard-hero h1 {
    max-width: 760px;
    margin-bottom: 12px;
}

.dashboard-hero p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-create-button {
    flex: 0 0 auto;
}


.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.dashboard-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 135px;
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition:
        transform .12s ease,
        border-color .12s ease,
        box-shadow .12s ease;
}

.dashboard-stat:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.dashboard-stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dashboard-stat strong {
    margin: 10px 0 auto;
    font-family: Georgia, serif;
    font-size: 36px;
    color: var(--blue-deep);
}

.dashboard-stat-action {
    margin-top: 10px;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 750;
}


.dashboard-section-heading {
    margin-bottom: 18px;
}

.dashboard-section-heading h2 {
    margin: 4px 0 6px;
}

.dashboard-section-heading p {
    margin: 0;
    color: var(--muted);
}


.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.quick-access-card {
    display: flex;
    gap: 17px;
    padding: 25px;
    min-height: 150px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition:
        transform .12s ease,
        border-color .12s ease;
}

.quick-access-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.quick-access-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-pale);
    color: var(--blue-deep);
    font-family: Georgia, serif;
    font-size: 20px;
}

.quick-access-card h3 {
    margin: 2px 0 7px;
}

.quick-access-card p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.quick-access-card span {
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 750;
}


.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: start;
}

.category-directory {
    display: grid;
    gap: 12px;
}

.category-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition:
        transform .12s ease,
        border-color .12s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
}

.category-card-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-pale);
    color: var(--blue-deep);
    font-family: Georgia, serif;
    font-size: 20px;
}

.category-card h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.category-card-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 12px;
}

.category-card-meta strong {
    color: var(--ink);
}

.category-create {
    position: sticky;
    top: 105px;
}


.metric-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 220px));
    gap: 14px;
    margin-bottom: 22px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--mint-pale);
    border-radius: 14px;
}

.metric-box strong {
    font-family: Georgia, serif;
    font-size: 28px;
    color: var(--blue-deep);
}

.metric-box span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}


.breadcrumb {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.breadcrumb:hover {
    text-decoration: underline;
}


.clickable-table-row {
    cursor: pointer;
    transition: background .1s ease;
}

.clickable-table-row:hover {
    background: var(--mint-pale);
}

.row-arrow {
    width: 30px;
    text-align: right;
    color: var(--blue);
    font-size: 18px;
}

.text-link {
    color: var(--blue-deep);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.dashboard-directory {
    margin-bottom: 50px;
}


@media (max-width: 900px) {

    .dashboard-actions,
    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-create {
        position: static;
    }

}


@media (max-width: 650px) {

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-strip {
        grid-template-columns: 1fr 1fr;
    }

}



/* ==========================================================
   LMV WHITE NAV AND LOGIN BRAND
   ========================================================== */

/*
   The official LMV wordmark has a white field.
   Instead of placing a white rectangle on blue, the navigation
   becomes a clean white brand surface.
*/

.topbar,
header.topbar,
.app-header,
header {
    background: #ffffff;
}


/* Logo */

.brand {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
}

.brand .lmv-logo,
.lmv-logo {
    display: block;
    width: 245px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
}


/* Navigation links on white */

.topbar a:not(.brand):not(.button),
.app-header a:not(.brand):not(.button),
header nav a {
    color: var(--lmv-blue-deep, #6299b8);
}

.topbar a:not(.brand):not(.button):hover,
.app-header a:not(.brand):not(.button):hover,
header nav a:hover {
    color: var(--ink);
}


/* Keep yellow action language intact */

.topbar .button.primary,
.app-header .button.primary,
header .button.primary {
    color: var(--ink);
}


/* Header separation now comes from a subtle rule rather than
   a colored background. */

.topbar,
.app-header,
header {
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(23, 33, 38, 0.035);
}


/* ----------------------------------------------------------
   Login branding
   ---------------------------------------------------------- */

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 26px;
}

.login-lmv-logo {
    display: block;
    width: min(340px, 82vw);
    height: auto;
    object-fit: contain;
    border: 0;
    box-shadow: none;
}


/* If login is presented as a centered card, let the branding
   visually belong to the card rather than looking like another
   UI element. */

.login-card,
.auth-card,
.login-panel {
    overflow: visible;
}


/* Mobile nav logo */

@media (max-width: 700px) {

    .brand .lmv-logo,
    .lmv-logo {
        width: 190px;
    }

    .login-lmv-logo {
        width: min(290px, 80vw);
    }

}



/* ==========================================================
   LMV LOGOUT WHITE NAV FIX
   ========================================================== */

.topbar form button,
.app-header form button,
header form button {
    background: transparent;
    color: var(--lmv-blue-deep, #6299b8);
    border: 1px solid var(--lmv-blue, #77a6bf);
    border-radius: 8px;
    padding: 8px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .12s ease,
        color .12s ease,
        border-color .12s ease;
}

.topbar form button:hover,
.app-header form button:hover,
header form button:hover {
    background: var(--lmv-mint-pale, #dcefee);
    color: var(--ink, #172126);
    border-color: var(--lmv-blue-deep, #6299b8);
}



/* ==========================================================
   LMV LOGIN — FINAL
   ========================================================== */

body:has(.lmv-login-page) {
    background: var(--lmv-mint-pale, #dcefee);
}


/*
   The global application header is unnecessary on authentication
   because the login card itself carries the LMV identity.
*/
body:has(.lmv-login-page) .topbar,
body:has(.lmv-login-page) .app-header,
body:has(.lmv-login-page) > header {
    display: none;
}


body:has(.lmv-login-page) main,
body:has(.lmv-login-page) .main,
body:has(.lmv-login-page) .container,
body:has(.lmv-login-page) .page-container {
    max-width: none;
}


.lmv-login-page {
    min-height: 100vh;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px 24px;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(255,255,255,.40),
            transparent 38%
        ),
        var(--lmv-mint-pale, #dcefee);
}


.lmv-login-card {
    width: 100%;
    max-width: 520px;

    box-sizing: border-box;

    padding: 42px 48px 32px;

    background: #ffffff;

    border: 1px solid rgba(98, 153, 184, .12);
    border-radius: 26px;

    box-shadow:
        0 22px 60px rgba(23, 33, 38, .09);
}


.lmv-login-brand {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 28px;
}


.lmv-login-logo {
    display: block;

    width: 310px;
    max-width: 90%;
    height: auto;

    border: 0;
    box-shadow: none;
}


.lmv-login-divider {
    width: 46px;
    height: 3px;

    margin: 0 auto 29px;

    border-radius: 999px;

    background: var(--lmv-yellow, #ffd34f);
}


.lmv-login-copy {
    text-align: center;

    margin-bottom: 29px;
}


.lmv-login-copy .eyebrow {
    margin-bottom: 8px;

    color: var(--lmv-blue-deep, #6299b8);
}


.lmv-login-copy h1 {
    margin: 0;

    color: var(--lmv-blue-deep, #6299b8);

    font-family: Georgia, serif;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
}


.lmv-login-copy p {
    margin: 16px 0 0;

    color: var(--muted, #66757d);

    font-size: 15px;
    line-height: 1.5;
}


.lmv-login-form {
    display: grid;
    gap: 18px;
}


.lmv-login-form label {
    display: grid;
    gap: 7px;

    color: var(--ink, #172126);

    font-size: 12px;
    font-weight: 750;
}


.lmv-login-form input {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid var(--border, #dce4e6);
    border-radius: 10px;

    color: var(--ink, #172126);

    font: inherit;

    outline: none;

    transition:
        border-color .12s ease,
        box-shadow .12s ease;
}


.lmv-login-form input:focus {
    border-color: var(--lmv-blue, #77a6bf);

    box-shadow:
        0 0 0 3px rgba(119, 166, 191, .13);
}


.lmv-login-submit {
    width: 100%;
    min-height: 52px;

    margin-top: 3px;

    border: 0;
    border-radius: 10px;

    background: var(--lmv-yellow, #ffd34f);

    color: var(--ink, #172126);

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}


.lmv-login-submit:hover {
    filter: brightness(.975);
    transform: translateY(-1px);
}


.lmv-login-footer {
    margin-top: 27px;

    padding-top: 21px;

    border-top: 1px solid var(--border, #dce4e6);

    color: var(--muted, #66757d);

    text-align: center;

    font-size: 10px;
    font-weight: 650;

    letter-spacing: .035em;
}


@media (max-width: 600px) {

    .lmv-login-page {
        padding: 22px 14px;
    }

    .lmv-login-card {
        padding: 34px 25px 27px;

        border-radius: 20px;
    }

    .lmv-login-logo {
        width: 270px;
    }

    .lmv-login-copy h1 {
        font-size: 42px;
    }

}

