html.page-reading-practice {
    --forest: #17483e;
    --deep: #12392f;
    --ink: #20342e;
    --muted: #728078;
    --line: #dfe7e0;
    --paper: #f5f7f4;
    --coral: #e47755;
    min-height: 100%;
    background: var(--paper);
}

html.page-reading-practice,
html.page-reading-practice * {
    box-sizing: border-box;
}

html.page-reading-practice body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 8% 2%, rgba(52, 111, 84, .07), transparent 30%), var(--paper);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

html.page-reading-practice a {
    color: var(--forest);
}

html.page-reading-practice .reading-shell {
    width: min(100% - 36px, 1120px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-reading-practice .reading-header,
html.page-reading-practice .reading-header nav,
html.page-reading-practice .reading-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html.page-reading-practice .reading-header {
    min-height: 76px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

html.page-reading-practice .wordmark {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

html.page-reading-practice .reading-header nav {
    gap: 8px;
}

html.page-reading-practice .reading-header nav a {
    padding: 9px 12px;
    border-radius: 6px;
    color: #64746b;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

html.page-reading-practice .reading-header nav a:hover,
html.page-reading-practice .reading-header nav a.current {
    color: var(--forest);
    background: #e7f0e9;
}

html.page-reading-practice main {
    width: min(100%, 850px);
    margin: 0 auto;
    padding: 42px 0 30px;
}

html.page-reading-practice .reading-intro {
    margin-bottom: 25px;
}

html.page-reading-practice .eyebrow {
    margin: 0 0 9px;
    color: #a35337;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

html.page-reading-practice h1 {
    margin: 0 0 10px;
    color: var(--deep);
    font: 500 clamp(31px, 6vw, 43px)/1.08 Georgia, "Times New Roman", serif;
    letter-spacing: -.03em;
}

html.page-reading-practice .reading-intro > p:last-child {
    max-width: 700px;
    margin: 0;
    color: #68786f;
    font-size: 14px;
    line-height: 1.65;
}

html.page-reading-practice .reading-filters {
    display: grid;
    grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(145px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

html.page-reading-practice .reading-filters label {
    display: grid;
    gap: 6px;
    color: #66766d;
    font-size: 10px;
    font-weight: 750;
}

html.page-reading-practice .reading-filters input,
html.page-reading-practice .reading-filters select {
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    color: var(--ink);
    background: white;
    font: 12px "Segoe UI", sans-serif;
}

html.page-reading-practice .reading-filters input:focus,
html.page-reading-practice .reading-filters select:focus {
    border-color: #78a486;
    box-shadow: 0 0 0 3px rgba(67, 128, 83, .12);
}

html.page-reading-practice .practice-panel {
    min-height: 340px;
    padding: 22px 26px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    box-shadow: 0 11px 32px rgba(29, 58, 46, .06);
}

html.page-reading-practice .practice-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

html.page-reading-practice .question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

html.page-reading-practice .tag {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    color: #416353;
    background: #eaf3ec;
    font-size: 9px;
    font-weight: 750;
}

html.page-reading-practice .tag-skill {
    color: #6a5a3f;
    background: #f4f0e5;
}

html.page-reading-practice .tag-difficulty {
    color: #586760;
    background: #eff2f1;
}

html.page-reading-practice .question-count {
    color: #89958e;
    font-size: 10px;
    white-space: nowrap;
}

html.page-reading-practice .progress-track {
    height: 4px;
    overflow: hidden;
    margin: 15px 0 22px;
    border-radius: 5px;
    background: #edf1ed;
}

html.page-reading-practice #progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--coral);
    transition: width .2s ease;
}

html.page-reading-practice .question-passage {
    margin: 0 0 18px;
    color: #485951;
    font: 15px/1.75 Georgia, "Times New Roman", serif;
    white-space: pre-line;
}

html.page-reading-practice .question-prompt {
    margin: 0 0 17px;
    color: #20342e;
    font: 600 17px/1.55 Georgia, "Times New Roman", serif;
    white-space: pre-line;
}

html.page-reading-practice .answer-options {
    display: grid;
    gap: 8px;
}

html.page-reading-practice .answer-option {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid #e3e9e4;
    border-radius: 7px;
    color: #46564e;
    background: #fff;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

html.page-reading-practice .answer-option:hover:not(:disabled) {
    border-color: #9ab9a2;
    background: #f8fbf8;
}

html.page-reading-practice .answer-option:disabled {
    cursor: default;
}

html.page-reading-practice .answer-letter {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7e0;
    border-radius: 50%;
    color: #607167;
    font-size: 10px;
    font-weight: 800;
}

html.page-reading-practice .answer-option.is-correct {
    border-color: #83b391;
    color: #27563a;
    background: #eef7ef;
}

html.page-reading-practice .answer-option.is-correct .answer-letter {
    border-color: #4a8d5d;
    color: white;
    background: #4a8d5d;
}

html.page-reading-practice .answer-option.is-wrong {
    border-color: #dca69b;
    color: #844a40;
    background: #fff4f1;
}

html.page-reading-practice .feedback {
    margin-top: 15px;
    padding: 13px 15px;
    border-left: 3px solid #6a9d77;
    border-radius: 0 6px 6px 0;
    color: #5a6c61;
    background: #f2f7f2;
    font-size: 12px;
    line-height: 1.6;
}

html.page-reading-practice .feedback.is-incorrect {
    border-color: #d28372;
    background: #fff5f2;
}

html.page-reading-practice .feedback strong {
    display: block;
    margin-bottom: 3px;
    color: #345b40;
}

html.page-reading-practice .feedback.is-incorrect strong {
    color: #934e42;
}

html.page-reading-practice .practice-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #edf1ed;
}

html.page-reading-practice .control-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d7e2d9;
    border-radius: 6px;
    color: var(--forest);
    background: white;
    font-size: 11px;
    font-weight: 750;
}

html.page-reading-practice .control-button:hover:not(:disabled) {
    background: #f1f6f2;
}

html.page-reading-practice .control-button.control-primary {
    border-color: var(--forest);
    color: white;
    background: var(--forest);
}

html.page-reading-practice .control-button.control-primary:hover:not(:disabled) {
    background: var(--deep);
}

html.page-reading-practice .control-button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

html.page-reading-practice .score-text {
    color: #728078;
    font-size: 11px;
    text-align: center;
}

html.page-reading-practice .loading-state,
html.page-reading-practice .empty-state,
html.page-reading-practice .error-state {
    padding: 46px 18px;
    color: #718078;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

html.page-reading-practice .empty-state strong,
html.page-reading-practice .error-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--deep);
    font: 500 21px Georgia, serif;
}

html.page-reading-practice .empty-state a,
html.page-reading-practice .error-state a {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
}

html.page-reading-practice .review-note {
    margin: 13px 3px 0;
    color: #87938b;
    font-size: 10px;
    line-height: 1.55;
}

html.page-reading-practice .reading-footer {
    gap: 14px;
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

html.page-reading-practice .reading-footer a {
    color: #698074;
    font-size: 11px;
    text-decoration: none;
}

html.page-reading-practice .reading-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 780px) {
    html.page-reading-practice .reading-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    html.page-reading-practice .reading-shell {
        width: min(100% - 24px, 1120px);
    }

    html.page-reading-practice .reading-header {
        min-height: 65px;
    }

    html.page-reading-practice .reading-header nav {
        gap: 0;
    }

    html.page-reading-practice .reading-header nav a {
        padding: 8px;
        font-size: 10px;
    }

    html.page-reading-practice main {
        padding-top: 28px;
    }

    html.page-reading-practice .practice-panel {
        padding: 16px 13px;
    }

    html.page-reading-practice .practice-topline {
        flex-direction: column;
        gap: 8px;
    }

    html.page-reading-practice .question-count {
        align-self: flex-end;
    }

    html.page-reading-practice .question-passage {
        font-size: 14px;
    }

    html.page-reading-practice .question-prompt {
        font-size: 16px;
    }

    html.page-reading-practice .practice-controls {
        gap: 5px;
    }

    html.page-reading-practice .control-button {
        padding: 0 9px;
        font-size: 10px;
    }

    html.page-reading-practice .score-text {
        font-size: 9px;
    }
}

html.page-reading-practice {
    --forest: #a7f36a;
    --deep: #f4f7fb;
    --ink: #e7edf5;
    --muted: #91a0b3;
    --line: #28364b;
    --paper: #0c1422;
    --coral: #a7f36a;
    color-scheme: dark;
    background: var(--paper);
}

html.page-reading-practice body {
    color: var(--ink);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(86, 126, 201, .16), transparent 34rem),
        radial-gradient(ellipse at 88% 12%, rgba(115, 199, 98, .09), transparent 28rem),
        var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html.page-reading-practice a {
    color: #b7ee8b;
}

html.page-reading-practice .reading-shell {
    width: min(100% - 48px, 1440px);
}

html.page-reading-practice .reading-header {
    min-height: 76px;
    border-color: rgba(159, 179, 207, .16);
}

html.page-reading-practice .wordmark {
    color: #f5f8fc;
    font: 800 17px/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.04em;
}

html.page-reading-practice .wordmark span {
    color: #a7f36a;
}

html.page-reading-practice .reading-header nav a {
    color: #aab6c7;
    font-size: 12px;
}

html.page-reading-practice .reading-header nav a:hover,
html.page-reading-practice .reading-header nav a.current {
    color: #ddf8c5;
    background: rgba(167, 243, 106, .1);
}

html.page-reading-practice main {
    width: 100%;
    padding: 38px 0 42px;
}

html.page-reading-practice .reading-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(168, 188, 216, .17);
    border-radius: 22px;
    background: linear-gradient(115deg, rgba(28, 42, 63, .96), rgba(17, 29, 46, .92));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}

html.page-reading-practice .reading-intro::after {
    position: absolute;
    top: -110px;
    right: -40px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(167, 243, 106, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(167, 243, 106, .025), 0 0 0 70px rgba(167, 243, 106, .02);
    content: "";
    pointer-events: none;
}

html.page-reading-practice .eyebrow {
    color: #b7ee8b;
}

html.page-reading-practice h1 {
    max-width: 800px;
    margin-bottom: 13px;
    color: #f4f7fb;
    font: 650 clamp(34px, 5vw, 57px)/1.02 Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: -.055em;
}

html.page-reading-practice h1 span {
    color: #a7f36a;
}

html.page-reading-practice .reading-intro > p:last-of-type {
    max-width: 660px;
    color: #aab7c8;
    font-size: 14px;
}

html.page-reading-practice .practice-summary {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

html.page-reading-practice .practice-summary > div {
    display: flex;
    min-width: 120px;
    align-items: baseline;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(180, 198, 222, .14);
    border-radius: 10px;
    background: rgba(7, 14, 25, .36);
}

html.page-reading-practice .practice-summary strong {
    color: #f4f7fb;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

html.page-reading-practice .practice-summary span {
    color: #9eacbf;
    font-size: 11px;
}

html.page-reading-practice .reading-filters {
    grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(135px, 1fr));
    gap: 9px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(160, 181, 210, .16);
    border-radius: 14px;
    background: rgba(18, 29, 45, .85);
}

html.page-reading-practice .reading-filters label {
    color: #aebacc;
    font-size: 10px;
    letter-spacing: .02em;
}

html.page-reading-practice .reading-filters input,
html.page-reading-practice .reading-filters select {
    height: 42px;
    padding: 0 12px;
    border-color: #34445c;
    border-radius: 8px;
    color: #e9eef6;
    background-color: #121e30;
    font-size: 12px;
}

html.page-reading-practice .reading-filters input::placeholder {
    color: #79889e;
}

html.page-reading-practice .reading-filters input:focus,
html.page-reading-practice .reading-filters select:focus {
    border-color: #a7f36a;
    box-shadow: 0 0 0 3px rgba(167, 243, 106, .13);
}

html.page-reading-practice .storage-status {
    margin: 0 0 12px;
    padding: 10px 13px;
    border: 1px solid #8e6931;
    border-radius: 9px;
    color: #f6d79c;
    background: rgba(92, 63, 23, .28);
    font-size: 12px;
    line-height: 1.5;
}

html.page-reading-practice .storage-status[hidden] {
    display: none;
}

html.page-reading-practice .practice-layout {
    display: grid;
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

html.page-reading-practice .question-browser,
html.page-reading-practice .practice-panel {
    min-width: 0;
    border: 1px solid rgba(160, 181, 210, .16);
    border-radius: 15px;
    background: rgba(17, 28, 44, .94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .16);
}

html.page-reading-practice .question-browser {
    position: sticky;
    top: 14px;
    overflow: hidden;
}

html.page-reading-practice .browser-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 17px 16px 12px;
}

html.page-reading-practice .browser-heading h2 {
    margin: 0 0 4px;
    color: #f0f4fa;
    font-size: 15px;
    letter-spacing: -.02em;
}

html.page-reading-practice .browser-heading p {
    margin: 0;
    color: #8493a8;
    font-size: 11px;
}

html.page-reading-practice .reset-button {
    padding: 7px 8px;
    border: 1px solid #35445a;
    border-radius: 7px;
    color: #aeb9c8;
    background: transparent;
    font: 600 10px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

html.page-reading-practice .reset-button:hover {
    border-color: #b16d67;
    color: #ffd2cc;
}

html.page-reading-practice .difficulty-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    padding: 0 16px 12px;
    color: #95a3b6;
    font-size: 10px;
}

html.page-reading-practice .difficulty-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

html.page-reading-practice .difficulty-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

html.page-reading-practice .difficulty-dot.easy {
    background: #64d99a;
}

html.page-reading-practice .difficulty-dot.medium {
    background: #ffc465;
}

html.page-reading-practice .difficulty-dot.hard {
    background: #ff7b82;
}

html.page-reading-practice .question-list {
    display: grid;
    max-height: min(68vh, 760px);
    gap: 4px;
    overflow: auto;
    padding: 0 8px 10px;
    scrollbar-color: #40516a #121e30;
    scrollbar-width: thin;
}

html.page-reading-practice .question-nav-item {
    display: grid;
    min-height: 37px;
    grid-template-columns: 31px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #bdc8d7;
    background: transparent;
    text-align: left;
    font: 500 11px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

html.page-reading-practice .question-nav-item:hover {
    background: rgba(123, 149, 184, .1);
}

html.page-reading-practice .question-nav-item.is-current {
    border-color: rgba(167, 243, 106, .42);
    color: #eff8e8;
    background: rgba(167, 243, 106, .11);
}

html.page-reading-practice .question-nav-number {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #17202d;
    background: #91a0b3;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

html.page-reading-practice .question-nav-item.difficulty-easy .question-nav-number {
    background: #64d99a;
}

html.page-reading-practice .question-nav-item.difficulty-medium .question-nav-number {
    background: #ffc465;
}

html.page-reading-practice .question-nav-item.difficulty-hard .question-nav-number {
    background: #ff7b82;
}

html.page-reading-practice .question-nav-item.is-complete .question-nav-number {
    color: #f1f8ec;
    background: #40614c;
}

html.page-reading-practice .question-nav-item.is-incorrect .question-nav-number {
    background: #764544;
}

html.page-reading-practice .question-nav-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.page-reading-practice .question-nav-status {
    color: #75859a;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

html.page-reading-practice .question-nav-item.is-correct .question-nav-status {
    color: #7de1a6;
}

html.page-reading-practice .question-nav-item.is-incorrect .question-nav-status {
    color: #ff8c88;
}

html.page-reading-practice .practice-panel {
    min-height: 580px;
    padding: clamp(17px, 2.4vw, 30px);
}

html.page-reading-practice .practice-topline {
    align-items: center;
}

html.page-reading-practice .tag {
    color: #d3f0be;
    background: rgba(132, 192, 99, .14);
}

html.page-reading-practice .tag-skill {
    color: #d0d9e7;
    background: rgba(126, 149, 180, .14);
}

html.page-reading-practice .tag-difficulty {
    color: #dbe3ee;
    background: rgba(148, 166, 190, .14);
}

html.page-reading-practice .tag-difficulty.difficulty-easy {
    color: #8de5ad;
    background: rgba(72, 163, 109, .17);
}

html.page-reading-practice .tag-difficulty.difficulty-medium {
    color: #ffd085;
    background: rgba(192, 132, 49, .18);
}

html.page-reading-practice .tag-difficulty.difficulty-hard {
    color: #ff9a9e;
    background: rgba(184, 71, 79, .18);
}

html.page-reading-practice .question-count {
    color: #93a2b7;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

html.page-reading-practice .progress-track {
    height: 5px;
    margin: 17px 0 28px;
    background: #26364c;
}

html.page-reading-practice #progress-bar {
    background: linear-gradient(90deg, #72d989, #b8f677);
}

html.page-reading-practice .question-passage {
    color: #c4cfde;
    font: 16px/1.8 Georgia, "Times New Roman", serif;
}

html.page-reading-practice .question-prompt {
    margin-top: 26px;
    color: #f1f5fa;
    font: 650 19px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}

html.page-reading-practice .answer-options {
    gap: 9px;
}

html.page-reading-practice .answer-option {
    align-items: center;
    padding: 12px 14px;
    border-color: #2d3d54;
    border-radius: 10px;
    color: #c9d3e1;
    background: #121f31;
    font-size: 13px;
    line-height: 1.55;
}

html.page-reading-practice .answer-option:hover:not(:disabled) {
    border-color: #74945d;
    background: #18293a;
}

html.page-reading-practice .answer-letter {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-color: #40516a;
    color: #c6d0df;
}

html.page-reading-practice .answer-option.is-correct {
    border-color: #438c62;
    color: #dcf8e4;
    background: rgba(49, 118, 73, .22);
}

html.page-reading-practice .answer-option.is-correct .answer-letter {
    border-color: #54ae73;
    background: #387c51;
}

html.page-reading-practice .answer-option.is-wrong {
    border-color: #a65556;
    color: #ffd8d5;
    background: rgba(136, 54, 59, .2);
}

html.page-reading-practice .feedback {
    border-color: #63bd7d;
    color: #c2d6c6;
    background: rgba(52, 101, 63, .2);
}

html.page-reading-practice .feedback strong {
    color: #94e5a9;
}

html.page-reading-practice .feedback.is-incorrect {
    border-color: #da817e;
    color: #dfc3c0;
    background: rgba(122, 59, 57, .2);
}

html.page-reading-practice .feedback.is-incorrect strong {
    color: #ffaaa3;
}

html.page-reading-practice .practice-controls {
    margin-top: 25px;
    border-color: #29394e;
}

html.page-reading-practice .control-button {
    min-height: 40px;
    border-color: #3a4b63;
    border-radius: 8px;
    color: #d7e2ee;
    background: #152338;
    font-size: 11px;
}

html.page-reading-practice .control-button:hover:not(:disabled) {
    background: #1d3048;
}

html.page-reading-practice .control-button.control-primary {
    border-color: #a7f36a;
    color: #102015;
    background: #a7f36a;
}

html.page-reading-practice .control-button.control-primary:hover:not(:disabled) {
    background: #bcff82;
}

html.page-reading-practice .score-text {
    color: #9eacc0;
    font-size: 11px;
}

html.page-reading-practice .loading-state,
html.page-reading-practice .empty-state,
html.page-reading-practice .error-state {
    color: #a9b5c5;
}

html.page-reading-practice .empty-state strong,
html.page-reading-practice .error-state strong {
    color: #f0f5fb;
}

html.page-reading-practice .review-note {
    color: #76869b;
    font-size: 11px;
}

html.page-reading-practice .reading-footer {
    border-color: rgba(159, 179, 207, .16);
}

html.page-reading-practice .reading-footer a {
    color: #9babbe;
}

html.page-reading-practice button:focus-visible,
html.page-reading-practice a:focus-visible,
html.page-reading-practice input:focus-visible,
html.page-reading-practice select:focus-visible {
    outline: 2px solid #a7f36a;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    html.page-reading-practice .reading-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html.page-reading-practice .reading-filters label:first-child {
        grid-column: span 2;
    }

    html.page-reading-practice .practice-layout {
        grid-template-columns: minmax(245px, 290px) minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    html.page-reading-practice .reading-shell {
        width: min(100% - 28px, 1440px);
    }

    html.page-reading-practice main {
        padding-top: 22px;
    }

    html.page-reading-practice .reading-intro {
        padding: 24px 20px;
        border-radius: 16px;
    }

    html.page-reading-practice .reading-intro::after {
        right: -225px;
    }

    html.page-reading-practice .reading-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html.page-reading-practice .reading-filters label:first-child {
        grid-column: span 2;
    }

    html.page-reading-practice .practice-layout {
        display: flex;
        flex-direction: column;
    }

    html.page-reading-practice .practice-panel {
        order: -1;
        width: 100%;
        min-height: 0;
        padding: 19px 16px;
    }

    html.page-reading-practice .question-browser {
        position: static;
        width: 100%;
    }

    html.page-reading-practice .question-list {
        max-height: 310px;
    }
}

@media (max-width: 480px) {
    html.page-reading-practice .reading-shell {
        width: min(100% - 20px, 1440px);
    }

    html.page-reading-practice .reading-header {
        min-height: 60px;
    }

    html.page-reading-practice .reading-header nav a {
        padding: 7px 8px;
        font-size: 10px;
    }

    html.page-reading-practice .practice-summary {
        gap: 6px;
    }

    html.page-reading-practice .practice-summary > div {
        min-width: 0;
        flex: 1;
        justify-content: center;
        gap: 5px;
        padding: 9px 5px;
    }

    html.page-reading-practice .practice-summary strong {
        font-size: 15px;
    }

    html.page-reading-practice .practice-summary span {
        font-size: 9px;
    }

    html.page-reading-practice .reading-filters {
        padding: 9px;
    }

    html.page-reading-practice .reading-filters input,
    html.page-reading-practice .reading-filters select {
        height: 39px;
        padding: 0 8px;
        font-size: 11px;
    }

    html.page-reading-practice .practice-topline {
        align-items: flex-start;
    }

    html.page-reading-practice .question-count {
        align-self: flex-end;
    }

    html.page-reading-practice .question-passage {
        font-size: 14px;
    }

    html.page-reading-practice .question-prompt {
        font-size: 16px;
    }

    html.page-reading-practice .practice-controls {
        gap: 6px;
    }

    html.page-reading-practice .control-button {
        padding: 0 9px;
        font-size: 10px;
    }

    html.page-reading-practice .score-text {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.page-reading-practice *,
    html.page-reading-practice *::before,
    html.page-reading-practice *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
