/* Hevasure report front end (change 015): the design system's dark theme, for screens only. */
@font-face { font-family: "Lato"; font-weight: 400; src: url("fonts/Lato-Regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 600; src: url("fonts/Lato-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; src: url("fonts/Lato-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --brand-navy: #00405e; --brand-teal: #009ca7;
  --surface-page: #0b1a24; --surface-raised: #0f2230; --surface-sunken: #08141c; --surface-tint: #10313b;
  --ink-strong: #eef4f6; --ink-body: #c9d6db; --ink-muted: #93a9ae; --accent-text: #4cc3cc;
  --border: #22394a; --border-strong: #5d7584; --focus-ring: #4cc3cc;
  --status-ok: #5cc27a; --status-advisory: #e8b13c; --status-critical: #f07a6f; --status-offline: #6c7c82;
  --status-ok-tint: #133322; --status-advisory-tint: #3a2e12; --status-critical-tint: #3d1b1a;
  --status-offline-tint: #1d2a31;
  --font-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface-page); color: var(--ink-body); font: 15px/24px var(--font-sans); }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1 { font-size: 28px; line-height: 36px; font-weight: 600; color: var(--ink-strong); margin: 0 0 16px; }
h2 { font-size: 21px; line-height: 28px; font-weight: 600; color: var(--ink-strong); margin: 24px 0 12px; }
h3 { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink-strong); margin: 16px 0 8px; }
.eyebrow { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 20px; }
.mono { font-family: var(--font-mono); font-size: 13px; }

header.top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: var(--brand-navy);
  color: #fff; }
header.top .brand { font-weight: 700; letter-spacing: 0.02em; color: #fff; text-decoration: none; }
header.top nav { display: flex; gap: 16px; flex: 1; }
header.top nav a { color: #9fd9de; text-decoration: none; }
header.top nav a:hover { color: #fff; }
header.top form { margin: 0; }
header.top .who { color: #9fd9de; font-size: 13px; }
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
main.narrow { max-width: 440px; }

.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px;
  margin-bottom: 16px; }
.note { border-left: 3px solid var(--accent-text); background: var(--surface-tint); padding: 8px 12px;
  margin-bottom: 16px; border-radius: 4px; }
.note.error { border-color: var(--status-critical); background: var(--status-critical-tint); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  font-weight: 700; padding: 8px; border-bottom: 1px solid var(--border-strong); }
td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr.highlight td { background: var(--surface-tint); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-sunken); }

.chip { display: inline-block; font-size: 12px; line-height: 18px; font-weight: 700; padding: 1px 8px;
  border-radius: 10px; border: 1px solid currentColor; white-space: nowrap; }
.chip.k-queued, .chip.k-not_started, .chip.k-incomplete { color: var(--ink-muted); }
.chip.k-running { color: var(--accent-text); background: var(--surface-tint); }
.chip.k-failed, .chip.k-interrupted { color: var(--status-critical); background: var(--status-critical-tint); }
.chip.k-cancelled { color: var(--status-offline); background: var(--status-offline-tint); }
.chip.k-ready { color: var(--ink-strong); }
.chip.k-in_review { color: var(--status-advisory); background: var(--status-advisory-tint); }
.chip.k-approved { color: var(--status-ok); background: var(--status-ok-tint); }
.chip.b-draft { color: var(--status-advisory); }
.chip.b-archived { color: var(--status-offline); }
.chip.edited { color: var(--status-advisory); }
.chip.stale { color: var(--status-critical); }

button, .button { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-strong); cursor: pointer;
  background: var(--surface-tint); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 14px;
  text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--brand-teal); border-color: var(--brand-teal); color: #00242f; }
button.danger { color: var(--status-critical); border-color: var(--status-critical); background: transparent; }
button.link { background: none; border: none; color: #9fd9de; padding: 0; font-weight: 400; }
button:disabled { opacity: 0.5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.actions form { margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

label { display: block; font-weight: 700; color: var(--ink-strong); margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=date], select, textarea { font: inherit; color: var(--ink-strong);
  background: var(--surface-sunken); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 10px;
  width: 100%; }
textarea { min-height: 160px; line-height: 24px; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; }
.checks label { font-weight: 400; color: var(--ink-body); margin: 4px 0; display: flex; gap: 8px; }
.checks { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; }

pre.log { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 6px; padding: 12px;
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; max-height: 420px; overflow: auto;
  white-space: pre-wrap; margin: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--ink-muted); }
dl.facts dd { margin: 0; }
ul.plain { margin: 0; padding-left: 18px; }

.review { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.review nav.slots { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto;
  font-size: 13px; line-height: 20px; }
.review nav.slots h3 { font-size: 13px; margin: 12px 0 4px; }
.review nav.slots a { display: block; padding: 2px 6px; border-radius: 4px; text-decoration: none;
  color: var(--ink-body); }
.review nav.slots a.current { background: var(--surface-tint); color: var(--ink-strong); font-weight: 700; }
.review nav.slots a.edited::after { content: " ✎"; color: var(--status-advisory); }
.slot-text { font-size: 16px; line-height: 26px; color: var(--ink-strong); white-space: pre-wrap; }
.agent-text { white-space: pre-wrap; }
.chart-frame { width: 100%; height: 360px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.cited { border-top: 1px solid var(--border); padding: 8px 0; }
.cited dl.facts { font-size: 13px; line-height: 20px; }
.count.over { color: var(--status-critical); font-weight: 700; }
.hidden { display: none; }
.history li { margin-bottom: 8px; }
.prevnext { display: flex; justify-content: space-between; margin-top: 16px; }
@media (max-width: 900px) { .review { grid-template-columns: 1fr; } .row { flex-direction: column; } }
