:root {
  --ink: #15201e;
  --muted: #5b6864;
  --paper: #eef2ef;
  --white: #ffffff;
  --line: #cbd4ce;
  --green: #176b4d;
  --green-soft: #e2f0e8;
  --blue: #1f5f8b;
  --blue-soft: #e5eef5;
  --amber: #8b560d;
  --amber-soft: #f5ead8;
  --red: #92352d;
  --red-soft: #f6e5e2;
  --charcoal: #202928;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
.topbar {
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  color: white;
  background: var(--charcoal);
  border-bottom: 1px solid #41504d;
}
.brand { font-size: 18px; font-weight: 900; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.topbar nav a { text-decoration: none; }
.intro {
  padding: 52px 28px 42px;
  color: white;
  background: #21483d;
  border-bottom: 1px solid #17372f;
}
.intro-inner { width: min(1180px, 100%); margin: 0 auto; }
.eyebrow { margin-bottom: 14px; color: #b9e5d2; font-size: 13px; font-weight: 900; }
h1 { max-width: 920px; margin: 0 0 16px; font-size: 48px; line-height: 1.08; }
.intro p { max-width: 820px; margin: 0; color: #e0ece6; font-size: 18px; line-height: 1.6; }
.privacy-note {
  margin-top: 22px;
  padding: 13px 15px;
  display: inline-block;
  color: #d8e8e0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}
.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.project-context {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
label.field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #aebbb3;
  border-radius: 5px;
  font: inherit;
}
input[type="text"]:focus-visible,
button:focus-visible,
.choice input:focus-visible + span,
a:focus-visible { outline: 3px solid #7bb4d8; outline-offset: 2px; }
.audit-section {
  margin-top: 18px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.audit-section legend {
  width: 100%;
  padding: 18px 20px;
  color: var(--ink);
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 900;
}
.question {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 360px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #e0e6e2;
}
.question:last-child { border-bottom: 0; }
.question-copy strong { display: block; margin-bottom: 5px; font-size: 15px; line-height: 1.4; }
.question-copy span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.critical-tag {
  margin-top: 7px;
  width: fit-content;
  padding: 3px 6px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}
.choices {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #aebbb3;
  border-radius: 6px;
  overflow: hidden;
}
.choice { min-width: 0; position: relative; }
.choice input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.choice span {
  min-height: 42px;
  padding: 7px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #40504b;
  background: white;
  border-right: 1px solid #aebbb3;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.choice:last-child span { border-right: 0; }
.choice input[value="pass"]:checked + span { color: #0f563c; background: var(--green-soft); }
.choice input[value="attention"]:checked + span { color: #654004; background: var(--amber-soft); }
.choice input[value="fail"]:checked + span { color: #76251f; background: var(--red-soft); }
.choice input[value="missing"]:checked + span { color: #194d70; background: var(--blue-soft); }
.summary-panel {
  padding: 22px;
  position: sticky;
  top: 86px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.summary-panel h2 { margin: 0 0 9px; font-size: 22px; }
.summary-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.progress-track { height: 8px; margin-bottom: 18px; background: #e2e7e4; border-radius: 4px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--green); transition: width .15s ease; }
.verdict { padding: 15px; margin-bottom: 16px; border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: 5px; }
.verdict strong { display: block; margin-bottom: 5px; font-size: 15px; }
.verdict span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.verdict.ready { border-left-color: var(--green); background: var(--green-soft); }
.verdict.conditional { border-left-color: var(--amber); background: var(--amber-soft); }
.verdict.blocked { border-left-color: var(--red); background: var(--red-soft); }
.verdict.incomplete { border-left-color: var(--blue); background: var(--blue-soft); }
.counts { margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.count { min-height: 66px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.count strong { display: block; font-size: 22px; }
.count span { color: var(--muted); font-size: 11px; }
.actions { display: grid; gap: 9px; }
.action-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.action-button.secondary { color: var(--ink); background: white; }
.action-button.contact { background: var(--blue); border-color: var(--blue); }
.interpretation { margin-top: 17px; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
footer { padding: 28px; color: #bdc8c3; background: var(--charcoal); font-size: 12px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .summary-panel { position: static; order: -1; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; }
  .topbar nav a:not(:last-child) { display: none; }
  .intro { padding: 38px 16px 32px; }
  h1 { font-size: 34px; overflow-wrap: anywhere; }
  .intro p { font-size: 16px; }
  .workspace { width: calc(100% - 24px); margin-top: 16px; }
  .project-context { grid-template-columns: 1fr; }
  .question { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .audit-section legend { padding: 16px; font-size: 18px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choice:nth-child(2) span { border-right: 0; }
  .choice:nth-child(-n+2) span { border-bottom: 1px solid #aebbb3; }
  .summary-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }
