.det-page { max-width: 67rem; padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.det-page [hidden] { display: none !important; }
.det-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 1.35rem 0 0; color: var(--app-muted); font-size: .9rem; }
.det-crumb a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--app-rose); font-weight: 600; text-underline-offset: .2em; }
.det-intro { padding: clamp(1.1rem, 3vw, 2.7rem) 0 clamp(1.6rem, 4vw, 3rem); }
.det-intro h1 { max-width: 19ch; font-size: clamp(2.15rem, 5.8vw, 4.3rem); overflow-wrap: anywhere; }
.det-intro .app-lead { max-width: 57ch; margin-top: 1rem; }
.det-page .det-note { color: #534751; margin-top: .55rem; font-size: .95rem; }
.det-library { border-top: 1px solid var(--app-line); padding-top: clamp(1.5rem, 3.5vw, 2.5rem); scroll-margin-top: 1.2rem; }
.det-library h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.det-skills { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.1rem 0 1.5rem; }
.det-filter, .det-retry { border: 1px solid #c6cfda; border-radius: 1.5rem; padding: .55rem .95rem; background: #fff; color: var(--app-ink); font: 540 .95rem/1.35 var(--app-font); }
.det-filter { display: inline-flex; align-items: center; text-decoration: none; min-height: 2.75rem; }
.det-filter[aria-current] { color: #fff; background: var(--app-ink); border-color: var(--app-ink); box-shadow: 0 2px 0 #91cbdc; }
.det-filter:not([aria-current]):hover, .det-retry:hover { border-color: #7b8a95; background: var(--app-sky-paper); }
.det-page .det-load { margin: 1rem 0; color: var(--app-muted); }
.det-retry { cursor: pointer; }
.det-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.det-format { min-width: 0; --det-rim: #aec9d7; --det-tint: #edf6fb; padding: 1.1rem 1.2rem .7rem; background: linear-gradient(135deg, var(--det-tint), white 38%); border: 1px solid #d4dce1; border-radius: 1rem; box-shadow: 0 2px 0 #e0e5e9, 0 8px 16px -14px #23394f99; }
.det-format:nth-child(even) { --det-rim: #d9b8ce; --det-tint: #fbedf6; }
.det-format-head { display: flex; align-items: center; gap: .65rem; }
.det-format .det-icon { display: inline-grid; place-items: center; flex: none; width: 2.65rem; height: 2.65rem; border: 1px solid var(--det-rim); border-radius: .85rem; background: linear-gradient(145deg, #fff, var(--det-tint)); box-shadow: inset 0 1px #fff, 0 2px var(--det-rim); }
.det-format h3 { font-size: 1.12rem; }
.det-page .det-instruction { margin: .7rem 0 .75rem; color: var(--app-muted); font-size: .96rem; }
.det-sets { list-style: none; margin: 0; padding: 0; }
.det-sets li { border-top: 1px solid #dee4e9; }
.det-launch { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; min-height: 2.9rem; padding: .68rem 0; font-size: 1rem; text-decoration: none; border-radius: .15rem; }
.det-set-title { color: #71304d; font-weight: 570; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .2em; overflow-wrap: anywhere; }
.det-launch:hover .det-set-title { text-decoration-thickness: .13em; }
.det-count { flex: none; font-size: .86rem; color: var(--app-muted); }
@media (max-width: 44rem) {
  .det-groups { grid-template-columns: minmax(0, 1fr); }
  .det-skills { gap: .35rem; }
  .det-filter { padding-inline: .77rem; }
}
body.det-exam-mode {
  --det-violet: #6633c4;
  --det-focus: #6031b6;
  --det-violet-light: #f5f1fd;
  --det-line: #d9d9e0;
  --det-muted: #565660;
  color: #26262f; background: #f7f7f9;
}
body.det-exam-mode :is(.app-header, .app-footer, .det-crumb, .app-skip) { display: none; }
.det-exam-mode .det-page { width: min(68.75rem, calc(100% - 3rem)); max-width: none; padding: 0; margin: clamp(1.5rem, 6vh, 4.5rem) auto; }
.det-exam-mode #det-runner { width: 100%; margin: 0; }
.det-exam-mode #det-runner:focus { outline: 0; }
.det-runner {
  width: 100%; min-height: min(40rem, calc(100svh - 5rem)); display: flex; flex-direction: column;
  isolation: isolate; background: #fff; border: 1px solid #e4e4e9; border-radius: 1rem;
  box-shadow: 0 5px 22px #19152615, 0 1px 4px #19152609;
  color: #26262f; font: 400 1.025rem/1.52 system-ui, sans-serif; overflow-wrap: anywhere;
}
.det-runner :is(h2,h3,h4,button,input,textarea,select) { font-family: inherit; }
.det-runner :is(button,a,input,textarea,select,summary):focus-visible, .det-letter-track:focus-within {
  outline: 3px solid var(--det-focus); outline-offset: 3px;
}
.det-runner h2 { font-size: clamp(1.5rem, 3.3vw, 2.15rem); font-weight: 650; line-height: 1.26; letter-spacing: -.035em; }
.det-runner h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; letter-spacing: -.02em; }
.det-run-head {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.8rem) clamp(1.1rem, 4vw, 3rem) 0;
}
.det-runner .det-clock { font-size: 1.55rem; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.det-runner .det-meta, .det-runner .det-status { margin: 0; color: var(--det-muted); font-size: .9rem; }
.det-runner progress {
  display: block; appearance: none; width: 100%; height: .3rem; border: 0; border-radius: 1rem;
  background: #ebebef; color: #eeb440; accent-color: #eeb440;
}
.det-runner progress::-webkit-progress-bar { border-radius: 1rem; background: #ebebef; }
.det-runner progress::-webkit-progress-value { border-radius: 1rem; background: #eeb440; }
.det-runner progress::-moz-progress-bar { border-radius: 1rem; background: #eeb440; }
.det-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem;
  padding: .6rem 1.15rem; border: 1px solid var(--det-violet); border-radius: .52rem; background: var(--det-violet);
  color: #fff; font: 650 .95rem/1.3 system-ui, sans-serif; cursor: pointer;
}
.det-btn:hover:not(:disabled) { filter: brightness(.94); }
.det-btn:active:not(:disabled) { translate: 0 1px; }
.det-btn:disabled { background: #e7e7eb; border-color: #e1e1e6; color: #5c5c67; cursor: default; }
.det-btn-secondary, .det-word-choices .det-btn { background: #fff; border: 1.5px solid #c7c7d1; color: #42424e; }
.det-run-head .det-btn-secondary { min-height: 2.45rem; padding: .38rem .85rem; font-size: .87rem; }
.det-runner .det-task-body, .det-runner .det-exam-start, .det-runner .det-results {
  flex: 1; min-width: 0; padding: clamp(1.35rem, 3.8vw, 3rem) clamp(1.1rem, 4vw, 3rem);
}
.det-runner .det-task-body { display: flex; flex-direction: column; }
.det-task-body form { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0; }
.det-runner .det-task-name { margin: 0 0 1.2rem; }
.det-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.det-fields > * + *, .det-reading-answer > * + *, .det-photo-answer > * + * { margin-top: .9rem; }
.det-fields legend { padding: 0; font-weight: 650; }
.det-runner :is(.det-question, .det-prompt) { line-height: 1.5; font-weight: 580; }
.det-runner .det-word { margin: 1.2rem 0; font-size: clamp(2.15rem, 6vw, 3.6rem); font-weight: 630; letter-spacing: -.035em; }
.det-runner[data-format="select"] .det-task-body { text-align: center; }
.det-passage { line-height: 1.85; -webkit-user-select: text; user-select: text; }
.det-passage p + p { margin-top: .65rem; }
.det-passage ::selection, .det-passage::selection { background: #e3d6ff; color: #201936; }
.det-runner .det-options { display: grid; gap: .5rem; padding: 0; }
.det-option { display: flex; align-items: flex-start; gap: .7rem; min-height: 2.75rem; padding: .6rem .75rem; border: 1px solid var(--det-line); border-radius: .45rem; cursor: pointer; line-height: 1.45; }
.det-option input { flex: none; margin-top: .26rem; accent-color: var(--det-violet); }
.det-option:has(input:checked) { background: var(--det-violet-light); border-color: var(--det-violet); }
.det-runner .det-prompt { display: block; }
.det-runner :is(.det-answer, select) { max-width: 100%; min-height: 2.75rem; padding: .55rem .7rem; border: 1.5px solid #a8a8b4; border-radius: .48rem; color: #272731; background-color: #fff; font: inherit; }
.det-prompt > .det-answer { display: block; margin-top: .45rem; width: 100%; }
.det-runner textarea.det-answer { min-height: 7rem; resize: vertical; line-height: 1.6; }
.det-runner select { appearance: none; padding-inline-end: 1.8rem; background-image: linear-gradient(45deg, transparent 50%, #575767 50%), linear-gradient(135deg,#575767 50%, transparent 50%); background-position: calc(100% - .9rem) 52%, calc(100% - .6rem) 52%; background-size: .33rem .33rem; background-repeat: no-repeat; }
.det-fields.det-reading-layout, .det-fields.det-photo-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.1rem,3vw,2.7rem); align-items: start; }
.det-reading-source, .det-photo-source, .det-reading-answer, .det-photo-answer { min-width: 0; }
.det-fields .det-reading-answer, .det-fields .det-photo-answer { margin-top: 0; }
.det-reading-source { border-inline-end: 1px solid var(--det-line); padding-inline-end: clamp(1rem, 3vw, 2.15rem); }
.det-reading-source .det-passage { margin: 0; }
.det-runner .det-passage-label { margin-bottom: .65rem; color: #5d5d68; font-size: .79rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.det-reading-choice { display: grid; grid-template-columns: 4rem minmax(0,1fr); align-items: center; gap: .65rem; font-weight: 560; }
.det-reading-slot { display: inline-block; min-width: 2rem; padding-inline: .3rem; border-bottom: 1px solid #a9a8b3; text-align: center; color: #4b3b63; background: #f6f4f8; }
.det-runner .det-missing { padding: .6rem .8rem; border: 1px dashed #afadbd; border-radius: .3rem; color: var(--det-muted); }
.det-runner .det-letter-help { color: var(--det-muted); font-size: .95rem; }
.det-letter-passage { margin-top: 1.3rem; line-height: 2.1; }
.det-clock[data-urgent="true"] { color: #963213; }
.det-runner .det-photo, .det-runner .det-stimulus { display: block; max-width: 100%; width: auto; max-height: 23rem; object-fit: contain; border-radius: .48rem; }
.det-fields.det-listen-layout { display: grid; grid-template-columns: minmax(6.4rem, 9rem) minmax(0,1fr); gap: 1rem 1.5rem; align-items: start; }
.det-listen-layout > .det-question { grid-column: 1 / -1; }
.det-listen-layout .det-listen-response, .det-listen-layout .det-listen-player { margin-top: 0; }
.det-controls.det-listen-player { display: grid; justify-items: center; }
.det-audio-button { width: 4.8rem; height: 4.8rem; border-radius: .7rem; background: var(--det-violet); color: white; border-color: var(--det-violet); }
.det-audio-button svg { width: 2.15rem; height: 2.15rem; }
.det-audio-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.det-controls, .det-exam-actions, .det-word-choices { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.det-runner .det-exam-actions { justify-content: flex-end; width: 100%; margin-top: auto; padding: 1.1rem clamp(1.1rem,4vw,3rem); border-top: 1px solid var(--det-line); }
.det-exam-actions .det-btn { min-width: 6.3rem; }
.det-word-choices kbd { min-width: 1.3rem; padding: .1rem .25rem; color: #555560; background: #f4f4f6; border: 1px solid #d4d4de; border-radius: .2rem; font: 600 .72rem/1.2 system-ui, sans-serif; }
.det-letter-word { display: inline-flex; align-items: baseline; vertical-align: baseline; white-space: nowrap; }
.det-letter-track {
  --det-cell: calc(1ch + .5em); position: relative; display: inline-grid;
  grid-template-columns: repeat(var(--det-letters),var(--det-cell)); vertical-align: baseline;
  border-radius: .22rem; font: 500 1rem/1.65 ui-monospace, monospace;
}
.det-letter-cell { height: 1.65em; margin-inline: 1px; border: 1px solid #aaaab6; border-radius: .2rem; background: #fff; }
.det-letter-track .det-letter-input {
  position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; min-width: 0;
  margin: 0; padding: 0 0 0 .25em; border: 0; outline: none; box-shadow: none;
  background: transparent; border-radius: 0; color: inherit; font: inherit; letter-spacing: .5em;
}
.det-letter-input:focus-visible { outline: none!important; }
.det-record { display: grid; gap: .6rem; justify-items: start; }
.det-runner audio { display: block; width: min(100%, 24rem); }
.det-previous, .det-feedback, .det-preparation { margin-block: 1rem; padding: 1rem; border: 1px solid var(--det-line); border-radius: .65rem; background: #faf9fc; }
.det-runner .det-previous p, .det-review details p { white-space: pre-line; }
.det-runner :is(.det-review, .det-previous) summary { padding: .6rem 0; color: #4e3082; font-weight: 620; cursor: pointer; }
.det-review details { border-bottom: 1px solid var(--det-line); }
.det-runner :is(.det-review, .det-feedback) h4 { margin: .8rem 0 .3rem; }
.det-checklist, ol.det-review { padding-left: 1.3rem; }
.det-feedback p + p, .det-checklist li + li, ol.det-review li + li { margin-top: .45rem; }
.det-runner .det-feedback .det-btn { margin-top: .85rem; }
@media (max-width: 46rem) {
  body.det-exam-mode { background: white; }
  .det-exam-mode .det-page { width: 100%; margin: 0 auto; }
  .det-runner { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .det-fields.det-reading-layout, .det-fields.det-photo-layout { grid-template-columns: minmax(0, 1fr); }
  .det-reading-source { border: 0; border-bottom: 1px solid var(--det-line); padding: 0 0 1rem; }
  .det-runner .det-photo { max-height: 18rem; }
  .det-runner .det-exam-actions { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 29rem) {
  .det-format { padding-inline: .85rem; }
  .det-launch { gap: .5rem; }
  .det-count { font-size: .81rem; }
  .det-fields.det-listen-layout { grid-template-columns: minmax(0,1fr); }
  .det-controls.det-listen-player { display: flex; }
}
/* The timer and the progress track share a single header across item formats. */
.det-run-head:has(.det-clock) {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .55rem .75rem; align-items: baseline;
}
.det-exam-progress { display: contents; }
.det-exam-progress progress { grid-column: 1 / -1; grid-row: 2; margin-top: .35rem; }
.det-exam-progress .det-meta { grid-column: 2; grid-row: 1; }
.det-run-head .det-clock { grid-column: 1; grid-row: 1; align-self: center; }
.det-run-head:has(.det-clock) .det-btn { grid-column: 3; grid-row: 1; }
.det-runner .det-task-body { --side: clamp(1.1rem, 4vw, 3rem); --end: clamp(1.35rem, 3.8vw, 3rem); padding: var(--end) var(--side); }
.det-runner .det-task-body:has(form) { position: relative; }
.det-task-body:has(form) > .det-task-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden; margin: 0;
  padding: 0; border: 0; clip-path: inset(50%); white-space: nowrap;
}
.det-task-body > .det-exam-actions, .det-task-body > form > .det-exam-actions {
  width: calc(100% + 2 * var(--side)); margin-inline: calc(0px - var(--side));
  margin-bottom: calc(0px - var(--end)); padding-inline: var(--side);
}
.det-task-body > form > .det-fields { margin-bottom: clamp(1.4rem, 4vw, 2.8rem); }
.det-runner .det-task-body.det-preparation { margin: 0; border: 0; border-radius: 0; background: transparent; }
.det-runner .det-exam-start > :is(p,h2), .det-runner .det-preparation h2 { margin-bottom: .7rem; }
.det-runner .det-exam-start > p { max-width: 58ch; }
.det-runner .det-results > :is(.det-review,.det-question) { margin-bottom: 1rem; }
.det-runner[data-format="select"] .det-fields { padding-block: clamp(1.4rem,5vh,3rem); }
.det-runner .det-fields .det-question, .det-fields > legend { font-size: clamp(1.05rem,2vw,1.26rem); }
.det-runner .det-word { margin-top: 1rem; }
.det-runner .det-options { margin-top: .85rem; }
.det-runner .det-response .det-prompt, .det-runner .det-listen-response .det-prompt { margin-top: .85rem; }
.det-runner .det-reading-help { color: var(--det-muted); font-size: .92rem; }
.det-reading-slot.is-filled, .det-missing.is-filled, .det-missing.is-previewing { background: #eee7fa; color: #412367; }
.det-reading-slot { white-space: nowrap; }
.det-runner textarea.det-answer { width: 100%; }
.det-runner[data-format="listening"] .det-task-body:has(form) > .det-task-name {
  position: static; width: auto; height: auto; margin: .4rem 0 1.6rem; overflow: visible;
  clip-path: none; white-space: normal; text-align: center; font-size: clamp(1.25rem, 2.7vw, 1.65rem);
}
.det-runner .det-fields.det-listen-layout {
  width: min(100%, 41rem); margin-inline: auto; grid-template-columns: 7.4rem minmax(0,1fr);
  gap: 1.2rem; align-items: start;
}
.det-controls.det-listen-player { display: grid; align-content: start; justify-items: center; text-align: center; gap: .5rem; }
.det-runner .det-listen-response .det-prompt { margin-top: 0; }
.det-runner .det-listen-response textarea { margin-top: 0; min-height: 8.4rem; }
.det-runner .det-listen-response > .det-question { display: none; }
.det-runner .det-listen-response label.det-prompt { font-size: 0; }
.det-runner .det-listen-response textarea.det-answer { font-size: 1.05rem; }
@media(max-width: 33rem) {
  .det-runner .det-fields.det-listen-layout { grid-template-columns: minmax(0,1fr); }
  .det-controls.det-listen-player { display: flex; text-align: left; }
  .det-runner .det-audio-button { width: 3.75rem; height: 3.75rem; }
}
.det-runner[data-format="select"] .det-task-body:has(form) > .det-task-name,
.det-runner:is([data-format="fill"],[data-format="complete"],[data-format="photoWriting"],[data-format="photoSpeaking"]) .det-task-body:has(form) > .det-task-name {
  position: static; width: auto; height: auto; margin: .4rem 0 1.6rem; overflow: visible; clip-path: none;
  white-space: normal; text-align: center; font-size: clamp(1.25rem, 2.7vw, 1.65rem);
}
.det-runner .det-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.det-runner[data-format="select"] .det-fields { padding-top: .6rem; }
.det-runner .det-task-name:focus { outline: none; }
.det-runner[data-format="fill"] .det-letter-passage, .det-runner[data-format="complete"] .det-letter-passage {
  max-width: 46rem; margin-inline: auto; font-size: 1.12rem;
}
.det-runner .det-letter-help { text-align: center; }
