/* VPC Hazard Vulnerability Analysis
   Brand: vantagepointc.com — Open Sans, navy bars, action blue. */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/open-sans-regular-80212e15.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/open-sans-italic-4e7f472b.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/open-sans-500-bea5d9d9.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/open-sans-600-6e2353da.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/open-sans-700-1268209d.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/open-sans-800-5dc8a55c.woff2") format("woff2"); }

:root {
  --ink: #0b2238;
  --ink-2: #344b71;
  --muted: #4c5c70;
  --bar: #084d74;
  --bar-2: #063d5c;
  --bar-ink: #d3e3f0;
  --blue: #1e73be;
  --blue-700: #165c9a;
  --blue-300: #8fb9e2;
  --blue-50: #e9f2fb;
  --ground: #f2f5fb;
  --panel: #ffffff;
  --line: #d6dfeb;
  --line-soft: #e8edf5;
  --dispute: #b93d0c;
  --dispute-50: #fcefe8;
  --ok: #2c7a4b;
  --ok-50: #e8f4ed;
  --warn: #965500;
  --warn-50: #fbf1e2;
  --danger: #b42318;
  --radius: 6px;
  --shadow: 0 1px 2px rgb(11 34 56 / .06), 0 4px 14px rgb(11 34 56 / .05);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  scrollbar-color: #b7c5d8 var(--ground);
}
::selection { background: #cfe3f7; color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* ---------- App chrome ---------- */
.appbar { background: var(--bar); color: #fff; }
.appbar__inner { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 0 28px; }
.appbar__logo { display: block; line-height: 0; }
.appbar__logo img { height: 21px; width: auto; }
.appbar__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.875rem; color: var(--bar-ink); }
.appbar__crumbs a { color: var(--bar-ink); text-decoration: none; }
.appbar__crumbs a:hover { color: #fff; text-decoration: underline; }
.appbar__crumbs strong { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__sep { opacity: .6; }
.appbar__nav { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.appbar__nav a, .appbar__nav button { color: var(--bar-ink); text-decoration: none; padding: 7px 10px; border-radius: 4px; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.appbar__nav a:hover, .appbar__nav button:hover { color: #fff; background: rgb(255 255 255 / .08); }
.appbar__nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .12); }
.appbar__nav :focus-visible { outline-color: #fff; }
.appbar__me { color: #fff; font-weight: 600; padding-left: 8px; border-left: 1px solid rgb(255 255 255 / .2); margin-left: 4px; }

.tabbar { background: var(--bar-2); color: var(--bar-ink); }
.tabbar__inner { display: flex; align-items: stretch; gap: 4px; padding: 0 28px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.tabbar a { display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--bar-ink); text-decoration: none; font-size: 0.8438rem; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .2s var(--ease); }
.tabbar a:hover { color: #fff; }
.tabbar a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #5aaef0; }
.tabbar :focus-visible { outline-color: #fff; outline-offset: -3px; }
.tabbar__status { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; white-space: nowrap; padding-left: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd08f; box-shadow: 0 0 0 3px rgb(95 208 143 / .25); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: .02em; }
.status-pill--open { background: var(--ok-50); color: var(--ok); }
.status-pill--draft { background: var(--warn-50); color: var(--warn); }
.status-pill--closed { background: var(--line-soft); color: var(--muted); }
.tabbar .status-pill--open { background: rgb(95 208 143 / .16); color: #b9f0cf; }
.tabbar .status-pill--draft { background: rgb(255 196 120 / .16); color: #ffd9a3; }
.tabbar .status-pill--closed { background: rgb(255 255 255 / .1); color: var(--bar-ink); }

.page { padding: 32px 28px 64px; max-width: 1360px; margin: 0 auto; }
.page--narrow { max-width: 820px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 12px; }
.section-head p { color: var(--muted); font-size: 0.8125rem; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; animation: flash-in .35s var(--ease); }
.flash--notice { background: var(--blue-50); color: var(--ink); }
.flash--alert { background: #fdecea; color: var(--danger); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 4px; border: 1px solid transparent; font: 600 0.875rem/1.2 "Open Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #18385a; color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: #c3d0e0; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--quiet { background: transparent; color: var(--blue-700); padding-inline: 8px; min-height: 32px; }
.btn--quiet:hover { background: var(--blue-50); color: var(--ink); }
.btn--danger { background: transparent; color: var(--danger); border-color: #efc4bf; }
.btn--danger:hover { background: #fdecea; }
.btn--sm { min-height: 32px; padding: 5px 12px; font-size: 0.8125rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.button_to { display: inline; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field legend, .label { font-weight: 600; font-size: 0.875rem; }
.field .hint { color: var(--muted); font-size: 0.8125rem; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b8c6d8; border-radius: 4px; padding: 9px 12px; min-height: 42px;
  transition: border-color .15s, box-shadow .15s; caret-color: var(--blue);
}
.field textarea { min-height: 110px; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: #8ea3bd; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(30 115 190 / .2); }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b2238' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.errors { background: #fdecea; color: var(--danger); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choice-card { position: relative; display: block; padding: 16px 18px 16px 46px; border: 1px solid #c3d0e0; border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice-card input { position: absolute; left: 18px; top: 19px; accent-color: var(--blue); width: 16px; height: 16px; }
.choice-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--blue-50); }
.choice-card strong { display: block; }
.choice-card span { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.checkbox input { accent-color: var(--blue); width: 16px; height: 16px; margin-top: 3px; }

/* ---------- Panels & tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel__body { padding: 20px 22px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.panel + .panel { margin-top: 16px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
.table th:first-child { border-top-left-radius: var(--radius); }
.table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tbody tr { transition: background .15s; }
.table tbody tr.is-link:hover { background: #f6f9fd; }
.table a.row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a.row-link:hover { color: var(--blue-700); text-decoration: underline; }
.table-scroll { overflow-x: auto; }

.meter { display: inline-block; width: 120px; height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.meter > i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.risk-cell { display: flex; align-items: center; gap: 10px; }
.risk-cell b { min-width: 3ch; text-align: right; }

.agree { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.8125rem; }
.agree::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.agree--close { color: var(--ok); }
.agree--mixed { color: var(--warn); }
.agree--wide { color: var(--dispute); }
.agree--too_few { color: var(--muted); }
.agree--too_few::before { background: transparent; border: 1.5px solid currentColor; }

.empty { padding: 36px 28px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn-row { justify-content: center; margin-top: 16px; }

/* ---------- Results: meeting agenda ---------- */
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.results-aside { position: sticky; top: 20px; display: grid; gap: 16px; }

.strips { padding: 4px 22px; }
.strip { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) 112px; gap: 22px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.strip:last-child { border-bottom: 0; }
.strip__name { font-weight: 700; font-size: 0.9375rem; display: block; }
a.strip:hover .strip__name { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.strip__cat { color: var(--muted); font-size: 0.75rem; }
.strip__plot { position: relative; height: 48px; }
.strip__plot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.strip__band { position: absolute; top: 10px; bottom: 10px; background: var(--dispute-50); border-radius: 3px; }
.strip__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); border: 1.5px solid #fff; opacity: .85; }
.strip__dot { transform: translateY(var(--dy, 0)); }
.strip__median { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.strip__range { text-align: right; font-size: 0.75rem; color: var(--muted); }
.strip__range .agree { justify-content: flex-end; }
.axis { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) 112px; gap: 22px; padding: 10px 0 2px; font-size: 0.6875rem; color: var(--muted); }
.axis__ticks { display: flex; justify-content: space-between; }

.stat-block { display: flex; align-items: baseline; gap: 6px; }
.stat-block strong { font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.progress { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin: 12px 0; }
.progress > i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .6s var(--ease); }

.method-note { font-size: 0.8125rem; color: var(--muted); }

/* Live re-ranking (FLIP) */
[data-flip-id] { will-change: auto; }
.is-new { animation: row-glow 1.6s var(--ease); }
@keyframes row-glow { from { background: #fff5d6; } }

/* ---------- Respondents: response desk ---------- */
.coverage { display: flex; gap: 4px; margin: 4px 0 6px; }
.coverage__seg { min-width: 56px; }
.coverage__bar { height: 36px; border-radius: 4px; background: #d3dded; position: relative; overflow: hidden; }
.coverage__fill { position: absolute; inset: 0 auto 0 0; background: var(--blue); }
.coverage__started { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, var(--blue-300) 0 4px, #b7d1ec 4px 8px); }
.coverage__label { font-size: 0.75rem; margin-top: 6px; line-height: 1.3; }
.coverage__label b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 28px; }
.person-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.8125rem; }
.person-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.person-status--answered { color: var(--ok); }
.person-status--started { color: var(--warn); }
.person-status--not_opened { color: var(--muted); }
.person-status--not_opened::before { background: transparent; border: 1.5px solid currentColor; }
.minirank { list-style: none; margin: 0; padding: 0; }
.minirank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 90px 40px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.minirank li:first-child { border-top: 0; }
.minirank .meter { width: 100%; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; font: 500 0.8125rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); background: var(--ground); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }

/* ---------- Hazard workbench ---------- */
.workbench { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-width: 0; min-height: calc(100vh - 106px); }
.workbench__list { background: #fff; border-right: 1px solid var(--line); padding: 16px 0 40px; position: sticky; top: 0; align-self: start; max-height: calc(100vh); overflow-y: auto; }
.workbench__filter { padding: 0 18px 12px; }
.workbench__list ol { list-style: none; margin: 0; padding: 0; }
.wb-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px; gap: 8px; padding: 9px 18px; text-decoration: none; color: var(--ink); font-size: 0.875rem; align-items: center; font-variant-numeric: tabular-nums; }
.wb-item:hover { background: #f6f9fd; }
.wb-item[aria-current="page"] { background: var(--blue-50); box-shadow: inset 3px 0 var(--blue); }
.wb-item small { display: block; color: var(--muted); font-size: 0.6875rem; }
.wb-item .r { text-align: right; font-weight: 700; }
.wb-group { font-size: 0.75rem; font-weight: 700; color: var(--muted); padding: 14px 18px 4px; }
.workbench__main { padding: 30px 36px 64px; min-width: 0; }
.wb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.wb-head .meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 6px; }
.wb-score { text-align: right; }
.wb-score strong { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wb-score span { font-size: 0.8125rem; color: var(--muted); }
.fingerprint { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fingerprint th { text-align: left; font-size: 0.75rem; color: var(--muted); font-weight: 700; padding: 0 0 10px; }
.fingerprint td { padding: 8px 0; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.fingerprint td:first-child { width: 190px; font-weight: 600; padding-right: 16px; }
.fingerprint td:last-child { width: 130px; padding-left: 16px; }
.fp-bar { display: flex; gap: 2px; height: 26px; border-radius: 4px; overflow: hidden; background: var(--line-soft); }
.fp-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.6875rem; font-weight: 700; min-width: 0; overflow: hidden; }
.fp-0 { background: #e3eaf3; color: var(--ink); }
.fp-1 { background: #b4cde9; color: var(--ink); }
.fp-2 { background: #5c98d3; color: var(--ink); }
.fp-3 { background: #1d5d9b; color: #fff; }
.fp-4 { background: #0b2238; color: #fff; }
.fp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); margin-top: 12px; }
.fp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.wb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dept-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr 44px; gap: 12px; align-items: center; padding: 7px 0; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.dept-row .meter { width: 100%; }
.quote { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.quote:first-child { border-top: 0; padding-top: 0; }
.quote p { font-size: 0.875rem; }
.quote cite { display: block; font-style: normal; color: var(--muted); font-size: 0.75rem; margin-top: 4px; }

/* ---------- Hazard list editor ---------- */
.hazard-editor { list-style: none; margin: 0; padding: 0; }
.hazard-editor li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--line-soft); }
.hazard-editor li:first-child { border-top: 0; }
.hazard-editor li:target { background: #fff8e6; }
.hazard-editor .actions { display: flex; gap: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--blue-50); color: var(--ink); }
.icon-btn--danger:hover { background: #fdecea; color: var(--danger); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; align-items: start; }
.inline-add { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #fafbfd; border-radius: 0 0 var(--radius) var(--radius); }
.inline-add .input { min-height: 36px; padding: 6px 10px; font-size: 0.875rem; }

/* ---------- Assessment list ---------- */
.assess-list { display: grid; gap: 12px; }
.assess-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px 120px; gap: 20px; align-items: center; padding: 18px 22px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s var(--ease); }
.assess-row:hover { border-color: #a9c3e2; box-shadow: 0 2px 4px rgb(11 34 56 / .06), 0 10px 24px rgb(11 34 56 / .08); }
.assess-row h2 { font-size: 1.0625rem; }
.assess-row:hover h2 { color: var(--blue-700); }
.assess-row .meta { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }

/* ---------- Overview ---------- */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #b8c6d8; color: transparent; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 0.875rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.auth__card { width: min(420px, calc(100% - 32px)); margin: 56px auto; }
.auth__card h1 { font-size: 1.5rem; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .results-grid, .desk-grid { grid-template-columns: 1fr; }
  .results-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .assess-row { grid-template-columns: minmax(0, 1fr) 130px; }
  .assess-row > :nth-child(3), .assess-row > :nth-child(4) { display: none; }
}
@media (max-width: 860px) {
  .workbench { grid-template-columns: 1fr; }
  .workbench__list { position: static; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench__main { padding: 22px 16px 48px; }
  .wb-cols, .overview-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .appbar__inner, .tabbar__inner { padding: 0 16px; }
  .appbar__crumbs { display: none; }
  .page { padding: 22px 16px 48px; }
  h1 { font-size: 1.5rem; }
  .strip, .axis { grid-template-columns: 1fr; gap: 6px; }
  .axis > :first-child, .axis > :last-child { display: none; }
  .strip__range { text-align: left; display: flex; gap: 12px; align-items: center; }
  .fingerprint td:first-child { width: 120px; }
  .fingerprint td:last-child { width: 80px; }
  .hide-sm { display: none; }
  .tabbar__status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.rot90 { transform: rotate(90deg); }

/* ---------- Fixes after first visual pass ---------- */
.strip__range { display: grid; gap: 2px; justify-items: end; }
.workbench__list { align-self: stretch; position: static; max-height: none; }
@media (max-width: 720px) {
  .appbar__nav .nav-extra, .appbar__me { display: none; }
  .appbar__inner { gap: 12px; }
  .strip__range { justify-items: start; display: flex; }
  .coverage { flex-direction: column; gap: 10px; }
  .coverage__seg { display: grid; grid-template-columns: 1fr; flex: none !important; }
  .coverage__bar { height: 14px; order: 2; }
  .coverage__label { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
  .coverage__label b { white-space: normal; }
  .fingerprint thead { display: none; }
  .fingerprint tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
  .fingerprint td { border: 0; padding: 0; width: auto !important; }
  .fingerprint td:first-child { grid-column: 1; }
  .fingerprint td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fingerprint td:last-child { grid-column: 2; grid-row: 1; padding: 0; text-align: right; font-weight: 600; }
  .fingerprint .muted.small { display: none; }
  .wb-head { align-items: flex-start; }
  .wb-score { text-align: left; }
  .table .hide-sm, .table th.hide-sm { display: none; }
}
.table-scroll { position: relative; }
.visually-hidden { top: 0; left: 0; }
@media (max-width: 1100px) {
  .results-grid, .desk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .overview-grid, .wb-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Finish review fixes ---------- */
.workbench { background: linear-gradient(to right, #fff 340px, var(--line) 340px, var(--line) 341px, transparent 341px); }
.workbench__list { background: transparent; border-right: 0; }
@media (min-width: 861px) {
  .workbench__list { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 860px) {
  .workbench { background: none; }
  .workbench__main { order: -1; }
  .workbench__list { background: #fff; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); }
}
@media (min-width: 721px) { .strip, .axis { grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) 132px; } }
.strip__range .num { white-space: nowrap; }
.overview-grid, .wb-cols { align-items: start; }
.agree--mixed { color: var(--ink-2); }
.wb-head .meta { margin: 8px 0 0; }
@media (max-width: 720px) {
  .tabbar__inner { gap: 0; padding: 0 6px; }
  .tabbar a { padding: 0 8px; font-size: 0.8125rem; }
}
@media (max-width: 720px) {
  .table th, .table td { padding: 10px 8px; }
  .table .meter { width: 44px; }
  .risk-cell { gap: 6px; }
}
.overview-grid > .panel + .panel, .wb-cols > .panel + .panel { margin-top: 0; }

/* ---------- Incident log ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.rate.impact { border-top: 1px solid var(--line-soft); margin-top: 0; padding: 12px 0 8px; }
.rate.impact .rate__opt span { min-height: 40px; padding: 6px 10px; }
.pva li { grid-template-columns: 26px minmax(0, 1fr) auto; }
.earlier > summary { list-style: none; cursor: pointer; }
.earlier > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .form-grid, .impact-grid { grid-template-columns: 1fr; } }
.incident-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: -6px 0 18px; }
.incident-note .icon { color: var(--blue); align-self: center; }
@media (max-width: 560px) {
  .rate.impact .rate__opts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tabbar a { padding: 0 7px; font-size: 0.78rem; }
  .incident-summary { display: none; }
}
.show-sm { display: none; }
@media (max-width: 720px) { .show-sm { display: inline; } }
.match-hint { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: 0.8125rem; min-height: 32px; }
.match-ok { color: var(--ok); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.match-miss { color: var(--warn); font-weight: 600; }
.match-chip { font: inherit; font-size: 0.8125rem; color: var(--ink); background: var(--blue-50); border: 1px solid #b9d3ee; border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 32px; }
.match-chip:hover { background: #d9e9f8; border-color: var(--blue); }
.flash--warn { background: var(--warn-50); color: var(--warn); } .flash--warn .icon { margin-top: 3px; }

/* ---------- Larger VPC logo ---------- */
.appbar__inner { min-height: 72px; gap: 24px; }
.appbar__logo img { height: 30px; width: auto; }
.appbar__crumbs { padding-left: 24px; border-left: 1px solid rgb(255 255 255 / .22); min-height: 32px; }
@media (max-width: 720px) {
  .appbar__inner { min-height: 60px; }
  .appbar__logo img { height: 22px; }
}
@media (max-width: 400px) {
  .appbar__logo img { height: 19px; }
  .appbar__nav > a:first-child { display: none; }
}

/* ---------- Committee readiness ---------- */
.rd-select { min-height: 36px; padding: 5px 30px 5px 10px; font-size: 0.875rem; width: 100%; min-width: 130px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b2238' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; transition: box-shadow .4s, border-color .2s; }
.rd-select.is-empty { color: var(--warn); border-style: dashed; }
.rd-select.is-saved { border-color: var(--ok); box-shadow: 0 0 0 3px rgb(44 122 75 / .15); }
.rd-select.is-error { border-color: var(--danger); }
.rd-table th { vertical-align: bottom; }
.readiness-panel .rd-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.readiness-panel .rd-row:first-of-type { border-top: 0; }

/* ---------- Incident form, simplified ---------- */
.picker { position: relative; }
.picker__list { position: absolute; z-index: 20; left: 0; right: 0; top: 74px; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgb(11 34 56 / .14), 0 2px 6px rgb(11 34 56 / .08); max-height: 320px; overflow-y: auto; }
.picker__list li { padding: 9px 12px; border-radius: 4px; cursor: pointer; font-size: 0.9375rem; }
.picker__list li[aria-selected="true"] { background: var(--blue-50); color: var(--ink); box-shadow: inset 3px 0 var(--blue); }
.picker__list li:hover { background: #f2f7fd; }
.happened { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.happened__opt { position: relative; display: block; }
.happened__opt input[type=checkbox] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.happened__opt span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 9px 12px 9px 40px; border: 1.5px solid #b8c6d8; border-radius: 6px; font-weight: 600; font-size: 0.875rem; position: relative; background: #fff; transition: background .15s, border-color .15s; }
.happened__opt span::before { content: ""; position: absolute; left: 12px; top: 50%; margin-top: -9px; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #8ea3bd; background: #fff; }
.happened__opt small { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.happened__opt input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.happened__opt input:checked + span::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--blue); }
.happened__opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.happened__opt:hover span { border-color: var(--blue); }
.more-details { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.more-details > summary { cursor: pointer; font-weight: 600; color: var(--blue-700); }
@media (max-width: 720px) { .happened { grid-template-columns: 1fr; } }
.tabbar__settings { align-self: center; margin-left: 6px; flex: none; display: inline-grid !important; place-items: center; width: 34px; height: 34px; padding: 0 !important; border-radius: 4px; color: var(--bar-ink); box-shadow: none !important; }
.tabbar__settings:hover, .tabbar__settings[aria-current="page"] { background: rgb(255 255 255 / .12); color: #fff; }
@media (max-width: 720px) { .tabbar__settings { margin-left: auto; } }

/* ---------- Plan access (WooCommerce provisioning) ---------- */
.plan-ended p + p { margin-top: 4px; }
.plan-ended a { color: var(--ink); font-weight: 600; }
.access-pill--ended { background: var(--warn-50); color: var(--warn); }
.access-cell { white-space: nowrap; }
.access-cell form { display: inline; }

/* ---------- Coalition rollup ---------- */
.table th.table__rowhead { font-size: 0.875rem; font-weight: 600; color: var(--ink); background: none; white-space: normal; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.table tr:last-child th.table__rowhead { border-bottom: 0; }
.rollup-filter { align-items: flex-end; margin-bottom: 8px; }
.rollup-filter .field { margin: 0; gap: 4px; }
.rollup-filter .input { min-height: 40px; padding: 7px 10px; max-width: 260px; }
.heatmap th.heatmap__org { white-space: normal; min-width: 7rem; max-width: 10rem; vertical-align: bottom; text-align: center; }
.heatmap td.heat { text-align: center; font-weight: 700; min-width: 3.5rem; border-left: 2px solid #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.heat--4 { background: #0b2238; color: #fff; }
.heat--3 { background: #1d5d9b; color: #fff; }
.heat--2 { background: #b4cde9; color: var(--ink); }
.heat--1 { background: #e3eaf3; color: var(--ink); }
.heat--none { background: #fff; color: var(--muted); }
.heat-legend i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.heat-legend i.heat--none { border: 1px solid var(--line); }
.member-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 18px; margin-top: 6px; }
.member-pick { min-height: 32px; align-items: center; }
.member-pick input { margin-top: 0; }
.shared-facts { margin: 0 0 8px; }
.coalition-note .icon { margin-top: 3px; }
@media (max-width: 720px) { .rollup-filter .input { max-width: none; } .table th.table__rowhead { padding: 10px 8px; } }
.report-sheet .heatmap-wrap .table { display: table; overflow: visible; }
.report-sheet .heatmap-wrap { box-shadow: none; }
