:root {
  --blue: #3159d5;
  --blue-2: #5798f4;
  --red: #c83f35;
  --ink: #151a26;
  --muted: #596579;
  --line: #dce2ec;
  --bg: #f3f6fb;
  --focus: #173fba;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
.bar { height: 34px; background: var(--blue); color: #e8eeff; }
.bar div, .head > div { max-width: 1120px; height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.head { height: 72px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-size: 22px; font-weight: 800; }
.brand i { font-style: normal; font-weight: 400; }
.brand b { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: 9px; border-radius: 6px; background: var(--red); color: #fff; }
.head a { color: var(--blue); text-decoration: none; }
.head nav { display: flex; align-items: center; gap: 8px; }
.head nav form { display: inline-flex; margin: 0; }
.logout-button { min-width: 44px; min-height: 44px; padding: 8px 10px; background: none; color: var(--blue); }
.wrap { max-width: 1120px; margin: 34px auto; padding: 0 24px; }
.card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 22px #17233b0b; }
h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.15; }
h2 { margin: 0 0 14px; font-size: 22px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.btn, button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 7px; padding: 11px 17px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font: 700 14px "Segoe UI", Arial, sans-serif; text-decoration: none; cursor: pointer; }
.btn.red, button.red { background: var(--red); }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: #6f7b8e; opacity: .82; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #c5cfdd; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
label { display: block; margin: 13px 0 6px; font-weight: 600; }
.flash { margin-bottom: 16px; padding: 12px 15px; border-left: 4px solid var(--red); background: #fff0ed; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.question { padding: 20px 0; border-bottom: 1px solid var(--line); }
.option { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.option input { width: auto; margin-top: 5px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eaf0ff; color: #294fbf; font-size: 12px; font-weight: 700; }
.pass { background: #e6f7ed; color: #167447; }
.fail { background: #fff0ed; color: #9f3028; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0, 0, 0, 0)!important; white-space: nowrap!important; border: 0!important; }
.submit-state { margin-left: 10px; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .bar { display: none; }
  .head { height: 62px; }
  .wrap { margin-top: 22px; padding: 0 14px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  table { display: block; overflow: auto; }
}
