.testup-ui,
.testup-ui * {
    box-sizing: border-box;
}

.testup-ui {
    color: #163053;
    font-family: inherit;
}

.testup-dashboard,
.testup-lesson,
.testup-empty-card {
    margin: 2rem auto;
    max-width: 1040px;
}

.testup-dashboard__header,
.testup-lesson__header {
    background: linear-gradient(135deg, #102f5d 0%, #0f5ef7 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(15, 50, 99, 0.13);
    color: #ffffff;
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: clamp(1.25rem, 3vw, 1.9rem);
}

.testup-dashboard__header h2,
.testup-lesson__header h2,
.testup-empty-card h2 {
    color: inherit;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.testup-dashboard__header p,
.testup-lesson__header p,
.testup-empty-card p {
    color: inherit;
    line-height: 1.6;
    margin: 0;
    opacity: 0.84;
}

.testup-eyebrow {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    justify-self: start;
    letter-spacing: 0;
    padding: 7px 12px;
    text-transform: uppercase;
}

.testup-dashboard__plans {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testup-pack-switcher {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(18, 42, 76, 0.07);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 16px;
    padding: 14px 16px;
}

.testup-certificate-banner {
    align-items: center;
    background: linear-gradient(135deg, #fff9e9 0%, #ffffff 56%, var(--testup-primary-soft, #eef6ff) 100%);
    border: 1px solid #ead39e;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(82, 57, 11, 0.08);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 16px;
    padding: 14px 16px;
}

.testup-certificate-banner div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.testup-certificate-banner span {
    color: #8a6518;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.testup-certificate-banner strong {
    color: #132a4b;
    font-size: 1.08rem;
    line-height: 1.25;
}

.testup-pack-switcher > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.testup-pack-switcher span {
    color: #58708d;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.testup-pack-switcher strong {
    color: #132a4b;
    font-size: 1.08rem;
    line-height: 1.25;
}

.testup-pack-switcher form {
    align-items: center;
    display: flex;
    gap: 10px;
}

.testup-pack-switcher select {
    background: #ffffff;
    border: 1px solid #cad7e7;
    border-radius: 12px;
    color: #163053;
    font: inherit;
    min-height: 44px;
    min-width: min(360px, 46vw);
    padding: 0 12px;
}

.testup-plan-card,
.testup-empty-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #dbe6f7;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(18, 42, 76, 0.08);
    gap: 14px;
    padding: 1.25rem;
}

.testup-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testup-empty-card {
    display: grid;
}

.testup-plan-card.is-active {
    border-color: #83aefc;
    box-shadow: 0 20px 42px rgba(15, 94, 247, 0.14);
}

.testup-plan-card.is-locked {
    background: #fbfcff;
    border-color: #e3e9f3;
}

.testup-plan-card__header {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.testup-plan-card__header span {
    color: #58708d;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.testup-plan-card__header h3 {
    color: #132a4b;
    font-size: 1.22rem;
    line-height: 1.25;
    margin: 0;
}

.testup-plan-card__header strong {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #d8e5fa;
    border-radius: 999px;
    color: #1453b8;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
}

.testup-plan-card p {
    color: #52657b;
    line-height: 1.55;
    margin: 0;
}

.testup-plan-card__lock {
    align-items: center;
    background: #fff9ec;
    border: 1px solid #efd596;
    border-radius: 12px;
    color: #684700 !important;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 10px;
    line-height: 1.4;
    padding: 10px 12px;
}

.testup-plan-card__lock::before {
    align-items: center;
    background: #f6d777;
    border: 1px solid #d9aa35;
    border-radius: 999px;
    color: #674300;
    content: "!";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.testup-dashboard-lesson-list {
    align-content: start;
    background: #f9fbff;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    display: grid;
    height: 344px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.testup-dashboard-lesson-row {
    align-items: center;
    color: #24364d;
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 42px;
    padding: 8px 10px;
    text-decoration: none;
}

.testup-dashboard-lesson-row + .testup-dashboard-lesson-row {
    border-top: 1px solid #e7edf5;
}

a.testup-dashboard-lesson-row:hover,
a.testup-dashboard-lesson-row:focus {
    background: #f4f8ff;
    color: #13203a;
    outline: none;
}

.testup-dashboard-lesson-row.is-disabled {
    color: #66758a;
}

.testup-dashboard-lesson-row__marker {
    align-items: center;
    background: #edf4ff;
    border: 1px solid #dce8f8;
    border-radius: 999px;
    color: #24466f;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.testup-dashboard-lesson-row.is-completed .testup-dashboard-lesson-row__marker {
    background: #e8f5ee;
    border-color: #c4e3d2;
    color: #1d6b3d;
}

.testup-dashboard-lesson-row.is-locked .testup-dashboard-lesson-row__marker {
    background: #eef1f6;
    border-color: #d9e0eb;
    color: #66758a;
}

.testup-dashboard-lesson-row__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.testup-dashboard-lesson-row__status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    padding: 6px 8px;
    white-space: nowrap;
}

.testup-dashboard-lesson-row.is-completed .testup-dashboard-lesson-row__status {
    background: #e8f5ee;
    border: 1px solid #c4e3d2;
    color: #1d6b3d;
}

.testup-dashboard-lesson-row.is-progress .testup-dashboard-lesson-row__status {
    background: #fff5da;
    border: 1px solid #efd28a;
    color: #805700;
}

.testup-dashboard-lesson-row.is-locked .testup-dashboard-lesson-row__status {
    background: #eef1f6;
    border: 1px solid #d9e0eb;
    color: #66758a;
}

.testup-plan-score {
    align-items: center;
    background: #f4fbf7;
    border: 1px solid #cce8d7;
    border-radius: 12px;
    display: grid;
    gap: 3px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px 12px;
}

.testup-plan-score span {
    color: #2d6c45;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.testup-plan-score strong {
    color: #1d6b3d;
    font-size: 1.38rem;
    font-weight: 900;
    grid-row: span 2;
}

.testup-plan-score small {
    color: #557064;
    font-size: 0.82rem;
    font-weight: 700;
}

.testup-progress {
    background: #e7edf7;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.testup-plan-card > .testup-button,
.testup-plan-card > .testup-button--locked {
    align-items: center;
    margin-top: auto;
    min-height: 52px;
    width: 100%;
}

.testup-progress span {
    background: linear-gradient(90deg, #22a06b 0%, #0f5ef7 100%);
    display: block;
    height: 100%;
    min-width: 0;
}

.testup-button {
    background: linear-gradient(135deg, #13396f 0%, #0f5ef7 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 28px rgba(15, 94, 247, 0.2);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 50px;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.testup-button--completed,
.testup-button--completed:hover,
.testup-button--completed:focus {
    background: linear-gradient(135deg, #1d6b3d 0%, #2aa866 100%);
    box-shadow: 0 16px 28px rgba(34, 160, 107, 0.2);
    color: #ffffff;
}

.testup-button:hover,
.testup-button:focus {
    background: linear-gradient(135deg, #0e2e59 0%, #0d4dda 100%);
    box-shadow: 0 18px 30px rgba(13, 77, 218, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.testup-button--secondary {
    background: #ffffff;
    border: 1px solid #cad7e7;
    box-shadow: none;
    color: #1e4683;
}

.testup-button--secondary:hover,
.testup-button--secondary:focus {
    background: #eef6ff;
    box-shadow: none;
    color: #123b74;
}

.testup-button--locked,
.testup-button--locked:hover,
.testup-button--locked:focus {
    background: #e8edf5;
    box-shadow: none;
    color: #65758b;
    cursor: default;
    transform: none;
}

.testup-lesson .testup-button {
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(15, 94, 247, 0.14);
    font-size: 0.84rem;
    min-height: 34px;
    padding: 8px 12px;
}

.testup-lesson .testup-button:hover,
.testup-lesson .testup-button:focus {
    box-shadow: 0 10px 18px rgba(13, 77, 218, 0.18);
}

.testup-lesson .testup-button--secondary {
    box-shadow: none;
}

.testup-lesson-anchor {
    display: block;
    height: 1px;
    visibility: hidden;
}

.testup-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.testup-page-nav__item {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 12px;
    color: #1e4683;
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    text-decoration: none;
    width: 42px;
}

.testup-page-nav__item.is-current {
    background: #0f5ef7;
    border-color: #0f5ef7;
    color: #ffffff;
}

.testup-page-nav__item.is-locked {
    background: #edf1f7;
    color: #8a99aa;
}

.testup-lesson__form {
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(18, 42, 76, 0.08);
    overflow: hidden;
}

.testup-lesson__content {
    display: grid;
    gap: 0.55rem;
    padding: clamp(0.6rem, 1.8vw, 0.95rem) 0;
}

.testup-lesson__content > :first-child {
    margin-top: 0;
}

.testup-lesson__content > :last-child {
    margin-bottom: 0;
}

.testup-lesson__content > p {
    margin: 0.35rem clamp(0.75rem, 2vw, 1.1rem);
}

.testup-lesson__content > :not(.testup-runtime-question):not(p):not(br) {
    margin-left: clamp(0.75rem, 2vw, 1.1rem);
    margin-right: clamp(0.75rem, 2vw, 1.1rem);
}

.testup-lesson__content > p:empty {
    display: none;
}

.testup-lesson__content > br {
    display: none;
}

.testup-ui .testup-runtime-question {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dce7f5;
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    display: grid;
    gap: 0.65rem;
    margin: 0 !important;
    padding: clamp(0.7rem, 2.4vw, 0.95rem) clamp(0.75rem, 3vw, 1.15rem) !important;
}

.testup-runtime-question + .testup-runtime-question {
    margin-top: -0.35rem;
}

.testup-runtime-question__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.testup-runtime-question__meta span {
    background: #edf4ff;
    border: 1px solid #d8e5fa;
    border-radius: 999px;
    color: #1e4683;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    padding: 0.22rem 0.4rem;
    text-transform: uppercase;
}

.testup-runtime-question__prompt {
    color: #163053;
    font-size: 0.95rem;
    line-height: 1.45;
}

.testup-runtime-question__prompt > :first-child {
    margin-top: 0;
}

.testup-runtime-question__prompt > :last-child {
    margin-bottom: 0;
}

.testup-runtime-question.has-validation-error {
    border-color: #efcaca;
    box-shadow: 0 0 0 2px rgba(143, 29, 29, 0.08);
}

.testup-runtime-question__requirement {
    color: #53627a;
    font-size: 0.86rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.testup-runtime-question__choices,
.testup-runtime-question__blanks {
    display: grid;
    gap: 0.45rem;
}

.testup-runtime-question__choices label,
.testup-runtime-question__blanks label {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    min-height: 36px;
    padding: 0.45rem 0.65rem;
}

.testup-runtime-question__choices label.is-correct-answer {
    background: #f0f8f4;
    border-color: #9fd8b4;
    color: #155d3a;
    font-weight: 700;
}

.testup-runtime-question__choices input[type="radio"] {
    accent-color: #0f5ef7;
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.testup-runtime-question__blanks label {
    align-items: stretch;
    display: grid;
}

.testup-runtime-question__blanks label span {
    color: #20364f;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.testup-runtime-question__input,
.testup-runtime-question__textarea,
.testup-runtime-question__blanks input,
.testup-runtime-question__blank {
    background: #ffffff;
    border: 1px solid #cad7e7;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(14, 35, 61, 0.04);
    color: #163053;
    font: inherit;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

.testup-runtime-question__blank {
    display: inline-block;
    margin: 0 0.25rem 0.35rem;
    max-width: 14rem;
    min-width: 9rem;
    vertical-align: baseline;
    width: auto;
}

.testup-runtime-question__word-bank {
    display: inline-block;
    margin: 0 0.25rem 0.35rem;
    vertical-align: baseline;
    width: auto;
}

.testup-runtime-question__word-bank-options {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    vertical-align: baseline;
}

.testup-runtime-question__word-bank-option {
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: #0f468e;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.08rem 0.22rem;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.testup-runtime-question__word-bank-option:hover,
.testup-runtime-question__word-bank-option:focus {
    background: #eef6ff;
    outline: 2px solid #bfd8ff;
}

.testup-runtime-question__word-bank.is-answered .testup-runtime-question__word-bank-options {
    display: none;
}

.testup-runtime-question__word-bank-selected {
    display: none;
    font-weight: 700;
}

.testup-runtime-question__word-bank.is-answered .testup-runtime-question__word-bank-selected {
    display: inline;
}

.testup-runtime-question__inline-actions {
    margin-top: 0.75rem;
}

.testup-button--secondary {
    background: #eef6ff;
    border: 1px solid #bfd8ff;
    color: #0f468e;
}

.testup-runtime-question input:disabled,
.testup-runtime-question textarea:disabled,
.testup-runtime-question select:disabled {
    background: #f2f5f9;
    color: #5f7187;
    opacity: 1;
}

.testup-runtime-question__result,
.testup-callout-inline,
.testup-notice {
    align-items: center;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 14px;
}

.testup-runtime-question__result {
    background: #f0f8f4;
    border: 1px solid #cce8d8;
    color: #155d3a;
}

.testup-runtime-question__result--correct {
    background: #f0f8f4;
    border-color: #cce8d8;
    color: #155d3a;
}

.testup-runtime-question__result--incorrect {
    background: #fff1f1;
    border-color: #efcaca;
    color: #8f1d1d;
}

.testup-runtime-question__result--partial {
    background: #fff8df;
    border-color: #f0d98a;
    color: #765200;
}

.testup-runtime-question__result--pending {
    background: #eef6ff;
    border-color: #d8e5fa;
    color: #1e4683;
}

.testup-runtime-question__result span,
.testup-callout-inline span {
    color: inherit;
    opacity: 0.82;
}

.testup-lesson__actions {
    align-items: center;
    background: #f8fbff;
    border-top: 1px solid #dbe6f7;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
}

.testup-preview-note {
    color: #65758b;
    font-size: 13px;
}

.testup-callout-inline {
    background: #eef6ff;
    border: 1px solid #d8e5fa;
    color: #1e4683;
    margin: 0 clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
}

.testup-notice {
    margin-bottom: 16px;
}

.testup-notice.is-success {
    background: #eefaf2;
    border: 1px solid #c9e8d2;
    color: #155724;
}

.testup-notice.is-error {
    background: #fff1f1;
    border: 1px solid #efcaca;
    color: #8f1d1d;
}

.testup-ai-review {
    display: grid;
    gap: 18px;
}

.testup-ai-review__hero {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(18, 42, 76, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    overflow: hidden;
}

.testup-ai-review__copy {
    align-content: center;
    display: grid;
    gap: 14px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.testup-ai-review__copy .testup-eyebrow {
    background: #eef6ff;
    border-color: #d8e5fa;
    color: #1e4683;
}

.testup-ai-review__copy h2 {
    color: #102f5d;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin: 0;
}

.testup-ai-review__copy p {
    color: #52657b;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0;
}

.testup-ai-review__media {
    margin: 0;
    min-height: 300px;
}

.testup-ai-review__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.testup-ai-review__panel,
.testup-review-detail__summary,
.testup-review-detail__page {
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(18, 42, 76, 0.07);
}

.testup-ai-review__panel {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: clamp(1rem, 3vw, 1.6rem);
}

.testup-ai-review__status {
    display: grid;
    gap: 8px;
}

.testup-ai-review__status h3,
.testup-review-detail__summary h3,
.testup-review-detail__page h3 {
    color: #102f5d;
    font-size: 1.25rem;
    margin: 0;
}

.testup-ai-review__status p {
    color: #52657b;
    line-height: 1.55;
    margin: 0;
}

.testup-ai-review__form {
    margin: 0;
}

.testup-ai-review__form,
.testup-ai-review__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
}

.testup-ai-review__form .testup-button,
.testup-ai-review__actions .testup-button {
    flex: 0 0 190px;
    max-width: 190px;
    min-width: 190px;
    width: 190px;
    white-space: normal;
}

.testup-ai-review__grade,
.testup-review-detail__grade {
    align-items: center;
    background: #fffdf8;
    border: 3px solid #c92727;
    border-radius: 52% 48% 50% 46% / 45% 55% 48% 54%;
    color: #c92727;
    display: inline-grid;
    justify-items: center;
    min-height: 112px;
    min-width: 132px;
    padding: 14px 20px;
    transform: rotate(-2deg);
}

.testup-ai-review__grade span,
.testup-review-detail__grade span {
    color: #7e1d1d;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.testup-ai-review__grade strong,
.testup-review-detail__grade strong {
    color: #c92727;
    font-family: "Segoe Print", "Bradley Hand ITC", cursive;
    font-size: 3rem;
    line-height: 0.9;
}

.testup-ai-review__grade em,
.testup-review-detail__grade em {
    color: #7e1d1d;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 800;
}

.testup-ai-review__progress {
    background: #e7edf7;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.testup-ai-review__progress span {
    background: linear-gradient(90deg, #22a06b 0%, #0f5ef7 100%);
    display: block;
    height: 100%;
    transition: width 0.2s ease;
}

.testup-ui .is-hidden {
    display: none !important;
}

.testup-review-detail {
    display: grid;
    gap: 18px;
}

.testup-review-detail__header {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6f7;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(18, 42, 76, 0.08);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: clamp(1.25rem, 3vw, 1.8rem);
}

.testup-review-detail__header .testup-eyebrow {
    background: #eef6ff;
    border-color: #d8e5fa;
    color: #1e4683;
    margin-bottom: 12px;
}

.testup-review-detail__header h2 {
    color: #102f5d;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 1.05;
    margin: 0 0 10px;
}

.testup-review-detail__header p {
    color: #52657b;
    line-height: 1.55;
    margin: 0;
}

.testup-review-detail__summary,
.testup-review-detail__page {
    display: grid;
    gap: 14px;
    padding: clamp(1rem, 3vw, 1.4rem);
}

.testup-review-detail__summary ul {
    color: #8f1d1d;
    display: grid;
    gap: 8px;
    font-weight: 700;
    margin: 0;
    padding-left: 1.2rem;
}

.testup-review-question {
    background: #fbfdff;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: clamp(0.85rem, 2.6vw, 1.1rem);
}

.testup-review-question__prompt {
    color: #163053;
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

.testup-review-question__prompt p {
    margin: 0;
}

.testup-review-question__choices {
    align-items: baseline;
    background: #eef6ff;
    border: 1px solid #d8e5fa;
    border-radius: 12px;
    color: #1e4683;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    line-height: 1.45;
    padding: 0.65rem 0.75rem;
}

.testup-review-question__choices strong {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.testup-review-question__choices span {
    color: #163053;
}

.testup-review-question__answer {
    background: #ffffff;
    border: 1px solid #e2e9f4;
    border-radius: 12px;
    padding: 0.75rem;
}

.testup-review-question__answer strong,
.testup-review-feedback strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.testup-review-question__answer p,
.testup-review-feedback p {
    margin: 0;
    white-space: pre-wrap;
}

.testup-review-feedback {
    background: #fff7f7;
    border: 1px solid #efcaca;
    border-radius: 12px;
    color: #b42323;
    font-family: "Segoe Print", "Bradley Hand ITC", cursive;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.75rem;
}

@media (max-width: 700px) {
    .testup-dashboard,
    .testup-lesson,
    .testup-empty-card {
        margin: 1rem auto;
    }

    .testup-plan-card__header {
        display: grid;
    }

    .testup-dashboard-lesson-row {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .testup-dashboard-lesson-row__status {
        grid-column: 2;
        justify-self: start;
    }

    .testup-pack-switcher,
    .testup-pack-switcher form {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .testup-pack-switcher select {
        min-width: 0;
        width: 100%;
    }

    .testup-lesson__actions {
        display: grid;
    }

    .testup-lesson__content {
        padding-top: 0.5rem;
    }

    .testup-ui .testup-runtime-question {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .testup-runtime-question__choices label,
    .testup-runtime-question__blanks label {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .testup-button {
        width: 100%;
    }

    .testup-ai-review__hero,
    .testup-ai-review__panel,
    .testup-review-detail__header {
        grid-template-columns: 1fr;
    }

    .testup-ai-review__media {
        min-height: 220px;
        order: -1;
    }

    .testup-ai-review__panel {
        align-items: stretch;
    }

    .testup-ai-review__grade,
    .testup-review-detail__grade {
        justify-self: start;
    }
}
