:root {
  --ink: #152238;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --bg: #f4f7fb;
  --gold: #b08d3c;
  --gold-soft: #f5eddb;
  --green: #0f7a43;
  --green-bg: #e9f8ef;
  --red: #b42318;
  --red-bg: #fff1f0;
  --amber: #a15c07;
  --amber-bg: #fff4e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.page-shell {
  max-width: 1120px;
  margin: 32px auto;
  padding: 0 18px 40px;
}

.hero {
  background: linear-gradient(135deg, #111827, #26344d);
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(21, 34, 56, .18);
}

.brand-kicker {
  color: var(--gold);
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: #d7dde8;
  max-width: 660px;
}

.score-card {
  min-width: 180px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.score-card span,
.score-card em {
  display: block;
  color: #d7dde8;
  font-style: normal;
}

.score-card strong {
  display: block;
  font-size: 36px;
  margin: 8px 0;
  color: #fff;
}

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(21, 34, 56, .06);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.section-title span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-title h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.section-status {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  background: #eef2f7;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.section-status.pass,
.summary-panel strong.pass {
  background: var(--green-bg);
  color: var(--green);
}

.section-status.fail,
.summary-panel strong.fail {
  background: var(--red-bg);
  color: var(--red);
}

.section-status.incomplete,
.summary-panel strong.incomplete {
  background: #eef2f7;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
  display: block;
}

label {
  font-size: 14px;
  font-weight: 700;
  color: #26344d;
}

input[type="text"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

textarea.large {
  min-height: 140px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

legend {
  padding: 0 8px;
  color: #26344d;
  font-weight: 800;
  font-size: 14px;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.question-row {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #e6eaf0;
}

.question-row:last-child {
  border-bottom: 0;
}

.question-row span {
  font-weight: 700;
}

.red-flag {
  border-color: #f0b8b2;
  background: #fffafa;
}

.kill-switch {
  border-color: #e29b91;
  background: var(--red-bg);
}

.control {
  border-color: #d7c28a;
}

.summary-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary-panel div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfcfe;
}

.summary-panel span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.summary-panel strong {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.decision-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.decision-box div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--gold-soft);
}

.decision-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  font-weight: 700;
}

.decision-box strong {
  font-size: 22px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

button {
  border: 0;
  background: #16243a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(21, 34, 56, .16);
}

button.secondary {
  background: #fff;
  color: #16243a;
  border: 1px solid var(--line);
}

.hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 820px) {
  .hero,
  .section-title,
  .decision-box {
    display: block;
  }

  .score-card {
    margin-top: 18px;
  }

  .grid.two,
  .summary-panel {
    grid-template-columns: 1fr;
  }

  .question-row {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media print {
  body { background: #fff; }
  .page-shell { max-width: none; margin: 0; padding: 0; }
  .section { box-shadow: none; break-inside: avoid; }
  .actions { display: none; }
}


.upload-panel {
  border: 1px solid #d7c28a;
  background: #fffaf0;
  border-radius: 14px;
  padding: 16px;
  margin: -4px 0 18px;
}

.upload-panel input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

.help-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
