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

@font-face {
    font-family: "OpenDyslexic";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src:
        url("./fonts/OpenDyslexic-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "OpenDyslexic";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src:
        url("./fonts/OpenDyslexic-Bold.woff2") format("woff2");
}

:root {
    --etss-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --etss-font-family-open-dyslexic: "OpenDyslexic", "Open Dyslexic", "OpenDyslexicAlta", "OpenDyslexic-Regular", Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--etss-font-family);
    color: #16181d;
    background: #fbfbfbbf;
}

html.etss-font-open-dyslexic,
body.etss-font-open-dyslexic {
    font-family: var(--etss-font-family-open-dyslexic);
}

body.etss-font-open-dyslexic :where(
    p,
    span,
    div,
    a,
    li,
    label,
    button,
    input,
    textarea,
    select,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
) {
    font-family: var(--etss-font-family-open-dyslexic);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 14px 10px;
    background: white;
    border-right: 1px solid rgb(243 243 243);
}

.app-sidebar__logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    color: #0a91f4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-sidebar__nav,
.app-sidebar__footer {
    width: 100%;
    display: grid;
    gap: 18px;
}

.app-sidebar__footer {
    margin-top: auto;
}

.app-sidebar__link {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 10px 6px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: #5c6573;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-sidebar__nav .app-sidebar__link {
    padding: 10px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(22, 24, 29, 0.35);
    transition: color 0.18s ease, opacity 0.18s ease;
}

.app-sidebar__link:hover {
    transform: translateY(-1px);
}

.app-sidebar__nav .app-sidebar__link:hover {
    transform: none;
    color: rgba(22, 24, 29, 0.6);
}

.app-sidebar__link.is-active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(22, 24, 29, 0.08);
    box-shadow: 0 14px 26px rgba(22, 24, 29, 0.08);
    color: #101828;
}

.app-sidebar__nav .app-sidebar__link.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0a91f4;
}

.app-sidebar__link.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.app-sidebar__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #edf3f8;
    color: #0a91f4;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.app-sidebar__nav .app-sidebar__icon {
    width: 26px;
    height: 26px;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0;
}

.app-sidebar__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.app-sidebar__nav .app-sidebar__icon svg {
    width: 24px;
    height: 24px;
}

.app-sidebar__link.is-active .app-sidebar__icon {
    background: linear-gradient(180deg, #31bcfb 0%, #008ef3 100%);
    color: #ffffff;
}

.app-sidebar__nav .app-sidebar__link.is-active .app-sidebar__icon {
    background: transparent;
    color: currentColor;
}

.app-main {
    width: calc(100% - 70px);
    margin-left: 70px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    background: white;
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
    backdrop-filter: blur(16px);
}

.app-topbar .brandbar,
.app-topbar .topbar {
    max-width: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
}

.app-topbar .brandbar {
    margin-bottom: 0;
    padding-top: 0px;
    padding-bottom: 0px;
    border-bottom: 1px solid rgb(22 24 29 / 5%);
}

.app-topbar .topbar {
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.assessment-navbar {
    width: 100%;
    border-bottom: 1px solid rgba(22, 24, 29, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.assessment-navbar__inner {
    width: min(1320px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(260px, 1.05fr) minmax(220px, 0.9fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
}

.assessment-navbar__brand,
.assessment-navbar__actions,
.assessment-navbar__candidate {
    display: flex;
    align-items: center;
}

.assessment-navbar__brand,
.brand {
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.assessment-navbar__logo,
.logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(22, 24, 29, 0.08);
    box-shadow: 0 10px 24px rgba(22, 24, 29, 0.08);
    color: #0a91f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assessment-navbar__logo img,
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.assessment-navbar__copy,
.brand-copy {
    min-width: 0;
}

.assessment-navbar__title,
.brand-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.015rem;
    font-family: 'system-ui';
}

.assessment-navbar__subtitle,
.brand-subtitle {
    margin: 4px 0 0;
    color: #5c6573;
    font-size: 14px;
    line-height: 1.4;
}

.assessment-navbar__center {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.assessment-navbar__meta,
.meta {
    margin: 0;
    color: #5c6573;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.assessment-navbar__progress-track,
.progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(22, 24, 29, 0.08);
    overflow: hidden;
}

.assessment-navbar__progress-bar,
.progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #31bcfb 0%, #008ef3 100%);
    transition: width 0.22s ease;
}

.assessment-navbar__progress-bar.is-complete {
    width: 100%;
}

.assessment-navbar__actions {
    justify-content: flex-end;
    gap: 12px;
}

.assessment-navbar__candidate,
.candidate {
    gap: 4px;
    padding: 0;
    border-radius: 0;
    min-height: auto;
    background: transparent;
    border: 0;
}

.assessment-navbar__candidate {
    flex-direction: column;
    align-items: flex-start;
}

.candidate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.assessment-navbar__candidate-label,
.candidate-label {
    margin: 0;
    color: #5c6573;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assessment-navbar__candidate-name,
.candidate-name {
    margin: 0;
    color: #16181d;
    font-size: 14px;
    font-weight: 500;
}

.assessment-navbar__pill,
.timer-chip,
.status-pill,
.topnav-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #16181d;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.timer-chip,
.status-pill {
    letter-spacing: 0;
    text-transform: none;
}

.topnav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 100%;
}

.topnav-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 118px;
    min-height: 56px;
    padding: 0 20px;
    white-space: nowrap;
    text-decoration: none;
}

.topnav-box--action {
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.topnav-actions > * + *::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 100%;
    background: rgb(243 243 243);
    transform: translateY(-50%);
}

.topnav-box--action:hover {
    color: #16181d;
}

.topnav-box--toggle[aria-pressed="true"] {
    color: #0a91f4;
    background: #f2f8ff;
}

.topnav-box--toggle {
    cursor: pointer;
    user-select: none;
}

.topnav-box__icon {
    width: 18px;
    height: 18px;
    display: block;
    color: currentColor;
}

.topnav-box__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.topnav-box__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.topnav-box__label {
    color: #5c6573;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topnav-box__value {
    color: #16181d;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 400;
}

.topnav-box--action .topnav-box__value {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    font-family: 'system-ui';
}

.topnav-box--candidate {
    max-width: 220px;
}

.assessment-navbar__home,
.home-link,
.header-link {
    color: #16181d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    font-family: 'system-ui';
}

.page {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 42px;
}

.page--assessment {
    padding-top: 0;
}

.page--results {
    display: grid;
    gap: 18px;
}

.page--results > * {
    margin: 0 !important;
}

.page--portal {
    display: grid;
    gap: 18px;
}

.portal-copy-limit {
    max-width: 50%;
}

.portal-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
}

.portal-stack,
.portal-tests {
    display: grid;
    gap: 16px;
}

.portal-tests--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-form {
    display: grid;
    gap: 14px;
}

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

.portal-label {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.portal-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(22, 24, 29, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #16181d;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-input:focus {
    outline: none;
    border-color: rgba(10, 145, 244, 0.45);
    box-shadow: 0 0 0 3px rgba(10, 145, 244, 0.12);
}

.portal-actions {
    display: flex;
    gap: 10px;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 999px;
    background: #f8fbff;
    color: #344054;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-status__dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 8px;
}

.portal-status--pending {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.portal-status--completed {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #027a48;
}

.portal-status--neutral {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475467;
}

.portal-message {
    padding: 18px 20px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.portal-message--error {
    border-color: rgba(180, 35, 24, 0.18);
    background: #fff5f4;
    color: #b42318;
}

.portal-section {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
}

.portal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: none;
}

.portal-section-head h2 {
    margin: 0;
    color: #16181d;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.portal-section-note {
    margin: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-test {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 0px;
    background: #ffffff;
    min-height: 240px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.portal-test::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 0px;
    background: linear-gradient(180deg, #31bcfb 0%, #008ef3 100%);
}

.portal-test__body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.portal-test__status {
    position: static;
    justify-self: start;
}

.portal-test__title {
    margin: 0;
    color: #16181d;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.portal-test__copy {
    margin: 0;
    color: #5c6573;
    font-size: 14px;
    line-height: 1.6;
}

.portal-test__action {
    min-width: 148px;
    margin-top: auto;
    justify-self: start;
}

.portal-test:has(.portal-status--pending) {
    border-color: rgba(194, 65, 12, 0.14);
}

.portal-test:has(.portal-status--completed) {
    border-color: rgba(2, 122, 72, 0.14);
}

.portal-test:has(.portal-status--completed)::before {
    background: linear-gradient(180deg, #29c18b 0%, #0d9f6e 100%);
}

.portal-empty {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.shell {
    width: 100%;
}

.brandbar,
.topbar {
    width: 100%;
    margin-left: 0;
    padding-left: 24px;
    padding-right: 24px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    background: white;

}

.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-radius: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(249, 251, 252, 0.92);
}

.topbar-right {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.brandbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
}

.topbar .progress-track {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    height: 12px;
    background: rgba(22, 24, 29, 0.08);
}

.completion-actions {
    grid-column: 2;
    margin: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 2;
    margin: 0;
}

.result-followup {
    margin: 6px 0 0;
    color: #027a48;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.card,
.intro-card,
.hero,
.summary-card,
.section-card,
.panel,
.section,
.trait-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(22, 24, 29, 0.08);
}

.card,
.intro-card,
.hero,
.panel,
.section,
.section-card {
    border-radius: 8px;
}

.card,
.intro-card,
.hero,
.section-card,
.panel,
.section {
    padding: 26px;
}

.summary-card,
.trait-card,
.review-card,
.metric-card {
    border-radius: 24px;
}

.intro-kicker,
.hero-kicker,
.summary-label,
.metric-label,
.section-title,
.trait-label,
.review-number,
.question-category,
.question-counter,
.narrative-title {
    text-transform: uppercase;
}

.intro-kicker,
.hero-kicker {
    margin: 0 0 12px;
    color: #5c6573;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.intro-title,
.result-title {
    margin: 0 0 14px;
    color: #16181d;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.question-text {
    margin: 0 0 12px;
    color: #16181d;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.intro-copy,
.result-copy,
.narrative-copy,
.trait-copy,
.metric-copy,
.summary-note,
.completion-copy,
.hint,
.review-empty,
.review-option-text {
    margin: 0;
    color: #5c6573;
    font-size: 14px;
    line-height: 1.55;
}

.intro-points {
    display: grid;
    gap: 8px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.intro-points li {
    padding: 12px 14px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 8px;
    background: #f8fbff;
    font-size: 14px;
    line-height: 1.45;
}

.intro-actions,
.button-row,
.actions {
    display: flex;
    gap: 12px;
}

.button-primary,
.button-secondary,
button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.button-primary,
button.button-primary {
    background: #0a91f4;
    color: #ffffff;
    border-color: #0a91f4;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
}

.button-secondary,
button.button-secondary {
    background: #ffffff;
    color: #16181d;
    border: 1px solid rgba(22, 24, 29, 0.12);
    font-size: 14px;
    font-weight: 600;
}

.button-primary:hover,
.button-secondary:hover,
button:hover {
    transform: none;
}

.button-primary:disabled,
.button-secondary:disabled,
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.question-panel {
    position: relative;
    min-height: 430px;
    padding: 0;
}

#questionView.card,
#questionCard.card {
    min-height: 560px;
}

#questionStage {
    min-height: 430px;
}

.question-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #fbfcfe;
    border: 1px solid #eef2f6;
    z-index: 0;
}

.question-head,
.choices,
.question-figure,
.question-number,
#questionText,
#questionNumber {
    position: relative;
    z-index: 1;
}

.question-head {
    padding: 22px 22px 10px;
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.question-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f7fc;
    color: #0a91f4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.question-counter,
.question-number {
    margin: 0 0 10px;
    color: #5c6573;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.question-number {
    padding: 0 4px;
}

.question-figure {
    position: relative;
    z-index: 1;
    padding: 0 22px 14px;
}

.figure-frame,
.sequence-frame,
.review-figure,
.review-stem,
.choice-visual,
.review-option-visual {
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(22, 24, 29, 0.08);
    overflow: hidden;
}

.figure-frame,
.sequence-frame {
    min-height: 160px;
    padding: 16px;
}

.page--iq .question-panel {
    min-height: 0;
}

.page--iq #questionView.card {
    min-height: 0;
}

.page--iq #questionStage {
    min-height: 0;
}

.page--iq .question-head {
    padding: 22px 22px 8px;
}

.page--iq .question-meta {
    justify-content: flex-end;
    margin-bottom: 8px;
}

.page--iq .question-text {
    max-width: 860px;
    margin-bottom: 0;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.22;
}

.page--iq .question-figure {
    padding: 0 22px 18px;
}

.page--iq .figure-frame,
.page--iq .sequence-frame {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border-color: rgba(22, 24, 29, 0.06);
}

.page--iq .question-figure svg,
.page--iq .choice-visual svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.page--iq .sequence-frame > svg {
    max-width: 720px;
    max-height: 180px;
}

.choices,
.review-options,
.bars,
.bar-stack,
.traits,
.trait-grid,
.result-grid,
.section-grid,
.review-stack,
.summary,
.result-meta {
    display: grid;
    gap: 16px;
}

.choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 22px 22px;
}

.choices.visual-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page--iq .choices {
    gap: 14px;
    padding-top: 0;
}

.page--iq .choices.visual-choices {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.page--disc .choices {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
}

.page--personality .choices {
    grid-template-columns: repeat(7, minmax(108px, 1fr));
    overflow-x: auto;
}

.choice {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.page--iq .choice {
    gap: 14px;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 16px;
}

.page--iq .choice.visual {
    align-items: flex-start;
}

.page--iq .choice-letter {
    margin-top: 2px;
}

.page--iq .choice-content {
    width: 100%;
    gap: 10px;
}

.page--iq .choice-label {
    gap: 8px;
    align-content: start;
}

.page--iq .choice-text {
    font-size: 13px;
    line-height: 1.45;
}

.page--disc .choice,
.page--personality .choice {
    justify-content: center;
    text-align: center;
}

.page--disc .choice-label,
.page--personality .choice-label {
    justify-items: center;
}

.page--personality .choice {
    min-height: 88px;
    padding: 12px 8px;
}

.page--personality .choice-label {
    gap: 4px;
}

.page--personality .label-short {
    font-size: 12px;
    font-weight: 700;
}

.page--personality .label-full {
    font-size: 11px;
    line-height: 1.3;
    color: #5c6573;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice:hover,
.choice.active {
    border-color: rgba(10, 145, 244, 0.45);
    background: #f7fbff;
}

.choice-letter,
.review-option-letter {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f6;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.choice.active .choice-letter,
.choice:hover .choice-letter {
    background: #0a91f4;
    color: #ffffff;
}

.choice-content,
.choice-label {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 6px;
}

.choice-text,
.choice-label,
.review-question,
.trait-name {
    color: #16181d;
}

.choice-text,
.choice-label,
.label-short,
.label-full {
    font-size: 14px;
    line-height: 1.4;
}

.choice-visual {
    min-height: 96px;
    padding: 12px;
}

.page--iq .choice-visual {
    width: 100%;
    min-height: 0;
    max-width: 170px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border-color: rgba(22, 24, 29, 0.06);
}

.page--iq .choice-visual > svg {
    max-width: 148px;
    max-height: 110px;
}

.scale-guide {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    color: #5c6573;
    font-size: 12px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
}

.error {
    margin: 14px 0 0;
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff1f0;
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
}

.completion-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid #cfead8;
    border-radius: 24px;
    background: linear-gradient(180deg, #f5fcf7 0%, #eefaf2 100%);
}

.completion-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1aa364;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(26, 163, 100, 0.24);
}

.completion-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.summary-card,
.metric-card,
.review-card,
.trait-card {
    padding: 18px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.summary-label,
.metric-label,
.trait-label {
    margin: 0 0 8px;
    color: #5c6573;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.summary-value,
.metric-value,
.trait-score {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.summary-value.with-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-badge,
.trait-badge,
.trait-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
}

.summary-badge,
.trait-badge {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 16px;
}

.trait-dot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.narrative {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid #dcecff;
    background: linear-gradient(180deg, #f7fbff 0%, #f1f8ff 100%);
}

.narrative-title {
    margin: 0 0 8px;
    color: #0a91f4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.section-card {
    margin-bottom: 18px;
}

.section-title,
.panel-title {
    margin: 0 0 16px;
    color: #101828;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-transform: none;
}

.result-grid,
.section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-copy,
.summary-note {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.review-empty {
    padding: 18px 20px;
    border: 1px dashed #d0d5dd;
    border-radius: 20px;
    background: #fcfcfd;
}

.review-card.is-correct {
    border-color: #b7e4c7;
}

.review-card.is-incorrect {
    border-color: #f4c7c3;
}

@media print {
    body {
        background: #ffffff;
    }

    .app-sidebar,
    .app-topbar,
    .completion-actions,
    .result-actions {
        display: none !important;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .page {
        width: 100%;
        padding: 0;
    }

    .card,
    .intro-card,
    .hero,
    .summary-card,
    .section-card,
    .panel,
    .section,
    .trait-card,
    .metric-card,
    .review-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.review-meta {
    min-width: 0;
}

.review-number {
    margin: 0 0 8px;
    color: #5c6573;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.review-question {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.review-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-card.is-correct .review-status {
    background: #ecfdf3;
    color: #027a48;
}

.review-card.is-incorrect .review-status {
    background: #fef3f2;
    color: #b42318;
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.review-option-body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.review-option-visual {
    min-height: 110px;
    padding: 12px;
}

.bar-stack,
.bars {
    gap: 18px;
}

.bar-row {
    display: grid;
    grid-template-columns: 42px 1fr 58px;
    gap: 10px;
    align-items: center;
}

.bar-letter,
.bar-name {
    color: #101828;
    font-size: 18px;
    font-weight: 700;
}

.track,
.trait-bar {
    height: 16px;
    border-radius: 999px;
    background: #eceff3;
    overflow: hidden;
}

.fill,
.trait-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #31bcfb 0%, #008ef3 100%);
}

.bar-value,
.trait-title {
    color: #5c6573;
    font-size: 14px;
    font-weight: 700;
}

.traits,
.trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trait-head,
.trait-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.trait-title,
.trait-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.trait-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trait-copy {
    font-size: 15px;
}

.fade-in {
    animation: etssFadeIn 0.3s ease;
}

.is-initially-hidden {
    display: none;
}

@keyframes etssFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .assessment-navbar__inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .assessment-navbar__actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 991.98px) {
    .portal-copy-limit,
    .portal-test__body {
        max-width: 100%;
        width: 100%;
    }

    .portal-tests--grid {
        grid-template-columns: 1fr;
    }

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

    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: sticky;
        inset: 0 0 auto 0;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .app-sidebar__nav,
    .app-sidebar__footer {
        width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .app-topbar {
        position: static;
        margin-bottom: 18px;
    }

    .app-topbar .brandbar,
    .app-topbar .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-layout,
    .traits,
    .trait-grid,
    .result-grid,
    .section-grid,
    .review-options,
    .choices {
        grid-template-columns: 1fr;
    }

    .page--disc .choices {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
    }

    .page--personality .choices {
        grid-template-columns: repeat(7, minmax(96px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .app-sidebar__nav {
        display: none;
    }

    .app-sidebar {
        justify-content: space-between;
    }

    .etss-portal .app-topbar {
        display: none;
    }

    .portal-test {
        min-height: auto;
        padding: 18px;
    }

    .portal-test__status {
        justify-self: start;
    }

    .portal-test__body {
        padding-right: 0;
    }

    .portal-test__action {
        width: 100%;
    }

    .page {
        width: min(100% - 18px, 1220px);
        padding: 0 0 30px;
    }

    .app-sidebar {
        position: sticky;
        inset: 0 0 auto 0;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 10px 14px;
    }

    .app-sidebar__nav,
    .app-sidebar__footer {
        width: auto;
        overflow: visible;
        padding-bottom: 0;
        gap: 6px;
    }

    .app-sidebar__link {
        min-width: 0;
        padding: 8px 6px;
    }

    .app-sidebar__logo {
        width: 34px;
        height: 34px;
    }

    .app-topbar {
        position: static;
        margin-bottom: 10px;
    }

    .brandbar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 10px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px 12px;
    }

    .brandbar-actions {
        display: none;
    }

    .topbar-right {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .brand {
        width: 100%;
    }

    .brand-title {
        font-size: 14px;
        line-height: 1.2;
    }

    .meta,
    .question-counter,
    .question-number {
        font-size: 11px;
    }

    .topnav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-top: 1px solid rgba(22, 24, 29, 0.08);
    }

    .topnav-box--toggle {
        display: none;
    }

    .topnav-actions > * + *::before {
        display: none;
    }

    .topnav-box {
        min-width: 0;
        width: 100%;
        min-height: 40px;
        padding: 0 10px;
        justify-content: flex-start;
    }

    .topnav-box--candidate,
    .topnav-box--progress,
    .topnav-box--action {
        border-bottom: 1px solid rgba(22, 24, 29, 0.08);
    }

    .topnav-box__icon {
        width: 15px;
        height: 15px;
    }

    .topnav-box__value {
        width: 100%;
        font-size: 12px;
    }

    .topbar-right {
        justify-content: flex-start;
    }

    .topbar .progress-track {
        min-width: 0;
        max-width: none;
        width: 100%;
        height: 10px;
    }

    .assessment-navbar__inner {
        width: min(100% - 18px, 1320px);
        padding: 14px 0;
    }

    .assessment-navbar__logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .assessment-navbar__title,
    .brand-title {
        font-size: 18px;
    }

    .assessment-navbar__subtitle,
    .brand-subtitle,
    .assessment-navbar__candidate-label,
    .candidate-label {
        display: none;
    }

    .assessment-navbar__candidate,
    .candidate {
        padding: 8px 12px;
        min-width: 0;
        width: 100%;
    }

    .assessment-navbar__candidate-name,
    .candidate-name {
        font-size: 14px;
    }

    .card,
    .intro-card,
    .hero,
    .panel,
    .section,
    .section-card {
        border-radius: 8px;
        padding: 22px 18px;
    }

    .summary-card,
    .trait-card,
    .review-card,
    .metric-card {
        border-radius: 20px;
    }

    .intro-title,
    .result-title {
        font-size: clamp(26px, 8vw, 34px);
    }

    .question-text {
        font-size: clamp(20px, 6vw, 26px);
    }

    .footer,
    .intro-actions,
    .button-row,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .home-link,
    .header-link {
        width: 100%;
    }

    .page--disc .choices {
        grid-template-columns: 1fr;
        overflow-x: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .page--personality .choices {
        grid-template-columns: 1fr;
        overflow-x: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .page--personality .choice {
        min-height: 72px;
        padding: 12px 10px;
    }

    .page--disc .choice,
    .page--personality .choice {
        justify-content: flex-start;
        text-align: left;
    }

    .page--disc .choice-label,
    .page--personality .choice-label {
        justify-items: start;
    }

    .page--personality .label-full {
        font-size: 11px;
    }

.bar-row {
        grid-template-columns: 34px 1fr 52px;
    }
}

.etss-integrity-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 80;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(16, 24, 40, 0.94);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    pointer-events: none;
}

.etss-integrity-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 13, 18, 0.72);
    backdrop-filter: blur(8px);
}

.etss-integrity-overlay__card {
    width: min(100%, 520px);
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    text-align: center;
}

.etss-integrity-overlay__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b42318;
}

.etss-integrity-overlay__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.05;
    color: #101828;
}

.etss-integrity-overlay__copy {
    margin: 0;
    color: #475467;
    font-size: 15px;
}

.etss-integrity-overlay__actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.etss-integrity-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    text-align: left;
}

.etss-integrity-list li {
    padding: 12px 14px;
    border: 1px solid rgba(22, 24, 29, 0.08);
    border-radius: 12px;
    background: #f8fafc;
    color: #344054;
    font-size: 14px;
    line-height: 1.45;
}
