:root {
  --bg: #f4f6f8;
  --surface: #fff;
  --surface-2: #eef2f5;
  --ink: #17202a;
  --muted: #5d6b78;
  --border: #d6dde3;
  --accent: #0067b8;
  --accent-soft: #e6f2fb;
  --security: #9a3412;
  --security-soft: #fff1eb;
  --critical: #b42318;
  --critical-soft: #fff0ee;
  --warning: #8a4b08;
  --warning-soft: #fff4e5;
  --success: #146c43;
  --success-soft: #edf9f1;
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.cve-topbar { min-height: 92px; padding: 20px clamp(20px, 4vw, 64px); background: #17202a; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cve-brand { display: block; width: clamp(300px, 34vw, 450px); }
.cve-brand img { display: block; width: 100%; height: auto; }
.cve-header-status { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.source-pill { border: 1px solid #8bcdf7; border-radius: 999px; color: #d8effd; background: rgb(0 103 184 / .18); font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 6px 9px; }
.cve-refresh-banner { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgb(101 183 238 / .58); border-radius: 9px; background: rgb(0 103 184 / .16); color: #d8effd; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: 0 0 18px rgb(0 120 212 / .2); }
.cve-refresh-banner[data-state="complete"] { background: rgb(69 196 124 / .12); border-color: rgb(129 211 165 / .46); box-shadow: 0 0 18px rgb(69 196 124 / .16); }
.cve-refresh-banner[data-state="backoff"], .cve-refresh-banner[data-state="failed"] { color: #c5d5e1; background: rgb(93 107 120 / .16); border-color: rgb(169 203 229 / .28); box-shadow: none; }
.refresh-orbit { width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid rgb(169 203 229 / .35); border-top-color: #8bcdf7; border-radius: 50%; animation: cve-refresh-spin 1.1s linear infinite; }
@keyframes cve-refresh-spin { to { transform: rotate(360deg); } }
.cve-freshness { color: #d5e1eb; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45c47c; box-shadow: 0 0 0 3px rgb(69 196 124 / .18); flex: 0 0 auto; }
main { max-width: 1500px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 64px; }
.cve-hero { margin-bottom: 12px; }
.cve-eyebrow { color: var(--security); font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; margin: 0; text-transform: uppercase; }

.cve-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.cve-summary > div { min-height: 86px; padding: 17px 20px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); }
.cve-summary > div:last-child { border-right: 0; }
.cve-summary span { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.cve-summary small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.cve-summary .critical-stat span { color: var(--critical); }
.cve-workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.cve-sidebar { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 9px; }
.view-switch { display: grid; gap: 6px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.view-switch-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; margin: 0 0 2px; text-transform: uppercase; }
.view-option { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 7px; padding: 9px 8px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.view-option:hover { background: var(--surface-2); border-color: var(--border); }
.view-option.active { background: var(--security-soft); border-color: #efc0aa; box-shadow: inset 3px 0 0 #c2410c; }
.view-option strong, .view-option small { display: block; }
.view-option strong { font-size: 12px; line-height: 1.25; }
.view-option small { color: var(--muted); font-size: 11px; line-height: 1.25; margin-top: 2px; }
.view-glyph { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; color: var(--accent); background: var(--accent-soft); font-size: 16px; }
.view-option.active .view-glyph { color: #fff; background: #c2410c; }
.cve-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; }
.cve-filter-heading h2, .cve-results h2 { font-size: 18px; letter-spacing: -.01em; margin: 0; }
.cve-filter-heading button { border: 0; background: transparent; color: var(--accent); cursor: pointer; padding: 5px; font-size: 13px; }
.cve-sidebar > label { color: var(--muted); font-size: 12px; font-weight: 650; margin-top: 8px; }
.cve-sidebar input[type="search"], .cve-sidebar select, .cve-sort select { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 0 10px; }
.cve-search-wrap { position: relative; }
.cve-search-wrap input { padding-right: 38px !important; }
kbd { position: absolute; right: 10px; top: 10px; min-width: 22px; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--surface-2); text-align: center; font-size: 11px; }
.cve-results { min-width: 0; }
.cve-results-bar { min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cve-results-bar .cve-eyebrow { margin-bottom: 3px; color: var(--muted); }
.cve-results-bar p:not(.cve-eyebrow) { color: var(--muted); font-size: 13px; margin: 3px 0 0; }
.cve-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cve-sort select { width: auto; min-width: 190px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.filter-chip { border: 1px solid #efc0aa; background: var(--security-soft); color: #7c2d12; border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.cve-items { display: grid; gap: 9px; }
.cve-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 19px; transition: border-color .15s ease, box-shadow .15s ease; }
.cve-card:hover { border-color: #d59c80; box-shadow: 0 3px 12px rgb(154 52 18 / .08); }
.cve-card-topline { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.cve-card-topline time { margin-left: auto; font-variant-numeric: tabular-nums; }
.severity-badge { color: #fff; border-radius: 4px; padding: 3px 7px; font-size: 11px; font-weight: 800; }
.severity-badge[data-severity="critical"] { background: var(--critical); }
.severity-badge[data-severity="important"] { background: #c2410c; }
.severity-badge[data-severity="moderate"] { color: #7c2d12; background: #fed7aa; }
.severity-badge[data-severity="low"] { color: #14532d; background: #bbf7d0; }
.cve-id { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 11px; font-weight: 700; }
.cve-card h3 { font-size: 17px; line-height: 1.35; margin: 11px 0 7px; letter-spacing: -.01em; }
.cve-card h3 a { color: var(--ink); text-decoration: none; }
.cve-card h3 a:hover { color: var(--security); text-decoration: underline; text-underline-offset: 3px; }
.cve-description { color: #44515d; font-size: 13px; line-height: 1.52; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cve-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr); gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.cve-card-grid small, .cve-card-grid strong { display: block; }
.cve-card-grid small { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.cve-card-grid strong { font-size: 12px; line-height: 1.45; }
.cve-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.security-tag { border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface-2); padding: 3px 6px; font-size: 11px; }
.security-tag[data-state="alert"] { color: var(--critical); background: var(--critical-soft); border-color: #f2b8b2; font-weight: 700; }
.security-tag[data-state="quiet"] { color: var(--success); background: var(--success-soft); border-color: #b8dfc7; }
.load-more { display: block; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--accent); cursor: pointer; font-weight: 650; }
.empty, .error-panel { border: 1px dashed var(--border); background: var(--surface); border-radius: var(--radius); color: var(--muted); padding: 42px; text-align: center; }
.error-panel { border-color: #efaaa3; color: var(--critical); }
footer { max-width: 1500px; margin: -38px auto 0; padding: 0 clamp(16px, 3vw, 40px) 28px; color: var(--muted); font-size: 11px; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgb(194 65 12 / .25); outline-offset: 2px; }
@media (max-width: 900px) { .cve-summary { grid-template-columns: repeat(2, 1fr); } .cve-summary > div:nth-child(2) { border-right: 0; } .cve-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } .cve-workspace { grid-template-columns: 1fr; } .cve-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } .view-switch, .cve-filter-heading, .cve-search-wrap { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cve-topbar { align-items: flex-start; flex-direction: column; } .cve-header-status { align-items: flex-start; justify-content: flex-start; } .cve-brand { width: min(100%, 450px); } .cve-sidebar { grid-template-columns: 1fr; } .cve-sidebar > * { grid-column: 1 !important; } .cve-results-bar { align-items: flex-start; flex-direction: column; } .cve-sort { width: 100%; } .cve-sort select { flex: 1; min-width: 0; } .cve-card-topline { flex-wrap: wrap; } .cve-card-topline time { width: 100%; margin-left: 0; } .cve-card-grid { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { :root { --bg:#10151a; --surface:#172027; --surface-2:#202b33; --ink:#f2f5f7; --muted:#a8b4be; --border:#34414b; --accent:#65b7ee; --accent-soft:#173a50; --security-soft:#3b241b; --critical-soft:#3a1b1a; --success-soft:#163326; } .cve-description { color: #c2ccd4; } .cve-topbar { background: #0a0f13; } .cve-card h3 a:hover { color: #ffb38e; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .cve-refresh-banner, .refresh-orbit { animation: none !important; } }
