/* Oefentoetsen: scoped to the builder, practice-test review and owner results. */
.ot-workspace, .ot-results-page {
  --ot-soft: color-mix(in srgb, var(--green) 6%, var(--card));
  --ot-accent: var(--green-d);
  width: 100%; max-width: 1240px; margin-inline: auto; gap: 24px;
  color: var(--ink);
}
.ot-workspace *, .ot-results-page *, .ot-review * { box-sizing: border-box; }
.ot-workspace [hidden], .ot-results-page [hidden], .ot-review [hidden] { display: none !important; }
.ot-workspace button, .ot-results-page button, .ot-review button { cursor: pointer; font-family: inherit; }
.ot-workspace button:disabled, .ot-results-page button:disabled { cursor: default; opacity: .45; }
.ot-workspace :is(button, input, select, textarea):focus-visible,
.ot-results-page :is(button, input, select, summary):focus-visible,
.ot-review :is(button, summary):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.ot-workspace-head { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.ot-workspace-head > .backbtn { flex-basis: 100%; justify-content: start; width: fit-content; }
.ot-workspace-heading { flex: 1; }
.ot-eyebrow { color: var(--green-d); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; }
.ot-workspace h1, .ot-results-page h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; margin: 5px 0 0; line-height: 1.15; }
.ot-draft-state { color: var(--muted-2); font-size: 12px; padding-bottom: 3px; }
.ot-draft-state.is-error { color: var(--err); }
.ot-setup { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px 24px; border: 1px solid var(--line); padding: 22px; border-radius: 16px; background: var(--card); }
.ot-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ot-field > label { font-size: 13px; font-weight: 750; }
.ot-field > label > span { color: var(--muted-2); font-weight: 500; margin-left: 4px; }
.ot-field :is(input, select, textarea), .ot-search-filters select {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  background: var(--card); padding: 11px 12px; font: 500 14px/1.5 "Hanken Grotesk", sans-serif;
}
.ot-field textarea { resize: vertical; }
.ot-field [aria-invalid="true"] { border-color: var(--err); }
.ot-setup-options { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 13px; }
.ot-setup-options > summary { font-size: 13px; font-weight: 650; cursor: pointer; color: var(--muted-2); width: fit-content; }
.ot-options-body { display: grid; gap: 16px; padding-top: 16px; }
.ot-workspace .ot-check { color: var(--ink); font-size: 13px; font-weight: 500; gap: 8px; }
.ot-workspace .ot-check input { width: 17px; height: 17px; accent-color: var(--green-d); }
.ot-workspace-notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ot-soft); font-size: 14px; }
.ot-compose { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ot-compose-source { min-width: 0; }
.ot-workspace .ot-search-bar { width: 100%; max-width: none; margin: 0; }
.ot-search-bar input { min-height: 50px; }
.ot-search-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0 0; }
.ot-search-filters select { width: auto; max-width: 100%; min-height: 38px; padding: 6px 30px 6px 10px; font-size: 13px; }
.ot-search-meta { padding: 0 !important; margin: 20px 0 8px !important; font-size: 12px; }
.ot-workspace .ot-search-results { gap: 16px; }
.ot-workspace .search-group { margin: 0; }
.ot-workspace .search-group-head { gap: 8px 12px; flex-wrap: wrap; padding: 13px 0; }
.ot-workspace .search-group-head > b { flex: 1 1 180px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.ot-workspace .search-group-head > span { font-size: 10px; }
.ot-group-select { padding: 5px 0; border: 0; background: none; color: var(--ot-accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ot-workspace .sh-selectable { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 8px 0 0; border-radius: 0; background: none; }
.ot-workspace .sh-selectable.is-selected { background: var(--ot-soft); }
.ot-search-choice { display: flex; align-items: start; gap: 13px; flex: 1; min-width: 0; padding: 15px 10px; cursor: pointer; }
.ot-search-choice > input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green-d); cursor: pointer; }
.ot-search-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 7px; }
.ot-workspace .sh-head { gap: 8px; }
.ot-workspace .sh-snip { line-height: 1.65; font-size: 13px; }
.ot-search-preview { border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; color: var(--green-d); background: var(--card); font-size: 12px; font-weight: 700; flex: none; }
.ot-search-preview:hover { border-color: var(--green); }
.ot-workspace .ot-search-more { margin-top: 12px; width: 100%; }
.ot-search-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.ot-search-empty p { color: var(--muted-2); font-size: 14px; }
.ot-search-examples { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ot-selection { position: sticky; top: 92px; display: flex; flex-direction: column; max-height: calc(100dvh - 114px); border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.ot-selection-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.ot-selection-head h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.ot-selection-count { font-size: 11px; color: var(--muted-2); }
.ot-selection-list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ot-selection-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; }
.ot-selection-empty > .ic { width: 28px; height: 28px; margin-bottom: 14px; color: var(--green); }
.ot-selection-empty b { font-size: 15px; }
.ot-selection-empty p { font-size: 13px; line-height: 1.6; color: var(--muted-2); margin: 7px 0 0; }
.ot-selection-group { padding: 17px 16px; border-bottom: 1px solid var(--line); }
.ot-selection-group:last-child { border-bottom: 0; }
.ot-selection-group-head { display: flex; gap: 6px; align-items: start; margin-bottom: 12px; }
.ot-selection-group-title { flex: 1; min-width: 0; }
.ot-selection-group-title b { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ot-selection-group-title small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 11px; }
.ot-selection-tools { display: flex; flex: none; }
.ot-selection-tool { border: 0; border-radius: 6px; width: 29px; height: 30px; display: inline-grid; place-items: center; color: var(--muted-2); background: none; font-size: 16px; padding: 0; }
.ot-selection-tool:hover { background: var(--ot-soft); color: var(--green-d); }
.ot-selection-tool .ic { width: 14px; height: 14px; }
.ot-selection-question { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 12px; }
.ot-selection-question > span:nth-child(2) { flex: 1; }
.ot-selection-question small { display: block; color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }
.ot-selection-number { width: 24px; height: 24px; display: grid; place-items: center; background: var(--ot-soft); color: var(--green-d); border-radius: 6px; font-size: 11px; font-weight: 750; }
.ot-selection-foot { display: grid; gap: 10px; padding: 17px 20px; border-top: 1px solid var(--line); background: var(--card); }
.ot-selection-total { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 3px; font-size: 12px; }
.ot-selection-total > span { color: var(--muted-2); }
.ot-selection-foot .btn { min-height: 43px; font-size: 13px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.ot-login-hint { color: var(--muted-2); font-size: 11px; line-height: 1.5; text-align: center; margin: 2px 0 0; }
.ot-mobile-tabs { display: none; }
.ot-preview-actions { position: sticky; bottom: -24px; padding: 14px 0; background: var(--card); border-top: 1px solid var(--line); margin-top: 16px; }
.ot-preview-actions .btn { width: 100%; }
.ot-preview-model summary { font-weight: 750; cursor: pointer; }
.ot-preview-model > div { margin-top: 12px; }
@media (max-width: 1050px) {
  .ot-compose { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .ot-workspace .sh-head { flex-wrap: wrap; }
  .ot-workspace .sh-tags { justify-content: start; }
}
@media (max-width: 760px) {
  .ot-workspace, .ot-results-page { gap: 18px; }
  .ot-workspace-head { gap: 12px; }
  .ot-draft-state { flex-basis: 100%; font-size: 11px; }
  .ot-setup { grid-template-columns: 1fr; padding: 16px; gap: 15px; }
  .ot-compose { display: block; }
  .ot-mobile-tabs { position: sticky; top: 96px; z-index: 4; display: flex; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
  .ot-mobile-tabs button { flex: 1; border: 0; border-radius: 7px; color: var(--muted-2); background: none; padding: 11px 5px; font-weight: 750; font-size: 13px; }
  .ot-mobile-tabs .is-on { background: var(--ot-soft); color: var(--green-d); }
  .ot-workspace[data-panel="search"] .ot-selection, .ot-workspace[data-panel="selection"] .ot-compose-source { display: none; }
  .ot-selection { position: static; max-height: none; }
  .ot-selection-foot { position: sticky; bottom: 0; }
  .ot-selection-list { overflow: visible; }
  .ot-selection-tool { width: 36px; height: 36px; }
  .ot-search-choice { gap: 10px; padding: 14px 6px; }
  .ot-workspace .sh-selectable { gap: 5px; flex-wrap: wrap; padding-right: 4px; }
  .ot-search-choice { flex-basis: calc(100% - 10px); }
  .ot-search-preview { margin: -4px 0 12px 34px; min-height: 36px; }
  .ot-workspace .sh-tags { gap: 4px; }
  .ot-workspace .sh-tag { font-size: 10px; }
  .ot-workspace .search-group-head > b { flex-basis: 100%; }
  .ot-group-select { margin-left: auto; }
}
.ot-workspace, .ot-results-page { display: flex; flex-direction: column; }
.ot-results-header { display: flex; flex-direction: column; gap: 16px; }
.ot-results-header > .backbtn { align-self: start; }
.ot-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.ot-results-heading > div:first-child { min-width: 0; }
.ot-results-heading h1 { overflow-wrap: anywhere; }
.ot-results-heading p { font-size: 13px; color: var(--muted-2); margin: 9px 0 0; }
.ot-results-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px; flex: none; }
.ot-results-tools .btn { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; min-height: 38px; }
.ot-results-tools .ot-copy { min-height: 38px; font-size: 12px; padding: 9px 12px; }
.ot-result-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ot-result-stat { padding: 21px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.ot-result-stat > span { font-size: 12px; color: var(--muted-2); font-weight: 650; }
.ot-result-stat > b { font-size: 34px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ot-result-stat small { color: var(--muted-2); font-size: 11px; font-weight: 500; min-height: 15px; }
.ot-result-stat > b > small { font-size: 19px; letter-spacing: -.02em; }
.ot-results-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; }
.ot-results-tabs { display: flex; gap: 28px; }
.ot-results-tabs button { color: var(--muted-2); font-weight: 750; font-size: 14px; border: 0; border-bottom: 3px solid transparent; padding: 13px 0 16px; background: none; }
.ot-results-tabs button[aria-selected="true"] { border-bottom-color: var(--green-d); color: var(--green-d); }
.ot-results-live { color: var(--muted-2); font-size: 11px; }
.ot-results-panel { min-width: 0; }
.ot-result-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.ot-result-search, .ot-result-sort { border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 500 13px/1.4 "Hanken Grotesk", sans-serif; min-height: 40px; padding: 10px 12px; }
.ot-result-search { flex: 1; min-width: 180px; }
.ot-result-sort { max-width: 100%; padding-right: 28px; }
.ot-result-chips { display: flex; gap: 4px; }
.ot-result-chips button { border: 1px solid transparent; background: none; border-radius: 8px; padding: 9px 11px; color: var(--muted-2); font-weight: 650; font-size: 12px; min-height: 38px; }
.ot-result-chips button[aria-pressed="true"] { background: var(--ot-soft); border-color: var(--line); color: var(--green-d); }
.ot-result-people { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); }
.ot-results-table { width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; font-size: 13px; }
.ot-results-table th { padding: 15px 20px; color: var(--muted-2); background: var(--ot-soft); font-weight: 650; font-size: 11px; border-bottom: 1px solid var(--line); }
.ot-results-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ot-results-table th:first-child { width: 35%; }
.ot-results-table tbody > tr:last-child > td { border-bottom: 0; }
.ot-participant-name { text-align: left; padding: 0; border: 0; background: none; color: var(--ink); display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.ot-participant-name b::after { content: ' ›'; color: var(--green-d); padding-left: 5px; }
.ot-participant-name[aria-expanded="true"] b::after { content: ' ⌄'; }
.ot-participant-name small { color: var(--muted-2); font-size: 11px; font-weight: 500; }
.ot-results-table tr.is-open > td { background: var(--ot-soft); }
.ot-status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 5px; padding: 5px 8px; background: var(--sand); color: var(--muted-2); white-space: nowrap; }
.ot-status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ot-status-pill.is-submitted { background: var(--ot-soft); color: var(--green-d); }
.ot-table-progress > span { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.ot-table-progress > div { height: 4px; width: 90px; max-width: 100%; margin-top: 7px; border-radius: 9px; background: var(--line); overflow: hidden; }
.ot-table-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.ot-table-score, .ot-table-grade { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot-table-score small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted-2); font-weight: 500; }
.ot-table-grade { font-size: 17px; }
.ot-results-table .ot-detail-row > td { padding: 0; }
.ot-participant-detail { background: var(--ot-soft); padding: 22px 24px; }
.ot-result-empty { padding: 48px 24px; text-align: center; font-size: 15px; }
.ot-result-empty p { color: var(--muted-2); font-size: 14px; line-height: 1.6; margin: 10px 0 18px; }
.ot-results-note { margin: 0; font-size: 11px; color: var(--muted-2); line-height: 1.7; }
.ot-analysis-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.ot-analysis-tools p { font-size: 13px; color: var(--muted-2); margin: 0; }
.ot-analysis-list { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); }
.ot-analysis-row { display: flex; gap: 16px; align-items: center; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.ot-analysis-row:last-child { border-bottom: 0; }
.ot-analysis-question { flex: 1; min-width: 0; }
.ot-analysis-question > b { font-size: 13px; line-height: 1.6; }
.ot-analysis-question > small { display: block; color: var(--muted-2); font-size: 11px; margin-top: 4px; }
.ot-analysis-value { display: flex; flex-direction: column; width: 110px; gap: 6px; flex: none; font-size: 14px; }
.ot-analysis-value small { color: var(--muted-2); font-size: 10px; }
.ot-analysis-bar { display: block; height: 4px; border-radius: 6px; overflow: hidden; background: var(--line); }
.ot-analysis-bar i { display: block; height: 100%; background: var(--green); }
.ot-analysis-row.is-partial .ot-analysis-bar i { background: var(--warn); }
.ot-analysis-row.is-wrong .ot-analysis-bar i { background: var(--err); }
.ot-answer-review { display: flex; flex-direction: column; gap: 22px; }
.ot-review-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin-bottom: 18px; }
.ot-review-filter input { width: 16px; height: 16px; accent-color: var(--green-d); }
.ot-review-group h3 { font-size: 14px; margin: 0 0 10px; }
.ot-review-group h3 small { display: block; font-size: 10px; color: var(--muted-2); margin-top: 4px; font-weight: 500; }
.ot-review-question { background: var(--card); border: 1px solid var(--line); border-bottom-width: 0; overflow: hidden; }
.ot-review-question:first-of-type { border-radius: 9px 9px 0 0; }
.ot-review-question:last-child { border-radius: 0 0 9px 9px; border-bottom-width: 1px; }
.ot-review-question:first-of-type:last-child { border-radius: 9px; }
.ot-review-question summary { display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 14px 16px; list-style: none; }
.ot-review-question summary::-webkit-details-marker { display: none; }
.ot-review-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-size: 12px; font-weight: 750; flex: none; }
.ot-review-label { flex: 1; min-width: 0; font-size: 13px; }
.ot-review-label small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 4px; }
.ot-review-question.is-good .ot-review-label small { color: var(--green-d); }
.ot-review-question.is-wrong .ot-review-label small { color: var(--err); }
.ot-review-question summary > b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ot-review-chevron { color: var(--muted-2); transition: transform .15s; }
.ot-review-question[open] .ot-review-chevron { transform: rotate(180deg); }
.ot-review-content { padding: 0 18px 18px 56px; }
.ot-review-given > span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 750; }
.ot-review-given > p { font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 15px; }
.ot-review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ot-review-actions .btn { font-size: 11px; }
.ot-review-session .exs-body-done { display: block; overflow: auto; padding: 36px 24px; }
.ot-review { width: 100%; max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.ot-review-header h1 { font-size: clamp(27px, 4vw, 38px); margin: 8px 0 0; letter-spacing: -.035em; }
.ot-review-header p { margin: 10px 0 0; color: var(--muted-2); font-size: 14px; }
.ot-review .ot-result-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ot-review-sync { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--green-d); }
.ot-review-sync.is-error { color: var(--err); }
.ot-review-main-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-review-main-actions .btn { font-size: 13px; }
.ot-review-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding-top: 10px; }
.ot-review-detail-head h2 { margin: 0; font-size: 19px; }
.ot-review-detail-head .ot-review-filter { margin: 0; }
@media (max-width: 900px) {
  .ot-results-heading { flex-wrap: wrap; align-items: start; }
  .ot-results-table td, .ot-results-table th { padding: 14px 12px; }
}
@media (max-width: 760px) {
  .ot-results-nav { flex-wrap: wrap; padding-bottom: 10px; }
  .ot-results-tools { justify-content: start; width: 100%; }
  .ot-results-tools .ot-copy { width: auto; }
  .ot-results-live { width: 100%; }
  .ot-result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ot-result-stat { padding: 17px; }
  .ot-result-stat > b { font-size: 30px; }
  .ot-result-filters { gap: 10px; }
  .ot-result-search { flex-basis: 100%; }
  .ot-result-sort { font-size: 12px; }
  .ot-result-chips { flex: 1; }
  .ot-result-chips button { padding-inline: 8px; }
  .ot-results-table th:nth-child(3), .ot-results-table td:nth-child(3) { display: none; }
  .ot-results-table th:first-child { width: auto; }
  .ot-results-table td, .ot-results-table th { padding: 13px 8px; }
  .ot-participant-name { font-size: 12px; max-width: 130px; overflow-wrap: anywhere; }
  .ot-participant-name small { font-size: 9px; }
  .ot-table-grade { font-size: 15px; }
  .ot-table-score { font-size: 11px; }
  .ot-status-pill { font-size: 10px; padding: 4px 5px; gap: 4px; }
  .ot-participant-detail { padding: 16px 12px; }
  .ot-analysis-row { gap: 10px; padding: 16px 12px; flex-wrap: wrap; }
  .ot-analysis-question { flex-basis: calc(100% - 44px); }
  .ot-analysis-value { margin-left: 38px; flex: 1; }
  .ot-analysis-tools { align-items: start; }
  .ot-analysis-tools p { font-size: 11px; }
  .ot-review-question summary { padding: 12px; gap: 9px; }
  .ot-review-content { padding: 0 14px 14px; }
  .ot-review-session .exs-body-done { padding: 22px 14px; }
  .ot-review .ot-result-stat { padding: 13px 10px; }
  .ot-review .ot-result-stat > b { font-size: 26px; }
  .ot-review .ot-result-stat > span { font-size: 10px; }
  .ot-review .ot-result-stat > b > small { font-size: 13px; }
  .ot-review-sync { flex-wrap: wrap; }
}
@media print {
  .ot-results-tools, .ot-results-nav, .ot-result-filters, .ot-analysis-tools, .ot-review-filter, .ot-review-actions, .ot-search-preview { display: none !important; }
  .ot-results-page, .ot-review { display: block; max-width: none; }
  .ot-results-page .ot-results-panel { display: block !important; margin-top: 25px; }
  .ot-result-stat, .ot-analysis-row, .ot-review-question { break-inside: avoid; }
}
