.gre-practice { max-width: 72rem; margin: 1.5rem auto; padding: 1.25rem; color: #172536; background: #fff; border: 1px solid #cbd5df; border-radius: .5rem; line-height: 1.6; }
.gre-practice, .gre-practice * { box-sizing: border-box; }
.gre-practice .gre-essay { display: block; }
.gre-practice .gre-essay span { display: block; font-weight: 700; margin-bottom: .5rem; }
.gre-practice .gre-essay textarea { display: block; width: 100%; max-width: 100%; min-height: 18rem; padding: .75rem; font: inherit; line-height: 1.6; resize: vertical; }
.gre-practice [data-review-section] { font: inherit; min-height: 44px; max-width: 100%; padding: .4rem; margin-bottom: 1rem; }
.gre-practice [hidden] { display: none !important; }
.gre-practice h2, .gre-practice h3, .gre-practice p { margin: 0 0 1rem; }
.gre-practice button { appearance: none; font: inherit; line-height: 1.4; min-height: 44px; padding: .6rem 1rem; color: #172536; background: #f2f6fa; border: 1px solid #687b8f; border-radius: .3rem; cursor: pointer; white-space: normal; text-align: start; }
.gre-practice button:hover:not(:disabled) { background: #e2edf6; }
.gre-practice button[aria-pressed="true"] { background: #174c75; border-color: #174c75; color: #fff; }
.gre-practice button:disabled { opacity: .5; cursor: default; }
.gre-practice :focus-visible { outline: 3px solid #b45000; outline-offset: 3px; }
.gre-practice [data-focus]:focus { outline-offset: 4px; }
.gre-practice .gre-actions, .gre-practice .gre-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.25rem; }
.gre-practice .gre-tests { display: flex; flex-direction: column; gap: 1rem; }
.gre-practice .gre-test-row { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid #cbd5df; border-radius: .3rem; }
.gre-practice .gre-history { display: flex; flex-wrap: wrap; gap: 1rem; }
.gre-practice .gre-history p { margin-bottom: .35rem; }
.gre-practice .gre-test-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.gre-practice progress { display: block; width: 100%; height: .65rem; margin-bottom: 1.5rem; accent-color: #174c75; }
.gre-practice .gre-content { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 1rem; }
.gre-practice .gre-quantities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.gre-practice .gre-quantity { min-width: 0; padding: .75rem; border: 1px solid #cbd5df; border-radius: .3rem; }
.gre-practice .gre-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.gre-practice fieldset { min-width: 0; margin: 0; padding: .75rem; border: 1px solid #a4b3c2; }
.gre-practice legend { font-weight: 700; padding-inline: .25rem; }
.gre-practice .gre-numeric-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.gre-practice .gre-numeric input { width: 100%; min-height: 44px; padding: .6rem; font: inherit; color: inherit; background: #fff; border: 1px solid #687b8f; border-radius: .2rem; }
.gre-practice .gre-numeric input:disabled { background: #f2f6fa; }
.gre-practice .gre-numeric-submitted { white-space: pre-wrap; overflow-wrap: anywhere; }
.gre-practice .gre-numeric-fraction { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; max-width: 24rem; }
.gre-practice .gre-numeric-fraction .gre-numeric-field:first-child { padding-bottom: .65rem; border-bottom: 2px solid #687b8f; }
.gre-practice .gre-choice { display: flex; align-items: baseline; gap: .65rem; padding: .55rem .25rem; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; }
.gre-practice input[type="radio"], .gre-practice input[type="checkbox"] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; accent-color: #174c75; }
.gre-practice .gre-passage-control { white-space: normal; }
.gre-practice .gre-passage-control p { line-height: 2; }
.gre-practice .gre-sentence { display: inline; cursor: pointer; }
.gre-practice .gre-sentence input[type="radio"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.gre-practice .gre-sentence span { border-radius: .2rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.gre-practice .gre-sentence:hover span { background: #f2f6fa; }
.gre-practice .gre-sentence input:checked + span { background: #e2edf6; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.gre-practice .gre-sentence:has(input:disabled) { cursor: default; }
.gre-practice .gre-sentence input:focus-visible + span { outline: 2px solid #b45000; outline-offset: 2px; }
.gre-practice .gre-question-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.gre-practice .gre-question-list button { width: 100%; }
.gre-practice [data-error], .gre-practice [data-submit-error] { padding: .75rem; margin-bottom: 1rem; border: 2px solid #a32323; background: #fff4f2; color: #762020; }
.gre-practice [data-message]:not(:empty) { padding: .5rem 0; }
.gre-practice dt { font-weight: 700; }
.gre-practice dd { margin: 0 0 1rem; }
.gre-practice .gre-review-notes { display: grid; gap: .8rem; margin-block: 1rem; }
.gre-practice .gre-review-notes label { display: block; }
.gre-practice .gre-review-notes textarea { display: block; box-sizing: border-box; width: 100%; min-height: 6rem; font: inherit; padding: .6rem; white-space: pre-wrap; }
.gre-practice dialog { max-width: min(34rem, calc(100vw - 2rem)); color: #172536; background: #fff; border: 1px solid #687b8f; border-radius: .5rem; padding: 1.5rem; }
.gre-practice dialog::backdrop { background: rgb(0 0 0 / .45); }
@media (max-width: 600px) {
    .gre-practice .gre-quantities { grid-template-columns: minmax(0, 1fr); }
    .gre-practice { padding: .8rem; margin-block: .75rem; }
    .gre-practice .gre-test-row { grid-template-columns: minmax(0, 1fr); }
    .gre-practice .gre-groups { grid-template-columns: minmax(0, 1fr); }
    .gre-practice .gre-actions button, .gre-practice .gre-filters button { flex: 1 1 9rem; }
}
