:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-2: #fbfbfa;
  --ink: #1c1c1a;
  --muted: #6f6f68;
  --line: #e3e3de;
  --accent: #3538cd;
  --accent-soft: #eef0ff;
  --critical: #b42318;
  --warning: #b54708;
  --notice: #667085;
  --good: #067647;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316; --panel: #1c1c21; --panel-2: #232329; --ink: #ececf0; --muted: #9a9aa5;
    --line: #2e2e36; --accent: #a4bcfd; --accent-soft: #23253a;
    --critical: #f97066; --warning: #fdb022; --notice: #98a2b3; --good: #47cd89;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; background: var(--bg); color: var(--ink);
  font: 14px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, h4 { letter-spacing: -0.015em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
a { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---- sidebar ---- */
.sidebar {
  width: 250px; flex: 0 0 250px; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
}
.brand { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.brand h1 { margin: 0; font-size: 17px; font-weight: 650; }
.tag { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sites-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.site-list { flex: 1; overflow-y: auto; padding: 0 10px; }
.site-item {
  display: block; width: 100%; text-align: left; border: 1px solid transparent;
  background: none; color: inherit; padding: 9px 10px; border-radius: var(--radius);
  cursor: pointer; font: inherit; margin-bottom: 2px;
}
.site-item:hover { background: var(--panel-2); }
.site-item.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.site-item .nm { font-weight: 550; display: block; }
.site-item .sc { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid var(--line); }

/* ---- main ---- */
.main { flex: 1; min-width: 0; overflow-y: auto; height: 100vh; }
.empty { max-width: 460px; margin: 18vh auto; text-align: center; }
.empty p { color: var(--muted); }
.site-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px 32px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.site-head h2 { margin: 0 0 2px; font-size: 20px; }
.site-url { font-size: 13px; color: var(--muted); text-decoration: none; }
.site-url:hover { text-decoration: underline; }
.head-actions { display: flex; gap: 8px; }

/* ---- controls ---- */
button, .btn-link {
  font: inherit; border-radius: 6px; padding: 7px 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  text-decoration: none; display: inline-block; line-height: 1.4;
}
button:hover, .btn-link:hover { border-color: var(--muted); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 550; }
@media (prefers-color-scheme: dark) { .primary { color: #16161a; } }
.ghost { background: transparent; }
.danger:hover { color: var(--critical); border-color: var(--critical); }
.select { font: inherit; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); max-width: 260px; }
.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.spacer { flex: 1; }

.run-panel { padding: 16px 32px; border-bottom: 1px solid var(--line); background: var(--panel); }
.run-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ai-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ai-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.ai-passes { display: flex; gap: 6px; flex-wrap: wrap; }
.pass {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--panel-2);
}
.pass input { margin: 0; }
.pass.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---- progress ---- */
.progress { margin: 20px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.progress-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.progress-head span { color: var(--muted); font-size: 13px; }
.progress-log {
  margin: 0; padding: 12px 16px; max-height: 260px; overflow-y: auto; font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); white-space: pre-wrap;
}

/* ---- report ---- */
.report { padding: 24px 32px 80px; }
.hero { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.score-big { font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.score-big small { font-size: 17px; font-weight: 400; color: var(--muted); }
.pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; background: var(--panel); }
.pill.critical { color: var(--critical); border-color: currentColor; }
.pill.warning { color: var(--warning); border-color: currentColor; }
.pill.good { color: var(--good); border-color: currentColor; }
.meta-line { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

.section-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin: 34px 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer;
}
.cat:hover { border-color: var(--muted); }
.cat.active { border-color: var(--accent); }
.cat .top { display: flex; justify-content: space-between; align-items: baseline; }
.cat .nm { font-weight: 550; font-size: 13.5px; }
.cat .sc { font-size: 19px; font-weight: 650; }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0 6px; }
.bar span { display: block; height: 100%; background: var(--good); }
.bar span.mid { background: var(--warning); }
.bar span.low { background: var(--critical); }
.cat .cnt { font-size: 12px; color: var(--muted); }

.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.finding {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--notice);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 9px;
}
.finding.critical { border-left-color: var(--critical); }
.finding.warning { border-left-color: var(--warning); }
.finding .fmeta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.finding h4 { margin: 3px 0 5px; font-size: 14.5px; font-weight: 600; }
.finding p { margin: 4px 0; }
.finding .fix { color: var(--good); }
.finding details { margin-top: 8px; }
.finding summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.urls { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--muted);
  margin-top: 7px; word-break: break-all; line-height: 1.7; }
pre.data {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px;
  overflow-x: auto; font-size: 11.5px; margin: 8px 0 0; max-height: 320px;
}

.ai-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 22px 16px; margin-bottom: 14px; }
.ai-block > h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 0; }
.ai-block .note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ai-block h2, .ai-block h3 { font-size: 15px; margin-top: 20px; }
.ai-block ul, .ai-block ol { padding-left: 20px; }
.md-code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 11px; overflow-x: auto; font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 7px 9px; border-bottom: 1px solid var(--line); font-weight: 600; }
td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
tr:hover td { background: var(--panel); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.warnish { color: var(--warning); }
.badish { color: var(--critical); }
.goodish { color: var(--good); }
.note { color: var(--muted); font-size: 13px; }
.delta-up { color: var(--good); } .delta-down { color: var(--critical); }
.table-scroll { overflow-x: auto; }

/* ---- dialog ---- */
.dialog {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px; width: min(560px, 92vw);
  background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.dialog::backdrop { background: rgba(0,0,0,0.45); }
.dialog h3 { margin: 0 0 16px; font-size: 17px; }
.dialog h4 { margin: 0 0 4px; font-size: 14px; }
.dialog h4 small { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 12.5px; font-weight: 550; margin-bottom: 4px; }
.field > span small { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=number], .field input[type=password], .field textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--panel-2); color: var(--ink);
}
.field textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; resize: vertical; }
.field small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.field.checkbox { display: flex; align-items: center; gap: 7px; }
.field.checkbox > span { margin: 0; }
.field-row { display: flex; gap: 14px; align-items: center; }
.field-row .field { flex: 1; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 18px; }
.error { color: var(--critical); font-size: 12.5px; flex: 1; }
.ok { color: var(--good); }

/* ---- view tabs & comparison ---- */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tab { border: none; border-radius: 0; background: transparent; padding: 7px 15px; }
.tab + .tab { border-left: 1px solid var(--line); }
.tab.active { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.mini { width: 62px; font: inherit; padding: 4px 6px; border: 1px solid var(--line);
  border-radius: 5px; background: var(--panel-2); color: var(--ink); }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.gap {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 8px; border-left: 3px solid var(--notice);
}
.gap.high { border-left-color: var(--critical); }
.gap.medium { border-left-color: var(--warning); }
.gap .term { font-weight: 600; font-size: 14.5px; }
.gap .who { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.gap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.consensus { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.subject-you td { background: var(--accent-soft); }

/* ---- help ---- */
.sidebar-foot { display: flex; gap: 8px; }
.sidebar-foot button { flex: 1; font-size: 13px; padding: 6px 8px; }
.help-wrap { min-height: 100%; }

/* Two columns: a sticky rail of sections, and the prose. Collapses to one column with
   the rail becoming a scrollable chip row at the top. */
.help {
  display: grid; grid-template-columns: 172px minmax(0, 1fr);
  /* Left-aligned to the same inset every other view uses, not centred - a centred
     document inside a left-aligned app reads as a foreign object. */
  gap: 40px; max-width: 980px; margin: 0; padding: 26px 30px 120px;
  align-items: start;
}
.help-doc { max-width: 66ch; }

.help-toc { position: sticky; top: 26px; }
.help-toc-inner { display: flex; flex-direction: column; gap: 1px; }
.help-toc a {
  display: block; padding: 5px 10px; border-radius: 6px; text-decoration: none;
  font-size: 13px; color: var(--muted); border-left: 2px solid transparent;
  transition: color 0.12s, background 0.12s;
}
.help-toc a:hover { color: var(--ink); background: var(--panel-2); }
.help-toc a.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 550; }

.help h2 { font-size: 18px; margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.help section:first-child h2 { margin-top: 0; }
.help h3 { font-size: 14px; margin: 24px 0 6px; }
.help p, .help li, .help dd { font-size: 14px; }
.help .lede { font-size: 15.5px; line-height: 1.62; color: var(--ink); }
.help ul, .help ol { padding-left: 22px; }
.help li { margin-bottom: 5px; }
.help dl { margin: 12px 0; }
.help dt { font-weight: 600; font-size: 13.5px; margin-top: 14px; }
.help dd { margin: 3px 0 0 0; padding-left: 14px; border-left: 2px solid var(--line); color: var(--ink); }
.help code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.help .note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 10px 14px; margin: 14px 0; color: var(--muted); }

/* Numbered because these genuinely are a sequence. */
.help .steps { list-style: none; padding-left: 0; counter-reset: step; margin: 14px 0; }
.help .steps > li {
  counter-increment: step; position: relative; padding-left: 30px; margin-bottom: 11px;
}
.help .steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 11.5px; font-weight: 650;
  display: grid; place-items: center;
}

/* The legend: a mock finding built from the same parts a real one has, with a numbered
   key beside it. */
.help-demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 16px 0 8px; align-items: start; }
@media (min-width: 900px) { .help-demo { grid-template-columns: minmax(0, 1fr) 236px; gap: 20px; } }
.help-demo-card {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--critical);
  border-radius: var(--radius); padding: 12px 14px;
}
.help-demo-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.help-demo-title { display: block; margin: 5px 0 4px; font-size: 14.5px; }
.help-demo-detail { margin: 0; color: var(--muted); }
.help-demo-fix { margin: 7px 0 0; color: var(--good); }
.help-demo-more { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.help-demo-key { counter-reset: key; list-style: none; padding-left: 0; margin: 0; font-size: 12.5px; }
.help-demo-key > li {
  counter-increment: key; position: relative; padding-left: 22px; margin-bottom: 9px;
  color: var(--muted); line-height: 1.45;
}
.help-demo-key > li::before {
  content: counter(key); position: absolute; left: 0; top: 0;
  width: 15px; height: 15px; border-radius: 3px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink);
  font-size: 10px; font-weight: 650; display: grid; place-items: center;
}

/* Severity chips, coloured exactly as a report colours them. */
.help .sev dt { margin-top: 12px; }
.help .sev dd { border-left: none; padding-left: 0; margin-top: 2px; color: var(--muted); }
.sev-chip {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid;
}
.sev-chip.critical { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 40%, transparent); background: color-mix(in srgb, var(--critical) 10%, transparent); }
.sev-chip.warning { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.sev-chip.notice { color: var(--notice); border-color: color-mix(in srgb, var(--notice) 40%, transparent); background: color-mix(in srgb, var(--notice) 10%, transparent); }

/* Cap thresholds read as a table of consequences, so they are set as one. */
.help .caps { list-style: none; padding-left: 0; margin: 12px 0; }
.help .caps li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.help .caps li:first-child { border-top: 1px solid var(--line); }
.help .caps span { flex: 1; }
.help .caps b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--critical); }

@media (max-width: 860px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 20px 90px; }
  .help-toc { position: static; margin: 0 -20px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
  .help-toc-inner { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .help-toc-inner::-webkit-scrollbar { display: none; }
  .help-toc a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .help-toc a.on { border-left: none; border-bottom-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .help-toc a { transition: none; }
}

/* ---- chat drawer ---- */
/* Overlays the right side rather than resizing the layout, so the findings you are
   asking about stay exactly where they were. */
/* display:flex outranks the hidden attribute's display:none, so say so explicitly. */
.chat-drawer[hidden] { display: none; }
.chat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  display: flex; flex-direction: column; z-index: 40;
  background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
}
.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.chat-head strong { display: block; font-size: 14px; }
.chat-context {
  display: block; font-size: 12px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px;
}
.chat-head-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.chat-note {
  margin: 0; padding: 9px 16px; font-size: 12.5px; color: var(--warning);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
  border-bottom: 1px solid var(--line);
}

.chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.chat-empty { color: var(--muted); font-size: 13.5px; }
.chat-suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; align-items: flex-start; }
.chat-suggest button {
  font: inherit; font-size: 12.5px; cursor: pointer; text-align: left;
  color: var(--accent); background: var(--accent-soft); border: 1px solid transparent;
  padding: 6px 10px; border-radius: 999px;
}
.chat-suggest button:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.chat-msg { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.chat-msg.user { align-items: flex-end; }
.chat-msg.user .chat-text {
  background: var(--accent-soft); color: var(--ink);
  padding: 8px 11px; border-radius: 12px 12px 3px 12px; max-width: 85%;
}
.chat-msg.bot .chat-text { max-width: 100%; }
.chat-re { font-size: 11px; color: var(--muted); }
.chat-meta { font-size: 11px; color: var(--muted); }
.chat-msg.pending .chat-text::after {
  content: '▍'; color: var(--muted); animation: chat-caret 1s steps(2) infinite;
}
@keyframes chat-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chat-msg.pending .chat-text::after { animation: none; }
}
.chat-error { color: var(--critical); margin: 8px 0 6px; }
.chat-retry {
  font: inherit; font-size: 12.5px; cursor: pointer; color: var(--accent);
  background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px;
}
/* Markdown coming back from the model: tighten the default block spacing. */
.chat-text.md > :first-child { margin-top: 0; }
.chat-text.md > :last-child { margin-bottom: 0; }
.chat-text.md p, .chat-text.md ul, .chat-text.md ol { margin: 0 0 8px; }
.chat-text.md h2, .chat-text.md h3, .chat-text.md h4 { font-size: 13.5px; margin: 12px 0 5px; }
.chat-text.md ul, .chat-text.md ol { padding-left: 20px; }
.chat-text.md code { background: var(--panel-2); padding: 1px 4px; border-radius: 4px; }
.chat-text.md pre { background: var(--panel-2); padding: 9px; border-radius: 6px; overflow-x: auto; }

.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea {
  flex: 1; resize: none; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.chat-form textarea:disabled { opacity: 0.55; }

/* The Ask affordance on a finding: quiet until you are near it. */
.finding .ask {
  float: right; font: inherit; font-size: 11px; text-transform: none; letter-spacing: 0;
  cursor: pointer; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
  opacity: 0; transition: opacity 0.12s, color 0.12s, border-color 0.12s;
}
.finding:hover .ask, .finding .ask:focus-visible { opacity: 1; }
.finding .ask:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@media (hover: none) { .finding .ask { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .finding .ask { transition: none; } }

/* The capability list at the top of the guide: scannable, not a wall. */
.help .capabilities { margin: 14px 0 4px; display: grid; gap: 0; }
.help .capabilities dt {
  margin: 0; padding: 9px 0 0; font-weight: 600; font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.help .capabilities dt:first-of-type { border-top: none; padding-top: 0; }
.help .capabilities dd {
  margin: 2px 0 9px; padding: 0; border-left: none; color: var(--muted); font-size: 13.5px;
}
