/* 考试工作空间：沿用全站品牌色、字号与表面层次。 */
.exam-course { width: 240px; }
.exam-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; margin-bottom: 22px; border-radius: var(--radius); background: linear-gradient(120deg, #142b42, #203654); color: #fff; box-shadow: var(--sh-2); }
.exam-overview h3 { color: #fff; font-size: 23px; margin-top: 12px; }
.exam-overview p { font-size: 13px; color: #c2d5e4; margin: 10px 0 0; line-height: 1.7; }
.exam-overview .exam-tag { color: #a5ebe1; background: #ffffff12; letter-spacing: 1.2px; font-size: 10px; }
.exam-metrics { display: flex; gap: 35px; flex-shrink: 0; }
.exam-metrics > div { display: flex; flex-direction: column; gap: 8px; }
.exam-metrics strong { font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }
.exam-metrics span { font-size: 12px; color: #c2d5e4; }
.exam-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #dde5ef; margin: 0 0 22px; width: fit-content; }
.exam-tab { border: 0; border-radius: 9px; padding: 11px 22px; font-size: 13px; color: #4a5b75; font-weight: 600; background: transparent; }
.exam-tab.active { color: var(--primary-ink); background: #fff; box-shadow: 0 2px 6px #132b4214; }
.exam-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.exam-toolbar p { margin: 7px 0 0; line-height: 1.6; }
.exam-toolbar > .inp { width: 220px; }
.exam-bank { padding: 24px; }
.exam-filter { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.exam-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px 0; }
.exam-selection > .muted { flex: 1; min-width: 190px; }
.exam-question-list { border-top: 1px solid var(--border); }
.exam-question-list.compact { max-height: 380px; overflow: auto; }
.exam-question-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.exam-question-row > input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary-ink); cursor: pointer; }
.exam-question-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.exam-tag { display: inline-block; font-size: 11px; padding: 4px 9px; border-radius: 6px; color: #435aca; background: #edf0ff; font-weight: 600; white-space: nowrap; }
.exam-tag.listening { background: #f1eaff; color: #7442b4; }
.exam-question-text { margin-top: 9px; line-height: 1.75; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.exam-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.exam-source { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface-sunk); padding: 16px; border-radius: 10px; margin-bottom: 16px; }
.exam-source strong { font-size: 14px; }
.exam-source > .btn { margin-left: auto; }
.exam-export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.exam-export-choice { background: var(--surface-sunk); border: 1px solid var(--border); padding: 22px; border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.exam-export-choice:hover { border-color: var(--primary); background: #eefaf7; }
.exam-export-choice strong { font-size: 16px; }
.exam-export-choice .muted { line-height: 1.65; }
.exam-export-ext { font-size: 12px; font-weight: 700; color: var(--primary-ink); text-transform: uppercase; }
.exam-test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.exam-test-card { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.exam-test-card h3 { line-height: 1.5; overflow-wrap: anywhere; }
.exam-test-card p { margin: 0; line-height: 1.6; }
.exam-test-card > .exam-row-actions { margin-top: auto; padding-top: 8px; }
.exam-access-label { font-size: 13px; line-height: 1.7; color: var(--primary-ink); }
.exam-integrity { font-size: 12px; color: var(--primary-ink); background: #edf8f4; border-radius: 8px; padding: 10px 12px; line-height: 1.7; }
.exam-test-card.locked { background: #f7f8fb; }
.exam-field { display: block; margin-bottom: 16px; }
.exam-field .field-label { display: block; margin: 0 0 8px; }
.exam-student-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.exam-student-grid[hidden] { display: none; }
.exam-student-check { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface-sunk); border-radius: 9px; font-size: 13px; }
.exam-student-check input { accent-color: var(--primary-ink); width: 16px; height: 16px; }
.exam-student-check > span { display: flex; flex-direction: column; gap: 4px; }
.exam-stem { font-size: 15px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.exam-option { padding: 11px 14px; margin: 9px 0; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.exam-option.choice { display: flex; gap: 10px; cursor: pointer; }
.exam-option.choice input { align-self: flex-start; margin-top: 5px; accent-color: var(--primary-ink); }
.exam-option.choice:has(input:checked) { background: #effaf7; border-color: var(--primary-ink); }
.exam-answer { color: var(--primary-ink); font-size: 14px; font-weight: 600; }
.exam-raw { margin-top: 16px; padding: 14px; border-radius: 10px; background: var(--surface-sunk); font-size: 12px; }
.exam-raw summary { cursor: pointer; font-weight: 600; }
.exam-raw pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.exam-import-report { border-radius: 10px; background: #eef8f5; padding: 18px; font-size: 13px; line-height: 1.8; color: #155b4e; }
.exam-hash { font-size: 11px; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.exam-practice-question { padding: 20px 0; border-bottom: 1px solid var(--border); }
.exam-practice-question:first-child { padding-top: 0; }
.exam-audio { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; background: #f3f0fc; border-radius: 10px; margin: 14px 0; }
.exam-audio-icon { color: #7442b4; font-size: 24px; }
.exam-result { text-align: center; padding: 24px; color: var(--primary-ink); }
.exam-result strong { font-size: 56px; margin-right: 12px; font-variant-numeric: tabular-nums; }
[data-view="exam"] button:disabled, .modal button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; transform: none; }
.exam-tab:focus-visible, .exam-export-choice:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 3px; }
@media (max-width: 1050px) {
  .exam-overview { align-items: flex-start; flex-direction: column; }
  .exam-metrics { gap: 40px; }
  .exam-question-row { flex-wrap: wrap; }
  .exam-row-actions { margin-left: 30px; }
}
@media (max-width: 650px) {
  .exam-overview { padding: 22px; }
  .exam-overview h3 { font-size: 19px; }
  .exam-tabs { width: 100%; flex-wrap: wrap; }
  .exam-tab { flex: 1; padding: 10px; white-space: nowrap; }
  .exam-filter, .exam-export-grid, .exam-student-grid { grid-template-columns: 1fr; }
  .exam-course { width: 100%; }
  .exam-metrics { width: 100%; justify-content: space-between; gap: 10px; }
  .exam-bank { padding: 18px; }
}
