/* Baseline styles for browsers that do not support CSS variables, Grid or modern sizing functions. */
html, body { margin: 0; padding: 0; min-height: 100%; background: #f5f7fb; color: #172033; font-family: Arial, "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #1857e4; }
.topbar { min-height: 64px; padding: 10px 4%; border-bottom: 1px solid #dfe6f0; background: #fff; }
.brand, .topbar-actions { display: inline-block; vertical-align: middle; }
.brand-mark { display: inline-block; padding: 10px; border-radius: 8px; background: #d92820; color: #fff; }
.brand-name { margin-left: 8px; color: #172033; font-weight: bold; }
.topbar-actions { float: right; padding-top: 10px; }
.topbar-actions > * { margin-left: 12px; }
.page-shell { width: 94%; max-width: 1180px; margin: 0 auto; padding: 32px 0 60px; }
.message-stack { width: 94%; max-width: 1180px; margin: 14px auto; }
.message { margin-bottom: 8px; padding: 12px 15px; border: 1px solid #dfe6f0; background: #fff; }
.button { display: inline-block; min-height: 42px; padding: 10px 16px; border: 1px solid #b8c4d5; border-radius: 7px; background: #fff; color: #172033; font-size: 15px; cursor: pointer; }
.button.primary { border-color: #1857e4; background: #1857e4; color: #fff; }
.button.danger { border-color: #cf3f46; color: #a92d33; }
.attempt-header { overflow: hidden; margin-bottom: 18px; }
.attempt-header > div { display: inline-block; vertical-align: top; }
.attempt-header .timer-box { float: right; }
.timer-box { min-width: 130px; padding: 10px 14px; border: 1px solid #a8bcef; background: #fff; text-align: right; }
.timer-box span, .timer-box strong { display: block; }
.attempt-layout { display: block; }
.question-stage, .answer-panel, .legacy-question { margin-bottom: 16px; padding: 24px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; }
.answer-panel { margin-top: 16px; }
.question-status { overflow: hidden; margin-bottom: 14px; color: #697386; }
.question-status span:last-child { float: right; }
.question-image { display: block; max-width: 100%; height: auto; margin: 18px auto; }
.question-image-error { margin: 14px 0; padding: 12px; border: 1px solid #e3a7aa; background: #fff3f3; color: #9c2930; }
.option-list { margin: 18px 0; }
.option { display: block; margin-bottom: 10px; padding: 13px; border: 1px solid #c7d1df; border-radius: 7px; background: #fff; }
.option input { margin-right: 10px; }
.option-letter { display: inline-block; min-width: 25px; margin-right: 4px; color: #1857e4; font-weight: bold; }
.short-answer-field, .short-answer-field span { display: block; }
.short-answer-field textarea { display: block; width: 100%; min-height: 150px; margin-top: 8px; padding: 12px; border: 1px solid #b8c4d5; border-radius: 7px; font: inherit; }
.legacy-compatibility-note, .legacy-unsupported, .legacy-noscript-warning { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #c8d8f7; border-radius: 8px; background: #f3f7ff; line-height: 1.65; }
.legacy-compatibility-note p { margin: 5px 0; }
.legacy-unsupported, .legacy-noscript-warning { border-color: #e3a7aa; background: #fff3f3; color: #9c2930; }
.legacy-question-list { margin-top: 14px; }
.legacy-question h2 { font-size: 20px; line-height: 1.55; }
.legacy-voice-note { color: #697386; font-size: 13px; }
.legacy-submit-bar { overflow: hidden; padding: 16px; border: 1px solid #dfe6f0; background: #fff; }
.legacy-submit-bar span { display: inline-block; padding: 10px 0; color: #31724a; }
.legacy-submit-bar .button { float: right; }
.legacy-save-state.error { color: #9c2930; }
.screen-violation { position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0; left: 0; padding: 8%; background: #172033; background: rgba(10, 18, 32, .86); }
.screen-violation-card { max-width: 520px; margin: 8% auto 0; padding: 28px; border-radius: 10px; background: #fff; text-align: center; }
.network-banner { margin-bottom: 12px; padding: 10px; background: #fff0ca; color: #7a5200; text-align: center; }

@media (max-width: 640px) {
  .topbar { padding: 8px 12px; }
  .brand-name { font-size: 13px; }
  .topbar-actions { float: none; display: block; padding-top: 8px; }
  .topbar-actions > * { margin: 0 8px 0 0; }
  .page-shell { width: 94%; padding-top: 20px; }
  .attempt-header > div { display: block; }
  .attempt-header .timer-box { float: none; margin-top: 10px; text-align: left; }
  .question-stage, .answer-panel, .legacy-question { padding: 16px; }
  .legacy-question h2 { font-size: 18px; }
  .legacy-submit-bar span, .legacy-submit-bar .button { float: none; display: block; width: 100%; }
  .legacy-submit-bar .button { margin-top: 8px; }
}
