.vs-auth {
    min-height: calc(100svh - 136px);
    display: grid;
    place-items: center;
    padding: 52px 18px;
    background: #F8FAFC;
}
.vs-auth-card,
.vs-panel {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(11, 31, 58, .045);
}
.vs-auth-card {
    width: min(440px, 100%);
    padding: 32px;
    display: grid;
    gap: 16px;
}
.vs-auth-card h2 {
    font-size: 30px;
    line-height: 1.1;
}
.vs-auth-card h2,
.vs-panel h2,
.vs-workspace-top h1 {
    margin: 0;
    color: #0B1F3A;
}
.vs-portal-eyebrow {
    margin: 0 0 8px;
    color: #D8A928;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vs-portal-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100svh - 76px);
    background: #F8FAFC;
}
.vs-sidebar {
    position: sticky;
    top: 76px;
    height: calc(100svh - 76px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #E2E8F0;
    background: #FFFFFF;
}
.vs-portal-brand {
    display: grid;
    gap: 4px;
    padding: 4px 2px 14px;
    border-bottom: 1px solid #E2E8F0;
    color: #0B1F3A;
    font-weight: 900;
    font-size: 20px;
}
.vs-portal-brand small {
    color: #64748B;
    font-size: 13px;
}
.vs-side-nav {
    display: grid;
    gap: 4px;
}
.vs-side-nav a {
    padding: 10px 11px;
    border-radius: 8px;
    color: #64748B;
    font-weight: 800;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.vs-side-nav a:hover,
.vs-side-nav a.active {
    background: #F8FAFC;
    color: #0B1F3A;
}
.vs-side-nav a:hover { transform: translateX(2px); }
.vs-side-nav a.active {
    box-shadow: inset 3px 0 0 #D8A928;
}
.vs-workspace {
    min-width: 0;
    padding: 30px;
    position: relative;
    background-color: #F8FAFC;
}
.vs-workspace-bg {
    background-size: cover;
    background-position: center 75%;
    background-attachment: fixed;
    isolation: isolate;
}
.vs-workspace-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, .68);
    z-index: -1;
}
.vs-workspace-bg .vs-workspace-top,
.vs-workspace-bg .vs-flash,
.vs-workspace-bg .vs-notice,
.vs-workspace-bg .vs-panel {
    position: relative;
}
.vs-workspace-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.vs-workspace-top h1 {
    font-size: 34px;
    line-height: 1.08;
}
.vs-role-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #F3D777;
    border-radius: 999px;
    background: #FFF7D8;
    color: #0B1F3A;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}
.vs-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.vs-stat-grid article {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    min-height: 132px;
    display: grid;
    align-content: space-between;
}
.vs-stat-grid span,
.vs-stat-grid small {
    display: block;
    color: #64748B;
    font-weight: 800;
}
.vs-stat-grid strong {
    display: block;
    margin: 8px 0;
    color: #0B1F3A;
    font-size: 38px;
    line-height: 1;
}
.vs-panel {
    padding: 20px;
    margin-bottom: 16px;
}
.vs-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.vs-panel-title h2,
.vs-panel > h2 {
    font-size: 22px;
    line-height: 1.2;
}
.vs-panel-title p,
.vs-empty {
    margin: 6px 0 0;
    color: #64748B;
}
.vs-table-wrap {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
}
.vs-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}
.vs-table th,
.vs-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    vertical-align: top;
}
.vs-table th {
    color: #64748B;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #F8FAFC;
    white-space: nowrap;
}
.vs-table td {
    font-size: 14px;
    line-height: 1.48;
}
.vs-table tbody tr {
    transition: background .14s ease;
}
.vs-table tbody tr:hover {
    background: #F8FAFC;
}
.vs-table tr:last-child td { border-bottom: 0; }
.vs-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.vs-form .wide { grid-column: 1 / -1; }
.vs-form label,
.vs-auth-card label {
    display: grid;
    gap: 7px;
    color: #0B1F3A;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .01em;
}
.vs-form input,
.vs-form select,
.vs-form textarea,
.vs-auth-card input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #172033;
    padding: 10px 11px;
    font: inherit;
}
.vs-form textarea { min-height: 112px; resize: vertical; }
.vs-form input:focus,
.vs-form select:focus,
.vs-form textarea:focus,
.vs-auth-card input:focus {
    outline: 2px solid rgba(216, 169, 40, .28);
    border-color: #D8A928;
}
.vs-actions,
.vs-row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.vs-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.vs-inline-form { margin: 0; }
.vs-flash,
.vs-notice {
    margin-bottom: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0B1F3A;
    padding: 11px 13px;
    font-weight: 800;
}
.vs-flash.success { border-color: #BBF7D0; color: #0F766E; background: #F0FDF4; }
.vs-flash.error,
.vs-notice.error { border-color: #FECACA; color: #B42318; background: #FFF5F5; }
.vs-error-detail {
    margin: 10px 0 0;
    color: #7F1D1D;
    font-weight: 700;
}
.vs-diagnostics {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid #FECACA;
    border-radius: 8px;
    background: #FFFFFF;
    color: #172033;
}
.vs-diagnostics h3 {
    margin: 0;
    padding: 12px 14px;
    color: #0B1F3A;
    border-bottom: 1px solid #FECACA;
}
.vs-diagnostics table {
    width: 100%;
    border-collapse: collapse;
}
.vs-diagnostics th,
.vs-diagnostics td {
    padding: 10px 14px;
    border-bottom: 1px solid #FEE2E2;
    text-align: left;
}
.vs-diagnostics th {
    width: 230px;
    color: #64748B;
}
.vs-diagnostics tr:last-child th,
.vs-diagnostics tr:last-child td {
    border-bottom: 0;
}
.vs-module-hero {
    height: 260px;
    margin-bottom: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    position: relative;
}
.vs-module-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}
.vs-module-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, .08);
    pointer-events: none;
}
.vs-contact {
    display: grid;
    grid-template-columns: minmax(280px, .55fr) minmax(520px, 1fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}
.vs-contact h2 {
    margin: 0 0 10px;
    color: #0B1F3A;
    font-size: 34px;
}
.vs-contact p {
    color: #64748B;
}
.vs-contact-form {
    padding: 0;
    max-width: none;
}
.vs-button,
.button,
button {
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.vs-button:hover,
.button:hover,
button:hover {
    transform: translateY(-1px);
}
.vs-row-actions .vs-button,
.vs-row-actions button {
    min-width: 68px;
}

@media print {
    .vs-sidebar,
    .vs-workspace-top,
    .vs-actions.no-print,
    .vs-site-header,
    .vs-footer { display: none !important; }
    .vs-portal-shell { display: block; margin: 0; }
    .vs-workspace { padding: 0; }
    .vs-panel,
    .vs-table-wrap { border-color: #CBD5E1; box-shadow: none; }
}

@media (max-width: 920px) {
    .vs-portal-shell {
        grid-template-columns: 1fr;
    }
    .vs-sidebar {
        position: static;
        height: auto;
    }
    .vs-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vs-stat-grid,
    .vs-form,
    .vs-contact {
        grid-template-columns: 1fr;
    }
    .vs-workspace-top,
    .vs-panel-title {
        flex-direction: column;
    }
    .vs-workspace {
        padding: 20px 16px;
    }
}
