:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --text: #121826;
  --muted: #5b6475;
  --border: #e2e6ec;
  --border-strong: #c8cdd6;
  --blue: #1f5fbf;
  --blue-hover: #194f9f;
  --blue-soft: #e8f0fb;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber: #8a5300;
  --amber-soft: #fdf3e1;
  --green: #1d6b3a;
  --green-soft: #e7f4ec;
  --navy: #0f1b2d;
  --navy-2: #1b2a42;
  --navy-line: #24354f;
  --navy-text: #c9d3e1;
  --navy-muted: #8b98ad;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --focus: 0 0 0 3px rgba(31, 95, 191, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
p { margin: 0 0 8px; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* Buttons: one primary per screen, everything else secondary. */
.btn { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow); }
.btn svg.i { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.danger { color: var(--red); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--blue); padding: 0; cursor: pointer; text-decoration: underline; }

input, select, textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 72px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; font-weight: 400; }
.check input { width: auto; }
.error-text { color: var(--red); font-size: 13px; margin-top: 4px; }

/* App shell: dark sidebar, light content. Below 768px the sidebar becomes a menu drawer. */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: var(--navy-text); display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.brand svg.i { width: 22px; height: 22px; color: var(--blue); }
.side .brand { color: #fff; padding: 4px 8px 16px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 17px; }
.side .brand svg.i { color: #fff; }
.side-label { font-size: 12px; color: var(--navy-muted); padding: 12px 10px 4px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side select { background: var(--navy-2); color: #fff; border-color: var(--navy-line); margin-bottom: 4px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--navy-text); text-decoration: none; }
.side nav a:hover { background: var(--navy-2); color: #fff; }
.side nav a[aria-current="page"] { background: var(--blue); color: #fff; font-weight: 600; }
.side nav + nav { margin-top: 8px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--navy-line); padding: 12px 6px 0; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; color: #fff; }
.side-foot .who span { display: block; color: var(--navy-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { background: none; border: 0; color: var(--navy-text); padding: 6px; border-radius: var(--radius); cursor: pointer; display: inline-flex; }
.iconbtn:hover { background: var(--navy-2); color: #fff; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.side .avatar { background: var(--navy-2); color: #fff; }

.content { min-width: 0; display: flex; flex-direction: column; }
.banner { padding: 8px 24px; font-size: 13px; margin: 0; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
/* Top bar above every page: business picker and the alerts bell. */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .picker { width: auto; min-width: 240px; max-width: 100%; font-weight: 600; }
.topbar .picker-name { font-size: 15px; }
.topbar .iconbtn { color: var(--muted); position: relative; }
.topbar .iconbtn:hover, .topbar .iconbtn[aria-current="page"] { background: var(--surface-2); color: var(--blue); }
.demo-strip { display: flex; align-items: center; gap: 8px; padding: 8px 32px; }
.banner.bad { background: var(--red-soft); color: var(--red); }
.main { padding: 28px 32px; width: 100%; max-width: 1180px; min-width: 0; }
.main > .banner { border-radius: var(--radius); margin-bottom: 16px; padding: 10px 14px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
.card .page-head { margin-bottom: 4px; align-items: center; }
.back { display: inline-block; margin-bottom: 12px; text-decoration: none; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat .label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.stat .note { font-size: 12px; color: var(--muted); }
.stat .value.quiet { font-size: 16px; color: var(--muted); padding: 5px 0; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover, a.stat:focus-visible { border-color: var(--blue); }

/* Icon chips: colour follows severity */
.ic { flex: none; width: 34px; height: 34px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.ic.critical, .ic.high { background: var(--red-soft); color: var(--red); }
.ic.medium { background: var(--amber-soft); color: var(--amber); }
.ic.good { background: var(--green-soft); color: var(--green); }
.ic.info { background: var(--blue-soft); color: var(--blue); }
.stat .ic { width: 28px; height: 28px; }
.stat .ic svg.i { width: 16px; height: 16px; }

/* Security score */
.score-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.score-grid .stats { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.score svg { width: 120px; height: 120px; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.ring { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring.good { stroke: var(--green); }
.ring.fair { stroke: #c98a1c; }
.ring.poor { stroke: var(--red); }
.ring.none { stroke: var(--muted); }
.ring-num { font-size: 26px; font-weight: 700; fill: var(--text); }
.score .verdict { font-weight: 600; font-size: 15px; }
.how { margin-top: 8px; font-size: 12px; color: var(--muted); }
.how summary { cursor: pointer; color: var(--blue); }
.how p { margin: 6px 0 0; text-align: left; }

.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; display: inline-block; font-weight: 600; white-space: nowrap; }
.sev-critical { background: var(--red); color: #fff; }
.sev-high { background: var(--red-soft); color: var(--red); }
.sev-medium { background: var(--amber-soft); color: var(--amber); }
.sev-low { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.st-yes { background: var(--green-soft); color: var(--green); }
.st-no { background: var(--red-soft); color: var(--red); }
.st-unknown { background: var(--amber-soft); color: var(--amber); }
.st-neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.list-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.list-row:first-of-type { border-top: 0; }
.list-row .body { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; }
.list-row .side-tags { display: flex; gap: 8px; align-items: center; flex: none; }
.meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.detail { font-size: 13px; margin: 0; }
.detail + .detail { margin-top: 2px; }
.detail b { font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; position: relative; }
.card.table-wrap { padding: 0; }
.card.table-wrap > table { min-width: 640px; }
.card.table-wrap > table.rtable { min-width: 0; }
.card.table-wrap > .state { padding: 40px 16px; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 20px; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell strong { display: block; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.saved-views { align-items: center; }
.saved-views .chip svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.block-tag { display: inline-block; margin-top: 4px; }
.chip { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 600; }

.state { text-align: center; padding: 40px 16px; color: var(--muted); }
.state h2 { color: var(--text); }
.state .ic { width: 44px; height: 44px; margin-bottom: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0; border-top: 1px solid var(--border); }
.timeline li:first-child { border-top: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; z-index: 20; }
.toast:empty { display: none; }

/* Sign-in: product panel beside the form */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-panel { background: var(--navy); color: var(--navy-text); padding: 48px; display: flex; flex-direction: column; gap: 24px; }
.auth-panel .brand { color: #fff; }
.auth-panel .brand svg.i { color: #fff; }
.auth-panel h2 { color: #fff; font-size: 26px; line-height: 1.25; margin: auto 0 0; max-width: 440px; }
.auth-panel ul { list-style: none; padding: 0; margin: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.auth-panel li { display: flex; gap: 10px; align-items: flex-start; }
.auth-panel li svg.i { color: #7fb08f; margin-top: 2px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-form h1 { margin-bottom: 4px; }
.auth-form form { margin-top: 20px; }
.auth-form .btn.primary { width: 100%; justify-content: center; padding: 10px 14px; }
.demo-list { margin-top: 28px; }
.demo-list h2 { margin-bottom: 4px; }
.center { max-width: 420px; margin: 10vh auto; padding: 0 16px; }
.center .card { padding: 24px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 1px; background: var(--surface-2); padding: 8px 10px; border-radius: var(--radius); word-break: break-all; }

/* Report */
body.report main { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
body.report .banner { border-radius: var(--radius); margin-bottom: 16px; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .score-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar .picker { min-width: 0; flex: 1; }
  .main { padding: 16px; }
  .banner { padding: 8px 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .task-grid > :last-child { order: -1; }
  /* Fix-task list: each row becomes a small stacked card, no sideways scroll. */
  .card.table-wrap > table.task-table { min-width: 0; }
  .task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .task-table, .task-table tbody { display: block; }
  .task-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .task-table tr:last-child { border-bottom: 0; }
  .task-table td { display: block; padding: 0; border: 0; }
  .table-wrap .task-table td:first-child { padding-left: 0; }
  .task-table .c-sev { order: 1; }
  .task-table .c-status { order: 2; }
  .task-table .c-task { order: 3; flex-basis: 100%; font-weight: 600; }
  .task-table .c-owner { order: 4; }
  .task-table .c-updated { order: 5; }
  .task-table .c-owner, .task-table .c-updated { color: var(--muted); font-size: 13px; }
  .task-table .c-owner::before, .task-table .c-updated::before { content: attr(data-label) ": "; }
  .task-table .c-owner::after { content: " ·"; }
  .ticket-table { min-width: 0; }
  .ticket-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ticket-table, .ticket-table tbody { display: block; }
  .ticket-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .ticket-table tr:last-child { border-bottom: 0; }
  .ticket-table td { display: block; padding: 0; border: 0; }
  .table-wrap .ticket-table td:first-child { padding-left: 0; }
  .ticket-table .c-task, .ticket-table .c-tech { flex-basis: 100%; }
  .ticket-table .c-remote::before, .ticket-table .c-local::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  body.report .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-direction: column; }
  .score-grid .stats { grid-template-columns: minmax(0, 1fr); }
  .score { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: center; justify-items: start; text-align: left; }
  .score svg { width: 72px; height: 72px; grid-row: span 3; }
  .list-row { flex-wrap: wrap; }
  .list-row .body { flex-basis: calc(100% - 48px); }
  .list-row .side-tags { margin-left: 48px; }
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-panel { padding: 24px 16px; gap: 12px; }
  .auth-panel h2 { font-size: 20px; margin: 0; }
  .auth-panel ul { display: none; }
}

@media print {
  .btn, .skip { display: none; }
  body { background: #fff; }
  .card { break-inside: avoid; border-color: #ccc; box-shadow: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flush { margin: 0; }
.tight { margin-bottom: 4px; }
.why { margin: 2px 0; }
.spaced { margin-top: 12px; }
.ml { margin-left: 12px; }
.middle { align-items: center; }
.grow { flex: 1; }
.btn.block { display: flex; width: 100%; text-align: left; margin-top: 8px; white-space: normal; justify-content: flex-start; box-shadow: none; }
.banner .btn { margin-top: 4px; }

/* Prospect report branding */
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-logo { max-height: 44px; max-width: 160px; }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.brand-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Customer report */
.sim-stamp { font-size: 15px; border: 2px solid var(--amber); }
ol.actions { margin: 0; padding-left: 22px; display: grid; gap: 16px; }
ol.actions li p { margin: 4px 0; }
.action-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.report h3 { font-size: 15px; margin: 12px 0 4px; }
@media print { #print, .sim-stamp { break-inside: avoid; } #print { display: none; } }

/* Task status, evidence, client context */
.st-info { background: var(--blue-soft); color: var(--blue); }
.banner.good { background: var(--green-soft); color: var(--green); }
.banner .i { width: 16px; height: 16px; vertical-align: -3px; }
dl.evidence { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 8px 0; }
dl.evidence dt { color: var(--muted); font-size: 13px; }
dl.evidence dd { margin: 0; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.sev-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.sev-pills .tag { min-width: 28px; justify-content: center; text-align: center; }
.score-pill { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-pill.bad { color: var(--red); } .score-pill.mid { color: var(--amber); } .score-pill.ok { color: var(--green); }
.note-box { border-left: 3px solid var(--blue); background: var(--blue-soft); padding: 10px 14px; border-radius: var(--radius); margin: 12px 0; font-size: 13px; }
.readiness h3 { margin-top: 16px; }
.readiness table td:first-child { white-space: nowrap; font-weight: 600; }
.card.attention { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; border-left: 4px solid var(--red); }
.card.attention > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card.attention:hover { border-color: var(--red); background: var(--surface-2); }
.card p, .card li { overflow-wrap: anywhere; }

/* Deletion */
.danger-zone { border: 1px solid var(--red); }
.danger-zone h2 { color: var(--red); }
.who-cell .tag { margin-top: 4px; align-self: flex-start; }
.demo-mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; background: var(--surface); padding: 8px 10px; border-radius: var(--radius); margin: 8px 0; }
.row-actions { white-space: nowrap; } .row-actions .linkbtn + .linkbtn { margin-left: 12px; }
.align-end { align-items: flex-end; }
.align-end > .btn { margin-bottom: 2px; }
pre.code { white-space: pre-wrap; letter-spacing: 0; font-size: 13px; }
.meta .i { width: 14px; height: 14px; vertical-align: -2px; }
.card.table-wrap > h2, .card.table-wrap > p { padding: 0 20px; }
.card.table-wrap > h2:first-child { padding-top: 18px; }
form.card h2:not(:first-child) { margin-top: 20px; }
.sources { margin: 0 0 16px; }

/* Polish round 1: tables */
.stack { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.row.tight { gap: 4px; flex-wrap: wrap; }
td.col-main { min-width: 220px; }
a.plain { color: var(--text); text-decoration: none; }
a.plain:hover, a.plain:focus-visible { color: var(--blue); text-decoration: underline; }
.nowrap { white-space: nowrap; }
/* Compliance */
a.chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.plain-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
/* Business review */
.trend { width: 100%; height: 120px; margin-top: 8px; }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.trend-dot { fill: var(--blue); }
.trend-grid { stroke: var(--border-strong); stroke-dasharray: 4 4; }
.trend-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 0; }
@media print { .report-head .filters { display: none; } }

/* Redesign (owner-approved mockup, 2026-11-22): attention first, owner and next step in tables. */
.block { display: block; }
.btn.sm { font-size: 13px; padding: 4px 12px; box-shadow: none; }
.btn.outline { color: var(--blue); border-color: var(--blue); }
.btn.outline:hover { background: var(--blue-soft); border-color: var(--blue); }
.top-stats { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.top-stats .stat .label svg.i { color: var(--muted); }
.stat.attn { background: var(--red-soft); border-color: var(--red-soft); }
.stat.attn .label, .stat.attn .label svg.i { color: var(--red); font-size: 15px; }
.stat.attn .value { font-size: 17px; }
.stat.unknown { background: var(--amber-soft); border-color: var(--amber-soft); }
.stat.unknown .label, .stat.unknown .label svg.i { color: var(--amber); font-size: 15px; }
.stat.unknown .value { font-size: 17px; }
.stat.ok .label, .stat.ok .label svg.i { color: var(--green); font-size: 15px; }
.stat.ok .value { font-size: 17px; }
.cov-list { list-style: none; margin: 0 0 8px; padding: 0; }
.cov-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.cov-row:first-child { border-top: 0; }
.cov-row.top { align-items: flex-start; }
.cov-row > svg.i { color: var(--muted); }
.info-strip { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--muted); font-size: 13px; }
.info-strip svg.i { flex: none; color: var(--blue); width: 16px; height: 16px; margin-top: 2px; }
.rtable td.c-act { text-align: right; }

/* Findings: list beside a detail drawer */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 16px; align-items: start; }
.drawer { position: sticky; top: 16px; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.drawer-head h2 { font-size: 18px; margin: 0 0 8px; }
.drawer-head .iconbtn { color: var(--muted); }
.drawer-head .iconbtn:hover { background: var(--surface-2); color: var(--text); }
.drawer .muted svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.drawer-fields { margin-top: 12px; }
.drawer-actions { margin: 4px 0 12px; }
.finding-table tr.selected td { background: var(--blue-soft); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 8px 0 12px; overflow-x: auto; }
.tab { font: inherit; font-size: 14px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.callout { display: flex; gap: 8px; align-items: flex-start; background: var(--amber-soft); color: var(--amber); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.callout svg.i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* Fix tasks board: five columns; on narrower screens the tabs pick one column. */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 140px; }
.col h2 { font-size: 13px; margin: 0 0 4px; }
.col.col-awaiting { background: var(--amber-soft); border-color: var(--amber-soft); }
.col.col-awaiting h2 { color: var(--amber); }
.tcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.tcard .muted svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.tcard .tag { white-space: normal; }
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .board > .col:not(.is-active) { display: none; }
}

/* Monitoring */
.cov-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cov-cards .stat .label { color: var(--text); font-weight: 600; flex-direction: column; align-items: flex-start; gap: 6px; }
.cov-cards .stat .label svg.i { color: var(--muted); }
.status-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--red); }
.dot.warn { background: var(--amber); }
details.checklist > summary { list-style: none; cursor: pointer; }
details.checklist > summary::-webkit-details-marker { display: none; }
.checklist-head { display: flex; align-items: center; gap: 12px; }
.checklist-head > svg.i { color: var(--muted); width: 22px; height: 22px; }

/* Customer report preview, and the printable report's header */
.report-preview { padding: 0; overflow: hidden; }
.report-hero { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 14px 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.report-hero .hero-sub { font-weight: 500; color: var(--navy-text); }
.report-hero svg.i { color: #fff; }
body.report .report-title h1 { font-size: 22px; }
@media print { .report-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.report-body { padding: 20px 24px; }
.report-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.report-title h2 { font-size: 20px; margin: 0; }
.report-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-list { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.report-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); }
.report-list li:first-child { border-top: 0; }
.report-list .ic { width: 26px; height: 26px; }
.report-list .ic svg.i { width: 14px; height: 14px; }
.report-body .small svg.i { width: 14px; height: 14px; vertical-align: -2px; }

@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .drawer { order: -1; position: static; }
}

@media (max-width: 1000px) {
  .top-stats, .cov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-stats { grid-template-columns: minmax(0, 1fr); }
  /* Data tables become stacked rows on phones: no sideways scrolling. */
  .card.table-wrap > table.rtable, table.rtable { min-width: 0; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable, .rtable tbody { display: block; }
  .rtable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .rtable tr:last-child { border-bottom: 0; }
  .rtable td { display: block; padding: 0; border: 0; }
  .table-wrap .rtable td:first-child { padding-left: 0; }
  .rtable .c-main { flex-basis: 100%; }
  .rtable td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .rtable td.c-act { margin-left: auto; }
  .tabs { flex-wrap: wrap; }
  .rtable td .tag { white-space: normal; }
}

.demo-group { flex-basis: 100%; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Joiners and leavers */
.wf-list { list-style: none; margin: 8px 0 0; padding: 0; }
.wf-list li + li { border-top: 1px solid var(--border); }
.wf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.wf-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.wf-steps { list-style: none; padding: 0; margin: 12px 0; }
.wf-step { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.wf-step + .wf-step { border-top: 1px solid var(--border); }
.wf-step-main { min-width: 0; flex: 1; }
.wf-step-main > * + * { margin-top: 2px; }
.wf-step-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; max-width: 45%; }
.wf-step-side .tag { white-space: normal; text-align: right; }
.info-strip.warn { border-color: var(--amber); background: var(--amber-soft); color: var(--text, inherit); }
.info-strip.warn svg.i { color: var(--amber); }
form.narrow { max-width: 560px; }
form.narrow label + label, form.narrow label + p { margin-top: 12px; }
@media (max-width: 760px) {
  .wf-row { flex-direction: column; align-items: flex-start; }
  .wf-meta { align-items: flex-start; text-align: left; }
  .wf-step { flex-direction: column; gap: 8px; }
  .wf-step-side { align-items: flex-start; max-width: none; }
  .wf-step-side .tag { text-align: left; }
}
.row.between { justify-content: space-between; }
.wf-row .block, .wf-step .block { display: block; }

/* Insurance readiness */
.ins-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ins-head h1, .ins-head h2 { margin: 0; }
body.report .ins-control { margin-top: 12px; }
.ins-q { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.ins-q fieldset { border: 0; padding: 0; margin: 8px 0; }
.ins-q legend { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.ins-q .choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ins-q .grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.ins-evidence { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 760px) { .ins-q .grid2 { grid-template-columns: 1fr; } }
.ins-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.warn-text { color: var(--amber); }
.sticky-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; background: var(--bg, #f4f6f9); margin-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .ins-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Risk trends */
.trend-lg { height: 160px; }
.trend-fail { stroke: var(--red); stroke-width: 2; opacity: 0.35; }
.trend-verdict { margin: 12px 0; }
.trend-verdict .tag { margin-right: 6px; }
.explain { list-style: none; padding: 0; margin: 8px 0 0; }
.explain li { padding: 4px 0; }
.explain .tag { min-width: 36px; text-align: center; margin-right: 6px; }
label.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
label.inline select { width: auto; }
.block-tag { display: inline-block; margin-top: 4px; }
.monthly-table td.c-main { min-width: 170px; }
.monthly-table th { white-space: normal; }

/* Notification center: one record per alert event */
.iconbtn.bell { position: relative; }
.iconbtn.bell .badge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.events { list-style: none; margin: 0; padding: 0; }
.events .event { border-bottom: 1px solid var(--border); padding: 12px 0; }
.events .event:last-child { border-bottom: 0; }
.event-main { display: flex; gap: 12px; align-items: flex-start; }
.event-main .body { flex: 1; min-width: 0; }
.event-main .title { font-weight: 600; }
.event.unread .title { color: var(--blue); }
.event .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.recipients { margin: 6px 0 0 20px; font-size: 13px; }
.recipients summary { cursor: pointer; color: var(--muted, #667); }
.recipients ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 6px; }
.recipients li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) { .event-main { flex-wrap: wrap; } .event-main .side-tags { width: 100%; justify-content: flex-start; } }

/* Global search */
.topsearch { position: relative; flex: 1; max-width: 420px; }
.topsearch svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted, #667); pointer-events: none; }
.topsearch input { width: 100%; padding: 8px 10px 8px 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg, #f6f7f9); font: inherit; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.results li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .topbar { flex-wrap: wrap; } .topsearch { order: 3; max-width: none; flex-basis: 100%; } }

/* Role-based dashboards */
.dash-role { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.dash-role svg { width: 14px; height: 14px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid > .card { margin: 0; }
.dash-card h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dash-card h2 svg { width: 16px; height: 16px; color: var(--blue); }
.dash-list { list-style: none; margin: 0; padding: 0; }
ol.dash-list { counter-reset: d; }
.dash-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dash-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.tile strong { font-size: 26px; line-height: 1.1; }
.tile span { color: var(--muted); font-size: 13px; }
a.tile:hover { border-color: var(--border-strong); }
.tile.bad strong { color: var(--red); }
.tile.warn strong { color: var(--amber); }
.riskbar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 0 14px; background: var(--surface-2); }
.rb-critical { fill: #9f1239; } .rb-high { fill: #e0475b; } .rb-medium { fill: #f29d38; } .rb-low { fill: #f2cf4a; } .rb-none { fill: var(--green-soft); }
.riskcounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.riskcounts .rc { display: flex; flex-direction: column; padding-left: 10px; border-left: 3px solid; }
.riskcounts .rc strong { font-size: 20px; }
.riskcounts .rc span { color: var(--muted); font-size: 12px; }
.rc-critical { border-color: #9f1239; } .rc-high { border-color: #e0475b; } .rc-medium { border-color: #f29d38; } .rc-low { border-color: #f2cf4a; }
@media (max-width: 900px) { .dash-grid, .dash-grid.three { grid-template-columns: 1fr; } .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Urgent now: phone-first incident view */
.urgent-h { font-size: 15px; margin: 18px 0 8px; color: var(--muted); }
.urgent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.urgent-card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.urgent-card.sev-edge-critical { border-left-color: #9f1239; }
.urgent-card.sev-edge-high { border-left-color: #e0475b; }
.urgent-card.sev-edge-medium { border-left-color: #f29d38; }
.urgent-card h2 { font-size: 16px; margin: 8px 0 4px; line-height: 1.35; }
.urgent-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.urgent-step { margin: 8px 0; }
.urgent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn.big { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.urgent-review { flex-basis: 100%; }
.urgent-review summary { list-style: none; display: inline-flex; }
.urgent-review summary::-webkit-details-marker { display: none; }
.urgent-review[open] summary { margin-bottom: 8px; }
.urgent-review form { display: grid; gap: 8px; }
.urgent-review textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
@media (max-width: 640px) {
  .urgent-actions .btn, .urgent-review summary { width: 100%; justify-content: center; }
  .urgent-card { padding: 14px; }
}
.guide { margin-top: 4px; font-size: 13px; }
.guide summary { cursor: pointer; color: var(--blue); }
.guide ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.perm-list { margin: 8px 0; padding-left: 20px; }

/* Devices & backups */
details.inline-form { display: inline-block; margin-right: 6px; }
details.inline-form[open] { display: block; margin: 6px 0; }
details.inline-form form { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }

/* Training */
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lesson-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.lesson-points li { margin-bottom: 8px; }
.quiz-q { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin: 0; }
.quiz-q legend { font-weight: 600; padding: 0 4px; }
.quiz-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-weight: 400; }
.phish-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.phish-card { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 12px; background: var(--surface-2); min-width: 0; overflow-wrap: anywhere; }
.phish-result { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.phish-result h3 { font-size: 15px; margin: 0 0 4px; }

/* White-label report branding: a fixed set of accents, each 4.5:1 or better against white text. */
.report.brand-navy { --brand: #1b2a4a; }
.report.brand-blue { --brand: #1d4ed8; }
.report.brand-teal { --brand: #0f766e; }
.report.brand-green { --brand: #15803d; }
.report.brand-purple { --brand: #6d28d9; }
.report.brand-plum { --brand: #86198f; }
.report.brand-slate { --brand: #334155; }
.report.brand-red { --brand: #b91c1c; }
.report .report-hero { background: var(--brand, var(--navy)); }
.report .brand-mark { background: var(--brand, var(--blue)); color: #fff; }
.report .hero-logo { height: 28px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px 4px; }
.report-brand-footer { margin: 24px 0 8px; padding-top: 12px; border-top: 3px solid var(--brand, var(--navy)); color: var(--muted); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.swatch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-weight: 400; cursor: pointer; }
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.brand-navy { background: #1b2a4a; } .dot.brand-blue { background: #1d4ed8; } .dot.brand-teal { background: #0f766e; } .dot.brand-green { background: #15803d; }
.dot.brand-purple { background: #6d28d9; } .dot.brand-plum { background: #86198f; } .dot.brand-slate { background: #334155; } .dot.brand-red { background: #b91c1c; }
.swatch:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.report .report-hero .hero-sub { color: rgba(255, 255, 255, 0.85); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }

/* Owner questions */
.owner-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.owner-q h2 { font-size: 16px; }
.owner-a { margin: 10px 0; }
.briefing section h3 { font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
@media (max-width: 400px) { .owner-qs { grid-template-columns: 1fr; } }

/* Policies & evidence */
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ev-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.ev-fw { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 6px; }
.ev-fw summary { cursor: pointer; font-weight: 600; }
.ev-fw .check { padding: 4px 0; align-items: flex-start; }
.pre { white-space: pre-wrap; }
form[data-form="evidence-add"] input:not([type]), form[data-form="evidence-add"] textarea { width: 100%; max-width: 640px; }

/* Incidents */
.playbooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.playbook { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; align-content: start; }
.inc-steps { padding-left: 20px; display: grid; gap: 10px; }
.inc-steps li.done strong { text-decoration: line-through; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--border-strong); padding-left: 10px; }

/* Inventory */
.flush-list { margin: 6px 0 0; padding-left: 18px; color: var(--sev-high, var(--muted)); }
.baseline-table th { font-size: 12px; white-space: nowrap; }
.baseline-table td .tag { white-space: nowrap; }

/* Approvals */
.approvals { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.approval { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 6px; }
.approval p { margin: 0; }
.approval > .btn { justify-self: start; }
.approval form, form[data-form="approval-request"] { max-width: 640px; }
.approval .field :is(input, textarea, select), form[data-form="approval-request"] .field :is(input, textarea, select) { width: 100%; }
.contract-form .field :is(input) { width: 100%; }
.contract-form .row .field { flex: 1 1 140px; }

/* Attack path map */
.attack-map h2 { margin-bottom: 4px; }
.ap-head-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.ap-counts { margin: 0; font-size: 14px; color: var(--muted); }
.ap-counts strong { color: var(--text); font-size: 18px; }
.ap-best { display: flex; gap: 12px; align-items: flex-start; background: var(--blue-soft); border: 1px solid var(--blue); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 16px; }
.ap-best.good { background: var(--green-soft); border-color: var(--green); }
.ap-best .ic { color: var(--blue); flex: none; }
.ap-path { border-top: 1px solid var(--border); padding: 12px 0; }
.ap-path h3 { font-size: 15px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.attack-map { container-type: inline-size; container-name: apmap; }
.ap-scroll { overflow: hidden; }
.ap-svg { display: block; max-width: 100%; height: auto; font-family: var(--font); }
/* Stacked by default; side by side only when the card itself is wide enough for its longest path at full size. */
.ap-svg.h { display: none; }
.ap-svg.v { margin: 0 auto; }
@container apmap (min-width: 820px) { .ap-max4 .ap-svg.h { display: block; } .ap-max4 .ap-svg.v { display: none; } }
@container apmap (min-width: 610px) { .ap-max3 .ap-svg.h { display: block; } .ap-max3 .ap-svg.v { display: none; } }
@container apmap (min-width: 400px) { .ap-max2 .ap-svg.h { display: block; } .ap-max2 .ap-svg.v { display: none; } }
.ap-node { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.ap-node.open { fill: var(--red-soft); stroke: var(--red); }
.ap-node.assumed { fill: var(--surface-2); stroke: var(--border-strong); stroke-dasharray: 4 3; }
.ap-node.not_checked { fill: var(--amber-soft); stroke: var(--amber); stroke-dasharray: 4 3; }
.ap-node.clear { fill: var(--green-soft); stroke: var(--green); }
.ap-node.outcome.possible { fill: var(--navy); stroke: var(--navy); }
.ap-node.outcome.unconfirmed { fill: var(--surface-2); stroke: var(--navy); }
.ap-node.outcome.blocked { fill: var(--surface-2); stroke: var(--border); }
.ap-cap { font-size: 12px; font-weight: 600; fill: var(--muted); }
.ap-txt { font-size: 13px; fill: var(--text); }
.ap-node.outcome.possible ~ .ap-cap { fill: var(--navy-text); }
.ap-node.outcome.possible ~ .ap-txt { fill: #fff; font-weight: 600; }
.ap-node.outcome.blocked ~ text { fill: var(--muted); text-decoration: line-through; }
.ap-arrow { stroke: var(--blue); stroke-width: 2; }
.ap-arrow.cut { stroke: var(--border-strong); stroke-dasharray: 3 4; }
.ap-head { fill: var(--blue); }
.ap-head.cut { fill: var(--border-strong); }
.ap-link:hover .ap-node, .ap-link:focus .ap-node { stroke-width: 3; }
.ap-link:focus { outline: none; }
.ap-blocked summary { cursor: pointer; padding: 10px 0; color: var(--blue); font-weight: 600; }
.ap-tag { margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.ap-health { color: var(--amber); display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }

/* Exposure Scan report (server/exposure-scan.js). Printable: each section starts a new page. */
body.xs .card { margin-bottom: 16px; }
.xs-cover { padding: 0; overflow: hidden; }
.xs-cover h1 { font-size: 30px; margin: 4px 0; }
.xs-org { font-size: 22px; font-weight: 600; margin: 0 0 12px; color: var(--brand, var(--navy)); }
.xs-sample { display: inline-block; border: 2px solid var(--amber); color: var(--text); background: var(--amber-soft); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; padding: 4px 10px; border-radius: var(--radius); margin: 0 0 12px; }
.xs-meta { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0; }
.xs-meta dt { color: var(--muted); font-size: 13px; }
.xs-meta dd { margin: 0; overflow-wrap: anywhere; }
.xs-run { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin: 0 0 12px; }
.xs-contents { columns: 2 260px; padding-left: 22px; }
.xs-contents li { margin-bottom: 4px; break-inside: avoid; }
.xs-headline { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 4px 0 6px; }
.xs-lead { color: var(--muted); margin: 0 0 16px; }
.xs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.xs-tile { border: 1px solid var(--border); border-top: 4px solid var(--brand, var(--navy)); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.xs-tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.xs-tile .value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.xs-tile .note { font-size: 12px; color: var(--muted); }
.xs-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .xs-two { grid-template-columns: minmax(0, 1fr); } }
.xs-chart { display: block; width: 100%; height: auto; font-family: var(--font); }
.xs-bar { fill: var(--brand, var(--navy)); }
.xs-axis { stroke: var(--border-strong); stroke-width: 1; }
.xs-tick { font-size: 12px; fill: var(--muted); }
.xs-mark { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; }
.xs-mark-label { font-size: 12px; font-weight: 700; fill: var(--red); }
.xs-moves { padding-left: 20px; display: grid; gap: 10px; margin: 0 0 8px; }
.xs-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.xs-sources li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; align-items: center; }
.xs-sources .tag { white-space: normal; text-align: right; }
.xs-idlabel, .xs-id { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xs-table td { vertical-align: top; }
.xs-item, .xs-action { border: 1px solid var(--border); border-left: 4px solid var(--brand, var(--navy)); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; break-inside: avoid; }
.xs-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.xs-item-head h3 { flex: 1 1 280px; font-size: 16px; }
.xs-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .xs-split { grid-template-columns: minmax(0, 1fr); } }
.xs-stages { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.xs-stage { display: flex; gap: 10px; align-items: flex-start; }
.xs-stage .tag { flex: none; min-width: 92px; text-align: center; }
.xs-stage.outcome strong { color: var(--brand, var(--navy)); }
.xs-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 8px 0; font-size: 13px; align-self: start; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius); }
.xs-facts dt { color: var(--muted); }
.xs-facts dd { margin: 0; }
.xs-fix { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); }
.xs-group { margin-top: 20px; }
.xs-signoff { margin-top: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; }
.xs-sign { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; margin-top: 28px; font-size: 12px; color: var(--muted); }
.xs-sign span { border-top: 1px solid var(--text); padding-top: 4px; }
.xs-confidential { text-align: center; }
.xs-offer-list { padding-left: 20px; display: grid; gap: 6px; }
@media print {
  body.xs .xs-page { break-before: page; }
  body.xs .xs-cover { break-before: auto; }
  body.xs .xs-item, body.xs .xs-action, body.xs .xs-tile { break-inside: avoid; }
  .xs-bar, .xs-tile, .xs-sample { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .xs-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .xs-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* ---------- Sidebar groups, Urgent shortcut and the phone menu drawer ---------- */
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-close, .nav-open, .scrim { display: none; }
.side nav a span, .nav-group summary span { flex: 1; min-width: 0; }
.side nav a.nav-urgent { color: #ffd2cc; background: rgba(180, 35, 24, 0.18); border: 1px solid rgba(255, 140, 120, 0.25); margin-bottom: 6px; }
.side nav a.nav-urgent:hover { background: rgba(180, 35, 24, 0.32); color: #fff; }
.side nav a.nav-urgent[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.side-rule { border: 0; border-top: 1px solid var(--navy-line); margin: 10px 6px; }
.nav-group summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); cursor: pointer; list-style: none; color: var(--navy-text); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--navy-2); color: #fff; }
.nav-group summary svg.i:last-child { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-group[open] summary svg.i:last-child { transform: rotate(180deg); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 18px; }
.nav-sub a { font-size: 13.5px; padding: 7px 12px; }
.picker-label { margin: 0; font-size: 13px; color: var(--muted); }
.main > .demo-strip { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--amber-soft); color: var(--amber); border: 1px solid #f1dcb1; font-size: 13px; }
.main > .demo-strip svg.i { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; z-index: 40; transform: translateX(-105%);
    transition: transform 0.2s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25); }
  .app.nav-shown .side { transform: none; }
  .app.nav-shown .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 27, 45, 0.45); z-index: 30; }
  .side-close, .nav-open { display: inline-flex; }
  .topbar { position: sticky; top: 0; z-index: 20; }
  .side nav a, .nav-group summary { min-height: 44px; }
  .topbar .iconbtn, .side .iconbtn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .picker-label, .demo-more { display: none; }
  .main > .demo-strip { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .side, .nav-group summary svg.i:last-child { transition: none; } }

/* ---------- Security briefing (overview) ---------- */
.brief-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: 16px; color: var(--muted); margin: 2px 0 6px; }
.textlink { font: inherit; font-weight: 500; background: none; border: 0; padding: 8px 4px; color: var(--blue); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.textlink:hover { text-decoration: underline; }
.textlink svg.i, .prio-all svg.i, .wait-row a svg.i { width: 16px; height: 16px; }
.brief-head .actions { gap: 16px; }
.sum-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px 0; }
.sum-item { padding: 0 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.sum-item:first-child { border-left: 0; }
.sum-item strong { font-size: 28px; line-height: 1.15; font-weight: 700; }
.sum-item span { color: var(--muted); font-size: 14px; }
.sum-item.attn strong { color: var(--red); }
/* Change since an earlier point, under each summary number. Colour follows good or bad, the arrow follows up or down. */
.delta { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 6px; align-self: flex-start; padding: 2px 8px; border-radius: 999px; }
.sum-item .delta span { color: inherit; font-size: inherit; }
.delta.good { background: var(--green-soft); color: var(--green); }
.delta.bad { background: var(--amber-soft); color: var(--amber); }
.delta.flat { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.brief-grid > .card, .brief-side > .card { margin-bottom: 0; }
.brief-side, .brief-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.brief-main > .card, #scenario-slot > .card { margin-bottom: 0; }
#scenario-slot:empty { display: none; }
.panel-head.one-row { flex-wrap: nowrap; }
.panel-head.top { align-items: flex-start; }
.nowrap { white-space: nowrap; }
.brief-grid.low { margin-top: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head > div { min-width: 0; }
.card h2 { font-size: 17px; }
.seg { display: inline-flex; gap: 6px; }
.seg-btn { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; min-height: 34px; }
.seg-btn[aria-pressed="true"] { background: var(--blue-soft); border-color: #b9cdee; color: var(--blue); font-weight: 600; }
.prio-list, .fresh-list, .wait-list, .act-list { list-style: none; margin: 0; padding: 0; }
.prio-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 84px 108px 20px; align-items: center; gap: 14px; padding: 12px 4px;
  border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.prio-list li:last-child .prio-row { border-bottom: 1px solid var(--border); }
.prio-row:hover { background: var(--surface-2); }
.prio-row:hover strong { color: var(--blue); }
.prio-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.prio-ic svg.i { width: 20px; height: 20px; }
.prio-ic.warn { background: var(--amber-soft); color: var(--amber); }
.prio-main { min-width: 0; display: flex; flex-direction: column; }
.prio-main strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prio-asset { font-size: 13px; color: var(--muted); }
.scen-note { color: var(--amber); }
.prio-owner { font-size: 14px; }
.prio-owner.none { color: var(--muted); }
.prio-go { color: var(--muted); display: inline-flex; }
.prio-all { margin-top: 14px; }
.prio-all a, .wait-row a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.fresh-row, .wait-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.fresh-row:first-child, .wait-row:first-child { border-top: 0; }
.wait-row { align-items: flex-start; }
.fresh { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fr-ok { background: var(--green-soft); color: var(--green); }
.fr-partial { background: var(--amber-soft); color: var(--amber); }
.fr-stale { background: var(--surface); color: var(--amber); border: 1px dashed var(--amber); }
.fr-failed { background: var(--red); color: #fff; }
.fr-none { background: var(--red-soft); color: var(--red); }
.fr-na { background: #eef0f4; color: #3d4656; }
.fresh-more { margin: 8px 0; font-size: 13px; }
.fresh-more summary { cursor: pointer; color: var(--blue); padding: 6px 0; }
.wait-owner { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.wait-owner a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.wait-owner svg.i { width: 16px; height: 16px; }
.scen-card { display: flex; align-items: center; gap: 16px; }
.act-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.act-list li:first-child { border-top: 0; }
.act-list li { align-items: flex-start; }
.act-ic { width: 32px; height: 32px; border-radius: 999px; background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.act-ic svg.i { width: 16px; height: 16px; }
.act-ic.good { background: var(--green-soft); color: var(--green); }
.act-ic.warn { background: var(--amber-soft); color: var(--amber); }
.act-list .nowrap { padding-top: 2px; }

.plainbtn { color: var(--muted); }
.plainbtn:hover { background: var(--surface-2); color: var(--text); }
.scen-best { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.scen-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; margin: 12px 0; }
.scen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scen-pick { font: inherit; text-align: left; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; color: var(--text); min-height: 44px; }
.scen-pick[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.scen-detail h3 { margin-top: 0; font-size: 15px; }
.scen-steps { list-style: none; margin: 0; padding: 0; }
.scen-step { position: relative; padding: 10px 12px 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); margin-bottom: 22px; }
.scen-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -20px; height: 16px; border-left: 2px solid var(--border-strong); }
.scen-step.open { border-left-color: var(--red); }
.scen-step.assumed, .scen-step.not_checked { border-left-color: #b58a3a; }
.scen-step.clear { border-left-color: var(--green); }
.scen-step.outcome { background: var(--surface-2); margin-bottom: 0; }
.scen-step .small svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.scen-step .tag { margin-bottom: 4px; }

@media (max-width: 1000px) {
  .brief-grid, .brief-grid.low { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .brief-head h1 { font-size: 24px; }
  .brief-head .actions { width: 100%; justify-content: space-between; }
  .sum-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 0; }
  .sum-item { padding: 12px 16px; border-left: 0; border-top: 1px solid var(--border); }
  .sum-item:nth-child(-n+2) { border-top: 0; }
  .sum-item:nth-child(even) { border-left: 1px solid var(--border); }
  .sum-item strong { font-size: 24px; }
  .card { padding: 16px; }
  .prio-row { grid-template-columns: 40px minmax(0, 1fr) 20px; grid-template-areas: "ic main go" "ic meta go"; row-gap: 6px; min-height: 44px; }
  .prio-ic { grid-area: ic; align-self: start; }
  .prio-main { grid-area: main; }
  .prio-main strong, .prio-asset { white-space: normal; }
  .prio-sev, .prio-owner { grid-area: meta; }
  .prio-sev { justify-self: start; }
  .prio-owner { justify-self: start; margin-left: 84px; font-size: 13px; }
  .prio-go { grid-area: go; }
  .seg-btn { min-height: 44px; }
  .textlink { min-height: 44px; }
  .scen-body { grid-template-columns: minmax(0, 1fr); }
  .scen-detail { order: -1; }
  .scen-pick { flex-direction: row; align-items: center; gap: 8px; }
  .scen-card { flex-wrap: wrap; }
}

/* ---------- Findings: status tabs, search, owner column, bulk assign ---------- */
.flist { padding: 8px 24px 20px; }
.ftabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.ftab { font: inherit; font-size: 15px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 2px 12px; color: var(--text); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.ftab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.ftab .count { font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; color: var(--muted); font-weight: 600; }
.ftab[aria-selected="true"] .count { background: var(--blue-soft); border-color: #b9cdee; color: var(--blue); }
.ftools { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.fsearch { position: relative; flex: 1 1 260px; max-width: 420px; }
.fsearch svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.fsearch input { padding-left: 36px; min-height: 40px; }
.fsev { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; color: var(--text); font-size: 14px; }
.fsev select { width: auto; min-width: 170px; min-height: 40px; }
.flist .table-wrap th:first-child, .flist .table-wrap td:first-child { padding-left: 12px; }
.finding-table th { background: var(--surface-2); }
.finding-table td { padding: 12px; }
.finding-table .c-pick { width: 36px; padding-right: 0; }
.finding-table .c-pick input { width: 18px; height: 18px; margin: 0; }
.finding-table .c-main strong { font-size: 14.5px; }
.finding-table .f-desc { display: none; }
.finding-table .c-asset { color: var(--muted); max-width: 200px; overflow-wrap: anywhere; }
.finding-table .c-seen { color: var(--muted); white-space: nowrap; font-size: 13px; }
.finding-table .owner-pick { width: auto; min-width: 140px; max-width: 180px; padding: 6px 8px; font-size: 13px; }
.unassigned { color: var(--muted); }
.owner-status { margin-top: 4px; }
/* With the drawer open the table keeps the essentials: finding (with asset beneath), severity and owner. */
.finding-table.narrow .c-asset, .finding-table.narrow .c-status, .finding-table.narrow .c-seen { display: none; }
.finding-table.narrow .f-desc { display: block; }
.bulk-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 10px; border: 1px solid #b9cdee; background: var(--blue-soft); border-radius: var(--radius); }
.bulk-bar[hidden] { display: none; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.f-count { margin-top: 10px; }
.accepted { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.accepted summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(15, 27, 45, 0.45); }
.assign-form { position: relative; width: min(460px, 100%); margin: 0; box-shadow: 0 12px 40px rgba(15, 27, 45, 0.25); }
.assign-form h2 { margin-bottom: 4px; }
.assign-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }

/* ---------- Evidence drawer ---------- */
.fsplit { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); }
.fdrawer .drawer-head h2 { font-size: 20px; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.fdrawer .drawer-head h2 .tag { font-size: 12px; }
dl.kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 12px 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.tech { font-size: 13px; margin: 4px 0 12px; }
.tech summary { cursor: pointer; color: var(--blue); padding: 6px 0; }
.tech code { font-size: 12px; overflow-wrap: anywhere; }
.drawer-fields.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.vtimeline { list-style: none; margin: 8px 0; padding: 0 0 0 20px; position: relative; }
.vtimeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 2px solid #c9d6ee; }
.vtimeline li { position: relative; padding: 0 0 14px; display: flex; flex-direction: column; }
.vtimeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--surface); }
.drawer-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; }
.drawer-foot .fresh { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; }
.drawer-foot .fresh svg.i { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .finding-table .c-asset, .finding-table .c-seen { display: none; }
  .finding-table .f-desc { display: block; }
}
@media (max-width: 767px) {
  .flist { padding: 4px 12px 12px; }
  .ftabs { gap: 12px; }
  .ftab { font-size: 13.5px; gap: 5px; }
  .ftab .count { padding: 0 6px; }
  .fsev { margin-left: 0; width: 100%; }
  .fsev select { flex: 1; min-height: 44px; }
  .fsearch { max-width: none; }
  .fsearch input { min-height: 44px; }
  /* Findings become stacked cards. */
  .finding-table td, .client-table td { padding: 0; }
  .finding-table tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; row-gap: 8px; padding: 14px 4px; align-items: center; }
  .finding-table tr > td { min-width: 0; }
  .finding-table .c-pick { grid-column: 1; grid-row: 1; width: auto; align-self: start; padding: 2px 0 0 !important; }
  .finding-table .c-pick input { width: 22px; height: 22px; }
  .finding-table .c-main { grid-column: 2 / 4; grid-row: 1; }
  .finding-table .c-main strong { font-size: 15px; }
  .finding-table .f-desc { display: block; font-size: 13px; }
  .finding-table .c-sev { grid-column: 2; grid-row: 2; }
  .finding-table .c-owner { grid-column: 3; grid-row: 2; }
  .finding-table tr:not(:has(.c-pick)) .c-main { grid-column: 1 / 4; }
  .finding-table tr:not(:has(.c-pick)) .c-sev { grid-column: 1; }
  .finding-table tr:not(:has(.c-pick)) .c-owner { grid-column: 2 / 4; }
  .finding-table .c-asset, .finding-table .c-seen, .finding-table .c-status { display: none; }
  .finding-table td.c-owner::before { content: none; }
  .finding-table .owner-pick { min-height: 44px; max-width: 100%; width: 100%; }
  .assign-btn { min-height: 44px; }
  /* The evidence drawer opens full screen on phones. */
  .split > .fdrawer { position: fixed; inset: 0; z-index: 45; margin: 0; border-radius: 0; overflow-y: auto; padding: 16px 16px 24px; order: 0; }
  .fdrawer .drawer-head .iconbtn { min-width: 44px; min-height: 44px; }
  .fdrawer .tab { min-height: 44px; }
  .drawer-fields.two, .assign-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer-foot .btn { min-height: 44px; }
  .finding-table input[type="checkbox"] { min-width: 22px; }
}

/* ---------- Clients (MSP portfolio) ---------- */
.client-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 0; }
.cs-item { display: flex; align-items: center; gap: 12px; padding: 4px 24px; border-left: 1px solid var(--border); min-width: 0; }
.cs-item:first-child { border-left: 0; }
.cs-item strong { font-size: 26px; font-weight: 700; line-height: 1.1; }
.cs-item > span:last-child { color: var(--muted); font-size: 15px; }
.cs-ic { color: var(--muted); display: inline-flex; }
.cs-ic svg.i { width: 22px; height: 22px; }
.cs-item.amber strong, .cs-item.amber > span, .cs-item.amber .cs-ic { color: var(--amber); }
.cs-item.red strong, .cs-item.red > span, .cs-item.red .cs-ic { color: var(--red); }
.clients-card { padding: 20px 20px 16px; }
.ctools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ctools .fsearch { max-width: 300px; }
.client-table td { padding: 12px 10px; }
.client-table th { white-space: normal; }
.client-table .client-name strong { white-space: nowrap; }
@media (min-width: 1001px) { .clients-page .brief-grid { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); } }
.client-name { display: flex; align-items: center; gap: 10px; }
.ini { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ini.none { background: var(--surface-2); color: var(--muted); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 8px; white-space: nowrap; }
.p-red { background: var(--red-soft); color: var(--red); }
.p-amber { background: var(--amber-soft); color: var(--amber); }
.p-green { background: var(--green-soft); color: var(--green); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.cov-bar { display: inline-flex; gap: 3px; margin-bottom: 4px; }
.cov-bar i { width: 13px; height: 8px; border-radius: 3px; background: #dfe3ea; }
.cov-bar i.on { background: var(--blue); }
.cov-bar i.bad { background: var(--red); }
.bad-text { color: var(--red); }
.c-tasks { text-align: center; }
.client-table th:last-child { text-align: center; }
.c-count { margin-top: 10px; }
.wait-row.middle { align-items: center; }
.wait-row .pill { font-size: 12px; }
.portfolio-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 1100px) { .client-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } .cs-item:nth-child(3) { border-left: 0; } }
@media (max-width: 767px) {
  .client-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 8px 0; }
  .cs-item { padding: 8px 14px; border-left: 0; }
  .cs-item strong { font-size: 22px; }
  .cs-item > span:last-child { font-size: 13px; }
  .clients-card { padding: 12px; }
  .ctools .fsearch { max-width: none; flex-basis: 100%; }
  .ctools .fsearch input { min-height: 44px; }
  .ctools .seg { flex-wrap: wrap; }
  .client-table td { padding: 0; }
  .client-table tr { padding: 14px 4px; gap: 8px 16px; }
  .client-table td.c-cov { flex-basis: 100%; order: 5; }
  .client-table .c-sev { order: 2; } .client-table .c-when { order: 3; } .client-table .c-tasks { order: 4; }
  .client-table td.c-sev::before { content: none; }
  .c-tasks { text-align: left; }
  .client-name { min-height: 44px; }
}

/* ---------- Content-width breakpoints ----------
   The sidebar takes 232px, so the viewport width says little about the space a page really has.
   These rules follow the width of .main itself: 1280px wide = about 980px of content. */
.main { container-type: inline-size; container-name: main; }
/* Words never break mid-word in rows and summaries; they wrap at spaces only. */
.fresh-row, .wait-row, .act-list li, .prio-row, .sum-item, .cs-item, .scen-pick { overflow-wrap: normal; word-break: normal; }
.fresh-row .grow { min-width: 9em; }
.fresh-row .fresh { flex: none; }
@container main (max-width: 899px) {
  .brief-grid, .brief-grid.low, .clients-page .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .split, .fsplit { grid-template-columns: minmax(0, 1fr); }
  .split > .drawer { order: -1; position: static; }
  .client-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .cs-item:nth-child(3) { border-left: 0; }
}
@container main (max-width: 759px) {
  .sum-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 0; }
  .sum-item { padding: 12px 16px; border-left: 0; border-top: 1px solid var(--border); }
  .sum-item:nth-child(-n+2) { border-top: 0; }
  .sum-item:nth-child(even) { border-left: 1px solid var(--border); }
  .finding-table .c-asset, .finding-table .c-seen { display: none; }
  .finding-table .f-desc { display: block; }
}
@container main (max-width: 599px) {
  .prio-row { grid-template-columns: 40px minmax(0, 1fr) 20px; grid-template-areas: "ic main go" "ic meta go"; row-gap: 6px; min-height: 44px; }
  .prio-ic { grid-area: ic; align-self: start; }
  .prio-main { grid-area: main; }
  .prio-main strong, .prio-asset { white-space: normal; }
  .prio-sev, .prio-owner { grid-area: meta; }
  .prio-sev { justify-self: start; }
  .prio-owner { justify-self: start; margin-left: 84px; font-size: 13px; }
  .prio-go { grid-area: go; }
  .scen-body { grid-template-columns: minmax(0, 1fr); }
  .scen-detail { order: -1; }
}
.page-head .actions > .btn, .page-head .actions > .textlink { white-space: nowrap; }
@container main (max-width: 759px) {
  .page-head { flex-wrap: wrap; }
  .brief-head .actions { width: 100%; justify-content: flex-start; }
}
/* Finding and client tables become stacked cards once the content is too narrow for their columns
   (the same layout phones use), instead of squeezing the Finding column to a few letters. */
@container main (max-width: 639px) {
  .card.table-wrap > table.rtable.finding-table, table.rtable.finding-table, table.rtable.client-table { min-width: 0; }
  .finding-table thead, .client-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .finding-table, .finding-table tbody, .client-table, .client-table tbody { display: block; }
  .finding-table tr:last-child, .client-table tr:last-child { border-bottom: 0; }
  .finding-table td, .client-table td { display: block; padding: 0; border: 0; }
  .table-wrap .finding-table td:first-child, .table-wrap .client-table td:first-child, .flist .table-wrap .finding-table td:first-child { padding-left: 0; }
  .finding-table tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; row-gap: 8px; padding: 14px 4px; align-items: center; border-bottom: 1px solid var(--border); }
  .finding-table tr > td { min-width: 0; }
  .finding-table .c-pick { grid-column: 1; grid-row: 1; width: auto; align-self: start; padding: 2px 0 0 !important; }
  .finding-table .c-main { grid-column: 2 / 4; grid-row: 1; }
  .finding-table .f-desc { display: block; font-size: 13px; }
  .finding-table .c-sev { grid-column: 2; grid-row: 2; }
  .finding-table .c-owner { grid-column: 3; grid-row: 2; }
  .finding-table tr:not(:has(.c-pick)) .c-main { grid-column: 1 / 4; }
  .finding-table tr:not(:has(.c-pick)) .c-sev { grid-column: 1; }
  .finding-table tr:not(:has(.c-pick)) .c-owner { grid-column: 2 / 4; }
  .finding-table .c-asset, .finding-table .c-seen, .finding-table .c-status { display: none; }
  .finding-table td.c-owner::before, .client-table td.c-sev::before { content: none; }
  .finding-table .owner-pick { max-width: 100%; }
  .finding-table tr.selected { background: var(--blue-soft); border-radius: var(--radius); padding-left: 10px; padding-right: 10px; }
  .finding-table tr.selected td { background: none; }
  .fsev { margin-left: 0; }
  .client-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .client-table .c-main { flex-basis: 100%; }
  .client-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .client-table td.c-cov { flex-basis: 100%; order: 5; }
  .client-table .c-sev { order: 2; } .client-table .c-when { order: 3; } .client-table .c-tasks { order: 4; }
  .c-tasks { text-align: left; }
}
/* On a phone the three status tabs share the row and wrap their labels at spaces instead of scrolling sideways. */
@container main (max-width: 479px) {
  .ftabs { overflow-x: visible; gap: 8px; }
  .ftab { white-space: normal; flex: 0 1 auto; min-width: 0; text-align: left; flex-wrap: wrap; align-content: center; row-gap: 2px; overflow-wrap: normal; }
}

/* ---------- Public site: homepage, free scan, demo picker, sign-in ----------
   Light only, the app's one font and one blue. Nothing smaller than 12px; every link and button at least 44px tall on touch. */
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); font-size: 16px; }
.site main { flex: 1; }
.site-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site-top { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; min-height: 44px; }
.site-logo svg.i, .auth-logo svg.i { width: 24px; height: 24px; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { background: var(--surface-2); color: var(--blue); }
.site-nav .site-signin { border: 1px solid var(--border-strong); margin-left: 4px; }
.hero { padding: 72px 0 48px; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.hero h1 { font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; max-width: 760px; margin-bottom: 16px; }
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lg { font-size: 16px; padding: 12px 22px; min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.site a.btn { text-decoration: none; color: var(--text); }
.site a.btn.primary { color: #fff; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 56px; }
.site-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.site-card h2 { font-size: 18px; margin: 14px 0 8px; }
.site-card p { color: var(--muted); font-size: 15px; margin: 0; }
.site-ic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.site-ic svg.i { width: 22px; height: 22px; }
.site-section { padding: 40px 24px; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.site-section h2 { font-size: 26px; margin-bottom: 16px; }
.site-section p { max-width: 680px; font-size: 16px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; max-width: 760px; }
.steps li { padding-left: 4px; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg.i { color: var(--blue); margin-top: 3px; }
.site-foot { border-top: 1px solid var(--border); background: var(--surface-2); padding: 28px 0; font-size: 14px; }
.site-foot p { margin: 0 0 6px; }
.small-logo { font-size: 16px; min-height: 0; }
/* Sign-in, free scan and demo picker: one centred card under the site header. */
.site-auth { background: var(--bg); }
.auth-main { display: flex; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); font-size: 15px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card form { margin-top: 20px; }
.auth-card input, .auth-card select, .auth-card textarea { font-size: 16px; min-height: 44px; width: 100%; }
.auth-card label { font-size: 14px; color: var(--text); }
.auth-card .btn.primary { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
.auth-card .btn.block { min-height: 56px; }
.auth-card a { min-height: 24px; }
.auth-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.auth-card .demo-list { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .site-wrap, .site-section { padding-left: 16px; padding-right: 16px; }
  .site-bar { padding-top: 6px; padding-bottom: 6px; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { padding: 10px 8px; font-size: 15px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .auth-card { padding: 22px 18px; }
  .auth-main { padding: 20px 12px; }
}

/* ---------- Data sources page ---------- */
.src-list { list-style: none; margin: 12px 0 0; padding: 0; }
.src-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--border); }
.src-row:first-child { border-top: 0; padding-top: 4px; }
.src-main h3 { margin: 0 0 4px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.src-main p { margin: 0 0 6px; }
.src-main .warn-text { display: flex; gap: 6px; align-items: center; }
.src-facts { margin: 0; display: grid; gap: 6px; font-size: 13px; }
.src-facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.src-facts dt { color: var(--muted); }
.src-facts dd { margin: 0; overflow-wrap: anywhere; }
.src-links, .src-key { grid-column: 1 / -1; margin: 0; }
.src-links a { display: inline-flex; gap: 4px; align-items: center; }
.src-key { display: grid; gap: 4px; max-width: 560px; }
.src-key label { font-weight: 600; font-size: 13px; }
.src-key input { flex: 1 1 220px; min-width: 0; }
.src-key p { margin: 0; }
@container main (max-width: 760px) {
  .src-row { grid-template-columns: minmax(0, 1fr); }
}

/* UI round 1 (2026-11-23): calmer overview, aligned coverage rows, one chip shape. */
.demo-fold { padding: 16px 24px; }
.demo-fold > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; min-height: 28px; }
.demo-fold > summary::-webkit-details-marker { display: none; }
.demo-fold > summary .demo-show::after { content: " ▸"; }
.demo-fold[open] > summary .demo-show::after { content: " ▾"; }
.demo-fold[open] > summary { margin-bottom: 12px; }
.fresh-when { margin: 4px 0 8px; }
.fresh-partial { color: var(--amber); margin: 0 0 8px; }
.fresh-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 100px; gap: 10px; }
.fresh-row .prio-ic { grid-area: auto; align-self: center; }
.fresh-row .grow { min-width: 0; }
.fresh-row .fresh { justify-self: end; width: 100px; box-sizing: border-box; text-align: center; }
.fresh-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { border-radius: 8px; min-height: 34px; }
.read-more { margin: 4px 0 0; }
.read-more > summary { cursor: pointer; color: var(--blue); padding: 6px 0; font-size: 14px; }
.read-more[open] > summary { margin-bottom: 8px; }
.danger-zone h3 { margin-top: 12px; }
.zone-rule { border: 0; border-top: 1px solid var(--border); margin: 20px 0 4px; }
.client-table th, .client-table td { padding-left: 12px; padding-right: 12px; }
.client-table th:first-child, .client-table td:first-child { padding-left: 20px; }

/* UI round 2 (2026-11-23): flat menu, section tabs, KPI tiles, next-actions table, row buttons. */
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--border); margin: 0 0 20px; }
.section-tabs a { padding: 8px 0 10px; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.section-tabs a:hover { color: var(--text); }
.section-tabs a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.kpi-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.kpi { display: flex; align-items: flex-start; gap: 10px; padding: 18px 16px; margin: 0; min-width: 0; }
.kpi > svg.i { width: 22px; height: 22px; flex: none; color: var(--muted); margin-top: 2px; }
.kpi-label { display: block; font-size: 14px; color: var(--text); }
.kpi-num { display: block; font-size: 28px; line-height: 1.2; margin-top: 4px; }
.kpi-num span { font-size: inherit; color: inherit; }
.kpi-alert { background: var(--red-soft); border-color: #f4b5ad; text-decoration: none; color: var(--text); }
.kpi-alert:hover { border-color: var(--red); }
.kpi-alert > svg.i { color: var(--red); width: 28px; height: 28px; }
.kpi-alert.calm { background: var(--green-soft); border-color: var(--green-soft); }
.kpi-alert.calm > svg.i, .kpi-alert.calm .kpi-title { color: var(--green); }
.kpi-title { display: block; font-size: 18px; color: var(--red); }
.kpi-line { display: block; font-size: 15px; margin-top: 2px; }
.kpi-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.next-table { width: 100%; margin: 4px 0 8px; }
.next-table td { vertical-align: middle; }
.next-table .c-owner.none { color: var(--muted); }
.next-table th:last-child, .next-table td.c-act { text-align: right; }
.btn.sm.outline { min-width: 72px; justify-content: center; }
.topbar .picker { min-width: 220px; font-size: 15px; }
@container main (max-width: 899px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container main (max-width: 639px) {
  .next-table thead { display: none; }
  .next-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
  .next-table td { padding: 0; border: 0; }
  .next-table td.c-main { flex-basis: 100%; }
  .next-table td.c-act { margin-left: auto; }
  .client-table .c-act { order: 4; margin-left: auto; }
}
@container main (max-width: 479px) { .kpi { padding: 14px; } .kpi-num { font-size: 24px; } .kpi-title { font-size: 16px; } }
.client-table td.c-when { white-space: nowrap; }

/* ---- UI round 3: remaining example screens ---- */
.report-hero .hero-sub { font-size: inherit; line-height: inherit; margin: 0; max-width: none; }
.recent-alerts > .row { padding: 20px 20px 12px; }
.recent-alerts > p { padding: 0 20px 20px; }
.recent-alerts .alert-table th:last-child, .recent-alerts .alert-table td.c-act { text-align: right; }
.fsplit { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); }
.finding-table.narrow .c-pick { display: none; }
.fdrawer .drawer-foot .btn.outline svg.i { margin-right: 6px; }
@container main (max-width: 899px) { .fsplit { grid-template-columns: minmax(0, 1fr); } }
