/* Student stylesheet bundle. Page sections are scoped to body markers. */
/* ============================================================
   JOURNEY
   Enabled by: cf-css-journey
   ============================================================ */
:root:where(:has(body.cf-css-journey)) {
    --ink: #17201e;
    --muted: #596761;
    --line: #e0e6e1;
}
:where(.cf-css-journey) *,*:where(.cf-css-journey),*:where(:has(body.cf-css-journey)) {
    box-sizing: border-box;
}
:where(.cf-css-journey) .journey-content {
    color: var(--ink);
    font: 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:where(.cf-css-journey) button,:where(.cf-css-journey) input,:where(.cf-css-journey) select {
    font: inherit;
}
:where(.cf-css-journey) .journey-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    min-width: 0;
}
:where(.cf-css-journey) .journey-success {
    border-left-color: #16834a;
    color: #12653b;
    background: #effaf3;
}
:where(.cf-css-journey) .journey-content h1 {
    font-size: clamp(27px,5vw,42px);
    letter-spacing: -1.2px;
    line-height: 1.2;
    margin: 12px 0 16px;
}
:where(.cf-css-journey) .journey-content h2 {
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 12px;
}
:where(.cf-css-journey) .journey-content h3 {
    font-size: 17px;
    margin: 0 0 8px;
}
:where(.cf-css-journey) .journey-content p {
    margin: 0 0 16px;
}
:where(.cf-css-journey) .journey-content a {
    color: var(--ink);
}
:where(.cf-css-journey) .journey-content .eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 750;
    color: var(--muted);
}
:where(.cf-css-journey) .journey-content .muted {
    color: var(--muted);
}
:where(.cf-css-journey) .journey-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
    margin: 20px 0;
    overflow-wrap: anywhere;
}
:where(.cf-css-journey) .journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
:where(.cf-css-journey) .journey-grid .journey-card {
    margin: 0;
}
:where(.cf-css-journey) .journey-field {
    display: block;
    margin-bottom: 20px;
}
:where(.cf-css-journey) .journey-field span {
    display: block;
    font-weight: 650;
    margin-bottom: 7px;
}
:where(.cf-css-journey) .journey-field input,:where(.cf-css-journey) .journey-field select {
    display: block;
    background: #fff;
    color: var(--ink);
    border: 1px solid #bbc6be;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    min-width: 0;
}
:where(.cf-css-journey) .journey-field small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}
:where(.cf-css-journey) .journey-field input:focus {
    outline: 2px solid var(--cf-accent);
    outline-offset: 2px;
}
:where(.cf-css-journey) .journey-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cf-accent);
    border-radius: 10px;
    background: var(--cf-accent);
    color: #111;
    font-weight: 750;
    padding: 12px 20px;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    max-width: 100%;
    text-align: center;
}
:where(.cf-css-journey) .journey-button.secondary {
    background: white;
    border-color: var(--line);
    color: var(--ink);
}
:where(.cf-css-journey) .journey-button:disabled {
    opacity: .55;
    cursor: wait;
}
:where(.cf-css-journey) .journey-button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
:where(.cf-css-journey) .journey-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
:where(.cf-css-journey) .journey-notice {
    border-left: 4px solid var(--cf-accent);
    padding: 14px 18px;
    border-radius: 8px;
    background: #fff;
    margin: 16px 0;
    overflow-wrap: anywhere;
}
:where(.cf-css-journey) .journey-error {
    border-color: #b73535;
    color: #802929;
}
:where(.cf-css-journey) .journey-score {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}
:where(.cf-css-journey) .journey-kpis {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    margin: 22px 0;
}
:where(.cf-css-journey) .journey-kpis .journey-card {
    margin: 0;
}
:where(.cf-css-journey) .journey-list {
    padding-left: 20px;
    margin: 0;
}
:where(.cf-css-journey) .journey-list li {
    margin: 7px 0;
}
:where(.cf-css-journey) .journey-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
:where(.cf-css-journey) .journey-timer {
    font-size: 23px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
:where(.cf-css-journey) .journey-progress {
    height: 5px;
    border-radius: 5px;
    background: var(--line);
    margin: 18px 0;
    overflow: hidden;
}
:where(.cf-css-journey) .journey-progress>div {
    height: 100%;
    background: var(--cf-accent);
}
:where(.cf-css-journey) .diagnostic-room {
    user-select: none;
    -webkit-user-select: none;
}
:where(.cf-css-journey) .question-text {
    font-size: 20px;
    line-height: 1.6;
    margin: 20px 0;
}
:where(.cf-css-journey) .question-image {
    display: block;
    max-width: 100%;
    max-height: 260px;
    margin: 16px auto;
}
:where(.cf-css-journey) .question-option {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    background: white;
    color: var(--ink);
    cursor: pointer;
}
:where(.cf-css-journey) .question-option.selected {
    border: 2px solid var(--cf-accent);
    padding: 14px;
    background: color-mix(in srgb,var(--cf-accent) 12%,white);
}
:where(.cf-css-journey) .option-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #f1f5f1;
    font-weight: 750;
}
:where(.cf-css-journey) .question-option.selected .option-letter {
    background: var(--cf-accent);
    color: #111;
}
:where(.cf-css-journey) .question-option:focus-visible {
    outline: 2px solid var(--cf-accent);
    outline-offset: 2px;
}
:where(.cf-css-journey) .confidence {
    border: none;
    padding: 0;
    margin: 24px 0 0;
}
:where(.cf-css-journey) .confidence legend {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}
:where(.cf-css-journey) .confidence label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    font-size: 14px;
}
:where(.cf-css-journey) .confidence input {
    accent-color: var(--cf-accent);
}
:where(.cf-css-journey) .journey-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
:where(.cf-css-journey) .journey-table th,:where(.cf-css-journey) .journey-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    overflow-wrap: anywhere;
}
:where(.cf-css-journey) .topic-chip {
    display: inline-block;
    padding: 3px 9px;
    background: #f0f4ef;
    border-radius: 20px;
    font-size: 12px;
}
:where(.cf-css-journey) .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
:where(.cf-css-journey) [hidden] {
    display: none!important;
}
@media(max-width:575px) {
    :where(.cf-css-journey) .journey-content {
        padding: 22px 14px 36px;
    }
    :where(.cf-css-journey) .journey-grid,:where(.cf-css-journey) .journey-kpis {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-journey) .journey-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    :where(.cf-css-journey) .journey-score {
        font-size: 35px;
    }
    :where(.cf-css-journey) .journey-actions .journey-button {
        width: 100%;
    }
    :where(.cf-css-journey) .question-text {
        font-size: 18px;
    }
    :where(.cf-css-journey) .confidence label {
        display: flex;
        margin: 8px 0;
    }
}
/* ============================================================
   CLASSROOM ROOM
   Enabled by: cf-css-classroom-room
   ============================================================ */
:where(.cf-css-classroom-room) .classroom-room-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
:where(.cf-css-classroom-room) .classroom-wordmark {
    display: block;
    font-size: 19px;
}
:where(.cf-css-classroom-room) .classroom-wordmark:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    border-radius: 3px;
    background: var(--cf-accent);
}
:where(.cf-css-classroom-room) .classroom-exam {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}
:where(.cf-css-classroom-room) .classroom-room-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    max-width: 1440px;
    margin: auto;
    align-items: start;
}
:where(.cf-css-classroom-room) .classroom-room-nav {
    padding: 24px 18px;
    position: sticky;
    top: 98px;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    border-right: 1px solid var(--line);
}
:where(.cf-css-classroom-room) .classroom-room-nav details {
    margin-bottom: 24px;
}
:where(.cf-css-classroom-room) .classroom-room-nav summary {
    font-weight: 750;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
:where(.cf-css-classroom-room) .classroom-subject,:where(.cf-css-classroom-room) 
.classroom-lesson-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--ink);
    border: 0;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 5px 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}
:where(.cf-css-classroom-room) .classroom-subject:hover,:where(.cf-css-classroom-room) 
.classroom-lesson-link:hover {
    background: #fff;
}
:where(.cf-css-classroom-room) .classroom-subject.active,:where(.cf-css-classroom-room) 
.classroom-lesson-link.active {
    background: color-mix(in srgb, var(--cf-accent) 16%, white);
    box-shadow: inset 3px 0 var(--cf-accent);
    font-weight: 700;
}
:where(.cf-css-classroom-room) .classroom-room-nav small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}
:where(.cf-css-classroom-room) .classroom-room-nav .disabled {
    opacity: .65;
}
:where(.cf-css-classroom-room) .classroom-browse {
    font-size: 13px;
}
:where(.cf-css-classroom-room) .classroom-room-content {
    padding: 32px clamp(18px, 4vw, 54px) 70px;
    max-width: 1120px;
    width: 100%;
    min-width: 0;
}
:where(.cf-css-classroom-room) .classroom-room-content h1 {
    margin-top: 0;
}
:where(.cf-css-classroom-room) .classroom-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
:where(.cf-css-classroom-room) .classroom-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}
:where(.cf-css-classroom-room) .classroom-card .journey-button {
    margin-top: auto;
}
:where(.cf-css-classroom-room) .classroom-section-title {
    margin: 30px 0 16px;
}
:where(.cf-css-classroom-room) .classroom-status {
    font-size: 13px;
    color: var(--muted);
}
:where(.cf-css-classroom-room) .classroom-skip {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--cf-accent);
    z-index: 100;
    padding: 10px;
}
:where(.cf-css-classroom-room) .classroom-skip:focus {
    top: 12px;
}
:where(.cf-css-classroom-room) .cf-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
:where(.cf-css-classroom-room) .cf-lesson-hero {
    padding: 28px;
    background: #17201e;
    color: white;
    border-top: 5px solid var(--cf-accent);
}
:where(.cf-css-classroom-room) .cf-lesson-hero h1 {
    font-size: clamp(25px, 4vw, 36px);
}
:where(.cf-css-classroom-room) .cf-lesson-hero p {
    color: #e0e6e1;
}
:where(.cf-css-classroom-room) .text-branding {
    color: var(--cf-accent) !important;
}
:where(.cf-css-classroom-room) .cf-objectives,:where(.cf-css-classroom-room) 
.cf-lesson-block {
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    line-height: 1.85;
    overflow-wrap: anywhere;
}
:where(.cf-css-classroom-room) .cf-objectives {
    background: color-mix(in srgb, var(--cf-accent) 9%, white);
}
:where(.cf-css-classroom-room) .cf-objectives h2,:where(.cf-css-classroom-room) 
.cf-lesson-block h3 {
    font-size: 19px;
}
:where(.cf-css-classroom-room) .cf-worked-example,:where(.cf-css-classroom-room) 
.cf-lesson-summary {
    background: #f7faf7;
}
:where(.cf-css-classroom-room) .cf-example-problem {
    font-weight: 700;
    margin: 12px 0;
}
:where(.cf-css-classroom-room) .cf-example-answer {
    padding: 14px;
    border-left: 4px solid var(--cf-accent);
    background: white;
}
:where(.cf-css-classroom-room) .cf-lesson-note,:where(.cf-css-classroom-room) 
.cf-lesson-formula,:where(.cf-css-classroom-room) 
.cf-lesson-warning,:where(.cf-css-classroom-room) 
.cf-exam-tips {
    background: color-mix(in srgb, var(--cf-accent) 6%, white);
}
:where(.cf-css-classroom-room) .cf-formula {
    padding: 14px;
    background: white;
    text-align: center;
}
:where(.cf-css-classroom-room) .cf-lesson-visual {
    padding: 24px;
    text-align: center;
}
:where(.cf-css-classroom-room) .cf-visual-placeholder {
    min-height: 140px;
    border: 2px dashed var(--line);
    padding: 24px;
    border-radius: 12px;
    color: var(--muted);
}
:where(.cf-css-classroom-room) .cf-lesson-visual figcaption {
    font-size: 13px;
    color: var(--muted);
}
:where(.cf-css-classroom-room) .cf-reading-progress {
    height: 4px;
    background: var(--line);
    margin-bottom: 20px;
}
:where(.cf-css-classroom-room) .cf-reading-progress span {
    display: block;
    height: 100%;
    background: var(--cf-accent);
    width: 0;
}
:where(.cf-css-classroom-room) .cf-assessment-question {
    margin: 18px 0;
    padding: 24px;
}
:where(.cf-css-classroom-room) .cf-assessment-question h2 {
    font-size: 19px;
    font-weight: 650;
    line-height: 1.6;
}
:where(.cf-css-classroom-room) .cf-answer-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
:where(.cf-css-classroom-room) .cf-answer-option:has(input:checked) {
    border-color: var(--cf-accent);
    background: color-mix(in srgb, var(--cf-accent) 10%, white);
}
:where(.cf-css-classroom-room) .cf-answer-option input {
    accent-color: var(--cf-accent);
    margin-top: 6px;
}
:where(.cf-css-classroom-room) .cf-answer-option.correct {
    border-width: 2px;
    border-color: var(--cf-accent);
}
:where(.cf-css-classroom-room) .cf-answer-option.wrong {
    border-color: #ad3838;
}
:where(.cf-css-classroom-room) .cf-solution {
    padding: 14px;
    background: #f5f7f4;
    border-radius: 8px;
    margin-top: 14px;
}
:where(.cf-css-classroom-room) .cf-solution p {
    margin: 8px 0 0;
}
:where(.cf-css-classroom-room) .classroom-question-image {
    max-width: 100%;
    max-height: 260px;
    display: block;
    margin: 14px auto;
}
:where(.cf-css-classroom-room) .classroom-history {
    font-size: 14px;
}
:where(.cf-css-classroom-room) .classroom-room-page :focus-visible {
    outline: 2px solid var(--cf-accent);
    outline-offset: 3px;
}
:where(.cf-css-classroom-room) .classroom-room-page .table-responsive {
    max-width: 100%;
    overflow: auto;
}
:where(.cf-css-classroom-room) .classroom-room-page .table {
    min-width: 0;
    overflow-wrap: anywhere;
}
:where(.cf-css-classroom-room) .improvement-details {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    padding: 20px;
}
:where(.cf-css-classroom-room) .improvement-details summary {
    font-weight: 750;
    cursor: pointer;
}
:where(.cf-css-classroom-room) .improvement-topic {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    margin-top: 18px;
}
:where(.cf-css-classroom-room) .improvement-topic h3 {
    font-size: 18px;
}
:where(.cf-css-classroom-room) .improvement-topic:last-child {
    padding-bottom: 0;
}
:where(.cf-css-classroom-room) .improvement-urgency {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
:where(.cf-css-classroom-room) .improvement-urgency.overdue {
    color: #a12c2c;
}
@media(max-width:900px) {
    :where(.cf-css-classroom-room) .classroom-room-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    :where(.cf-css-classroom-room) .classroom-cards {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-classroom-room) .classroom-room-content {
        padding: 26px 20px 50px;
    }
}
@media(max-width:650px) {
    :where(.cf-css-classroom-room) .classroom-room-header {
        padding: 14px 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    :where(.cf-css-classroom-room) .classroom-room-header .journey-button {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }
    :where(.cf-css-classroom-room) .classroom-room-layout {
        display: block;
    }
    :where(.cf-css-classroom-room) .classroom-room-nav {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 16px;
    }
    :where(.cf-css-classroom-room) .classroom-room-nav details {
        margin-bottom: 16px;
    }
    :where(.cf-css-classroom-room) .classroom-room-nav details nav {
        max-height: 220px;
        overflow: auto;
    }
    :where(.cf-css-classroom-room) .classroom-room-content {
        padding: 24px 16px 50px;
    }
    :where(.cf-css-classroom-room) .cf-lesson-hero,:where(.cf-css-classroom-room) 
    .cf-objectives,:where(.cf-css-classroom-room) 
    .cf-lesson-block {
        padding: 22px 18px;
    }
    :where(.cf-css-classroom-room) .cf-assessment-question {
        padding: 18px 14px;
    }
    :where(.cf-css-classroom-room) .improvement-details {
        padding: 18px 14px;
    }
}
/* ============================================================
   CBT ROOM
   Enabled by: cf-css-cbt-room
   ============================================================ */
:where(.cf-css-cbt-room) .cbt-layout {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(220px,1fr);
    gap: 1rem;
}
:where(.cf-css-cbt-room) .cbt-palette {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: .5rem;
    margin: 1rem 0;
}
:where(.cf-css-cbt-room) .cbt-palette button {
    min-height: 42px;
    border: 1px solid #7b8583;
    border-radius: .5rem;
    background: white;
    color: #17201e;
}
:where(.cf-css-cbt-room) .cbt-palette button.answered {
    background: var(--cf-accent);
    font-weight: 700;
}
:where(.cf-css-cbt-room) .cbt-palette button.flagged {
    outline: 3px solid #17201e;
    outline-offset: 1px;
}
:where(.cf-css-cbt-room) .cbt-palette button.current {
    border: 3px solid #17201e;
}
:where(.cf-css-cbt-room) .question-option {
    display: block;
    width: 100%;
    min-height: 48px;
    text-align: left;
    padding: .85rem;
    margin: .5rem 0;
    border: 1px solid #7b8583;
    background: white;
    border-radius: .7rem;
    overflow-wrap: anywhere;
}
:where(.cf-css-cbt-room) .question-option.selected {
    border: 3px solid var(--cf-accent);
    background: #f5f6f5;
}
:where(.cf-css-cbt-room) #cbtTimer {
    font-variant-numeric: tabular-nums;
}
:where(.cf-css-cbt-room) #cbtCalcInput {
    display: block;
    width: 100%;
    padding: .8rem;
    margin: .7rem 0;
}
:where(.cf-css-cbt-room) button:focus-visible,:where(.cf-css-cbt-room) a:focus-visible {
    outline: 3px solid #17201e;
    outline-offset: 3px;
}
:where(.cf-css-cbt-room) #cbtReviewPanel {
    border: 2px solid var(--cf-accent);
}
@media(max-width:767px) {
    :where(.cf-css-cbt-room) .cbt-layout {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-cbt-room) .cbt-palette {
        grid-template-columns: repeat(8,minmax(0,1fr));
    }
}
@media(max-width:375px) {
    :where(.cf-css-cbt-room) .cbt-palette {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
    :where(.cf-css-cbt-room) .journey-actions {
        align-items: stretch;
    }
    :where(.cf-css-cbt-room) .journey-actions button {
        flex: 1;
    }
}
/* ============================================================
   STUDENT ACTIVITIES
   Enabled by: cf-css-student-activities
   ============================================================ */
/* Shared student activity UI. Scoped to activity pages; leaves the portal shell intact. */
:where(.cf-css-student-activities) .cf-activity-content {
    --activity-ink: var(--cf-dark,#212529);
    --activity-muted: #667085;
    --activity-line: #e5e7eb;
    max-width: 1200px;
    margin: auto;
    padding: 16px 8px 40px;
    color: var(--activity-ink);
    font-family: inherit;
    min-width: 0;
}
:where(.cf-css-student-activities) .cf-activity-content h1 {
    font-size: clamp(26px,4vw,36px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 6px 0 12px;
}
:where(.cf-css-student-activities) .cf-activity-content h2 {
    font-weight: 750;
    letter-spacing: -.4px;
}
:where(.cf-css-student-activities) .cf-activity-content .muted {
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-activity-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
:where(.cf-css-student-activities) .cf-activity-hero p {
    max-width: 650px;
    margin-bottom: 0;
    line-height: 1.7;
}
:where(.cf-css-student-activities) .cf-activity-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-activity-eyebrow:before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cf-accent);
    border-radius: 50%;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-card {
    border: 1px solid var(--activity-line);
    box-shadow: 0 4px 20px rgba(16,24,40,.035);
    border-radius: 18px;
    background: var(--cf-card-bg,#fff);
    padding: 24px;
    margin: 0;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-card+.journey-card {
    margin-top: 20px;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-button {
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
    transition: transform .15s,box-shadow .15s;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16,24,40,.09);
}
:where(.cf-css-student-activities) .cf-activity-content .journey-button.secondary {
    background: #fff;
    color: var(--activity-ink);
    border-color: var(--activity-line);
}
:where(.cf-css-student-activities) .cf-activity-content .journey-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-actions {
    gap: 10px;
    margin-top: 18px;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-notice {
    border: 1px solid var(--activity-line);
    border-left: 4px solid var(--cf-accent);
    background: var(--cf-card-bg,#fff);
    border-radius: 12px;
    padding: 16px 18px;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-error {
    border-left-color: #d92d20;
    background: #fff6f5;
    color: #912018;
}
:where(.cf-css-student-activities) .cf-practice-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    margin: 22px 0;
}
:where(.cf-css-student-activities) .cf-practice-subject {
    position: relative;
    min-width: 0;
    transition: border-color .15s,box-shadow .15s;
}
:where(.cf-css-student-activities) .cf-practice-subject.is-selected {
    border-color: var(--cf-accent);
    box-shadow: 0 0 0 1px var(--cf-accent);
}
:where(.cf-css-student-activities) .cf-practice-subject legend {
    float: none;
    width: auto;
    font-size: 17px;
    font-weight: 750;
    padding: 0;
    margin: 0 0 10px;
}
:where(.cf-css-student-activities) .cf-practice-subject legend label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
:where(.cf-css-student-activities) .cf-practice-subject input[type=checkbox] {
    width: 19px;
    height: 19px;
    accent-color: var(--cf-accent);
    flex-shrink: 0;
}
:where(.cf-css-student-activities) .cf-practice-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
:where(.cf-css-student-activities) .cf-practice-fields .journey-field:first-child {
    grid-column: 1/-1;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-field {
    margin: 0;
    min-width: 0;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-field span {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}
:where(.cf-css-student-activities) .cf-activity-content .journey-field input,:where(.cf-css-student-activities) .cf-activity-content .journey-field select {
    min-height: 46px;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    width: 100%;
    color: var(--activity-ink);
}
:where(.cf-css-student-activities) .cf-activity-content .journey-field input:disabled,:where(.cf-css-student-activities) .cf-activity-content .journey-field select:disabled {
    background: #f7f8fa;
    color: #98a2b3;
}
:where(.cf-css-student-activities) .cf-activity-content input:focus-visible,:where(.cf-css-student-activities) .cf-activity-content select:focus-visible,:where(.cf-css-student-activities) .cf-activity-content button:focus-visible,:where(.cf-css-student-activities) .cf-activity-content a:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 3px;
}
:where(.cf-css-student-activities) .cf-practice-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
:where(.cf-css-student-activities) .cf-practice-summary .journey-field {
    max-width: 240px;
}
:where(.cf-css-student-activities) .cf-practice-summary p {
    font-size: 13px;
    color: var(--activity-muted);
    margin: 8px 0 0;
}
:where(.cf-css-student-activities) .cf-practice-note {
    font-size: 13px;
    color: var(--activity-muted);
    margin-bottom: 18px!important;
}
:where(.cf-css-student-activities) .cf-activity-help {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-activity-help a {
    text-decoration: none;
    font-weight: 650;
}
:where(.cf-css-student-activities) .cf-activity-help a:hover {
    text-decoration: underline;
}
:where(.cf-css-student-activities) .cf-cbt-intro {
    margin-bottom: 24px!important;
}
:where(.cf-css-student-activities) .cf-cbt-intro h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
:where(.cf-css-student-activities) .cf-cbt-guide {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin: 20px 0;
}
:where(.cf-css-student-activities) .cf-cbt-guide div {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-cbt-guide strong {
    display: block;
    color: var(--activity-ink);
    font-size: 14px;
    margin-bottom: 5px;
}
:where(.cf-css-student-activities) .cf-cbt-guide i {
    font-size: 19px;
    display: block;
    margin-bottom: 8px;
    color: var(--activity-ink);
}
:where(.cf-css-student-activities) .cf-cbt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--activity-line);
    border-radius: 14px;
    background: #fff;
}
:where(.cf-css-student-activities) .cf-cbt-toolbar #cbtPosition {
    font-size: 14px;
}
:where(.cf-css-student-activities) .cf-cbt-toolbar #cbtTimer {
    background: #f8f9fb;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
:where(.cf-css-student-activities) .cf-activity-content .question-text {
    font-size: clamp(18px,2.3vw,21px);
    line-height: 1.75;
    margin: 20px 0;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtSubject {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-activity-content .question-option {
    display: block;
    min-height: 54px;
    padding: 15px 16px;
    margin: 10px 0;
    border: 1px solid var(--activity-line);
    border-radius: 12px;
    background: #fff;
    color: var(--activity-ink);
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}
:where(.cf-css-student-activities) .cf-activity-content .question-option:hover {
    border-color: #a4aab5;
    background: #fafbfc;
}
:where(.cf-css-student-activities) .cf-activity-content .question-option.selected {
    padding: 14px 15px;
    border: 2px solid var(--cf-accent);
    background: color-mix(in srgb,var(--cf-accent) 10%,white);
    font-weight: 650;
}
:where(.cf-css-student-activities) .cf-activity-content .confidence {
    border-top: 1px solid var(--activity-line);
    padding-top: 18px;
    margin-top: 22px;
}
:where(.cf-css-student-activities) .cf-activity-content .confidence legend {
    float: none;
    width: auto;
    font-size: 13px;
    font-weight: 650;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-activity-content .confidence label {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f8f9fb;
    margin: 5px 8px 5px 0;
}
:where(.cf-css-student-activities) .cf-activity-content .confidence input {
    accent-color: var(--cf-accent);
}
:where(.cf-css-student-activities) .cf-cbt-navigation {
    padding-top: 18px;
    border-top: 1px solid var(--activity-line);
    margin-top: 20px;
}
:where(.cf-css-student-activities) .cf-cbt-navigation .journey-button {
    flex: 1;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 270px;
    align-items: start;
    gap: 20px;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-layout .journey-card {
    margin: 0;
    min-width: 0;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-layout aside h2 {
    font-size: 17px;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-palette {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
    margin: 20px 0;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-palette button {
    height: 39px;
    min-width: 0;
    border: 1px solid var(--activity-line);
    border-radius: 8px;
    background: #fff;
    color: var(--activity-ink);
    font-family: inherit;
    font-weight: 650;
    font-size: 13px;
    cursor: pointer;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-palette button.answered {
    background: var(--cf-accent);
    border-color: var(--cf-accent);
    color: #111;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-palette button.flagged {
    outline: 2px solid #344054;
    outline-offset: 1px;
}
:where(.cf-css-student-activities) .cf-activity-content .cbt-palette button.current {
    border: 2px solid #344054;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtReview {
    width: 100%;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtReviewPanel {
    border-color: var(--cf-accent);
    margin-top: 22px;
}
:where(.cf-css-student-activities) .cf-cbt-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-cbt-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}
:where(.cf-css-student-activities) .cf-cbt-legend b {
    width: 10px;
    height: 10px;
    display: inline-block;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
}
:where(.cf-css-student-activities) .cf-cbt-legend .answered-key {
    background: var(--cf-accent);
    border-color: var(--cf-accent);
}
:where(.cf-css-student-activities) .cf-cbt-legend .marked-key {
    outline: 1px solid #344054;
}
:where(.cf-css-student-activities) .cf-cbt-shortcuts {
    margin: 18px 0;
    font-size: 12px;
    color: var(--activity-muted);
}
:where(.cf-css-student-activities) .cf-cbt-shortcuts summary {
    cursor: pointer;
    font-weight: 650;
}
:where(.cf-css-student-activities) .cf-cbt-shortcuts p {
    margin: 8px 0 0;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtConnection {
    font-size: 13px;
    margin: 18px 0 12px;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtCalculator {
    margin: 20px 0;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtCalculator summary {
    font-weight: 700;
    cursor: pointer;
}
:where(.cf-css-student-activities) .cf-activity-content #cbtCalcResult {
    display: block;
    font-size: 22px;
    font-weight: 800;
    padding: 12px 0;
}
@media(max-width:991px) {
    :where(.cf-css-student-activities) .cf-activity-content .cbt-layout {
        grid-template-columns: minmax(0,1fr);
    }
    :where(.cf-css-student-activities) .cf-activity-content .cbt-palette {
        grid-template-columns: repeat(auto-fill,minmax(38px,1fr));
    }
}
@media(max-width:575px) {
    :where(.cf-css-student-activities) .cf-activity-content {
        padding: 8px 0 28px;
    }
    :where(.cf-css-student-activities) .cf-activity-hero {
        flex-direction: column;
        gap: 14px;
    }
    :where(.cf-css-student-activities) .cf-activity-content .journey-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
    :where(.cf-css-student-activities) .cf-practice-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    :where(.cf-css-student-activities) .cf-practice-summary {
        align-items: stretch;
        flex-direction: column;
    }
    :where(.cf-css-student-activities) .cf-practice-summary .journey-field {
        max-width: none;
    }
    :where(.cf-css-student-activities) .cf-practice-summary>.journey-button {
        width: 100%;
    }
    :where(.cf-css-student-activities) .cf-cbt-guide {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    :where(.cf-css-student-activities) .cf-cbt-guide div {
        padding: 13px;
    }
    :where(.cf-css-student-activities) .cf-cbt-guide i {
        display: none;
    }
    :where(.cf-css-student-activities) .cf-cbt-toolbar {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    :where(.cf-css-student-activities) .cf-cbt-toolbar #cbtTimer {
        font-size: 18px;
    }
    :where(.cf-css-student-activities) .cf-cbt-toolbar .journey-button {
        min-height: 38px;
        padding: 8px 12px;
    }
    :where(.cf-css-student-activities) .cf-cbt-navigation .journey-button {
        flex-basis: calc(50% - 10px);
        width: auto;
    }
    :where(.cf-css-student-activities) .cf-activity-content .confidence label {
        display: inline-flex;
        gap: 6px;
        margin-right: 4px;
    }
    :where(.cf-css-student-activities) .cf-activity-help {
        align-items: flex-start;
        flex-direction: column;
    }
    :where(.cf-css-student-activities) .cf-activity-content .question-option {
        font-size: 14px;
    }
}
/* ============================================================
   DIAGNOSTIC RESULT
   Enabled by: cf-css-diagnostic-result
   ============================================================ */
/* Diagnostic result only; uses the centre's existing accent and dashboard shell. */
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-section-heading {
    margin-bottom: 22px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-section-heading h2 {
    margin-bottom: 8px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-section-heading p {
    color: var(--cf-muted,#667085);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    background: var(--cf-card-bg,#fff);
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(16,24,40,.035);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-header h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
    letter-spacing: -.3px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f5f6f8;
    background: color-mix(in srgb,var(--cf-accent) 12%,white);
    font-size: 19px;
    color: var(--cf-dark,#212529);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-score {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-score strong {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-score strong span {
    font-size: 23px;
    font-weight: 600;
    color: var(--cf-muted,#667085);
    letter-spacing: -.5px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-score>span {
    font-size: 13px;
    color: var(--cf-muted,#667085);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-progress {
    height: 7px;
    background: #edf0f3;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 22px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-progress>span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: var(--cf-accent);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    margin: 0 0 25px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details>div {
    min-width: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details dt {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--cf-muted,#667085);
    margin: 0 0 9px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details dd {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details small {
    font-size: 12px;
    font-weight: 500;
    color: var(--cf-muted,#667085);
    margin-left: 2px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-review-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--cf-border,#d0d5dd);
    border-radius: 11px;
    padding: 13px 16px;
    margin-top: auto;
    background: #fff;
    color: var(--cf-dark,#212529);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .15s,background .15s;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-review-button:hover {
    border-color: var(--cf-accent);
    background: color-mix(in srgb,var(--cf-accent) 9%,white);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-review-button>i:last-child {
    margin-left: auto;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-score-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.75;
    color: var(--cf-muted,#667085);
    margin: 18px 0 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-score-note i {
    margin-top: 2px;
    flex-shrink: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-intro {
    color: var(--cf-muted,#667085);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 18px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-links {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-links>li {
    margin: 0;
    padding: 0;
    min-width: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-link {
    display: block;
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 13px;
    padding: 18px;
    text-decoration: none;
    color: var(--cf-dark,#212529);
    background: var(--cf-card-bg,#fff);
    transition: border-color .15s,box-shadow .15s;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result a.cf-result-topic-link:hover {
    border-color: var(--cf-accent);
    box-shadow: 0 2px 8px rgba(16,24,40,.05);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-top>span:first-child {
    min-width: 0;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-top strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-subject {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--cf-muted,#667085);
    margin-bottom: 5px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-score {
    font-size: 12px;
    font-weight: 650;
    color: var(--cf-muted,#667085);
    white-space: nowrap;
    margin-top: 3px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-action {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--cf-border,#e5e7eb);
    padding-top: 13px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 750;
    min-height: 40px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-action>i:last-child {
    margin-left: auto;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-link--unavailable p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--cf-muted,#667085);
    margin: 14px 0 8px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-help {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 13px;
    font-weight: 650;
    color: var(--cf-dark,#212529);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-actions {
    gap: 14px;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-dashboard-button {
    background: var(--cf-accent);
    color: var(--cf-result-on-accent,#111);
    border: 1px solid var(--cf-accent);
    min-height: 48px;
    padding: 14px 22px;
    border-radius: 11px;
    font-weight: 750;
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-dashboard-button:hover {
    background: var(--cf-accent);
    color: var(--cf-result-on-accent,#111);
    filter: brightness(.96);
}
:where(.cf-css-diagnostic-result) .cf-diagnostic-result a:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 4px;
}
@media(max-width:767px) {
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-card {
        padding: 20px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details {
        gap: 12px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details dd {
        font-size: 18px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-top {
        flex-direction: column;
        gap: 8px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-score {
        margin: 0;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-topic-link {
        padding: 16px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-actions>a {
        width: 100%;
        justify-content: center;
    }
}
@media(max-width:360px) {
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    :where(.cf-css-diagnostic-result) .cf-diagnostic-result .cf-result-subject-details dt {
        margin: 0;
    }
}
/* ============================================================
   CLASSROOM ASSESSMENT RESULT
   Enabled by: cf-css-classroom-assessment-result
   ============================================================ */
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult {
    scroll-margin-top: 100px;
    margin: 0 0 26px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult>.cf-assessment-result-card {
    padding: clamp(22px,4vw,36px);
    margin: 0;
    border-radius: 18px;
    border: 1px solid var(--cf-border,#e5e7eb);
    background: var(--cf-card-bg,#fff);
    box-shadow: 0 4px 18px rgba(16,24,40,.035);
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .cf-assessment-result-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cf-muted,#667085);
    margin: 0 0 14px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .journey-score {
    font-size: clamp(44px,7vw,64px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult h2 {
    margin: 0 0 12px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult h3 {
    margin: 24px 0 10px;
    font-size: 18px;
    font-weight: 750;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult p {
    line-height: 1.8;
    margin: 0 0 12px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .cf-assessment-revision-note {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .journey-actions,:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment__bottom-actions .journey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment__bottom-actions {
    padding: clamp(22px,4vw,32px);
    margin: 24px 0;
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 18px;
    background: #fff;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment__bottom-actions h2 {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 750;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .journey-button,:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment__bottom-actions .journey-button {
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-continue {
    background: var(--cf-accent);
    border: 1px solid var(--cf-accent);
    color: var(--cf-on-accent,#111);
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-solutions-heading {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 18px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question {
    padding: 24px;
    margin: 0 0 20px;
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 16px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question .eyebrow {
    font-size: 12px;
    font-weight: 750;
    color: var(--cf-muted,#667085);
    margin-bottom: 10px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question h2 {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 18px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question .cf-solution {
    padding: 18px;
    margin-top: 18px;
    border-radius: 12px;
}
:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question .cf-solution p {
    line-height: 1.8;
    margin: 10px 0 0;
}
@media(max-width:575px) {
    :where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult .journey-actions a,:where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment__bottom-actions .journey-actions a {
        width: 100%;
    }
    :where(.cf-css-classroom-assessment-result) .cf-assessment .cf-assessment-question {
        padding: 18px 16px;
    }
    :where(.cf-css-classroom-assessment-result) .cf-assessment #assessmentResult>.cf-assessment-result-card {
        padding: 22px 18px;
    }
}
/* ============================================================
   MASTERY
   Enabled by: cf-css-mastery
   ============================================================ */
:where(.cf-css-mastery) .cf-mastery {
    max-width: 1300px;
}
:where(.cf-css-mastery) .mastery-hero {
    padding: 28px 0 20px;
    max-width: 900px;
}
:where(.cf-css-mastery) .mastery-hero h1 {
    font-size: clamp(27px,4vw,38px);
    font-weight: 800;
    margin: 12px 0;
}
:where(.cf-css-mastery) .mastery-hero p,:where(.cf-css-mastery) .mastery-card p {
    line-height: 1.8;
}
:where(.cf-css-mastery) .mastery-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 800;
    color: var(--cf-muted,#667085);
}
:where(.cf-css-mastery) .mastery-card {
    padding: clamp(20px,3vw,32px);
    margin: 20px 0;
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 18px;
    background: var(--cf-card-bg,#fff);
    box-shadow: 0 5px 18px #10182805;
}
:where(.cf-css-mastery) .mastery-card h2 {
    font-size: 23px;
    line-height: 1.5;
    margin: 14px 0 8px;
    font-weight: 800;
}
:where(.cf-css-mastery) .mastery-card h3 {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 750;
    margin: 12px 0 8px;
}
:where(.cf-css-mastery) .mastery-card-top,:where(.cf-css-mastery) .mastery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
:where(.cf-css-mastery) .mastery-actions {
    justify-content: flex-start;
    margin-top: 18px;
}
:where(.cf-css-mastery) .mastery-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.6;
    border-radius: 30px;
    padding: 7px 12px;
    background: #fff4cf;
    color: #715000;
}
:where(.cf-css-mastery) .mastery-badge.is-mastered,:where(.cf-css-mastery) .mastery-success {
    background: #eaf8ef;
    color: #18613c;
}
:where(.cf-css-mastery) .mastery-muted {
    font-size: 13px;
    color: var(--cf-muted,#667085);
}
:where(.cf-css-mastery) .mastery-stages {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}
:where(.cf-css-mastery) .mastery-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fafbfc;
}
:where(.cf-css-mastery) .mastery-stage.is-ready {
    border-color: var(--cf-accent,#fabf2c);
    background: #fffcf2;
}
:where(.cf-css-mastery) .mastery-stage.is-passed {
    border-color: #b6dfc5;
    background: #f7fcf8;
}
:where(.cf-css-mastery) .mastery-step-label {
    font-size: 12px;
    font-weight: 800;
}
:where(.cf-css-mastery) .mastery-stage .journey-button {
    margin-top: auto;
    width: 100%;
}
:where(.cf-css-mastery) .cf-mastery .journey-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 17px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
    background: var(--cf-accent,#fabf2c);
    color: #171717;
    border: 1px solid transparent;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
}
:where(.cf-css-mastery) .cf-mastery .journey-button.secondary {
    background: #f4f5f7;
    color: #344054;
    border-color: #e5e7eb;
}
:where(.cf-css-mastery) .cf-mastery .journey-button:disabled {
    cursor: not-allowed;
    background: #eff1f4;
    color: #667085;
    border-color: #e5e7eb;
    opacity: 1;
}
:where(.cf-css-mastery) .mastery-progress {
    display: block;
    width: 100%;
    height: 8px;
    accent-color: var(--cf-accent,#fabf2c);
    margin: 18px 0;
}
:where(.cf-css-mastery) .mastery-success {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
}
:where(.cf-css-mastery) .mastery-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
}
:where(.cf-css-mastery) .mastery-tabs a {
    padding: 10px 15px;
    border-radius: 30px;
    background: #f1f3f5;
    color: #344054;
    text-decoration: none;
    font-weight: 700;
}
:where(.cf-css-mastery) .mastery-tabs a.is-active {
    background: var(--cf-accent,#fabf2c);
    color: #171717;
}
:where(.cf-css-mastery) .mastery-answer {
    border-radius: 12px;
    padding: 18px 20px;
    margin: 14px 0;
    border: 1px solid #eceef1;
}
:where(.cf-css-mastery) .mastery-answer p {
    margin: 8px 0 0;
}
:where(.cf-css-mastery) .mastery-answer.is-selected {
    background: #fff5f3;
    border-color: #f4d4cd;
}
:where(.cf-css-mastery) .mastery-answer.is-correct {
    background: #eefaf3;
    border-color: #c9e7d4;
}
:where(.cf-css-mastery) .mastery-explanation {
    padding: 8px 0 16px;
}
:where(.cf-css-mastery) .mastery-card h2.mastery-question {
    font-size: 19px;
}
:where(.cf-css-mastery) .cf-improvement .cf-improvement__actions .mastery-badge {
    margin-bottom: 8px;
}
:where(.cf-css-mastery) .cf-improvement .cf-improvement__actions button[disabled] {
    white-space: normal;
    line-height: 1.7;
    opacity: .75;
    cursor: not-allowed;
}
:where(.cf-css-mastery) .cf-retest .cf-retest__result {
    padding: clamp(22px,4vw,36px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}
:where(.cf-css-mastery) .cf-retest .cf-retest__result .journey-card {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 16px 0;
}
:where(.cf-css-mastery) .cf-retest .revision-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}
:where(.cf-css-mastery) .cf-retest #retestPassMark {
    padding: 12px 16px;
    background: #fff6d9;
    border-radius: 10px;
    margin: 12px 0;
    font-weight: 700;
}
@media(max-width:800px) {
    :where(.cf-css-mastery) .mastery-stages {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-mastery) .mastery-stage .journey-button {
        margin-top: 15px;
    }
    :where(.cf-css-mastery) .mastery-card h2 {
        font-size: 20px;
    }
}
:where(.cf-css-mastery) .mastery-question-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    margin: 18px 0;
    border-radius: 10px;
}
/* Mastery Status follows the shared hero and subject tabs. Accent follows the centre. */
:where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero {
    margin-bottom: 26px;
}
:where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero .mastery-actions {
    margin-top: 24px;
    gap: 12px;
}
:where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero .journey-button {
    gap: 10px;
}
:where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero .journey-button.secondary {
    background: transparent;
    border-color: rgba(var(--cf-accent-rgb,250,191,44),.55);
    color: var(--cf-accent,#fabf2c);
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__hero-count {
    border-color: rgba(var(--cf-accent-rgb,250,191,44),.35);
    background: rgba(var(--cf-accent-rgb,250,191,44),.12);
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__hero-count strong {
    color: var(--cf-accent,#fabf2c);
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__hero-count small {
    font-size: 22px;
    opacity: .7;
    margin-left: 3px;
}
:where(.cf-css-mastery) .cf-mastery-status .mastery-card {
    border-top: 3px solid var(--cf-accent,#fabf2c);
    scroll-margin-top: 100px;
}
:where(.cf-css-mastery) .cf-mastery-status .mastery-badge:not(.is-mastered) {
    background: rgba(var(--cf-accent-rgb,250,191,44),.16);
    color: var(--cf-text,#344054);
    border: 1px solid rgba(var(--cf-accent-rgb,250,191,44),.35);
}
:where(.cf-css-mastery) .cf-mastery-status .mastery-stage.is-ready {
    background: rgba(var(--cf-accent-rgb,250,191,44),.08);
    border: 1px solid var(--cf-accent,#fabf2c);
}
:where(.cf-css-mastery) .cf-mastery-status .mastery-stage.is-ready .mastery-step-label {
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--cf-accent,#fabf2c);
    color: #171717;
}
:where(.cf-css-mastery) .cf-mastery-status .mastery-actions>a:not(.journey-button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--cf-text,#344054);
    text-decoration-color: var(--cf-accent,#fabf2c);
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__panel[hidden] {
    display: none!important;
}
:where(.cf-css-mastery) .cf-mastery-status progress::-webkit-progress-value {
    background: var(--cf-accent,#fabf2c);
    border-radius: 8px;
}
:where(.cf-css-mastery) .cf-mastery-status progress::-moz-progress-bar {
    background: var(--cf-accent,#fabf2c);
    border-radius: 8px;
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__tabs {
    margin-bottom: 24px;
}
:where(.cf-css-mastery) .cf-mastery-status .cf-corrections__tab:focus-visible,:where(.cf-css-mastery) .cf-mastery-status a:focus-visible {
    outline: 3px solid var(--cf-accent,#fabf2c);
    outline-offset: 4px;
}
@media(max-width:575px) {
    :where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero .mastery-actions {
        width: 100%;
    }
    :where(.cf-css-mastery) .cf-mastery-status .cf-mastery-hero .mastery-actions>a {
        width: 100%;
        justify-content: center;
    }
}
:where(.cf-css-mastery) .cf-mastery-status .journey-button:not(.secondary),:where(.cf-css-mastery) .cf-mastery-status .mastery-stage.is-ready .mastery-step-label {
    color: var(--mastery-on-accent,#171717);
}
/* REVISION QUIZ: landing information and saved answer review. */
:where(.cf-css-mastery) .cf-retest .cf-retest-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #667085;
    text-decoration: none;
    margin: 8px 0 22px;
    min-height: 36px;
}
:where(.cf-css-mastery) .cf-retest .cf-retest-back:hover {
    text-decoration: underline;
    color: #344054;
}
:where(.cf-css-mastery) .cf-retest-intro {
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 24px;
}
:where(.cf-css-mastery) .cf-retest-intro-subject {
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #667085;
}
:where(.cf-css-mastery) .cf-retest-intro h2 {
    font-size: 24px;
    margin: 12px 0 20px;
    font-weight: 800;
}
:where(.cf-css-mastery) .cf-retest-intro dl {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-bottom: 18px;
}
:where(.cf-css-mastery) .cf-retest-intro dt {
    font-size: 12px;
    color: #667085;
    margin-bottom: 7px;
}
:where(.cf-css-mastery) .cf-retest-intro dd {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}
:where(.cf-css-mastery) .cf-retest-intro p {
    font-size: 14px;
    color: #667085;
    line-height: 1.8;
    margin: 0;
}
:where(.cf-css-mastery) .cf-retest .cf-retest__result {
    background: transparent;
    border: 0;
    padding: 0;
}
:where(.cf-css-mastery) .cf-retest-result-summary {
    padding: clamp(24px,4vw,38px);
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--cf-accent,#fabf2c);
    border-radius: 18px;
    background: #fff;
}
:where(.cf-css-mastery) .cf-retest-result-eyebrow {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    display: block;
    margin-bottom: 12px;
}
:where(.cf-css-mastery) .cf-retest-result-summary h1.cf-retest-result-score {
    font-size: clamp(44px,7vw,68px);
    line-height: 1.15;
    margin: 12px 0;
    font-weight: 850;
}
:where(.cf-css-mastery) .cf-retest-result-summary h2 {
    font-size: 23px;
    margin: 14px 0;
}
:where(.cf-css-mastery) .cf-retest-result-summary p {
    line-height: 1.8;
}
:where(.cf-css-mastery) .cf-retest-result-meta {
    color: #667085;
    font-size: 13px;
}
:where(.cf-css-mastery) .cf-retest .revision-result-actions {
    padding: 14px 0;
    gap: 12px;
}
:where(.cf-css-mastery) .cf-retest .revision-result-actions a {
    min-height: 46px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
    background: var(--cf-accent,#fabf2c);
    color: #171717;
}
:where(.cf-css-mastery) .cf-retest .revision-result-actions a.secondary {
    background: #f1f3f6;
    color: #344054;
    border: 1px solid #e5e7eb;
}
:where(.cf-css-mastery) .cf-retest-solutions-title {
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 18px;
}
:where(.cf-css-mastery) .cf-retest-answer-card {
    padding: clamp(20px,3vw,30px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    margin-bottom: 22px;
}
:where(.cf-css-mastery) .cf-retest-answer-card h3 {
    font-size: 18px;
    line-height: 1.8;
    margin: 12px 0 22px;
    font-weight: 750;
}
:where(.cf-css-mastery) .cf-retest-result-options {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}
:where(.cf-css-mastery) .cf-retest-result-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 12px;
}
:where(.cf-css-mastery) .cf-retest-result-option.is-selected {
    background: #fff3ef;
    border-color: #efc5b9;
}
:where(.cf-css-mastery) .cf-retest-result-option.is-correct {
    background: #edf9f1;
    border-color: #b1d8bd;
}
:where(.cf-css-mastery) .cf-retest-option-letter {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e8ecf1;
    font-weight: 800;
    flex-shrink: 0;
}
:where(.cf-css-mastery) .cf-retest-option-text {
    flex: 1;
    min-width: 120px;
    line-height: 1.8;
}
:where(.cf-css-mastery) .cf-retest-option-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
:where(.cf-css-mastery) .cf-retest-option-tags>span {
    padding: 5px 9px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 750;
}
:where(.cf-css-mastery) .cf-retest-answer-tag {
    background: #f8ddd4;
    color: #8a3927;
}
:where(.cf-css-mastery) .cf-retest-correct-tag {
    background: #cee9d6;
    color: #175c34;
}
:where(.cf-css-mastery) .cf-retest-answer-label {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}
:where(.cf-css-mastery) .cf-retest-result-explanation {
    padding: 18px 20px;
    background: #fffcf2;
    border: 1px solid #f0e6c0;
    border-radius: 12px;
    margin-top: 20px;
}
:where(.cf-css-mastery) .cf-retest-result-explanation h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
}
:where(.cf-css-mastery) .cf-retest-result-explanation p {
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}
:where(.cf-css-mastery) .cf-retest-result-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    margin: 18px 0;
}
:where(.cf-css-mastery) .cf-mastery-history {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}
:where(.cf-css-mastery) .cf-mastery-history summary {
    font-weight: 750;
    cursor: pointer;
    min-height: 40px;
}
:where(.cf-css-mastery) .cf-mastery-history summary span {
    font-size: 12px;
    background: #f1f3f5;
    border-radius: 30px;
    padding: 4px 9px;
    margin-left: 6px;
}
:where(.cf-css-mastery) .cf-mastery-history ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
:where(.cf-css-mastery) .cf-mastery-history li+li {
    border-top: 1px solid #e5e7eb;
}
:where(.cf-css-mastery) .cf-mastery-history a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    text-decoration: none;
    color: #344054;
}
:where(.cf-css-mastery) .cf-mastery-history a small {
    display: block;
    font-size: 12px;
    color: #667085;
    margin-top: 6px;
}
:where(.cf-css-mastery) .cf-mastery-history>p {
    font-size: 13px;
    color: #667085;
    margin-top: 14px;
}
@media(max-width:575px) {
    :where(.cf-css-mastery) .cf-retest-intro {
        padding: 20px;
    }
    :where(.cf-css-mastery) .cf-retest-intro dl {
        grid-template-columns: 1fr 1fr;
    }
    :where(.cf-css-mastery) .cf-retest .revision-result-actions a {
        width: 100%;
    }
    :where(.cf-css-mastery) .cf-retest-option-tags {
        width: 100%;
        padding-left: 42px;
    }
}
:where(.cf-css-mastery) .cf-mastery-stage-result {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 13px;
    font-weight: 750;
    color: #344054;
    text-decoration: underline;
    text-decoration-color: var(--cf-accent,#fabf2c);
    text-underline-offset: 4px;
    margin-bottom: 12px;
}
/* ============================================================
   REVIEW MISTAKES
   Enabled by: cf-css-review-mistakes
   ============================================================ */
/* Read-only mistake review using the existing Corrections design. */
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__hero {
    margin-bottom: 26px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__hero-text>.cf-corrections__btn {
    margin-top: 18px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__hero-count span {
    max-width: 130px;
    line-height: 1.6;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__tabs {
    margin-bottom: 24px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes a.cf-corrections__tab {
    text-decoration: none;
    flex-shrink: 0;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-list {
    display: grid;
    gap: 22px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-card {
    padding: clamp(20px,3vw,32px);
    margin: 0;
    display: block;
    min-width: 0;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-topic {
    font-size: 15px;
    font-weight: 750;
    color: var(--cf-muted,#667085);
    margin: 20px 0 12px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__question {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 22px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-date {
    font-size: 12px;
    color: var(--cf-muted,#667085);
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-instruction {
    font-size: 14px;
    line-height: 1.8;
    color: var(--cf-muted,#667085);
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-options {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafbfc;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option.is-selected {
    border-color: #efc1b9;
    background: #fff4f1;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option.is-correct {
    border-color: #a7d6b7;
    background: #eef9f2;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option-key {
    flex: 0 0 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9edf2;
    color: #344054;
    font-weight: 800;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .is-selected .cf-corrections__option-key {
    background: #f9ded7;
    color: #8b3524;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .is-correct .cf-corrections__option-key {
    background: #cee9d7;
    color: #195a34;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option-text {
    flex: 1;
    min-width: 130px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
:where(.cf-css-review-mistakes) .cf-review-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-left: auto;
}
:where(.cf-css-review-mistakes) .cf-review-tag {
    font-size: 11px;
    font-weight: 750;
    line-height: 1.6;
    padding: 5px 9px;
    border-radius: 30px;
    white-space: nowrap;
}
:where(.cf-css-review-mistakes) .cf-review-tag.is-chosen {
    color: #883725;
    background: #f8dfd7;
}
:where(.cf-css-review-mistakes) .cf-review-tag.is-right {
    color: #185b34;
    background: #cfead8;
}
:where(.cf-css-review-mistakes) .cf-review-answer-summary {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    margin-bottom: 20px;
}
:where(.cf-css-review-mistakes) .cf-review-answer-summary p {
    margin: 0;
    line-height: 1.9;
    font-size: 14px;
}
:where(.cf-css-review-mistakes) .cf-review-answer-summary p+p {
    margin-top: 8px;
}
:where(.cf-css-review-mistakes) .cf-review-explanation {
    padding: 20px;
    border-radius: 12px;
    background: #fffcf2;
    border: 1px solid #f0e4b9;
    margin-bottom: 24px;
}
:where(.cf-css-review-mistakes) .cf-review-explanation h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
}
:where(.cf-css-review-mistakes) .cf-review-explanation p {
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}
:where(.cf-css-review-mistakes) .cf-review-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    margin: 18px 0 22px;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-lesson {
    min-height: 48px;
    gap: 10px;
}
:where(.cf-css-review-mistakes) .cf-review-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 26px 0;
}
:where(.cf-css-review-mistakes) .cf-review-mistakes a:focus-visible {
    outline: 3px solid var(--cf-accent,#fabf2c);
    outline-offset: 4px;
}
@media(max-width:575px) {
    :where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-card {
        padding: 20px 16px;
    }
    :where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__option {
        padding: 14px 12px;
        gap: 10px;
    }
    :where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-option-tags {
        width: 100%;
        margin-left: 40px;
    }
    :where(.cf-css-review-mistakes) .cf-review-mistakes .cf-review-lesson {
        width: 100%;
        justify-content: center;
    }
    :where(.cf-css-review-mistakes) .cf-review-explanation,:where(.cf-css-review-mistakes) .cf-review-answer-summary {
        padding: 16px;
    }
    :where(.cf-css-review-mistakes) .cf-review-mistakes .cf-corrections__card-top {
        gap: 12px;
        flex-wrap: wrap;
    }
}
/* ============================================================
   PAGE PRACTICE RESULT
   Enabled by: cf-css-page-practice-result
   ============================================================ */
/* ── Result Page Specific Styles ── */
:where(.cf-css-page-practice-result) .pr-result-hero {
    background: linear-gradient(135deg, var(--cf-dark) 0%, #2c3136 50%, #1a1f24 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
:where(.cf-css-page-practice-result) .pr-result-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250, 191, 44, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
:where(.cf-css-page-practice-result) .pr-score-ring {
    width: 140px;
    height: 140px;
    position: relative;
    margin: 0 auto 1rem;
}
:where(.cf-css-page-practice-result) .pr-score-ring svg {
    width: 100%;
    height: 100%;
}
:where(.cf-css-page-practice-result) .pr-score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
:where(.cf-css-page-practice-result) .pr-score-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}
:where(.cf-css-page-practice-result) .pr-score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}
:where(.cf-css-page-practice-result) .pr-grade {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-practice-result) .pr-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-practice-result) .pr-pass-badge.passed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
:where(.cf-css-page-practice-result) .pr-pass-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
/* Stats Grid */
:where(.cf-css-page-practice-result) .pr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
:where(.cf-css-page-practice-result) .pr-stat {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}
:where(.cf-css-page-practice-result) .pr-stat:hover {
    transform: translateY(-2px);
}
:where(.cf-css-page-practice-result) .pr-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 0.5rem;
}
:where(.cf-css-page-practice-result) .pr-stat.correct .pr-stat-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
:where(.cf-css-page-practice-result) .pr-stat.wrong .pr-stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
:where(.cf-css-page-practice-result) .pr-stat.skipped .pr-stat-icon {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}
:where(.cf-css-page-practice-result) .pr-stat.accuracy .pr-stat-icon {
    background: rgba(250, 191, 44, 0.1);
    color: var(--cf-accent);
}
:where(.cf-css-page-practice-result) .pr-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}
:where(.cf-css-page-practice-result) .pr-stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Section Titles */
:where(.cf-css-page-practice-result) .pr-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cf-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
:where(.cf-css-page-practice-result) .pr-section-title i {
    color: var(--cf-accent);
}
/* Subject Rows */
:where(.cf-css-page-practice-result) .pr-subject-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}
:where(.cf-css-page-practice-result) .pr-subject-row:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
:where(.cf-css-page-practice-result) .pr-subject-info {
    flex: 1;
    min-width: 0;
}
:where(.cf-css-page-practice-result) .pr-subject-name {
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
}
:where(.cf-css-page-practice-result) .pr-subject-count {
    font-size: 0.75rem;
    color: #9ca3af;
}
:where(.cf-css-page-practice-result) .pr-subject-bar-wrap {
    width: 120px;
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-subject-bar-bg {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
:where(.cf-css-page-practice-result) .pr-subject-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(.cf-css-page-practice-result) .pr-subject-score {
    font-weight: 800;
    font-size: 0.9rem;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}
/* Topic Rows */
:where(.cf-css-page-practice-result) .pr-topic-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}
:where(.cf-css-page-practice-result) .pr-topic-row:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
:where(.cf-css-page-practice-result) .pr-topic-row.weak {
    border-left: 3px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-practice-result) .pr-topic-row.moderate {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-practice-result) .pr-topic-row.strong {
    border-left: 3px solid #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-practice-result) .pr-topic-info {
    flex: 1;
    min-width: 0;
}
:where(.cf-css-page-practice-result) .pr-topic-name {
    font-weight: 700;
    font-size: 0.82rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:where(.cf-css-page-practice-result) .pr-topic-meta {
    font-size: 0.72rem;
    color: #9ca3af;
}
:where(.cf-css-page-practice-result) .pr-topic-bar-wrap {
    width: 100px;
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-topic-bar-bg {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
:where(.cf-css-page-practice-result) .pr-topic-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(.cf-css-page-practice-result) .pr-topic-score {
    font-weight: 800;
    font-size: 0.85rem;
    width: 45px;
    text-align: right;
    flex-shrink: 0;
}
/* Insight Banner */
:where(.cf-css-page-practice-result) .pr-insight {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}
:where(.cf-css-page-practice-result) .pr-insight i {
    font-size: 1.3rem;
    color: var(--cf-accent);
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-insight strong {
    color: var(--cf-accent);
}
/* Review Section */
:where(.cf-css-page-practice-result) .pr-review-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    overflow: hidden;
}
:where(.cf-css-page-practice-result) .pr-review-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 4px solid transparent;
}
:where(.cf-css-page-practice-result) .pr-review-header:hover {
    background: #fafafa;
}
:where(.cf-css-page-practice-result) .pr-review-header.correct {
    border-left-color: #22c55e;
}
:where(.cf-css-page-practice-result) .pr-review-header.wrong {
    border-left-color: #ef4444;
}
:where(.cf-css-page-practice-result) .pr-review-header.skipped {
    border-left-color: #94a3b8;
}
:where(.cf-css-page-practice-result) .pr-review-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-review-header.correct .pr-review-num {
    background: #22c55e;
    color: #fff;
}
:where(.cf-css-page-practice-result) .pr-review-header.wrong .pr-review-num {
    background: #ef4444;
    color: #fff;
}
:where(.cf-css-page-practice-result) .pr-review-header.skipped .pr-review-num {
    background: #94a3b8;
    color: #fff;
}
:where(.cf-css-page-practice-result) .pr-review-meta {
    flex: 1;
    min-width: 0;
}
:where(.cf-css-page-practice-result) .pr-review-subject {
    font-weight: 700;
    font-size: 0.8rem;
}
:where(.cf-css-page-practice-result) .pr-review-topic {
    font-size: 0.72rem;
    color: #9ca3af;
}
:where(.cf-css-page-practice-result) .pr-review-status {
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-review-status.correct {
    color: #22c55e;
}
:where(.cf-css-page-practice-result) .pr-review-status.wrong {
    color: #ef4444;
}
:where(.cf-css-page-practice-result) .pr-review-status.skipped {
    color: #94a3b8;
}
:where(.cf-css-page-practice-result) .pr-review-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    display: none;
    background: #fafafa;
}
:where(.cf-css-page-practice-result) .pr-review-body.show {
    display: block;
    animation: fadeIn 0.2s ease;
}
:where(.cf-css-page-practice-result) .pr-review-qtext {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cf-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}
:where(.cf-css-page-practice-result) .pr-review-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
}
:where(.cf-css-page-practice-result) .pr-review-option.correct {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}
:where(.cf-css-page-practice-result) .pr-review-option.wrong {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}
:where(.cf-css-page-practice-result) .pr-review-option.neutral {
    background: #fff;
    border-color: #e5e7eb;
    color: #6b7280;
}
:where(.cf-css-page-practice-result) .pr-review-opt-letter {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
:where(.cf-css-page-practice-result) .pr-review-option.correct .pr-review-opt-letter {
    background: #22c55e;
    color: #fff;
}
:where(.cf-css-page-practice-result) .pr-review-option.wrong .pr-review-opt-letter {
    background: #ef4444;
    color: #fff;
}
:where(.cf-css-page-practice-result) .pr-review-exp {
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #374151;
}
:where(.cf-css-page-practice-result) .pr-review-exp strong {
    color: #1d4ed8;
}
/* Meta bar */
:where(.cf-css-page-practice-result) .pr-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}
:where(.cf-css-page-practice-result) .pr-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
/* Actions */
:where(.cf-css-page-practice-result) .pr-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
:where(.cf-css-page-practice-result) .pr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    min-height: 48px;
}
:where(.cf-css-page-practice-result) .pr-btn-primary {
    background: var(--cf-accent);
    color: var(--cf-dark);
    box-shadow: 0 4px 16px rgba(250, 191, 44, 0.3);
}
:where(.cf-css-page-practice-result) .pr-btn-primary:hover {
    background: #e5ac1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 191, 44, 0.4);
    color: var(--cf-dark);
}
:where(.cf-css-page-practice-result) .pr-btn-outline {
    background: transparent;
    color: var(--cf-dark);
    border: 2px solid #e5e7eb;
}
:where(.cf-css-page-practice-result) .pr-btn-outline:hover {
    border-color: var(--cf-accent);
    color: var(--cf-accent);
    background: rgba(250, 191, 44, 0.05);
}
/* Responsive */
@media (max-width: 767px) {
    :where(.cf-css-page-practice-result) .pr-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    :where(.cf-css-page-practice-result) .pr-result-hero {
        padding: 1.5rem 1rem;
    }
    :where(.cf-css-page-practice-result) .pr-score-ring {
        width: 110px;
        height: 110px;
    }
    :where(.cf-css-page-practice-result) .pr-score-value {
        font-size: 1.6rem;
    }
    :where(.cf-css-page-practice-result) .pr-subject-bar-wrap {
        width: 80px;
    }
    :where(.cf-css-page-practice-result) .pr-subject-score {
        font-size: 0.8rem;
        width: 40px;
    }
    :where(.cf-css-page-practice-result) .pr-topic-bar-wrap {
        width: 70px;
    }
    :where(.cf-css-page-practice-result) .pr-topic-score {
        font-size: 0.75rem;
        width: 38px;
    }
    :where(.cf-css-page-practice-result) .pr-actions {
        flex-direction: column;
    }
    :where(.cf-css-page-practice-result) .pr-btn {
        justify-content: center;
    }
    :where(.cf-css-page-practice-result) .pr-review-header {
        padding: 0.875rem 1rem;
    }
    :where(.cf-css-page-practice-result) .pr-review-body {
        padding: 0.875rem 1rem 1rem;
    }
}
@media (max-width: 480px) {
    :where(.cf-css-page-practice-result) .pr-stats-grid {
        gap: 0.5rem;
    }
    :where(.cf-css-page-practice-result) .pr-stat {
        padding: 0.75rem;
    }
    :where(.cf-css-page-practice-result) .pr-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    :where(.cf-css-page-practice-result) .pr-stat-value {
        font-size: 1.1rem;
    }
}
/* ============================================================
   PAGE MOCK RESULT
   Enabled by: cf-css-page-mock-result
   ============================================================ */
:where(.cf-css-page-mock-result) *,*:where(.cf-css-page-mock-result),*:where(:has(body.cf-css-page-mock-result)) {
    box-sizing: border-box;
}
body:where(.cf-css-page-mock-result) {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    color: var(--cf-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* Top Bar */
:where(.cf-css-page-mock-result) .cf-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--cf-dark);
    border-bottom: 3px solid var(--cf-accent);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
    z-index: 1050;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
:where(.cf-css-page-mock-result) .cf-topbar-logo {
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}
:where(.cf-css-page-mock-result) .cf-topbar-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}
:where(.cf-css-page-mock-result) .cf-topbar-back {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    text-decoration: none;
}
:where(.cf-css-page-mock-result) .cf-topbar-back:hover {
    color: var(--cf-accent);
    background: rgba(250, 191, 44, 0.15);
}
:where(.cf-css-page-mock-result) .cf-sync-status {
    color: var(--cf-success);
    font-size: 1.1rem;
    flex-shrink: 0;
}
/* Hero Score */
:where(.cf-css-page-mock-result) .cf-hero {
    background: linear-gradient(135deg, var(--cf-dark) 0%, var(--cf-dark-2) 50%, #1a1f24 100%);
    color: #fff;
    padding: 2rem 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}
:where(.cf-css-page-mock-result) .cf-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 191, 44, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
:where(.cf-css-page-mock-result) .cf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
:where(.cf-css-page-mock-result) .cf-score-ring {
    width: 140px;
    height: 140px;
    position: relative;
    margin: 0 auto 1.5rem;
}
:where(.cf-css-page-mock-result) .cf-score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
:where(.cf-css-page-mock-result) .cf-score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}
:where(.cf-css-page-mock-result) .cf-score-ring-fill {
    fill: none;
    stroke: var(--cf-accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(.cf-css-page-mock-result) .cf-score-ring-fill.passed {
    stroke: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-score-ring-fill.failed {
    stroke: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
:where(.cf-css-page-mock-result) .cf-score-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}
:where(.cf-css-page-mock-result) .cf-score-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    display: block;
}
:where(.cf-css-page-mock-result) .cf-hero-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
:where(.cf-css-page-mock-result) .cf-hero-meta-item {
    text-align: center;
}
:where(.cf-css-page-mock-result) .cf-hero-meta-value {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}
:where(.cf-css-page-mock-result) .cf-hero-meta-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}
:where(.cf-css-page-mock-result) .cf-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 1rem;
}
:where(.cf-css-page-mock-result) .cf-pass-badge.passed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
:where(.cf-css-page-mock-result) .cf-pass-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
:where(.cf-css-page-mock-result) .cf-exam-title {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
:where(.cf-css-page-mock-result) .cf-exam-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
/* Analytics Dashboard */
:where(.cf-css-page-mock-result) .cf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cf-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-section-title i {
    color: var(--cf-accent);
    font-size: 1.1rem;
}
:where(.cf-css-page-mock-result) .cf-card {
    background: #fff;
    border-radius: var(--cf-radius-lg);
    box-shadow: var(--cf-shadow);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--cf-transition), box-shadow var(--cf-transition);
}
:where(.cf-css-page-mock-result) .cf-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cf-shadow-md);
}
:where(.cf-css-page-mock-result) .cf-card-body {
    padding: 1.25rem;
}
:where(.cf-css-page-mock-result) .cf-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-card-header-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-card-header-title i {
    color: var(--cf-accent);
}
/* Stats Grid */
:where(.cf-css-page-mock-result) .cf-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    :where(.cf-css-page-mock-result) .cf-stat-grid {
        display: block;
    }
    :where(.cf-css-page-mock-result) .cf-stat-grid>* {
        margin-bottom: 0.75rem;
    }
    :where(.cf-css-page-mock-result) .cf-stat-grid>*:last-child {
        margin-bottom: 0;
    }
}
:where(.cf-css-page-mock-result) .cf-stat-item {
    background: #fff;
    border-radius: var(--cf-radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--cf-shadow);
    transition: all var(--cf-transition);
}
:where(.cf-css-page-mock-result) .cf-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--cf-shadow-md);
}
:where(.cf-css-page-mock-result) .cf-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem;
}
:where(.cf-css-page-mock-result) .cf-stat-icon.correct {
    background: rgba(34, 197, 94, 0.1);
    color: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-stat-icon.wrong {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-stat-icon.skipped {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}
:where(.cf-css-page-mock-result) .cf-stat-icon.accuracy {
    background: rgba(250, 191, 44, 0.1);
    color: var(--cf-accent);
}
:where(.cf-css-page-mock-result) .cf-stat-icon.time {
    background: rgba(59, 130, 246, 0.1);
    color: var(--cf-info);
}
:where(.cf-css-page-mock-result) .cf-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cf-dark);
    line-height: 1;
    display: block;
}
:where(.cf-css-page-mock-result) .cf-stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
:where(.cf-css-page-mock-result) .cf-stat-sub {
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-top: 2px;
}
/* Charts */
:where(.cf-css-page-mock-result) .cf-chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}
:where(.cf-css-page-mock-result) .cf-chart-container-sm {
    height: 180px;
}
/* Weak Topics */
:where(.cf-css-page-mock-result) .cf-topic-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--cf-transition);
}
:where(.cf-css-page-mock-result) .cf-topic-row:hover {
    transform: translateX(4px);
    box-shadow: var(--cf-shadow);
}
:where(.cf-css-page-mock-result) .cf-topic-row.weak {
    border-left: 4px solid var(--cf-danger);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-mock-result) .cf-topic-row.moderate {
    border-left: 4px solid var(--cf-warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-mock-result) .cf-topic-row.strong {
    border-left: 4px solid var(--cf-success);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.03) 0%, #fff 100%);
}
:where(.cf-css-page-mock-result) .cf-topic-info {
    flex: 1;
    min-width: 0;
}
:where(.cf-css-page-mock-result) .cf-topic-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--cf-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:where(.cf-css-page-mock-result) .cf-topic-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
:where(.cf-css-page-mock-result) .cf-topic-bar-wrap {
    width: 120px;
    flex-shrink: 0;
}
:where(.cf-css-page-mock-result) .cf-topic-bar-bg {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
:where(.cf-css-page-mock-result) .cf-topic-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(.cf-css-page-mock-result) .cf-topic-bar-fill.weak {
    background: linear-gradient(90deg, #ef4444, #f87171);
}
:where(.cf-css-page-mock-result) .cf-topic-bar-fill.moderate {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
:where(.cf-css-page-mock-result) .cf-topic-bar-fill.strong {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
:where(.cf-css-page-mock-result) .cf-topic-percent {
    font-weight: 800;
    font-size: 0.85rem;
    width: 45px;
    text-align: right;
    flex-shrink: 0;
}
:where(.cf-css-page-mock-result) .cf-topic-percent.weak {
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-topic-percent.moderate {
    color: var(--cf-warning);
}
:where(.cf-css-page-mock-result) .cf-topic-percent.strong {
    color: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-topic-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
:where(.cf-css-page-mock-result) .cf-topic-badge.weak {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-topic-badge.moderate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--cf-warning);
}
:where(.cf-css-page-mock-result) .cf-topic-badge.strong {
    background: rgba(34, 197, 94, 0.1);
    color: var(--cf-success);
}
/* Subject Cards */
:where(.cf-css-page-mock-result) .cf-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}
:where(.cf-css-page-mock-result) .cf-subject-card {
    background: #fff;
    border-radius: var(--cf-radius);
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--cf-shadow);
    transition: all var(--cf-transition);
}
:where(.cf-css-page-mock-result) .cf-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cf-shadow-md);
}
:where(.cf-css-page-mock-result) .cf-subject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
:where(.cf-css-page-mock-result) .cf-subject-name {
    font-weight: 700;
    font-size: 0.9rem;
}
:where(.cf-css-page-mock-result) .cf-subject-score {
    font-weight: 800;
    font-size: 1.1rem;
}
:where(.cf-css-page-mock-result) .cf-subject-score.high {
    color: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-subject-score.mid {
    color: var(--cf-warning);
}
:where(.cf-css-page-mock-result) .cf-subject-score.low {
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-subject-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-subject-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(.cf-css-page-mock-result) .cf-subject-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}
/* Comparison Banner */
:where(.cf-css-page-mock-result) .cf-comparison-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4a6e 100%);
    color: #fff;
    border-radius: var(--cf-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
:where(.cf-css-page-mock-result) .cf-comparison-banner i {
    font-size: 1.5rem;
    color: var(--cf-accent);
}
:where(.cf-css-page-mock-result) .cf-comparison-text {
    flex: 1;
    font-size: 0.9rem;
}
:where(.cf-css-page-mock-result) .cf-comparison-text strong {
    color: var(--cf-accent);
}
/* Review Section */
:where(.cf-css-page-mock-result) .cf-review-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
:where(.cf-css-page-mock-result) .cf-subject-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
:where(.cf-css-page-mock-result) .cf-subject-tabs::-webkit-scrollbar {
    display: none;
}
:where(.cf-css-page-mock-result) .cf-subject-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
:where(.cf-css-page-mock-result) .cf-subject-tab:hover {
    border-color: var(--cf-accent);
    color: var(--cf-accent);
}
:where(.cf-css-page-mock-result) .cf-subject-tab.active {
    background: var(--cf-accent);
    border-color: var(--cf-accent);
    color: var(--cf-dark);
    box-shadow: 0 4px 12px rgba(250, 191, 44, 0.3);
}
:where(.cf-css-page-mock-result) .cf-subject-tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
}
:where(.cf-css-page-mock-result) .cf-subject-tab.active .cf-subject-tab-count {
    background: rgba(0, 0, 0, 0.15);
}
:where(.cf-css-page-mock-result) .cf-subject-block {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
:where(.cf-css-page-mock-result) .cf-question-card {
    background: #fff;
    border-radius: var(--cf-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--cf-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--cf-transition);
}
:where(.cf-css-page-mock-result) .cf-question-card:hover {
    box-shadow: var(--cf-shadow-md);
}
:where(.cf-css-page-mock-result) .cf-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-question-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--cf-accent);
    background: rgba(250, 191, 44, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
:where(.cf-css-page-mock-result) .cf-question-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
:where(.cf-css-page-mock-result) .cf-question-status.correct {
    background: rgba(34, 197, 94, 0.1);
    color: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-question-status.wrong {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-question-status.skipped {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}
:where(.cf-css-page-mock-result) .cf-question-text {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--cf-dark);
}
:where(.cf-css-page-mock-result) .cf-question-image {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    object-fit: contain;
}
:where(.cf-css-page-mock-result) .cf-question-instruction {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--cf-accent);
}
:where(.cf-css-page-mock-result) .cf-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
:where(.cf-css-page-mock-result) .cf-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}
:where(.cf-css-page-mock-result) .cf-option.correct {
    border-color: var(--cf-success);
    background: rgba(34, 197, 94, 0.05);
}
:where(.cf-css-page-mock-result) .cf-option.wrong {
    border-color: var(--cf-danger);
    background: rgba(239, 68, 68, 0.05);
}
:where(.cf-css-page-mock-result) .cf-option.user-pick {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
:where(.cf-css-page-mock-result) .cf-option-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s;
}
:where(.cf-css-page-mock-result) .cf-option.correct .cf-option-letter {
    background: var(--cf-success);
    color: #fff;
}
:where(.cf-css-page-mock-result) .cf-option.wrong .cf-option-letter {
    background: var(--cf-danger);
    color: #fff;
}
:where(.cf-css-page-mock-result) .cf-option-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--cf-dark);
}
:where(.cf-css-page-mock-result) .cf-option-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
:where(.cf-css-page-mock-result) .cf-option-icon.correct {
    color: var(--cf-success);
}
:where(.cf-css-page-mock-result) .cf-option-icon.wrong {
    color: var(--cf-danger);
}
:where(.cf-css-page-mock-result) .cf-explanation {
    background-color: red;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 10px;
    border-left: 4px solid var(--cf-accent);
    position: relative;
    overflow: hidden;
}
:where(.cf-css-page-mock-result) .cf-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(250, 191, 44, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
:where(.cf-css-page-mock-result) .cf-explanation-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #92400e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-mock-result) .cf-explanation-text {
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-mock-result) .cf-explanation-img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 8px;
    margin-top: 0.75rem;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-mock-result) .cf-explanation-blur {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}
:where(.cf-css-page-mock-result) .cf-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--cf-dark) 0%, var(--cf-dark-2) 100%);
    color: var(--cf-accent);
    border-radius: 10px;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}
:where(.cf-css-page-mock-result) .cf-upgrade-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Actions */
:where(.cf-css-page-mock-result) .cf-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
}
:where(.cf-css-page-mock-result) .cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
}
:where(.cf-css-page-mock-result) .cf-btn-primary {
    background: var(--cf-accent);
    color: var(--cf-dark);
    box-shadow: 0 4px 16px rgba(250, 191, 44, 0.3);
}
:where(.cf-css-page-mock-result) .cf-btn-primary:hover {
    background: #e5ac1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 191, 44, 0.4);
    color: var(--cf-dark);
}
:where(.cf-css-page-mock-result) .cf-btn-outline {
    background: transparent;
    color: var(--cf-dark);
    border: 2px solid #e5e7eb;
}
:where(.cf-css-page-mock-result) .cf-btn-outline:hover {
    border-color: var(--cf-accent);
    color: var(--cf-accent);
    background: rgba(250, 191, 44, 0.05);
}
/* Animations */
:where(.cf-css-page-mock-result) .cf-animate-in {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
:where(.cf-css-page-mock-result) .cf-delay-1 {
    animation-delay: 0.1s;
}
:where(.cf-css-page-mock-result) .cf-delay-2 {
    animation-delay: 0.2s;
}
:where(.cf-css-page-mock-result) .cf-delay-3 {
    animation-delay: 0.3s;
}
:where(.cf-css-page-mock-result) .cf-delay-4 {
    animation-delay: 0.4s;
}
/* Responsive */
@media (max-width: 767px) {
    :where(.cf-css-page-mock-result) .cf-hero {
        padding: 1.5rem 1rem 1rem;
    }
    :where(.cf-css-page-mock-result) .cf-score-ring {
        width: 120px;
        height: 120px;
    }
    :where(.cf-css-page-mock-result) .cf-score-value {
        font-size: 1.6rem;
    }
    :where(.cf-css-page-mock-result) .cf-hero-meta {
        gap: 1rem;
    }
    :where(.cf-css-page-mock-result) .cf-hero-meta-value {
        font-size: 1.1rem;
    }
    :where(.cf-css-page-mock-result) .cf-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    :where(.cf-css-page-mock-result) .cf-subject-grid {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-page-mock-result) .cf-topic-bar-wrap {
        width: 80px;
    }
    :where(.cf-css-page-mock-result) .cf-topic-row {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    :where(.cf-css-page-mock-result) .cf-topic-name {
        font-size: 0.8rem;
    }
    :where(.cf-css-page-mock-result) .cf-question-card {
        padding: 1rem;
    }
    :where(.cf-css-page-mock-result) .cf-question-text {
        font-size: 0.95rem;
    }
    :where(.cf-css-page-mock-result) .cf-option {
        padding: 0.75rem;
    }
    :where(.cf-css-page-mock-result) .cf-option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    :where(.cf-css-page-mock-result) .cf-chart-container {
        height: 200px;
    }
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-result) .cf-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    :where(.cf-css-page-mock-result) .cf-stat-item {
        padding: 0.75rem;
    }
    :where(.cf-css-page-mock-result) .cf-stat-value {
        font-size: 1.2rem;
    }
    :where(.cf-css-page-mock-result) .cf-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    :where(.cf-css-page-mock-result) .cf-topic-badge {
        display: none;
    }
    :where(.cf-css-page-mock-result) .cf-topic-percent {
        font-size: 0.8rem;
        width: 40px;
    }
    :where(.cf-css-page-mock-result) .cf-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
    }
    :where(.cf-css-page-mock-result) .cf-actions {
        flex-direction: column;
    }
}
@media print {
    :where(.cf-css-page-mock-result) .cf-topbar,:where(.cf-css-page-mock-result) 
        .cf-actions,:where(.cf-css-page-mock-result) 
        .cf-subject-tabs,:where(.cf-css-page-mock-result) 
        .cf-upgrade-banner {
        display: none !important;
    }
    :where(.cf-css-page-mock-result) .cf-hero {
        background: #fff !important;
        color: #000 !important;
        padding: 1rem;
    }
    :where(.cf-css-page-mock-result) .cf-hero * {
        color: #000 !important;
    }
    :where(.cf-css-page-mock-result) .cf-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    body:where(.cf-css-page-mock-result) {
        background: #fff;
    }
}
/* ============================================================
   PAGE MOCK INVITE
   Enabled by: cf-css-page-mock-invite
   ============================================================ */
/* ── Landing Page Styles ─────────────────────────────────────────────── */
:where(.cf-css-page-mock-invite) .cf-landing-wrap {
    min-height: 100vh;
    background: linear-gradient(135deg, #212529 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-invite) .cf-landing-card {
        border-radius: 16px;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-wrap {
        padding: .5rem;
        align-items: flex-start;
    }
}
:where(.cf-css-page-mock-invite) .cf-landing-header {
    background: linear-gradient(135deg, rgba(250, 191, 44, 0.15) 0%, rgba(250, 191, 44, 0.05) 100%);
    border-bottom: 1px solid rgba(250, 191, 44, 0.1);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}
:where(.cf-css-page-mock-invite) .cf-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(250, 191, 44, 0.15);
    color: var(--cf-accent, #fabf2c);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: .5rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-exam {
    color: rgba(255, 255, 255, 0.5);
    font-size: .9rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-body {
    padding: 2rem;
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-invite) .cf-landing-body {
        padding: 1.25rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-header {
        padding: 1.75rem 1.25rem 1.5rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-title {
        font-size: 1.25rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-cta .btn {
        padding: .75rem 1.5rem;
        font-size: .95rem;
        width: 100%;
    }
}
:where(.cf-css-page-mock-invite) .cf-landing-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-invite) .cf-landing-meta {
        grid-template-columns: 1fr;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-meta-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: .75rem 1rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-meta-value {
        font-size: 1rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-meta-label {
        margin-top: 0;
        font-size: .75rem;
    }
}
:where(.cf-css-page-mock-invite) .cf-landing-meta-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
:where(.cf-css-page-mock-invite) .cf-landing-meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
:where(.cf-css-page-mock-invite) .cf-landing-meta-label {
    font-size: .7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .25rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-invite) .cf-landing-subjects {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: .5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-subjects::-webkit-scrollbar {
        display: none;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-subject {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
:where(.cf-css-page-mock-invite) .cf-landing-subject {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 50px;
}
:where(.cf-css-page-mock-invite) .cf-landing-instructions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
:where(.cf-css-page-mock-invite) .cf-landing-instructions h4 {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-instructions ul {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: .82rem;
    line-height: 1.7;
}
@media (max-width: 480px) {
    :where(.cf-css-page-mock-invite) .cf-landing-instructions {
        padding: 1rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-instructions ul {
        font-size: .78rem;
        padding-left: 1rem;
    }
    :where(.cf-css-page-mock-invite) .cf-landing-instructions li {
        margin-bottom: .4rem;
    }
}
:where(.cf-css-page-mock-invite) .cf-landing-cta {
    text-align: center;
}
:where(.cf-css-page-mock-invite) .cf-landing-cta .btn {
    padding: .85rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
}
:where(.cf-css-page-mock-invite) .cf-landing-score {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: .6rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-score-value {
    font-size: 1.3rem;
    font-weight: 800;
}
:where(.cf-css-page-mock-invite) .cf-landing-score-label {
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.5);
}
:where(.cf-css-page-mock-invite) .cf-landing-footer {
    text-align: center;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: .75rem;
}
:where(.cf-css-page-mock-invite) .cf-landing-footer img {
    height: 20px;
    opacity: .5;
    margin-right: .5rem;
}
:where(.cf-css-page-mock-invite) .cf-countdown {
    font-family: 'SF Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cf-accent, #fabf2c);
    letter-spacing: .1em;
}
/* ============================================================
   PAGE NATIONAL MOCK BOOKING
   Enabled by: cf-css-page-national-mock-booking
   ============================================================ */
body:where(.cf-css-page-national-mock-booking) {
    background: #f5f7fb;
    color: #20242b;
    font-family: Arial,sans-serif;
    padding: 24px;
}
:where(.cf-css-page-national-mock-booking) .wrap {
    max-width: 850px;
    margin: auto;
}
:where(.cf-css-page-national-mock-booking) .cardx {
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 16px;
    padding: 24px;
    margin: 14px 0;
}
:where(.cf-css-page-national-mock-booking) .slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dfe4eb;
    padding: 14px;
    border-radius: 10px;
    margin: 9px 0;
}
:where(.cf-css-page-national-mock-booking) .slot.full {
    opacity: .55;
    background: #f3f4f6;
}
:where(.cf-css-page-national-mock-booking) .btnx {
    background: #fabf2c;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 700;
}
:where(.cf-css-page-national-mock-booking) .notice {
    padding: 12px;
    border-radius: 9px;
    background: #e8f7ec;
    margin: 12px 0;
}
:where(.cf-css-page-national-mock-booking) .err {
    background: #ffeded;
}
:where(.cf-css-page-national-mock-booking) .muted {
    color: #697586;
}
/* ============================================================
   PAGE SCORE PREDICTION
   Enabled by: cf-css-page-score-prediction
   ============================================================ */
:where(.cf-css-page-score-prediction) .pred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 12px;
}
:where(.cf-css-page-score-prediction) .pred-card {
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    padding: 16px;
}
:where(.cf-css-page-score-prediction) .pred-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}
:where(.cf-css-page-score-prediction) .pred-muted {
    color: #667085;
}
:where(.cf-css-page-score-prediction) .pred-table {
    width: 100%;
    border-collapse: collapse;
}
:where(.cf-css-page-score-prediction) .pred-table th,:where(.cf-css-page-score-prediction) .pred-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
:where(.cf-css-page-score-prediction) .pred-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f3f4f6;
    font-size: .8rem;
}
/* My Journey — goal, progress and complete learning roadmap */
.cf-journey-hub {
    --jhub-accent: var(--cf-accent,#6c3dff);
}
.cf-journey-hub .jhub-card {
    background: var(--cf-card-bg,#fff);
    border: 1px solid #e8e8f0;
    border-radius: 20px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 6px 24px #17123505;
    scroll-margin-top: 90px;
}
.cf-journey-hub h2 {
    font-size: 1.35rem;
    margin: 6px 0 18px;
    font-weight: 750;
}
.cf-journey-hub h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.cf-journey-hub p {
    line-height: 1.7;
}
.cf-journey-hub .jhub-kicker {
    color: var(--jhub-accent);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cf-journey-hub .jhub-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cf-journey-hub .jhub-link {
    color: var(--jhub-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 8px 0;
}
.cf-journey-hub .jhub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 14px;
    margin: 14px 0;
}
.cf-journey-hub .jhub-stats>div {
    padding: 18px;
    border-radius: 14px;
    background: color-mix(in srgb,var(--jhub-accent) 6%,white);
}
.cf-journey-hub .jhub-stats span,.cf-journey-hub .jhub-stats strong,.cf-journey-hub .jhub-stats small {
    display: block;
}
.cf-journey-hub .jhub-stats strong {
    font-size: 1.35rem;
    margin: 8px 0;
    color: var(--jhub-accent);
}
.cf-journey-hub .jhub-stats strong small {
    display: inline;
    font-size: .85rem;
}
.cf-journey-hub .jhub-muted,.cf-journey-hub small {
    color: #656878;
    font-size: .88rem;
}
.cf-journey-hub .jhub-destination {
    padding: 12px 0;
}
.cf-journey-hub .jhub-subjects {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}
.cf-journey-hub .jhub-subjects>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 16px;
}
.cf-journey-hub .jhub-subjects strong {
    white-space: nowrap;
    color: var(--jhub-accent);
}
.cf-journey-hub details {
    margin-top: 24px;
    border-top: 1px solid #e8e8f0;
    padding-top: 20px;
    scroll-margin-top: 100px;
}
.cf-journey-hub summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--jhub-accent);
    padding: 10px 0;
}
.cf-journey-hub form {
    margin-top: 20px;
}
.cf-journey-hub .jhub-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    margin: 20px 0;
}
.cf-journey-hub label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}
.cf-journey-hub input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9dbe6;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: #fff;
    color: #242638;
}
.cf-journey-hub input:focus {
    outline: 2px solid var(--jhub-accent);
    outline-offset: 2px;
}
.cf-journey-hub small {
    font-weight: 400;
}
.cf-journey-hub .jhub-button {
    display: inline-block;
    background: var(--jhub-accent);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    padding: 13px 22px;
    margin-top: 20px;
    text-decoration: none;
}
.cf-journey-hub .jhub-notice {
    padding: 18px;
    border-left: 4px solid var(--jhub-accent);
    background: #fff;
    border-radius: 12px;
}
.cf-journey-hub .jhub-roadmap {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.cf-journey-hub .jhub-roadmap li {
    display: flex;
    gap: 16px;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 22px;
}
.cf-journey-hub .jhub-roadmap li>div {
    min-width: 0;
}
.cf-journey-hub .jhub-step {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--jhub-accent);
    color: #fff;
    font-weight: 750;
}
.cf-journey-hub .jhub-stage-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.cf-journey-hub .jhub-stage-list span {
    font-size: .86rem;
    padding: 10px;
    background: #f6f5fc;
    border-radius: 8px;
}
.cf-journey-hub .jhub-history article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8f0;
}
.cf-journey-hub .jhub-history article:last-child {
    border-bottom: 0;
}
.cf-journey-hub .jhub-history p {
    margin: 0;
}
.cf-journey-hub .jhub-history small {
    display: block;
    margin-top: 6px;
}
@media(max-width:767px) {
    .cf-journey-hub .jhub-card {
        padding: 20px;
        margin: 18px 0;
    }
    .cf-journey-hub .jhub-roadmap,.cf-journey-hub .jhub-form-grid,.cf-journey-hub .jhub-subjects {
        grid-template-columns: 1fr;
    }
    .cf-journey-hub .jhub-roadmap li {
        padding: 18px;
        gap: 12px;
    }
    .cf-journey-hub .jhub-stats {
        grid-template-columns: 1fr 1fr;
    }
    .cf-journey-hub .jhub-stats>div {
        padding: 13px;
        min-width: 0;
    }
    .cf-journey-hub .jhub-stats strong {
        font-size: 1.1rem;
        overflow-wrap: anywhere;
    }
    .cf-journey-hub .jhub-history article {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
/* Daily Dose landing, XP profiles and monthly/all-time achievements */
.cf-reward-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin: 20px 0;
}
.cf-reward-stats>div {
    padding: 20px;
    border: 1px solid #e7e7ee;
    border-radius: 14px;
    background: color-mix(in srgb,var(--cf-accent,#f5b81b) 8%,white);
}
.cf-reward-stats span,.cf-reward-stats strong {
    display: block;
}
.cf-reward-stats strong {
    font-size: 1.4rem;
    margin-top: 10px;
}
.cf-dose-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cf-accent,#d59b00);
    margin: 16px 0;
}
.cf-table-scroll {
    max-width: 100%;
    overflow: auto;
}
.cf-activity-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
}
.cf-activity-table th,.cf-activity-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid #e7e7ee;
}
.cf-activity-table th {
    font-size: .85rem;
    color: #656878;
}
.cf-reward-self {
    background: color-mix(in srgb,var(--cf-accent,#f5b81b) 12%,white);
}
.cf-profile-link {
    border: 0;
    background: transparent;
    color: var(--cf-accent,#bd8400);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.cf-xp-dialog {
    border: 1px solid #e7e7ee;
    border-radius: 20px;
    padding: 30px;
    max-width: min(90vw,460px);
    box-shadow: 0 20px 80px #0003;
}
.cf-xp-dialog::backdrop {
    background: #15142d99;
}
.cf-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(175px,1fr));
    gap: 18px;
    margin-top: 24px;
}
.cf-achievement {
    border: 1px solid #e7e7ee;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}
.cf-achievement h3 {
    font-size: 1.05rem;
}
.cf-achievement-icon {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 14px;
}
.cf-achievement.is-earned {
    border-color: var(--cf-accent,#f5b81b);
    background: color-mix(in srgb,var(--cf-accent,#f5b81b) 9%,white);
}
.cf-achievement.is-locked {
    background: #f6f6fa;
    color: #6b6e7d;
}
.cf-achievement.is-locked .cf-achievement-icon {
    filter: grayscale(1);
}
.cf-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
}
@media(max-width:600px) {
    .cf-reward-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cf-reward-stats>div {
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .cf-reward-stats strong {
        font-size: 1.15rem;
        margin: 0;
    }
    .cf-achievement-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }
    .cf-achievement {
        padding: 18px 12px;
    }
    .cf-activity-table th,.cf-activity-table td {
        padding: 13px 10px;
    }
}
@media(max-width:600px) {
    .cf-activity-table {
        min-width: 0;
        font-size: .8rem;
        table-layout: auto;
    }
    .cf-activity-table th,.cf-activity-table td {
        padding: 13px 7px;
        overflow-wrap: anywhere;
    }
    .cf-profile-link {
        padding: 0;
    }
}
/* Content reports and plan prompts */
.cf-report-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.cf-report-button {
    border: 1px solid var(--cf-accent);
    background: transparent;
    color: var(--cf-accent);
    border-radius: 9px;
    padding: .45rem .8rem;
    font-size: .85rem;
    cursor: pointer;
}
.cf-report-dialog {
    width: min(94vw,520px);
    border: 0;
    border-radius: 18px;
    padding: 1.7rem;
    color: var(--cf-text,#243044);
    box-shadow: 0 18px 80px #0005;
}
.cf-report-dialog::backdrop {
    background: #10182799;
}
.cf-report-dialog textarea {
    display: block;
    width: 100%;
    padding: .8rem;
    border: 1px solid #bac2ce;
    border-radius: 10px;
    margin: .6rem 0 1rem;
}
.cf-report-dialog button {
    padding: .6rem 1rem;
    border: 0;
    border-radius: 9px;
    margin-right: .6rem;
}
.cf-report-dialog button[type=submit] {
    background: var(--cf-accent);
    color: #152033;
}
.cf-upgrade-hint {
    padding: 1rem;
    border-left: 4px solid var(--cf-accent);
    background: rgba(var(--cf-accent-rgb),.09);
    border-radius: 10px;
}
.cf-upgrade-hint a {
    color: var(--cf-accent);
    font-weight: 700;
}
/* Dashboard attribution: retain the compact footer and centre accent. */
.cf-powered-by,.cf-powered-by .cf-brand-text {
    color: var(--cf-accent);
}
.cf-powered-by .cf-brand-text {
    font-size: inherit;
}
/* Answer reviews: one closed explanation accordion per question. */
.cf-answer-explanation {
    margin: 1rem 0;
    border: 1px solid #d9dde5;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    overflow: hidden;
}
.cf-answer-explanation>summary {
    padding: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #111827;
}
.cf-answer-explanation[open]>summary {
    border-bottom: 1px solid #e5e7eb;
}
.cf-answer-explanation-body {
    padding: 1rem;
    line-height: 1.7;
}
.cf-answer-explanation-body p {
    margin: 0 0 .7rem;
}
.cf-explanation-upgrade {
    display: inline-flex;
    align-items: center;
    background: var(--cf-accent);
    color: #111827!important;
    font-weight: 700;
    text-decoration: none;
    padding: .65rem 1rem;
    border-radius: 9px;
}
.cf-platform-credit {
    font-size: .75rem!important;
    color: #000!important;
    text-align: center;
    padding: 1.25rem 0;
}
.cf-platform-credit>a {
    font-size: inherit!important;
    color: var(--cf-accent)!important;
    font-weight: 700;
    text-decoration: none;
}
.cf-topic-progress {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    margin: .65rem 0;
    border-radius: 999px;
    background: rgba(var(--cf-accent-rgb),.15);
    color: #111827;
    font-size: .8rem;
    font-weight: 700;
}
.cf-mastered-topic {
    border-color: var(--cf-accent);
}
.cf-explanation-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
}
/* Exam screens: full browser width, persistent errors and subject navigation. */
body.cf-css-exam-screen #cfNavbar {
    display: none!important;
}
body.cf-css-exam-screen .cf-sidebar,body.cf-css-exam-screen .sidebar-overlay {
    display: none!important;
}
body.cf-css-exam-screen .cf-wrapper,body.cf-css-exam-screen .cf-layout {
    padding: 0!important;
    margin: 0!important;
    min-height: 100vh;
}
body.cf-css-exam-screen .cf-main-content {
    margin: 0!important;
    padding: 24px!important;
    width: 100%!important;
    max-width: none!important;
}
body.cf-css-exam-screen .journey-content {
    max-width: 1600px!important;
    width: 100%;
    margin: auto;
}
body.cf-css-exam-screen .cbt-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 24px;
}
body.cf-css-exam-screen .cf-cbt-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    padding: 14px;
    border-bottom: 3px solid var(--cf-accent);
}
#cbtError:not([hidden]) {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px,calc(100vw - 32px));
    z-index: 10000;
    background: #fff1f0;
    color: #8a1818;
    border: 2px solid #b42318;
    box-shadow: 0 8px 28px #0003;
    padding: 18px 24px;
    border-radius: 12px;
    font-weight: 600;
}
.cf-exam-subjects {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 12px 0;
}
.cf-exam-subjects [aria-pressed=true] {
    background: var(--cf-accent)!important;
    border-color: var(--cf-accent)!important;
    color: #111!important;
}
.cf-mini-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin: 20px 0;
    border: 1px solid var(--cf-accent);
    border-left: 5px solid var(--cf-accent);
    background: rgba(var(--cf-accent-rgb),.07);
}
.cf-mini-cta h2 {
    font-size: 1.35rem;
    margin: .4rem 0;
}
.cf-mini-cta p {
    max-width: 760px;
    margin: 0;
    line-height: 1.7;
}
.cf-mini-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .06em;
}
.cf-mini-cta>a {
    flex-shrink: 0;
    background: var(--cf-accent);
    color: #111;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.cf-platform-credit {
    display: block!important;
    width: 100%!important;
    margin: 0!important;
    text-align: center!important;
    align-self: stretch;
    float: none;
}
.cf-dashboard .cf-quick-btn i,.cf-dashboard .cf-stat-icon {
    color: var(--cf-accent)!important;
}
.cf-dashboard .cf-quick-btn-dose {
    background: rgba(var(--cf-accent-rgb),.12)!important;
    border-color: var(--cf-accent)!important;
    color: #111!important;
}
@media(min-width:992px) {
    body:not(.cf-css-exam-screen) .cf-platform-credit {
        margin-left: 260px!important;
        width: calc(100% - 260px)!important;
        position: static;
        left: auto;
    }
}
@media(max-width:767px) {
    body.cf-css-exam-screen .cf-main-content {
        padding: 12px!important;
    }
    body.cf-css-exam-screen .cbt-layout {
        grid-template-columns: 1fr;
    }
    .cf-mini-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }
    .cf-mini-cta>a {
        text-align: center;
    }
}
/* Mock Exams and Results: mini mocks; practice exit confirmation. */
.cf-mini-section {
    padding: 24px;
    margin-bottom: 24px;
    border-top: 4px solid var(--cf-accent);
    scroll-margin-top: 90px;
}
.cf-mini-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.cf-mini-section h2 {
    font-size: 1.35rem;
    margin: .4rem 0;
}
.cf-mini-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap: 16px;
}
.cf-mini-card {
    border: 1px solid rgba(var(--cf-accent-rgb),.45);
    border-radius: 14px;
    padding: 20px;
    background: rgba(var(--cf-accent-rgb),.06);
}
.cf-mini-card h3 {
    font-size: 1.05rem;
    margin: 10px 0;
}
.cf-mini-score {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
}
.cf-mini-location {
    padding: 14px 18px;
    border-left: 3px solid var(--cf-accent);
    background: rgba(var(--cf-accent-rgb),.07);
}
.cf-xp-badge {
    text-decoration: none!important;
}
.cf-xp-badge:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 4px;
}
.cf-practice-end-modal {
    border-radius: 20px!important;
    padding: 28px!important;
}
.cf-modal-confirm,.cf-modal-cancel {
    border-radius: 10px;
    padding: 12px 20px;
    margin: 6px;
    font-weight: 700;
    border: 1px solid var(--cf-accent);
}
.cf-modal-confirm {
    background: var(--cf-accent);
    color: #111;
}
.cf-modal-cancel {
    background: white;
    color: #222;
}
.cf-modal-confirm:focus-visible,.cf-modal-cancel:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 3px;
}
@media(max-width:600px) {
    .cf-mini-section-head {
        align-items: stretch;
        flex-direction: column;
    }
    .cf-mini-section {
        padding: 18px;
    }
}
/* Completed learning rounds and dashboard score estimate. */
.cf-cycle-complete {
    border-left: 5px solid var(--cf-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cf-cycle-complete .jhub-button {
    flex-shrink: 0;
}
.cf-dashboard-estimate {
    padding: 28px;
    margin-bottom: 24px;
    border-top: 4px solid var(--cf-accent);
}
.cf-dashboard-estimate h2 {
    font-size: 1.3rem;
    margin: 10px 0;
}
.cf-dashboard-estimate .cf-mini-score {
    display: block;
}
@media(max-width:600px) {
    .cf-cycle-complete {
        flex-direction: column;
        align-items: stretch;
    }
    .cf-dashboard-estimate {
        padding: 20px;
    }
}
/* Practice selection: subject and topic checkboxes, live search and coupon entry. */
.cf-subject-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cf-select-check {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
}
.cf-select-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.cf-select-check span {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #cbd0d8;
    border-radius: 12px;
    padding: 12px 15px;
    background: #fff;
    color: #202733;
    min-height: 46px;
    line-height: 1.5;
}
.cf-select-check i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    border: 1px solid #a9b0bc;
    border-radius: 5px;
    color: transparent;
}
.cf-select-check input:checked+span {
    background: rgba(var(--cf-accent-rgb),.12);
    border-color: var(--cf-accent);
    font-weight: 700;
}
.cf-select-check input:checked+span i {
    background: var(--cf-accent);
    border-color: var(--cf-accent);
    color: #111;
}
.cf-select-check input:focus-visible+span {
    outline: 3px solid var(--cf-accent);
    outline-offset: 3px;
}
.cf-select-check input:disabled+span {
    opacity: .55;
    cursor: wait;
}
.cf-topic-options {
    display: grid;
    gap: 9px;
    max-height: 320px;
    overflow: auto;
    padding: 4px;
    margin: 14px 0 20px;
}
.cf-topic-choice[hidden] {
    display: none!important;
}
.cf-topic-selection-count,.cf-topic-status {
    font-size: .9rem;
    line-height: 1.6;
}
.cf-topic-subject h3 {
    font-size: 1.2rem;
}
.cf-coupon-entry {
    margin: 20px 0;
    padding: 18px;
    background: rgba(var(--cf-accent-rgb),.08);
    border-radius: 12px;
}
.cf-coupon-entry>div {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.cf-coupon-entry input {
    min-width: 0;
    flex: 1;
}
@media(max-width:600px) {
    .cf-coupon-entry>div {
        flex-direction: column;
    }
    .cf-subject-choices>.cf-select-check {
        flex: 1 1 44%;
    }
}
/* Mock results: summary, subject charts, review tabs and score image */
.mock-result .mock-result-hero {
    border-top: 5px solid var(--cf-accent);
    padding: clamp(22px,4vw,42px);
}
.mock-eyebrow {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    font-size: .8rem;
}
.mock-score {
    display: flex;
    flex-direction: column;
    margin: 24px 0;
}
.mock-score strong {
    font-size: clamp(3rem,7vw,5rem);
    line-height: 1.1;
}
.mock-score span {
    font-size: 1.1rem;
    margin-top: 8px;
}
.mock-answer-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 22px 0;
}
.mock-answer-stats>div {
    padding: 16px;
    background: #f5f5f3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.mock-answer-stats strong {
    font-size: 1.8rem;
}
.mock-subject-bar {
    margin: 20px 0;
}
.mock-subject-bar>div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.mock-bar {
    height: 14px;
    border-radius: 12px;
    background: #ecece8;
    overflow: hidden;
}
.mock-bar span {
    display: block;
    height: 100%;
    background: var(--cf-accent);
}
.mock-subject-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.mock-subject-tabs button {
    flex-shrink: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #202020;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
}
.mock-subject-tabs button[aria-selected=true] {
    background: var(--cf-accent);
    border-color: var(--cf-accent);
    color: #171717;
}
.mock-subject-tabs button:focus-visible {
    outline: 3px solid #292929;
    outline-offset: 2px;
}
.mock-result [hidden] {
    display: none!important;
}
.mock-answer-chart {
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    background: #e5e7eb;
}
.mock-segment-correct {
    background: #268352;
}
.mock-segment-wrong {
    background: #c74949;
}
.mock-segment-skipped {
    background: #9ca3af;
}
.mock-chart-key {
    font-size: .85rem;
    color: #525252;
}
.mock-question {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0;
}
.mock-question summary {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.7;
}
.mock-option {
    padding: 12px;
    border-radius: 8px;
    background: #f6f6f4;
    overflow-wrap: anywhere;
}
.mock-option.is-correct {
    background: #e8f5ed;
    border-left: 4px solid #268352;
}
.mock-share-dialog {
    border: 0;
    border-radius: 18px;
    padding: 24px;
    max-width: 580px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}
.mock-share-dialog::backdrop {
    background: #0009;
}
.mock-share-dialog canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.mock-share-dialog .journey-actions {
    flex-wrap: wrap;
}
.mock-result h1 {
    overflow-wrap: anywhere;
}
@media(max-width:480px) {
    .mock-answer-stats {
        gap: 6px;
    }
    .mock-answer-stats>div {
        padding: 10px;
    }
    .mock-answer-stats span {
        font-size: .75rem;
    }
    .mock-question {
        padding: 12px;
    }
}
/* ============================================================
   UNIFIED STUDENT PORTAL
   Shared canvas, heroes, cards, controls; exam screens stay separate.
   ============================================================ */
body.cf-css-unified {
    --cf-ui-line: #e5e8ec;
    --cf-ui-muted: #657080;
    --cf-ui-radius: 20px;
    --cf-ui-shadow: 0 4px 20px #17202d05;
    --_accent: var(--cf-accent);
    --_rgb: var(--cf-accent-rgb);
    --_on: var(--cf-on-accent,#171717);
    background: #f5f6f8;
}
body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content {
    min-width: 0;
    max-width: none;
    padding: 24px;
    box-sizing: border-box;
}
body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content>.journey-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: var(--cf-dark);
    font-size: 15px;
    line-height: 1.7;
}
body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content>.container,body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content>.container-fluid {
    max-width: none;
    padding-inline: 0;
}
body.cf-css-unified .cf-ui-hero,body.cf-css-unified .cf-ui-legacy-hero,body.cf-css-unified .cf-activity-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px,3vw,36px);
    margin: 0 0 24px;
    border-radius: 20px;
    background: radial-gradient(ellipse at top right,rgba(var(--cf-accent-rgb),.22),transparent 66%),linear-gradient(135deg,#1c2028,#14171d);
    color: #fff;
    border: 1px solid #ffffff0a;
    box-shadow: 0 16px 36px -26px #1118;
    overflow: hidden;
}
body.cf-css-unified .cf-ui-hero:after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(var(--cf-accent-rgb),.18);
    border-radius: 50%;
    right: -85px;
    top: -150px;
    z-index: -1;
    pointer-events: none;
}
body.cf-css-unified .cf-ui-hero-copy {
    max-width: 850px;
    min-width: 0;
}
body.cf-css-unified .cf-ui-hero h1,body.cf-css-unified .cf-ui-legacy-hero h1,body.cf-css-unified .cf-activity-hero h1 {
    color: #fff;
    font-size: clamp(25px,3vw,34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.8px;
    margin: 8px 0 12px;
}
body.cf-css-unified .cf-ui-hero p,body.cf-css-unified .cf-ui-legacy-hero p,body.cf-css-unified .cf-activity-hero p {
    color: #c5cad2!important;
    font-size: 14px;
    line-height: 1.8;
    max-width: 70ch;
    margin: 0;
}
body.cf-css-unified .cf-ui-eyebrow {
    color: var(--cf-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.cf-css-unified .cf-ui-eyebrow:before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
body.cf-css-unified .cf-ui-hero-icon {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--cf-accent-rgb),.25);
    border-radius: 24px;
    color: var(--cf-accent);
    background: rgba(var(--cf-accent-rgb),.08);
    font-size: 36px;
    transform: rotate(-6deg);
}
body.cf-css-unified .cf-ui-legacy-hero .text-muted {
    color: #c5cad2!important;
}
body.cf-css-unified .cf-ui-legacy-hero .cf-page-title i {
    color: var(--cf-accent)!important;
}
body.cf-css-unified .cf-ui-legacy-hero .cf-select {
    background: #fff;
    color: #20252c;
    border-color: #fff;
    max-width: 100%;
}
body.cf-css-unified .cf-ui-legacy-hero .btn-cf-outline {
    color: #fff;
    border-color: #ffffff60;
}
body.cf-css-unified .cf-corrections__hero {
    padding: clamp(24px,3vw,36px);
    margin-bottom: 24px;
    border-radius: 20px;
}
body.cf-css-unified .cf-corrections__title {
    font-size: clamp(25px,3vw,34px);
    line-height: 1.2;
    letter-spacing: -.8px;
}
body.cf-css-unified .cf-corrections__lede {
    color: #c5cad2;
    line-height: 1.8;
    max-width: 70ch;
    font-size: 14px;
}
body.cf-css-unified .cf-main-content :is(.journey-card,.jhub-card,.cf-card,.pred-card) {
    border: 1px solid var(--cf-ui-line);
    border-radius: var(--cf-ui-radius);
    background: #fff;
    box-shadow: var(--cf-ui-shadow);
}
body.cf-css-unified .journey-content>.journey-card,body.cf-css-unified .cf-activity-content>.journey-card {
    padding: 24px;
    margin: 0 0 24px;
}
body.cf-css-unified .cf-main-content h2 {
    font-weight: 750;
    letter-spacing: -.35px;
}
body.cf-css-unified .cf-main-content h3 {
    font-weight: 700;
}
body.cf-css-unified .journey-card h2 {
    font-size: 20px;
}
body.cf-css-unified .journey-card h3 {
    font-size: 16px;
}
body.cf-css-unified .cf-ui-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
body.cf-css-unified .cf-ui-button,body.cf-css-unified .journey-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 11px;
    border: 1px solid var(--cf-accent);
    background: var(--cf-accent);
    color: var(--cf-on-accent,#171717);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.5;
    max-width: 100%;
}
body.cf-css-unified .cf-ui-button.is-secondary {
    background: #fff;
    border-color: var(--cf-ui-line);
    color: #252b34;
}
body.cf-css-unified .cf-ui-hero .cf-ui-button.is-secondary {
    background: #ffffff0a;
    border-color: #ffffff45;
    color: #fff;
}
body.cf-css-unified .cf-ui-button:hover {
    filter: brightness(.96);
}
body.cf-css-unified .cf-ui-button:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 3px;
}
body.cf-css-unified .cf-ui-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--cf-ui-line);
    border-radius: 16px;
}
body.cf-css-unified .cf-ui-step-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #343b46;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
}
body.cf-css-unified .cf-ui-step-nav a:hover {
    background: rgba(var(--cf-accent-rgb),.12);
}
body.cf-css-unified .cf-ui-step-nav b {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(var(--cf-accent-rgb),.2);
    color: #20252c;
}
body.cf-css-unified [id^=practice-],body.cf-css-unified [id^=journey-] {
    scroll-margin-top: 95px;
}
body.cf-css-unified .cf-ui-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
body.cf-css-unified .cf-ui-section-heading h2 {
    margin: 5px 0 0;
}
body.cf-css-unified .cf-ui-kicker {
    color: #535d6a;
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.cf-css-unified .cf-ui-pill {
    background: rgba(var(--cf-accent-rgb),.14);
    border: 1px solid rgba(var(--cf-accent-rgb),.3);
    border-radius: 30px;
    padding: 7px 12px;
    color: #343b46;
    font-weight: 650;
    font-size: 12px;
}
body.cf-css-unified .cf-ui-text-link {
    color: #282f39;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    gap: 9px;
    align-items: center;
    border-bottom: 2px solid var(--cf-accent);
    padding: 5px 0;
}
body.cf-css-unified .cf-ui-small-note {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 22px;
}
/* Score prediction: ranges, targets and actionable subject cards. */
body.cf-css-unified .cf-ui-pred-overview {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    margin: 0 0 24px;
}
body.cf-css-unified .cf-ui-pred-overview>.journey-card {
    padding: 28px;
    margin: 0;
    min-width: 0;
}
body.cf-css-unified .cf-ui-estimate {
    border-top: 4px solid var(--cf-accent);
}
body.cf-css-unified .cf-ui-big-score {
    font-size: clamp(38px,5vw,62px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.2;
    margin: 18px 0;
}
.cf-ui-big-score small {
    font-size: 18px;
    letter-spacing: 0;
    color: #657080;
    margin-left: 7px;
    font-weight: 600;
}
body.cf-css-unified .cf-ui-meter {
    height: 10px;
    background: #edf0f3;
    border-radius: 20px;
    overflow: hidden;
    margin: 18px 0;
}
.cf-ui-meter>span {
    height: 100%;
    display: block;
    background: var(--cf-accent);
    border-radius: 20px;
}
body.cf-css-unified .cf-ui-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 16px;
}
.cf-ui-subject-card {
    border: 1px solid var(--cf-ui-line);
    padding: 22px;
    border-radius: 16px;
    min-width: 0;
}
.cf-ui-subject-score {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 16px;
}
.cf-ui-subject-score small {
    font-size: 14px;
    color: #657080;
    margin-left: 5px;
}
.cf-ui-score-facts {
    margin: 0;
    display: grid;
    gap: 10px;
}
.cf-ui-score-facts>div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}
.cf-ui-score-facts dt {
    font-weight: 500;
    color: #657080;
}
.cf-ui-score-facts dd {
    margin: 0;
    font-weight: 750;
}
body.cf-css-unified .cf-ui-focus-list {
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: focus;
}
.cf-ui-focus-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    counter-increment: focus;
    padding: 20px 0;
    border-bottom: 1px solid var(--cf-ui-line);
}
.cf-ui-focus-list li:last-child {
    border: 0;
    padding-bottom: 0;
}
.cf-ui-focus-list li:before {
    content: counter(focus,decimal-leading-zero);
    color: #353d48;
    font-size: 18px;
    font-weight: 800;
    align-self: flex-start;
    background: rgba(var(--cf-accent-rgb),.13);
    border-radius: 10px;
    padding: 10px;
}
.cf-ui-focus-list li>div {
    flex: 1;
    min-width: 0;
}
.cf-ui-focus-list small {
    color: #657080;
}
.cf-ui-focus-list h3 {
    margin: 5px 0;
}
.cf-ui-focus-list p {
    font-size: 13px;
    margin: 0!important;
    color: #657080;
}
body.cf-css-unified .cf-ui-empty {
    text-align: center;
    padding: 40px!important;
}
.cf-ui-empty-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(var(--cf-accent-rgb),.15);
    font-size: 32px;
    color: #282f39;
    margin: 0 auto 22px;
}
.cf-ui-empty>p {
    max-width: 65ch;
    margin: 14px auto!important;
}
.cf-ui-steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin: 28px 0;
}
.cf-ui-steps>div {
    padding: 18px;
    background: #f7f8fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 13px;
}
.cf-ui-steps b {
    flex: 0 0 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cf-accent);
    color: var(--cf-on-accent,#171717);
}
body.cf-css-unified .cf-ui-inline-empty {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    background: #f6f8f7;
    border-radius: 12px;
}
.cf-ui-inline-empty>i {
    font-size: 28px;
}
.cf-ui-inline-empty p {
    margin: 0!important;
}
.cf-ui-help summary {
    cursor: pointer;
    font-weight: 750;
}
.cf-ui-help p {
    margin: 16px 0 0!important;
    color: #657080;
}
/* My Journey: connected roadmap, goal and progress cards. */
body.cf-css-unified .cf-journey-hub .jhub-card {
    margin: 0 0 24px;
    padding: 28px;
}
body.cf-css-unified .cf-journey-hub .jhub-stats strong {
    color: #242b35;
    font-size: 26px;
}
body.cf-css-unified .cf-journey-hub .jhub-kicker {
    color: #657080;
    font-size: 11px;
}
body.cf-css-unified .cf-journey-hub .jhub-step {
    color: var(--cf-on-accent,#171717);
    border-radius: 11px;
    flex-basis: 40px;
    height: 40px;
}
body.cf-css-unified .cf-journey-hub .jhub-button {
    color: var(--cf-on-accent,#171717);
    border-radius: 11px;
}
body.cf-css-unified .cf-journey-hub .jhub-link {
    color: #282f39;
    border-bottom: 2px solid var(--cf-accent);
}
body.cf-css-unified .cf-journey-hub .jhub-roadmap {
    gap: 16px;
}
body.cf-css-unified .cf-journey-hub .jhub-roadmap li {
    border-top: 3px solid var(--cf-accent);
    background: linear-gradient(145deg,rgba(var(--cf-accent-rgb),.045),#fff 70%);
    padding: 24px;
}
body.cf-css-unified .cf-journey-hub .jhub-stage-list span {
    background: #f5f6f8;
    border-left: 3px solid var(--cf-accent);
}
/* Daily Dose, Practice and achievements use the same card spacing. */
body.cf-css-unified .cf-dose-status {
    position: relative;
    border-left: 4px solid var(--cf-accent)!important;
    padding: 30px!important;
    background: linear-gradient(110deg,rgba(var(--cf-accent-rgb),.07),white 65%)!important;
}
body.cf-css-unified .cf-dose-score {
    color: #252c36;
    font-size: 40px;
    font-weight: 800;
}
body.cf-css-unified .cf-reward-stats>div {
    background: rgba(var(--cf-accent-rgb),.08);
    border: 1px solid rgba(var(--cf-accent-rgb),.18);
    border-radius: 14px;
}
body.cf-css-unified .cf-achievement {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--cf-ui-line);
    background: #f9fafb;
}
body.cf-css-unified .cf-achievement.is-earned {
    border-color: rgba(var(--cf-accent-rgb),.6);
    background: rgba(var(--cf-accent-rgb),.07);
}
body.cf-css-unified .cf-achievement.is-locked {
    opacity: 1;
    color: #657080;
}
body.cf-css-unified .cf-achievement-icon {
    border-radius: 18px;
    background: rgba(var(--cf-accent-rgb),.14);
    padding: 12px;
    display: inline-grid;
    place-items: center;
    min-width: 62px;
    min-height: 62px;
}
body.cf-css-unified .cf-achievement h3 {
    margin-top: 18px;
}
body.cf-css-unified .cf-ui-plan-status {
    padding: 18px 22px;
    border-radius: 14px;
    border-left: 4px solid var(--cf-accent);
    background: #fff;
    margin-bottom: 24px;
}
body.cf-css-unified .mock-score strong small {
    font-size: 22px;
    color: #657080;
    letter-spacing: 0;
}
.mock-scale-note {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(var(--cf-accent-rgb),.1);
    font-size: 13px;
    max-width: 75ch;
}
.cf-ui-score-label {
    font-weight: 750;
    font-size: 14px!important;
}
@media(min-width:1600px) {
    body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content {
        padding: 28px;
    }
}
@media(max-width:991px) {
    body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content {
        padding: 20px;
    }
    .cf-ui-pred-overview {
        gap: 18px!important;
    }
    .cf-ui-focus-list li {
        flex-wrap: wrap;
    }
    .cf-ui-focus-list li>.cf-ui-button {
        margin-left: 60px;
    }
}
@media(max-width:767px) {
    body.cf-css-unified .cf-ui-hero,body.cf-css-unified .cf-ui-legacy-hero,body.cf-css-unified .cf-activity-hero {
        padding: 24px;
        align-items: flex-start;
        flex-direction: column;
    }
    .cf-ui-hero-icon {
        display: none!important;
    }
    body.cf-css-unified .cf-ui-pred-overview {
        grid-template-columns: 1fr;
    }
    .cf-ui-steps {
        grid-template-columns: 1fr;
    }
    .cf-ui-step-nav {
        gap: 4px!important;
    }
    .cf-ui-step-nav a {
        padding: 7px 8px!important;
        font-size: 12px!important;
    }
    .cf-ui-pred-overview>.journey-card {
        padding: 22px!important;
    }
    .cf-ui-subject-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))!important;
    }
    .cf-ui-subject-card {
        padding: 16px;
    }
    .cf-ui-score-facts>div {
        flex-wrap: wrap;
        gap: 3px;
    }
    .cf-ui-empty {
        padding: 24px!important;
    }
}
@media(max-width:575px) {
    body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content {
        padding: 16px 12px!important;
    }
    body.cf-css-unified:not(.cf-css-exam-screen) .cf-main-content>.journey-content {
        padding: 0!important;
    }
    .cf-ui-hero,.cf-ui-legacy-hero {
        border-radius: 16px!important;
        margin-bottom: 20px!important;
    }
    body.cf-css-unified .cf-corrections__hero {
        padding: 24px 20px;
        border-radius: 16px;
    }
    body.cf-css-unified .cf-main-content .journey-card,body.cf-css-unified .cf-journey-hub .jhub-card {
        padding: 20px 16px;
    }
    .cf-ui-big-score {
        font-size: 44px!important;
    }
    .cf-ui-focus-list li>.cf-ui-button {
        margin-left: 0;
        width: 100%;
    }
    .cf-ui-focus-list li {
        gap: 12px;
    }
    .cf-ui-subject-grid {
        grid-template-columns: 1fr!important;
    }
    .cf-ui-legacy-hero .cf-page-title {
        font-size: 25px!important;
    }
    .cf-ui-section-heading {
        gap: 12px!important;
    }
    .cf-ui-step-nav a {
        flex: 1 1 calc(50% - 8px);
    }
    .cf-ui-legacy-hero select {
        width: 100%!important;
    }
    .cf-ui-legacy-hero>div {
        min-width: 0;
        max-width: 100%;
    }
    body.cf-css-unified .cf-journey-hub .jhub-roadmap li {
        padding: 18px;
    }
    .cf-ui-hero .cf-ui-actions {
        width: 100%;
    }
    .cf-ui-hero .cf-ui-button {
        flex: 1;
    }
    .cf-ui-steps {
        margin: 20px 0;
    }
    .cf-ui-help summary {
        line-height: 1.7;
    }
}
@media(prefers-reduced-motion:reduce) {
    body.cf-css-unified .cf-main-content *,body.cf-css-unified .cf-main-content *:before,body.cf-css-unified .cf-main-content *:after {
        animation: none!important;
        transition: none!important;
    }
}
/* Expanded result questions; only explanations collapse. */
.mock-question h3 {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}
.mock-question {
    display: block;
    padding: 1.4rem!important;
    border-left: 4px solid var(--cf-accent,#fabf2c)!important;
}
.journey-card[data-report-question] h3 {
    font-size: 1.05rem;
    line-height: 1.7;
}
.journey-card[data-report-question]>p {
    padding: .8rem 1rem;
    border: 1px solid var(--cf-border,#e5e7eb);
    border-radius: 10px;
    background: var(--cf-bg,#f7f8fa);
}
/* Learning tasks and achievement bonuses */
.cf-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr));
    gap: 18px;
    margin-top: 18px;
}
.cf-reward-card {
    padding: 22px;
    border: 1px solid var(--cf-border,#e3e6eb);
    border-radius: 18px;
    background: var(--cf-card-bg,#fff);
    min-width: 0;
}
.cf-reward-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 16px;
}
.cf-reward-top strong {
    padding: 7px 10px;
    border-radius: 30px;
    background: var(--cf-accent,#fabf2c);
    color: #171717;
    white-space: nowrap;
}
.cf-reward-card h3 {
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.cf-reward-card progress {
    width: 100%;
    height: 9px;
    accent-color: var(--cf-accent,#fabf2c);
    margin: 4px 0 14px;
}
.cf-reward-card.is-complete {
    border-color: #badbc5;
    background: #f5fbf6;
}
.cf-reward-earned {
    color: #22643c;
    font-weight: 650;
}
.cf-reward-card .journey-button {
    display: inline-flex;
    margin-top: 8px;
}
.cf-reward-summary {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cf-reward-summary h2 {
    margin: 6px 0;
}
.cf-reward-summary p {
    margin-bottom: 0;
}
/* Dashboard: keep Today's Formula dark despite the shared white card surface. */
body.cf-css-unified.cf-css-dashboard .cf-main-content .cf-dashboard-section--formula .cf-formula.cf-card {
    background: radial-gradient(140% 120% at 100% 0%,rgba(var(--cf-accent-rgb,250,191,44),.22),transparent 60%),linear-gradient(180deg,#1c1f26,#14171c);
    color: #fff;
    border-color: #ffffff14;
    box-shadow: 0 20px 40px -20px #0006;
}
/* Clear record actions and resilient toast icons. */
.cf-actions-source {
    display: none!important;
}
.cf-table-action-dialog {
    border: 0;
    border-radius: 20px;
    padding: 28px;
    width: min(520px,calc(100vw - 30px));
    max-height: 85vh;
    overflow: auto;
    color: #242424;
    background: #fff;
    box-shadow: 0 24px 100px #0005;
}
.cf-table-action-dialog::backdrop {
    background: #10131899;
}
.cf-table-action-dialog h2 {
    font-size: 1.35rem;
}
.cf-table-action-choice {
    display: grid;
    gap: 6px;
    width: 100%;
    text-align: left;
    padding: 16px;
    border: 1px solid #dedede;
    border-radius: 12px;
    margin: 10px 0;
    background: #fff;
    color: #242424;
}
.cf-table-action-choice:hover,.cf-table-action-choice:focus-visible {
    border-color: var(--cf-accent,#fabf2c);
    background: #fff9e8;
}
.cf-table-action-choice span {
    font-size: .8rem;
    color: #626262;
}
.cf-dialog-close {
    float: right;
    border: 0;
    border-radius: 50%;
    height: 34px;
    width: 34px;
    background: #eee;
    font-size: 23px;
}
.swal2-popup.swal2-toast .swal2-icon.cf-toast-symbol {
    width: 26px!important;
    height: 26px!important;
    flex: 0 0 26px!important;
    border: 0!important;
    margin: 0 12px 0 0!important;
    box-sizing: content-box!important;
    font-size: 1rem!important;
}
.cf-toast-symbol .swal2-icon-content {
    display: grid!important;
    place-items: center!important;
    width: 26px;
    height: 26px;
    line-height: 1!important;
}
.cf-toast-symbol svg {
    display: block;
    width: 24px!important;
    height: 24px!important;
    flex: none;
}
/* ==========================================================================
   Shared dashboard finish: records, control rhythm and touch interactions.
   Included in the existing bundles; no additional student stylesheet is loaded.
   ========================================================================== */
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--cf-accent) transparent;
}
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: -3px;
}
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region > table {
    width: 100%;
    margin-bottom: 0;
}
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region th {
    white-space: nowrap;
}
.cf-table-scroll-hint {
    display: none;
    margin: 8px 0;
    color: var(--admin-muted, var(--sa-text-secondary, var(--cf-ui-muted, #657080)));
    font-size: 12px;
    line-height: 1.6;
}
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table td {
    overflow-wrap: anywhere;
}
:is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table td > :is(.cf-select, .cf-input) {
    min-width: 130px;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-work-tabs, .cf-scroll-tabs) {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--cf-accent) transparent;
    overscroll-behavior-x: contain;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-work-tabs, .cf-scroll-tabs) > :is(button, a) {
    flex: 0 0 auto;
    white-space: nowrap;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-results-filters, .cf-performance-filters, .cf-filter-bar, .cf-classroom-filters, .cf-followup-filters, .cf-classroom-bulk-fields) {
    align-items: end;
    gap: 16px;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-results-filters, .cf-performance-filters, .cf-classroom-filters, .cf-followup-filters, .cf-classroom-bulk-fields) > label,
:is(.cf-admin-ui, .sa-ui) .cf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}
:is(.cf-admin-ui, .sa-ui) .cf-filter-group > label {
    margin: 0;
    line-height: 1.5;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-filter-group, .cf-work-actions > label) {
    flex: 1 1 180px;
}
:is(.cf-admin-ui, .sa-ui) .cf-work-actions:has(> label) {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
}
:is(.cf-admin-ui, .sa-ui) .cf-work-actions > label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-input, .cf-select, .form-control:not(textarea), .form-select, .sa-input, .sa-select) {
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
}
:is(.cf-admin-ui, .sa-ui) :is(.btn, .sa-btn, .journey-button) {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-card-header, .sa-card-header) {
    min-width: 0;
    gap: 16px;
    flex-wrap: wrap;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-card-header, .sa-card-header) > div {
    min-width: 0;
}
:is(.cf-admin-ui, .sa-ui) :is(.cf-admin-hero, .sa-platform-hero) > i.bi {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    font-size: 30px;
    color: var(--cf-accent);
    border: 1px solid rgba(var(--cf-accent-rgb), .25);
    border-radius: 20px;
    background: rgba(var(--cf-accent-rgb), .09);
}
:is(.cf-admin-ui, .sa-ui) .cf-page-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 28px 18px;
    text-align: center;
}
:is(.cf-admin-ui, .sa-ui) .cf-page-state > i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--cf-accent-rgb), .12);
    color: var(--cf-accent);
    font-size: 24px;
}
:is(.cf-admin-ui, .sa-ui) .cf-page-state :is(h3, p) {
    max-width: 48ch;
    margin: 0;
}
:is(.cf-admin-ui, .sa-ui) .cf-page-state p {
    color: var(--admin-muted, var(--sa-text-secondary));
    font-size: 13px;
    line-height: 1.8;
}
@media (max-width: 640px) {
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region--cards {
        overflow: visible;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) table.cf-record-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        border: 0;
        background: transparent;
        border-spacing: 0;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table > tbody {
        display: grid;
        gap: 14px;
        padding: 14px;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table > tbody > tr {
        display: block;
        min-width: 0;
        border: 1px solid var(--admin-line, var(--sa-card-border, #e5e8ec));
        border-radius: 14px;
        background: var(--sa-card-bg, #fff);
        overflow: hidden;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table > tbody > tr > :is(td, th) {
        display: block;
        position: relative;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 48px;
        padding: 12px 14px 12px 40% !important;
        border: 0;
        border-bottom: 1px solid var(--admin-line, var(--sa-card-border, #edf0f4));
        background: transparent;
        color: inherit;
        text-align: left !important;
        white-space: normal !important;
        font-size: 13px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table [data-column-label]::before {
        content: attr(data-column-label);
        position: absolute;
        left: 14px;
        top: 13px;
        width: calc(40% - 26px);
        color: var(--admin-muted, var(--sa-text-secondary, #657080));
        font-size: 10px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: .35px;
        line-height: 1.6;
        white-space: normal;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table tr > :last-child {
        border-bottom: 0;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table td :is(.cf-badge, .badge, .cf-progress-badge) {
        white-space: normal;
        text-align: left;
        line-height: 1.5;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table td > :is(.cf-select, .cf-input) {
        min-width: 0;
        width: 100%;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table :is(.btn, .sa-btn, .journey-button) {
        min-height: 44px;
        max-width: 100%;
        white-space: normal;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table .cf-table-state-row {
        border: 0;
        background: transparent;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-record-table .cf-table-state-row > td {
        padding: 20px 12px !important;
    }
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-comparison-table {
        min-width: 640px;
    }
    .cf-table-scroll-hint:has(+ .cf-table-region--scroll) {
        display: block;
    }
    :is(.cf-admin-ui, .sa-ui) :is(.cf-results-filters, .cf-performance-filters, .cf-classroom-filters, .cf-followup-filters, .cf-classroom-bulk-fields) {
        grid-template-columns: minmax(0, 1fr);
    }
    :is(.cf-admin-ui, .sa-ui) :is(.cf-filter-bar, .cf-work-actions:has(> label)) > * {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
    :is(.cf-admin-ui, .sa-ui) .cf-table-action-dialog .cf-dialog-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    :is(.cf-admin-ui, .sa-ui) :is(.btn, .sa-btn, .cf-card, .cf-admin-hero, .sa-platform-hero) {
        transition: none !important;
        animation: none !important;
    }
}


/* Selection remains reachable when column headings become visually hidden. */
.cf-mobile-table-select {
    display: none !important;
}

:is(.cf-admin-ui, .sa-ui) .cf-table-actions-launch {
    color: var(--cf-on-accent, #171717) !important;
}

:is(.cf-admin-ui, .sa-ui) .cf-table-action-choice > i {
    color: var(--cf-accent);
}

@media (max-width: 640px) {
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-mobile-table-select {
        display: inline-flex !important;
        align-items: center;
        min-height: 44px;
        margin: 14px 14px 0;
    }
}

/* Sorting stays usable on phones while the original header controls stay intact. */
.cf-mobile-table-sort {
    display: none;
}
@media (max-width: 640px) {
    .cf-mobile-table-sort {
        display: block;
        margin: 14px;
        border: 1px solid var(--admin-line, var(--sa-card-border, #e5e8ec));
        border-radius: 10px;
        font-size: 13px;
    }
    .cf-mobile-table-sort > summary {
        min-height: 44px;
        padding: 12px 14px;
        cursor: pointer;
        font-weight: 700;
    }
    .cf-mobile-table-sort > div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 12px 12px;
    }
}

/* Padded containers already provide breathing room for mobile records. */
@media (max-width: 640px) {
    :is(.cf-admin-ui, .sa-ui, .cf-css-unified) .cf-table-region--padded .cf-record-table > tbody {
        padding-inline: 0;
    }
}
