* { box-sizing: border-box; }
:root { font-family: system-ui, "Microsoft YaHei", sans-serif; color: #233530; background: #f6f8f7; line-height: 1.6; }
body { margin: 0; }
header { background: #fff; border-bottom: 1px solid #d9e3df; }
.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
header .bar { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
main { min-height: 55vh; padding: 24px 0 48px; }
footer { border-top: 1px solid #d9e3df; padding: 18px 0; font-size: 14px; }
h1 { font-size: 30px; margin: 12px 0; line-height: 1.25; }
h2 { font-size: 19px; margin: 12px 0; line-height: 1.45; }
a { color: #165b46; }
button, select, .secondary { display: inline-block; font: inherit; padding: 8px 14px; border: 1px solid #195c46; border-radius: 6px; }
button, select { cursor: pointer; }
button { color: white; background: #195c46; }
button.secondary, a.secondary, select { color: #185340; background: #fff; }
a.secondary { text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #a14200; outline-offset: 3px; }
progress { width: 100%; accent-color: #195c46; }
.meta { color: #4c6158; }
.error { color: #8a290f; }
.actions { justify-content: flex-start; margin-block: 16px; }
.exam-layout { display: grid; gap: 24px; align-items: start; }
.exam-layout:has(.material:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.material { border-left: 3px solid #266954; background: #edf3f0; padding: 8px 16px 16px; }
.material p { white-space: pre-wrap; }
audio { max-width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.option { display: flex; gap: 10px; align-items: start; background: #fff; border: 1px solid #cbd9d3; border-radius: 6px; padding: 10px; margin-block: 8px; overflow-wrap: anywhere; }
.option:has(:checked) { border-color: #195c46; background: #e5f3eb; }
.option input { margin: 6px 0 0; accent-color: #195c46; }
.outcome { font-size: 20px; color: #165b46; font-weight: 750; }
dl { margin-block: 8px 20px; }
dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid #d9e3df; padding: 8px 0; }
dd { margin: 0; }
details { margin: 14px 0; }
summary { cursor: pointer; color: #165b46; font-weight: 650; }
.review-item, .practice-group { border-top: 1px solid #d9e3df; margin: 12px 0; padding: 8px 0; }
.review-item p { margin: 6px 0; }
[hidden] { display: none !important; }
@media (max-width: 660px) {
  .exam-layout:has(.material:not([hidden])) { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
}
@media print {
  header, footer, .report-actions, #report details { display: none !important; }
  body { background: white; }
  main.wrap { width: 100%; padding: 0; }
}
