html, body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #eef2f6;
    color: #162033;
}

.layout-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #172033;
    color: #fff;
    border-right: 1px solid #22304a;
}

.nav-link {
    color: #dbe3ef;
    text-decoration: none;
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.1rem;
}

.nav-link.active {
    background: #2457a6;
    color: #fff;
}

.nav-link:hover {
    background: #22304a;
    color: #fff;
}

.nav-button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
}

.content-area {
    background: #eef2f6;
}

.top-row {
    height: 56px;
    border-bottom: 1px solid #cbd5e1;
    background: #fff;
}

.brand-panel {
    padding: 1rem;
    border-bottom: 1px solid #22304a;
}

.brand-title {
    display: block;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-subtitle {
    color: #9fb0c7;
    font-size: 0.85rem;
}

.nav-section {
    color: #91a0b8;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 1rem 0 0.35rem 0.75rem;
    text-transform: uppercase;
}

.page-content {
    padding: 1.5rem;
}

.page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header h1,
.detail-panel h1 {
    font-size: 1.75rem;
    margin: 0;
}

.eyebrow {
    color: #25605d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.card-stat {
    border-radius: 0.35rem;
    border: 1px solid #d8e1ed;
    background: #fff;
    padding: 1rem;
}

.metric {
    font-size: 2rem;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.surface-table,
.form-surface,
.toolbar-surface,
.detail-panel,
.login-form,
.empty-state {
    background: #fff;
    border: 1px solid #d8e1ed;
    border-radius: 0.35rem;
}

.surface-table {
    overflow: hidden;
}

.surface-table thead th {
    background: #f8fafc;
    color: #526174;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.form-surface,
.toolbar-surface,
.detail-panel,
.login-form,
.empty-state {
    padding: 1rem;
}

.form-section {
    border-bottom: 1px solid #e4ebf3;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-section h2,
.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.form-check-block {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    padding-top: 2rem;
}

.detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-grid div {
    background: #f8fafc;
    border: 1px solid #e4ebf3;
    border-radius: 0.3rem;
    padding: 0.85rem;
}

.detail-grid span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
}

.detail-grid strong {
    display: block;
    margin-top: 0.2rem;
}

.status-pill {
    background: #e8f6ef;
    border: 1px solid #b7e0cb;
    border-radius: 999px;
    color: #14613b;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
}

.auth-panel {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    max-width: 980px;
}

@media (max-width: 900px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-content {
        padding: 1rem;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }
}
