@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --green: #00704A; --green-dark: #0D3B33; --green-light: #E8F4EE; --ink: #13221E; --muted: #52625D; --line: #DFE6E3; --bg: #F5F8F7; --warn: #B42318; --warn-light: #FDECEA; --amber: #9A6700; --amber-light: #FFF4D6; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); }
.hidden { display: none !important; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { width: 28px; height: 28px; }
.grow { flex: 1; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: inherit; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--green-light); color: var(--green-dark); }
.main { max-width: 1280px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; letter-spacing: -0.01em; margin: 6px 0 14px; color: var(--green-dark); }
h2 { font-size: 17px; margin: 18px 0 8px; color: var(--green-dark); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 12px 0; box-shadow: 0 1px 2px rgba(13,59,51,.04); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--green-dark); }
.stat .l { color: var(--muted); }
.btn { border: 1px solid #C3D2CC; background: #fff; color: var(--green-dark); font: inherit; font-weight: 650; border-radius: 9px; padding: 8px 14px; min-height: 38px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--green-dark); }
.btn.primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; } .btn.primary:hover:not(:disabled) { background: var(--green); border-color: var(--green); }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.btn.small { padding: 5px 10px; font-size: 13px; min-height: 32px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select, textarea { font: inherit; padding: 8px 10px; min-height: 38px; border: 1px solid #C9D6D1; border-radius: 9px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; accent-color: var(--green-dark); }
label { display: block; font-weight: 600; margin: 8px 0 4px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; align-items: end; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 10px; border-bottom: 1px solid #EEF0F2; text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #FAFBFB; font-size: 13px; color: var(--muted); position: sticky; top: 0; }
td.wrap { white-space: normal; min-width: 240px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #F7FAF8; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #EEF0F2; color: var(--muted); }
.pill.completed { background: var(--green-light); color: var(--green-dark); }
.pill.in { background: var(--amber-light); color: var(--amber); }
.pill.expired, .pill.flag { background: var(--warn-light); color: var(--warn); }
.note { background: var(--amber-light); color: #5C3D00; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.err { background: var(--warn-light); color: var(--warn); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
.ok { background: var(--green-light); color: var(--green-dark); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 20; max-width: 90vw; }
.login { max-width: 380px; margin: 60px auto; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }

/* report */
.report { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: 900px; margin: 0 auto; }
.report h1 { margin-top: 0; }
.rhead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rhead img.idphoto { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 3px 12px; }
.kv div:nth-child(odd) { color: var(--muted); }
.sten { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: 220px; }
.sten span { height: 16px; background: #EEF0F2; border-radius: 3px; font-size: 10px; text-align: center; line-height: 16px; color: #888; }
.sten span.on { background: var(--green); color: #fff; font-weight: 700; }
.draft { display: inline-block; background: var(--amber-light); color: var(--amber); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.photos figure { margin: 0; font-size: 11px; color: var(--muted); }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
.photos img.big { position: fixed; inset: 5vh 5vw; width: 90vw; height: 90vh; object-fit: contain; background: #000; z-index: 30; cursor: zoom-out; }
details { margin: 8px 0; } summary { cursor: pointer; font-weight: 700; color: var(--green-dark); }
@media print {
  body { background: #fff; } .no-print, .top { display: none !important; } .main { padding: 0; } .report { border: 0; padding: 0; max-width: none; }
  details { display: block; } details > summary { display: none; } .photos { grid-template-columns: repeat(8, 1fr); }
}

/* ---------- visual candidate report ---------- */
.report { padding: 0; overflow: hidden; }
.rbanner { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #124B43, #17655A 60%, #4FA552); color: #fff; padding: 16px 24px; }
.rlogo { width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.rorg { font-size: 13px; opacity: .85; } .rtitle { font-size: 20px; font-weight: 800; }
.rconf { font-size: 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; padding: 3px 10px; }
.rhero { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 20px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.rwho { display: flex; gap: 16px; align-items: center; }
.rwho h1 { margin: 0 0 2px; font-size: 26px; color: var(--ink); }
.rwho .idphoto { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--green-light); }
.roverall { display: flex; gap: 14px; align-items: center; }
.gauge { width: 130px; height: 130px; }
.g-big { font-size: 34px; font-weight: 800; fill: #124B43; }
.g-small { font-size: 12px; fill: #5B6168; }
.rcard { margin: 16px 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rcard h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcard.insight { background: #F4FAF6; border-color: #CFE6D7; }
.rcard.insight .lead { font-size: 17px; font-weight: 700; color: #123; }
.rcard.good { border-left: 5px solid var(--green); }
.rcard.watch { border-left: 5px solid #D08A00; }
.rcard ul, .rcard ol { margin: 6px 0; padding-left: 20px; } .rcard li { margin: 5px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.two .rcard { margin-right: 12px; } .two .rcard + .rcard { margin-left: 12px; margin-right: 24px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } .two .rcard, .two .rcard + .rcard { margin: 16px 24px; } }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #EEF0F2; color: var(--muted); margin: 2px 4px 2px 0; }
.chip.high { background: var(--green); color: #fff; } .chip.avg { background: #DCEBFA; color: #0B4A8B; } .chip.low { background: #FCE3CC; color: #8A3B00; }
.chips { margin-top: 8px; }
.scale { padding: 12px 0; border-top: 1px solid #EEF0F2; }
.scale.sum { background: #FAFCFB; }
.scale-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.scale-name { font-weight: 800; font-size: 15px; }
.scale-score { text-align: right; min-width: 170px; }
.scale-text { margin: 6px 0 0; color: #333; }
.pbar { position: relative; height: 14px; margin: 8px 0 2px; border-radius: 7px; overflow: visible; background: #EEF0F2; }
.pbar .zone { position: absolute; top: 0; bottom: 0; }
.pbar .zone.low { background: #FCE3CC; border-radius: 7px 0 0 7px; } .pbar .zone.avg { background: #DCEBFA; } .pbar .zone.high { background: #CDEBD6; border-radius: 0 7px 7px 0; }
.pbar .marker { position: absolute; top: -3px; width: 16px; height: 20px; border-radius: 5px; background: #124B43; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.legend { margin-bottom: 4px; } .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 8px; }
.lg.low { background: #FCE3CC; } .lg.avg { background: #DCEBFA; } .lg.high { background: #CDEBD6; }
.draft.prov { background: #E8EEF9; color: #0B4A8B; }
.report details { margin: 12px 24px; }
.rfoot { margin: 16px 24px 24px; border-top: 1px solid var(--line); padding-top: 10px; }
@media print { .rbanner { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pbar, .chip, .marker, .zone, .gauge { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .rcard { break-inside: avoid; } }

.pill.dup { background: #E8EEF9; color: #0B4A8B; }
.small { font-size: 12px; }
#who { margin-right: 8px; }
.wide-input { min-width: min(340px, 100%); }

td.tl { font-weight: 700; text-align: center; } td.tl.green { background: #C6EFCE; color: #006100; } td.tl.amber { background: #FFEB9C; color: #9C5700; } td.tl.red { background: #FFC7CE; color: #9C0006; }
.form input, .form select { width: 100%; min-width: 0; }
td .row { flex-wrap: nowrap; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#regcard { max-width: 900px; margin: 20px auto; }
textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }

/* fit and risk summary, behaviour at work, interview questions */
.rcard.fit { border-left: 6px solid var(--green); }
.rcard.fit.risk-some { border-left-color: #D9B100; } .rcard.fit.risk-elevated { border-left-color: #D08A00; } .rcard.fit.risk-high { border-left-color: #C0392B; }
.fit-level { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; margin: 4px 0 12px; flex-wrap: wrap; }
.risk-chip { padding: 5px 14px; border-radius: 99px; color: #fff; background: var(--green); font-size: 14px; white-space: nowrap; }
.risk-some .risk-chip { background: #B89600; } .risk-elevated .risk-chip { background: #D08A00; } .risk-high .risk-chip { background: #C0392B; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .two-col h3 { margin: 6px 0; font-size: 14px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.worktab td { vertical-align: top; } .worktab td:first-child { width: 150px; }
.probe { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; } .probe-head { display: flex; gap: 8px; align-items: center; }
@media print { .report, .table-wrap { overflow: visible !important; } .rcard { break-inside: auto !important; } .rcard h2 { break-after: avoid; } .worktab tr, .probe, .scale, .rcard li, .fit-level { break-inside: avoid; } }

/* insights, test quality, security */
h3 { font-size: 15px; margin: 14px 0 6px; color: var(--ink); }
.hbar { display: grid; grid-template-columns: 170px 1fr 90px; gap: 8px; align-items: center; margin: 6px 0; }
.hbar-l { font-size: 14px; } .hbar-v { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.hbar-t { background: #EEF0F2; border-radius: 6px; height: 14px; overflow: hidden; }
.hbar-f { height: 100%; background: var(--green); border-radius: 6px; } .hbar-f.amber { background: #D9A400; }
.hbar-f.risk-low { background: var(--green); } .hbar-f.risk-some { background: #B89600; } .hbar-f.risk-elevated { background: #D08A00; } .hbar-f.risk-high { background: #C0392B; }
.stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: #EEF0F2; }
.stack .seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; min-width: 18px; }
.stack .seg.low { background: #FCE3CC; color: #8A3B00; } .stack .seg.avg { background: #DCEBFA; color: #0B4A8B; } .stack .seg.high { background: #CDEBD6; color: #124B43; }
.weeks { display: flex; gap: 4px; align-items: flex-end; height: 120px; padding-top: 6px; }
.wk { flex: 1; max-width: 48px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 14px; }
.wk-b { background: var(--green); border-radius: 4px 4px 0 0; min-height: 2px; } .wk-l { font-size: 10px; color: var(--muted); text-align: center; margin-top: 3px; }
table.cmp td, table.cmp th { vertical-align: top; min-width: 140px; } table.cmp td.best { background: #EAF5EC; }
td.keyed { background: #EAF5EC; font-weight: 700; } td.warn-t { color: var(--warn); }
details.card > summary { cursor: pointer; } details.card > summary .pill { margin-left: 8px; }
.qrwrap { margin: 10px 0; } svg.qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 8px; }
ol.steps li { margin: 10px 0; }
.backup { border: 2px solid var(--green); } .codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; font-size: 17px; margin: 10px 0; }
.codes span { background: var(--green-light); padding: 6px 10px; border-radius: 6px; text-align: center; }
.table-wrap.tall { max-height: 520px; overflow-y: auto; }
tr.warnrow td { background: #FFF6F5; }
.legend span { margin-right: 14px; }
@media (max-width: 600px) { .hbar { grid-template-columns: 110px 1fr 70px; } }
@media print { .stack .seg, .hbar-f, td.best, td.keyed, .codes span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.wordmark { height: 28px; width: auto; }
.top .adm { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; border-left: 1px solid var(--line); padding-left: 10px; }
.rword { height: 32px; width: auto; margin-right: 6px; }
@media (max-width: 600px) { .rword { display: none; } }

@media print { .rfoot { break-before: avoid; page-break-before: avoid; margin-top: 8px; } details.card { break-inside: auto; } }

.stat.click { cursor: pointer; } .stat.click:hover { border-color: var(--green); }
ol.todo { list-style: none; counter-reset: t; padding: 0; margin: 0; }
ol.todo li { counter-increment: t; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
ol.todo li:first-child { border-top: 0; }
ol.todo li::before { content: counter(t); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.todo li.done::before { content: "\2713"; background: var(--green-light); color: var(--green-dark); }
ol.todo li > div { flex: 1; } ol.todo li.done strong { color: var(--muted); }
details.more { margin: 8px 0 4px; } details.more > summary { cursor: pointer; color: var(--green-dark); font-weight: 700; padding: 6px 0; }

/* layout: sidebar on wide screens, scrolling tab strip on phones and tablets */
.tabs button:hover { color: var(--green-dark); background: #F0F5F3; }
@media (min-width: 1000px) {
  body.authed .top { position: fixed; top: 0; bottom: 0; left: 0; width: 220px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; padding: 18px 12px; border-bottom: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  body.authed .top .logo { display: none; }
  body.authed .top .wordmark { height: 30px; align-self: flex-start; margin: 0 8px; }
  body.authed .top .adm { border-left: 0; padding: 0 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  body.authed .tabs { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  body.authed .tabs button { text-align: left; padding: 9px 12px; }
  body.authed #who { padding: 0 8px; white-space: normal; }
  body.authed #logout { margin: 0 8px; }
  body.authed .main { margin-left: 220px; max-width: none; padding: 24px 32px 48px; }
  body.authed .main > * { max-width: 1320px; }
}
@media (max-width: 999px) {
  body.authed .top { gap: 8px 10px; padding: 8px 12px 0; }
  body.authed .tabs { order: 10; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 8px 6px; -webkit-overflow-scrolling: touch; }
  body.authed .tabs::-webkit-scrollbar { display: none; }
  body.authed .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 36px; }
  body.authed .tabs button { white-space: nowrap; flex: none; }
  #who { display: none; }
  .main { padding: 14px 12px 40px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; } .stat { padding: 12px; } .stat .v { font-size: 22px; } .stat .l { font-size: 13px; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  h1 { font-size: 22px; }
  .login { margin: 24px auto; padding: 0 4px; }
  .report { padding: 16px; }
  .kv { grid-template-columns: 120px 1fr; }
}
@media print { body.authed .main { margin-left: 0 !important; padding: 0 !important; } }
a { color: var(--green); }

/* candidate search */
.gsearch { position: relative; }
.gsearch input { width: 100%; padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2352625D' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 11px center; }
.gres { position: fixed; z-index: 40; width: min(440px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(13,59,51,.14); padding: 6px; max-height: 70vh; overflow-y: auto; }
.gitem { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; } .gitem:hover { background: var(--bg); }
.gmain { flex: 1; min-width: 0; } .gmain b { display: block; } .gmain span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnone { padding: 8px; margin: 0; } .gall { margin: 6px 8px; }
@media (min-width: 1000px) { body.authed .gsearch { margin: 4px 0 8px; } }
@media (max-width: 999px) { body.authed .gsearch { order: 5; flex-basis: 100%; } }

.checklist { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; max-height: 220px; overflow-y: auto; }
label.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 4px 0; }
.ghead { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 8px 2px; }
.wide-search { width: 100%; max-width: 520px; margin: 4px 0 10px; }
.wrap-any { overflow-wrap: anywhere; }

/* ---------------- candidate report (r2): verdict first, one picture of all results, each text shown once ---------------- */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
.report.r2 { padding: 0; overflow: hidden; max-width: 960px; border-radius: 16px; --risk: #1F7A4D; --risk-bg: #EDF7F1; }
.r2 .risk-some, .r2.risk-some { --risk: #8C6D00; --risk-bg: #FBF5DC; }
.r2-verdict.risk-low { --risk: #1F7A4D; --risk-bg: #EDF7F1; } .r2-verdict.risk-some { --risk: #8C6D00; --risk-bg: #FBF5DC; }
.r2-verdict.risk-elevated { --risk: #B05E00; --risk-bg: #FDF0E1; } .r2-verdict.risk-high { --risk: #B42318; --risk-bg: #FDECEA; } .r2-verdict.risk-none { --risk: #52625D; --risk-bg: #F2F5F4; }
.r2-top { background: var(--green-dark); color: #fff; padding: 10px 28px; gap: 10px; font-size: 13px; }
.r2-logo { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 2px; }
.r2-org { font-weight: 700; } .r2-sep { opacity: .8; } .r2-sep::before { content: "|"; margin-right: 10px; opacity: .5; }
.r2-conf { border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 1px 10px; font-size: 12px; }
.r2-who { display: flex; align-items: center; gap: 18px; padding: 24px 28px 18px; flex-wrap: wrap; }
.r2-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.r2-person { font-family: "Bricolage", "Public Sans", sans-serif; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--green-dark); }
.r2-meta { color: var(--muted); margin-top: 6px; font-size: 14px; white-space: pre-wrap; }
.r2-norm { font-size: 12px; color: var(--muted); max-width: 240px; text-align: right; }
.r2-note { margin: 0 28px 12px; }
.r2-verdict { margin: 0 28px; border-radius: 14px; background: var(--risk-bg); border: 1px solid color-mix(in srgb, var(--risk) 25%, transparent); overflow: hidden; }
.r2-verdict-main { padding: 18px 22px 14px; border-left: 8px solid var(--risk); }
.r2-kicker { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.r2-risk { font-family: "Bricolage", "Public Sans", sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -0.025em; color: var(--risk); line-height: 1.05; margin: 4px 0 6px; }
.r2-advice { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; max-width: 60ch; }
.r2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid color-mix(in srgb, var(--risk) 20%, transparent); }
.r2-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; } .r2-tile + .r2-tile { border-left: 1px solid var(--line); }
.r2-tile .gauge { width: 76px; height: 76px; flex: none; }
.r2-tile-l { font-size: 12px; font-weight: 700; color: var(--muted); } .r2-tile-v { font-size: 18px; font-weight: 800; color: var(--ink); } .r2-tile-s { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.r2-big-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #fff; background: #1F7A4D; }
.r2-tile.trust.warn .r2-big-icon { background: #B05E00; }
.r2-big-num { flex: none; width: 52px; text-align: center; font-family: "Bricolage", "Public Sans", sans-serif; font-size: 34px; font-weight: 800; color: var(--green-dark); }
.r2-sr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 28px 0; }
.r2-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; border-top: 4px solid #1F7A4D; }
.r2-col.bad { border-top-color: #B05E00; }
.r2-col h3 { margin: 0 0 8px; font-size: 14px; color: var(--green-dark); }
.r2-col ul { list-style: none; margin: 0; padding: 0; } .r2-col li { margin: 0 0 10px; font-size: 14px; line-height: 1.45; } .r2-col li:last-child { margin-bottom: 0; }
.r2-col li b { display: block; color: var(--ink); }
.r2-sec { margin: 22px 28px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.r2-h { font-size: 19px; margin: 0 0 10px; color: var(--green-dark); display: flex; align-items: center; gap: 8px; }
.r2-lead { font-size: 16px; font-weight: 700; margin: 0 0 6px; max-width: 75ch; }
.r2-insight { font-size: 14px; color: var(--ink); margin: 0 0 8px; max-width: 75ch; }
.r2-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 10px 0 4px; flex-wrap: wrap; }
.r2-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg.low { background: #FCE3CC; } .lg.avg { background: #DCEBFA; } .lg.high { background: #CDEBD6; }
.r2-chart { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.r2-row { display: grid; grid-template-columns: 210px 1fr 150px; column-gap: 18px; align-items: center; padding: 12px 16px; }
.r2-row + .r2-row { border-top: 1px solid #EEF2F0; }
.r2-row.sum { background: #F7FAF9; } .r2-row.sub .r2-name { padding-left: 16px; border-left: 3px solid #DCE5E1; }
.r2-scale { font-weight: 700; font-size: 14px; } .r2-row.sum .r2-scale { font-size: 15px; }
.r2-def { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.r2-score { text-align: right; } .r2-num { font-size: 12px; color: var(--muted); margin-top: 2px; }
.r2-meaning { grid-column: 2 / 4; margin: 6px 0 0; font-size: 13px; color: #33433E; line-height: 1.45; }
.r2-hint { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.r2-probes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.r2-probe { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.r2-probe-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.r2-probe ol { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; } .r2-probe li { margin: 4px 0; }
.r2-good { font-size: 12.5px; background: #F4F8F6; border-radius: 8px; padding: 8px 10px; margin: 0; color: #33433E; }
.r2-more { margin-top: 10px; } .r2-more > .r2-probes { margin-top: 10px; }
.r2-manage { display: grid; gap: 10px; }
.r2-m { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.r2-m-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.r2-m-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.r2-m-l { font-size: 11.5px; font-weight: 700; color: var(--muted); } .r2-m-body p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.r2-cond { border-radius: 12px; padding: 12px 14px; background: #F2F8F4; border-left: 5px solid #1F7A4D; } .r2-cond.warn { background: #FDF5EA; border-left-color: #B05E00; }
.r2-cond p { margin: 0 0 8px; font-size: 14px; }
.r2-records p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.r2 details { margin: 10px 0 0; }
.r2 .rfoot { margin: 22px 28px 24px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
@media screen and (max-width: 760px) {
  .r2-who, .r2-verdict, .r2-sr, .r2-sec, .r2-note { margin-left: 14px; margin-right: 14px; } .r2-who { padding: 18px 14px 12px; } .r2 .rfoot { margin: 20px 14px; }
  .r2-norm { text-align: left; max-width: none; } .r2-person { font-size: 28px; } .r2-risk { font-size: 32px; }
  .r2-tiles, .r2-sr, .r2-m-body { grid-template-columns: 1fr; } .r2-tile + .r2-tile { border-left: 0; border-top: 1px solid var(--line); }
  .r2-row { grid-template-columns: 1fr auto; row-gap: 8px; } .r2-barcell { grid-column: 1 / 3; grid-row: 2; } .r2-meaning { grid-column: 1 / 3; }
  .r2-top .r2-sep { display: none; }
}
@media print {
  .report.r2 { border: 0; border-radius: 0; max-width: none; }
  .r2-top, .r2-verdict, .r2-big-icon, .r2-row.sum, .r2-col, .r2-cond, .r2-good, .lg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r2-sec { break-inside: auto; } .r2-h { break-after: avoid; }
  .r2-row, .r2-probe, .r2-m, .r2-col, .r2-verdict { break-inside: avoid; }
  .r2-sec.pb, .r2-probes-sec { break-before: page; }
  .r2-more > summary { display: none; }
  .r2-tile .gauge { width: 70px; height: 70px; }
}
.r2-gloss { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 13px; margin: 8px 0 0; } .r2-gloss dt { font-weight: 700; } .r2-gloss dd { margin: 0; color: #33433E; }
.r2-row { grid-template-columns: 170px 1fr 140px; } .r2-name[title] { cursor: help; }
@media screen and (max-width: 760px) { .r2-gloss { grid-template-columns: 1fr; } .r2-gloss dd { margin-bottom: 6px; } .r2-row { grid-template-columns: 1fr auto; } }
@media print {
  @page { size: A4; margin: 11mm 10mm; }
  .r2-who { padding: 8px 4px 10px; } .r2-who, .r2-verdict, .r2-sr, .r2-sec, .r2-note { margin-left: 0; margin-right: 0; } .r2 .rfoot { margin: 16px 0 0; }
  .r2-top { padding: 8px 12px; } .r2-person { font-size: 28px; } .r2-risk { font-size: 32px; } .r2-verdict-main { padding: 12px 16px 10px; }
  .r2-tile { padding: 10px 12px; } .r2-sr { margin-top: 10px; } .r2-col { padding: 10px 12px; } .r2-col li { font-size: 12.5px; margin-bottom: 6px; }
  .r2-sec { margin-top: 14px; padding-top: 12px; } .r2-row { padding: 7px 12px; grid-template-columns: 150px 1fr 120px; } .r2-meaning { font-size: 11.5px; margin-top: 3px; }
  .r2-lead { font-size: 14px; } .r2-insight { font-size: 12.5px; }
  .r2-probes { grid-template-columns: 1fr 1fr; }
}
@media print { .report.r2 { zoom: 0.86; } .r2-row { padding: 6px 12px; } .r2 .pbar { margin: 4px 0 0; } }

/* follow-up pop-up */
.fu-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(13,30,26,.45); display: grid; place-items: center; padding: 16px; }
.fu-modal { background: #fff; border-radius: 16px; width: min(760px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.fu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; } .fu-head h2 { margin: 0; font-size: 20px; color: var(--green-dark); }
.fu-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; } .fu-x:hover { background: var(--bg); }
.fu-body { padding: 0 20px 8px; overflow-y: auto; } .fu-body h3 { margin: 12px 0 2px; font-size: 16px; } .fu-body section + section { border-top: 1px solid var(--line); margin-top: 10px; }
.fu-list { display: grid; gap: 8px; margin: 8px 0; }
.fu-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.fu-who b { display: block; } .fu-act { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.fu-date { display: flex; flex-direction: column; gap: 2px; margin: 0; } .fu-date input { min-height: 32px; padding: 4px 8px; }
.fu-err { color: #B42318; font-size: 13px; } .fu-err:empty { display: none; }
.fu-done { color: #1F7A4D; font-weight: 600; }
.fu-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 600px) { .fu-overlay { padding: 0; place-items: end stretch; } .fu-modal { border-radius: 16px 16px 0 0; max-height: 92vh; max-height: 92dvh; } .fu-foot .btn { flex: 1; } }
@media print { .fu-overlay { display: none; } }
.help-block { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; } .help-block h3 { margin: 0 0 4px; font-size: 15px; }
.help-send { margin-top: 6px; } .help-send .row { margin: 4px 0; }
.help-send input[type=email] { min-width: 280px; }
.fu-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.fu-stop { border-color: transparent; color: var(--muted); font-weight: 500; } .fu-stop:hover { color: #B42318; border-color: transparent; text-decoration: underline; }
.fu-bulk p { margin: 0; }
.fu-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 10px; margin: 8px 0; }
.fu-bar label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.card.slim { padding: 10px 16px; } .card.slim .row { margin: 0; }

.keybox { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-size: 14px; margin: 6px 0 8px; user-select: all; }
input.short { max-width: 160px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* brand: the Right to Hire logo on every admin screen */
.top .logo { width: 34px; height: 34px; }
.top .wordmark { height: 30px; }
body:not(.authed) .top { position: static; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 36px 16px 6px; border-bottom: 0; background: transparent; }
body:not(.authed) .top .logo { width: 96px; height: 96px; }
body:not(.authed) .top .wordmark { height: 56px; }
body:not(.authed) .top .adm { border-left: 0; padding: 0; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
body:not(.authed) .top .grow { display: none; }
@media (min-width: 1000px) {
  body.authed .top .logo { display: block; width: 64px; height: 64px; margin: 2px 8px 2px; }
}
