* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: system-ui, sans-serif; --ink: #e5e4e2; --mute: #a7b2b9; --line: #353d43; --slate: #536878; --surface: #15191c; }
body { margin: 0; color: var(--ink); background: #0a0a0a; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #b8d3e6; outline-offset: 3px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 0 max(24px, calc((100% - 1256px)/2)); border-bottom: 1px solid var(--line); font-size: .83rem; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 720; letter-spacing: .14em; }
.brand img { width: 31px; height: 31px; }
.brand-product { border-left: 1px solid var(--line); padding-left: 12px; color: var(--mute); font-weight: 500; letter-spacing: 0; }
main { width: min(100% - 48px, 1256px); margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 38px 0 25px; }
.kicker, .finding-rule, .severity, .source figcaption { font: .76rem ui-monospace, Consolas, monospace; }
.kicker { color: #b6c9d5; margin: 0 0 12px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #8ca7ba; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.055em; margin: 0 0 10px; }
.lede { margin: 0; color: var(--mute); line-height: 1.48; }
.install-button { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--ink); padding: 10px 14px; color: #0a0a0a; background: var(--ink); font-weight: 680; white-space: nowrap; }
.install-button:hover { background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 20px; border: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px 16px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dd { margin: 0; font: 650 1.5rem ui-monospace, Consolas, monospace; }
.stats dt { color: var(--mute); font-size: .75rem; }
.workbench { display: grid; grid-template-columns: minmax(245px, 315px) minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
.sidebar { border-right: 1px solid var(--line); }
.sidebar h2 { display: flex; justify-content: space-between; font-size: .96rem; margin: 0; padding: 16px 14px 12px; }
.sidebar h2 span, .item small { color: #bac8d1; font: .72rem ui-monospace, Consolas, monospace; }
.filters { display: flex; flex-wrap: wrap; padding: 0 10px 12px; gap: 3px; }
.filters button, .modes button { background: transparent; border: 1px solid transparent; color: var(--mute); padding: 6px 8px; font-size: .78rem; }
.filters [aria-pressed=true] { color: var(--ink); background: #27343c; border-color: var(--line); }
.item { display: block; width: 100%; text-align: left; padding: 12px 12px 12px 14px; background: transparent; border: 0; border-top: 1px solid var(--line); border-left: 3px solid transparent; color: var(--ink); }
.item[aria-pressed=true] { color: white; background: var(--slate); border-left-color: #d7e4ed; }
.item:hover:not([aria-pressed=true]), .modes button:hover, .filters button:hover { background: #24323b; }
.item strong, .item small { display: block; }
.item strong { font-size: .86rem; margin: 4px 0; }
.item[aria-pressed=true] small { color: #f1f6f9; }
.modes { display: flex; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.modes button { padding: 12px 7px; border-bottom: 2px solid transparent; }
.modes [aria-pressed=true] { color: var(--ink); border-bottom-color: #a4bdce; }
article { padding: 18px 20px 24px; }
.evidence-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
article h2 { font-size: clamp(1.18rem, 2.5vw, 1.55rem); margin: 3px 0 0; letter-spacing: -.025em; }
.finding-rule { color: #adc5d5; }
.severity { color: #dbe8f0; background: #27343c; padding: 5px 7px; white-space: nowrap; }
.source { margin: 15px 0; background: #0e1215; border: 1px solid var(--line); }
.source figcaption { display: flex; justify-content: space-between; color: #c4d1d9; border-bottom: 1px solid var(--line); padding: 9px 10px; }
pre { overflow-x: auto; margin: 0; padding: 8px 0; font: 12px/1.65 ui-monospace, Consolas, monospace; }
.line { display: flex; width: max-content; min-width: 100%; padding-right: 12px; border-left: 3px solid transparent; }
.line[data-highlight=true] { border-left-color: #cee0ed; background: #2e434f; }
.line-number { width: 34px; flex: none; color: #bac8d1; text-align: center; }
.review-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-notes h3 { font-size: .83rem; margin: 0 0 5px; }
.review-notes p { color: #bdc7cd; font-size: .82rem; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
#timeline { margin: 14px 0 0; list-style: none; padding: 0; }
#timeline li { border-top: 1px solid var(--line); padding: 10px 2px; font-size: .88rem; }
#timeline li:first-child { color: #b6c9d5; }
footer { color: var(--mute); padding: 17px 0; font-size: .77rem; }
footer span { margin: 0 5px; }
dialog { width: min(580px, 100% - 28px); color: var(--ink); background: var(--surface); border: 1px solid #6c818f; padding: 18px; }
dialog::backdrop { background: #000b; }
.dialog-title, .dialog-actions { display: flex; align-items: center; gap: 12px; }
.dialog-title { justify-content: space-between; }
.dialog-title h2 { margin: 0; }
.close { color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 1.3rem; min-width: 36px; }
dialog p, .dialog-actions { font-size: .88rem; }
dialog textarea { display: block; width: 100%; resize: vertical; padding: 10px; margin-bottom: 12px; background: #0a0a0a; color: var(--ink); border: 1px solid var(--line); font: .82rem/1.5 ui-monospace, Consolas, monospace; }
.dialog-actions { flex-wrap: wrap; }
@media (max-width: 740px) {
  main { width: calc(100% - 24px); }
  .bar { padding: 0 12px; }
  .intro { align-items: flex-start; flex-direction: column; padding: 24px 0 18px; gap: 14px; }
  .wide { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  #finding-list { display: flex; overflow-x: auto; }
  .item { flex: 0 0 193px; border-right: 1px solid var(--line); }
  article { padding: 14px; }
  .review-notes { grid-template-columns: 1fr; gap: 12px; }
}
