:root {
  --ink: #18202b; --tarmac: #232d3a; --muted: #5a6575; --line: #dfe4e9; --cloud: #f3f5f7; --white: #fff;
  --teal: #00766f; --teal-2: #005c56; --teal-pale: #e0f2f0; --apex: #f2a51a;
  --bad: #b8322a; --bad-pale: #fbe4e2; --warn: #8a5a00; --warn-pale: #fdf1d6;
  --brand: #00968f; --brand-light: #2ec4b6;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600 700; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--cloud); display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1; width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--apex); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--tarmac); color: #fff; padding: 0 24px; height: 64px; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 70%, var(--apex) 70%, var(--apex) 100%); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { height: 28px; width: auto; display: block; }
.product { font-family: var(--display); font-weight: 600; font-size: 19px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.product em { font-style: normal; font-weight: 500; color: var(--brand-light); }
.who { display: flex; align-items: center; gap: 18px; color: #d6dde6; margin: 0; font-size: 15px; }
.who > a { color: #d6dde6; text-decoration: none; font-weight: 500; }
.who > a:hover { color: #fff; }
.me { display: inline-flex; align-items: center; gap: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; font: 700 14px/1 var(--display); }
.btn-top { font: 600 15px var(--display); color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.btn-top:hover { border-color: #fff; }
@media (max-width: 760px) {
  .top { padding: 0 14px; height: 58px; }
  .product, .who > a:not(.me), .who .me { display: none; }
  .brand img { height: 24px; }
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 20px 60px; }

.btn { display: inline-block; font: 600 16px/1.2 var(--display); letter-spacing: .01em; padding: 10px 18px; border-radius: 4px; border: 1px solid #c3cad4;
  background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; }

input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: 8px 10px; border: 1px solid #c3cad4; border-radius: 5px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,150,143,.2); }
label { display: block; font-weight: 600; font-size: 14px; }
label input, label select, label textarea { margin-top: 4px; font-weight: 400; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.alert.err { background: var(--bad-pale); color: var(--bad); padding: 10px 14px; border-radius: 6px; }

.login { max-width: 380px; margin: 8vh auto; }
.login form label { margin-bottom: 14px; }
.login .btn { width: 100%; }

.dash-head { display: flex; justify-content: space-between; align-items: baseline; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.new-form h2 { font-size: 17px; }
.list { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list th, .list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: 13px; color: var(--muted); font-weight: 600; background: #fafbfc; }
.list .bar { width: 120px; display: inline-block; margin-right: 8px; vertical-align: middle; }
.empty { color: var(--muted); padding: 30px 0; }

.bar { height: 8px; background: var(--cloud); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #00968f; border-radius: 99px; transition: width .2s; }
.pill { display: inline-block; min-width: 26px; text-align: center; font-weight: 700; font-size: 13px; border-radius: 99px; padding: 1px 8px; }
.pill.good { background: var(--teal-pale); color: var(--teal); }
.pill.bad { background: var(--bad); color: #fff; }
.pill.warn { background: var(--warn-pale); color: var(--warn); }

/* Editor */
.editor { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } .side { position: static !important; max-height: none !important; } }
.side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.side h1 { font-size: 22px; margin-bottom: 2px; }
.back { margin: 0 0 12px; font-size: 14px; }
.ready { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 14px 0; }
.ready-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
.ready .bar { margin: 4px 0 10px; }
.save-state { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.save-state.busy { color: var(--warn); }
.save-state.ok { color: var(--teal); }
.save-state.err { color: var(--bad); font-weight: 600; }
.sections a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.sections a:hover { background: #e9edf1; }
.sections a.active { background: var(--teal-pale); color: var(--teal-2); font-weight: 600; }
.sections .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-actions { display: grid; gap: 8px; margin-top: 14px; }
.side-actions .btn { text-align: center; }

.issues-panel h2 { font-size: 16px; }
.issues-panel h2.bad { color: var(--bad); }
.issues-panel h2.warn { color: var(--warn); }
.issues { list-style: none; margin: 0 0 14px; padding: 0; }
.issues li { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 14px; }
.issues.bad li { background: var(--bad-pale); border-left: 4px solid var(--bad); }
.issues.warn li { background: var(--warn-pale); border-left: 4px solid var(--apex); }
.issues a { color: inherit; margin-right: 4px; }
.all-good { margin: 0; color: var(--teal-2); }
.details summary { cursor: pointer; font-weight: 600; }
.details form { margin-top: 14px; }
.details-actions { display: flex; gap: 10px; align-items: end; }

.section { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px 8px; margin-bottom: 20px; }
.section > h2 { font-size: 20px; }
.ref { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.intro { color: var(--muted); margin: 0 0 10px; max-width: 75ch; }
.q { border-top: 1px solid var(--line); padding: 16px 0; scroll-margin-top: 80px; }
.q[hidden] { display: none; }
.q.critical { border-left: 4px solid var(--bad); padding-left: 14px; margin-left: -18px; }
.q.flagged .q-head .qid { background: var(--apex); color: var(--ink); }
.q:target { background: #fffbea; }
.q-head { display: flex; gap: 12px; align-items: flex-start; }
.qid { flex: none; font-weight: 700; font-size: 13px; background: var(--tarmac); color: #fff; border-radius: 4px; padding: 1px 7px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.q-text { margin: 0; font-weight: 600; max-width: 80ch; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: var(--cloud); color: var(--muted); vertical-align: middle; }
.tag.bad { background: var(--bad-pale); color: var(--bad); }
.help { margin: 6px 0 0 52px; color: var(--muted); font-size: 14px; max-width: 80ch; }
.q-input { margin: 10px 0 0 52px; max-width: 820px; }
@media (max-width: 600px) { .help, .q-input, .q-notes { margin-left: 0 !important; } }
.q-input input.short { max-width: 160px; }
.seg { display: inline-flex; border: 1px solid #c3cad4; border-radius: 6px; overflow: hidden; }
.seg label { position: relative; font-weight: 600; margin: 0; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.seg span { display: block; padding: 7px 18px; cursor: pointer; }
.seg label + label span { border-left: 1px solid #c3cad4; }
.seg input:focus-visible + span { outline: 3px solid var(--apex); outline-offset: -3px; }
.seg input[value=yes]:checked + span { background: var(--teal); color: #fff; }
.seg input[value=no]:checked + span { background: #4f5d6b; color: #fff; }
.sub { margin-top: 10px; font-weight: 500; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
.checks input { width: auto; }
.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 6px 4px 0; }
.grid td { padding: 0 6px 6px 0; }
.grid .x { width: 30px; text-align: center; }
.rm { text-decoration: none; font-size: 20px; line-height: 1; color: var(--muted); }
.add-row { font-size: 14px; }
.q-notes { margin: 10px 0 0 52px; max-width: 820px; }
.q-notes summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.q-notes textarea { margin-top: 6px; }
.flag { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.flag input { width: auto; }
.source { margin-top: 10px; }

/* Report */
.report { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px 32px; }
.summary { display: flex; gap: 14px; margin: 18px 0; }
.summary div { flex: 1; border-radius: 8px; padding: 12px 16px; background: var(--cloud); }
.summary strong { display: block; font-size: 26px; }
.summary .bad { background: var(--bad-pale); color: var(--bad); }
.summary .warn { background: var(--warn-pale); color: var(--warn); }
.summary .good { background: var(--teal-pale); color: var(--teal-2); }
.report h2 { margin-top: 26px; }
.report h3 { margin-top: 20px; font-size: 16px; }
.answers { width: 100%; border-collapse: collapse; font-size: 14px; }
.answers th, .answers td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.answers th { width: 64px; color: var(--muted); }
.answers td:last-child { width: 38%; }
.answers .missing { color: var(--bad); font-style: italic; }
.answers .note { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media print {
  .top, .no-print { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; }
  .issues li, .summary div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr { break-inside: avoid; }
}

/* Tooltips */
.q-head .q-text { flex: 1; }
.tip-btn { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal);
  font: 700 14px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tip-btn:hover, .tip-btn.on { background: var(--teal); color: #fff; }
.tip { margin: 10px 0 0 52px; max-width: 820px; background: var(--teal-pale); border-left: 4px solid var(--teal); border-radius: 6px; padding: 10px 14px; font-size: 14px; }
.tip[hidden] { display: none; }
.tip p { margin: 0 0 6px; }
.tip p:last-child { margin: 0; }
.tip-title { font-weight: 700; color: var(--teal-2); }
.tip-sum, .tip-ex { color: var(--muted); }
.tip-demo { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font-weight: 700; font-size: 12px; align-items: center; justify-content: center; }

/* Suggested answers */
.suggest { margin: 8px 0 0 52px; max-width: 820px; }
.suggest-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.suggest-label .muted { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 13px/1.3 var(--font); padding: 5px 12px; border-radius: 99px; border: 1px solid #b9d9d5; background: #fff; color: var(--teal-2); cursor: pointer; }
.chip:hover { background: var(--teal-pale); }
.chip.picked { background: var(--teal); border-color: var(--teal); color: #fff; }
.copy-ans { display: block; margin: 6px 0 0 52px; font-size: 13px; }
@media (max-width: 600px) { .tip, .suggest, .copy-ans { margin-left: 0 !important; } }

/* Client access, alerts, settings */
.alert { padding: 10px 14px; border-radius: 6px; }
.alert.ok { background: var(--teal-pale); color: var(--teal-2); }
.alert.warn { background: var(--warn-pale); color: var(--warn); }
.access h2 { font-size: 17px; }
.access-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.access-form label { width: 160px; }
.newcode { background: var(--warn-pale); border: 1px solid #f0d58e; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.newcode p { margin: 0 0 6px; }
.code { font: 700 20px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.link-text { font-size: 13px; word-break: break-all; }
.small-btn { padding: 4px 10px; font-size: 13px; }
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; }
.upload label { flex: 1; min-width: 260px; }
.welcome h2 { font-size: 18px; }
.welcome p { max-width: 80ch; }
.q.has-comment .q-notes summary { color: var(--teal-2); font-weight: 600; }
@media print { .tip-btn, .suggest, .copy-ans { display: none !important; } }

/* Users and account */
.top .who a { color: #fff; text-decoration: none; }
.top .who a:hover { text-decoration: underline; }
.narrow { max-width: 520px; }
.narrow h2 { font-size: 17px; margin-top: 18px; }
.stack label { margin-bottom: 14px; }
.hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.check-label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-self: end; padding-bottom: 8px; }
.check-label input { width: auto; margin: 0; }
.check-label .hint { width: 100%; margin: 0; }
.users td.actions { text-align: right; white-space: nowrap; }
.users td.actions form { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-pale); color: var(--bad); }
@media (max-width: 760px) { .users td.actions { white-space: normal; } }
.edit-email { margin-top: 4px; font-size: 13px; }
.edit-email summary { cursor: pointer; color: var(--teal); }
.edit-email form { display: flex; gap: 6px; margin-top: 6px; max-width: 360px; }
.inline-form { display: flex; gap: 10px; align-items: end; margin: 14px 0 4px; }
.inline-form label { flex: 1; }

/* ---------- RaceLine branding ---------- */
.eyebrow { font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--signal, var(--teal)); margin: 0 0 8px; }
.dash-head h1, .side h1, .report h1, .content .section > h2 { font-family: var(--display); }
.section > h2 { font-size: 24px; display: flex; align-items: baseline; gap: 6px; }
.section > h2::before { content: ""; flex: none; width: 4px; height: 20px; background: var(--apex); border-radius: 2px; margin-right: 6px; align-self: center; }
.qid { font-family: var(--display); font-size: 14px; letter-spacing: .02em; }
.card h2, .access h2, .new-form h2 { font-size: 20px; }
.new-form { border-top: 3px solid var(--brand); }
.list { box-shadow: 0 1px 2px rgba(24,32,43,.04); }
.list th { font-family: var(--display); font-size: 14px; letter-spacing: .02em; }
.bar span { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.ready { border-top: 3px solid var(--brand); }
.sections a.active { box-shadow: inset 3px 0 0 var(--apex); }
.welcome { background: var(--tarmac); color: #e7ecf1; border: 0; position: relative; overflow: hidden; }
.welcome h2 { color: #fff; font-size: 24px; }
.welcome::after { content: ""; position: absolute; right: -40px; top: -30px; width: 260px; height: 160px; border-bottom: 4px solid var(--apex); border-radius: 0 0 0 100%; transform: rotate(-12deg); opacity: .8; }
.welcome .tip-demo { border-color: var(--brand-light); color: var(--brand-light); }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; padding-bottom: 16px; }
.foot-contact { margin-left: auto; }
@media (max-width: 760px) { .foot-contact { margin-left: 0; } }

/* Sign-in pages */
.v-auth { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--tarmac); color: #dfe5eb; padding: 40px 48px; display: flex; flex-direction: column; }
.auth-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 0%, rgba(0,150,143,.35), transparent 60%); pointer-events: none; }
.auth-logo img { height: 34px; width: auto; display: block; position: relative; }
.auth-pitch { margin: auto 0; position: relative; max-width: 440px; padding: 40px 0; }
.auth-pitch .eyebrow { color: var(--brand-light); }
.auth-pitch h2 { color: #fff; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; margin-bottom: 16px; }
.auth-pitch p { font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0; font-size: 17px; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--apex); border-bottom: 3px solid var(--apex); transform: rotate(-45deg); }
.raceline { position: absolute; left: 0; right: 0; bottom: 60px; width: 100%; height: 160px; pointer-events: none; }
.raceline path { fill: none; stroke: var(--apex); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.auth-foot { position: relative; margin: 0; font-size: 14px; color: #aab4c2; }
.auth-foot a { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.v-auth .login { margin: 0; width: 100%; max-width: 400px; }
.v-auth .login h1 { font-size: 34px; }
.v-auth .login .card { border: 0; padding: 0; background: none; margin-top: 22px; }
.v-auth .login input { padding: 11px 12px; }
.v-auth .login .btn { padding: 13px 18px; font-size: 18px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 24px 20px; }
  .auth-pitch { padding: 24px 0 8px; }
  .auth-pitch h2 { font-size: 30px; }
  .auth-pitch p:not(.eyebrow), .ticks, .raceline, .auth-foot { display: none; }
}

/* Report letterhead */
.letterhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 3px solid var(--brand); color: var(--muted); font-size: 14px; }
.letterhead img { height: 34px; width: auto; }
@media print { .foot { display: none; } body { display: block; } .letterhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.delete-form { display: flex; gap: 10px; align-items: start; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.delete-form label { flex: 1; max-width: 520px; color: var(--bad); }
.delete-form .btn { margin-top: 24px; }
.auth-main .hint a { color: inherit; }

/* How to fix */
.issues li .fix { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink); opacity: .9; }
.issues li .fix strong { color: var(--teal-2); }
.issues.bad li .fix strong { color: var(--bad); }

/* OS dropdown tables */
.os-grid select { padding: 7px 8px; min-width: 0; }
.os-grid select:disabled { background: var(--cloud); color: var(--muted); }
.os-grid td { min-width: 110px; }
.os-grid td:first-child { min-width: 130px; }
.grid input.qty { max-width: 80px; }
.grid-wrap { overflow-x: auto; }
@media (max-width: 760px) { .os-grid td { min-width: 140px; } }
.os-grid td:nth-child(2) { min-width: 170px; }
.os-grid td:nth-child(3) { min-width: 180px; }

/* =================== Readiness report =================== */
.rep-toolbar { max-width: 900px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rep-tools { display: flex; gap: 8px; align-items: center; }
.v-report .alert { max-width: 900px; margin: 0 auto 16px; }
.rep { max-width: 900px; margin: 0 auto; background: #fff; box-shadow: 0 2px 18px rgba(24,32,43,.08); border-radius: 6px; overflow: hidden; }
.rep-page { padding: 44px 56px; }
.rep-page + .rep-page { border-top: 8px solid var(--cloud); }
.rep-h { font-size: 30px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--brand); position: relative; }
.rep-h::after { content: ""; position: absolute; right: 0; bottom: -3px; width: 22%; height: 3px; background: var(--apex); }
.rep-sub { font-size: 19px; margin: 30px 0 10px; }
.rep-sub.bad { color: var(--bad); } .rep-sub.warn { color: var(--warn); }

/* Cover */
.rep-cover { position: relative; overflow: hidden; background: var(--tarmac); color: #dfe5eb; min-height: 640px; padding: 48px 56px 40px; display: flex; flex-direction: column; }
.rep-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 10% 0%, rgba(0,150,143,.4), transparent 60%); }
.cover-top img { height: 40px; width: auto; position: relative; }
.cover-main { position: relative; margin: auto 0; padding: 60px 0 80px; }
.cover-main .eyebrow { color: var(--brand-light); font-size: 15px; }
.cover-main h1 { color: #fff; font-size: 64px; line-height: 1; margin: 0 0 18px; }
.cover-org { font: 600 30px/1.2 var(--display); color: #fff; margin: 0 0 34px; padding-left: 16px; border-left: 4px solid var(--apex); }
.cover-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; margin: 0; max-width: 620px; }
.cover-meta dt { font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #8fa0b3; }
.cover-meta dd { margin: 2px 0 0; color: #fff; font-size: 16px; }
.cover-line { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 200px; }
.cover-line path { fill: none; stroke: var(--apex); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cover-foot { position: relative; margin: 0; font-size: 13px; color: #8fa0b3; }

/* Summary */
.verdict { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 6px; border-left: 6px solid; margin-bottom: 18px; }
.verdict strong { font: 700 26px/1.1 var(--display); }
.verdict.bad { background: var(--bad-pale); border-color: var(--bad); color: var(--bad); }
.verdict.warn { background: var(--warn-pale); border-color: var(--apex); color: var(--warn); }
.verdict.good { background: var(--teal-pale); border-color: var(--brand); color: var(--teal-2); }
.verdict span { color: var(--ink); }
.tiles { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile-n { font: 700 40px/1 var(--display); }
.tile-l { color: var(--muted); font-size: 14px; }
.tile.bad .tile-n { color: var(--bad); } .tile.warn .tile-n { color: var(--warn); } .tile.good .tile-n { color: var(--teal-2); }
.tile-bar, .mini-bar { display: block; height: 8px; background: var(--cloud); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.tile-bar span, .mini-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.mini-bar { margin: 0; width: 100%; }
.rep-progress { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-progress th { text-align: left; font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px 0; border-bottom: 2px solid var(--line); }
.rep-progress td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rep-progress .bar-col { width: 32%; }
.next { padding-left: 20px; margin: 0 0 12px; }
.next li { margin: 6px 0; }
.rep-help { background: var(--cloud); border-radius: 6px; padding: 12px 16px; font-size: 14px; margin: 18px 0 0; }

/* Action plan */
.actions { list-style: none; padding: 0; margin: 0; }
.actions li { border: 1px solid var(--line); border-left: 5px solid; border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; break-inside: avoid; }
.actions.bad li { border-left-color: var(--bad); } .actions.warn li { border-left-color: var(--apex); }
.act-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.act-n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; font: 700 13px/1 var(--display); color: #fff; background: var(--tarmac); }
.actions.bad .act-n, .act-n.bad { background: var(--bad); } .actions.warn .act-n, .act-n.warn { background: var(--apex); color: var(--ink); }
.act-n.sm { min-width: 20px; height: 20px; font-size: 11px; margin: 1px 0 1px 3px; }
.act-ref { font: 700 14px var(--display); }
.act-sec { color: var(--muted); font-size: 13px; }
.act-text { margin: 0 0 6px; font-weight: 500; }
.act-fix { margin: 0; font-size: 14px; background: var(--cloud); border-radius: 4px; padding: 8px 12px; }
.act-fix strong { display: block; font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 2px; }

/* Answers */
.rep-sec { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 28px 0 8px; break-after: avoid; }
.rep-sec span { font: 700 12px var(--display); background: var(--tarmac); color: #fff; border-radius: 4px; padding: 3px 7px; }
.rep-answers { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rep-answers thead th { text-align: left; font: 600 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px 0; border-bottom: 2px solid var(--line); }
.rep-answers td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rep-answers tr { break-inside: avoid; }
.rep-answers .c-ref { width: 56px; font: 600 13px var(--display); color: var(--muted); }
.rep-answers .c-ans { width: 36%; }
.rep-answers .c-act { width: 46px; text-align: right; white-space: nowrap; }
.rep-answers tr.is-bad td { background: #fdf3f2; }
.rep-answers tr.is-warn td { background: #fffaf0; }
.rep-answers tr.is-bad .c-ref { color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); padding-left: 6px; }
.rep-answers tr.is-warn .c-ref { color: var(--warn); box-shadow: inset 3px 0 0 var(--apex); padding-left: 6px; }
.c-ans.missing { color: var(--bad); font-style: italic; }
.c-ans.na { color: var(--muted); }
.yn { display: inline-block; font: 700 12px var(--display); letter-spacing: .04em; border-radius: 99px; padding: 1px 9px; margin-right: 4px; }
.yn.yes { background: var(--teal-pale); color: var(--teal-2); }
.yn.no { background: #e6e9ed; color: #3b4654; }
.rep-note { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.rep-note.internal { color: var(--warn); }
.rep-end { margin: 30px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  .rep-page, .rep-cover { padding: 28px 20px; }
  .cover-main h1 { font-size: 44px; }
  .cover-meta, .tiles { grid-template-columns: 1fr; }
  .rep-answers .c-ans { width: 40%; }
}

/* ---- Print / PDF ---- */
@page { size: A4; margin: 16mm 14mm 18mm;
  @bottom-left { content: "RaceLine IT \00B7  Cyber Essentials readiness report"; font: 8.5pt "Barlow", sans-serif; color: #5a6575; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8.5pt "Barlow", sans-serif; color: #5a6575; }
}
@page :first { margin: 0; @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
  html, body { background: #fff !important; font-size: 10.5pt; }
  .v-report .top, .v-report .foot, .no-print { display: none !important; }
  .v-report .wrap { padding: 0; max-width: none; }
  .rep { box-shadow: none; border-radius: 0; max-width: none; overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rep-cover { height: 297mm; min-height: 0; padding: 22mm 20mm 16mm; break-after: page; }
  .cover-main h1 { font-size: 50pt; }
  .rep-page { padding: 0; }
  .rep-page + .rep-page { border-top: 0; }
  .rep-break { break-before: page; }
  .rep-h { font-size: 22pt; }
  .tile-n { font-size: 28pt; }
  .rep-answers thead { display: table-header-group; }
  a { color: inherit; text-decoration: none; }
}
.rep-answers { table-layout: fixed; }
.rep-answers .c-ref { width: 62px; }
.rep-answers td { overflow-wrap: anywhere; }

/* Help requests */
.help { margin: 10px 0 0 52px; max-width: 820px; }
.help-ask { font-size: 14px; font-weight: 600; color: var(--warn); }
.help-ask::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--apex); color: var(--ink); font: 700 12px/1 var(--display); margin-right: 6px; text-decoration: none; }
.help-box { border: 1px solid #f0d58e; background: #fffbf0; border-radius: 6px; padding: 10px 14px; }
.help:not(.open) .help-box { border-color: var(--line); background: #fafbfc; }
.help-title { margin: 0 0 6px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.help-state { font-weight: 600; font-size: 12px; border-radius: 99px; padding: 1px 8px; background: var(--warn-pale); color: var(--warn); }
.help:not(.open) .help-state { background: var(--teal-pale); color: var(--teal-2); }
.help-state:empty { display: none; }
.thread { list-style: none; margin: 0 0 8px; padding: 0; }
.thread:empty { display: none; }
.msg { padding: 7px 10px; border-radius: 6px; margin-bottom: 6px; background: #fff; border: 1px solid var(--line); font-size: 14px; max-width: 92%; }
.msg.staff { margin-left: auto; background: var(--teal-pale); border-color: #b9d9d5; }
.msg.system { background: none; border: 0; text-align: center; max-width: none; color: var(--muted); font-size: 12px; padding: 2px; }
.msg-by { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg.system .msg-by { display: inline; }
.msg.system .msg-text::before { content: " · "; }
.msg-text { white-space: pre-wrap; }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.check-label.inline { padding: 0; font-size: 13px; font-weight: 400; }
.q.needs-help { box-shadow: inset 4px 0 0 var(--apex); padding-left: 14px; margin-left: -18px; }
.tag.help-tag { background: var(--apex); color: var(--ink); margin-left: 4px; }
.tag[hidden] { display: none; }
.help-panel { border-top: 3px solid var(--apex); }
.help-panel h2 { font-size: 18px; }
.help-list { margin: 0 0 6px; padding-left: 18px; }
.help-list li { margin: 4px 0; }
a.pill { text-decoration: none; }
@media (max-width: 600px) { .help { margin-left: 0; } }
@media print { .help, .help-panel { display: none !important; } }
