: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;
}

.legal-disclaimer {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.58;
}

.legal-disclaimer--hero,
.legal-disclaimer--surface {
    padding: 0.9rem 1rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.legal-disclaimer--hero {
    max-width: 820px;
}

.legal-disclaimer--surface {
    color: #334155;
    background: #ffffff;
}

.legal-disclaimer--footer {
    display: block;
    margin-top: 0.2rem;
    color: inherit;
    font-size: 0.76rem;
}

@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: 30px;
}

.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%;
    box-sizing: border-box;
    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;
}

.verification-code-control {
    max-width: 220px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
}

.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-inline-link {
    color: var(--home-accent-strong);
    font-weight: 850;
    padding: .75rem .25rem;
    text-decoration: underline;
    text-underline-offset: .22rem;
}

.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,
.home-hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--home-ink);
    font-size: 30px;
    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: 30px;
    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-module-tabs .rz-tabview-panels {
    padding: 1.25rem 0 0;
}

.home-module-tabs .rz-tabview-nav {
    overflow-x: auto;
    scrollbar-width: thin;
}

.home-module-tabs .rz-tabview-nav li {
    flex: 0 0 auto;
}

.home-module-grid .rz-card.home-module-card {
    height: 100%;
    border-radius: 1.35rem;
    background: #f8fafc;
}

.home-module-card h3,
.home-module-card p {
    margin: 0;
}

.home-module-card h3 {
    color: var(--home-ink);
    font-size: 1.18rem;
}

.home-module-card p {
    color: var(--home-muted);
    line-height: 1.6;
}

.home-module-card-action {
    width: fit-content;
    margin-top: auto;
}

.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-count {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(47, 111, 237, .18);
    background: #fff;
    padding: .55rem .75rem;
    box-shadow: 0 10px 24px rgba(16, 24, 39, .05);
}

.home-exam-count strong {
    color: var(--home-ink);
    font-size: 1.35rem;
    line-height: 1;
}

.home-exam-count span {
    color: var(--home-muted);
    font-size: .82rem;
    font-weight: 850;
}

.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,
.home-testimonial-grid article {
    margin: 0;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--home-border);
    border-radius: 1.35rem;
    background: #f8fafc;
    padding: 1.25rem;
}

.home-testimonial-grid h3 {
    margin: 0;
    color: var(--home-ink);
}

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

.home-testimonial-grid a {
    align-self: end;
    color: var(--home-accent-strong);
    font-weight: 850;
}

.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-inline-link: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,
    .home-hero h2 {
        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 {
    --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;
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
}

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

.public-page-topbar__inner {
    width: min(100% - 3rem, 1188px);
    margin: 0 auto;
}

.support-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) 1.5rem;
}

.support-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    width: min(100% - 3rem, 1120px);
    min-height: 5rem;
    margin: 0 auto;
    border-bottom: 1px solid #e2e8f0;
}
.support-brand { display: inline-flex; align-items: center; }
.support-brand img { display: block; width: auto; height: 2.4rem; }
.support-nav { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.support-nav a, .support-nav-action { color: #243b53; font-weight: 700; text-decoration: none; }
.support-nav a:hover, .support-nav-action:hover { color: #0f4da8; }
.support-nav-action { padding: .65rem 1rem; border: 1px solid #b8c8d2; border-radius: 999px; }

.support-intro { max-width: 100%; }
.support-intro h1 { font-size: 30px; line-height: 1.15; margin: .5rem 0 1rem; }
.support-card { background: #fff; border: 1px solid #dce5ea; border-radius: 1.25rem; box-shadow: 0 20px 60px rgba(20, 48, 63, .09); padding: clamp(1.5rem, 4vw, 3rem); }
.support-form { display: grid; gap: 1.25rem; }
.support-form .home-primary-button {
    width: fit-content;
    min-width: 10rem;
    background: #0f4da8;
    border-color: #0f4da8;
    color: #fff;
    cursor: pointer;
}
.support-form .home-primary-button:hover:not(:disabled) {
    background: #0b3c84;
    border-color: #0b3c84;
}
.support-form .home-primary-button:focus-visible {
    outline: 3px solid rgba(15, 77, 168, .3);
    outline-offset: 3px;
}
.support-form .home-primary-button:disabled {
    background: #829ab1;
    border-color: #829ab1;
    color: #fff;
    cursor: not-allowed;
    opacity: .75;
}
.support-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.support-form label { display: grid; gap: .45rem; color: #163847; font-weight: 650; }
.support-phone-field { display: grid; gap: .45rem; color: #163847; font-weight: 650; }
.support-phone-inputs { display: grid; grid-template-columns: minmax(11rem, .85fr) minmax(0, 1.15fr); gap: .65rem; }
.support-country-code { min-width: 0; }
.support-country-option { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
.support-country-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-country-option img { display: block; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .14); object-fit: cover; }
.support-message { min-height: 10rem; resize: vertical; }
.support-required { color: #627781; font-size: .875rem; margin: -.5rem 0 0; }
.support-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#support-turnstile-widget { min-height: 65px; }
.turnstile-widget { min-height: 65px; max-width: 100%; }

@media (max-width: 760px) {
    .support-shell, .support-form-grid { grid-template-columns: 1fr; }
    .support-shell { padding-top: 2rem; }
    .support-phone-inputs { grid-template-columns: 1fr; }
}

.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: 30px;
    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: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.public-error-title {
    font-size: 30px;
}

.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-pricing-notice {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #dbe4ef;
    border-radius: 1rem;
    background: #f8fafc;
    color: #475569;
}

.public-pricing-notice h3,
.public-pricing-notice p {
    margin: 0;
}

.public-pricing-notice .home-secondary-button {
    width: fit-content;
}

.public-pricing-notice--dark {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #e5eef8;
}

.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-price-action {
    min-height: 38px;
    padding: .6rem .85rem;
    white-space: nowrap;
}

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

.public-pass-options {
    display: grid;
    gap: 1rem;
}

.public-pass-option {
    display: grid;
    gap: .75rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .08);
}

.public-pass-option h4,
.public-pass-option p {
    margin: 0;
}

.public-pass-option h4 {
    margin-top: .3rem;
    color: #fff;
    font-size: 1.18rem;
}

.public-pass-option .home-secondary-button {
    width: fit-content;
}

.public-pass-type {
    color: #c7d2fe;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.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--light li {
    color: #475569;
}

.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;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-version-footer--public {
    padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.app-footer-legal,
.app-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.register-legal-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #334155;
    font-size: .9rem;
    line-height: 1.5;
}

.register-legal-consent input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .15rem;
    flex: 0 0 auto;
}

.exam-start-refund-warning {
    margin: 0;
    padding: .85rem 1rem;
    border-left: 4px solid #dc2626;
    border-radius: .35rem;
    background: #fef2f2;
    color: #7f1d1d;
    font-weight: 700;
}

.exam-start-terms-link {
    margin: 0;
    font-size: .875rem;
}

.app-footer-legal {
    text-align: left;
}

.app-footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.app-footer-legal a:hover {
    color: #0f172a;
}

.app-footer-meta {
    justify-content: flex-end;
    text-align: right;
}

.app-version-footer--exam {
    position: fixed;
    right: 0.75rem;
    bottom: 4.75rem;
    z-index: 5;
    max-width: 18rem;
    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;
    pointer-events: none;
}

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

@media (max-width: 640px) {
    .app-version-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-footer-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .app-version-footer--exam {
        display: none;
    }
}


/* 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;
}

.qbu-refined > .rz-alert,
.qbu-refined > .rz-stack,
.qbu-shell ~ * {
    display: none;
}

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

.qbu-shell,
.qbu-shell *,
.qbu-shell *::before,
.qbu-shell *::after {
    box-sizing: border-box;
}

.qbu-rail,
.qbu-workspace,
.qbu-tab-panel,
.qbu-message-stack {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.qbu-rail {
    width: 100%;
    max-width: 320px;
    overflow: hidden;
}

.qbu-rail .rz-dropdown,
.qbu-workspace .rz-tabview,
.qbu-workspace .rz-tabview-panels,
.qbu-workspace .rz-tabview-panel,
.qbu-message-stack .rz-alert {
    max-width: 100%;
    min-width: 0;
}

.qbu-rail .rz-dropdown {
    width: 100% !important;
    overflow: hidden;
}

.qbu-rail .rz-dropdown-label,
.qbu-rail .rz-dropdown-items-wrapper,
.qbu-rail .rz-dropdown-item {
    min-width: 0;
    max-width: 100%;
}

.qbu-rail .rz-dropdown-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qbu-message-stack .rz-alert {
    overflow-wrap: anywhere;
}

.qbu-panel,
.qbu-tab-panel {
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    background: var(--rz-base-background-color);
    padding: 1rem;
    min-width: 0;
    max-width: 100%;
}

.qbu-panel-heading,
.qbu-section-head,
.qbu-blueprint {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.qbu-panel-heading > *,
.qbu-section-head > *,
.qbu-blueprint > * {
    min-width: 0;
}

.qbu-section-head > div,
.qbu-blueprint > span {
    flex: 1 1 18rem;
}

.qbu-panel-heading {
    align-items: center;
    margin-bottom: .75rem;
    font-weight: 800;
    color: #0f172a;
}

.qbu-bank-card,
.qbu-folder-card,
.qbu-dropzone,
.qbu-blueprint,
.qbu-details {
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    background: var(--rz-base-50);
    padding: .85rem;
}

.qbu-bank-card,
.qbu-folder-card {
    display: grid;
    gap: .5rem;
    margin-top: .75rem;
}

.qbu-bank-card span,
.qbu-folder-card span,
.qbu-muted,
.qbu-section-head p,
.qbu-blueprint span,
.qbu-table td span {
    color: var(--rz-text-secondary-color);
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.qbu-chip-row,
.qbu-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

.qbu-chip-row .rz-badge,
.qbu-actions .rz-button {
    max-width: 100%;
}

.qbu-chip-row .rz-badge {
    white-space: normal;
    overflow-wrap: anywhere;
}

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

.qbu-metric-grid.compact {
    margin-top: .75rem;
}

.qbu-metric-grid > div {
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    padding: .65rem;
    background: #fff;
}

.qbu-metric-grid span {
    display: block;
    color: var(--rz-text-secondary-color);
    font-size: .75rem;
    text-transform: uppercase;
}

.qbu-metric-grid strong {
    display: block;
    margin-top: .15rem;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.qbu-section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.qbu-section-head p {
    margin: .2rem 0 0;
}

.qbu-upload-grid,
.qbu-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 1rem;
    align-items: start;
}

.qbu-dropzone label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 800;
}

.qbu-dropzone > label:not(:first-child) {
    margin-top: 1.25rem;
}

.qbu-dropzone input[type="file"] {
    display: block;
    width: 100%;
    padding: .8rem;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.qbu-dropzone input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: 6px;
    background: #e8eefb;
    color: #0f4da8;
    font-weight: 700;
    cursor: pointer;
}

.qbu-blueprint strong {
    color: #0f172a;
}

.exam-module-table-wrap {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    background: #fff;
}

.exam-module-table {
    width: 100%;
}

.exam-module-table .rz-datatable-thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.exam-module-table .rz-datatable-data td {
    vertical-align: middle;
}

.exam-module-identity > div > strong,
.exam-module-identity > div > span {
    display: block;
}

.module-cell-note {
    color: #64748b;
    font-size: .78rem;
}

.inventory-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.inventory-metrics article {
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.inventory-metrics span,
.inventory-metrics small,
.inventory-module span {
    display: block;
    color: #64748b;
}

.inventory-metrics span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.inventory-metrics strong {
    display: block;
    margin: .15rem 0;
    color: #0f172a;
    font-size: 1.55rem;
}

.inventory-metrics small,
.inventory-module span {
    font-size: .76rem;
}

.inventory-metric--warning { border-top: 3px solid #f59e0b !important; }
.inventory-metric--info { border-top: 3px solid #3b82f6 !important; }
.inventory-metric--success { border-top: 3px solid #22c55e !important; }

.inventory-grid-wrap {
    overflow: hidden;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    background: #fff;
}

.inventory-module strong,
.inventory-module span {
    overflow-wrap: anywhere;
}

.inventory-detail-section {
    display: grid;
    gap: .85rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.inventory-detail-section h3 {
    margin: 0;
    color: #0f172a;
}

.inventory-filters {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.inventory-filters .rz-dropdown {
    min-width: 150px;
}

@media (max-width: 760px) {
    .inventory-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .inventory-metrics {
        grid-template-columns: 1fr;
    }

    .inventory-filters,
    .inventory-filters .rz-dropdown {
        width: 100%;
    }
}

.exam-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.exam-module-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--rz-border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
}

.exam-module-card__header,
.exam-module-card__footer,
.exam-module-identity,
.exam-module-toggle {
    display: flex;
    align-items: center;
}

.exam-module-card__header,
.exam-module-card__footer {
    justify-content: space-between;
    gap: 1rem;
}

.exam-module-identity {
    gap: .75rem;
    min-width: 0;
}

.exam-module-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e8eefb;
    color: #0f4da8;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.exam-module-identity h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
}

.exam-module-key {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.exam-module-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.exam-module-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.exam-module-summary > div {
    min-width: 0;
    padding: .7rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .8);
}

.exam-module-summary span,
.exam-module-summary strong {
    display: block;
}

.exam-module-summary span {
    margin-bottom: .2rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.exam-module-summary strong {
    color: #1e293b;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.module-dialog {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.module-dialog__heading,
.module-dialog__section-title,
.module-dialog__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.module-dialog__heading h2,
.module-dialog__section-title strong {
    margin: 0;
    color: #0f172a;
}

.module-dialog__heading p,
.module-dialog__section-title small {
    display: block;
    margin: .15rem 0 0;
    color: #64748b;
}

.module-dialog__section {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.module-dialog__section-title .rz-icon {
    padding: .5rem;
    border-radius: 9px;
    background: #e8eefb;
    color: #0f4da8;
    font-size: 1.25rem;
}

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

.module-dialog__grid label > span {
    display: block;
    margin-bottom: .35rem;
    color: #334155;
    font-size: .82rem;
    font-weight: 800;
}

.module-dialog__toggle {
    padding-top: .25rem;
}

.module-dialog__actions {
    justify-content: flex-end;
    padding-top: .25rem;
}

.exam-module-fields label {
    min-width: 0;
}

.exam-module-fields label > span {
    display: block;
    margin-bottom: .35rem;
    color: #334155;
    font-size: .82rem;
    font-weight: 800;
}

.exam-module-fields small,
.exam-module-toggle small {
    display: block;
    margin-top: .3rem;
    color: #64748b;
    font-size: .75rem;
}

.exam-module-card__footer {
    padding-top: .9rem;
    border-top: 1px solid #e2e8f0;
}

.exam-module-toggle {
    gap: .6rem;
    cursor: pointer;
}

.exam-module-toggle strong {
    display: block;
    color: #334155;
    font-size: .85rem;
}

@media (max-width: 560px) {
    .exam-module-summary,
    .module-dialog__grid {
        grid-template-columns: 1fr;
    }

    .exam-module-fields {
        grid-template-columns: 1fr;
    }

    .exam-module-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .exam-module-card__footer .rz-button {
        width: 100%;
    }
}

.qbu-folder-card code {
    display: block;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
    color: #334155;
}

.qbu-file-list,
.qbu-mini-list {
    margin: .6rem 0 0;
    padding-left: 1.1rem;
    color: var(--rz-text-secondary-color);
}

.qbu-file-list {
    max-height: 12rem;
    overflow: auto;
}

.qbu-file-list li {
    margin-bottom: .25rem;
    overflow-wrap: anywhere;
}

.qbu-file-list li span {
    color: #64748b;
    font-size: .85rem;
}

.qbu-details summary {
    cursor: pointer;
    font-weight: 800;
}

.qbu-details ul {
    margin: .6rem 0 0;
    padding-left: 1.1rem;
    color: var(--rz-text-secondary-color);
    max-height: 16rem;
    overflow: auto;
}

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

.qbu-table {
    min-width: 720px;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.qbu-table th,
.qbu-table td {
    padding: .6rem;
    border-bottom: 1px solid var(--rz-border-color);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.qbu-table th {
    text-align: left;
    color: #475569;
    font-size: .8rem;
    text-transform: uppercase;
}

.qbu-table th:not(:first-child),
.qbu-table td:not(:first-child) {
    text-align: right;
}

.qbu-table td:first-child {
    width: 34%;
}

.qbu-table td:first-child strong,
.qbu-table td:first-child span {
    display: block;
}

.qbu-table td:last-child,
.qbu-table th:last-child {
    text-align: left;
}

@media (max-width: 980px) {
    .qbu-shell,
    .qbu-upload-grid,
    .qbu-split {
        grid-template-columns: 1fr;
    }

    .qbu-rail {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .admin-settings-page.qbu-refined {
        width: min(100% - 1rem, 1440px);
    }

    .qbu-panel,
    .qbu-tab-panel,
    .qbu-bank-card,
    .qbu-folder-card,
    .qbu-dropzone,
    .qbu-blueprint,
    .qbu-details {
        padding: .75rem;
    }

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

    .qbu-actions .rz-button {
        flex: 1 1 10rem;
    }
}

.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-section-tabs {
    margin-top: 1rem;
}

.review-section-tabs .rz-tabview-nav {
    overflow-x: auto;
    scrollbar-width: thin;
}

.review-section-tabs .rz-tabview-nav li {
    flex: 0 0 auto;
}

.review-section-tabs .rz-tabview-panels {
    padding: 0;
}

.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-written-response,
.review-ai-assessment {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-written-response h5,
.review-ai-assessment h5,
.review-ai-assessment p {
    margin: 0;
}

.review-written-response p {
    margin: 0.55rem 0 0;
    white-space: pre-wrap;
}

.review-ai-assessment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-ai-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.85rem;
}

.review-ai-score-grid div {
    border-radius: 10px;
    background: #eff6ff;
    padding: 0.7rem;
}

.review-ai-score-grid dt {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.review-ai-score-grid dd {
    margin: 0.2rem 0 0;
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 800;
}

.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;
    }

    .review-ai-score-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-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.profile-section-nav a {
    padding: .45rem .7rem;
    border: 1px solid #d9e1ec;
    border-radius: 999px;
    background: #fff;
    color: #334e68;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-section-nav a:hover,
.profile-section-nav a:focus-visible {
    border-color: #829ab1;
    color: #102a43;
}

#personal-details,
#sign-in-verification,
#change-password,
#recent-login {
    scroll-margin-top: 1.5rem;
}

.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-status-dot--archived {
    background: #d97706;
    box-shadow: 0 0 0 6px rgba(217, 119, 6, .14);
}

.profile-status-card--archived {
    border-color: #f3d29b;
    background: #fffbeb;
}

.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-security-section {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.profile-security-heading {
    margin: .5rem 0 -.25rem;
}

.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;
    width: 100%;
    max-width: 760px;
}

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

.profile-form .form-field {
    min-width: 0;
}

.profile-form .form-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

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

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

.security-toggle {
    align-items: flex-start;
    font-weight: 650;
}

.security-toggle input {
    flex: 0 0 auto;
    margin-top: .2rem;
}

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

.profile-password-toggle {
    width: fit-content;
    color: #334e68;
    font-size: .9rem;
    font-weight: 650;
}

.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 {
    display: flex;
    align-items: center;
    gap: .75rem;
    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: 720px) {
    .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;
}

/* Contact form controls are scoped here so later account/profile rules cannot resize them. */
.support-card,
.support-card * {
    box-sizing: border-box;
}

.support-form {
    gap: 1.5rem;
}

.support-form-grid {
    column-gap: 2rem;
    row-gap: 1.5rem;
}

.support-form .form-control {
    display: block;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    margin: 0;
    padding: .65rem .85rem;
    border: 1px solid #b8c8d2;
    border-radius: .65rem;
    background: #fff;
    color: #102a43;
    font: inherit;
    line-height: 1.25;
}

.support-form .support-message {
    height: 9rem;
    min-height: 9rem;
    padding-top: .8rem;
    resize: vertical;
}

.support-phone-inputs {
    grid-template-columns: minmax(12rem, 42%) minmax(0, 1fr);
    gap: .75rem;
    min-width: 0;
}

.support-phone-inputs > * {
    min-width: 0;
}

.support-form .support-country-code {
    display: flex;
    align-items: center;
    padding: 0 .5rem 0 .75rem;
}

.support-form .support-country-code.rz-dropdown .rz-dropdown-label {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
    padding: 0;
    line-height: 1.25;
}

.support-form .support-country-code.rz-dropdown .rz-dropdown-trigger {
    display: flex;
    align-items: center;
    align-self: stretch;
}

.rz-dropdown-panel .support-country-option {
    width: 100%;
    min-height: 2rem;
}

@media (max-width: 760px) {
    .support-form-grid {
        gap: 1.25rem;
    }

    .support-phone-inputs {
        grid-template-columns: 1fr;
    }

    .support-topbar { grid-template-columns: 1fr auto; gap: 1rem; }
    .support-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: .9rem; }
}
.required-label > span:first-child::after,
.required-label-text::after,
.required-field .rz-form-field-label::after {
    content: " *";
    color: #dc2626;
    font-weight: 800;
}
.required-marker { color:#dc2626; font-weight:800; }
.centered-admin-dialog {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
}

.centered-admin-dialog > .rz-dialog {
    position: relative !important;
    inset: auto !important;
    margin: auto !important;
}

/* Keep every Radzen modal and confirmation centered in the visible viewport. */
.rz-dialog-wrapper {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem;
}

.rz-dialog-wrapper > .rz-dialog:not(.rz-dialog-side) {
    position: relative !important;
    inset: auto !important;
    margin: auto !important;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
}
