/* The tool shares the app's banner, tabs, cards, buttons, and color tokens. */
.exam-tool {
  --exam-field-bg: #faf8fd;
  --exam-rule: #f0eef7;
  --exam-warning: #985063;
  --exam-warning-bg: #fff4f6;
  line-height: 1.55;
}
.exam-tool.exam-bank-tool { line-height: normal }
.tool-page:has(> .exam-tool:not(.exam-bank-tool)) > .view-tabs { scroll-margin-top: 12px }
.exam-tool [hidden] { display: none !important }
.exam-tool :is(h2, h3, p) { margin: 0 }
.exam-tool a { color: var(--hub-action) }
.exam-tool summary { cursor: pointer }
.exam-tool :is(input[type=checkbox], input[type=radio]) {
  accent-color: var(--hub-action);
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}
.exam-tool .exam-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 12px;
}
.exam-tool .exam-toolbar .steps { margin: 0; gap: clamp(12px, 3vw, 30px) }
.exam-tool .exam-toolbar .exam-draft-actions { margin-inline-start: auto; justify-content: flex-end }
.exam-tool .exam-draft-actions .button { min-height: 34px }
.exam-tool:has(.type-workbench) .exam-draft-actions [data-action=save-draft] { display: none }
.exam-tool .steps > a { gap: 7px; padding: 6px 0; border: 0; font-size: 13px }
.exam-tool .steps > a.active { background: transparent; color: #5e4a96; font-weight: 650 }
.exam-tool .steps > a:not(.active):hover { background: transparent; color: #5e4a96 }
.exam-tool .steps > a > .num {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin: 0;
  padding: 0;
  color: #6e607f;
  background: #eeebf5;
  border-radius: 50%;
}
.exam-tool .steps > a.active > .num { color: #fff; background: var(--hub-action) }
.exam-tool .steps > a[aria-disabled=true] { opacity: .66; cursor: default }
.exam-tool .steps > a[aria-disabled=true]:hover { background: transparent }
.exam-tool .panel { min-width: 0; padding: 16px 20px 20px }
.exam-tool .panel h3 { font-size: 13px }
.exam-tool .sub { color: var(--muted); font-size: 12px; line-height: 1.7 }
.exam-tool .row, .exam-tool .toolbar, .exam-tool .actions, .exam-tool .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.exam-tool .spread { justify-content: space-between }
.exam-tool .toolbar { margin-bottom: 12px }
.exam-tool .field {
  min-height: 38px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  color: #555168;
  background: var(--exam-field-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
}
.exam-tool .field::placeholder { color: var(--muted) }
.exam-tool .search { flex: 1 1 160px }
.exam-tool .button.soft { color: var(--hub-action); background: var(--accent-soft); border-color: #e7defa }
.exam-tool .button.soft:hover:not(:disabled) { background: #e8e0fa }
.exam-tool .button.icon { width: 29px; min-height: 29px; padding: 0 }
.exam-tool .compact { font-size: 12px }
.exam-tool .button.compact { font-size: 11px }
.exam-tool .badge, .exam-tool .pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.exam-tool .pill { color: var(--muted); background: var(--exam-field-bg) }
.exam-tool .banklist { margin: 3px 0 }
.exam-tool .bank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 9px;
  border-bottom: 1px solid var(--exam-rule);
  cursor: pointer;
}
.exam-tool .bank:last-child { border-bottom: 0 }
.exam-tool .bank:hover, .exam-tool .bank:has(input:checked) { background: var(--exam-field-bg) }
.exam-tool .bank :is(b, small) { display: block; overflow-wrap: anywhere }
.exam-tool .bank small { margin-top: 2px; color: var(--muted); font-size: 12px }
.exam-tool .bank-count { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums }
.exam-tool .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--exam-rule);
}
.exam-tool .totals { color: var(--muted); font-size: 13px }
.exam-tool .totals b { color: var(--hub-action) }
.exam-tool .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, 30%); gap: 16px; align-items: start }
.exam-tool .bank-footer { grid-column: 1 / -1; margin-top: 0; padding: 11px 0 0 }
.exam-tool .bank-stock .panel { padding-block: 5px 10px }
.exam-tool .bank-stock dl, .exam-tool .bank-stock dd { margin: 0 }
.exam-tool .bank-stock dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.exam-tool .bank-stock dl > div + div { border-top: 1px solid var(--exam-rule) }
.exam-tool .bank-stock dd { color: var(--hub-action); font-variant-numeric: tabular-nums; font-weight: 650 }
.exam-tool .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.exam-tool .check-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.exam-tool .check-chip:has(input:checked) { background: var(--accent-soft); border-color: #e7defa }
.exam-tool .plan-total { color: #655397; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap }
.exam-tool .score-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.exam-tool .score-table :is(th, td) { padding: 7px 10px; text-align: left; vertical-align: middle }
.exam-tool .score-table thead th { font-size: 12px; font-weight: 550 }
.exam-tool .score-table thead th:first-child { width: 43%; border-radius: 7px 0 0 7px }
.exam-tool .score-table thead th:last-child { width: 16%; border-radius: 0 7px 7px 0 }
.exam-tool .score-table tbody th { background: none; color: #48415b; font-weight: 600; border-bottom: 1px solid var(--exam-rule) }
.exam-tool .score-table td { border-bottom: 1px solid var(--exam-rule) }
.exam-tool .score-table tbody small { display: block; color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums }
.exam-tool .score-table tr.warn small { color: var(--exam-warning) }
.exam-tool :is(.score-table, .item-score) input {
  width: min(100%, 90px);
  min-height: 33px;
  padding: 3px 6px;
  color: #49465e;
  background: var(--exam-field-bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.exam-tool :is(.score-table, .item-score) input::placeholder { color: #746887 }
.exam-tool :is(.score-table, .item-score) input[aria-invalid=true] { border-color: #c76881 }
.exam-tool .score-table input[type=number] { appearance: textfield }
.exam-tool .score-table input[type=number]::-webkit-inner-spin-button { appearance: none }
.exam-tool .score-subtotal { color: #655397; font-weight: 650; font-variant-numeric: tabular-nums }
.exam-tool .score-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px }
.exam-tool .notice {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.exam-tool .notice.warn { padding: 6px 8px; color: var(--exam-warning); background: var(--exam-warning-bg); border-radius: 7px }
.exam-tool .type-workbench { display: grid; min-width: 0; gap: 12px }
.exam-tool .assembly-navigation {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding-block: 4px;
  background: #f7f8fc;
}
.exam-tool .assembly-navigation > .button { align-self: center; white-space: nowrap }
.exam-tool .assembly-types { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; min-width: 0 }
.exam-tool .assembly-type {
  display: flex;
  flex: 1 1 164px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: #5d5871;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.exam-tool .assembly-type-metrics { display: flex; align-items: center; gap: 8px }
.exam-tool .assembly-type b { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted) }
.exam-tool .assembly-type-score {
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--border);
  color: #655397;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.exam-tool .assembly-type:hover { border-color: #d3c6ed }
.exam-tool .assembly-type.is-current { background: var(--accent-soft); border-color: #dacef5; color: #5e4a96; font-weight: 650 }
.exam-tool .assembly-type.is-current b { color: #6855b8 }
.exam-tool .assembly-type.is-complete b { color: #2e776a }
.exam-tool .assembly-current-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--exam-rule);
}
.exam-tool .assembly-current-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px }
.exam-tool .assembly-current-head h2 { font-size: 18px; color: #373349 }
.exam-tool .assembly-scopes { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 12px 18px }
.exam-tool .assembly-scope { flex: 1 1 470px; min-width: 0; border: 0; padding: 0; margin: 0 }
.exam-tool .assembly-scope:last-child { flex: 0 1 auto }
.exam-tool .assembly-scope legend { float: left; min-height: 34px; line-height: 34px; padding: 0 9px 0 0; color: var(--muted); font-size: 12px }
.exam-tool .assembly-scope .chips { gap: 6px; min-width: 0 }
.exam-tool .assembly-scope .check-chip { min-height: 34px; padding: 5px 8px; overflow-wrap: anywhere }
.exam-tool .assembly-scope .check-chip:has(input:checked) { color: #5e4a96 }
.exam-tool .assembly-source { max-width: 100% }
.exam-tool .assembly-source > span { min-width: 0 }
.exam-tool .assembly-source small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.exam-tool .assembly-notice { margin: 0 18px 12px; padding: 7px 10px }
.exam-tool .assembly-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 36%); gap: 12px }
.exam-tool .assembly-picked {
  position: sticky;
  top: var(--picked-top, 64px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: max(168px, var(--picked-room, calc(100dvh - 136px)));
  scroll-margin-top: var(--picked-top, 64px);
}
.exam-tool .assembly-picked .card-title { flex: none; min-height: 58px }
.exam-tool .assembly-picked .card-title > .button { min-height: 32px; font-variant-numeric: tabular-nums }
.exam-tool .assembly-candidates { min-width: 0 }
.exam-tool .assembly-candidate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 42px;
  padding-bottom: 9px;
}
.exam-tool .assembly-candidate-head > div { display: flex; align-items: baseline; gap: 8px }
.exam-tool .assembly-candidate-head h2 { font-size: 14px; color: #403d55 }
.exam-tool #assembly-candidate-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums }
.exam-tool .assembly-candidate-head input { width: min(100%, 196px); min-height: 34px }
.exam-tool .assembly-question-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0 }
.exam-tool .assembly-question {
  min-width: 0;
  padding: 10px 16px 7px;
  border: 1px solid #ebe5f1;
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 3px 16px #60428607;
}
.exam-tool .assembly-question.is-picked { border-color: #dacef5 }
.exam-tool .assembly-question-header { display: flex; align-items: center; gap: 9px; margin-bottom: 6px }
.exam-tool .assembly-question-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #81798d; font-size: 12px }
.exam-tool .assembly-question-meta > span { min-width: 0; padding: 2px 7px; overflow-wrap: anywhere; background: #f7f4fa; border-radius: 5px }
.exam-tool .assembly-question-meta > span:first-child { color: #8267b2; background: #f0eaf9 }
.exam-tool .assembly-empty { padding: 38px 20px; text-align: center; color: var(--muted); border: 1px dashed #ddd2e8; border-radius: 12px }
.exam-tool .assembly-pick {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #625483;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.exam-tool .assembly-pick:has(input:checked), .exam-tool .assembly-pick:hover:not(:has(input:disabled)) { background: var(--accent-soft); border-color: #e7defa }
.exam-tool .assembly-pick:has(input:disabled) { cursor: default }
.exam-tool .assembly-pick:has(input:disabled:not(:checked)) { opacity: .55 }
.exam-tool .assembly-pick input { width: 17px; height: 17px }
.exam-tool .picked-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.exam-tool .picked-meta-actions { display: flex; align-items: center; gap: 5px }
.exam-tool .button.picked-detail-toggle {
  display: grid;
  place-items: center;
  min-height: 27px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  border-radius: 7px;
  box-shadow: none;
}
.exam-tool .button.picked-detail-toggle:is(:hover, :focus-visible, [aria-expanded=true]) {
  color: var(--hub-action);
  background: var(--accent-soft);
  border-color: #e7defa;
}
.exam-tool .assembly-stem {
  color: #393044;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}
.exam-tool .assembly-disclosure { min-width: 0; margin-top: 7px; padding-top: 2px; border-top: 1px solid var(--exam-rule) }
.exam-tool .assembly-disclosure summary { width: fit-content; min-height: 25px; color: #8c799e; font-size: 12px; line-height: 25px; user-select: none }
.exam-tool .assembly-disclosure summary:hover { color: var(--hub-action) }
.exam-tool .assembly-disclosure:not([open]) .hide-detail,
.exam-tool .assembly-disclosure[open] .show-detail { display: none }
.exam-tool .assembly-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 5px 0 8px;
  padding: 0;
}
.exam-tool .assembly-options li { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 3px 0; color: #74687d; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere }
.exam-tool .assembly-options li > span:first-child { flex: none; color: #9a8aa6 }
.exam-tool .assembly-options li > span:nth-child(2) { min-width: 0; white-space: pre-wrap }
.exam-tool .assembly-options li.is-correct, .exam-tool .assembly-options li.is-correct > span:first-child { color: #7955a5 }
.exam-tool .assembly-options li small { flex: none; margin-inline-start: auto; color: #9475b3; font-size: 11px }
.exam-tool .assembly-answer { display: grid; gap: 10px; margin: 5px 0 8px; padding: 13px 15px; color: #73617f; background: #f9f6fc; border-radius: 9px }
.exam-tool .assembly-answer strong { color: #8c799e; font-size: 12px; font-weight: 550 }
.exam-tool .assembly-answer p { font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere }
.exam-tool .assembly-pages { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px }
.exam-tool .assembly-pages:not(:empty) { padding: 10px 0 1px }
.exam-tool .assembly-pages .page-jump { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap }
.exam-tool .assembly-pages .page-jump input {
  width: 36px;
  min-height: 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--exam-field-bg);
}
.exam-tool #basket-content { display: flex; flex-direction: column; min-height: 0 }
.exam-tool .assembly-picked-note { flex: none; padding: 10px 16px 2px }
.exam-tool .basket-list { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0; padding: 0 16px 5px; list-style: none }
.exam-tool .assembly-picked-tools {
  display: flex;
  align-items: center;
  flex: none;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid var(--exam-rule);
}
.exam-tool .assembly-picked-tools .button { margin-inline-start: auto; min-height: 32px }
.exam-tool .picked { position: relative; min-width: 0; padding: 10px 0; font-size: 13px }
.exam-tool .picked:has(.picked-handle) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px }
.exam-tool .button.picked-handle {
  display: grid;
  place-items: center;
  align-self: start;
  width: 27px;
  min-height: 29px;
  padding: 0;
  margin-top: -3px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  cursor: grab;
  user-select: none;
}
.exam-tool .button.picked-handle:is(:hover, :focus-visible) {
  border-color: #e7defa;
  background: var(--accent-soft);
  color: var(--hub-action);
}
.exam-tool .button.picked-handle:active { cursor: grabbing }
.exam-tool .picked-grip {
  width: 10px;
  height: 15px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.5px) 0 0 / 5px 5px;
  pointer-events: none;
}
.exam-tool .picked.is-dragging { opacity: .5 }
.exam-tool .picked:is(.is-insert-before, .is-insert-after)::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--hub-action);
  pointer-events: none;
}
.exam-tool .picked.is-insert-before::before { top: 0 }
.exam-tool .picked.is-insert-after::before { bottom: 0 }
.exam-tool .picked + .picked { border-top: 1px solid var(--exam-rule) }
.exam-tool .picked-stem { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 4px 0 5px }
.exam-tool .picked:has(.picked-detail-toggle[aria-expanded=true]) .picked-stem { display: block; white-space: pre-wrap }
.exam-tool .picked .actions { gap: 5px }
.exam-tool .picked-outside { color: var(--exam-warning) }
.exam-tool .picked-detail { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--exam-rule) }
.exam-tool .picked-detail .assembly-options { grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0 }
.exam-tool .picked-detail .assembly-options li { padding: 2px 0; font-size: 13px }
.exam-tool .picked-detail .assembly-answer { margin: 6px 0 0; gap: 8px; padding: 9px 11px }
.exam-tool .item-score { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 11px }
.exam-tool .item-score input { width: 48px; min-height: 29px; font-size: 12px }
.exam-tool .assembly-footer {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--hub-shadow);
}
.exam-tool .assembly-footer-info { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: var(--muted); font-size: 13px }
.exam-tool .assembly-footer-info b { color: var(--hub-action) }
.exam-tool .assembly-save-draft { min-height: 32px }
.exam-tool .assembly-show-picked { display: none }
.exam-tool .review-types { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 9px 12px }
.exam-tool:has(.type-workbench) .toast { bottom: 72px }
.exam-tool .paper-layout { grid-template-columns: minmax(0, 1fr) minmax(248px, 32%) }
.exam-tool .settings { grid-column: 2; grid-row: 1 }
.exam-tool .preview { grid-column: 1; grid-row: 1 }
.exam-tool .form { display: grid; gap: 12px; margin-bottom: 14px }
.exam-tool .form label { display: grid; gap: 4px; font-size: 13px }
.exam-tool .form .choice { display: flex; align-items: center; gap: 7px }
.exam-tool .form fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 8px 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.exam-tool .advanced { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px }
.exam-tool .advanced .form { max-height: 270px; overflow: auto; margin: 8px 0 3px }
.exam-tool .line-grid { grid-template-columns: minmax(0, 1fr) 62px; align-items: center }
.exam-tool .line-grid .field { padding: 4px 5px }
.exam-tool .totals + .actions { margin-top: 12px }
.exam-tool .downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px }
.exam-tool .downloads .button { min-width: 0; padding-inline: 4px }
.exam-tool .pdf-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 120px;
  padding: 8px;
  background: var(--exam-field-bg);
  border-radius: 10px;
  overflow: hidden;
}
.exam-tool .pdf-stage canvas { display: block; max-width: 100%; height: auto; background: white; box-shadow: 0 1px 5px #38326418 }
.exam-tool .empty { display: grid; place-items: center; min-height: 86px; padding: 16px; text-align: center; color: var(--muted) }
.exam-tool .exam-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 22px;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--hub-shadow);
}
.exam-tool .exam-dialog::backdrop { background: #28213e66 }
.exam-tool .exam-dialog h2 { margin-bottom: 6px; font-size: 17px }
.exam-tool .exam-dialog .actions { justify-content: flex-end; margin-top: 14px }
.exam-tool .move-position { display: flex; align-items: center; gap: 8px; margin-block: 12px 6px }
.exam-tool .move-position input { width: 72px; text-align: center; font-variant-numeric: tabular-nums }
.exam-tool .exam-dialog .sub { overflow-wrap: anywhere }
.exam-tool .manager-toolbar p { margin-block-start: 8px; overflow-wrap: anywhere }
.exam-tool .exam-manager-bank-strip .bank-strip-actions,
.exam-tool .exam-manager-table-actions { flex-wrap: wrap }
.exam-tool .manager-message { padding: 9px 12px; margin-bottom: 12px; border-radius: 8px; color: #5e4a96; background: var(--accent-soft) }
.exam-tool :is(.manager-message.warn, .manager-form-error) { color: var(--exam-warning); background: var(--exam-warning-bg) }
.exam-tool .manager-form-error { padding: 8px; border-radius: 8px }
.exam-tool .button.danger { color: #a34f64 }
.exam-tool .manager-dialog { width: min(580px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto }
.exam-tool .manager-form, .exam-tool .manager-form label, .exam-tool .manager-answer { display: grid; gap: 7px }
.exam-tool .manager-form, .exam-tool .manager-answer { gap: 11px }
.exam-tool .manager-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.exam-tool .manager-form textarea { width: 100%; resize: vertical }
@media (min-width: 1041px) {
  .tool-page:has(> .exam-tool .type-workbench) { padding-block-end: max(8px, env(safe-area-inset-bottom)) }
}
@media (max-width: 1040px) {
  .exam-tool .assembly-layout { grid-template-columns: minmax(0, 1fr) }
  .exam-tool .assembly-picked { position: static; max-height: none }
  .exam-tool .basket-list { max-height: min(560px, 63dvh) }
  .exam-tool .assembly-show-picked { display: inline-flex }
}
@media (max-width: 940px) {
  .exam-tool .layout { grid-template-columns: minmax(0, 1fr) }
  .exam-tool :is(.settings, .preview) { grid-column: auto; grid-row: auto }
}
@media (max-width: 640px) {
  .exam-tool .assembly-question-meta { gap: 4px; font-size: 11px }
  .exam-tool .assembly-question-meta > span { padding-inline: 5px }
  .exam-tool .assembly-options { grid-template-columns: minmax(0, 1fr); gap: 4px }
  .exam-tool .assembly-answer { padding: 11px }
}
@media (max-width: 560px) {
  .exam-tool .exam-toolbar { gap: 8px; margin-bottom: 14px }
  .exam-tool .exam-toolbar .steps { flex: 1 1 100%; gap: 5px }
  .exam-tool .steps > a { flex-direction: column; justify-content: center; gap: 3px; flex: 1; white-space: nowrap }
  .exam-tool .exam-draft-actions .button { padding-inline: 9px }
  .exam-tool .panel { padding: 12px 14px 16px }
  .exam-tool .bank { gap: 8px; padding-inline: 3px }
  .exam-tool .score-table :is(th, td) { padding-inline: 4px }
  .exam-tool .score-table thead th:first-child { width: 35% }
  .exam-tool .score-table thead th:last-child { width: 15% }
  .exam-tool .score-table thead th { white-space: nowrap }
  .exam-tool .assembly-navigation { position: static; flex-direction: column; gap: 6px; padding: 0 }
  .exam-tool .assembly-navigation > .button { align-self: flex-end; min-height: 34px }
  .exam-tool .assembly-type { min-height: 44px; flex-basis: calc(50% - 4px); padding: 6px 9px }
  .exam-tool .assembly-type-metrics { flex-direction: column; align-items: flex-end; gap: 0 }
  .exam-tool .assembly-type-score { border: 0; padding: 0 }
  .exam-tool .assembly-current-head, .exam-tool .assembly-scopes { padding-inline: 12px }
  .exam-tool .assembly-scope legend { float: none; min-height: 0; line-height: 1.4; padding: 0 0 4px }
  .exam-tool .assembly-question { padding-inline: 12px }
  .exam-tool .assembly-pick { padding-inline: 7px }
  .exam-tool .assembly-footer { bottom: 0; padding: 7px 9px; gap: 5px }
  .exam-tool .assembly-footer .actions { gap: 4px }
  .exam-tool .assembly-footer .button { min-height: 36px; padding-inline: 8px; font-size: 12px }
  .exam-tool .assembly-picked { scroll-margin-top: 10px }
}
@media (pointer: coarse) {
  .exam-tool .assembly-pick { min-height: 42px }
  .exam-tool .assembly-disclosure summary { min-height: 38px; line-height: 38px }
  .exam-tool .button.picked-handle { width: 36px; min-height: 36px; cursor: pointer }
  .exam-tool .button.picked-detail-toggle { width: 36px; min-height: 36px }
}
@media (max-width: 360px) {
  .exam-tool .steps > a { font-size: 11px }
  .exam-tool .steps > a > .num { width: 18px; height: 18px }
  .exam-tool .score-table tbody small { font-size: 10px }
  .exam-tool .assembly-footer .button { padding-inline: 6px; font-size: 11px }
}
