:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f6f7f9;
    color: #172033;
}

body {
    margin: 0;
    min-height: 100vh;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 56px);
    border-bottom: 1px solid #d8dde7;
    background: #ffffff;
}

.brand,
.nav-links,
.hero-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: #172033;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #172033;
    color: #ffffff;
    font-size: 0.84rem;
}

.nav-links {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    border-radius: 6px;
    color: #415068;
    padding: 8px 10px;
    text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover {
    background: #e9edf4;
    color: #172033;
}

.content-shell {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px) 20px;
}

.account-hero,
.form-surface,
.profile-summary {
    border: 1px solid #d8dde7;
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.08);
}

.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #4b647d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 16px;
    font-size: 2rem;
    line-height: 1.15;
}

p {
    margin: 0;
    color: #415068;
    line-height: 1.6;
}

.button {
    border: 1px solid #172033;
    border-radius: 6px;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
}

.button.primary {
    background: #172033;
    color: #ffffff;
}

.button.secondary {
    background: #ffffff;
    color: #172033;
}

.hero-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.route-card {
    border: 1px solid #d8dde7;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
    text-decoration: none;
}

.route-card span {
    color: #4b647d;
    font-size: 0.86rem;
    font-weight: 700;
}

.route-card strong {
    line-height: 1.35;
}

.account-management-grid {
    margin-top: 22px;
}

.page-heading {
    margin-bottom: 22px;
}

.form-surface {
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.form-surface.compact {
    max-width: 520px;
}

.field-row {
    display: grid;
    gap: 8px;
}

label,
dt {
    color: #172033;
    font-weight: 700;
}

input {
    border: 1px solid #c8cfdb;
    border-radius: 6px;
    color: #172033;
    font: inherit;
    min-height: 42px;
    padding: 0 12px;
}

.profile-summary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-summary div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e3e7ef;
}

.profile-summary div:last-child {
    border-bottom: 0;
}

dd {
    margin: 0;
    color: #415068;
}

@media (max-width: 720px) {
    .topbar,
    .account-hero,
    .profile-summary div {
        grid-template-columns: 1fr;
    }

    .topbar {
        display: grid;
        align-items: start;
    }

    .nav-links {
        justify-content: start;
    }

    .route-grid {
        grid-template-columns: 1fr;
    }
}
