:root {
  color: #0b1f2b;
  background: #f6f8fb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f6f8fb;
}

.shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 48px 64px;
  background: #fff;
}

.shell--admin { max-width: 820px; }

.brand { text-align: center; }

.logo {
  width: 190px;
  max-width: 42vw;
  height: auto;
}

.progress {
  display: flex;
  gap: 10px;
  margin: 32px 0;
}

.progress__step {
  flex: 1;
  padding: 8px 10px;
  border-bottom: 4px solid #d8e0ec;
  color: #637083;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

.progress__step--active {
  border-color: #452929;
  color: #452929;
}

h1 {
  margin: 28px 0 32px;
  color: #0b1f2b;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.12;
}

h2 { color: #0b1f2b; }

.intro p { color: #54637d; }
.intro h1 { text-align: center; }

.question {
  margin: 62px 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
}

.question legend {
  margin-bottom: 18px;
  font-size: 1.08rem;
  font-weight: 700;
}

.required { color: #d92828; }

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 12px 0;
  cursor: pointer;
}

.option input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #452929;
}

.question__error {
  display: none;
  margin: 14px 0 0;
  color: #b31d1d;
  font-size: .88rem;
  font-weight: 700;
}

.question--missing {
  margin-right: -14px;
  margin-left: -14px;
  padding: 14px;
  border-color: #d73737;
  background: #fff5f5;
}

.question--missing .question__error { display: block; }

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
}

.button {
  min-width: 150px;
  padding: 14px 24px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: .7;
}

.button--primary {
  background: #452929;
  color: #fff;
}

.button--secondary {
  background: #e7edf8;
  color: #173257;
}

.error {
  color: #b31d1d;
  font-weight: 700;
}

.results { max-width: 720px; margin: 0 auto; }
.results > h1,
.results > .notice { text-align: center; }

.lookup-card,
.score-card,
.important,
.admin-panel {
  margin: 20px 0;
  padding: 18px 22px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.lookup-card {
  border-color: #9db7ff;
  background: #f1f5ff;
  text-align: center;
}

.lookup-card p { margin: 0 0 3px; font-weight: 700; }
.lookup-card strong { color: #1746bb; font-size: 2rem; letter-spacing: .16em; }
.notice { color: #536178; }
.score-card h2 { margin: 0 0 8px; font-size: 1.16rem; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; padding: 5px 0; }
dd { font-weight: 700; }

.result-links {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.result-links a { text-align: center; }

a { color: #1746bb; }

.important {
  border-color: #f1c765;
  background: #fffaf0;
}

.eyebrow {
  margin: 0;
  color: #566881;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lookup-form {
  display: grid;
  gap: 14px;
}

.admin-export { margin-top: 16px; }

.copy-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.copy-results__status {
  color: #28573a;
  font-size: .88rem;
  font-weight: 700;
}

.lookup-form label {
  display: grid;
  gap: 4px;
}

input[type="text"],
input[type="password"] {
  padding: 11px;
  border: 1px solid #b9c5d5;
  border-radius: 4px;
  font: inherit;
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #d8e0ec;
  text-align: left;
}

pre {
  overflow-x: auto;
  padding: 14px;
  background: #f4f6fa;
  font-size: .72rem;
}

.response-section li {
  margin: 14px 0;
  padding-left: 6px;
}

.response-section li strong {
  display: block;
  color: #1746bb;
  font-size: .88rem;
}

@media (max-width: 640px) {
  :root { font-size: 16px; }
  .shell { padding: 24px 20px 44px; }
  .progress { gap: 3px; }
  .progress__step { padding: 7px 2px; font-size: .7rem; }
  .question { margin: 46px 0; }
  .button { min-width: 128px; }
}
