:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f7fb;
    color: #172033;
}

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

a {
    color: inherit;
}

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

.layout-shell--authenticated {
    grid-template-columns: 17rem 1fr;
}

.layout-shell--public,
.layout-shell--exam {
    grid-template-columns: 1fr;
}

.sidebar {
    background: #101827;
    color: #ffffff;
    padding: 1.25rem;
}

.content {
    padding: 2rem;
}

.content--authenticated,
.content--public,
.content--fullwidth {
    width: 100%;
    box-sizing: border-box;
}

.content--public {
    min-height: 100vh;
}

.content--exam {
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #101827;
}

.nav-link {
    border-radius: 0.5rem;
    color: #dbe4ff;
    padding: 0.75rem 0.875rem;
    text-decoration: none;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

.hero {
    max-width: 52rem;
    padding: 3rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(16, 24, 39, 0.08);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.hero p {
    font-size: 1.125rem;
    line-height: 1.7;
}

.eyebrow {
    color: #4b5ff7;
    font-size: 0.875rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-message {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fff4e5;
    color: #7a4100;
}

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

    .sidebar {
        position: static;
    }

    .content {
        padding: 1rem;
    }
}

.account-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #f6f8fb;
}

.account-card {
    width: min(100%, 480px);
    background: #fff;
    border: 1px solid #d9e1ec;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    padding: 2rem;
}

.account-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.account-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: #102a43;
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
}

.account-card h1 {
    margin: 0;
    color: #102a43;
    font-size: 1.75rem;
}

.account-copy {
    color: #52616f;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.account-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: .35rem;
    color: #243b53;
    font-weight: 600;
}

.form-control {
    width: 100%;
    border: 1px solid #bcccdc;
    border-radius: 10px;
    padding: .75rem .85rem;
    font: inherit;
    color: #102a43;
    background: #fff;
}

.form-control:focus {
    outline: 3px solid rgba(25, 118, 210, .18);
    border-color: #1976d2;
}

.checkbox-row {
    display: flex;
    gap: .6rem;
    align-items: center;
    color: #334e68;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1rem;
    background: #102a43;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary-action:hover {
    background: #243b53;
}

.auth-alert {
    border-radius: 12px;
    padding: .9rem 1rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.auth-alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.auth-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.validation-summary,
.validation-message {
    color: #b42318;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #bcccdc;
    border-radius: 10px;
    padding: .75rem 1rem;
    background: #fff;
    color: #102a43;
    font-weight: 700;
    text-decoration: none;
}

.secondary-action:hover {
    background: #f0f4f8;
}

.account-card-wide {
    width: min(100%, 620px);
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.register-name-grid {
    grid-template-columns: repeat(2, minmax(0, 240px));
    justify-content: center;
    column-gap: 1.5rem;
    row-gap: 1rem;
}

.password-policy {
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .925rem;
    line-height: 1.5;
    padding: .85rem 1rem;
}

.account-helper-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin-top: 1.25rem;
    color: #52616f;
    font-size: .95rem;
}

.account-helper-links a {
    color: #0f4c81;
    font-weight: 700;
    text-decoration: none;
}

.account-helper-links a:hover,
.account-helper-links a:focus-visible {
    text-decoration: underline;
}

.auth-alert-detail {
    margin-top: .5rem;
    font-size: .925rem;
}

.auth-error-list {
    margin: .5rem 0 0;
    padding-left: 1.25rem;
}

@media (max-width: 640px) {
    .form-grid-two,
    .register-name-grid {
        grid-template-columns: 1fr;
    }
}


button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.rz-button:focus-visible,
.rz-grid-table td:focus-visible,
.rz-grid-table th:focus-visible {
    outline: 3px solid #facc15 !important;
    outline-offset: 3px !important;
}

.dashboard-main {
    max-width: 1440px;
    margin: 0 auto;
}

.dashboard-title {
    margin: 0;
    color: #172033;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Public home page */
.home-shell {
    --home-ink: #102a43;
    --home-muted: #486581;
    --home-border: #d9e2ec;
    --home-soft: #f7fbff;
    --home-accent: #2f6fed;
    --home-accent-strong: #1e4fd8;
    --home-green: #16a34a;
    --home-yellow: #facc15;
    width: min(100%, 1188px);
    margin: 0 auto;
    color: var(--home-ink);
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--home-ink);
    font-weight: 900;
    text-decoration: none;
}

.home-brand-mark {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: .85rem;
    background: var(--home-ink);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .18);
}

.home-brand-text {
    font-size: 1.2rem;
    letter-spacing: -.03em;
}

.home-nav {
    display: inline-flex;
    align-items: center;
    gap: 1.35rem;
    color: var(--home-muted);
    font-weight: 800;
    white-space: nowrap;
}

.home-nav a,
.home-auth-actions a,
.home-hero-actions a,
.home-exam-card a,
.home-pricing-card a,
.home-final-actions a,
.home-final-cta > a,
.home-benefits-copy a {
    text-decoration: none;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color: var(--home-ink);
}

.home-auth-actions,
.home-hero-actions,
.home-final-actions {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.home-primary-button,
.home-secondary-button,
.home-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: .75rem 1.1rem;
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.home-primary-button {
    background: var(--home-ink);
    color: #fff;
    box-shadow: 0 12px 28px rgba(16, 42, 67, .18);
}

.home-primary-button:hover {
    background: #243b53;
    transform: translateY(-1px);
}

.home-secondary-button {
    background: #fff;
    border-color: #bcccdc;
    color: var(--home-ink);
}

.home-secondary-button:hover {
    background: #f0f4f8;
    border-color: #829ab1;
    transform: translateY(-1px);
}

.home-link-button {
    color: var(--home-ink);
    background: transparent;
}

.home-link-button:hover {
    background: #e9eef6;
}

.home-primary-button--large,
.home-secondary-button--large {
    min-height: 52px;
    padding-inline: 1.45rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 2.25rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(217, 226, 236, .82);
    border-radius: 2.4rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(250, 204, 21, .28), transparent 23rem),
        radial-gradient(circle at 8% 15%, rgba(47, 111, 237, .18), transparent 20rem),
        linear-gradient(135deg, #ffffff 0%, #f2f8ff 100%);
    box-shadow: 0 30px 80px rgba(16, 24, 39, .08);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 18rem;
    height: 18rem;
    border-radius: 55% 45% 60% 40%;
    background: rgba(22, 163, 74, .14);
    transform: rotate(-18deg);
}

.home-hero-copy,
.home-hero-visual {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    margin: 0 0 .75rem;
    color: var(--home-accent-strong);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(2.65rem, 6vw, 5.35rem);
    line-height: .94;
    letter-spacing: -.075em;
}

.home-lead {
    max-width: 690px;
    margin: 1.45rem 0 1.65rem;
    color: var(--home-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.home-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.home-trust-list li {
    border: 1px solid rgba(188, 204, 220, .92);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #334e68;
    font-weight: 800;
    padding: .52rem .85rem;
}

.home-hero-visual {
    justify-self: stretch;
}

.home-browser-card {
    border: 1px solid #cbd5e1;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, .94);
    padding: 1.15rem;
    box-shadow: 0 26px 70px rgba(16, 42, 67, .16);
}

.home-browser-topline {
    display: flex;
    gap: .38rem;
    margin-bottom: 1rem;
}

.home-browser-topline span {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.home-browser-topline span:nth-child(2) {
    background: #facc15;
}

.home-browser-topline span:nth-child(3) {
    background: #16a34a;
}

.home-preview-header,
.home-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.home-preview-header strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.05rem;
}

.home-preview-label {
    color: var(--home-accent-strong);
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-preview-timer {
    min-width: 5.2rem;
    border-radius: .9rem;
    background: var(--home-ink);
    color: #fff;
    font-weight: 950;
    text-align: center;
    padding: .7rem .85rem;
}

.home-question-map {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .42rem;
    margin: 1.2rem 0;
}

.home-question-map span {
    display: inline-grid;
    min-height: 2rem;
    place-items: center;
    border: 1px solid #d9e2ec;
    border-radius: .55rem;
    color: #52616f;
    background: #f8fafc;
    font-size: .78rem;
    font-weight: 900;
}

.home-question-map span.is-complete {
    border-color: rgba(47, 111, 237, .32);
    background: #eaf1ff;
    color: var(--home-accent-strong);
}

.home-question-map span.is-current {
    border-color: var(--home-ink);
    background: var(--home-ink);
    color: #fff;
}

.home-question-card {
    border: 1px solid #d9e2ec;
    border-radius: 1.2rem;
    background: #f8fafc;
    padding: 1rem;
}

.home-question-stem {
    margin: 0 0 .9rem;
    color: var(--home-ink);
    font-weight: 850;
    line-height: 1.45;
}

.home-option-list {
    display: grid;
    gap: .55rem;
}

.home-option-list span {
    border: 1px solid #d9e2ec;
    border-radius: .8rem;
    background: #fff;
    color: #334e68;
    font-weight: 800;
    padding: .65rem .8rem;
}

.home-option-list .is-selected {
    border-color: rgba(22, 163, 74, .42);
    background: rgba(22, 163, 74, .1);
    color: #166534;
}

.home-preview-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: .9rem;
}

.home-preview-footer span {
    border-radius: 999px;
    background: #eef2ff;
    color: #3444c5;
    font-size: .76rem;
    font-weight: 900;
    padding: .45rem .65rem;
}

.home-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.home-kpi-strip div {
    border: 1px solid var(--home-border);
    border-radius: 1.35rem;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 14px 34px rgba(16, 24, 39, .05);
}

.home-kpi-strip strong {
    display: block;
    color: var(--home-ink);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1;
}

.home-kpi-strip span {
    display: block;
    margin-top: .45rem;
    color: var(--home-muted);
    font-weight: 750;
    line-height: 1.35;
}

.home-section,
.home-final-cta {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--home-border);
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16, 24, 39, .05);
}

.home-section-heading {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.home-section-heading h2,
.home-final-cta h2,
.home-benefits-copy h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(1.85rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.home-section-heading p:not(.home-eyebrow),
.home-final-cta p,
.home-benefits-copy p {
    color: var(--home-muted);
    line-height: 1.65;
    font-size: 1.03rem;
}

.home-exam-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-exam-card,
.home-feature-card,
.home-pricing-card {
    border: 1px solid var(--home-border);
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 1.25rem;
}

.home-exam-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.home-exam-card--featured {
    background:
        radial-gradient(circle at 85% 10%, rgba(250, 204, 21, .22), transparent 10rem),
        linear-gradient(135deg, #ffffff, #f1f7ff);
    border-color: rgba(47, 111, 237, .28);
}

.home-exam-illustration {
    display: grid;
    min-height: 8.5rem;
    place-items: center;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #102a43, #2f6fed);
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -.05em;
}

.home-exam-illustration--muted {
    background: linear-gradient(135deg, #334e68, #829ab1);
}

.home-exam-illustration--soft {
    background: linear-gradient(135deg, #16a34a, #86efac);
    color: #052e16;
    font-size: 4rem;
}

.home-exam-card h3,
.home-feature-card h3,
.home-pricing-card h3,
.home-result-panel h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.18rem;
}

.home-exam-card p,
.home-feature-card p,
.home-pricing-card p,
.home-result-panel p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.6;
}

.home-pricing-label {
    width: fit-content;
    border-radius: 999px;
    background: #eef2ff;
    color: #3444c5;
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .45rem .65rem;
}

.home-benefits-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
    background:
        radial-gradient(circle at 10% 10%, rgba(22, 163, 74, .11), transparent 18rem),
        #fff;
}

.home-benefits-copy {
    position: sticky;
    top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.home-benefit-list {
    display: grid;
    gap: 1rem;
}

.home-benefit-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: .35rem;
    border: 1px solid var(--home-border);
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 1.15rem;
}

.home-benefit-list article > span {
    grid-row: span 2;
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 999px;
    background: var(--home-ink);
    color: #fff;
    font-size: .85rem;
    font-weight: 950;
}

.home-benefit-list h3 {
    margin: 0;
    color: var(--home-ink);
}

.home-benefit-list p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.6;
}

.home-results-section {
    background: linear-gradient(135deg, #102a43, #243b53);
}

.home-results-section .home-eyebrow,
.home-results-section h2 {
    color: #fff;
}

.home-results-grid {
    display: grid;
    grid-template-columns: .8fr 1fr 1fr;
    gap: 1rem;
}

.home-result-panel {
    display: grid;
    gap: .65rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    padding: 1.25rem;
}

.home-result-panel h3,
.home-result-panel p,
.home-result-panel span {
    color: #fff;
}

.home-result-panel--score {
    background: #fff;
    color: var(--home-ink);
}

.home-result-panel--score span,
.home-result-panel--score p {
    color: var(--home-muted);
}

.home-result-panel--score strong {
    color: var(--home-ink);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: .9;
    letter-spacing: -.08em;
}

.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-testimonial-grid blockquote {
    margin: 0;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--home-border);
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 1.25rem;
}

.home-testimonial-grid p {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.5;
}

.home-testimonial-grid footer {
    color: var(--home-muted);
    font-weight: 800;
}

.home-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background:
        radial-gradient(circle at 92% 20%, rgba(250, 204, 21, .34), transparent 13rem),
        linear-gradient(135deg, #ffffff, #eef5ff);
}

.home-final-cta > div:first-child {
    max-width: 740px;
}

.home-primary-button:focus-visible,
.home-secondary-button:focus-visible,
.home-link-button:focus-visible,
.home-brand:focus-visible,
.home-nav a:focus-visible {
    outline: 3px solid #facc15 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 7px rgba(250, 204, 21, .22);
}

@media (max-width: 1024px) {
    .home-topbar,
    .home-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-nav {
        order: 3;
        overflow-x: auto;
        width: 100%;
        padding-bottom: .25rem;
    }

    .home-hero,
    .home-benefits-section {
        grid-template-columns: 1fr;
    }

    .home-benefits-copy {
        position: static;
    }

    .home-kpi-strip,
    .home-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-shell {
        width: 100%;
    }

    .home-hero,
    .home-section,
    .home-final-cta {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }

    .home-hero h1 {
        letter-spacing: -.06em;
    }

    .home-auth-actions,
    .home-hero-actions,
    .home-final-actions {
        width: 100%;
    }

    .home-primary-button,
    .home-secondary-button,
    .home-link-button {
        width: 100%;
    }

    .home-kpi-strip,
    .home-exam-card-grid,
    .home-results-grid,
    .home-testimonial-grid,
    .home-question-map {
        grid-template-columns: 1fr;
    }

    .home-question-map {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


/* Public informational pages */
.public-page-shell {
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
}

.public-page-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e2e8f0;
}

.home-nav a[aria-current="page"] {
    color: #0f172a;
    background: #e2e8f0;
}

.public-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 76px 24px 44px;
}

.public-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.public-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 24px;
}

.public-section-heading {
    max-width: 780px;
    margin-bottom: 22px;
}

.public-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.public-card-grid {
    display: grid;
    gap: 18px;
}

.public-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-feature-list article {
    padding: 22px;
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.public-feature-list strong,
.public-feature-list span {
    display: block;
}

.public-feature-list strong {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.public-feature-list span,
.public-muted {
    color: #64748b;
    line-height: 1.65;
}

.public-pricing-matrix {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 22px;
    align-items: stretch;
}

.public-pricing-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    border: 1px solid #dbe4ef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07);
}

.public-pricing-panel--featured {
    background: linear-gradient(145deg, #102033, #162b44);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e5eef8;
}

.public-pricing-panel--featured .home-pricing-label {
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.12);
}

.public-pricing-panel--featured h3,
.public-pricing-panel--featured p {
    color: #f8fafc;
}

.public-panel-header h3 {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.public-panel-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.public-pricing-panel--featured .public-panel-header p {
    color: #cbd5e1;
}

.public-price-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.public-price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.public-price-table th,
.public-price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.public-price-table th {
    color: #334155;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f8fafc;
}

.public-price-table tr:last-child td {
    border-bottom: 0;
}

.public-price-table td strong,
.public-price-table td span {
    display: block;
}

.public-price-table td strong {
    color: #0f172a;
}

.public-price-table td span {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
}

.public-pass-price {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.06em;
}

.public-check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-check-list li {
    position: relative;
    padding-left: 28px;
    color: #dbeafe;
}

.public-check-list li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    content: "✓";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    line-height: 20px;
}

.public-timeline {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-timeline li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.public-step-marker {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 800;
}

.public-timeline h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.public-timeline p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

@media (max-width: 960px) {
    .public-card-grid--two,
    .public-card-grid--three,
    .public-feature-list,
    .public-pricing-matrix {
        grid-template-columns: 1fr;
    }

    .public-hero {
        padding-top: 52px;
    }
}

@media (max-width: 720px) {
    .public-page-topbar {
        position: static;
    }

    .public-timeline li {
        grid-template-columns: 1fr;
    }
}

.content-frame {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-frame > .content {
    flex: 1 1 auto;
}

.content-frame--public > .content--public {
    min-height: auto;
}

.app-version-footer {
    flex: 0 0 auto;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: right;
}

.app-version-footer--public {
    text-align: center;
}

.app-version-footer--exam {
    position: fixed;
    right: 0.75rem;
    bottom: 0.5rem;
    z-index: 20;
    max-width: max-content;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    text-align: right;
}

.app-version-footer:focus-within {
    outline: 3px solid #facc15;
    outline-offset: -3px;
}


/* AptIQ brand logo integration */
.brand-logo-icon,
.account-brand-logo,
.home-brand-logo {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-logo-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.18rem;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.18);
}

.brand-logo-text {
    color: #ffffff;
    letter-spacing: -0.03em;
}

.account-brand-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.15rem;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.12);
}

.home-brand-logo {
    height: 2.8rem;
    width: auto;
    max-width: 11rem;
}

.home-brand:focus-visible .home-brand-logo,
.brand:focus-visible .brand-logo-icon {
    outline: 3px solid #facc15;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .home-brand-logo {
        height: 2.35rem;
        max-width: 9.5rem;
    }
}

.account-card-wide {
    width: min(1100px, calc(100vw - 2rem));
}

.empty-state-panel {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
}

.empty-state-panel h2 {
    margin: 0 0 .5rem;
}

.empty-state-panel p {
    margin: 0 0 1rem;
    color: #64748b;
}

.invoice-document {
    color: #0f172a;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.invoice-header h1 {
    margin: .75rem 0 .25rem;
}

.invoice-muted {
    color: #64748b;
    margin: 0;
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.invoice-parties > div,
.invoice-meta {
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    padding: 1rem;
    background: #f8fafc;
}

.invoice-parties h2 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin: 0 0 .5rem;
}

.invoice-parties p,
.invoice-meta p {
    margin: 0;
}

.invoice-lines table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}

.invoice-lines th,
.invoice-lines td {
    border-bottom: 1px solid #e2e8f0;
    padding: .85rem;
    text-align: left;
}

.invoice-lines thead th {
    background: #f8fafc;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.invoice-lines tfoot th,
.invoice-lines tfoot td {
    font-size: 1.1rem;
    background: #f8fafc;
}

.invoice-amount {
    text-align: right !important;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .invoice-header,
    .invoice-parties {
        display: block;
    }

    .invoice-parties > div + div {
        margin-top: 1rem;
    }
}

@media print {
    .sidebar,
    .top-row,
    .rz-button,
    nav {
        display: none !important;
    }

    .invoice-document {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
    }
}

/* Admin configuration pages */
.admin-settings-page {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

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

.admin-page-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: #0f172a;
}

.admin-page-header p:not(.eyebrow) {
    max-width: 760px;
    margin: .5rem 0 0;
    color: #475569;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 1rem;
    align-items: start;
}

.admin-card {
    border-radius: 16px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: .35rem;
}

.form-field label,
.form-check-row {
    font-weight: 700;
    color: #0f172a;
}

.form-field small {
    color: #64748b;
}

.form-control {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    padding: .55rem .75rem;
    background: #fff;
    color: #0f172a;
}

.form-control:focus-visible,
.form-check-row input:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
    border-color: #2563eb;
}

.form-check-row {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.form-check-row input {
    width: 1.15rem;
    height: 1.15rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.settings-info-box {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
    padding: 1rem;
}

.settings-info-box h2 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    color: #1e3a8a;
}

.settings-info-box ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #1e40af;
}

.muted-text {
    color: #64748b;
}

@media (max-width: 960px) {
    .admin-grid-two,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Attempt review access controls */
.attempt-review-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
}

.attempt-review-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.attempt-review-hero h1,
.review-panel h2,
.review-card h2 {
    margin: 0;
}

.attempt-review-hero p,
.review-card p,
.locked-review-message p,
.review-access-banner p {
    margin: 0.35rem 0 0;
}

.review-panel,
.review-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 0.5fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-card.wide {
    grid-column: span 1;
}

.metric-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: #0f172a;
}

.metric-card span,
.muted-text,
.review-table span {
    color: #64748b;
}

.review-definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 1rem 0 0;
}

.review-definition-grid dt {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.review-definition-grid dd {
    margin: 0.15rem 0 0;
    color: #0f172a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.review-access-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid transparent;
}

.review-access-full {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #064e3b;
}

.review-access-summary {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}

.review-access-admin {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.review-access-denied {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.review-access-pill,
.review-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
}

.review-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.review-table th,
.review-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.review-table th {
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-table.compact {
    font-size: 0.9rem;
}

.locked-review-message {
    max-width: 720px;
}

.primary-link-button,
.secondary-link-button,
.review-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.primary-link-button {
    background: #0f766e;
    color: #ffffff;
    margin-top: 1rem;
}

.secondary-link-button,
.review-link-button {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.review-link-button {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.review-question-list,
.review-subtest-group {
    display: grid;
    gap: 1rem;
}

.review-subtest-group {
    margin-top: 1rem;
}

.review-question-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    background: #f8fafc;
}

.review-question-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-question-card h4 {
    margin: 0.2rem 0 0;
    line-height: 1.45;
}

.review-result-correct {
    background: #dcfce7;
    color: #166534;
}

.review-result-incorrect {
    background: #fee2e2;
    color: #991b1b;
}

.review-result-unanswered {
    background: #e2e8f0;
    color: #334155;
}

.review-passage {
    border-left: 4px solid #38bdf8;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.review-passage p {
    margin: 0.4rem 0;
}

.review-options {
    display: grid;
    gap: 0.55rem;
}

.review-option {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem;
}

.review-option-label {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
}

.review-option-correct,
.review-option-correct-selected {
    border-color: #86efac;
    background: #f0fdf4;
}

.review-option-selected:not(.review-option-correct-selected) {
    border-color: #fecaca;
    background: #fef2f2;
}

.review-explanation {
    margin-top: 0.9rem;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem 1rem;
}

.review-explanation summary {
    cursor: pointer;
    font-weight: 800;
}

.primary-link-button:focus-visible,
.secondary-link-button:focus-visible,
.review-link-button:focus-visible,
.review-explanation summary:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .attempt-review-hero,
    .review-question-card header,
    .review-access-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .review-grid,
    .review-definition-grid {
        grid-template-columns: 1fr;
    }
}


.nav-section-label {
    margin: 1rem 1rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.nav-section-label.admin {
    color: #0f766e;
}

.nav-section-divider {
    height: 1px;
    margin: 1rem 0.9rem 0.75rem;
    background: rgba(15, 23, 42, 0.14);
}

.nav-link.admin-link {
    border-left: 3px solid rgba(20, 184, 166, 0.35);
}

.nav-link.admin-link.active,
.nav-link.admin-link:hover {
    border-left-color: #0f766e;
}

/* Registration form alignment refinements */
.account-shell .account-card.account-card-wide {
    width: min(760px, calc(100vw - 2rem));
}

.account-card-wide .account-form {
    width: 100%;
    max-width: 720px;
}

.account-card-wide .register-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 1rem 1.5rem;
    justify-content: start;
    align-items: start;
    width: 100%;
}

.account-card-wide .register-name-grid .form-field {
    min-width: 0;
}

.account-card-wide .register-name-grid .form-control {
    width: 100%;
    max-width: 220px;
}

@media (max-width: 640px) {
    .account-shell .account-card.account-card-wide {
        width: min(100%, calc(100vw - 1.25rem));
    }

    .account-card-wide .register-name-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-card-wide .register-name-grid .form-control {
        max-width: none;
    }
}


/* Registration page: fixed name field alignment */
.register-shell {
    justify-items: center;
}

.register-shell .account-card.account-card-wide {
    width: min(760px, calc(100vw - 3rem)) !important;
    max-width: 760px !important;
}

.register-shell .register-form {
    width: 100%;
    max-width: 640px;
}

.register-shell .register-name-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 220px)) !important;
    column-gap: 2rem !important;
    row-gap: 1rem;
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 472px;
    box-sizing: border-box;
}

.register-shell .register-name-field {
    width: 220px !important;
    max-width: 220px !important;
    min-width: 0;
    box-sizing: border-box;
}

.register-shell .register-name-field .form-control {
    width: 220px !important;
    max-width: 220px !important;
    box-sizing: border-box;
}

.register-shell .register-form > .form-field:not(.register-name-field),
.register-shell .register-form > .form-field:not(.register-name-field) .form-control {
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .register-shell .account-card.account-card-wide {
        width: min(100%, calc(100vw - 1.25rem)) !important;
    }

    .register-shell .register-name-row {
        grid-template-columns: 1fr !important;
        max-width: none;
        column-gap: 0 !important;
    }

    .register-shell .register-name-field,
    .register-shell .register-name-field .form-control {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Registration page: balanced candidate signup layout */
.register-shell {
    align-items: start;
    justify-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.register-shell .account-card.account-card-wide {
    width: min(920px, calc(100vw - 2rem)) !important;
    max-width: 920px !important;
    padding: clamp(2rem, 4vw, 3rem) !important;
}

.register-shell .account-brand,
.register-shell .account-copy,
.register-shell .auth-alert,
.register-shell .register-form,
.register-shell .account-helper-links {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.register-shell .account-brand {
    align-items: center;
}

.register-shell .account-copy {
    margin-bottom: 1.5rem !important;
}

.register-shell .register-form {
    display: grid;
    gap: 1.25rem;
}

.register-shell .register-name-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 720px !important;
    justify-content: stretch !important;
    align-items: start !important;
}

.register-shell .register-name-field,
.register-shell .register-name-field .form-control,
.register-shell .register-form > .form-field:not(.register-name-field),
.register-shell .register-form > .form-field:not(.register-name-field) .form-control,
.register-shell .password-policy,
.register-shell .primary-action {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.register-shell .register-name-field {
    min-width: 0 !important;
}

.register-shell .form-control {
    min-height: 3.35rem;
}

.register-shell .primary-action {
    min-height: 3.5rem;
}

@media (max-width: 720px) {
    .register-shell .account-card.account-card-wide {
        width: min(100%, calc(100vw - 1rem)) !important;
        padding: 1.5rem !important;
    }

    .register-shell .register-name-row {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* Candidate profile */
.profile-page {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 1.5rem;
    color: #102a43;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-header h1 {
    margin: .15rem 0 .35rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: #102a43;
}

.profile-header p {
    max-width: 760px;
    margin: 0;
    color: #52616f;
    line-height: 1.6;
}

.profile-status-card {
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #d9e1ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.profile-status-card strong,
.profile-status-card span {
    display: block;
}

.profile-status-card span {
    margin-top: .15rem;
    color: #52616f;
    font-size: .9rem;
}

.profile-status-dot {
    width: .75rem;
    height: .75rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, .12);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.25rem;
    align-items: start;
}

.profile-card {
    background: #fff;
    border: 1px solid #d9e1ec;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
    padding: 1.5rem;
}

.profile-card-main {
    min-width: 0;
}

.profile-main-stack {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.profile-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-card h2,
.profile-card-heading h2 {
    margin: 0 0 .35rem;
    color: #102a43;
    font-size: 1.35rem;
}

.profile-card-heading p,
.profile-note {
    margin: 0;
    color: #52616f;
    line-height: 1.55;
}

.profile-form {
    display: grid;
    gap: 1rem;
    max-width: 760px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-form .form-field small {
    color: #627d98;
    font-weight: 500;
    line-height: 1.45;
}

.security-form {
    margin-top: .5rem;
}

.security-note {
    padding: .85rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
}

.readonly-control {
    background: #f8fafc;
    color: #334e68;
    cursor: not-allowed;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: .25rem;
}

.profile-form-actions .primary-action {
    width: min(100%, 280px);
}

.profile-record-list {
    display: grid;
    gap: .85rem;
    margin: .75rem 0 1.25rem;
}

.profile-record-list div {
    display: grid;
    gap: .15rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf2f7;
}

.profile-record-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-record-list dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #627d98;
    font-weight: 700;
}

.profile-record-list dd {
    margin: 0;
    color: #102a43;
    font-weight: 650;
}

.profile-loading {
    color: #52616f;
}

@media (max-width: 980px) {
    .profile-header,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-header {
        display: grid;
    }

    .profile-status-card {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .profile-page {
        padding: 1rem;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 1.15rem;
    }

    .profile-form-actions .primary-action {
        width: 100%;
    }
}

.profile-record-divider {
    width: 100%;
    height: 1px;
    margin: 1.25rem 0;
    background: #e2e8f0;
}
