.toefl { padding-top: 1rem; }
.toefl .breadcrumbs { display: flex; gap: .55rem; align-items: center; color: var(--app-muted); font-size: .95rem; }
.toefl .breadcrumbs a { padding-block: .3rem; text-underline-offset: .2em; }
.toefl .directory-intro { padding-block: 1.5rem; }
.toefl .directory-intro h1 { font-size: clamp(2rem, 4vw, 3.45rem); }
.toefl #skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 0 0 1.4rem; }
.toefl #skills .skill-tile { display: grid; align-content: start; gap: .5rem; min-height: auto; padding: 1.15rem; }
.toefl #skills h3 { margin: 0; font-size: 1.22rem; }
.toefl #skills p { font-size: .96rem; }
.toefl :is(#forms, #skills) [aria-current="true"] { border-color: var(--app-rose); box-shadow: inset 0 0 0 1px var(--app-rose), var(--app-elevation); }
.toefl #workspace { scroll-margin-top: 1rem; }
.toefl .tasks { display: flex; flex-wrap: wrap; gap: .45rem; }
.toefl .tasks a, .toefl .tiles button { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .8rem; border: 1px solid #cdd4db; border-radius: .65rem; background: white; font: inherit; color: var(--app-ink); text-decoration: none; cursor: pointer; }
.toefl .tasks [aria-current="true"] { border-color: var(--app-ink); background: var(--app-ink); color: white; }
.toefl .task { margin-top: 1.3rem; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--app-line); border-radius: 1rem; }
.toefl .task h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-bottom: .5rem; }
.toefl .directions { color: var(--app-muted); }
.toefl .question-layout { display: grid; gap: 1.1rem; align-items: start; margin-top: 1.25rem; }
.toefl .question-layout.has-context { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.toefl .context, .toefl .question { min-width: 0; }
.toefl .context { padding: 1rem; border-inline-start: 4px solid #accfdd; background: #f4f9fc; border-radius: .25rem .7rem .7rem .25rem; }
.toefl .context h4, .toefl .feedback h5 { font-size: 1rem; margin: 0 0 .5rem; }
.toefl :is(.stimulus, .transcript, .response-model, .directions) { white-space: pre-line; }
.toefl .step { color: var(--app-rose); font-size: .93rem; font-weight: 600; }
.toefl .prompt { font: 570 1.13rem/1.48 var(--app-font); margin: .35rem 0 .8rem; white-space: pre-line; }
.toefl .question fieldset { padding: 0; margin: 0; border: 0; }
.toefl .sr-only { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.toefl .choices { display: grid; gap: .5rem; }
.toefl .choice { display: flex; gap: .65rem; align-items: baseline; border: 1px solid var(--app-line); border-radius: .65rem; padding: .65rem .8rem; cursor: pointer; min-height: 44px; }
.toefl .choice:has(:checked) { background: #f2f7fa; border-color: #607f93; }
.toefl input[type=radio] { accent-color: var(--app-rose); flex: none; }
.toefl .answer-text { display: block; width: 100%; margin: .4rem 0; padding: .75rem; border: 1px solid #858a92; border-radius: .6rem; font: inherit; }
.toefl textarea { resize: vertical; }
.toefl .tiles, .toefl .controls, .toefl .recorder { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.toefl .tiles { margin: .5rem 0 .65rem; }
.toefl .controls { margin-top: .8rem; }
.toefl button { font: inherit; }
.toefl button:disabled { cursor: default; opacity: .5; }
.toefl .tiles button { background: var(--app-sky-paper); }
.toefl .audio-block { margin: .6rem 0 1rem; }
.toefl audio { display: block; width: min(100%, 30rem); margin-block: .5rem; }
.toefl .audio-block summary { width: fit-content; padding: .45rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.toefl .transcript { margin-top: .4rem; color: var(--app-muted); }
.toefl .small, .toefl .recorder-status { font-size: .94rem; color: var(--app-muted); }
.toefl .feedback:not(:empty) { padding: .9rem 1rem; border-left: 3px solid var(--app-rose); background: #faf6f8; margin: .9rem 0; }
.toefl .feedback ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.toefl .question-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; border-top: 1px solid var(--app-line); padding-top: .9rem; }
@media (max-width: 50rem) { .toefl #skills { grid-template-columns: repeat(2,minmax(0,1fr)); } .toefl .question-layout.has-context {grid-template-columns: 1fr;} }
@media (max-width: 35rem) { .toefl #skills .skill-tile { padding: .8rem; } .toefl .resources { grid-template-columns: 1fr; } }

.toefl .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin-top:1rem; }
.toefl .form-grid a { flex-direction:row; align-items:center; gap:1rem; min-height:auto; }
.toefl .form-grid strong, .toefl .form-grid small { display:block; }
.toefl .form-grid strong { font-size:1.2rem; }
.toefl .form-grid small { font-size:.96rem; color:var(--app-muted); margin-top:.25rem; }
.toefl .test-sections {margin-bottom:.85rem;}
.toefl .summary {padding-left:1.3rem;}
.toefl .summary li {margin-bottom:.55rem;}
.toefl .index-select {font:inherit; color:var(--app-ink); background:white; border:1px solid var(--app-line); border-radius:.55rem; padding:.45rem; min-height:44px;}
.toefl #skills {padding-bottom:0;}
.toefl .course-footer {display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; margin-top:1rem;}
.toefl audio[hidden]{display:none;}
@media(max-width:38rem){.toefl .form-grid{grid-template-columns:1fr;} .toefl .form-grid a {padding:.85rem;}}
