:root {
  --bg: #06172b;
  --bg-deep: #04101f;
  --surface: #0c2035;
  --surface-hover: #162e45;
  --text: #f7f4eb;
  --muted: #a5b1bd;
  --muted-strong: #ced5dc;
  --border: #334659;
  --border-bright: #617083;
  --accent: #ff402b;
  --accent-strong: #ff806c;
  --yellow: #ffca08;
  --ink: #06172b;
  --warning: #ffb34b;
  --review: #ffca08;
  --danger: #ff806c;
  --header-height: 98px;
  --page-gutter: clamp(1.5rem, 3.3vw, 3.5rem);
  --content-max: 1800px;
  --sans: "Arial Nova", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; background: var(--yellow); padding: 1rem; transform: translateY(-200%); color: var(--ink); }
.skip-link:focus { transform: none; }

/* Shared masthead and numbered navigation. */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); display: grid; grid-template-columns: 31% 49% 20%; min-height: 98px; max-width: var(--content-max); margin: auto; border-bottom: 1px solid var(--border-bright); }
.brand { position: relative; isolation: isolate; display: flex; align-items: center; padding: 1.3rem 1.5rem; text-decoration: none; background: var(--bg-deep); color: var(--text); font-size: clamp(1.3rem, 2.7vw, 2.8rem); font-weight: 900; letter-spacing: -.06em; white-space: nowrap; }
.brand > span { position: relative; z-index: 1; }
.brand > span > span { color: var(--accent); }
.brand::after { position: absolute; inset: 0 0 0 auto; width: 20%; background: var(--accent); clip-path: polygon(100% 0,100% 100%,0 100%); content: ""; z-index: 0; }
.primary-nav { display: grid; grid-template-columns: .85fr .85fr 1.15fr; min-width: 0; }
.primary-nav a { display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .85rem clamp(.8rem, 2.3vw, 2.4rem); border-right: 1px solid var(--border-bright); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; transition: background var(--ease); }
.primary-nav a:hover { background: var(--surface-hover); }
.primary-nav a.active { background: var(--accent); color: var(--ink); }
.primary-nav a:focus-visible { outline-offset: -5px; }
.nav-index { font-family: var(--mono); font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -.06em; }
.nav-toggle { display: none; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 52px; padding: .85rem 1.35rem; border: 1px solid var(--text); background: transparent; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; transition: background var(--ease), color var(--ease); }
.button:hover { background: var(--text); color: var(--bg); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button-primary:hover { background: #ff604c; border-color: #ff604c; color: var(--ink); }
.button-outline { border-color: var(--accent-strong); }
.header-action { border: 0; background: var(--yellow); padding: 1.5rem clamp(1rem, 3.3vw, 3rem); font-size: 17px; color: var(--ink); }
.header-action:hover { background: #edb900; color: var(--ink); }
.header-action svg { width: 28px; height: 28px; }

/* The hero and feed occupy the left column; the signal rail spans both. */
.home-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(255px, 1fr); max-width: var(--content-max); margin: auto; }
.hero { grid-column: 1; grid-row: 1; position: relative; isolation: isolate; padding: 36px var(--page-gutter) 29px; border-bottom: 1px solid var(--border); min-height: 426px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 22px; font-size: clamp(48px, 6.75vw, 108px); font-weight: 800; line-height: .99; letter-spacing: -.055em; }
.hero h1 > span { white-space: nowrap; }
.accent-dot { color: var(--accent); }
.hero-copy > p { max-width: 465px; margin: 0 0 24px; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 22px; max-width: 600px; }
.hero-actions .button { min-width: 212px; }
.sync-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 21px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.6; max-width: 560px; }
.sync-line strong { font-weight: 400; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; background: var(--accent); border-radius: 50%; }
.signal-art { position: absolute; z-index: 0; right: 3.5%; bottom: 22px; width: 34%; height: auto; stroke: none; pointer-events: none; }
.intelligence-shell { display: contents; }
.feed-panel { grid-column: 1; grid-row: 2; min-width: 0; padding: 20px var(--page-gutter) 30px; }
.section-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 14px; }
.section-heading > div { flex: 0 1 auto; min-width: 0; }
.section-heading::after { content: ""; height: 2px; flex: 1; background: var(--text); order: 2; min-width: 20px; }
.section-index { font: 800 42px/1 var(--mono); letter-spacing: -.065em; }
.section-heading h2, .signal-rail h2, .watched-vendors h3 { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; line-height: 1.25; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font: 10px/1.4 var(--mono); }
.icon-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--border); background: transparent; order: 3; }
.icon-button:hover { background: var(--yellow); color: var(--ink); }
.icon-button.loading svg { animation: rotate 900ms linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.feed-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.search-control { display: flex; align-items: center; gap: 10px; min-width: 180px; width: 43%; padding: 0 12px; border: 1px solid var(--border); }
.search-control:focus-within { outline: 2px solid var(--text); outline-offset: 1px; }
.search-control svg { width: 18px; height: 18px; }
.search-control input { width: 100%; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; font-size: 13px; }
.search-control input::placeholder { color: var(--muted); opacity: 1; }
.search-control kbd { color: var(--muted); font: 11px var(--mono); }
.filter-bar { display: flex; min-width: 0; }
.filter-button { min-height: 42px; padding: 8px 13px; background: transparent; border: 1px solid var(--border); margin-left: -1px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.filter-button:hover { background: var(--surface-hover); }
.filter-button.active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.feed-table { width: 100%; }
.feed-header, .feed-row { display: grid; grid-template-columns: minmax(126px, 1.15fr) minmax(190px, 2.15fr) 58px minmax(90px, .85fr) minmax(102px, 1.1fr) 76px 40px 18px; gap: 10px; align-items: center; padding: 10px 13px; }
.feed-header { background: var(--bg-deep); color: var(--text); font-size: 11px; font-weight: 700; }
.feed-row { min-height: 66px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 12px; line-height: 1.4; transition: background var(--ease); }
.feed-row:nth-child(odd) { background: var(--surface); }
.feed-row:hover { background: var(--surface-hover); }
.feed-row:focus-visible { outline-offset: -3px; }
.feed-row > * { min-width: 0; overflow-wrap: anywhere; }
.cve { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.row-kev { display: none; }
.feed-title { font-weight: 500; }
.mono, .code { font-family: var(--mono); }
.updated { display: grid; gap: 2px; font: 11px/1.45 var(--sans); }
.updated small { font-size: 10px; color: var(--muted); }
.score { justify-self: start; padding: 3px 6px; min-width: 35px; background: var(--surface-hover); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.score-critical { color: #fff; background: #c92b1b; }
.score-high { background: #ffce45; color: var(--ink); }
.score-medium { background: #ffdd72; color: var(--ink); }
.score-low { background: #d7dfd4; color: var(--ink); }
.affected { display: grid; font: 11px/1.4 var(--sans); gap: 3px; }
.affected small { font-size: 10px; color: var(--muted); }
.status { font-size: 11px; font-weight: 700; }
.status svg { display: none; }
.status-verified { color: var(--accent-strong); }
.status-review { color: var(--yellow); }
.status-observed { color: var(--muted); }
.kev-cell { font-size: 11px; }
.kev-yes { color: var(--accent-strong); font-weight: 700; }
.arrow svg { width: 16px; height: 16px; }
.feed-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; }
.pagination-status { display: flex; align-items: baseline; gap: 7px; margin: 0; font: 12px var(--mono); }
.pagination-status-label { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.pagination-status strong { font-size: 23px; }
.pagination-controls, .page-links { display: flex; align-items: center; gap: 7px; }
.page-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; min-width: 36px; border: 1px solid var(--border); padding: 6px 9px; background: transparent; font: 600 13px var(--mono); }
.page-button svg { width: 17px; height: 17px; }
.page-button:hover:not(:disabled) { border-color: var(--text); background: var(--yellow); color: var(--ink); }
.page-button.active { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.page-button:disabled { opacity: .35; }
.page-direction span { font: 11px var(--sans); }
.page-ellipsis { font: 12px var(--mono); padding: 0 2px; }
.empty-state { padding: 70px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.empty-state > svg { width: 44px; height: 44px; margin-bottom: 10px; }
.empty-state h3 { font-size: 23px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.text-link { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 6px 0; font-weight: 700; }

/* Signals use real dataset totals rather than illustrative daily counts. */
.signal-rail { grid-column: 2; grid-row: 1 / span 2; min-width: 0; border-left: 1px solid var(--border-bright); align-self: stretch; display: flex; flex-direction: column; position: relative; }
.signal-rail h2 { display: flex; gap: 22px; align-items: center; margin: 34px 24px 0; padding-bottom: 14px; border-bottom: 2px solid var(--border-bright); }
.signal-rail h2 .section-index { color: var(--accent-strong); }
.signal-metrics { padding: 10px 24px 27px; }
.signal-metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 75px; padding: 15px 0; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; }
.signal-metric > span { border-left: 4px solid var(--accent); padding-left: 13px; font-size: 12px; line-height: 1.4; }
.signal-metric small { display: block; color: var(--muted); font-size: 10px; }
.signal-metric strong { font: 800 29px/1 var(--mono); letter-spacing: -.07em; }
.signal-metric:hover strong { color: var(--accent-strong); }
.signal-metric:hover > span { border-left-color: var(--text); }
.signal-scope { margin: 20px 0 0; font: 10px/1.5 var(--mono); color: var(--muted); }
.watched-vendors { order: 2; border-top: 1px solid var(--border-bright); padding: 28px 24px 35px; position: relative; overflow: hidden; }
.watched-vendors::after { position: absolute; bottom: 0; right: 0; border-style: solid; border-width: 0 0 30px 65px; border-color: transparent transparent var(--yellow) transparent; content: ""; }
.watched-vendors h3 { display: flex; align-items: center; gap: 22px; border-bottom: 2px solid var(--border-bright); padding-bottom: 16px; }
.watched-vendors .section-index { color: var(--yellow); }
.watched-vendors ol { list-style: none; margin: 19px 0 0; padding: 0; }
.watched-vendors li { display: grid; grid-template-columns: 1fr 12px 26px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.watched-vendors li > span { width: 8px; height: 8px; font-size: 0; background: var(--accent); border-radius: 50%; grid-column: 2; grid-row: 1; }
.watched-vendors li:nth-child(3n) > span { background: #ef9400; }
.watched-vendors button { grid-column: 1; grid-row: 1; padding: 2px 0; border: 0; background: none; font-size: 13px; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.watched-vendors button:hover { text-decoration: underline; text-underline-offset: 3px; }
.watched-vendors li strong { font: 600 12px var(--mono); text-align: right; }
.priority-item { order: 3; padding: 27px 24px; border-top: 1px solid var(--border-bright); background: var(--bg-deep); color: var(--text); }
.priority-item > p { color: #ffb34b; font-size: 10px; text-transform: uppercase; line-height: 1.6; margin: 0 0 16px; }
.priority-item > strong { font: 700 17px var(--mono); color: var(--yellow); }
.priority-item h3 { font-size: 16px; line-height: 1.45; margin: 14px 0; }
.priority-item > span { display: block; font: 10px var(--mono); color: #c3c8ca; }
.priority-item a { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; font-size: 12px; text-decoration: none; }
.priority-item a:hover { color: var(--yellow); }
.methodology-link { order: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 25px 24px; background: transparent; border: 0; border-bottom: 1px solid var(--border); text-align: left; }
.methodology-link > span { display: flex; gap: 10px; }
.methodology-link > span > svg { display: none; }
.methodology-link strong, .methodology-link small { display: block; }
.methodology-link strong { font-size: 13px; }
.methodology-link small { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.methodology-link:hover { background: var(--yellow); color: var(--ink); }
.methodology-link:hover small { color: var(--ink); }
.methodology-section { grid-column: 1 / -1; padding: 55px var(--page-gutter); border-top: 1px solid var(--border-bright); display: grid; grid-template-columns: 1fr 1.8fr; gap: 65px; }
.methodology-section h2 { font-size: 35px; letter-spacing: -.05em; margin: 0 0 15px; }
.methodology-section p { color: var(--muted-strong); font-size: 13px; line-height: 1.7; margin: 0; }
.methodology-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.methodology-steps article { border-top: 5px solid var(--accent); padding-top: 17px; }
.methodology-steps article:nth-child(2) { border-color: var(--yellow); }
.methodology-steps article:nth-child(3) { border-color: var(--text); }
.methodology-steps article > span { font: 700 13px var(--mono); }
.methodology-steps h3 { font-size: 18px; margin: 14px 0 12px; }
.site-footer { max-width: var(--content-max); margin: auto; padding: 26px var(--page-gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--bg-deep); color: var(--text); font-size: 11px; }
.site-footer > div { display: flex; align-items: center; gap: 8px; }
.site-footer strong { font-weight: 400; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }

/* Detail pages reuse the same typography, borders, and semantic colors. */
.detail-main { max-width: var(--content-max); margin: auto; padding: 32px var(--page-gutter) 65px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 32px; font: 12px var(--mono); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb > span:last-child { color: var(--accent-strong); font-weight: 700; }
.detail-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 35px; border-top: 2px solid var(--text); padding-top: 30px; }
.detail-hero h1 { margin: 0; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -.045em; max-width: 1000px; overflow-wrap: anywhere; }
.detail-hero p { max-width: 900px; color: var(--muted-strong); font-size: 15px; line-height: 1.75; margin: 23px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font: 11px/1.5 var(--mono); }
.detail-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.detail-badge { padding: 9px 12px; border: 1px solid var(--border); font: 700 11px/1.4 var(--mono); white-space: nowrap; }
.score-badge { background: var(--bg-deep); color: var(--text); border-color: var(--text); font-size: 14px; padding: 14px 16px; }
.verified-badge { border-color: var(--accent-strong); color: var(--accent-strong); }
.kev-badge { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 27px 0 32px; }
.detail-actions .button { min-height: 42px; padding: .65rem 1rem; font-size: 12px; gap: 25px; }
.detail-actions svg { width: 17px; height: 17px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 50px; align-items: start; }
.detail-article { min-width: 0; }
.tabs { display: flex; border-bottom: 2px solid var(--border-bright); }
.tab { background: transparent; min-width: 120px; min-height: 48px; border: 0; padding: 12px 24px; font-size: 13px; font-weight: 700; }
.tab:hover { background: var(--surface-hover); }
.tab.active { background: var(--yellow); color: var(--ink); }
.detail-section { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.detail-section h2 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 800; }
.detail-section p, .detail-section ul { margin: 0; font-size: 14px; line-height: 1.85; color: var(--muted-strong); overflow-wrap: anywhere; }
.detail-section ul { padding-left: 18px; }
.detail-section li + li { margin-top: 8px; }
mark { color: var(--ink); background: #ffe6a0; padding: 2px 4px; }
.poc-section, .stacked-section { display: block; }
.poc-section h2, .stacked-section h2 { margin-bottom: 22px; }
.poc-header, .poc-row { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,.8fr) 85px 80px 20px; gap: 15px; align-items: start; }
.poc-header { background: var(--bg-deep); color: var(--text); padding: 12px; font-size: 10px; }
.poc-row { padding: 18px 12px; border-bottom: 1px solid var(--border); font-size: 11px; text-decoration: none; line-height: 1.65; overflow-wrap: anywhere; }
.poc-row:hover { background: var(--surface-hover); }
.poc-repository { min-width: 0; }
.poc-repository strong { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.poc-description, .poc-meta { display: block; margin-top: 8px; color: var(--muted-strong); font-size: 11px; }
.poc-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.poc-meta span { padding: 2px 6px; background: var(--surface-hover); }
.poc-row svg { width: 17px; height: 17px; }
.confidence-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: var(--yellow); }
.confidence-dot.high { background: var(--accent); }
.confidence-dot.low { background: var(--muted); }
.glance-panel { border: 1px solid var(--text); }
.glance-panel > h2 { margin: 0; padding: 20px 23px; background: var(--yellow); font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.glance-panel dl { margin: 0; padding: 6px 23px 20px; }
.glance-panel dl > div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); padding: 16px 0; font-size: 12px; line-height: 1.5; }
.glance-panel dt { color: var(--muted); flex: 1; }
.glance-panel dd { margin: 0; max-width: 60%; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.glance-panel dd.code { font-size: 10px; }
.accent-value { color: var(--accent-strong); }
.confidence-panel { padding: 25px 23px; border-top: 1px solid var(--border-bright); }
.confidence-panel h3 { font-size: 13px; margin: 0 0 14px; text-transform: uppercase; }
.confidence-panel > strong { display: block; font: 800 52px/1 var(--mono); letter-spacing: -.065em; }
.confidence-panel > strong small { font: 400 15px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.confidence-meter { height: 7px; background: var(--border); margin-top: 21px; }
.confidence-meter > span { display: block; height: 100%; background: var(--accent); }
.meter-scale { display: flex; justify-content: space-between; font: 10px var(--mono); margin-top: 8px; color: var(--muted); }
.confidence-panel p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 19px 0 0; }
.timeline-item, .history-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.timeline-item time, .history-item time { font: 11px/1.7 var(--mono); color: var(--muted); }
.timeline-item a { font-size: 12px; color: var(--accent-strong); }
.history-item { grid-template-columns: 110px 1fr; }
.correction-actions { display: flex; gap: 25px; margin-top: 27px; font-size: 11px; color: var(--muted); }
.modal { width: min(480px, calc(100% - 32px)); border: 2px solid var(--text); border-top: 9px solid var(--accent); padding: 36px; background: var(--bg); color: var(--text); }
.modal::backdrop { background: rgb(6 23 43 / 65%); }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); background: transparent; }
.modal-close:hover { background: var(--yellow); color: var(--ink); }
.modal-index { color: var(--accent-strong); font: 12px var(--mono); }
.modal h2 { font-size: 37px; letter-spacing: -.045em; margin: 23px 0 16px; }
.modal p { font-size: 13px; line-height: 1.7; }
.modal label { display: block; font-size: 12px; margin: 20px 0; }
.modal input[type="email"] { display: block; width: 100%; background: transparent; border: 1px solid var(--border); padding: 13px; margin-top: 9px; border-radius: 0; }
.modal .check-row { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.modal input[type="checkbox"] { accent-color: var(--accent-strong); }
.modal .button-primary { margin-top: 15px; width: 100%; }
.form-status { min-height: 20px; }

.feed-display-controls { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.page-size-control { display: inline-flex; align-items: center; gap: 12px; color: var(--muted-strong); font-size: 12px; }
.page-size-control select { min-height: 42px; min-width: 76px; padding: 8px 12px; border: 1px solid var(--border-bright); border-radius: 0; background: var(--surface); color: var(--text); font: 700 13px var(--mono); cursor: pointer; }
.page-size-control select:hover { border-color: var(--yellow); }
.page-size-control select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Narrow screens preserve a readable feed with in-row field labels. */
@media (min-width: 1800px) {
  .site-header, .home-layout { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
@media (max-width: 1250px) {
  :root { --header-height: 86px; }
  .site-header { grid-template-columns: 29% 51% 20%; min-height: 86px; }
  .brand { padding-left: 20px; font-size: 2.55vw; }
  .primary-nav a { padding-left: 20px; font-size: 12px; }
  .nav-index { font-size: 30px; }
  .header-action { font-size: 14px; gap: 15px; color: var(--ink); }
  .home-layout { grid-template-columns: minmax(0,1fr) 255px; }
  .hero { padding-top: 34px; min-height: 400px; }
  .hero h1 { font-size: 6.15vw; }
  .hero-copy > p { max-width: 350px; font-size: 16px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-width: 170px; font-size: 12px; gap: 22px; padding: 12px 16px; }
  .signal-art { width: 32%; bottom: 22px; }
  .feed-toolbar { flex-wrap: wrap; gap: 12px; }
  .search-control { width: 100%; }
  .filter-bar { flex-wrap: wrap; }
  .feed-header, .feed-row { grid-template-columns: 119px minmax(145px,1.9fr) 46px 70px minmax(85px,1fr) 57px 29px 12px; gap: 7px; padding-left: 8px; padding-right: 8px; }
  .feed-title, .cve { font-size: 10px; }
  .status, .updated, .affected, .kev-cell { font-size: 10px; }
  .feed-panel { padding-left: 24px; padding-right: 24px; }
  .detail-layout { gap: 30px; grid-template-columns: minmax(0,1fr) 265px; }
  .detail-section { grid-template-columns: 135px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 1100px) {
  .home-layout { grid-template-columns: minmax(0,1fr); }
  .hero { grid-column: 1; min-height: 400px; padding: 35px var(--page-gutter); }
  .hero h1 { font-size: 8vw; }
  .hero-copy > p { max-width: 440px; }
  .signal-art { width: 31%; bottom: 25px; }
  .feed-panel { grid-column: 1; grid-row: 2; padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  .signal-rail { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-left: 0; border-top: 1px solid var(--border-bright); }
  .signal-rail h2 { grid-column: 1; margin-bottom: 0; }
  .signal-metrics { grid-column: 1; }
  .watched-vendors { grid-column: 2; grid-row: 1 / span 2; border-top: 0; border-left: 1px solid var(--border); }
  .priority-item { grid-column: 1; }
  .methodology-link { grid-column: 2; border-top: 1px solid var(--border); }
  .feed-toolbar { flex-wrap: nowrap; }
  .search-control { width: 43%; }
  .feed-header, .feed-row { grid-template-columns: 130px minmax(170px,1.9fr) 50px 83px minmax(90px,1fr) 70px 35px 15px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .feed-title, .cve { font-size: 11px; }
  .status, .updated, .affected, .kev-cell { font-size: 11px; }
  .methodology-section { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 900px) {
  :root { --header-height: 74px; }
  .site-header { grid-template-columns: minmax(0,1fr) auto auto; min-height: 74px; }
  .brand { font-size: 26px; padding: 20px; }
  .brand::after { display: none; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 64px; border: 0; border-right: 1px solid var(--text); background: var(--accent); order: 2; }
  .nav-toggle > span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); transition: transform var(--ease); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--border-bright); }
  .primary-nav.open { display: grid; }
  .primary-nav a { min-height: 85px; font-size: 12px; padding: 15px; }
  .header-action { order: 3; padding: 12px 17px; min-height: 74px; font-size: 12px; gap: 12px; color: var(--ink); }
  .header-action svg { width: 18px; }
  .hero { min-height: 420px; padding-top: 36px; }
  .hero h1 { font-size: 8.9vw; }
  .hero-copy > p { max-width: 380px; }
  .signal-art { width: 30%; }
  .hero-actions { max-width: 80%; }
  .sync-line { max-width: 72%; }
  .feed-toolbar { flex-wrap: wrap; }
  .search-control { width: 100%; }
  .filter-bar { width: 100%; }
  .filter-button { flex: 1; min-height: 44px; }
  .feed-header { display: none; }
  .feed-row { grid-template-columns: minmax(0,1fr) auto auto 18px; gap: 10px 15px; padding: 19px 14px; border-top: 0; }
  .feed-table { border-top: 3px solid var(--text); }
  .feed-row .cve { grid-column: 1; grid-row: 1; font-size: 12px; }
  .feed-row .score { grid-column: 2; grid-row: 1; font-size: 14px; }
  .feed-row .status { grid-column: 3; grid-row: 1; font-size: 10px; }
  .feed-row .arrow { grid-column: 4; grid-row: 1; }
  .feed-row .feed-title { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.5; font-weight: 600; }
  .feed-row .updated { grid-column: 1; grid-row: 3; font-size: 11px; align-self: start; }
  .feed-row .updated::before { content: "Updated"; font: 9px var(--mono); text-transform: uppercase; color: var(--muted); }
  .feed-row .affected { grid-column: 2 / -1; grid-row: 3; font-size: 11px; }
  .feed-row .affected::before { content: "Product"; font: 9px var(--mono); text-transform: uppercase; color: var(--muted); }
  .feed-row .kev-cell { grid-column: 1 / -1; grid-row: 4; font-size: 10px; }
  .feed-row .kev-cell::before { content: "CISA KEV: "; }
  .detail-hero { grid-template-columns: 1fr; gap: 22px; }
  .detail-badges { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .detail-section { grid-template-columns: 140px minmax(0,1fr); }
  .glance-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .glance-panel > h2 { grid-column: 1 / -1; color: var(--ink); }
  .confidence-panel { border-top: 0; border-left: 1px solid var(--border); }
  .site-footer { gap: 20px; line-height: 1.6; }
}
@media (max-width: 540px) {
  :root { --page-gutter: 20px; --header-height: 66px; }
  .site-header { min-height: 66px; }
  .brand { font-size: 20px; padding: 18px 14px; }
  .nav-toggle { width: 48px; }
  .header-action { min-height: 66px; padding: 12px; font-size: 11px; gap: 8px; color: var(--ink); }
  .header-action svg { display: none; }
  .primary-nav { grid-template-columns: 1fr; }
  .primary-nav a { flex-direction: row; align-items: center; justify-content: flex-start; gap: 22px; min-height: 58px; border-bottom: 1px solid var(--border); border-right: 0; padding: 13px 22px; font-size: 14px; }
  .nav-index { font-size: 26px; }
  .hero { padding: 32px 20px 27px; min-height: 0; }
  .hero h1 { font-size: clamp(35px, 9.1vw, 49px); line-height: 1.04; letter-spacing: -.055em; margin-bottom: 24px; }
  .hero-copy > p { max-width: calc(100% - 90px); font-size: 15px; line-height: 1.5; margin-bottom: 25px; }
  .hero-actions { max-width: none; gap: 10px; }
  .hero-actions .button { flex: 1; min-width: 0; min-height: 49px; padding: 11px 12px; gap: 8px; font-size: 11px; }
  .hero-actions svg { width: 18px; }
  .signal-art { width: 75px; right: 10px; top: 108px; bottom: auto; }
  .sync-line { max-width: none; font-size: 9px; margin-top: 20px; gap: 5px; }
  .section-heading { gap: 17px; }
  .section-heading::after { display: none; }
  .section-heading > div { flex: 1; }
  .section-heading h2 { font-size: 12px; }
  .section-heading p { font-size: 9px; line-height: 1.6; }
  .section-index { font-size: 34px; }
  .feed-panel { padding-top: 22px; }
  .filter-bar { row-gap: 5px; }
  .filter-button { padding: 8px; font-size: 10px; }
  .feed-row { gap: 10px; padding-left: 11px; padding-right: 11px; }
  .feed-row .cve { font-size: 10px; }
  .feed-row .score { font-size: 12px; min-width: 30px; }
  .feed-row .status { font-size: 9px; }
  .pagination-controls { justify-content: center; width: 100%; gap: 5px; }
  .page-links { gap: 5px; }
  .page-button { min-width: 39px; min-height: 44px; padding: 5px; }
  .page-direction span { display: none; }
  .feed-pagination { justify-content: center; }
  .signal-rail { display: flex; }
  .signal-rail h2 { margin: 25px 20px 0; }
  .signal-metrics { padding: 10px 20px 25px; }
  .signal-metric { min-height: 65px; }
  .watched-vendors { border-left: 0; border-top: 1px solid var(--border-bright); padding: 25px 20px 32px; }
  .priority-item { padding: 25px 20px; }
  .methodology-section { padding: 36px 20px; gap: 28px; }
  .methodology-section h2 { font-size: 31px; }
  .methodology-steps { grid-template-columns: 1fr; gap: 24px; }
  .methodology-steps article { display: grid; grid-template-columns: 35px 1fr; column-gap: 15px; }
  .methodology-steps article > span { margin-top: 3px; }
  .methodology-steps h3 { margin: 0 0 10px; }
  .methodology-steps p { grid-column: 2; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 26px 20px; }
  .detail-main { padding-top: 25px; }
  .detail-hero h1 { font-size: 32px; }
  .detail-hero p { font-size: 14px; }
  .detail-badge { font-size: 10px; white-space: normal; }
  .score-badge { font-size: 12px; }
  .detail-section { display: block; padding: 24px 0; }
  .detail-section h2 { margin-bottom: 13px; }
  .tab { min-width: 0; flex: 1; padding: 12px; }
  .poc-header { display: none; }
  .poc-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 15px; padding: 17px 0; }
  .poc-repository { grid-column: 1 / -1; }
  .poc-row > span:nth-child(3) { grid-column: 1; }
  .poc-row > span:nth-child(4) { grid-row: 2; grid-column: 2; }
  .poc-row > svg { grid-column: 2; grid-row: 3; justify-self: end; }
  .glance-panel { display: block; }
  .confidence-panel { border-left: 0; border-top: 1px solid var(--border); }
  .timeline-item, .history-item { grid-template-columns: 1fr; gap: 8px; }
  .modal { padding: 27px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
