:root {
    color-scheme: light;
    --azure: #086bd8;
    --azure-dark: #005fca;
    --azure-soft: #eef5fd;
    --navy: #0d1b35;
    --text: #111827;
    --muted: #4d596b;
    --border: #d2d7df;
    --border-soft: #e1e5ea;
    --surface: #ffffff;
    --sidebar: #fbfcfe;
    --track: #dce1e8;
    --success: #16884f;
    --amber: #ffb800;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body,
#app {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
}

body {
    color: var(--text);
    background: var(--surface);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

button {
    color: inherit;
    font: inherit;
}

button:focus-visible,
[role="radio"]:focus-visible {
    outline: 3px solid rgba(0, 111, 230, 0.32);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.exam-app {
    display: grid;
    grid-template-rows: 70px minmax(0, 1fr) 104px;
    width: 100%;
    height: 100dvh;
    min-height: 720px;
    overflow: hidden;
    background: #fff;
}

.exam-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0 25px 0 22px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.brand-cluster,
.time-cluster,
.header-progress,
.exit-button {
    display: flex;
    align-items: center;
}

.brand-cluster {
    flex: 1 1 auto;
    min-width: 463px;
}

.header-icon-button,
.icon-button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header-icon-button svg,
.exit-button svg,
.header-clock,
.navigation-button svg,
.review-flagged-button svg,
.flag-review-button svg,
.utility-action svg,
.view-instructions-button svg,
.show-help-button svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.menu-button {
    width: 28px;
    height: 40px;
    margin-right: 29px;
}

.menu-button svg {
    width: 26px;
    height: 26px;
}

.brand-name {
    color: #111a2e;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.25px;
    white-space: nowrap;
}

.header-divider {
    width: 1px;
    height: 26px;
    margin: 0 24px;
    background: #c6cbd3;
}

.header-divider.short {
    height: 20px;
    margin: 0 17px;
}

.exam-mode {
    color: #171c27;
    font-size: 18px;
    white-space: nowrap;
}

.header-progress {
    flex: 0 1 414px;
    justify-content: center;
    gap: 13px;
    margin-right: 36px;
    white-space: nowrap;
}

.header-progress-track {
    position: relative;
    display: block;
    width: 290px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
}

.header-progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--azure);
}

.time-cluster {
    flex: 0 0 auto;
    color: #495365;
    white-space: nowrap;
}

.time-cluster strong {
    color: #121a2b;
    font-weight: 650;
}

.header-clock {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: #111a2e;
}

.remaining-time strong {
    color: var(--azure-dark);
}

.exit-button {
    gap: 10px;
    min-width: 140px;
    height: 44px;
    justify-content: flex-end;
    margin-left: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.exit-button svg {
    width: 25px;
    height: 25px;
}

.mobile-tools-button {
    display: none;
}

.exam-layout {
    display: grid;
    grid-template-columns: 365px minmax(0, 1fr) 290px;
    min-height: 0;
    overflow: hidden;
}

.left-sidebar,
.right-sidebar {
    min-height: 0;
    overflow: hidden;
    background: var(--sidebar);
}

.left-sidebar {
    border-right: 1px solid var(--border);
}

.right-sidebar {
    border-left: 1px solid var(--border);
}

.progress-sidebar,
.utility-rail {
    height: 100%;
}

.sidebar-section,
.utility-section {
    border-bottom: 1px solid var(--border);
}

.sidebar-section {
    padding: 20px;
}

.sidebar-section h2,
.utility-section h2 {
    margin: 0;
    color: #141b2d;
    font-size: 15px;
    font-weight: 650;
}

.overall-progress {
    height: 108px;
}

.progress-label-row,
.domain-label-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.progress-label-row {
    margin: 12px 0 10px;
    color: #2a3343;
}

.progress-track {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
}

.progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--azure);
}

.domain-progress {
    height: 260px;
    padding-top: 20px;
}

.domain-row {
    margin-top: 13px;
}

.domain-label-row {
    align-items: flex-end;
    color: #344053;
    font-size: 13px;
    line-height: 1.35;
}

.domain-label-row span:first-child {
    max-width: 225px;
}

.domain-label-row span:last-child {
    flex: 0 0 auto;
}

.progress-track.compact {
    height: 5px;
    margin-top: 5px;
}

.question-navigation {
    height: calc(100% - 368px);
    min-height: 415px;
    padding-top: 13px;
}

.status-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin: 12px 0 11px;
    color: #455063;
    font-size: 11.5px;
    white-space: nowrap;
}

.status-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border: 1.5px solid #7d8796;
    border-radius: 50%;
}

.legend-dot.current {
    border-color: var(--azure);
    background: var(--azure);
}

.legend-check {
    display: grid;
    place-items: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    color: white;
    background: var(--success);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

.legend-flag {
    color: var(--amber);
    font-size: 16px;
    font-style: normal;
    line-height: 1;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}

.question-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    padding: 0 15px 0 6px;
    border: 1px solid #c7ced8;
    border-radius: 3px;
    background: white;
    color: #344053;
    font-size: 13px;
    cursor: pointer;
}

.question-number.is-current {
    padding-right: 6px;
    border-color: var(--azure);
    color: white;
    background: var(--azure);
    font-weight: 650;
}

.question-check,
.question-flag {
    position: absolute;
    right: 7px;
    display: grid;
    place-items: center;
    font-style: normal;
}

.question-check {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    color: white;
    background: var(--success);
    font-size: 8px;
    font-weight: 700;
}

.question-flag {
    color: var(--amber);
    font-size: 16px;
    line-height: 1;
}

.review-flagged-button,
.view-instructions-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 1px solid var(--azure);
    border-radius: 3px;
    color: var(--azure-dark);
    background: white;
    cursor: pointer;
}

.review-flagged-button {
    height: 31px;
    margin-top: 9px;
    font-size: 13px;
}

.review-flagged-button svg {
    width: 18px;
    height: 18px;
}

.question-workspace {
    min-width: 0;
    min-height: 0;
    background: #fff;
}

.question-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 126px;
    height: 100%;
    min-height: 0;
}

.question-content {
    min-height: 0;
    overflow-y: auto;
    padding: 33px 42px 28px 36px;
}

.question-content h1 {
    margin: 0;
    color: var(--navy);
    font-size: 26px;
    font-weight: 660;
    line-height: 1.25;
    letter-spacing: -0.35px;
}

.question-content h1:focus {
    outline: none;
}

.objective-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    color: var(--azure-dark);
    font-size: 14px;
}

.objective-label svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.question-prompt {
    margin-top: 39px;
    color: #10182a;
    font-size: 17px;
    line-height: 1.5;
}

.question-prompt p {
    margin: 0 0 7px;
}

.answer-list {
    display: grid;
    gap: 12px;
    margin-top: 42px;
}

.answer-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 21px;
    width: 100%;
    min-height: 62px;
    padding: 13px 22px;
    border: 1px solid #cfd4db;
    border-radius: 6px;
    color: #151c2b;
    background: white;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.answer-option.selected {
    border-color: #bcc9d8;
    background: linear-gradient(90deg, #f5f9fe 0%, #eef4fb 100%);
}

.answer-option.selected::before {
    position: absolute;
    inset: -1px auto -1px -1px;
    width: 6px;
    border-radius: 6px 0 0 6px;
    background: var(--azure);
    content: "";
}

.radio-control {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #808b9b;
    border-radius: 50%;
}

.answer-option.selected .radio-control {
    border-color: var(--azure);
}

.radio-control > span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--azure);
}

.flag-review-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 33px;
    padding: 0 3px;
    border: 0;
    color: var(--azure-dark);
    background: transparent;
    cursor: pointer;
}

.flag-review-button svg {
    width: 22px;
    height: 22px;
    color: var(--amber);
    fill: var(--amber);
    stroke: var(--amber);
}

.question-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px 42px 0 36px;
    border-top: 1px solid var(--border);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 3px;
    font-weight: 550;
    cursor: pointer;
}

.button-secondary {
    border: 1px solid var(--azure);
    color: var(--azure-dark);
    background: white;
}

.button-primary {
    border: 1px solid var(--azure-dark);
    color: white;
    background: var(--azure);
    box-shadow: 0 2px 5px rgba(0, 77, 165, 0.18);
}

.navigation-button {
    gap: 13px;
    min-width: 147px;
    height: 44px;
}

.navigation-button.next {
    min-width: 168px;
}

.navigation-button svg {
    width: 20px;
    height: 20px;
}

.utility-rail {
    display: grid;
    grid-template-rows: 138px 199px minmax(0, 1fr);
}

.utility-section {
    padding: 22px 24px;
}

.section-title-with-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-mark {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid #1c2638;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.confidence-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 46px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #bec5cf;
    border-radius: 4px;
}

.confidence-control button {
    border: 0;
    border-right: 1px solid #d1d6dd;
    background: #fff;
    cursor: pointer;
}

.confidence-control button:last-child {
    border-right: 0;
}

.confidence-control button.selected {
    color: white;
    background: var(--azure);
}

.exam-tools-section {
    padding-top: 26px;
}

.utility-action {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 55px;
    margin-top: 14px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.utility-action svg {
    width: 24px;
    height: 24px;
    color: #29364a;
}

.utility-section hr {
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--border);
}

.utility-action.reset {
    margin-top: 5px;
    color: var(--azure-dark);
}

.utility-action.reset svg {
    width: 30px;
    height: 30px;
    color: var(--azure);
}

.session-section {
    position: relative;
    min-height: 0;
    padding-top: 25px;
    padding-bottom: 70px;
    border-bottom: 0;
}

.session-stats {
    display: grid;
    gap: 18px;
    margin: 23px 0 27px;
}

.session-stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.session-stats dt,
.session-stats dd {
    margin: 0;
    font-weight: 400;
}

.timing-stats {
    gap: 20px;
    margin-top: 25px;
}

.view-instructions-button {
    position: absolute;
    right: 24px;
    bottom: 56px;
    left: 24px;
    height: 45px;
}

.view-instructions-button svg {
    width: 21px;
    height: 21px;
}

.help-strip {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 104px;
    padding: 17px 30px 17px 37px;
    border-top: 1px solid var(--border);
    background: linear-gradient(90deg, #f4f8fe 0%, #f9fbfe 78%, #f4f8fd 100%);
}

.large-info-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 2px solid #0e4e9d;
    border-radius: 50%;
    color: #0e4e9d;
    font-family: Georgia, serif;
    font-size: 24px;
    font-style: normal;
}

.help-copy {
    display: grid;
    gap: 10px;
    color: #28354a;
}

.help-copy strong {
    color: #0e376f;
    font-size: 14px;
}

.help-copy span {
    font-size: 14px;
}

.show-help-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 25px;
    border: 0;
    color: var(--azure-dark);
    background: transparent;
    cursor: pointer;
}

.show-help-button svg {
    width: 20px;
    height: 20px;
    transition: transform 140ms ease;
}

.show-help-button svg.chevron-up {
    transform: rotate(180deg);
}

.help-strip.collapsed {
    grid-template-columns: 1fr auto;
    min-height: 48px;
}

.drawer-scrim,
.dialog-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(13, 27, 53, 0.36);
}

.drawer-scrim {
    display: none;
}

.dialog-scrim {
    display: grid;
    place-items: center;
    padding: 24px;
}

.dialog {
    width: min(460px, 100%);
    padding: 25px;
    border: 1px solid #c9d0da;
    border-radius: 8px;
    background: white;
    box-shadow: 0 22px 65px rgba(16, 30, 54, 0.25);
}

.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dialog h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
}

.dialog p {
    margin: 18px 0 24px;
    color: #465267;
    line-height: 1.55;
}

.dialog .icon-button {
    width: 34px;
    height: 34px;
    font-size: 28px;
    line-height: 1;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
}

.dialog-actions .button {
    min-width: 92px;
}

#blazor-error-ui {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
    padding: 14px 18px;
    border: 1px solid #efb2ad;
    border-radius: 5px;
    color: #781c18;
    background: #fff1f0;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 6rem;
    height: 6rem;
    inset: 35vh 0 auto;
    margin: auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e1e6ed;
    stroke-width: 0.5rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--azure);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}

.loading-progress-text {
    position: absolute;
    inset: calc(35vh + 2.45rem) 0 auto;
    color: var(--navy);
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.question-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.question-type-badge,
.eyebrow {
    color: #0b5cab;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.question-type-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #c8d9ed;
    border-radius: 999px;
    background: #f5f9fe;
}

.question-instruction {
    display: block;
    margin-top: 16px;
    color: #344053;
    font-size: 14px;
    font-weight: 650;
}

.question-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.check-answer-button {
    min-width: 132px;
    margin-top: 27px;
    padding: 0 20px;
}

.checkbox-control {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #808b9b;
    border-radius: 3px;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.answer-option.selected .checkbox-control {
    border-color: var(--azure);
    background: var(--azure);
}

.answer-option.is-correct-answer,
.hot-area-tile.is-correct-answer {
    border-color: #16884f;
    background: #effaf4;
}

.answer-option.is-incorrect-answer,
.hot-area-tile.is-incorrect-answer {
    border-color: #c94b45;
    background: #fff4f3;
}

.answer-option:disabled,
.hot-area-tile:disabled,
.statement-choice:disabled,
.match-chip:disabled {
    cursor: default;
    opacity: 1;
}

.statement-table {
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid #cfd6df;
    border-radius: 6px;
}

.statement-header,
.statement-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 86px;
    align-items: stretch;
}

.statement-header {
    min-height: 42px;
    color: #314157;
    background: #eef3f8;
    font-size: 13px;
    font-weight: 700;
}

.statement-header span,
.statement-row > span,
.statement-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-right: 1px solid #d5dbe3;
}

.statement-header span:first-child,
.statement-row > span {
    justify-content: flex-start;
}

.statement-header span:last-child,
.statement-choice:last-child {
    border-right: 0;
}

.statement-row {
    min-height: 68px;
    border-top: 1px solid #d5dbe3;
    background: white;
}

.statement-row > span {
    line-height: 1.45;
}

.statement-choice {
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    cursor: pointer;
}

.statement-choice.selected {
    background: #eef5fd;
}

.statement-choice.correct-choice {
    box-shadow: inset 0 -4px #16884f;
}

.matching-exercise,
.build-list,
.active-screen {
    margin-top: 34px;
}

.match-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 68px;
    padding: 12px;
    border: 1px dashed #93a4b8;
    border-radius: 6px;
    background: #f7f9fc;
}

.match-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid #b8c4d2;
    border-radius: 4px;
    background: white;
    cursor: grab;
}

.match-chip.active {
    border-color: var(--azure);
    box-shadow: 0 0 0 2px rgba(8, 107, 216, .13);
}

.matching-rows {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.matching-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
    align-items: center;
    gap: 18px;
    min-height: 60px;
    padding: 10px 12px 10px 16px;
    border: 1px solid #d0d7e0;
    border-radius: 5px;
    background: white;
}

.matching-row select,
.scope-controls select {
    width: 100%;
    min-height: 40px;
    padding: 7px 34px 7px 11px;
    border: 1px solid #aeb9c6;
    border-radius: 4px;
    color: #172033;
    background: white;
    font: inherit;
}

.build-list {
    display: grid;
    gap: 10px;
}

.build-list-item {
    display: grid;
    grid-template-columns: 34px 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #ccd4de;
    border-radius: 5px;
    background: white;
}

.order-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    background: #38577c;
    font-size: 13px;
    font-weight: 700;
}

.drag-grip {
    color: #738195;
    font-size: 18px;
}

.order-controls {
    display: flex;
    gap: 5px;
}

.order-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid #b6c2d0;
    border-radius: 3px;
    color: #075da9;
    background: #f8fbff;
    cursor: pointer;
}

.active-screen {
    overflow: hidden;
    border: 1px solid #aeb9c6;
    border-radius: 6px;
    box-shadow: 0 5px 16px rgba(13, 27, 53, .08);
}

.active-screen-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: white;
    background: #182c49;
    font-size: 13px;
}

.active-screen-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    background: #f4f6f9;
}

.hot-area-tile {
    display: grid;
    gap: 5px;
    min-height: 82px;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #172033;
    background: white;
    box-shadow: 0 1px 3px rgba(13, 27, 53, .12);
    text-align: left;
    cursor: pointer;
}

.hot-area-tile.selected {
    border-color: var(--azure);
    box-shadow: 0 0 0 2px rgba(8, 107, 216, .12);
}

.hot-area-tile small {
    color: #657187;
}

.answer-feedback {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid;
    border-left-width: 5px;
    border-radius: 5px;
}

.answer-feedback.correct {
    border-color: #84c9a4;
    background: #f1fbf5;
}

.answer-feedback.incorrect {
    border-color: #e1a19d;
    background: #fff6f5;
}

.feedback-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #15233a;
    font-size: 17px;
}

.feedback-title > span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    background: #16884f;
    font-weight: 800;
}

.incorrect .feedback-title > span {
    background: #b43a34;
}

.answer-feedback p {
    margin: 12px 0;
    line-height: 1.55;
}

.feedback-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(67, 88, 111, .2);
    font-size: 13px;
}

.feedback-sources a {
    color: #075da9;
}

.material-reference {
    display: block;
    margin-top: 10px;
    color: #58667a;
    font-size: 12px;
}

.submit-session-button {
    position: absolute;
    right: 24px;
    bottom: 110px;
    left: 24px;
    height: 42px;
    border: 1px solid var(--azure-dark);
    border-radius: 3px;
    color: white;
    background: var(--azure);
    cursor: pointer;
}

.instruction-list {
    margin: -8px 0 24px;
    padding-left: 22px;
    color: #465267;
    line-height: 1.55;
}

.instruction-list li + li {
    margin-top: 8px;
}

.calculator-dialog {
    width: min(390px, 100%);
}

.calculator {
    margin: 20px 0 22px;
}

.calculator output {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: 66px;
    padding: 10px 15px;
    overflow: hidden;
    border: 1px solid #bfc8d3;
    border-radius: 5px;
    color: #111b2e;
    background: #f5f7fa;
    font-size: 28px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 10px;
}

.calculator-grid button {
    min-height: 45px;
    border: 1px solid #c2cad4;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.calculator-grid .operator {
    color: #075da9;
    background: #eff6fd;
}

.calculator-grid .equals {
    color: white;
    background: var(--azure);
}

.calculator-grid .zero {
    grid-column: span 2;
}

.load-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100dvh;
    padding: 30px;
    color: #344053;
    text-align: center;
}

.load-state h1 {
    margin: 20px 0 6px;
    color: var(--navy);
}

.load-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #dbe5f0;
    border-top-color: var(--azure);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.setup-screen,
.results-screen {
    min-height: 100dvh;
    padding: 46px max(24px, calc((100vw - 1120px) / 2)) 60px;
    background: #f4f7fb;
}

.setup-hero,
.results-header {
    color: white;
    background: linear-gradient(125deg, #0d2748 0%, #0a4e91 66%, #0874d1 100%);
    box-shadow: 0 12px 36px rgba(13, 39, 72, .18);
}

.setup-hero {
    padding: 38px 42px;
    border-radius: 10px;
}

.setup-hero .eyebrow,
.results-header .eyebrow {
    color: #9ed0ff;
}

.setup-hero h1,
.results-header h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.setup-hero > p {
    max-width: 720px;
    margin: 0;
    color: #d7e8f9;
    font-size: 17px;
    line-height: 1.55;
}

.blueprint-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    background: rgba(255,255,255,.15);
}

.blueprint-summary span {
    display: grid;
    gap: 4px;
    padding: 14px 17px;
    background: rgba(7, 35, 68, .36);
    font-size: 13px;
}

.blueprint-summary strong {
    font-size: 18px;
}

.setup-card,
.domain-results,
.question-results {
    margin-top: 22px;
    padding: 28px 30px;
    border: 1px solid #d7dee7;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 14px rgba(22, 42, 69, .05);
}

.setup-section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.setup-section-heading > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    background: #1c5f9f;
    font-weight: 700;
}

.setup-card h2,
.results-section-title h2 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
}

.setup-section-heading p {
    margin: 5px 0 0;
    color: #657187;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.mode-card {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-height: 170px;
    padding: 20px;
    border: 2px solid #d5dce5;
    border-radius: 7px;
    color: #1e2a3d;
    background: white;
    text-align: left;
    cursor: pointer;
}

.mode-card.selected {
    border-color: var(--azure);
    background: #f2f8fe;
    box-shadow: 0 0 0 2px rgba(8,107,216,.1);
}

.mode-card > span:not(.mode-icon) {
    color: #57667b;
    line-height: 1.4;
}

.mode-card small {
    align-self: end;
    color: #075da9;
    font-weight: 700;
}

.mode-icon {
    color: #075da9;
    font-size: 25px;
}

.scope-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin: 22px 0 0 44px;
}

.scope-controls label {
    display: grid;
    gap: 8px;
    color: #344053;
    font-size: 13px;
    font-weight: 650;
}

.setup-notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.setup-notes > div {
    padding: 20px 22px;
    border-left: 4px solid #7aa7d2;
    background: #eaf2fa;
}

.setup-notes p {
    margin: 7px 0 0;
    color: #4d5c70;
    line-height: 1.5;
}

.setup-actions,
.results-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.start-session-button,
.results-actions .button {
    min-width: 200px;
    padding: 0 22px;
}

.results-screen {
    max-width: none;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 42px;
    border-radius: 10px;
}

.results-header p {
    margin: 0;
    color: #d7e8f9;
    font-size: 17px;
}

.score-ring {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    align-content: center;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #0b4177 58%, transparent 59%), conic-gradient(#74c7ff calc(var(--score) * 1%), rgba(255,255,255,.18) 0);
}

.score-ring strong {
    font-size: 32px;
}

.score-ring span {
    color: #c8e3fb;
    font-size: 12px;
}

.results-caveat {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid #bdd5ed;
    border-radius: 5px;
    color: #344b65;
    background: #eef6fd;
}

.results-caveat > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1.5px solid #0a5da9;
    border-radius: 50%;
    color: #0a5da9;
    font-weight: 700;
}

.results-caveat p {
    margin: 0;
    line-height: 1.45;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.results-grid article {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid #d7dee7;
    border-radius: 7px;
    background: white;
}

.results-grid span,
.results-section-title > span {
    color: #657187;
    font-size: 13px;
}

.results-grid strong {
    color: #17243a;
    font-size: 25px;
}

.results-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.domain-result-row {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    border-top: 1px solid #e2e6eb;
}

.domain-result-row:first-of-type {
    border-top: 0;
}

.domain-result-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.domain-result-row > div:first-child span {
    color: #657187;
}

.result-question-list {
    overflow: hidden;
    border: 1px solid #d5dce5;
    border-radius: 6px;
}

.result-question-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 210px 22px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 9px 16px;
    border: 0;
    border-top: 1px solid #e0e5eb;
    background: white;
    text-align: left;
    cursor: pointer;
}

.result-question-row:first-child {
    border-top: 0;
}

.result-question-row:hover {
    background: #f7fafe;
}

.result-status {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    background: #16884f;
    font-weight: 800;
}

.result-question-row.incorrect .result-status {
    background: #b43a34;
}

.result-question-copy {
    display: grid;
    gap: 4px;
}

.result-question-copy > span,
.result-domain {
    color: #657187;
    font-size: 12px;
}

.result-domain {
    justify-self: end;
}

.result-arrow {
    color: #0a68bf;
    font-size: 25px;
}

.domain-progress {
    height: 220px;
}

.question-navigation {
    height: calc(100% - 328px);
}

.session-stats {
    gap: 12px;
    margin: 16px 0 18px;
}

.timing-stats {
    gap: 12px;
    margin: 18px 0 0;
}

@media (max-width: 1360px) {
    .exam-header { padding-right: 18px; }
    .brand-cluster { min-width: 430px; }
    .header-progress { flex-basis: 300px; margin-right: 20px; }
    .header-progress-track { width: 205px; }
    .exit-button { min-width: auto; margin-left: 18px; }
    .exam-layout { grid-template-columns: 330px minmax(0, 1fr) 270px; }
    .sidebar-section { padding-right: 16px; padding-left: 16px; }
}

@media (max-height: 820px) and (min-width: 1121px) {
    .left-sidebar,
    .right-sidebar { overflow-y: auto; }
    .progress-sidebar,
    .utility-rail { height: auto; min-height: 100%; }
    .question-navigation { height: auto; min-height: 420px; }
    .utility-rail { display: block; }
    .session-section { padding-bottom: 24px; }
    .submit-session-button,
    .view-instructions-button { position: static; width: 100%; margin-top: 18px; }
}

@media (max-width: 1120px) {
    .exam-app { grid-template-rows: 64px minmax(0, 1fr) 92px; }
    .exam-header { gap: 16px; padding: 0 18px; }
    .brand-cluster { flex: 1; min-width: 0; }
    .brand-name { font-size: 18px; }
    .brand-cluster .header-divider,
    .exam-mode,
    .header-progress { display: none; }
    .menu-button { margin-right: 15px; }
    .time-cluster { margin-left: auto; }
    .time-cluster .header-divider,
    .time-cluster > span:first-of-type { display: none; }
    .mobile-tools-button { display: grid; width: 36px; height: 40px; }
    .mobile-tools-button svg { width: 24px; height: 24px; }
    .exam-layout { grid-template-columns: minmax(0, 1fr); }
    .left-sidebar,
    .right-sidebar {
        position: fixed;
        top: 64px;
        bottom: 0;
        z-index: 100;
        width: min(365px, calc(100vw - 48px));
        overflow-y: auto;
        box-shadow: 8px 0 28px rgba(13, 27, 53, 0.18);
        transition: transform 180ms ease;
    }
    .left-sidebar { left: 0; transform: translateX(-105%); }
    .right-sidebar { right: 0; transform: translateX(105%); box-shadow: -8px 0 28px rgba(13, 27, 53, 0.18); }
    .left-sidebar.drawer-open,
    .right-sidebar.drawer-open { transform: translateX(0); }
    .drawer-scrim { display: block; z-index: 90; }
    .progress-sidebar,
    .utility-rail { min-height: 850px; background: var(--sidebar); }
    .question-content { padding-right: 42px; padding-left: 42px; }
    .help-strip { min-height: 92px; }
}

@media (max-width: 680px) {
    .exam-app { display: flex; min-height: 100dvh; height: auto; overflow: visible; flex-direction: column; }
    .exam-header { position: sticky; top: 0; flex: 0 0 60px; padding: 0 12px; }
    .menu-button { margin-right: 9px; }
    .brand-name { max-width: 174px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; }
    .time-cluster,
    .exit-button span { display: none; }
    .exit-button { min-width: 36px; margin-left: 0; }
    .left-sidebar,
    .right-sidebar { top: 60px; }
    .exam-layout { display: block; flex: 1 0 auto; overflow: visible; }
    .question-panel { display: block; height: auto; }
    .question-content { overflow: visible; padding: 28px 20px 34px; }
    .question-content h1 { font-size: 23px; }
    .question-prompt { margin-top: 30px; font-size: 16px; }
    .answer-list { margin-top: 34px; }
    .answer-option { min-height: 58px; padding: 12px 15px; }
    .question-footer { height: 94px; padding: 20px; }
    .navigation-button,
    .navigation-button.next { min-width: 0; width: 45%; }
    .help-strip { grid-template-columns: 38px minmax(0, 1fr); min-height: 118px; padding: 16px 20px; }
    .large-info-mark { width: 34px; height: 34px; }
    .help-copy { gap: 6px; }
    .show-help-button { grid-column: 2; justify-self: end; padding: 0; }
}

@media (max-width: 800px) {
    .question-heading-row { display: block; }
    .question-type-badge { display: inline-block; margin-top: 14px; }
    .statement-header,
    .statement-row { grid-template-columns: minmax(0, 1fr) 58px 58px; }
    .statement-header span,
    .statement-row > span,
    .statement-choice { padding: 9px 7px; }
    .matching-row { grid-template-columns: 1fr; gap: 8px; }
    .active-screen-content { grid-template-columns: 1fr; }
    .question-actions-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .check-answer-button { margin-top: 0; }
    .setup-screen,
    .results-screen { padding: 22px 14px 40px; }
    .setup-hero,
    .results-header { padding: 26px 22px; }
    .blueprint-summary,
    .mode-grid,
    .setup-notes,
    .results-grid { grid-template-columns: 1fr; }
    .setup-card,
    .domain-results,
    .question-results { padding: 22px 18px; }
    .scope-controls { grid-template-columns: 1fr; margin-left: 0; }
    .results-header { align-items: flex-start; flex-direction: column; }
    .score-ring { width: 112px; height: 112px; }
    .domain-result-row { grid-template-columns: 1fr 52px; gap: 10px; padding: 12px 0; }
    .domain-result-row > div:first-child { grid-column: 1 / -1; }
    .result-question-row { grid-template-columns: 30px minmax(0, 1fr) 20px; }
    .result-domain { display: none; }
    .results-actions { align-items: stretch; flex-direction: column; }
    .results-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
