

:root {
  
  --paper: #f4f4f2;
  --surface: #ffffff;
  --surface-sunk: #f7f7f5;
  --line: #e2e2de;
  --line-soft: #ececeA;

  --ink: #141c26;
  --muted: #6c7280;
  --faint: #949aa5;

  
  --navy: #17304f;
  --navy-hi: #1f4068;
  --link: #2c5c99;

  --pass: #1a7048;
  --attention: #9a6b12;
  --fail: #b03d28;
  --critical: #7f1d1d;
  --na: #6b7280;

  --pass-bg: #edf5f0;
  --attention-bg: #faf3e6;
  --fail-bg: #fbeeeb;
  --critical-bg: #f9eaea;

  --radius: 5px;
  --radius-sm: 4px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }


.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}


.step-q:focus-visible { outline: 2px solid var(--line); outline-offset: 6px; }
.step-q:focus:not(:focus-visible) { outline: none; }


:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}



.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.topbar .brand span {
  font-family: var(--sans);
  color: var(--faint);
  font-weight: 500;
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 13px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 34px 26px 110px; }
.hidden { display: none !important; }

h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  line-height: 1.18;
  text-wrap: balance;
}
h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 34px 0 12px;
}
.sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; max-width: 60ch; }


.card > .sub:first-child {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 14px;
}




.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:hover:not(:disabled) { background: var(--surface-sunk); border-color: #d3d3ce; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 550;
}
.btn.primary:hover:not(:disabled) { background: var(--navy-hi); border-color: var(--navy-hi); }

.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-sunk); color: var(--ink); }
.btn.wide { width: 100%; padding: 12px 16px; }


.btn.linky {
  border-color: transparent;
  background: transparent;
  color: var(--link);
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 550;
}
.btn.linky:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.field-note {
  margin: -8px 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 11px;
  border-left: 2px solid var(--line);
}

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

label.field { display: block; margin-bottom: 16px; }
label.field span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.14s ease;
}
input:hover, select:hover, textarea:hover { border-color: #d3d3ce; }
textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 48, 79, 0.09);
}


.error, .notice, .warn {
  border: 1px solid;
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 10px;
  font-size: 14px;
}
.error { background: var(--fail-bg); border-color: #eec7bf; border-left-color: var(--fail); color: #7d2a1a; }
.notice { background: #eef2f8; border-color: #cfdcec; border-left-color: var(--navy); color: #1d3550; }


.warn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--attention-bg);
  border-color: #ead9b4;
  border-left-color: var(--attention);
  color: #6b4a09;
}
.warn .grow { flex: 1; min-width: 0; }
.warn.loud {
  background: #fbeee4;
  border-color: #e8c4a4;
  border-left-color: var(--fail);
  color: #7a3d16;
  font-weight: 550;
}



.scorehead { display: flex; align-items: baseline; gap: 20px; }
.bigscore {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.bigscore small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
  white-space: nowrap;
}
.badge.pass { color: var(--pass); border-color: #bcdcca; background: var(--pass-bg); }
.badge.needs_attention { color: var(--attention); border-color: #e6d3a8; background: var(--attention-bg); }
.badge.fail { color: var(--fail); border-color: #eec3b8; background: var(--fail-bg); }
.badge.critical { color: var(--critical); border-color: #e2b4b4; background: var(--critical-bg); }
.badge.na { color: var(--na); border-color: var(--line); background: var(--surface-sunk); }
.badge.none { color: var(--faint); border-color: var(--line); background: transparent; }


.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile { background: var(--surface); padding: 16px 18px; }
.tile .t {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint);
  min-height: 30px;
}
.tile .v {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}



.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--surface-sunk); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 550; letter-spacing: -0.003em; }
.item .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .chev { color: var(--faint); transition: transform 0.12s ease, color 0.12s ease; }
.item:hover .chev { color: var(--muted); transform: translateX(2px); }



.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.chip:hover { border-color: #d3d3ce; background: var(--surface-sunk); }
.chip[aria-pressed="true"] { font-weight: 600; color: #fff; }
.chip[aria-pressed="true"].pass { background: var(--pass); border-color: var(--pass); }
.chip[aria-pressed="true"].needs_attention { background: var(--attention); border-color: var(--attention); }
.chip[aria-pressed="true"].fail { background: var(--fail); border-color: var(--fail); }
.chip[aria-pressed="true"].critical { background: var(--critical); border-color: var(--critical); }
.chip[aria-pressed="true"].na { background: var(--na); border-color: var(--na); }

.q { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.q:last-child { border-bottom: 0; }
.q .qt { margin-bottom: 10px; max-width: 62ch; }
.ynn { display: flex; gap: 6px; }
.ynn button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 14px;
  min-width: 58px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.ynn button:hover { border-color: #d3d3ce; background: var(--surface-sunk); }
.ynn button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 550;
}



.thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.thumb {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .state {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 3px;
  background: rgba(20, 28, 38, 0.74);
  color: #fff;
}
.thumb .state.ok { background: rgba(26, 112, 72, 0.86); }
.thumb .state.err { background: rgba(176, 61, 40, 0.9); }


.thumb .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 20px;
  background: repeating-linear-gradient(45deg, #f0f0ed, #f0f0ed 8px, #e8e8e4 8px, #e8e8e4 16px);
}
.thumb .ph.err { color: var(--fail); background: var(--fail-bg); }
.thumb .retry {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 28, 38, 0.2);
}
.thumb .retry:disabled { display: none; }

.upcount { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }




#view-signin { max-width: 24rem; margin: 7vh auto 0; }
#view-signin h1 { font-size: 27px; }


#view-step { max-width: 34rem; margin: 0 auto; }


.stepbar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 22px;
}
.stepbar-fill {
  height: 100%;
  background: var(--navy);
  width: 0;
  transition: width 0.28s ease;
}

.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.step-head .grow { flex: 1; }
.step-count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.step-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--link);
  margin: 0 0 12px;
}
.step-q {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.24;
  font-weight: 600;
  margin: 0 0 10px;
  max-width: 20ch;
  text-wrap: balance;
}
.step-hint { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; max-width: 46ch; }


.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.choice {
  appearance: none;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 17px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.choice:hover:not(:disabled) { border-color: var(--navy); background: var(--surface-sunk); }
.choice[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(23, 48, 79, 0.12);
}
.choice.score.pass[aria-pressed="true"] { background: var(--pass); border-color: var(--pass); box-shadow: 0 0 0 3px rgba(26,112,72,.13); }
.choice.score.needs_attention[aria-pressed="true"] { background: var(--attention); border-color: var(--attention); box-shadow: 0 0 0 3px rgba(154,107,18,.13); }
.choice.score.fail[aria-pressed="true"] { background: var(--fail); border-color: var(--fail); box-shadow: 0 0 0 3px rgba(176,61,40,.13); }
.choice.score.critical[aria-pressed="true"] { background: var(--critical); border-color: var(--critical); box-shadow: 0 0 0 3px rgba(127,29,29,.13); }
.choice.score.na[aria-pressed="true"] { background: var(--na); border-color: var(--na); box-shadow: 0 0 0 3px rgba(107,114,128,.13); }


.choice.barred, .chip.barred {
  opacity: 1;
  color: var(--faint);
  background: repeating-linear-gradient(
    -45deg, var(--surface-sunk), var(--surface-sunk) 6px, var(--surface) 6px, var(--surface) 12px);
  border-color: var(--line);
  border-style: dashed;
  cursor: not-allowed;
}
.choice.barred:hover, .chip.barred:hover { background: inherit; border-color: var(--line); }

.step-text {
  min-height: 150px;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 8px;
}

.step-actions { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

.step-actions .row { flex-wrap: nowrap; }
.step-actions .row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.step-actions .row select { flex: 0 0 8.5rem; width: 8.5rem; }
.step-actions .row .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .step-actions .row { flex-wrap: wrap; }
  .step-actions .row input[type="text"] { flex: 1 0 100%; }
}
.step-actions-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--attention);
  margin-bottom: 10px;
}

.step-nav { display: flex; align-items: center; margin-top: 44px; }
.step-nav .grow { flex: 1; }

@media (max-width: 640px) {
  .step-q { font-size: 25px; max-width: none; }
  .choices { max-width: none; }
  .choice { padding: 16px 18px; }
}



.footbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.footbar .inner { max-width: 880px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 12px; }
.saving { font-size: 13px; color: var(--muted); }

.linkbox {
  display: block;
  word-break: break-all;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 24px 18px 110px; }
  h1 { font-size: 25px; }
  .bigscore { font-size: 42px; }
  .topbar { padding: 12px 18px; }
}


.assignee {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.assignee.none {
  color: var(--fail);
  font-weight: 600;
}


/* Public-demo presentation and printable local reports. */
.public-demo-note{background:#e0edf6;color:#214968;padding:10px 18px;font-size:11px;line-height:1.5;border-bottom:1px solid #c8d9e7}.topbar{flex-wrap:wrap}.who{font-size:11px}.report-dialog{width:min(760px,95vw);max-height:90vh;overflow:auto;padding:28px;border:1px solid #b3c6d7;border-radius:12px;color:#17304f}.report-dialog::backdrop{background:#10283db3}.report-dialog h2{border-top:1px solid #dae4eb;padding-top:18px}.report-controls{position:sticky;top:0;background:white;padding-bottom:12px}.btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #3784c1;outline-offset:3px}@media print{body>*:not(.report-dialog){display:none!important}.report-dialog{position:static;display:block!important;max-height:none;overflow:visible;width:100%;border:0;padding:0}.report-controls{display:none!important}}

.asset-finding-box{border:1px solid #bcd1e0;background:#eef5fa;border-radius:8px;padding:14px;margin:20px 0}.asset-finding-box summary{cursor:pointer;font-size:13px;font-weight:650;color:#235a81}.asset-finding-box label{display:block;font-size:12px;margin:14px 0}.asset-finding-box select,.asset-finding-box textarea{display:block;width:100%;margin-top:6px}.asset-finding-box p{font-size:12px;margin:12px 0 0}
