/* Exposure Loop microsite — Datadog brand, built on the Druids token set
   (illustration-self-service-infra/app/src/druids.css) plus doodle diagrams. */

/* Noto Sans, the DRUIDS text face (SIL OFL 1.1, fonts/OFL.txt), self-hosted: latin, the four weights the page uses */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/noto-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/noto-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --dd-purple: #632ca6;
  --dd-purple-700: #4d1f88;
  --dd-purple-900: #1f0d3f;
  --dd-purple-100: #f4ecfb;
  --dd-purple-200: #e3cef5;
  --dd-purple-300: #c79deb;
  /* purple for text and thin rules: the brand purple in light, a readable light purple in dark */
  --accent: #632ca6; --accent-strong: #4d1f88;
  --dd-orange: #ff9e45;
  --dd-teal: #3cc6bd;
  --dd-magenta: #e0457b;
  /* dev-site banner: hazard yellow with dark ink in both themes */
  --stage-banner-bg: #ffd23f; --stage-banner-ink: #1a1300;
  /* Ask Bits button (matches Datadog's product button; same in light and dark) */
  --bits-bg: #5b5fd7; --bits-bg-hover: #6a6ee3; --bits-bg-active: #4e52c4;
  --bits-edge: #7479e6; --bits-ink: #f5f5ff; --bits-ring: #a5a8f5;
  /* bug mode (the 8-bit motif): sprite colors, the arcade scrim over the page, and its scanlines */
  --bugz-beetle: #e0457b; --bugz-moth: #ff9e45; --bugz-mite: #3cc6bd; --bugz-eye: #fffdf7;
  --bugz-ai: #a5a8f5; --bugz-visor: #3cc6bd; --bugz-patch: #ffd23f; --bugz-hot: #ff4d4d; --bugz-zero: #ffd23f;
  --bugz-text: #f5f5ff; --bugz-card: #171129; --bugz-scrim: rgba(31,13,63,.74); --bugz-scanline: rgba(255,255,255,.035);
  --bugz-crawler: #3cc6bd;

  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f5;
  --border: #dfe3eb;
  --border-strong: #c7cdd9;
  --text: #101828;
  --muted: #475467;
  --subtle: #667085;
  --ink: #2a1650;           /* doodle stroke */
  --paper: #fffdf7;         /* doodle paper */

  --success: #027a48; --success-bg: #ecfdf3;
  --warning: #b54708; --warning-bg: #fffaeb;
  --danger: #b42318;  --danger-bg: #fef3f2;

  /* two typefaces: Noto Sans for text, the condensed display face (--display) for headlines and big numbers.
     Mono only for CVE ids, code and the story bridges. Annotations (--hand) are plain sans now. */
  --font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --hand: var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-md: 6px; --r-lg: 10px; --r-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px rgba(31,13,63,.14);
  --ring: 0 0 0 3px rgba(99,44,166,.3);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* the hero's backdrop under the whole page (near-black, grid, violet/magenta blooms) with opaque ink cards: a
       near-neutral graphite with a slight violet tint. Text 14.7:1 on cards, muted 8.3:1, subtle 6.3:1; one violet
       accent family (the hero's) for text and rules, never on a purple fill; red only for exploitation */
    --bg: #0a0910; --surface: #18171d; --surface-2: #211f28;
    --border: #34313f; --border-strong: #4b4759;
    --text: #ebe8f2; --muted: #b4aec4; --subtle: #9d97ae;
    --accent: #c4b0ff; --accent-strong: #dccfff; --dd-purple: #7a52e0; --dd-purple-700: #6844cc;
    --ink: #d4c8f8; --paper: #18171d;
    --dd-purple-100: #262b4a; --dd-purple-200: #414774; --dd-purple-300: #a48cf0;
    --success-bg: #12302a; --warning-bg: #33291a; --danger-bg: #3a1c26;
    --success: #4ade80; --warning: #fbbf24; --danger: #ff6b6b;
    --shadow-sm: none; --shadow-lg: 0 16px 40px rgba(5,8,16,.55);
    --ring: 0 0 0 3px rgba(196,176,255,.55);
    --bugz-scrim: rgba(6,4,14,.84); --bugz-card: #120d22;
    /* corner brackets on cards, hairlines on chrome */
    --ni-bracket: rgba(194,168,255,.5); --ni-hair: rgba(194,168,255,.16);
  }
}
:root[data-theme="dark"] {
  /* the hero's backdrop under the whole page (near-black, grid, violet/magenta blooms) with opaque ink cards: a
     near-neutral graphite with a slight violet tint. Text 14.7:1 on cards, muted 8.3:1, subtle 6.3:1; one violet
     accent family (the hero's) for text and rules, never on a purple fill; red only for exploitation */
  --bg: #0a0910; --surface: #18171d; --surface-2: #211f28;
  --border: #34313f; --border-strong: #4b4759;
  --text: #ebe8f2; --muted: #b4aec4; --subtle: #9d97ae;
  --accent: #c4b0ff; --accent-strong: #dccfff; --dd-purple: #7a52e0; --dd-purple-700: #6844cc;
  --ink: #d4c8f8; --paper: #18171d;
  --dd-purple-100: #262b4a; --dd-purple-200: #414774; --dd-purple-300: #a48cf0;
  --success-bg: #12302a; --warning-bg: #33291a; --danger-bg: #3a1c26;
  --success: #4ade80; --warning: #fbbf24; --danger: #ff6b6b;
  --shadow-sm: none; --shadow-lg: 0 16px 40px rgba(5,8,16,.55);
  --ring: 0 0 0 3px rgba(196,176,255,.55);
  --bugz-scrim: rgba(6,4,14,.84); --bugz-card: #120d22;
  /* corner brackets on cards, hairlines on chrome */
  --ni-bracket: rgba(194,168,255,.5); --ni-hair: rgba(194,168,255,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 11px 20px; min-height: 44px;
  border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s, opacity .15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--dd-purple); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--dd-purple-700); transform: translateY(-1px); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--dd-purple-300); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* labels and kickers: sentence case, 12px semibold, in the text face */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--accent);
}

/* ── Topbar ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 32px; background: var(--dd-purple); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.topbar nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .88; }
.topbar nav a:hover { opacity: 1; }
.nav-cta { background: #fff; color: var(--dd-purple) !important; padding: 7px 14px; border-radius: var(--r-md); opacity: 1 !important; font-weight: 600 !important; }
/* CVE lookup opener (Cmd+K / Ctrl+K): a round icon button */
.lookup-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lookup-toggle:hover { background: rgba(255,255,255,.1); }
.lookup-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (pointer: coarse) { .lookup-toggle { width: 44px; height: 44px; } }
/* with a keyboard: a pill with the shortcut ("⌘K" / "Ctrl+K"); touch and phones keep the round icon */
@media (pointer: fine) and (min-width: 641px) {
  .lookup-toggle { width: auto; gap: 8px; padding: 0 8px 0 12px; border-radius: 999px; }
  .lookup-kbd { font: 600 12px/1 var(--font); letter-spacing: .02em; padding: 4px 6px; border-radius: 4px; background: rgba(255,255,255,.14); color: #fff; }
}
.lookup-kbd:empty, .lookup-toggle .lookup-kbd { display: none; }
@media (pointer: fine) and (min-width: 641px) { .lookup-toggle .lookup-kbd:not(:empty) { display: inline-block; } }
/* the call to action: last in the top bar on desktop, inside the menu once the nav collapses */
.nav-cta-bar { flex: none; margin-left: 4px; white-space: nowrap; text-decoration: none; font-size: 14px; }
@media (min-width: 1181px) { .topbar nav .nav-cta-menu { display: none; } }
@media (max-width: 1180px) { .nav-cta-bar { display: none; } }
/* Burger: below 1180px the nav collapses into a dropdown panel */
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-md); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 5px; } .burger i:nth-child(3) { top: 10px; }
.nav-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .topbar { flex-wrap: nowrap; position: sticky; }
  .nav-toggle { display: inline-flex; margin-left: 0; order: 3; }
  .lookup-toggle { margin-left: auto; order: 2; }
  .lookup-toggle ~ .bugz-toggle, .lookup-toggle ~ .theme-toggle { margin-left: 0; }
  .topbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--dd-purple); box-shadow: 0 12px 24px rgba(31,13,63,.3);
  }
  .nav-open nav { display: flex; }
  .topbar nav a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .topbar nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; gap: 10px; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(60,198,189,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(255,158,69,.18), transparent 60%),
    linear-gradient(160deg, var(--dd-purple-900) 0%, #3b1a78 55%, var(--dd-purple) 100%);
  color: #fff; padding: 72px 0 88px; overflow: hidden;
}

.hero .eyebrow { color: var(--dd-orange); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; font-family: var(--hand); font-weight: 700; color: var(--dd-orange); }
.lede { font-size: 18px; color: rgba(255,255,255,.86); max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  
}

/* ── Art slots (nano banana PNG over doodle fallback) ─ */
.art { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.art > svg.fallback { display: block; width: 100%; height: 100%; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 64px 0; }

@media (max-width: 640px) { .section { padding: 40px 0; }  }

/* ── Doodle canvases ─────────────────────────────────── */
.doodle svg { width: 100%; height: auto; display: block; overflow: visible; }
.doodle text { font-family: var(--hand); fill: var(--ink); }

/* ── Loop ────────────────────────────────────────────── */

.classes { margin-top: 56px; display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; }

.classes ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.classes li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--dd-purple-100); color: var(--text); }
.classes li b { font-weight: 600; }

/* ── Phases ──────────────────────────────────────────── */

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.who div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; }
.who b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin-bottom: 4px; }
.who p { font-size: 15px; }
.gate h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.gate ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.gate li { position: relative; padding-left: 26px; font-size: 15px; }
.gate li::before { content: "✓"; position: absolute; left: 0; top: 0; font-family: var(--hand); font-weight: 700; color: var(--dd-teal); font-size: 18px; line-height: 1.3; }

@media (max-width: 760px) {
  
  
  .who { grid-template-columns: 1fr; }
}

/* ── Rules & traps ───────────────────────────────────── */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; }

.rule h3 { font-size: 19px; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }

.trap {
  position: relative; min-height: 150px; padding: 18px; text-align: left; cursor: pointer;
  background: var(--paper); border: 2px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text);
  transition: border-color .2s, transform .2s;
}
.trap:hover { border-color: var(--dd-purple-300); transform: rotate(-.6deg); }
.trap:focus-visible { outline: none; box-shadow: var(--ring); }
.trap .q { display: block; font-family: var(--hand); font-size: 20px; line-height: 1.25; transition: opacity .25s; }
.trap .a { position: absolute; inset: 18px; font-size: 15px; color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }

.trap::after { content: attr(data-tap); position: absolute; right: 12px; bottom: 8px; font-family: var(--hand); font-size: 14px; color: var(--subtle); }

/* ── Quiz ────────────────────────────────────────────── */

.bar { height: 6px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dd-orange), var(--dd-teal)); border-radius: 999px; transition: width .4s ease; }

.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.answer {
  padding: 16px; border-radius: var(--r-lg); cursor: pointer; text-align: left; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  transition: background .15s, border-color .15s, transform .15s;
}
.answer:hover { border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.answer:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,158,69,.5); }
.answer.chosen { background: #fff; color: var(--dd-purple-900); }
.answer b { display: block; font-size: 16px; }
.answer span { font-size: 13px; opacity: .75; }
.answer kbd { float: right; font-family: var(--mono); font-size: 11px; opacity: .5; }
@media (max-width: 640px) { .answers { grid-template-columns: 1fr; } }

/* compiling */

/* ── Report ──────────────────────────────────────────── */
.report { background: var(--paper); color: var(--text); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-lg); animation: reportIn .6s cubic-bezier(.2,.9,.3,1.2); }
@media (max-width: 640px) { .report { padding: 20px; } }

.verdict h4 { font-size: 30px; font-weight: 800; margin: 0 0 4px; }
.verdict .tag { font-family: var(--hand); font-size: 21px; color: var(--accent); margin-bottom: 12px; }
.verdict p { color: var(--muted); }
.verdict .cap { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--warning-bg); color: var(--warning); font-size: 14px; }

.next h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin: 0 0 12px; }
.next ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: nx; }
.next li {
  counter-increment: nx; position: relative; padding: 14px 16px 14px 52px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s;
}
.next li.show { opacity: 1; transform: none; }
.next li::before { content: counter(nx); position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--dd-purple); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.next li b { display: block; font-size: 15px; }
.next li span { font-size: 14px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────── */
/* Footer: Learning Center style (black band, link row + social, rule, copyright) */
.footer { background: #000; color: rgba(182,182,182,.8); padding: 40px 0 28px; font-size: 15px; }
.footer a { color: rgba(182,182,182,.9); text-decoration: none; transition: color .15s; }
.footer a:hover, .footer a:focus-visible { color: #fff; }
.footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px 36px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.footer-social { display: flex; gap: 22px; }
.footer-social .social { display: inline-flex; color: #fff; }
.footer-social .social:hover { color: var(--dd-purple-300); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 640px) { .footer-links { gap: 10px 22px; } }

/* ── Motion ──────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes reportIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.draw-in path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 1.1s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .draw-in path { stroke-dashoffset: 0; }
}

@media print {
  .topbar, .hero, #loop, #rules, .footer { display: none !important; }
  
  
  .report { box-shadow: none; }
}

/* grid children may shrink below their content width on small screens */

/* ── Exposures (CVE vs other vectors) ────────────────── */

.vectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vector { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; }
.vector header { display: flex; align-items: center; gap: 12px; }
.vector h3 { font-size: 21px; }

.vector dl { margin: 0; display: grid; gap: 12px; flex: 1; }
.vector dl div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.vector dt { font-family: var(--hand); font-weight: 700; font-size: 17px; color: var(--accent); line-height: 1.35; }
.vector dd { margin: 0; font-size: 14.5px; color: var(--muted); }

@media (max-width: 960px) { .vectors { grid-template-columns: 1fr; } }

/* ── Clickable staircase ─────────────────────────────── */

@keyframes nudge { 50% { transform: translateY(4px); } }

/* ── Sightings dashboard ─────────────────────────────── */
:root {
  --series-cve: #c4305f; --series-mis: #c96a10; --series-id: #11938b;   /* validated vs light surface */
  --spark-muted: #b9b3cc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --series-cve: #ff7a8f; --series-mis: #f2a65a; --series-id: #4fd1c5; --spark-muted: #5b5470; }
}
:root[data-theme="dark"] { --series-cve: #ff7a8f; --series-mis: #f2a65a; --series-id: #4fd1c5; --spark-muted: #5b5470; }

.seg[hidden] { display: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button:focus-visible { outline: none; box-shadow: var(--ring); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.sight-meta { margin-left: auto; font-size: 12px; color: var(--subtle); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dd-teal); box-shadow: 0 0 0 0 rgba(60,198,189,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(60,198,189,0); } 100% { box-shadow: 0 0 0 0 rgba(60,198,189,0); } }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; transition: opacity .2s; }
.tile.loading { opacity: .5; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tile-head h3 { font-size: 16px; }

/* hero tile: average time to mitigate */
/* same as the panel titles (.tile-head h3) */
.delta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.delta.good { background: var(--success-bg); color: var(--success); }
.delta.bad { background: var(--danger-bg); color: var(--danger); }

/* trend chart */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.chart-wrap { position: relative; }
.tooltip {
  position: absolute; top: 0; pointer-events: none; z-index: 2; min-width: 170px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 12px;
}
.tooltip .when { color: var(--subtle); margin-bottom: 6px; }
.tooltip .row { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: center; }
.tooltip .row i { height: 2px; border-radius: 2px; }
.tooltip .row b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); }
.tooltip .row span { color: var(--subtle); }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid; grid-template-columns: 28px minmax(0, 2.4fr) 110px 120px minmax(90px, 1fr) 96px; gap: 14px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--border); animation: rise .35s ease both;
}
.feed li:first-child { border-top: 0; }
.feed .rank { font-family: var(--mono); font-size: 12px; color: var(--subtle); }
.feed .name b { display: block; font-size: 15px; font-weight: 600; }
.feed .name small { font-size: 13px; color: var(--subtle); }
.feed .cls { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.feed .cls i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.feed .kev { margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; background: var(--danger-bg); color: var(--danger); vertical-align: 2px; }
.feed .count { text-align: right; font-variant-numeric: tabular-nums; }
.feed .count b { display: block; font-size: 18px; font-weight: 700; }
.feed .count small { font-size: 12px; color: var(--subtle); }
.feed .spark svg { width: 100%; height: 32px; display: block; overflow: visible; }
.feed .chg { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feed .chg.up { color: var(--danger); }
.feed .chg.down { color: var(--success); }
.feed .chg.flat { color: var(--subtle); }

@media (max-width: 860px) {
  .feed li { grid-template-columns: 22px 1fr 84px; grid-template-areas: "r n c" "r k c" "r s g"; row-gap: 6px; }
  .feed .rank { grid-area: r; } .feed .name { grid-area: n; } .feed .cls { grid-area: k; }
  .feed .count { grid-area: c; } .feed .spark { grid-area: s; } .feed .chg { grid-area: g; }
}

/* ── Boot / content loading ──────────────────────────── */
html.booting main, html.booting footer, html.booting .topbar nav { visibility: hidden; }
/* the copy failed to load: the static failure card over the page */
.boot-error { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; background: #08070b; }
.boot-error[hidden] { display: none; }

/* ── Sightings: powered-by line ──────── */
.powered { display: inline-flex; align-items: center; gap: 10px; margin: -2px 0 14px; padding: 8px 14px 8px 12px;
  border-radius: 999px; background: var(--dd-purple-100); color: var(--accent); font-weight: 700; font-size: 15px; }

.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }

/* ── Hero: agent moving through the phases ───────────── */

@keyframes agentWalk {
  0%, 10%  { left: calc(100% / 12);      opacity: 1; }
  16%, 26% { left: calc(100% * 3 / 12); }
  32%, 42% { left: calc(100% * 5 / 12); }
  48%, 58% { left: calc(100% * 7 / 12); }
  64%, 84% { left: calc(100% * 9 / 12);  opacity: 1; }
  90%      { left: calc(100% * 10 / 12); opacity: .25; }
  94%      { left: calc(100% * 9 / 12);  opacity: 0; }
  96%      { left: calc(100% / 12);      opacity: 0; }
  100%     { left: calc(100% / 12);      opacity: 1; }
}

/* grid children may shrink below their content width on small screens */

/* ── CVE criticality tile ────────────────────────────── */
:root { --series-cve-adj: #632ca6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-cve-adj: #b9a2ff; } }
:root[data-theme="dark"] { --series-cve-adj: #b9a2ff; }
.tile-cve { margin-bottom: 20px; }

.cve-stat b { display: block; font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.cve-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* shared line-chart pieces for any chart drawn by lineChart() */
.lc .grid line { stroke: var(--border); stroke-width: 1; }
.lc .axis text { fill: var(--subtle); font-size: 11px; font-family: var(--font); }
.lc .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc .end-label { font-size: 12px; font-weight: 600; font-family: var(--font); fill: var(--muted); }
.lc .cross { stroke: var(--border-strong); stroke-width: 1; }
.lc .dot { stroke: var(--surface); stroke-width: 2; }
.lc .marker line { stroke: var(--subtle); stroke-width: 1; stroke-dasharray: 3 4; }
.lc .marker text { fill: var(--subtle); font-size: 12px; font-family: var(--hand); }
.lc .gap-label { fill: var(--muted); font-size: 12px; font-family: var(--hand); }
.legend i.dash { background: none !important; border-top: 2px dashed currentColor; height: 0; }

/* ── Glossary ────────────────────────────────────────── */
a.gloss { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--dd-purple-300); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
a.gloss:hover, a.gloss:focus-visible { text-decoration-color: var(--dd-purple); color: var(--accent); }
.hero a.gloss { text-decoration-color: rgba(255,255,255,.45); }
.hero a.gloss:hover { color: #fff; text-decoration-color: var(--dd-orange); }
.gloss-pop {
  position: absolute; z-index: 60; max-width: 320px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--dd-purple-900); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45;
}
.gloss-pop .gloss-tip { white-space: pre-line; }
.keep-case { text-transform: none; }
/* (i) next to a tile's eyebrow: its explanation, shown in the glossary's popover on hover or focus */
.info-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; vertical-align: 2px;
  border: 1px solid var(--border); border-radius: 50%; font: 600 11px/1 var(--font); font-style: italic; color: var(--muted); cursor: help; }
.info-tip:hover, .info-tip:focus-visible { border-color: var(--accent); color: var(--accent); }
.info-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-tip[hidden] { display: none; }
/* the eyebrow and its (i) on one line (the titles block is a grid of rows) */
.tile-titles:has(> .info-tip) { grid-template-columns: auto auto; justify-content: start; align-items: center; }
.tile-titles > .info-tip { margin-bottom: 7px; }
.gloss-pop .gloss-tip-link { display: block; width: fit-content; margin-top: 10px; color: #d4bdfb; font-weight: 600; }
.gloss-pop .gloss-tip-link:hover { color: #fff; }
.gloss-pop b { display: block; font-family: var(--hand); font-size: 17px; color: var(--dd-orange); margin-bottom: 2px; }

/* ── DDSQL disclosure ────────────────────────────────── */
.ddsql { margin-top: 14px; }
.ddsql summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 10px; border-radius: 999px;
  background: var(--dd-purple-100); user-select: none;
}
.ddsql summary::-webkit-details-marker { display: none; }
.ddsql summary::before { content: "›"; font-size: 15px; line-height: 1; transition: transform .15s; }
.ddsql[open] summary::before { transform: rotate(90deg); }
.ddsql summary:focus-visible { outline: none; box-shadow: var(--ring); }
.ddsql pre {
  margin: 0; max-height: 280px; overflow: auto; white-space: pre; font-size: 12.5px; line-height: 1.5;
  background: var(--dd-purple-900); color: #e9e2fb; border: 0; border-radius: var(--r-md); padding: 12px 14px;
}
.ddsql-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ddsql-docs { font-size: 13px; color: var(--accent); font-weight: 600; }
.ddsql-req { font-size: 12px; color: var(--subtle); margin-top: 6px; }
.feed li > .ddsql { grid-column: 1 / -1; margin: 2px 0 0 42px; }
@media (max-width: 860px) { .feed li > .ddsql { grid-area: auto; grid-column: 1 / -1; margin-left: 0; } }
.vector .ddsql { margin-top: 16px; }

/* ── Plan with an agent ──────────────────────────────── */
.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; }

.prompt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prompt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.prompt header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt h4 { margin: 0; font-size: 15px; }
.prompt-tool { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.prompt-tool.bits { background: var(--dd-purple); color: #fff; }
.prompt-tool.any { background: var(--dd-purple-100); color: var(--accent); }
.prompt-text { font-size: 14.5px; line-height: 1.55; color: var(--text); flex: 1; padding-left: 12px; border-left: 3px solid var(--dd-purple-200); }
.prompt .btn { align-self: flex-start; }

/* "by Datadog" byline next to the site name */
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
/* "Powered by Datadog" after the wordmark, set off by a thin white rule like Updog's header */
.byline-logo { height: 28px; width: auto; margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.55); vertical-align: middle; box-sizing: content-box; }

/* long URLs in prompts and file descriptions wrap instead of overflowing their card */
.prompt { min-width: 0; }
.prompt-text, .ddsql-req { overflow-wrap: anywhere; }

/* ── Data-first hero ─────────────────────────────────── */
.hero { padding: 56px 0 64px; }
.hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 14px; }
.hero .lede { font-size: 17px; }
.hero-actions { margin-top: 22px; }

@media (max-width: 860px) { .hero { padding: 40px 0 44px; } }

/* data source line instead of a marketing pill */

/* ── "Check in Datadog" trigger ──────────────────────── */

/* ── Side panel ──────────────────────────────────────── */
html.drawer-open, html.lookup-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(16,10,32,.45); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(100vw, max(560px, min(720px, 46vw)));
  background: var(--surface); color: var(--text); box-shadow: -16px 0 40px rgba(16,10,32,.25);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 20px; margin: 4px 0 0; }
.drawer-close { flex: none; width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-close:focus-visible { outline: none; box-shadow: var(--ring); }
.drawer-body { padding: 18px 24px 32px; overflow-y: auto; }
:is(.drawer, .lookup) .panel-sub { font-size: 18px; font-weight: 800; color: var(--text); margin: 22px 0 10px; }  /* side-panel subheads: one style */
:is(.drawer, .lookup) .ddsql-pre { margin: 0; max-height: 46vh; overflow: auto; white-space: pre; font-size: 12.5px; line-height: 1.5; background: var(--dd-purple-900); color: #e9e2fb; border: 0; border-radius: var(--r-md); padding: 12px 14px; }
:is(.drawer, .lookup) .prompt-text { margin-bottom: 10px; }
:is(.drawer, .lookup) .prompt-list { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* hidden must win over the display rules above */
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }

/* ── Data widget motion ──────────────────────────────── */

@keyframes kpiIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kpiTick { 0% { border-color: rgba(255,158,69,.9); background: rgba(255,158,69,.14); } 100% { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); } }
@keyframes kpiValue { 0% { color: #ffcf9e; } 100% { color: #fff; } }

/* Data-first hero background */
.hero {
  background:
    linear-gradient(90deg, rgba(23,10,48,.93) 0%, rgba(31,13,63,.78) 40%, rgba(45,18,95,.32) 100%),
    linear-gradient(180deg, rgba(31,13,63,.15) 60%, rgba(31,13,63,.6) 100%),
    var(--dd-purple-900);
}

@keyframes kpiTick { 0% { border-color: rgba(255,158,69,.9); background: rgba(255,158,69,.2); } 100% { border-color: rgba(255,255,255,.14); background: rgba(23,10,48,.55); } }

/* ── Bits AI hero call to action ─────────────────────── */

.bits-cta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  width: 100%; margin-top: 16px; padding: 18px 22px; text-align: left; cursor: pointer;
  font: inherit; color: #fff; border-radius: var(--r-xl);
  background: linear-gradient(120deg, #7b3fe4 0%, var(--dd-purple) 55%, #3b1a78 100%);
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 0 0 0 rgba(160,90,255,.55), 0 16px 40px rgba(0,0,0,.35);
  animation: bitsGlow 2.8s ease-in-out infinite;
  transition: transform .18s, border-color .18s;
}
.bits-cta[hidden] { display: none; }
.bits-cta:hover { transform: translateY(-2px); border-color: var(--dd-orange); }
.bits-cta:focus-visible { outline: 3px solid var(--dd-orange); outline-offset: 3px; }

.bits-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }

.bits-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 22px; font-weight: 800; transition: transform .18s; }
.bits-cta:hover .bits-go { transform: translateX(3px); }
@keyframes bitsGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(160,90,255,.5), 0 16px 40px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 0 8px rgba(160,90,255,0), 0 16px 40px rgba(0,0,0,.35); } }
@media (prefers-reduced-motion: reduce) { .bits-cta { animation: none; } }
@media (max-width: 520px) {
  .bits-cta { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  
  .bits-go { display: none; }
}
.panel-intro { color: var(--muted); margin: 0 0 4px; }

/* ── Data vs. playbook separation ────────────────────── */

.section-data { border-top: 4px solid var(--dd-teal); }
.why { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.why b { color: var(--text); font-weight: 700; }

/* pinned "Trending" threat at the top of the feed */

.feed li.pinned { background: linear-gradient(90deg, rgba(255,158,69,.10), transparent 60%); border-radius: var(--r-md); }


/* ── DDSQL panel: query icon, Bits block, deep-link teaser ── */
.ddsql-icon { flex: none; color: currentColor; }

/* ── UX pass: playbook ──────────────────────────────────
   Divider → Exposures → Loop → Phases → Rules. Denser on desktop,
   swipe rows / compact strips on phones. */

/* exposures: smaller stats doodle, run-in vector rows */

.vector { padding: 20px 22px; }

.vector dl { gap: 8px; }
.vector dl div { display: block; }
.vector dt { display: inline; margin-right: 6px; font-size: 16.5px; }
.vector dd { display: inline; font-size: 14.5px; line-height: 1.5; }

.classes { margin-top: 28px; }

/* loop: smaller diagram, tighter steps */

/* phases: shorter staircase, compact detail */

.who { gap: 10px; margin-bottom: 14px; }
.who div { padding: 10px 14px; }
.who p, .gate li { font-size: 14.5px; }
.gate ul { gap: 4px; }

/* rules: badge beside the text; shorter traps */
.rules { gap: 16px; }
.rule { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; padding: 20px; }

.rule h3 { font-size: 17.5px; margin: 7px 0 6px; }
.rule p { font-size: 14.5px; }

.trap { min-height: 118px; padding: 16px; }
.trap .q { font-size: 18.5px; }
.trap .a { inset: 16px 16px 24px; font-size: 14.5px; }

@media (max-width: 960px) {
  /* vectors become a swipe row with a peek of the next card */
  .vectors {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 420px);
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -24px; padding: 2px 24px 10px; scroll-padding: 0 24px; scrollbar-width: thin;
  }
  .vector { scroll-snap-align: start; }
  
}
@media (max-width: 860px) {
  
  
  
  
  /* phase tabs: one swipeable strip instead of a 3×2 block */
  
  
  
  
  
  .rules { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  /* thumbnail art beside the phase title; the rest spans full width */
  
  
  
  
  
  
  
  .who div { padding: 9px 12px; }
  .who b { font-size: 11px; margin-bottom: 2px; }
  .who p, .gate li { font-size: 14px; }
}
@media (max-width: 640px) {
  
  
  
  
  .vectors { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .vector { padding: 16px; }
  .vector h3 { font-size: 19px; }
  
  .vector dl { gap: 6px; }
  .vector dt { font-size: 15.5px; }
  .vector dd { font-size: 14px; line-height: 1.45; }
  
  .classes { margin-top: 18px; gap: 8px 12px; }
  
  .classes li { font-size: 12.5px; padding: 5px 10px; }
  
  
  
  
  
  
  
  .rule { padding: 14px 16px; grid-template-columns: 34px 1fr; column-gap: 12px; }
  
  .rule h3 { font-size: 16px; margin: 5px 0 4px; }
  .rule p { font-size: 14px; line-height: 1.45; }
  
  
  
  
  .trap { min-height: 140px; padding: 12px; }
  .trap .q { font-size: 16.5px; }
  .trap .a { inset: 12px 12px 22px; font-size: 13px; line-height: 1.4; }
  .trap::after { right: 10px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .vectors { scroll-behavior: auto; }
  .trap .q, .trap .a { transition: none; }
}
/* UX pass: playbook (cont.) */

/* ── UX pass: hero + data ── */
/* Hero: tighter everywhere; KPIs + Bits card reach the first phone screen */
.hero { padding: 40px 0 44px; }

.hero h1 { margin: 0 0 12px; }
.hero .lede { font-size: 16.5px; line-height: 1.5; }
.hero-actions { margin-top: 18px; }

.bits-cta { margin-top: 10px; padding: 14px 18px; gap: 16px; }

.bits-title { font-size: clamp(22px, 2.2vw, 28px); }

@media (max-width: 640px) {
  .hero { padding: 22px 0 26px; }
  
  .hero h1 { font-size: 30px; line-height: 1.08; margin-bottom: 8px; }
  .hero .lede { font-size: 15px; line-height: 1.45; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; padding-left: 14px; padding-right: 14px; font-size: 14px; }
  
  
  
  
  
  
  .bits-cta { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; margin-top: 8px; }
  
  
  .bits-title { font-size: 21px; }
  
  .bits-go { display: grid; width: 32px; height: 32px; font-size: 17px; }
}

/* Sightings: tiles, charts */
.tile { padding: 20px 22px; }
.tile-head { margin-bottom: 6px; }
.why { margin: 4px 0 10px; font-size: 13.5px; }
.tile-cve { margin-bottom: 16px; }

.cve-stat b { font-size: 46px; }

/* threat feed: one compact row per threat, check button inline with the note */
.feed li { padding: 8px 4px; gap: 12px; }
.feed .name b { font-size: 14.5px; }
.feed .count b { font-size: 16px; }
.feed .spark svg { height: 26px; }
/* 44px tap target without the height */

@media (max-width: 640px) {
  /* filters: segments in one swipeable row that bleeds to the screen edge */
  .seg { flex: none; padding: 2px; }
  .seg button { min-height: 44px; padding: 0 13px; white-space: nowrap; }
  .sight-meta { font-size: 11.5px; gap: 6px; }
  .sight-meta { margin-left: auto; }

  .tile { padding: 16px; border-radius: var(--r-lg); }
  .tile-head { gap: 4px 12px; margin-bottom: 4px; }
  .tile-head h3 { font-size: 15.5px; }
  .legend { gap: 4px 12px; font-size: 12px; }
  .why { font-size: 13px; line-height: 1.45; margin: 2px 0 8px; }
  .lc .axis text { font-size: 10.5px; }
  .lc .end-label { font-size: 11.5px; font-weight: 700; }
  .lc .marker text, .lc .gap-label { font-size: 13.5px; }
  .tooltip { min-width: 150px; padding: 8px 10px; }

  /* time to fix: number and change side by side */

  /* CVE: stat beside its label */
  .tile-cve { margin-bottom: 12px; }
  
  
  .cve-stat { display: flex; align-items: center; gap: 12px; }
  .cve-stat b { flex: none; font-size: 40px; }
  .cve-stat span { margin: 0; font-size: 13px; line-height: 1.35; }
  
  

  /* feed: name/count, note/change, class/trend, then the check button */
  .feed li { grid-template-columns: 20px auto minmax(0, 1fr) auto; grid-template-areas: "r b b c" "r s s g" "r btn k sp";
    column-gap: 10px; row-gap: 3px; padding: 10px 0; align-items: center; }
  .feed .name { display: contents; }
  .feed .name b { grid-area: b; font-size: 14.5px; line-height: 1.3; }
  .feed .name small { grid-area: s; font-size: 12.5px; line-height: 1.35; }
  .feed .rank { grid-area: r; align-self: start; padding-top: 2px; }
  .feed .count { grid-area: c; }
  .feed .count b { font-size: 15px; }
  .feed .count small { display: none; } /* the feed subtitle says these are sightings */
  .feed .chg { grid-area: g; font-size: 12.5px; }
  .feed .cls { grid-area: k; margin-top: 4px; }
  .feed .cls span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* color square + spark color carry the class; name stays for screen readers */
  .feed .spark { grid-area: sp; width: 72px; margin-top: 4px; }
  .feed .spark svg { height: 20px; }
}
@media (min-width: 1100px) {
  /* stats doodle sits beside the intro (it switches to its stacked layout at this width) */
  #exposures .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; }
  #exposures .wrap > * { grid-column: 1 / -1; }
  
  
}

/* dark mode: brand purple (#632ca6) is too dim for text on the dark surfaces; lift playbook text accents */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.vector dt, .swipe-hint, .classes-label, .phase-detail .tagline, .stairs-hint, .traps h3 small, .rule-num) { color: var(--accent); }
  
  
  
}
:root[data-theme="dark"] :is(.vector dt, .swipe-hint, .classes-label, .phase-detail .tagline, .stairs-hint, .traps h3 small, .rule-num) { color: var(--accent); }

/* ── UX pass: shell, drawer, quiz, agents ── */
/* Shell: tighter heads, 44px targets, visible focus, app-style mobile menu */

.btn-lg { padding: 12px 24px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.nav-toggle { width: 44px; height: 44px; }
.topbar nav a:focus-visible, .brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1180px) {
  html.nav-locked { overflow: hidden; }
  .topbar nav {
    padding: 6px 16px 18px; max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 16px 24px rgba(31,13,63,.3), 0 0 0 100vmax rgba(16,10,32,.55);
    clip-path: inset(0 -100vmax -100vmax -100vmax);
  }
  .nav-open nav { animation: navIn .2s ease; }
  .topbar nav a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 6px; font-size: 16px; opacity: 1; }
  .topbar nav a:not(.nav-cta)::after { content: "›"; font-size: 22px; line-height: 1; opacity: .5; }
  .topbar nav .nav-cta { justify-content: center; min-height: 50px; margin-top: 14px; font-size: 16px; }
}
@media (max-width: 480px) { .byline-logo { display: none; } }

/* Footer */
.footer { padding: 32px 0 24px; }
@media (max-width: 640px) {
  .footer { padding: 20px 0 20px; font-size: 14px; }
  .footer-top { gap: 4px; padding-bottom: 12px; }
  .footer-links { gap: 0 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-social { gap: 2px; margin-left: -12px; }
  .footer-social .social { width: 44px; height: 44px; align-items: center; justify-content: center; }
  .footer-bottom { padding-top: 14px; gap: 6px; font-size: 12px; line-height: 1.5; }
}

/* Assessment: heading beside the quiz on wide screens; the report gets the full width */
@media (min-width: 1000px) {
  #assess .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  
  
  #assess .wrap:has([data-panel="report"]:not([hidden])) { display: block; }
  
}

.answer { padding: 13px 14px; }

@media (max-width: 640px) {
  
  
  
  
  
  /* progress becomes a compact stepper: dots for other gates, a labelled pill for the current one */
  
  
  
  
  
  
  
  
  .answers { gap: 8px; }
  .answer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-height: 50px; padding: 12px 14px; }
  .answer b { display: inline; }
  .answer kbd { display: none; }
  .answer span { font-size: 13.5px; }
  
}

/* Report: one frame instead of two, denser layout */

.report { padding: 28px 32px; }

.verdict h4 { font-size: 26px; }
.verdict .tag { margin-bottom: 8px; }

.next ol { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.next li { padding: 12px 14px 12px 48px; }
.next li::before { top: 12px; left: 14px; }

/* wide: verdict and staircase share a row */
@media (min-width: 1000px) {
  .report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: end; }
  .report > * { grid-column: 1 / -1; }
  
  
  .verdict h4 { font-size: 24px; }
}
@media (max-width: 640px) {
  .report { padding: 18px 16px; border-radius: var(--r-lg); }
  
  
  
  
  
  .verdict h4 { font-size: 20px; line-height: 1.2; }
  .verdict .tag { font-size: 17px; line-height: 1.3; }
  .verdict p { font-size: 14.5px; }
  .verdict .cap { grid-column: 1 / -1; }
   /* labels are unreadable at phone width; the gauge and verdict carry the phase */
  
  
  
  
  .next ol { grid-template-columns: 1fr; }
  .next li { padding: 11px 12px 11px 44px; }
  .next li::before { left: 12px; top: 11px; width: 22px; height: 22px; font-size: 12px; }
  .next li b { font-size: 14.5px; line-height: 1.35; }
  .next li span { font-size: 13.5px; line-height: 1.45; display: block; margin-top: 2px; }
  
  
  
}

/* Agents: prompts card + one compact file list; side by side on wide screens */

 /* the whole row is the link */

@media (min-width: 900px) {
  #agents .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 48px; align-items: start; }
  
  
  
  
}

/* Glossary: heading beside the panel on wide screens; search sticks while scrolling the list */
@media (min-width: 900px) {
  #glossary .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
  #glossary .wrap:has(.gloss-panel[open]) { align-items: start; }
  
}

/* Side drawer: sticky header, 44px close, bottom sheet on phones */
.drawer-backdrop { animation: fadeIn .2s ease; }
.drawer-head { flex: none; align-items: center; padding: 18px 24px 14px; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; }
.drawer-close:hover { border-color: var(--dd-purple-300); }
.drawer-close[hidden] { display: none; }
/* the side panel's and the lookup's header buttons: copy link (link icon, a check mark once copied), close */
.head-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.copy-link .i-check { display: none; }
.copy-link.copied { color: var(--success); border-color: currentColor; }
.copy-link.copied .i-link { display: none; }
.copy-link.copied .i-check { display: block; }
/* the embed button (embed.stages, app.js "Permalinks"): only on a CVE's panel, on the stages that serve /embed/* */
.drawer-embed { display: none !important; }
.embed-on[data-permalink^="#/s/CVE-"] .drawer-embed { display: grid !important; }
.drawer-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; padding: 18px 24px calc(28px + env(safe-area-inset-bottom)); }
:is(.drawer, .lookup) .prompt { padding: 14px 16px; gap: 8px; }
:is(.drawer, .lookup) .prompt-list { gap: 10px; }
@media (max-width: 640px) {
  .drawer {
    top: auto; left: 0; right: 0; width: 100%; max-height: calc(100dvh - 48px);
    border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(16,10,32,.3);
    transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  }
  .drawer.open { transform: none; }
  .drawer-head { position: relative; padding: 22px 16px 12px; }
  .drawer-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border-strong); }
  .drawer-head h2 { font-size: 19px; }
  .drawer-body { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
  :is(.drawer, .lookup) .ddsql-pre { max-height: none; margin: 0 -16px; border-radius: 0; padding: 14px 16px; font-size: 12px; }
  :is(.drawer, .lookup) .prompt-text { font-size: 14px; }
  
  
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; animation: none; } }

/* gray reference line: every CVE reported (vs. what Datadog observed) */
:root { --series-reported: #98a2b3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --series-reported: #9a94ad; } }
:root[data-theme="dark"] { --series-reported: #9a94ad; }

/* UX pass (hero + data), wide screens: feed rows as a two-line table with the check button in its own column */
@media (min-width: 861px) {
  .feed li { grid-template-columns: 28px minmax(0, 1fr) 132px 168px minmax(80px, 120px) 84px auto;
    grid-template-areas: "r b k c sp g btn" "r s k c sp g btn"; column-gap: 14px; row-gap: 1px; padding: 6px 4px; }
  .feed .name { display: contents; }
  .feed .name b { grid-area: b; align-self: end; }
  .feed .name small { grid-area: s; align-self: start; }
  .feed .rank { grid-area: r; } .feed .cls { grid-area: k; } .feed .count { grid-area: c; }
  .feed .spark { grid-area: sp; } .feed .chg { grid-area: g; }
  .feed .count b { line-height: 1.2; }
  .feed li > .ddsql { grid-column: 1 / -1; }
  
  .cve-stat { display: flex; align-items: center; gap: 14px; }
  .cve-stat b { flex: none; }
  .cve-stat span { margin: 0; font-size: 13.5px; line-height: 1.35; }
}
/* UX pass (hero + data), small phones (≤380px): keep the hero CTAs on one row and the time-to-fix delta readable */
@media (max-width: 380px) {
  .hero-actions .btn { padding-left: 11px; padding-right: 11px; font-size: 13.5px; }
  .hero .lede { font-size: 14.5px; }
  .seg button { padding: 0 11px; }
  
  
}
/* UX pass (hero + data): readable "Check in Datadog" pills in the threat feed in dark mode */
/* UX pass (hero + data): honor [hidden] on the CVE tile parts (display rules above were overriding it) */
.legend[hidden] { display: none; }
/* dark mode: brand purple text is too dark on dark surfaces */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(#agents .eyebrow, #glossary .eyebrow, .drawer .eyebrow, .lookup .eyebrow, .report-head .eyebrow, .agent-file, .gloss-panel > summary, .gloss-more, .ddsql-docs) { color: var(--accent); }
  :root:not([data-theme="light"]) .prompt-tool.any { color: var(--ink); }
  :root:not([data-theme="light"]) .verdict .tag { color: var(--accent); }
  
}
:root[data-theme="dark"] :is(#agents .eyebrow, #glossary .eyebrow, .drawer .eyebrow, .lookup .eyebrow, .report-head .eyebrow, .agent-file, .gloss-panel > summary, .gloss-more, .ddsql-docs) { color: var(--accent); }
:root[data-theme="dark"] .prompt-tool.any { color: var(--ink); }
:root[data-theme="dark"] .verdict .tag { color: var(--accent); }

/* ── Dark mode: section eyebrows readable on dark backgrounds ── */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.eyebrow:not(.pun), .research-kicker) { color: var(--accent); } }
:root[data-theme="dark"] :is(.eyebrow:not(.pun), .research-kicker) { color: var(--accent); }

/* Sightings leads the page: tighter top, page title, full-width Bits call to action */
.section-first { padding-top: 48px; }

.section-first .powered { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section-first > .wrap > .bits-cta { display: flex; width: 100%; margin: 0 0 28px; }
@media (max-width: 640px) { .section-first { padding-top: 32px; } }

/* "Whose data" lens: the observatory shows everyone, Bits shows yours */
.lens { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 16px; }
.lens[hidden] { display: none; }

.lens-yours { border: 0; cursor: pointer; color: var(--accent); background: transparent; transition: background .15s; }
.lens-yours img { border-radius: 50%; }
.lens-yours:hover { background: var(--dd-purple-100); }
.lens-yours:focus-visible { outline: none; box-shadow: var(--ring); }


/* ── Exposures comparison table (row labels on the left) ── */

.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.compare thead th { padding-top: 18px; border-bottom: 2px solid var(--border); }

.compare tbody th { width: 128px; font-family: var(--hand); font-size: 17px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.compare td { color: var(--muted); }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: var(--dd-purple-100); }

.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.compare tbody tr:hover th { background: var(--dd-purple-100); }

/* one line of ground rules under the maturity intro */

/* small loop diagram beside the comparison table; the active step lights up its table row */

.compare tbody tr.active { background: var(--dd-purple-100); }
.compare tbody tr.active th { background: var(--dd-purple-100); }

.compare tbody tr.active td { background: color-mix(in srgb, var(--dd-purple-100) 70%, transparent); transition: background .3s; }

/* ── Single banner at the top ────────────────────────── */
.banner {
  position: relative; color: #fff; padding: 36px 0 34px;
  background:
    linear-gradient(90deg, rgba(23,10,48,.94) 0%, rgba(31,13,63,.86) 55%, rgba(45,18,95,.7) 100%),
    var(--dd-purple-900);
}
.banner h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; max-width: 30ch; }
.banner p { margin: 0; font-size: 16.5px; color: rgba(255,255,255,.85); max-width: 72ch; }
.banner a.gloss { text-decoration-color: rgba(255,255,255,.45); }
.section-first { padding-top: 28px; }
@media (min-width: 1100px) { .banner h1 { max-width: none; } }
@media (max-width: 640px) { .banner { padding: 28px 0 26px; } }

.banner .wrap { position: relative; }

/* ── Freshness: last updated, completing weeks, late data ─────────────── */

.fresh-chip { font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; cursor: help; }
.fresh-chip.completing { background: var(--surface-2, #eef0f6); color: var(--muted); border: 1px dashed var(--border-strong); }
.fresh-chip.late { background: var(--warning-bg); color: var(--warning); }
.live-dot.stale { background: var(--warning); animation: none; }
.tooltip .fresh-chip { font-size: 10px; padding: 1px 6px; vertical-align: 1px; }
.lc .completing-band { fill: var(--subtle); opacity: .07; }
.lc .completing-label { font-size: 11px; fill: var(--subtle); font-style: italic; }
.lc .series-partial { opacity: .75; }

/* ── CVE funnel ───────────────────────────────────────────────────────── */
.funnel { display: grid; gap: 10px; margin: 4px 0 24px; }
.funnel[hidden] { display: none; }

/* ── Exposure list: publicly accessible share ─────────────────────────── */
.feed .chg { white-space: nowrap; }
.feed .count .pub { display: block; white-space: nowrap; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--danger); cursor: help; }

/* ── Check yours panel ────────────────────────────────────────────────── */

.snapshot .panel-sub { margin-top: 0; }

.about-ref { color: var(--accent); font-weight: 600; }
/* a CVE's nickname from content/vulns.yaml, in front of its name wherever the CVE shows */
.vuln-nick { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px; background: var(--dd-purple-100);
  color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; vertical-align: middle;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
h2 > .vuln-nick { font-size: 12px; vertical-align: middle; }

/* ── Feedback widget (bottom right) ───────────────────────────────────── */
.fb { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fb-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: var(--dd-purple); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; box-shadow: var(--shadow-lg); }
.fb-toggle:hover { background: var(--dd-purple-700, #4f2286); }
.fb-toggle:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }
.fb.open .fb-toggle { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.fb-panel { width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 16px 18px 18px; animation: rise .2s ease both; }
.fb-panel[hidden] { display: none; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-head h2 { font-size: 17px; margin: 0; }
.fb-x { width: 32px; height: 32px; border-radius: var(--r-md); border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.fb-x:focus-visible { outline: none; box-shadow: var(--ring); }
.fb-intro { margin: 6px 0 12px; font-size: 13.5px; color: var(--muted); }
.fb-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fb-text { display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; max-height: 50vh; padding: 10px 12px;
  font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-md); }
.fb-text:focus { outline: none; border-color: var(--dd-purple); box-shadow: var(--ring); }
.fb-meta { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 12px; font-size: 12px; color: var(--subtle); min-height: 18px; }
.fb-status { margin: 0; font-weight: 600; color: var(--success); }
.fb-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
  .fb { right: 16px; bottom: 16px; }
  .fb-toggle { padding: 12px; }
  .fb-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .fb { display: none; } }
.fb-status.err { color: var(--danger); }

/* ══ mitigeddon ═════════════════════════════════════════════════════════════
   The page is a dichotomy. Above the part break: the vulnpocalypse, always dark,
   red alarm, hazard stripes, a condensed display face. The part break is dawn.
   Below it: the bright new day of agentic fixes, the regular Datadog look. */
:root {
  --doom-black: #0c0a0f;
  --doom-red: #ff3b30;
  --doom-red-soft: #ff6a5f;
  --hazard: #ffd23f;
  --dawn: #ffb46b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --hazard-stripe: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, var(--doom-black) 10px 20px);
}

/* Chrome */
.topbar { background: var(--doom-black); }
/* a quiet hairline under the bar (it used to be a hazard stripe; read as "under construction") */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.12); pointer-events: none; }
@media (max-width: 1180px) { .topbar nav { background: var(--doom-black); box-shadow: 0 12px 24px rgba(0,0,0,.5); } }
.brand-name > span:first-child { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: .01em; line-height: 1; }
.nav-cta { background: var(--hazard); color: var(--doom-black) !important; }
.nav-cta:hover { background: #fff; }

/* Hero: the vulnpocalypse */
.banner.doom {
  padding: 64px 0 72px; overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(255,59,48,.34), transparent 62%),
    radial-gradient(620px 380px at 0% 110%, rgba(255,210,63,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px),
    var(--doom-black);
}
.banner.doom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard-stripe); opacity: .9; }
.doom-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.doom-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,210,63,.55); color: var(--hazard);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.doom-tag a.gloss { color: inherit; }
.siren { width: 9px; height: 9px; border-radius: 50%; background: var(--doom-red); box-shadow: 0 0 0 0 rgba(255,59,48,.7); animation: siren 1.6s ease-out infinite; }
@keyframes siren { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,59,48,0); } }
.banner.doom h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(48px, 6.2vw, 86px); line-height: .95;
  letter-spacing: .005em; margin: 20px 0 18px; max-width: 16ch; color: #fff;
  text-shadow: 3px 0 rgba(255,59,48,.8), -3px 0 rgba(60,198,189,.45);
}
.banner.doom .doom-lede { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.84); max-width: 56ch; }
.banner.doom .hero-actions { margin-top: 28px; }
.btn-doom { background: var(--doom-red); color: #fff; }
.btn-doom:hover { background: #e2261c; transform: translateY(-1px); }
.btn-dawn { background: transparent; color: #ffd9ad; border-color: rgba(255,180,107,.7); }
.btn-dawn:hover { background: rgba(255,180,107,.14); }
.btn-doom:focus-visible, .btn-dawn:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; box-shadow: none; }

.doom-clock {
  position: relative; padding: 26px 28px; border-radius: var(--r-xl);
  border: 1px solid rgba(255,59,48,.5); background: rgba(255,59,48,.06);
  box-shadow: 0 0 60px rgba(255,59,48,.16), inset 0 0 0 1px rgba(255,255,255,.03);
}
.doom-clock p { margin: 0; }
.doom-day { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); line-height: .9; }
.doom-day span { font-size: 30px; color: var(--hazard); text-transform: uppercase; letter-spacing: .02em; }
.doom-day b { font-weight: 400; font-size: clamp(76px, 9vw, 124px); color: #fff; font-variant-numeric: tabular-nums; }
.doom-of { margin-top: 6px !important; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.doom-started { margin-top: 16px !important; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.8); }
@media (max-width: 900px) {
  .doom-grid { grid-template-columns: 1fr; gap: 28px; }
  .banner.doom h1 { max-width: none; }
}
@media (max-width: 640px) {
  .banner.doom { padding: 54px 0 48px; }
  .banner.doom .doom-lede { font-size: 16.5px; }
  .doom-clock { padding: 20px; }
}

/* Data section: the dark "flood" palette in dark mode; in light mode it uses the regular light tokens, with the
   hazard yellow deepened to amber so it stays readable on white. */
.section-data { background: var(--bg); color: var(--text); border-top: 0; --hazard: #a36a00; --bits-text: #6b34c9; --teal-text: #0f7f78; }

:root[data-theme="dark"] .section-data {
  /* surfaces and text come from the terminal dark tokens on :root; only the chart palette is set here, re-picked
     to read on the ink cards (every series at least 5:1 against them) */
  --series-cve: #ff7a8f; --series-mis: #f2a65a; --series-id: #4fd1c5; --spark-muted: #5b5470;
  --series-cve-adj: #b9a2ff; --series-reported: #9a94ad;
  /* brand purple for fills under white text (5.1:1); strokes use --series-cve-adj; text uses --accent */
  --dd-purple: #7a52e0; --dd-purple-700: #6844cc; --dd-purple-300: #a48cf0;
  --hazard: #ffd23f; --bits-text: #d8c6ff; --teal-text: #6fe3da; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-data {
    --series-cve: #ff7a8f; --series-mis: #f2a65a; --series-id: #4fd1c5; --spark-muted: #5b5470;
    --series-cve-adj: #b9a2ff; --series-reported: #9a94ad;
    /* brand purple for fills under white text (5.1:1); strokes use --series-cve-adj; text uses --accent */
    --dd-purple: #7a52e0; --dd-purple-700: #6844cc; --dd-purple-300: #a48cf0;
    --hazard: #ffd23f; --bits-text: #d8c6ff; --teal-text: #6fe3da; color-scheme: dark;
  }
}
.section-data .eyebrow { color: var(--doom-red-soft); }

.section-data .lc .marker line { stroke: var(--hazard); opacity: .7; }
.section-data .lc .marker text { fill: var(--hazard); }

/* Part break: dawn, the turn toward the bright new day */

@keyframes sunrise { from { transform: translate(-50%, 90px); opacity: .3; } to { transform: translate(-50%, 0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .siren { animation: none; } }

@media (prefers-reduced-motion: reduce) { .topbar, .topbar::after { transition: none; } }

/* Hero: the problem (vulnpocalypse, alarm red) → the answer (mitigeddon, Datadog purple) */
.versus { display: flex; align-items: stretch; gap: 12px; margin-top: 26px; max-width: 620px; }
.vs-side { display: grid; gap: 3px; flex: 1 1 0; min-width: 0; margin: 0; padding: 12px 18px 14px; border-radius: var(--r-lg); }
.vs-side small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.vs-side b { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; color: #fff; }
.vs-side span { font-size: 13.5px; color: rgba(255,255,255,.78); }
.vs-side a.gloss { color: inherit; }
.vs-problem { border: 1px solid rgba(255,59,48,.55); background: rgba(255,59,48,.10); }
.vs-problem small { color: var(--doom-red-soft); }
.vs-answer { border: 1px solid rgba(184,146,245,.65); background: linear-gradient(120deg, rgba(99,44,166,.6), rgba(99,44,166,.25)); box-shadow: 0 0 32px rgba(99,44,166,.35); }
.vs-answer small { color: #d4bdfb; }
.vs-arrow { align-self: center; font-family: var(--display); font-size: 30px; color: var(--hazard); }
@media (max-width: 520px) {
  .versus { flex-direction: column; gap: 6px; }
  .vs-arrow { transform: rotate(90deg); align-self: center; line-height: 1; }
}

/* ── Lead: the first screen (strip, verdict + Bits, chart in three modes, Fix next) ─────────────────── */
.section-first { padding-top: 22px; }
.lead-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.lead-strip .sight-meta { margin-left: auto; }
  background: var(--hazard); color: var(--doom-black); white-space: nowrap; }

.what { position: relative; }

.what-pop { position: absolute; z-index: 40; top: calc(100% + 12px); left: -6px; width: min(400px, calc(100vw - 32px)); display: none; gap: 10px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.what-pop::before { content: ""; position: absolute; top: -7px; left: 24px; width: 12px; height: 12px; background: var(--surface-2);
  border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.what.open .what-pop { display: grid; }
.what-pop h2 { margin: 0; padding-right: 32px; font: 700 24px/1 var(--display); letter-spacing: .02em; color: var(--text); }
.what-pop p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

 
 


 

.lead { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: center; margin-bottom: 18px; }
.verdict { display: grid; gap: 8px; min-width: 0; }


/* panel titles share one style: .tile-head h3 (bold, sentence case) */


/* chart callouts (flood) */
.lc .callout path { stroke: currentColor; }
.lc .callout-head { fill: currentColor; font: 600 14px var(--font); }
.lc .callout-sub { fill: var(--muted); font: 500 12px var(--font); }

/* heat strip */
svg.heat text { font-family: var(--font); }
svg.heat .axis-t { fill: var(--subtle); font: 500 11.5px var(--mono); }

/* priority map */
svg.map text { font-family: var(--font); }
svg.map .grid line { stroke: var(--border); } svg.map .grid line.zero { stroke: var(--border-strong); }
svg.map .axis text { fill: var(--subtle); font: 500 11.5px var(--mono); }
svg.map .axis-title { fill: var(--muted); font-size: 12px; }

  

svg.map .trail { stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .7; }
svg.map .bubble { cursor: pointer; outline: none; }
svg.map .bubble circle { fill-opacity: .28; stroke-width: 1.2; transition: fill-opacity .15s; }
svg.map .bubble.top circle { fill-opacity: .55; stroke-width: 2.5; }
svg.map .bubble:hover circle, svg.map .bubble:focus-visible circle { fill-opacity: .8; }
svg.map .bubble:focus-visible circle { stroke: var(--hazard); stroke-width: 3; }

/* Fix next */

.fix { list-style: none; margin: 0; padding: 0; }
.fix-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.fix-row:first-child { border-top: 0; padding-top: 2px; }
.fix-n { font: 700 12px/1 var(--mono); color: var(--subtle); }
.fix-row.top .fix-n { color: var(--hazard); }
.fix-name b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.fix-name small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fix-name small i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

@media (max-width: 1100px) { .lead { grid-template-columns: minmax(0, 1fr) 300px; }  }
@media (max-width: 860px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead { gap: 14px; }
  
}
@media (max-width: 640px) {
  
  
  .what-pop { left: -8px; }
}
/* lead: keep the controls above the chart to one row where it fits */

.fix-row { padding: 9px 0; }

/* ── Lead, calmer: one focal point (verdict → chart), everything else quiet and still ─────────── */
#sightings .live-dot { animation: none; box-shadow: none; }

.fix-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
.fix-name small { line-height: 1.4; }


svg.map .bubble.chronic circle { fill-opacity: .12; stroke-opacity: .5; }
/* secondary message: the road to full autonomy */
.autonomy { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.autonomy span { color: var(--text); }
.autonomy a { color: var(--hazard); font-weight: 600; text-decoration: none; }
.autonomy a:hover { text-decoration: underline; }

/* ── Try Datadog panel (#get-started): one call to action for visitors who aren't on Datadog yet ───── */
[data-feature][hidden], [data-feature-off][hidden] { display: none !important; }
.section-trial { background: linear-gradient(160deg, var(--dd-purple-900), #3b1a78); color: #fff; }
.trial { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 48px; align-items: center; }
.trial-copy { min-width: 0; }
.trial-copy .eyebrow { color: var(--dd-orange); }
.trial-copy h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 10px 0 14px; text-wrap: balance; }
.trial-copy p { color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.55; max-width: 60ch; }
.trial-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.trial-points li { position: relative; padding-left: 26px; color: rgba(255,255,255,.9); font-size: 15px; }
.trial-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--dd-teal); }
.trial-actions { display: grid; gap: 12px; justify-items: stretch; padding: 28px; border-radius: var(--r-xl); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.trial-actions .btn { justify-content: center; text-align: center; }
.trial-actions .btn-primary { background: var(--hazard); color: var(--doom-black); }
.trial-actions .btn-primary:hover { background: #ffdd6b; }
.trial-actions .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); background: none; }
.trial-note { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.7); text-align: center; }
.trial-customer { background: none; border: 0; padding: 4px 0 0; color: #cdb6ff; font: 600 14px var(--font); cursor: pointer; }
.trial-customer:hover { text-decoration: underline; }
.trial-actions a:focus-visible, .trial-customer:focus-visible { outline: 2px solid var(--hazard); outline-offset: 3px; }
@media (max-width: 860px) { .trial { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ── Lead, per-panel callouts (replaces the big verdict) and Fix now / Fix next ─────────────────── */

/* lead chart: title, then key, then the selectors */

  /* heavier rule: Fix now | Fix next */  /* same as the panel titles (.tile-head h3) */



/* contrast: Datadog purple is light in the data palette, so primary buttons there take dark text */
.section-data .btn-primary { color: var(--doom-black); }

/* Power-user detail behind a click (text style system: simple first) */

/* ── Ask Bits button: the product's AI entry point (compact, indigo, sparkles) ── */

/* ── Dev site banner (stage "dev" only): a thin hazard bar above the top bar ── */
.stage-banner { margin: 0; padding: 4px 16px; text-align: center; font-size: 12.5px; line-height: 1.4;
  background: var(--stage-banner-bg); color: var(--stage-banner-ink); }
.stage-banner b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }

/* ── Bug mode: the 8-bit motif ─────────────────────────────────────────────
   Subtle on the surface (a pixel bug before each eyebrow, bugz marching along the footer, one that sometimes
   crawls under the top bar), loud once you open it: triage, a game played on the page (see "Bug mode" in app.js). */

.footer { position: relative; }
.footer::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 10px; background: rgba(255,255,255,.12);
  -webkit-mask: url(assets/bugz/march.svg) left center / 60px 10px repeat-x; mask: url(assets/bugz/march.svg) left center / 60px 10px repeat-x; }

/* top-bar toggle: a pixel beetle, same footprint as the theme toggle */
.bugz-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.bugz-toggle[hidden] { display: none; }
.bugz-toggle svg { width: 22px; height: 20px; }
.bugz-toggle .px-o { fill: none; }
.bugz-toggle:hover { background: rgba(255,255,255,.1); color: var(--bugz-patch); }
.bugz-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (pointer: coarse) { .bugz-toggle { width: 44px; height: 44px; } }
@media (max-width: 1180px) { .bugz-toggle { margin-left: auto; order: 2; } .bugz-toggle:not([hidden]) ~ .theme-toggle { margin-left: 0; } }

/* the runner: now and then a pixel bug scuttles across the page at a random height (app.js sets --run-y), legs
   ticking and weaving a little. Click it to play. Generous padding makes it an easy target. */
.bugz-crawler { position: fixed; top: var(--run-y, 60vh); left: 0; z-index: 15; padding: 12px; margin: 0; border: 0; background: none;
  color: var(--bugz-crawler); cursor: crosshair; line-height: 0; }
.bugz-crawler[hidden] { display: none; }
.bugz-crawler svg { width: 33px; height: 24px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.bugz-crawler .px-o { fill: var(--bugz-eye); }
/* dark: a light outline keeps the bug visible on near-black (and on the hero, if a scroll brings it under) */
:root[data-theme="dark"] .bugz-crawler svg { filter: drop-shadow(0 0 1px rgba(255,255,255,.85)) drop-shadow(0 0 6px rgba(60,198,189,.55)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bugz-crawler svg { filter: drop-shadow(0 0 1px rgba(255,255,255,.85)) drop-shadow(0 0 6px rgba(60,198,189,.55)); } }
.bugz-crawler .f1 { position: absolute; left: 12px; top: 12px; visibility: hidden; }
.bugz-crawler:hover { color: var(--bugz-patch); }
.bugz-crawler.go { animation: bugz-run 7s linear forwards; }
.bugz-crawler.go.rtl { animation-direction: reverse; }
.bugz-crawler.go svg { animation: bugz-weave .6s ease-in-out infinite alternate; }
.bugz-crawler.go .f0 { animation: bugz-leg .2s steps(1) infinite, bugz-weave .6s ease-in-out infinite alternate; }
.bugz-crawler.go .f1 { animation: bugz-leg .2s steps(1) infinite reverse, bugz-weave .6s ease-in-out infinite alternate; }
/* it pauses halfway, as if it noticed you */
@keyframes bugz-run { 0% { transform: translateX(-60px); } 45%, 55% { transform: translateX(calc(50vw - 28px)); } 100% { transform: translateX(calc(100vw + 60px)); } }
@keyframes bugz-weave { from { translate: 0 -4px; } to { translate: 0 4px; } }
@keyframes bugz-leg { 0% { visibility: visible; } 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .bugz-crawler { display: none !important; } }

/* the game: an arcade scrim over the page, a pixel HUD, the playfield canvas */
html.bugz-on, html.bugz-on body { overflow: hidden; }
.bugz { position: fixed; inset: 0; z-index: 1000; color: var(--bugz-text); font-family: "Press Start 2P", var(--mono);
  background: repeating-linear-gradient(to bottom, transparent 0 2px, var(--bugz-scanline) 2px 3px), var(--bugz-scrim); }
.bugz[hidden] { display: none; }
.bugz:focus { outline: none; }
.bugz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.bugz-hud { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px 16px;
  border-bottom: 3px solid var(--bugz-patch); background: var(--bugz-card); pointer-events: none; }
.bugz-title { font: 400 12px/1.4 "Press Start 2P", var(--mono); letter-spacing: 0; color: var(--bugz-patch); }
.bugz-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; font-size: 10px; line-height: 1.6; }
.bugz-stats b { font-weight: 400; color: var(--bugz-patch); }
.bugz-x { pointer-events: auto; flex: none; width: 40px; height: 40px; padding: 0; border: 2px solid currentColor; border-radius: 0;
  background: transparent; color: var(--bugz-text); font: 400 18px/1 var(--font); cursor: pointer; }
.bugz-x:hover { color: var(--bugz-patch); }
/* the controls legend: a second row of the HUD, keycaps then what they do */
.bugz-keys { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 8px 0 2px;
  list-style: none; border-top: 2px solid rgba(255,255,255,.08); font: 400 13px/1.4 var(--font); }
.bugz-keys li { display: inline-flex; align-items: center; gap: 6px; }
.bugz-keys kbd { display: inline-block; min-width: 26px; padding: 4px 7px 3px; text-align: center; color: var(--bugz-card);
  background: var(--bugz-patch); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28); font: 400 10px/1.3 "Press Start 2P", var(--mono); }
.bugz-keys kbd + kbd { margin-left: -2px; }
.bugz-keys kbd.sym { font: 700 14px/1 var(--mono); padding: 3px 7px 4px; }   /* arrows: the pixel font has no glyphs for them */
@media (pointer: coarse) { .bugz-keys { display: none; } }
.bugz-x:focus-visible, .bugz-over .btn:focus-visible { outline: 3px solid var(--bugz-patch); outline-offset: 3px; box-shadow: none; }
.bugz-hint { position: relative; margin: 14px auto 0; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 14px; text-align: center; font-size: 10px; line-height: 1.9; background: var(--bugz-card);
  border: 2px solid var(--bugz-patch); box-shadow: 4px 4px 0 rgba(0,0,0,.5); pointer-events: none; transition: opacity .5s; }
.bugz-hint.gone { opacity: 0; }
.bugz-over { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px));
  padding: 24px; text-align: center; background: var(--bugz-card); border: 3px solid var(--bugz-patch); box-shadow: 6px 6px 0 rgba(0,0,0,.55); }
.bugz-over[hidden] { display: none; }
.bugz-over h3 { font: 400 14px/1.6 "Press Start 2P", var(--mono); color: var(--bugz-patch); }
.bugz-over p { margin-top: 12px; font: 400 15px/1.5 var(--font); }
.bugz-over .bugz-newbest { font: 400 11px/1.6 "Press Start 2P", var(--mono); color: var(--bugz-mite); }
.bugz-over-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.bugz-over .btn { border-radius: 0; font: 400 11px/1.4 "Press Start 2P", var(--mono); }
@media (max-width: 640px) {
  .bugz-hud { gap: 10px; padding: 8px 12px; }
  .bugz-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bugz-stats { margin-left: 0; gap: 4px 12px; font-size: 9px; }
  .bugz-best, .bugz-tok { display: none; }
  .bugz-x { margin-left: auto; }
}
/* the exposure loop log: a tiny terminal in the bottom-left corner; new lines type themselves in */
.bugz-log { position: absolute; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); padding: 10px 12px 8px;
  background: var(--bugz-card); border: 2px solid var(--bugz-ai); box-shadow: 4px 4px 0 rgba(0,0,0,.5); pointer-events: none; }
.bugz-log-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 9px; line-height: 1.4; color: var(--bugz-ai); text-transform: uppercase; }
.bugz-log-title i { width: 7px; height: 10px; background: var(--bugz-ai); animation: bugz-cursor 1.2s steps(1) infinite; }
@keyframes bugz-cursor { 50% { opacity: 0; } }
.bugz-log ol { list-style: none; margin: 0; padding: 0; min-height: 4.5em; font: 500 12px/1.5 var(--mono); }
.bugz-log li { display: flex; gap: 8px; white-space: nowrap; overflow: hidden; }
.bugz-log li > span { overflow: hidden; text-overflow: ellipsis; animation: bugz-type .45s steps(24) both; }
.bugz-log li b { flex: none; width: 10ch; font-weight: 500; }
.bugz-log .s0 { color: var(--bugz-mite); } .bugz-log .s1 { color: var(--bugz-moth); }
.bugz-log .s2 { color: var(--bugz-patch); } .bugz-log .s3 { color: var(--bugz-ai); }
.bugz-log .bad { color: var(--bugz-hot); }
@keyframes bugz-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 640px) {
  .bugz-log { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 8px 10px 6px; }
  .bugz-log ol { font-size: 11px; min-height: 0; }
  .bugz-log li:nth-last-child(n/**/+4) { display: none; }   /* three lines on phones */
}
@media (prefers-reduced-motion: reduce) { .bugz-hint { transition: none; } .bugz-log-title i, .bugz-log li > span { animation: none; } }
/* ══ Story views (sightings.stories) ════════════════════════════════════════
   What just landed · critical on paper · how widespread · the patching race. */
.section-data { --sev-critical: #c4305f; --sev-high: #d9762b; --sev-medium: #c9a227; --sev-low: #8f97a8; }
:root[data-theme="dark"] .section-data { --sev-critical: #ff6b7f; --sev-high: #f39a45; --sev-medium: #e6c75a; --sev-low: #8f89a3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-data { --sev-critical: #ff6b7f; --sev-high: #f39a45; --sev-medium: #e6c75a; --sev-low: #8f89a3; }
}

.tile-head .seg-sm button { padding: 5px 10px; font-size: 12.5px; }
.story-svg { display: block; width: 100%; overflow: visible; }
.story-svg .grid line { stroke: var(--border); }
.story-svg .axis text, .story-svg .axis-title { fill: var(--subtle); font-size: 11.5px; font-family: var(--font); }
.story-svg .end-label { fill: var(--muted); font-size: 12px; font-weight: 600; font-family: var(--font); }
.story-svg .end-label.top { fill: var(--text); font-weight: 700; }
.story-svg .sankey-label { fill: var(--text); font-size: 12.5px; font-weight: 600; font-family: var(--font); }

.small-print { margin: 10px 0 0; font-size: 13px; color: var(--subtle); }

/* What just landed: one row per event */
.landed { list-style: none; margin: 0; padding: 0; }
.landed-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 92px 132px auto; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--border); animation: rise .35s both; }
.landed-row:first-child { border-top: 0; }
.ev-when b { display: block; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.ev-when small { font-size: 12px; color: var(--subtle); }
.ev-main { min-width: 0; }
.ev-main b { display: block; font-size: 15px; line-height: 1.3; color: var(--text); }
.ev-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.ev-main small { font-size: 12.5px; color: var(--subtle); }
.ev-signal { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--border); color: var(--subtle); cursor: help; }
.ev-signal.kev { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.ev-signal.exp { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.ev-share { text-align: right; }
.ev-share b { display: block; font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ev-share small { display: block; font-size: 12px; color: var(--subtle); }
.ev-share .ev-day1 { color: var(--muted); }
.landed-row .spark svg { width: 92px; height: 32px; display: block; }
.ev-noise { opacity: .62; }
.landed-noise { margin: 8px 0 0; font-size: 13px; color: var(--subtle); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.link-btn:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }

/* Critical on paper */
.rerate-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: center; }

/* How widespread */



/* The patching race */

@media (max-width: 1100px) {
  .landed-row { grid-template-columns: 52px minmax(0, 1fr) 84px 112px; } .landed-row .ev-act { grid-column: 2 / -1; }
}
@media (max-width: 980px) {
  .rerate-grid { grid-template-columns: minmax(0, 1fr); }
  .landed-row { grid-template-columns: 56px minmax(0, 1fr) 92px auto; } .landed-row .ev-act { grid-column: auto; }
}
@media (max-width: 640px) {
  .landed-row { grid-template-columns: 50px minmax(0, 1fr) 76px; grid-template-areas: "when main share" "when act act"; row-gap: 8px; }
  .ev-when { grid-area: when; align-self: start; } .ev-main { grid-area: main; } .ev-share { grid-area: share; align-self: start; }
  .landed-row .ev-act { grid-area: act; grid-column: auto; }
  .landed-row .spark svg { width: 76px; }
  .tile-head:has(.seg-sm) { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .landed-row { animation: none; } }
.ev-pills { display: flex; flex-wrap: wrap; gap: 4px; }
/* vulnerabilities per application: a lineChart() with the legend right above the plot */
.story-funnel-trend .legend { margin: 0 0 6px; }
.story-app-median .legend { margin-bottom: 0; }
#real-app-median-svg { width: 100%; height: 280px; display: block; overflow: visible; touch-action: pan-y; }
/* a temporary data caveat under the panel title, above the legend */
@media (max-width: 640px) { #real-app-median-svg { height: 210px; } }

/* Story views: surface tags in the feed, funnel shape */
.ev-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--muted); }

.funnel-svg .funnel-label { fill: var(--text); font-size: 14px; font-weight: 700; font-family: var(--font); }
.funnel-svg .funnel-value-t { fill: var(--muted); font-size: 13px; font-family: var(--font); }
.funnel-svg .funnel-reach { fill: var(--text); font-size: 13.5px; font-weight: 700; font-family: var(--font); }
.spread-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.spread-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.spread-legend b { color: var(--text); }

/* Latest impactful vulnerabilities, round 3: full width, one aligned row per event, the row is the link */
.story-landed { margin-top: 14px; }
.story-landed .landed-head, .story-landed .landed-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) 190px 130px 72px; gap: 18px; align-items: center; }
.story-landed .landed-head { padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--subtle); }
.story-landed .landed-head .lh-share { text-align: right; }
.story-landed .landed-row { padding: 12px 10px; border-top: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.story-landed .landed-row:first-child { border-top: 0; }
.story-landed .landed-row:hover { background: var(--surface-2); }
.story-landed .landed-row:focus-visible { outline: none; box-shadow: var(--ring); }
.story-landed .ev-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.story-landed .ev-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--subtle); white-space: nowrap; }
.story-landed .ev-tag { padding: 1px 6px; font-size: 10.5px; }
.story-landed .ev-status { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.story-landed .ev-share { text-align: right; font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.story-landed .ev-go { justify-self: end; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.landed-foot { margin: 10px 0 0; font-size: 13px; color: var(--subtle); display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
/* Real feed paging: "Showing 25 of 1,063" then the page buttons */
.landed-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.landed-count:empty { display: none; }
.method-tip { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; color: var(--muted); }
.method-tip:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }
.landed-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sort-help { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; text-decoration: none; font-size: 12.5px; font-weight: 700; }
@media (max-width: 900px) {
  .story-landed .landed-head { display: none; }
  .story-landed .landed-row { grid-template-columns: 58px minmax(0, 1fr) 70px; grid-template-areas: "when main share" "when status status" "when go go"; row-gap: 8px; }
  .story-landed .ev-when { grid-area: when; align-self: start; } .story-landed .ev-main { grid-area: main; }
  .story-landed .ev-share { grid-area: share; align-self: start; } .story-landed .ev-status { grid-area: status; }
  .story-landed .ev-go { grid-area: go; justify-self: start; }
  .story-landed .ev-main b { white-space: normal; }
}
/* time to exploitation: a caption with the year, the two headline numbers side by side (each with a direction
   triangle), the explanation under them, then the stacked bars at full width */
.lag-head { margin: 14px 0 26px; }
.lag-stats { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 64px; }
/* subgrid rows line the two numbers, labels and change lines up, even when one label wraps */
.story-lag .lag-stats .cve-stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0; align-content: start; }
.story-lag .lag-stats .cve-stat span { margin-top: 6px; max-width: none; white-space: nowrap; }
.lag-intro { margin-top: 18px; max-width: 75ch; }
.lag-intro p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.lag-intro p + p { margin-top: 4px; }
.lag-intro p.small-print { font-size: 13px; color: var(--subtle); }
.lag-change { display: flex; align-items: center; align-self: start; gap: 7px; margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.lag-change:empty { display: none; }
.lag-tri { flex: none; width: 12px; height: 10px; background: var(--subtle); }
.lag-tri-up { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lag-tri-down { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.lag-faster .lag-tri { background: var(--danger); }
@media (max-width: 640px) {
  .lag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .story-lag .cve-stat b { font-size: 34px; }
  .story-lag .lag-stats .cve-stat span { font-size: 13px; line-height: 1.35; white-space: normal; }
  .lag-change { align-items: flex-start; font-size: 13px; line-height: 1.35; }
  .lag-tri { margin-top: 4px; }
}
.lag-bars { position: relative; display: grid; gap: 8px; }
.lag-rows { display: grid; gap: 12px; }
.lag-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.lag-col-head { text-align: right; font-size: 12px; font-weight: 600; color: var(--subtle); cursor: help;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.lag-row > b.lag-share { color: var(--accent); }
.lag-year { font-size: 14px; font-weight: 600; color: var(--text); }
.lag-bar { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.lag-bar i { display: block; height: 100%; border-radius: 7px; }
.lag-row > b { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.lag-partial .lag-bar i { background-image: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(255,255,255,.35) 4px 8px); }
.lag-stack { display: flex; height: 18px; border-radius: 5px; }
.lag-stack i { border-radius: 0; flex: none; }
/* time to exploitation: Datadog's purple scale, dark (exploited before disclosure) to light (within a month); "Later"
   is the neutral track. Dark mode lifts the darkest steps off the background. */
:root { --lag-1: #3c288d; --lag-2: #632ca6; --lag-3: #8b72e0; --lag-4: #d8ccf7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lag-1: #7558e6; --lag-2: #9479ea; --lag-3: #bda9f6; --lag-4: #e8e0fd; } }
:root[data-theme="dark"] { --lag-1: #7558e6; --lag-2: #9479ea; --lag-3: #bda9f6; --lag-4: #e8e0fd; }
/* a highlighted series keeps its color, the others fade; a hairline of the surface keeps neighbouring steps apart */
.lag-seg { transition: opacity .18s ease; }
.lag-seg + .lag-seg { box-shadow: inset 2px 0 0 var(--surface); }
.lag-hl .lag-seg:not(.on) { opacity: .18; }
.lag-seg:focus { outline: none; }
.lag-seg:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.bar-tip { min-width: 0; white-space: nowrap; }
.bar-tip .row i { width: 10px; height: 10px; border-radius: 2px; }
/* legend items are buttons that highlight their series in every year */
.lag-legend { display: flex; flex-wrap: wrap; gap: 4px 4px; margin: 0 0 4px -8px; font-size: 12.5px; color: var(--muted); }
.lag-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: inherit; font: inherit; cursor: pointer; transition: opacity .18s ease, background-color .18s ease; }
.lag-key:hover { background: var(--surface-2); }
.lag-key:focus-visible { outline: none; box-shadow: var(--ring); }
.lag-key[aria-pressed="true"] { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.lag-hl .lag-key:not(.on) { opacity: .45; }
.lag-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .lag-seg, .lag-key { transition: none; } }
/* lineChart() legends with legendHighlight: the same buttons and fade as the time to exploitation legend */
.legend.lc-legend { gap: 4px; margin-left: -8px; }
.lc-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: inherit; font: inherit; cursor: pointer; transition: opacity .18s ease, background-color .18s ease; }
.lc-key:hover { background: var(--surface-2); }
.lc-key:focus-visible { outline: none; box-shadow: var(--ring); }
.lc-key[aria-pressed="true"] { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.legend.lc-hl .lc-key:not(.on) { opacity: .45; }
.lc .series, .lc .shade, .lc .end-label, .lc .callout { transition: opacity .18s ease; }
.lc.lc-hl .series:not(.on) { opacity: .18; }
.lc.lc-hl .shade { opacity: .03; }
.lc.lc-hl .end-label:not(.on), .lc.lc-hl .callout:not(.on) { opacity: .35; }

/* the latest year is partial: hatched, like the other partial periods */
/* A: columns; the number over each sits outside its bar, so the plot keeps room above the tallest */
/* C: compact, the big number beside the yearly totals and who listed this year's */
/* D: unit chart, one square per few CVEs; dashed empty squares end the latest year's grid (still running) */
@media (prefers-reduced-motion: reduce) { .lc-key, .lc .series, .lc .shade, .lc .end-label, .lc .callout { transition: none; } }
@media (max-width: 760px) { .lag-row { grid-template-columns: 80px minmax(0, 1fr) 64px; } }
.story-lag .cve-stat { display: block; }
.story-lag .cve-stat span { display: block; margin-top: 6px; max-width: 32ch; }
/* UX review fixes */
.story-landed .ev-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rerate-grid .cve-stat { align-self: center; }
.lag-row > b { white-space: nowrap; }
@media (max-width: 760px) {
  .rerate-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Real data views */
#real-view > .tile { margin-top: 20px; }
.real-lede { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
/* Latest exploited: an old CVE's publication month, next to its id */
#real-landed .ev-older-note { margin-left: 6px; font-weight: 600; color: var(--warning); }
/* the feed's sort note: a plain lede (.real-lede) saying what the selected sort shows */
.sort-note { margin-top: 0; }
.ev-tag.ev-news { border-style: dashed; margin-left: 4px; }
/* XX = a number the export doesn't have yet: muted and dashed so it reads as a placeholder */
.real-xx, .real-xx b { color: var(--subtle) !important; font-weight: 700; }
.story-landed .ev-share.real-xx { text-decoration: underline dashed; text-underline-offset: 4px; }
.ev-where-label { font-size: 11.5px; color: var(--subtle); }
#real-landed .ev-meta { flex-wrap: wrap; white-space: normal; row-gap: 4px; }
/* phones: "hosts & containers" is too long for a side column, so the shares get their own line under the name */
@media (max-width: 900px) {
  #real-landed .landed-row { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "when main" "when share" "when status" "when go"; }
  #real-landed .ev-prev { align-items: flex-start; text-align: left; }
}
.funnel-headline { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--text); }
.funnel-headline .v-num { font-weight: 800; }
/* feed prevalence (Real data): one line per surface where the CVE is found */
.story-landed .ev-prev { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: help; }
.story-landed .ev-prev .prev-line b { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.story-landed .ev-prev .prev-none { font-size: 13px; color: var(--subtle); }
.story-landed .ev-prev .prev-na { font-size: 11.5px; color: var(--subtle); }
.story-landed .ev-prev .prev-low { font-size: 12px; color: var(--warning); font-weight: 700; }
.story-landed .ev-prev .prev-line { white-space: nowrap; }
.story-landed .ev-prev .prev-line b { font-size: 16px; }
.story-landed .ev-prev .prev-low { margin-left: 2px; }
.story-landed .ev-prev .prev-na, .story-landed .ev-prev .prev-none { white-space: nowrap; }
@media (min-width: 901px) {
  #real-landed .landed-head, #real-landed .landed-row { grid-template-columns: 74px minmax(0, 1fr) 190px 150px 72px; }
}
.story-landed .ev-prev .prev-line b { display: inline; }

/* Latest impactful vulnerabilities, round 4: age column, exploitation chips, prevalence levels */
.seg button .feed-icon { flex: none; margin-right: 6px; vertical-align: -2px; }
#real-landed-sort button { display: inline-flex; align-items: center; }
/* phones: four sorts don't fit on one line, so they sit two by two */
@media (max-width: 600px) {
  #real-landed-sort { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  #real-landed-sort button { justify-content: center; }
}
@media (min-width: 901px) {
  #real-landed .landed-head, #real-landed .landed-row { grid-template-columns: 76px minmax(0, 1fr) 176px 128px 72px; }
}
#real-landed .landed-head .lh-share { text-align: left; }
#real-landed .ev-when time { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: help; }
#real-landed .ev-signals { gap: 4px; cursor: help; }
.ev-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ev-chip.chip-kev { background: var(--danger-bg); color: var(--danger); }
.ev-chip.chip-exp { background: var(--warning-bg); color: var(--warning); }
#real-landed .ev-lists { font-size: 12px; color: var(--subtle); }
#real-landed .ev-none { font-size: 13px; color: var(--subtle); }
#real-landed .ev-speed .ev-lag { font-size: 13.5px; font-weight: 700; color: var(--danger); white-space: nowrap; }
#real-landed .ev-prev { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
.prev-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; cursor: help; }
.prev-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.prev-meter i { display: block; width: 4px; border-radius: 1px; background: var(--border-strong); }
.prev-meter i:nth-child(1) { height: 5px; } .prev-meter i:nth-child(2) { height: 8px; } .prev-meter i:nth-child(3) { height: 11px; } .prev-meter i:nth-child(n/**/+4) { height: 14px; }
.prev-meter i.on { background: var(--dd-purple); }
:root[data-theme="dark"] .prev-meter i.on { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prev-meter i.on { background: var(--accent); } }
.prev-none .prev-word { color: var(--muted); font-weight: 600; }
.prev-unmeasured .prev-word { color: var(--subtle); font-weight: 600; font-style: italic; }
.prev-unmeasured .prev-meter i { background: none; border: 1px dashed var(--border-strong); }
.prev-panel { margin: -4px 0 12px; font-size: 15px; }
@media (max-width: 900px) {
  #real-landed .landed-row { grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "when main main" "when status share" "when go go"; row-gap: 8px; column-gap: 12px; }
  #real-landed .ev-signals { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  #real-landed .ev-prev { justify-content: flex-end; align-self: center; }
}

/* side panel: the CVE's timeline, a dot per event on one vertical line */
.vtl { list-style: none; margin: 4px 0 16px; padding: 0; }
.vtl-ev { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.vtl-ev:last-child { padding-bottom: 0; }
.vtl-ev:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: -2px; width: 2px; background: var(--border-strong); }
.vtl-pending .vtl-ev:nth-last-child(2)::before { background: none; border-left: 2px dashed var(--border-strong); width: 0; }
/* the end cap (the data's day): a short tick on the line, lighter than an event */
.vtl-end { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.vtl-cap { width: 10px; height: 2px; margin: 8px 0 0 4px; border-radius: 1px; background: var(--border-strong); }
.vtl-open .vtl-cap { width: 8px; height: 8px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--subtle); box-sizing: border-box; }
.vtl-end .vtl-body b { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.vtl-end .vtl-body small { margin-top: 0; }
.vtl-now .vtl-body small { line-height: 18px; }
.vtl-end time[title] { cursor: help; }
.vtl-dot { width: 12px; height: 12px; margin: 4px 0 0 3px; border-radius: 50%; background: var(--dd-purple); box-sizing: border-box; z-index: 1; }
.vtl-exploit .vtl-dot { background: var(--warning); }
.vtl-exploited .vtl-dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.vtl-pending .vtl-ev:nth-last-child(2) { padding-bottom: 20px; }
.vtl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.vtl-head b { font-size: 14.5px; font-weight: 700; color: var(--text); }
.vtl-head time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vtl-body small { display: block; margin-top: 2px; font-size: 13px; color: var(--subtle); }
.vtl-body small a { color: var(--accent); font-weight: 600; }
.vtl-exploited .vtl-head b { color: var(--danger); }

/* ── CVE lookup (Cmd+K / Ctrl+K): centered modal ── */
.lookup-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,10,32,.5); animation: fadeIn .15s ease; }
.lookup {
  position: fixed; z-index: 81; top: 6vh; left: 50%; transform: translateX(-50%); width: min(960px, calc(100vw - 32px));
  max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: 0 24px 60px rgba(16,10,32,.35); overflow: hidden;
}
.lookup[hidden], .lookup-backdrop[hidden] { display: none; }
.lookup-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 10px 20px; }
.lookup-head h2 { font-size: 18px; overflow-wrap: anywhere; }
.lookup-head-main { min-width: 0; display: flex; align-items: center; gap: 12px; }
.lookup-search[hidden] { display: none; }
.lookup-search { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg); color: var(--muted); }
.lookup-search:focus-within { border-color: var(--dd-purple); box-shadow: var(--ring); }
.lookup-input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: 500 16px var(--font); outline: none; }
.lookup-input::placeholder { color: var(--subtle); }
.lookup-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; border-top: 1px solid var(--border); }
.lookup-status { padding: 12px 4px 6px; font-size: 13px; color: var(--muted); }
.lookup-status:empty { display: none; }
.lookup-status[hidden], .lookup-results[hidden], .lookup-detail[hidden] { display: none; }
.lookup-results { list-style: none; margin: 0; padding: 0; }
.lookup-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; }
.lookup-opt[aria-selected="true"] { background: var(--dd-purple-100); box-shadow: inset 3px 0 0 var(--dd-purple); }
.lookup-opt-main { min-width: 0; display: flex; flex-direction: column; }
.lookup-opt-main b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.lookup-opt-name { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup-opt-tags { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; max-width: 45%; }
.lookup-sev, .lookup-kev { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.lookup-kev { border-color: transparent; background: var(--danger-bg); color: var(--danger); }
.lookup-kev.lookup-exploit { background: var(--warning-bg); color: var(--warning); }
.lookup-detail { padding-top: 14px; }
/* filters under the search field: severity chips (from the data), exploit checkboxes, the syntax tips */
.lookup-filters { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 16px 10px; font-size: 13.5px; }
.lookup-filters[hidden], .lookup-sevs[hidden] { display: none; }
.lookup-sevs { display: flex; flex-wrap: wrap; gap: 6px; }
.lookup-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 999px; background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.lookup-chip:hover { border-color: var(--dd-purple-300); }
.lookup-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.lookup-chip-n { font-weight: 500; color: var(--subtle); font-variant-numeric: tabular-nums; }
.lookup-chip[aria-pressed="true"] { background: var(--dd-purple); border-color: var(--dd-purple); color: #fff; }
.lookup-chip[aria-pressed="true"] .lookup-chip-n { color: rgba(255,255,255,.8); }
.lookup-chip.is-empty:not([aria-pressed="true"]) { color: var(--subtle); border-style: dashed; background: transparent; }
.lookup-check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--text); cursor: pointer; white-space: nowrap; }
.lookup-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--dd-purple); cursor: pointer; }
.lookup-check input:focus-visible { outline: none; box-shadow: var(--ring); }
.lookup-syntax { margin-left: auto; color: var(--muted); }
.lookup-syntax summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
.lookup-syntax summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.lookup-syntax ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.lookup-syntax code { font: 12.5px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
.lookup-syntax[open] { flex-basis: 100%; margin-left: 0; }
@media (pointer: coarse) { .lookup-chip, .lookup-check, .lookup-syntax summary { min-height: 44px; } }
/* a well-formed CVE id the tab doesn't have */
.lookup-notfound { padding: 28px 8px 20px; text-align: center; }
.lookup-notfound[hidden] { display: none; }
.lookup-notfound-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.lookup-notfound-note { margin: 0 auto 14px; max-width: 46ch; font-size: 15px; color: var(--muted); }
.lookup-notfound .about-ref { font-size: 15px; }
.lookup-hint { flex: none; margin: 0; padding: 8px 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--subtle); }
@media (pointer: coarse) { .lookup-hint { display: none; } }
@media (max-width: 640px) {
  .lookup { top: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: var(--r-lg); }
  .lookup-head { padding: 10px 12px 8px 16px; }
  .lookup-search { margin: 0 12px 10px; }
  .lookup-filters { margin: 0 12px 10px; gap: 6px 12px; }
  .lookup-body { padding: 0 16px 16px; }
  .lookup .ddsql-pre { max-height: none; margin: 0 -16px; border-radius: 0; padding: 14px 16px; font-size: 12px; }
  .lookup-opt { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 8px; }
  .lookup-opt-tags { max-width: none; justify-content: flex-start; }
}
:root[data-theme="dark"] @media (prefers-reduced-motion: reduce) { .lookup-backdrop { animation: none; } }

/* ── CVE panel: the side panel's and the lookup detail's content (cvePanel in app.js) ── */
:root { --cve-accent: var(--dd-purple); --cve-bar: var(--dd-purple); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cve-accent: var(--accent); --cve-bar: #9d7cf0; } }
:root[data-theme="dark"] { --cve-accent: var(--accent); --cve-bar: #9d7cf0; }
.head-text { flex: 1; min-width: 0; }
.head-text .eyebrow[hidden], .cve-idline[hidden], .cve-chips[hidden] { display: none; }
.cve-idline { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cve-idline .vuln-nick { margin-right: 0; font-size: 12px; }
.drawer-cve .drawer-head { align-items: flex-start; }
.drawer-cve .drawer-head h2, .lookup-detail-mode .lookup-head h2 { margin: 0; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.lookup-detail-mode .lookup-head { align-items: flex-start; padding-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.lookup-detail-mode .lookup-head-main { align-items: flex-start; flex: 1; }
.lookup-detail-mode .lookup-body { border-top: 0; }
.cve-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cve-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cve-chip[title] { cursor: help; }
.cve-chip.sev-critical { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.cve-chip.sev-high { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.cve-chip.chip-kev { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.cve-chip.chip-exp { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.cve-chip.chip-trend { background: var(--dd-purple-100); border-color: transparent; color: var(--cve-accent); }
/* the full ecosystem list: the only chip allowed to wrap */
.cve-chip.chip-eco { color: var(--muted); font-weight: 600; white-space: normal; overflow-wrap: anywhere; }

.cve-panel { container-type: inline-size; display: flex; flex-direction: column; gap: 24px; }
.cve-panel .panel-sub { margin: 0 0 12px; }
.cve-lede { margin: 0; font-size: 15px; color: var(--muted); }
.cve-research { padding: 16px 18px; border: 1px solid var(--dd-purple-200); border-left: 4px solid var(--cve-accent); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--dd-purple-100), var(--surface) 90%); }
.cve-research-kicker { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--cve-accent); }
.cve-research-acts { display: flex; flex-wrap: wrap; gap: 10px; }
/* the key facts: a strip of tiles above the timeline */
.cve-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); }
.cve-facts > div { flex: 1 1 130px; padding: 10px 14px; background: var(--surface); }
.cve-facts dt { font-size: 12px; color: var(--muted); }
.cve-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cve-when .vtl { margin: 0; }

/* Prevalence: its own block, the level big */
.cve-prev { padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); }
.cve-prev .panel-sub { margin-bottom: 8px; }
.cve-prev-level { gap: 10px; margin-bottom: 16px; font-size: 24px; font-weight: 800; }
.cve-prev-level .prev-meter { height: 24px; gap: 3px; }
.cve-prev-level .prev-meter i { width: 7px; border-radius: 2px; }
.cve-prev-level .prev-meter i:nth-child(1) { height: 8px; } .cve-prev-level .prev-meter i:nth-child(2) { height: 13px; }
.cve-prev-level .prev-meter i:nth-child(3) { height: 18px; } .cve-prev-level .prev-meter i:nth-child(n/**/+4) { height: 24px; }
.cve-prev-bars { display: grid; gap: 14px; }
.cve-prev-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.cve-prev-label { font-weight: 600; }
.cve-prev-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cve-prev-bar { display: block; height: 8px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: var(--border); }
.cve-prev-bar i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--cve-bar); }
.cve-prev-row small { display: block; margin-top: 4px; font-size: 12px; color: var(--subtle); }
.cve-prev .ddsql-req { margin: 12px 0 0; }
.cve-prev-unknown { padding: 12px 16px; }
.cve-prev-line { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cve-prev-line[title] { cursor: help; }
.cve-prev-line b { color: var(--text); }

/* the Datadog check: one primary link, then two collapsed rows */
.cve-check { padding: 18px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); }
.cve-check-go { display: flex; justify-content: center; width: 100%; }
.cve-check > .ddsql-req { margin: 8px 0 12px; text-align: center; }

.cve-row + .cve-row { border-top: 1px solid var(--border); }
.cve-row > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; }
.cve-row > summary::-webkit-details-marker { display: none; }
.cve-row > summary::after { content: ""; width: 7px; height: 7px; margin: 0 6px 4px auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.cve-row[open] > summary::after { margin-bottom: 0; transform: rotate(-135deg); }
.cve-row > summary:hover .cve-row-label { color: var(--cve-accent); }
.cve-row > summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.cve-row-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--dd-purple-100); color: var(--cve-accent); }
.cve-row-icon img, .cve-row-icon svg { width: 18px; height: 18px; }
.cve-row-body { padding: 0 0 14px; }
.cve-row-body .ddsql-req { margin: 8px 0 0; }

/* References: a normal section of link buttons */
.cve-refs-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cve-ref { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--cve-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.cve-ref:hover { border-color: var(--cve-accent); background: var(--dd-purple-100); }
.cve-ref:focus-visible { outline: none; box-shadow: var(--ring); }
@media (pointer: coarse) { .cve-ref { min-height: 44px; } }

/* phones: a full-screen sheet; the title gets the whole width under the buttons */
@media (max-width: 640px) {
  .drawer { top: 0; height: 100dvh; max-height: none; border-radius: 0; }
  .drawer-head { padding: 12px 16px; }
  .drawer-head::before { display: none; }
  .drawer-cve .drawer-head { flex-wrap: wrap; gap: 8px; }
  .drawer-cve .head-actions { order: -1; margin-left: auto; }
  .drawer-cve .head-text { flex-basis: 100%; }
  .drawer-cve .drawer-head h2 { font-size: 18px; }
  .lookup-detail-mode .lookup-head-main { flex-wrap: wrap; }
  .lookup-detail-mode .head-text { flex-basis: 100%; }
  .cve-research, .cve-prev, .cve-check { padding: 14px; }
}

/* text with an icon copy button in its top-right corner (the Bits prompt, the DDSQL query) */
.copy-block { position: relative; }
.copy-block > .copy-icon { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; }
.copy-block > .prompt-text { padding-right: 48px; }
/* the query: a dark bar with its copy button, the code under it */
.code-block { border-radius: var(--r-md); overflow: hidden; background: var(--dd-purple-900); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
  font: 600 12px var(--mono); letter-spacing: .04em; color: #b9a8dc; }
.code-bar .copy-icon { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #e9e2fb; }
.code-bar .copy-icon.copied { color: #4ade80; border-color: currentColor; }
.code-block .ddsql-pre { border-radius: 0; }
@media (pointer: coarse) { .code-bar .copy-icon { width: 44px; height: 44px; } }
@media (max-width: 640px) { .code-block { margin: 0 -16px; border-radius: 0; } .code-block .ddsql-pre { margin: 0; } }
.copy-icon .i-check { display: none; }
.copy-icon.copied .i-copy { display: none; }
.copy-icon.copied .i-check { display: block; }
@media (pointer: coarse) { .copy-block > .copy-icon { width: 44px; height: 44px; } }

/* ── Incident board: the "days without" sign, full width above the data tabs ─────────────
   An emergency-broadcast panel in both themes: doom black with a purple glow, purple split-flap tiles, a red siren.
   The counter runs up from 0 in JS (not under reduced motion); arrows and dots on the band cycle the counters. */
:root { --board-bg: #0c0a0f; --board-band: #160f24; --board-edge: #3a2763; --board-ink: #f5f0ff; --board-accent: #b892f5;
  --tile: #2a1650; --tile-low: #22123f; --tile-ink: #fffdf7; }
.board { margin: 0 0 22px; border: 1px solid var(--board-edge); border-radius: 14px; color: var(--board-ink); overflow: hidden;
  background: radial-gradient(ellipse at 12% 0, rgba(99,44,166,.55), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(224,69,123,.18), transparent 55%), var(--board-bg);
  box-shadow: 0 18px 40px rgba(12,10,15,.28); }
.board[hidden] { display: none; }

/* the pager: one short bar per counter (the shown one lit, each a 24px-tall button) and a small next chevron */
.board-pager { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
.board-pager[hidden] { display: none; }
.board-segs { display: flex; gap: 4px; }
.board-seg { position: relative; width: 22px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.board-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(201,182,255,.28); transition: background .15s; }
.board-seg:hover::before { background: rgba(201,182,255,.55); }
.board-seg[aria-current="true"]::before { background: #c9b6ff; }
.board-next { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(201,182,255,.3); border-radius: 4px; background: none; color: #c9b6ff; cursor: pointer; }
.board-next:hover { border-color: #c9b6ff; background: rgba(201,182,255,.1); }
:is(.board-seg, .board-next):focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
@media (pointer: coarse) { .board-seg { height: 44px; width: 28px; } .board-next { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .board-seg::before { transition: none; } }

.board-digits { flex: none; display: flex; gap: 6px; }
.board-tile { position: relative; display: grid; place-items: center; width: clamp(64px, 8vw, 104px); height: clamp(88px, 11vw, 140px); border-radius: 8px;
  background: linear-gradient(var(--tile) 0 50%, var(--tile-low) 50% 100%); overflow: hidden;
  /* the page's one glowing element: the flip digits */
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.5), 0 0 0 1px rgba(184,146,245,.45), 0 0 18px rgba(150,110,255,.55), 0 0 42px rgba(255,61,203,.22); }
/* the split-flap hinge */
.board-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(12,10,15,.85); }
.board-face { font: 700 clamp(64px, 8.4vw, 112px)/1 var(--display); color: var(--tile-ink); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(194,168,255,.75); }
.board-words { display: grid; gap: 12px; min-width: 0; }
.board-title { margin: 0; font: 700 clamp(28px, 3.6vw, 52px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; max-width: 24ch; color: #fff; }
.board-reset { justify-self: start; font: 500 14px/1.3 var(--font); color: var(--board-accent); text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere; }
.board-reset:hover, .board-reset:focus-visible { color: #d4bdfb; text-decoration: underline; }
.board-reset:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 640px) {
  .board-tile { width: 64px; height: 86px; } .board-face { font-size: 68px; }
  .board-title { font-size: 30px; max-width: none; }
  .board-reset { font-size: 13px; }
}

/* pun eyebrows over the plain tile titles */
.tile-titles { display: grid; gap: 2px; min-width: 0; }
.tile-eyebrow { letter-spacing: .12em; color: var(--hazard); }
/* the pun kickers (tiles, Storm watch, trial, bug mode, footer): one size, the Storm watch heading's */
.eyebrow.pun { font-size: 18px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.footer-signoff { margin: 0; font-size: 14px; color: #c79deb; }
.bugz-eyebrow { display: block; margin-bottom: 6px; font-family: var(--font); color: var(--bugz-text); }

/* ── Named storms: the latest nicknamed CVEs, in the incident board's family: its dark surface and purple glow, a
   band with the level in mono and a meter, the site's pixel bug on a level-coloured glow, the name in Anton. The
   glow deepens with the level; a superstorm glows hot pink. Red only marks exploited in the wild. ────────────────────── */
.storms { margin-bottom: 20px; }
.storms[hidden] { display: none; }
.storms-title { margin: 0; }
.storm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .storm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .storm-list { grid-template-columns: minmax(0, 1fr); } }
.storm-list li { display: flex; }
.storm { --glow: rgba(99,44,166,.30); --edge: var(--board-edge);
  flex: 1; display: grid; grid-template-rows: auto auto 1fr; padding: 0; overflow: hidden; text-align: left; font: inherit; cursor: pointer;
  color: var(--board-ink); border: 1px solid var(--edge); border-radius: 12px;
  background: radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--board-bg);
  box-shadow: 0 10px 26px rgba(12,10,15,.22); transition: transform .15s, box-shadow .15s, border-color .15s; }
.storm:hover { transform: translateY(-2px); border-color: var(--board-accent); box-shadow: 0 14px 32px rgba(12,10,15,.3), 0 0 24px var(--glow); }
.storm:focus-visible { outline: 3px solid var(--board-accent); outline-offset: 2px; }
.storm-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; background: rgba(22,15,36,.85);
  border-bottom: 1px solid var(--edge); color: var(--board-accent); font: 700 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.storm-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 6px; min-width: 0; }
/* the site's pixel beetle on a glow whose colour and strength follow the level (cool lavender up to hot pink) */
.storm-bug { --bug-glow: rgba(165,168,245,.28); --bug-ink: #b9bcf0; flex: none; position: relative; display: grid; place-items: center; width: 54px; height: 54px; }
.storm-bug::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, var(--bug-glow) 0, transparent 68%);
  animation: storm-glow 2.4s ease-in-out infinite; }
.storm-bug i { position: relative; width: 30px; height: 27px; background: var(--bug-ink);
  -webkit-mask: url(assets/bugz/beetle.svg) center / contain no-repeat; mask: url(assets/bugz/beetle.svg) center / contain no-repeat;
  filter: drop-shadow(0 0 6px var(--bug-glow)); }
@keyframes storm-glow { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .storm-bug::before { animation: none; opacity: 1; transform: none; } }
.storm-name { min-width: 0; font: 400 28px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; overflow-wrap: anywhere;
  text-shadow: 2px 0 rgba(255,59,48,.4), -2px 0 rgba(99,44,166,.6); }
.storm-body { display: grid; gap: 4px; align-content: start; padding: 6px 14px 14px; }
.storm-cve { font: 700 12px/1.3 var(--mono); color: var(--board-accent); overflow-wrap: anywhere; }
.storm-more { color: #8a7fa3; white-space: nowrap; }
.storm-landed { font-size: 13px; color: #c9bfdc; }
.storm-status { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: #ff6a5f; margin-top: 2px; }
.storm-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; }
@media (max-width: 640px) { .storm-name { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .storm, .storm:hover { transition: none; transform: none; } }

/* Real data loading: grey placeholders in each view's shape (showRealSkeleton) */
:root { --skel: #e9ecf2; --skel-hi: #f6f7fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --skel: #211f28; --skel-hi: #2b2834; } }
:root[data-theme="dark"] { --skel: #211f28; --skel-hi: #2b2834; }
.real-loading > .tile[hidden] { display: block; }
.real-loading > .tile > :not(.tile-head):not(.skel) { display: none; }
.skel { display: grid; gap: 12px; margin-top: 16px; }
.skel span, .skel-board { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--skel) 30%, var(--skel-hi) 50%, var(--skel) 70%) 0 0 / 300% 100%; animation: skel-shimmer 1.4s ease-in-out infinite; }
.skel-cards { grid-template-columns: repeat(4, 1fr); }
.skel-card { height: 150px; }
.skel-row { height: 52px; }
.skel-chart { height: 260px; }
.skel-board { height: 230px; margin: 16px 0 0; border-radius: 16px; }
@media (max-width: 900px) { .skel-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .skel-cards { grid-template-columns: 1fr; } .skel-card { height: 110px; } .skel-chart { height: 200px; } .skel-board { height: 180px; } }
@keyframes skel-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel span, .skel-board { animation: none; background: var(--skel); } }

/* ══ Design A: terminal ═════════════════════════════════════════════════════
   The page is dark by default (theme.js); light stays one toggle away. Near-black, Datadog purple as the one accent,
   alert red only for exploitation, monospace for small chrome. The hero is dark in both themes: the CVE curve as a
   glowing line, the headline, a typed data line, one call to action, and the incident board as its bottom strip. */
:root {
  --ht-bg: #08070b; --ht-ink: #f1eff6; --ht-muted: #b4aec4; --ht-axis: #9d97ae;
  --ht-line: #c2a8ff; --ht-glow: rgba(150,110,255,.6); --ht-fill: #8257e0; --ht-cta: #8257e0; --ht-cta-hover: #9468f0;
  /* cyberpunk accents for the hero's background and chrome only (never text): neon magenta, kept pink so it never
     reads as the exploitation red, and ultraviolet (--ht-hue2) for the blooms, pointer glow, ripple and curve start */
  --ht-magenta: #ff3dcb; --ht-hue2: #8a5cff;
  --ht-edge: rgba(194,168,255,.22); --ht-grid: rgba(255,255,255,.09); --ht-gridline: rgba(150,130,220,.085); --ht-panel: rgba(255,255,255,.035);
}

/* slim top bar: the hero's own near-black in both themes, so the two read as one pane at the top of the page; the
   hairline only shows once the page scrolls (html.is-scrolled, app.js "Hero") */
/* the bar stays near-black all the way down; its contents line up with the page column (.wrap, 1240px) */
.topbar { padding: 8px max(24px, calc((100% - 1240px) / 2 + 24px)); gap: 16px; min-height: 64px; background: var(--ht-bg); }
.topbar::after { background: var(--ht-edge); opacity: 0; transition: opacity .2s; }
.is-scrolled .topbar { background: rgba(8,7,11,.94); backdrop-filter: blur(8px); }
.is-scrolled .topbar::after { opacity: 1; }
@media (max-width: 1180px) { .topbar nav { background: var(--ht-bg); } }
.brand-mark { width: 42px; height: 42px; }
.brand-name > span:first-child { font-size: 27px; }
.byline-logo { height: 25px; width: auto; }
@media (pointer: fine) {
  .theme-toggle, .lookup-toggle, .bugz-toggle { width: 36px; height: 36px; }
  .topbar .nav-cta { padding: 6px 12px; }
}
@media (pointer: fine) and (min-width: 641px) { .lookup-toggle { width: auto; height: 36px; } }
html { scroll-padding-top: 72px; }

.hero-term {
  position: relative; isolation: isolate; overflow-x: clip; color: var(--ht-ink); padding: 18px 0 18px;
  /* the same faint noise as the page below, so the texture runs on across the fade */
  background: url(assets/noise.svg) 0 0 / 160px 160px, var(--ht-bg);
  /* the pane is dark in both themes: the tokens its popovers and tooltips read are the dark ones */
  --surface: #15131c; --surface-2: #1e1b28; --border: #3a3548; --border-strong: #524b63;
  --text: #ebe8f2; --muted: #b4aec4; --subtle: #9d97ae; --accent: #c2a8ff; --shadow-lg: 0 14px 36px rgba(0,0,0,.55);
}
/* dark: the page below uses ink cards, the hero keeps the terminal tints its popovers and chips read */
:root[data-theme="dark"] .hero-term {
  --ink: #d9c8f5; --paper: #15131c; --dd-purple: #8257e0; --dd-purple-700: #6d45c9;
  --dd-purple-100: #261f3a; --dd-purple-200: #3a2f58; --dd-purple-300: #9a7fe0; --ring: 0 0 0 3px rgba(194,168,255,.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-term {
    --ink: #d9c8f5; --paper: #15131c; --dd-purple: #8257e0; --dd-purple-700: #6d45c9;
    --dd-purple-100: #261f3a; --dd-purple-200: #3a2f58; --dd-purple-300: #9a7fe0; --ring: 0 0 0 3px rgba(194,168,255,.55);
  }
}
/* scanlines, faded in below the top bar so the seam stays invisible */
.hero-term::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 160px), transparent); }
/* the grid: two copies of the same lines, the second brighter and masked to a soft circle at --gx/--gy (eased toward
   the pointer in JS, faded by --go). The lines drift one cell diagonally on a slow loop (transform only). */
.ht-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --cell: 44px; --gx: 70%; --gy: 60%; --go: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 170px); mask-image: linear-gradient(transparent, #000 170px); }
.ht-fx > div { position: absolute; inset: 0; }
/* the grid lines thin out toward the bottom, so the hero dissolves into the page instead of stopping on a line */
.ht-fx-base { -webkit-mask-image: linear-gradient(#000 calc(100% - 200px), transparent); mask-image: linear-gradient(#000 calc(100% - 200px), transparent); }
/* colored light blooms at the edges and a faint second-hue-to-magenta duotone, under the grid */
.ht-fx::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 360px at 4% 100%, color-mix(in srgb, var(--ht-hue2) 16%, transparent), transparent 70%),
    radial-gradient(700px 420px at 98% 92%, rgba(255,61,203,.16), transparent 70%),
    radial-gradient(900px 420px at 62% 85%, rgba(130,87,224,.22), transparent 70%),
    linear-gradient(100deg, color-mix(in srgb, var(--ht-hue2) 5%, transparent), transparent 45%, rgba(255,61,203,.06)); }
.ht-fx i { position: absolute; inset: calc(-1 * var(--cell)) 0 0 calc(-1 * var(--cell)); will-change: transform;
  background: linear-gradient(var(--ht-gridline) 1px, transparent 1px) 0 0 / var(--cell) var(--cell),
              linear-gradient(90deg, var(--ht-gridline) 1px, transparent 1px) 0 0 / var(--cell) var(--cell);
  animation: ht-drift 26s linear infinite; }
.ht-fx-glow { opacity: var(--go); --ht-gridline: color-mix(in srgb, var(--ht-hue2) 50%, transparent); background: radial-gradient(240px 200px at var(--gx) var(--gy), rgba(255,61,203,.1), transparent 70%);
  -webkit-mask-image: radial-gradient(260px 220px at var(--gx) var(--gy), #000, transparent 70%);
  mask-image: radial-gradient(260px 220px at var(--gx) var(--gy), #000, transparent 70%); }
.ht-fx.ht-paused i { animation-play-state: paused; }
/* a click on the hero's background sends a ring of light across the grid: a bright copy of the lines masked to a ring
   whose radius (--r, a registered length so it can animate) grows while it fades */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --rc { syntax: "<color>"; inherits: false; initial-value: #8a5cff; }
.ht-ripple { --ht-gridline: var(--rc); --r: 0px; background: color-mix(in srgb, var(--rc) 12%, transparent);
  -webkit-mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--r) - 46px), #000 calc(var(--r) - 8px), transparent calc(var(--r) + 14px));
  mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--r) - 46px), #000 calc(var(--r) - 8px), transparent calc(var(--r) + 14px));
  animation: ht-ripple 1.1s cubic-bezier(.2, .6, .3, 1) forwards; }
/* the ring shifts hue as it spreads: the second hue, purple, magenta */
@keyframes ht-ripple { from { --r: 0px; --rc: var(--ht-hue2); opacity: 1; } 45% { --rc: #b48cff; opacity: .9; } to { --r: 640px; --rc: #ff3dcb; opacity: 0; } }
@keyframes ht-drift { to { transform: translate(var(--cell), var(--cell)); } }

.ht-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px 36px; align-items: stretch; }
.ht-copy { align-self: center; }
.ht-title { margin: 10px 0 12px; font: 700 clamp(38px, 3.7vw, 54px)/1 var(--display); text-transform: uppercase; letter-spacing: .005em; color: var(--ht-ink); }
.ht-title em { display: block; font-style: normal; color: var(--ht-line); text-shadow: -1.5px 0 color-mix(in srgb, var(--ht-hue2) 55%, transparent), 1.5px 0 rgba(255,61,203,.55), 0 0 24px var(--ht-glow); }
.ht-lede { margin: 0; max-width: 46ch; font: 400 16px/1.5 var(--font); color: rgba(255,255,255,.82); }
.ht-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.ht-cta { padding: 14px 34px; min-width: 240px; justify-content: center; background: var(--ht-cta); color: #fff; box-shadow: 0 0 0 1px rgba(194,168,255,.35), -8px 0 26px color-mix(in srgb, var(--ht-hue2) 25%, transparent), 8px 0 26px rgba(255,61,203,.3); }
.ht-cta:hover { background: var(--ht-cta-hover); transform: translateY(-1px); }
.ht-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: none; }

/* the curve panel: as tall as the copy beside it, the latest year's big numbers in its empty top-left corner */
.ht-curve { position: relative; display: flex; flex-direction: column; margin: 0; padding: 12px 14px 10px; border: 1px solid var(--ht-edge);
  border-radius: 12px; background: rgba(12,10,18,.74); min-width: 0; min-height: 300px; }
.ht-curve[hidden] { display: none; }
.ht-curve-head { display: flex; align-items: center; gap: 10px; font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-ink); }
.ht-plot { position: relative; flex: 1; display: flex; min-height: 0; margin-top: 6px; }
.ht-svg { display: block; flex: 1; width: 100%; min-height: 220px; overflow: visible; }
.ht-stats { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 44px; margin: 28px 0 0; }
.ht-stats[hidden], .ht-stat[hidden] { display: none; }
.ht-stat { margin: 0; display: grid; gap: 4px; align-content: start; }
.ht-delta { font: 400 13px/1.35 var(--font); color: var(--ht-muted); }
.ht-delta[hidden] { display: none; }
.ht-stat b { margin-bottom: 4px; font: 700 clamp(40px, 3.8vw, 56px)/1 var(--display); letter-spacing: .01em; color: var(--ht-ink); font-variant-numeric: tabular-nums; }
.ht-stat span { font: 500 13px/1.35 var(--font); color: var(--ht-ink); }
.ht-stat-kev b { color: var(--doom-red-soft); }
.ht-grid-lines line { stroke: var(--ht-grid); }
.ht-grid-lines text { fill: var(--ht-axis); font: 400 11px var(--mono); }
.ht-area-top { stop-color: var(--ht-fill); stop-opacity: .38; }
.ht-stroke-a { stop-color: var(--ht-hue2); } .ht-stroke-b { stop-color: var(--ht-line); } .ht-stroke-c { stop-color: var(--ht-magenta); }
.ht-area-bottom { stop-color: var(--ht-fill); stop-opacity: 0; }
.ht-line { fill: none; stroke: url(#ht-stroke); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--ht-glow)); }
.ht-dot { fill: var(--ht-bg); stroke: var(--ht-line); stroke-width: 2; pointer-events: none; }
.ht-dot-last { fill: var(--ht-magenta); stroke: #fff; filter: drop-shadow(0 0 8px rgba(255,61,203,.7)); }
.ht-hit { fill: transparent; cursor: pointer; outline: none; }
.ht-hit:hover, .ht-hit:focus { fill: rgba(194,168,255,.16); }
.ht-hit:focus-visible { stroke: #fff; stroke-width: 2; }
.ht-labels text { fill: var(--ht-ink); font: 700 12px var(--mono); pointer-events: none; }
.ht-labels .ht-hot { fill: var(--ht-line); }
.ht-curve > .tooltip { z-index: 3; }
.ht-anim .ht-line:not(.ht-tail) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ht-draw var(--ht-draw, 1s) cubic-bezier(.5, 0, .3, 1) forwards; }
.ht-anim .ht-tail, .ht-anim .ht-dots, .ht-anim .ht-labels, .ht-anim .ht-area { opacity: 0; animation: ht-fade .4s ease var(--ht-draw, 1s) forwards; }
@keyframes ht-draw { to { stroke-dashoffset: 0; } }
@keyframes ht-fade { to { opacity: 1; } }

/* the incident board as the hero's bottom row: the split-flap calendar, its title beside it, the slider on the right */
.hero-term .board { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin: 18px 0 0; padding: 14px 20px; border-radius: 8px;
  border: 1px solid var(--ht-edge); background: radial-gradient(ellipse at 0 50%, rgba(99,44,166,.45), transparent 55%), radial-gradient(ellipse at 100% 50%, color-mix(in srgb, var(--ht-hue2) 10%, transparent), transparent 45%), rgba(12,10,18,.74); box-shadow: none; overflow: visible; }
.hero-term .board[hidden] { display: none; }
.hero-term .board-digits { gap: 5px; }
.hero-term .board-tile { width: 56px; height: 76px; border-radius: 7px; }
.hero-term .board-face { font-size: 62px; }
.hero-term .board-words { display: grid; gap: 6px; min-width: 0; }
.hero-term .board-title { font: 700 clamp(24px, 2.3vw, 32px)/1.05 var(--display); max-width: none; text-shadow: none; }
.hero-term .board-reset { font-size: 13px; color: var(--ht-muted); }
.hero-term .board-reset:hover { color: var(--ht-ink); }

/* the strip above the data views (freshness) stays small */
.section-first { padding-top: 12px; }
.lead-strip { margin-bottom: 0; min-height: 0; }
.lead-strip:not(:has(> :not([hidden]):not(:empty))) { display: none; }
@media (min-width: 900px) {
  .lead-strip { justify-content: flex-end; margin-bottom: 14px; }
}

/* section kickers: the panel's one heading, in the text color; red is kept for exploitation */
.section-data .eyebrow, .section-data .tile-eyebrow { color: var(--text); letter-spacing: -.005em; }

@media (max-width: 900px) {
  .ht-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ht-curve { min-height: 0; }
  .ht-svg { flex: none; height: 170px; min-height: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 6px 12px; }
  .hero-term { padding: 8px 0 10px; }
  .ht-title { font-size: 36px; margin: 8px 0 10px; }
  .ht-lede { font-size: 15px; }
  .ht-actions { margin-top: 14px; gap: 10px; }
  .ht-curve { padding: 6px 0 0; }
  .ht-stats { flex-wrap: nowrap; gap: 16px; margin-top: 16px; }
  .ht-stat { flex: 1 1 0; min-width: 0; }
  .ht-stat b { font-size: 36px; }
  .ht-stat span { font-size: 12.5px; }
  .ht-delta { font-size: 12.5px; }
  .ht-svg { height: 110px; }
  .hero-term .board { flex-wrap: wrap; gap: 6px 12px; padding: 8px 8px 6px 12px; }
  .hero-term .board-tile { width: 42px; height: 58px; } .hero-term .board-face { font-size: 46px; }
  .hero-term .board-words { flex: 1 1 0; gap: 4px; }
  .hero-term .board-title { font-size: 20px; }
  .hero-term .board-reset { font-size: 12px; }
  .hero-term .board-pager { order: 5; flex-basis: 100%; justify-content: flex-end; margin: -4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-fx i { animation: none; }
  .ht-fx-glow { display: none; }
  .ht-anim .ht-line, .ht-anim .ht-tail, .ht-anim .ht-dots, .ht-anim .ht-labels, .ht-anim .ht-area { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .topbar::after { transition: none; }
}

/* dark: no purple text on purple chips; tinted chips carry near-white text and a visible edge */
:root[data-theme="dark"] :is(.vuln-nick, .cve-chip.chip-trend, .prompt-tool.any, .powered, .cve-row-icon) {
  color: var(--text); box-shadow: inset 0 0 0 1px var(--dd-purple-200); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.vuln-nick, .cve-chip.chip-trend, .prompt-tool.any, .powered, .cve-row-icon) {
    color: var(--text); box-shadow: inset 0 0 0 1px var(--dd-purple-200); }
}
/* dark: tooltips sit one step above the card they float over */
:root[data-theme="dark"] .tooltip { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tooltip { background: var(--surface-2); } }
/* the board's placeholder takes the board's slot and size in the hero, on the hero's dark surface in both themes */
.hero-term { --skel: rgba(255, 255, 255, .06); --skel-hi: rgba(255, 255, 255, .13); }
.hero-term .skel-board { grid-column: 1 / -1; height: 102px; margin: 0; border-radius: 12px; }
@media (max-width: 640px) { .hero-term .skel-board { height: 128px; } }

/* ══ Design B: the hero's backdrop through the page ════════════════════════════
   Dark: one fixed layer behind the whole page is the hero's own background (near-black base, grid, violet/magenta
   blooms at the hero's strength), so the hero and the body read as one surface. The hero keeps its drifting grid,
   cursor glow and ripple and fades them out at its foot; the layer is static, so scrolling never repaints it. Cards are
   opaque ink (tokens on :root above) with corner brackets instead of soft shadows. The violet family is the only neon;
   red stays for exploitation.
   Light: the hero eases into the page through dusk tones over a faint grid. */
:root {
  --ni-corners:
    linear-gradient(var(--ni-bracket) 0 0) 0 0 / 12px 1px, linear-gradient(var(--ni-bracket) 0 0) 0 0 / 1px 12px,
    linear-gradient(var(--ni-bracket) 0 0) 100% 0 / 12px 1px, linear-gradient(var(--ni-bracket) 0 0) 100% 0 / 1px 12px,
    linear-gradient(var(--ni-bracket) 0 0) 0 100% / 12px 1px, linear-gradient(var(--ni-bracket) 0 0) 0 100% / 1px 12px,
    linear-gradient(var(--ni-bracket) 0 0) 100% 100% / 12px 1px, linear-gradient(var(--ni-bracket) 0 0) 100% 100% / 1px 12px;
}
:root[data-theme="dark"] .section-data {
  --board-bg: #131217; --board-edge: #3a2f58; --board-ink: #f5f0ff; --board-accent: #c4b0ff;
}
:root[data-theme="dark"] .section-data.section-first { padding-top: 28px; }
/* the hero's own base gives way to the backdrop over its last 240px, while its drifting grid and blooms fade out */
:root[data-theme="dark"] .ht-fx {
  -webkit-mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
  mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
}
/* cards: square-ish ink frames with violet corner brackets, no drop shadow */
:root[data-theme="dark"] .tile { border-radius: 8px; box-shadow: none; background: var(--surface); }
/* text straight on the backdrop: a soft band of the base keeps the grid and blooms quiet there */
:root[data-theme="dark"] .seg { background: rgba(8,7,11,.6); border-color: var(--border); }

/* floating layers: one step up, a visible edge, square corners */
:root[data-theme="dark"] .tooltip { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text); }
:root[data-theme="dark"] .drawer { background: var(--surface); border-left: 1px solid var(--ni-bracket); }
:root[data-theme="dark"] .lookup { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(196,176,255,.12); }
:root[data-theme="dark"] .footer { background: rgba(8,7,11,.9); border-top: 1px solid var(--ni-hair); }
/* the trial band fades in and out of the backdrop instead of cutting across it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-data {
    --board-bg: #131217; --board-edge: #3a2f58; --board-ink: #f5f0ff; --board-accent: #c4b0ff;
  }
  :root:not([data-theme="light"]) .section-data.section-first { padding-top: 28px; }
  /* the hero's own base gives way to the backdrop over its last 240px, while its drifting grid and blooms fade out */
  :root:not([data-theme="light"]) .ht-fx {
    -webkit-mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
    mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
  }
  /* cards: square-ish ink frames with violet corner brackets, no drop shadow */
  :root:not([data-theme="light"]) .tile { border-radius: 8px; box-shadow: none; background: var(--surface); }
  /* text straight on the backdrop: a soft band of the base keeps the grid and blooms quiet there */
  :root:not([data-theme="light"]) .seg { background: rgba(8,7,11,.6); border-color: var(--border); }

  /* floating layers: one step up, a visible edge, square corners */
  :root:not([data-theme="light"]) .tooltip { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text); }
  :root:not([data-theme="light"]) .drawer { background: var(--surface); border-left: 1px solid var(--ni-bracket); }
  :root:not([data-theme="light"]) .lookup { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(196,176,255,.12); }
  :root:not([data-theme="light"]) .footer { background: rgba(8,7,11,.9); border-top: 1px solid var(--ni-hair); }
  /* the trial band fades in and out of the backdrop instead of cutting across it */
}
/* the hero's blooms and grid dissolve over its foot, so its last rows are the same near-black the dusk starts from */
:root[data-theme="light"] .ht-fx {
  -webkit-mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
  mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
}
:root[data-theme="light"] .section-first .lead-strip .sight-meta { color: #c9c4d8; border-color: rgba(255,255,255,.3); }
@media (prefers-color-scheme: light) {
  /* the hero's blooms and grid dissolve over its foot, so its last rows are the same near-black the dusk starts from */
  :root:not([data-theme="dark"]) .ht-fx {
    -webkit-mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
    mask-image: linear-gradient(transparent, #000 170px, #000 calc(100% - 260px), transparent);
  }
  :root:not([data-theme="dark"]) .section-first .lead-strip .sight-meta { color: #c9c4d8; border-color: rgba(255,255,255,.3); }
}

/* the hero's click ring carries on across the page (pageRipple): a fixed layer behind the content, a soft violet ring */
.bg-ripples { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-ripple { position: absolute; inset: 0; --r: 0px; --rc: #a98bff;
  -webkit-mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--r) - 46px), #000 calc(var(--r) - 8px), transparent calc(var(--r) + 14px));
  mask-image: radial-gradient(circle at var(--px) var(--py), transparent calc(var(--r) - 46px), #000 calc(var(--r) - 8px), transparent calc(var(--r) + 14px));
  background: color-mix(in srgb, var(--rc) 16%, transparent); }
/* no page grid, so the ring is a soft violet band in both themes */
.bg-ripple { background: color-mix(in srgb, var(--rc) 16%, transparent); }
@media (prefers-reduced-motion: reduce) { .bg-ripples { display: none; } }

/* the freshness line ("Data last updated") sits in the lead strip under the hero, on every screen size */

/* panel titles: the pun eyebrow is the panel's heading; a plain title under it is a quiet subtitle */
.tile-titles .eyebrow.pun, .storms-title { color: var(--text); }
.tile-titles h3 { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* narrow screens with only the call to action: no burger, the CTA stays in the bar */
@media (max-width: 1180px) {
  .topbar.nav-cta-only .nav-toggle { display: none; }
  .topbar.nav-cta-only .nav-cta-bar { display: inline-flex; order: 4; }
}
@media (max-width: 480px) { .topbar.nav-cta-only .nav-cta-bar { padding: 6px 10px; font-size: 13px; } }

/* the panel's Bits AI block, the main action: a header, the prompt in an inset with its copy button, then the button
   that copies it and opens Bits AI */
.cve-bits { display: grid; gap: 12px; margin: 6px 0 16px; padding: 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--dd-purple) 28%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--dd-purple) 10%, var(--surface)), var(--surface) 70%); }
.cve-bits-prompt { position: relative; padding: 12px 52px 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.cve-bits-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.cve-bits-prompt > .copy-icon { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; }
.cve-bits-go { width: 100%; justify-content: center; }

.cve-check .cve-check-go { width: 100%; justify-content: center; }

/* "Other ways to check": one collapsed row under Bits holding Code Security and the DDSQL query, no extra rules */
.cve-check > .cve-row-more { border-top: 0; }
.cve-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 4px; min-width: 0; }
.cve-more > * { min-width: 0; }
.cve-more .ddsql-pre { overflow-x: auto; }
.cve-more-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text); }

/* the bridges between the data section's tiles (sightings.storyBridges): a dashed connector from the tile above to
   the one below, a magenta diamond on it, the line in the display face (white, "//" in magenta) and a thin magenta
   rule running right. The backdrop is deep purple in both themes, so the text is always light. */
.story-bridge { position: relative; display: flex; align-items: center; gap: 20px; margin: 0 0 0 24px; padding: 28px 0 28px 28px;
  border-left: 1px dashed rgba(201,182,255,.45); }
/* no bridge into a tile that isn't showing (its data isn't exported, or a flag hides it) */
.story-bridge:has(+ .tile[hidden]) { display: none; }
#real-view > .story-bridge + .tile { margin-top: 0; }
.story-bridge::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -6px;
  background: #ec4899; transform: rotate(45deg); box-shadow: 0 0 14px #ec4899; }
.story-bridge-chip { display: grid; gap: 0; margin: 0; font: 700 30px/1.05 var(--display); text-transform: uppercase; color: #fff;
  text-shadow: 0 0 22px rgba(168,120,255,.55); }
.story-bridge-line { margin: 0; }
.story-bridge-prompt { color: #ec4899; }
.story-bridge-rule { flex: 1; min-width: 24px; height: 1px; background: linear-gradient(90deg, rgba(236,72,153,.8), rgba(168,120,255,0)); }
@media (max-width: 600px) { .story-bridge { margin-left: 12px; padding: 20px 0 20px 20px; gap: 12px; } .story-bridge-chip { font-size: 22px; } }

/* Feed rows (both tabs): one bold thing per row, the vulnerability name, and the red "Exploited" chip as the loudest
   mark after it. Dates, prevalence, surface tags and the Details link step down to regular/medium. */
.story-landed .ev-main b { font-weight: 600; }
.story-landed .ev-when b, #real-landed .ev-when time { font-weight: 400; color: var(--muted); }
.story-landed .ev-prev .prev-line b { font-weight: 500; }
.story-landed .prev-badge, .story-landed .prev-none .prev-word, .story-landed .prev-unmeasured .prev-word { font-weight: 400; }
.story-landed .ev-tag:not(.ev-news) { font-weight: 500; }
.story-landed .ev-go { font-weight: 500; }
.story-landed .ev-share { font-size: 17px; font-weight: 500; }

/* ── Failure page (app.js "Failure page"): the data can't be shown ─────────────────────────────────────────────────
   A dark terminal card in both themes, like the hero. Full height on real-only stages; inside the Real tab on localhost. */
.fail-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 56px 16px; background: #08070b;
  background-image: linear-gradient(rgba(138, 92, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 92, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px; }
.fail-page[hidden] { display: none; }
/* 404.html: the card is the whole page, with no top bar above it */
.fail-page.fail-page-full { min-height: 100vh; }
.fail-card { box-sizing: border-box; width: 100%; max-width: 620px; padding: 36px 32px 28px; border-radius: 14px; color: #ebe8f2;
  background: #121019; border: 1px solid rgba(196, 176, 255, .22); box-shadow: 0 0 0 1px rgba(8, 7, 11, .6), 0 24px 64px rgba(99, 44, 166, .28); }
.fail-card .fail-eyebrow { margin: 0 0 14px; color: #ff3dcb; }
.fail-title { margin: 0; font: 700 clamp(34px, 6vw, 52px)/1.02 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #f5f2ff; }
.fail-body { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: #c9c4d8; }
.fail-hint { margin: 8px 0 0; color: #a99fd0; }
.fail-retry { margin-top: 24px; }
.fail-details { margin-top: 22px; border-top: 1px solid rgba(196, 176, 255, .16); padding-top: 14px; font-size: 13px; color: #a99fd0; }
.fail-details summary { cursor: pointer; }
.fail-details summary:focus-visible { outline: 2px solid #c4b0ff; outline-offset: 3px; border-radius: 3px; }
.fail-log { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #08070b; color: #d9cfff; font: 12.5px/1.6 var(--mono);
  white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .fail-card { padding: 28px 20px 22px; } .fail-page { padding: 32px 16px; } }
/* the beetle on its back beside the text: its two walking frames swap (legs flailing) while it rocks on its shell */
.fail-card.has-bug { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; align-items: start; }
.fail-bug { position: relative; width: 150px; height: 170px; margin-top: 6px; color: #ff3dcb; }
.fail-bug-body { position: absolute; left: 10px; top: 50px; width: 130px; height: 90px; transform-origin: 50% 100%;
  animation: fail-rock 1.3s ease-in-out infinite alternate; }
.fail-bug-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 61, 203, .55)); }
.fail-bug-frame .px-o { fill: #ffd0f1; }
.fail-bug-frame.f1 { animation: fail-flail .36s steps(1) infinite; }
.fail-bug-frame.f0 { animation: fail-flail .36s steps(1) infinite reverse; }
.fail-bug-ground { position: absolute; left: 0; right: 0; top: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(196, 176, 255, .5), transparent); }
.fail-bug-note { position: absolute; left: 4px; top: 146px; width: 160px; font: 600 13px/1.2 var(--hand); color: #c4b0ff;
  transform: rotate(-4deg); white-space: nowrap; }
@keyframes fail-rock { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes fail-flail { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fail-bug-body, .fail-bug-frame.f0 { animation: none; }
  .fail-bug-frame.f1 { animation: none; opacity: 0; }
}
@media (max-width: 600px) {
  .fail-card.has-bug { grid-template-columns: 1fr; }
  .fail-bug { width: 120px; height: 140px; margin: 0 auto; transform: scale(.82); transform-origin: 50% 0; }
}

/* ══ Two typefaces, one glow ═════════════════════════════════════════════════════
   Noto Sans for text, the display face for headlines, big numbers, storm names and the story bridges, mono for
   CVE ids, code, the hero's terminal line and the pun eyebrows. Glow only in the hero and on the flip counter's digits. */
/* CVE ids: monospace with tabular figures, in both themes */
:is(.ev-id, .cve-id, .storm-cve) { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* top bar: the icon buttons are quiet (no outline ring); hover gives them a faint fill */
.topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle) { border-color: transparent; box-shadow: none; }
.topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle):hover { background: rgba(255,255,255,.08); }

/* Patch me if you can: one heading with the controls on its right (the page's usual segmented controls), the sort
   note under it */
.landed-controls { gap: 6px 16px; }
#real-landed .sort-note { margin: -6px 0 12px; font-size: 13px; }
/* each row: the name, then one plain line of facts (id · severity · where); exploitation is a tinted pill with a dot */
#real-landed .ev-where-label { display: none; }
#real-landed .ev-meta .ev-tag:not(.ev-news) { padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; font-weight: 400; letter-spacing: 0; color: inherit; }
#real-landed .ev-meta .ev-tag:not(.ev-news)::before { content: "·"; margin-right: 6px; }
#real-landed .ev-meta .ev-tag.ev-news { border: 0; padding: 1px 7px; font-weight: 500; letter-spacing: 0; background: color-mix(in srgb, var(--dd-purple) 12%, var(--surface)); color: var(--accent); }
.ev-chip { gap: 6px; padding: 1px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; }
.ev-chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── The vulnerability panel on the DRUIDS grid: 13px body, 28px controls, 4px radii on controls and pills, 8px on
   cards. The title wraps in full; one pill style (filled red for exploited, tinted for the rest); the facts are three
   plain stat blocks; one Bits AI card; a smaller timeline; links underline on hover only. ─────────────────────── */
.drawer-cve .drawer-head { padding: 20px 24px 16px; }
.cve-idline { font: 500 12px/1.3 var(--font); color: var(--muted); }
.cve-idline .cve-id { font-size: 12px; }
.drawer-cve .drawer-head h2, .lookup-detail-mode .lookup-head h2 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.drawer-cve .head-actions, .lookup .head-actions { gap: 2px; }
:is(.drawer, .lookup) .drawer-close { width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 20px; }
:is(.drawer, .lookup) .drawer-close:hover { background: var(--surface-2); color: var(--text); }
@media (pointer: coarse) { :is(.drawer, .lookup) .drawer-close { width: 44px; height: 44px; } }
.cve-chips { gap: 4px; margin-top: 10px; }
.cve-chip { min-height: 22px; padding: 1px 8px; border: 0; border-radius: 4px; font-size: 12px; font-weight: 600; }
.cve-chip.chip-kev { background: var(--danger); color: #fff; }
.cve-chip.sev-critical { background: var(--danger-bg); color: var(--danger); }
.cve-chip.sev-high { background: var(--warning-bg); color: var(--warning); }
.cve-chip.chip-trend { background: color-mix(in srgb, var(--dd-purple) 12%, var(--surface)); color: var(--cve-accent); box-shadow: none; }
:root[data-theme="dark"] .cve-chip.chip-trend { color: var(--text); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cve-chip.chip-trend { color: var(--text); box-shadow: none; } }
.cve-panel { gap: 20px; font-size: 13px; line-height: 1.5; }
.cve-panel .panel-sub, :is(.drawer, .lookup) .cve-panel .panel-sub { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.cve-facts { gap: 32px; padding-bottom: 18px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
.cve-facts > div { flex: 0 1 auto; padding: 0; background: none; }
.cve-facts dt { font-size: 12px; }
.cve-facts dd { margin-top: 2px; font-size: 18px; font-weight: 600; }
.cve-research { padding: 14px 16px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--dd-purple) 7%, var(--surface)); }
.cve-research .btn, .cve-check .btn { min-height: 28px; padding: 5px 12px; border-radius: 4px; font-size: 13px; }
.cve-panel a:not(.btn) { text-decoration: none; }
.cve-panel a:not(.btn):hover, .cve-panel a:not(.btn):focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* timeline: 8px dots on a 1px line */
.vtl-ev, .vtl-end { grid-template-columns: 14px minmax(0, 1fr); gap: 8px; padding-bottom: 12px; }
.vtl-ev:not(:last-child)::before { left: 6px; top: 12px; width: 1px; background: var(--border); }
.vtl-pending .vtl-ev:nth-last-child(2)::before { border-left-width: 1px; border-left-color: var(--border); }
.vtl-dot { width: 8px; height: 8px; margin: 5px 0 0 3px; }
.vtl-exploited .vtl-dot { box-shadow: none; }
.vtl-cap { margin-left: 2px; }
.vtl-open .vtl-cap { width: 8px; height: 8px; margin: 5px 0 0 3px; border-width: 1px; }
.vtl-head b, .vtl-end .vtl-body b { font-size: 13px; font-weight: 600; }
.vtl-head time, .vtl-body small { font-size: 12px; }
/* prevalence: a card when it's measured, a small inline note when it isn't */
.cve-prev { padding: 14px 16px; border-radius: 8px; }
.cve-prev-level { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.cve-prev-top { font-size: 13px; }
.cve-prev.cve-prev-unknown { padding: 0; background: none; }
.cve-prev-unknown .cve-prev-line { font-size: 13px; color: var(--muted); }
.cve-prev-unknown .cve-prev-line b { font-weight: 400; color: inherit; }
/* Check your environment: one card (title, the prompt as a code-style block with its copy button, one button), then
   "Other ways to check" as a quiet row under it */
.cve-check { padding: 0; border: 0; border-radius: 0; }
.cve-bits { gap: 12px; margin: 0 0 6px; padding: 16px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--dd-purple) 18%, var(--border));
  background: color-mix(in srgb, var(--dd-purple) 5%, var(--surface)); }
.cve-bits .panel-sub { margin: 0; }
.cve-bits-prompt { padding: 10px 44px 10px 12px; border-radius: 4px; background: var(--surface); }
.cve-bits-text { font-size: 13px; line-height: 1.5; }
.cve-bits-prompt > .copy-icon { top: 6px; right: 6px; width: 28px; height: 28px; }
.cve-check .cve-bits-go { min-height: 32px; }
.cve-row > summary { min-height: 40px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cve-row-icon { display: none; }
/* references: plain links */
.cve-refs-list { gap: 6px 18px; }
.cve-ref, .cve-ref:hover { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; }
@media (pointer: coarse) { .cve-ref { min-height: 32px; } }
@media (max-width: 640px) { .cve-bits, .cve-prev { padding: 14px; } .cve-prev.cve-prev-unknown { padding: 0; } .cve-check { padding: 0; } }
/* a nickname chip inside an id keeps the text face */
:is(.ev-id, .cve-id, .storm-cve) .vuln-nick { font-family: var(--font); font-weight: 600; }

/* ══ The page backdrop (both themes): one continuous deep purple page under white (light) or ink (dark) cards.
   Near-black at the top, deep violet further down, with no grid: the 44px grid stays in the hero and thins out at its
   foot. The hero keeps its own base, blooms, drifting grid, pointer glow and ripple, and fades into the backdrop over
   its last 240px; the page ripple carries on below as a soft violet ring. ═════════════════════════════════════════════════════ */
:root { --ht-bg: #0a0414; }
body { background: linear-gradient(#0a0414 0, #1a0d36 720px, #2a1259 1600px, #10061f 2500px, #2a1259 3400px, #07030f 100%) #150a2b; }
.section-data, .section-data.section-first { background: transparent; }
.hero-term { background: linear-gradient(var(--ht-bg) calc(100% - 240px), color-mix(in srgb, var(--ht-bg) 0%, transparent)); }
.section-trial { background: linear-gradient(180deg, transparent, rgba(59,26,120,.62) 28%, rgba(59,26,120,.62) 72%, transparent); }

/* ── Top bar: 64px, the logo and Powered by Datadog on the left; About, the data date as plain text, three
   quiet icon buttons (search, bug mode, theme: 28px, borderless, muted) and a small yellow Try Datadog on the right ── */
.topbar { min-height: 64px; padding-top: 6px; padding-bottom: 6px; gap: 14px; background: rgba(10,4,20,.85); backdrop-filter: blur(8px); }
.is-scrolled .topbar { background: rgba(10,4,20,.92); }
.topbar::after, .is-scrolled .topbar::after { opacity: 1; background: rgba(168,120,255,.25); }
.brand-mark { width: 44px; height: 44px; }
.brand-name > span:first-child { font-size: 30px; }
.byline-logo { height: 27px; }
.topbar nav a { font-size: 13px; font-weight: 500; opacity: 1; color: #fff; }
.topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle) { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; color: rgba(255,255,255,.65); }
.topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle):hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle) svg { width: 17px; height: 17px; }
.topbar .lookup-toggle .lookup-kbd:not(:empty) { display: none; }
.topbar .bugz-toggle svg, .topbar .bugz-toggle img { width: 18px; height: 14px; }
.topbar .nav-cta, .topbar .nav-cta-bar { min-height: 28px; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #1c2b34 !important; background: #ffc700; }
.topbar .nav-cta:hover { background: #ffd84d; }
@media (pointer: fine) and (min-width: 641px) { .topbar .lookup-toggle { width: 28px; padding: 0; border-radius: 4px; } }
@media (pointer: coarse) { .topbar :is(.theme-toggle, .lookup-toggle, .bugz-toggle) { width: 44px; height: 44px; } }
@media (min-width: 1181px) {
  .topbar nav { gap: 20px; }
  /* right side: the icon buttons, then About, then Try Datadog */
  .topbar nav { order: 2; margin-left: 12px; }
  .topbar :is(.lookup-toggle, .bugz-toggle) { order: 1; }
  .topbar .lookup-toggle { margin-left: auto; }
  .topbar .nav-cta-bar { order: 3; }
}
html { scroll-padding-top: 72px; }

/* the hero's big numbers (kept from the redesign): the display face at 48px, a plain label and a lavender same-day change */
.ht-stat b { font-size: clamp(40px, 3.4vw, 48px); letter-spacing: 0; }
.ht-delta { color: #c9b6ff; }
.board-face { font-weight: 700; }

/* big numbers in the data views take the display face, like the hero's */
.cve-stat b { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.tile { border-radius: 8px; }

/* ── The vulnerability panel, as in the standalone mockup: a 480px sheet with 24px padding and one flow (no rule
   under the header), DRUIDS text colors, 20px pills, 20px stat values with a quiet "/ 10", a 9px-dot timeline, the
   Bits AI card on the indigo AI background with the prompt in mono, and the references as a plain row of links ── */
:root { --pn-text: rgba(28,43,52,.98); --pn-muted: rgba(28,43,52,.68); --pn-icon: rgba(28,43,52,.66); --pn-border: #e2e5ed;
  --pn-red: #eb364b; --pn-red-bg: #fdebed; --pn-red-ink: #922c35; --pn-red-text: #bc2b3c; --pn-purple: #632ca6; --pn-purple-bg: #f2ecfc; --pn-purple-ink: #451481;
  --pn-amber: #f99d02; --pn-ai-bg: #f0f2ff; }
:root[data-theme="dark"] { --pn-text: var(--text); --pn-muted: var(--muted); --pn-icon: var(--muted); --pn-border: var(--border);
  --pn-red-bg: #3a1c26; --pn-red-ink: #ff8a96; --pn-red-text: #ff6b7a; --pn-purple: #9d7cf0; --pn-purple-bg: #2a2242; --pn-purple-ink: #d8c6ff; --pn-ai-bg: #1d1b33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pn-text: var(--text); --pn-muted: var(--muted); --pn-icon: var(--muted); --pn-border: var(--border);
  --pn-red-bg: #3a1c26; --pn-red-ink: #ff8a96; --pn-red-text: #ff6b7a; --pn-purple: #9d7cf0; --pn-purple-bg: #2a2242; --pn-purple-ink: #d8c6ff; --pn-ai-bg: #1d1b33; } }
.drawer.drawer-cve { width: min(100vw, 480px); color: var(--pn-text); }
.drawer-cve .drawer-head { padding: 24px 24px 0; border-bottom: 0; }
.drawer-cve .drawer-body { padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); }
:is(.drawer-cve, .lookup-detail-mode) .cve-idline { font: 400 12px/1.3 var(--font); color: var(--pn-muted); }
:is(.drawer-cve, .lookup-detail-mode) .cve-idline .cve-id { font-size: 12px; color: var(--pn-muted); }
.drawer-cve .drawer-head h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--pn-text); }
.drawer-cve .cve-chips { gap: 6px; margin-top: 12px; }
.cve-chip { min-height: 20px; height: 20px; padding: 0 8px; font-size: 13px; font-weight: 600; border-radius: 4px; }
.cve-chip.chip-kev { background: var(--pn-red); color: #fff; }
.cve-chip.sev-critical { background: var(--pn-red-bg); color: var(--pn-red-ink); }
.cve-chip.chip-trend, :root[data-theme="dark"] .cve-chip.chip-trend { background: var(--pn-purple-bg); color: var(--pn-purple-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cve-chip.chip-trend { background: var(--pn-purple-bg); color: var(--pn-purple-ink); } }
:is(.drawer, .lookup) .drawer-close { color: var(--pn-icon); font-size: 20px; }
.drawer-cve .cve-panel { gap: 0; color: var(--pn-text); }
.drawer-cve .cve-panel > * + * { margin-top: 24px; }
.cve-facts { gap: 32px; margin: 0; padding-bottom: 20px; border-bottom-color: var(--pn-border); }
.cve-facts dt { font-size: 13px; color: var(--pn-muted); }
.cve-facts dd { margin: 0; font-size: 20px; font-weight: 600; color: var(--pn-text); }
.cve-fact-unit { font-size: 13px; font-weight: 400; color: var(--pn-muted); }
.drawer-cve .cve-panel .panel-sub, .lookup .cve-panel .panel-sub { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--pn-text); }
/* timeline: 9px dots on a 1px line, the date on the right */
.vtl-ev, .vtl-end { grid-template-columns: 9px minmax(0, 1fr); gap: 11px; padding-bottom: 12px; }
.vtl-ev:not(:last-child)::before { left: 4px; top: 10px; width: 1px; background: var(--pn-border); }
.vtl-pending .vtl-ev:nth-last-child(2)::before { border-left-color: var(--pn-border); }
.vtl-dot { width: 9px; height: 9px; margin: 4px 0 0; background: var(--pn-purple); }
.vtl-exploit .vtl-dot { background: var(--pn-amber); }
.vtl-exploited .vtl-dot { background: var(--pn-red); }
.vtl-exploited .vtl-head b { color: var(--pn-red-text); }
.vtl-cap { margin: 8px 0 0; }
.vtl-open .vtl-cap { width: 9px; height: 9px; margin: 4px 0 0; }
.vtl-head b, .vtl-end .vtl-body b { font-size: 13px; font-weight: 600; color: var(--pn-text); }
.vtl-head time, .vtl-body small { font-size: 13px; color: var(--pn-muted); }
.vtl-body small a { font-weight: 400; }
.cve-prev-unknown .cve-prev-line { color: var(--pn-muted); }
/* Bits AI: one card on the AI background, the prompt in mono in a white inset, one 28px button */
.cve-bits { gap: 0; padding: 16px; border: 0; border-radius: 8px; background: var(--pn-ai-bg); }
.cve-bits .panel-sub { margin: 0 0 4px !important; }
.cve-bits-prompt { margin: 8px 0 12px; padding: 10px 40px 10px 10px; border: 1px solid var(--pn-border); border-radius: 4px; background: var(--surface); }
.cve-bits-text { font: 400 12px/1.5 var(--mono); color: var(--pn-text); }
.cve-check .cve-bits-go { min-height: 28px; height: 28px; padding: 0 12px; font-size: 13px; background: var(--dd-purple); border-color: var(--dd-purple); color: #fff; }
.cve-check > .cve-row-more { margin-top: 12px; }
.cve-row > summary { min-height: 36px; color: var(--pn-muted); font-weight: 400; }
/* references: a plain row of links, its heading kept for screen readers */
.cve-refs .panel-sub { margin: 0 0 8px; font-size: 15px; }
.drawer-cve .cve-panel > .cve-refs { margin-top: 12px; }
.cve-refs-list { gap: 6px 16px; }
.cve-ref, .cve-ref:hover { font-weight: 600; color: var(--pn-purple); background: none; }
@media (max-width: 640px) { .drawer-cve .drawer-head { padding: 16px 16px 0; } .drawer-cve .drawer-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); } }

/* the headline's first line keeps its own casing (CVEs); the accent line is uppercase */
.ht-title { text-transform: none; margin-top: 0; }
.ht-title em { text-transform: uppercase; }

/* pun eyebrows (Storm watch, Patch me if you can, the tiles, trial, footer): development's treatment, a 16px bold
   uppercase label in mono, tracked, with the pixel beetle before it; over a panel it takes the accent and a short
   violet-to-magenta bar under it */
:root { --st-a: #632ca6; --st-b: #b4307a; }
:root[data-theme="dark"] { --st-a: #c4b0ff; --st-b: #ff7ad9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --st-a: #c4b0ff; --st-b: #ff7ad9; } }
.eyebrow.pun { font: 700 16px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-data .eyebrow.pun { letter-spacing: .1em; }
.eyebrow.pun::before { content: ""; display: inline-block; width: 15px; height: 14px; margin-right: 7px; vertical-align: -1px;
  background: currentColor; -webkit-mask: url(assets/bugz/beetle.svg) center / contain no-repeat; mask: url(assets/bugz/beetle.svg) center / contain no-repeat; }
.tile-titles .eyebrow.pun, .storms-title, .section-data .tile-titles .eyebrow.pun, .section-data .storms-title { position: relative; padding-bottom: 7px; color: var(--st-a); }
.tile-titles .eyebrow.pun::after, .storms-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--st-a), var(--st-b)); }
#real-landed .sort-note { margin-top: 4px; }
@media (max-width: 640px) { .brand-mark { width: 38px; height: 38px; } .brand-name > span:first-child { font-size: 26px; } }

/* the Bits AI card's head: the Bits mark in its tinted square, then the title */
.cve-bits-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cve-bits-head .panel-sub { margin: 0 !important; }
.cve-bits-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--dd-purple) 16%, var(--surface)); }
/* Other ways to check: a secondary card whose summary row has an icon, a label and a chevron; open, it lays out the
   Code Security link and the DDSQL query with even spacing */
.cve-check > .cve-row-more { margin-top: 12px; padding: 0 16px; border: 1px solid var(--pn-border); border-radius: 8px; background: var(--surface); }
.cve-row-more > summary { min-height: 48px; gap: 10px; font-size: 15px; font-weight: 600; color: var(--pn-text); }
.cve-row-more > summary .cve-row-icon { display: inline-grid; width: 28px; height: 28px; border-radius: 6px; background: var(--pn-purple-bg); color: var(--pn-purple); }
.cve-row-more > summary .cve-row-icon svg { width: 16px; height: 16px; }
.cve-row-more[open] > summary { border-bottom: 1px solid var(--pn-border); margin-bottom: 14px; }
.cve-more { gap: 18px; padding: 0 0 16px; }
.cve-more .cve-check-go { width: auto; justify-self: start; }
.cve-more-title { font-size: 15px; }

/* ── Content type, one step up: page prose 16px, table rows and panel body 15px, small labels 12-13px ── */
.real-lede, #real-landed .sort-note { font-size: 15px; }
.story-landed .landed-head { font-size: 13px; }
.story-landed .ev-main b { font-size: 16px; }
.story-landed .ev-meta { font-size: 14px; }
#real-landed .ev-when time { font-size: 15px; }
#real-landed .ev-lists, .ev-when small { font-size: 13px; }
.ev-chip { font-size: 13.5px; }
.prev-badge { font-size: 15px; }
.small-print, .lag-intro p.small-print { font-size: 14px; }
.legend { font-size: 14px; }
.ht-stat span, .ht-delta { font-size: 14px; }
/* the side panel: 15px body */
.drawer-cve .drawer-head h2 { font-size: 20px; }
:is(.drawer-cve, .lookup-detail-mode) .cve-idline, :is(.drawer-cve, .lookup-detail-mode) .cve-idline .cve-id { font-size: 13px; }
.cve-chip { height: 24px; min-height: 24px; font-size: 13.5px; }
.cve-panel { font-size: 15px; }
.drawer-cve .cve-panel .panel-sub, .lookup .cve-panel .panel-sub { font-size: 15px; }
.cve-facts dt { font-size: 14px; }
.cve-facts dd { font-size: 22px; }
.cve-fact-unit { font-size: 14px; }
.vtl-head b, .vtl-end .vtl-body b { font-size: 15px; }
.vtl-head time, .vtl-body small { font-size: 14px; }
.cve-prev-top, .cve-prev-unknown .cve-prev-line { font-size: 15px; }
.cve-prev-row small { font-size: 13px; }
.cve-bits-text { font-size: 13.5px; }
.cve-check .cve-bits-go { min-height: 32px; height: 32px; font-size: 14px; }
.cve-ref, .cve-ref:hover { font-size: 15px; }
.cve-research .btn, .cve-check .btn { font-size: 14px; min-height: 32px; }
@media (max-width: 640px) {
  .story-landed .ev-main b { font-size: 15px; }
  .story-landed .ev-meta { font-size: 13px; }
  .drawer-cve .drawer-head h2 { font-size: 18px; }
  .cve-facts { gap: 20px; }
  .cve-facts dd { font-size: 19px; }
}
.drawer.drawer-cve { width: min(100vw, max(600px, min(680px, 44vw))); }
.cve-facts { gap: 14px 28px; }

/* "Meet mitigeddon.": a crisp lavender-to-pink gradient fill with a soft, wide halo behind it (no offset copies) */
.ht-title em { width: fit-content; background: linear-gradient(90deg, #c4b5ff, #e89cff); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(200,130,255,.55)); }

/* the nickname chip and the CVE id in a panel's id line: a flex row with a real gap */
.cve-idline .cve-id { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.cve-idline .cve-id > .vuln-nick { margin: 0; }
.story-landed .ev-main b > .vuln-nick { margin-right: 8px; }

/* Other ways to check, open: two option rows on the summary's left edge (icon, title, one line, actions on the right;
   under the text on narrow panels), then the query as a compact wrapping code block with a visible copy button */
.cve-more { gap: 16px; padding: 0 0 16px; }
.cve-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.cve-opt-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--pn-purple-bg); color: var(--pn-purple); }
.cve-opt-icon svg { width: 16px; height: 16px; }
.cve-opt-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--pn-text); }
.cve-opt-line { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--pn-muted); }
.cve-opt-docs { font-weight: 500; color: var(--pn-purple); }
.cve-opt-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cve-opt-acts .btn { min-height: 30px; padding: 4px 12px; border-radius: 4px; font-size: 14px; white-space: nowrap; }
@container (max-width: 560px) {
  .cve-opt { grid-template-columns: 28px minmax(0, 1fr); }
  .cve-opt-acts { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
}
.cve-opt-query { position: relative; margin: -4px 0 0 40px; border-radius: 6px; background: var(--dd-purple-900); }
/* the whole query, one line per line (short lines in site.yaml); a long literal scrolls sideways on a thin themed bar */
:is(.drawer, .lookup) .cve-opt-query .ddsql-pre { margin: 0; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 12px 52px 12px 14px;
  border: 0; border-radius: 6px; background: transparent; white-space: pre; overflow-wrap: normal; font: 400 13px/1.55 var(--mono); color: #e9e2fb;
  scrollbar-width: thin; scrollbar-color: rgba(201,182,255,.35) transparent; }
.cve-opt-query .ddsql-pre::-webkit-scrollbar { height: 6px; }
.cve-opt-query .ddsql-pre::-webkit-scrollbar-track { background: transparent; }
.cve-opt-query .ddsql-pre::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(201,182,255,.35); }
/* the copy button: inside the block, 8px from its top right, never under the scroller's edge */
.cve-opt-query > .copy-icon { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(31,13,63,.9); color: #fff; }
.cve-opt-query > .copy-icon svg { width: 16px; height: 16px; }
.cve-opt-query > .copy-icon:hover { background: #3a2470; }
.cve-opt-query > .copy-icon.copied { color: #4ade80; border-color: currentColor; }
@media (max-width: 640px) { .cve-opt-query { margin-left: 0; } }

/* Storm watch: development's cards (board-style ink cards with a level-coloured corner glow, the beetle on its glow,
   a tinted level strip; corner brackets in dark), theme overrides as on development */
:root[data-theme="dark"] .storm { border-radius: 4px; box-shadow: none; background: var(--ni-corners), radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--board-bg); background-repeat: no-repeat; }
:root[data-theme="dark"] .storm:hover { box-shadow: 0 0 22px var(--glow); }
:root[data-theme="dark"] .storm-cat { background: rgba(8,7,11,.55); }
:root[data-theme="dark"] .storm-name { text-shadow: 0 0 18px rgba(196,176,255,.28); }
:root[data-theme="dark"] .storm-more { color: var(--subtle); }
:root[data-theme="dark"] .storm-landed { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .storm { border-radius: 4px; box-shadow: none; background: var(--ni-corners), radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--board-bg); background-repeat: no-repeat; }
  :root:not([data-theme="light"]) .storm:hover { box-shadow: 0 0 22px var(--glow); }
  :root:not([data-theme="light"]) .storm-cat { background: rgba(8,7,11,.55); }
  :root:not([data-theme="light"]) .storm-name { text-shadow: 0 0 18px rgba(196,176,255,.28); }
  :root:not([data-theme="light"]) .storm-more { color: var(--subtle); }
  :root:not([data-theme="light"]) .storm-landed { color: var(--muted); }
}
:root[data-theme="light"] .storm { --lvl: #8b72e0; --glow: color-mix(in srgb, var(--lvl) 9%, transparent); --edge: var(--border); color: var(--text);
  background: radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--surface); box-shadow: var(--shadow-sm); }
:root[data-theme="light"] .storm:hover { border-color: var(--lvl); box-shadow: 0 8px 20px rgba(31,13,63,.1); }
:root[data-theme="light"] .storm:focus-visible { outline-color: var(--lvl); }
:root[data-theme="light"] .storm-cat { background: color-mix(in srgb, var(--lvl) 12%, var(--surface)); color: var(--accent); }
:root[data-theme="light"] .storm-bug { --bug-ink: var(--lvl); --bug-glow: color-mix(in srgb, var(--lvl) 16%, transparent); }
:root[data-theme="light"] .storm-bug i { filter: none; }
:root[data-theme="light"] .storm-name { color: var(--ink); text-shadow: none; }
:root[data-theme="light"] .storm-cve { color: var(--accent); }
:root[data-theme="light"] .storm-more { color: var(--subtle); }
:root[data-theme="light"] .storm-landed { color: var(--muted); }
:root[data-theme="light"] .storm-status { color: var(--danger); }
:root[data-theme="light"] .storm-status::before { background: var(--danger); }
  background: radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--surface); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .storm { --lvl: #8b72e0; --glow: color-mix(in srgb, var(--lvl) 9%, transparent); --edge: var(--border); color: var(--text);
    background: radial-gradient(ellipse at 0 0, var(--glow), transparent 65%), var(--surface); box-shadow: var(--shadow-sm); }
  :root:not([data-theme="dark"]) .storm:hover { border-color: var(--lvl); box-shadow: 0 8px 20px rgba(31,13,63,.1); }
  :root:not([data-theme="dark"]) .storm:focus-visible { outline-color: var(--lvl); }
  :root:not([data-theme="dark"]) .storm-cat { background: color-mix(in srgb, var(--lvl) 12%, var(--surface)); color: var(--accent); }
  :root:not([data-theme="dark"]) .storm-bug { --bug-ink: var(--lvl); --bug-glow: color-mix(in srgb, var(--lvl) 16%, transparent); }
  :root:not([data-theme="dark"]) .storm-bug i { filter: none; }
  :root:not([data-theme="dark"]) .storm-name { color: var(--ink); text-shadow: none; }
  :root:not([data-theme="dark"]) .storm-cve { color: var(--accent); }
  :root:not([data-theme="dark"]) .storm-more { color: var(--subtle); }
  :root:not([data-theme="dark"]) .storm-landed { color: var(--muted); }
  :root:not([data-theme="dark"]) .storm-status { color: var(--danger); }
  :root:not([data-theme="dark"]) .storm-status::before { background: var(--danger); }
}
/* ...in the redesign's type: the name in the display face with no chromatic split, the level strip and the rest in
   Noto Sans, mono only for the CVE id, the larger content sizes; room under the eyebrow */
.storms .tile-head { margin-bottom: 18px; }
.storm-name, :root[data-theme="dark"] .storm-name { font: 700 30px/1 var(--display); text-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .storm-name { text-shadow: none; } }
.storm-cat { font: 600 12.5px/1.2 var(--font); letter-spacing: .06em; }
.storm-cve { font: 500 13px/1.3 var(--mono); }
.storm-landed, .storm-status { font-size: 14px; }
@media (max-width: 640px) { .storm-name { font-size: 28px; } }
/* the copy button gets its own column beside the scroller, so scrolled text never slides under it */
.cve-opt-query { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
:is(.drawer, .lookup) .cve-opt-query .ddsql-pre { grid-column: 1; padding-right: 8px; }
.cve-opt-query > .copy-icon { position: static; grid-column: 2; grid-row: 1; align-self: start; justify-self: center; margin-top: 8px; }

/* Storm watch: every card looks the same whatever its level, so none reads as more important. The level is a small
   hurricane category ("CAT 4") in the display face with a 5-bar meter, the same colours on every card. */
:root[data-theme] .storm-list .storm-cat { justify-content: flex-start; gap: 10px; background: none; border-bottom: 0; padding: 14px 14px 0;
  font: 600 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.storm-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.storm-meter i { width: 4px; border-radius: 1px; background: color-mix(in srgb, currentColor 28%, transparent); }
.storm-meter i:nth-child(1) { height: 4px; } .storm-meter i:nth-child(2) { height: 6px; } .storm-meter i:nth-child(3) { height: 8px; }
.storm-meter i:nth-child(4) { height: 10px; } .storm-meter i:nth-child(5) { height: 12px; }
.storm-meter i.on { background: var(--accent); }
.storm-list .storm-head { padding-top: 8px; }

/* Severity Sankey: hovering or focusing one destination dims the others */
.sankey-hit { outline: none; cursor: default; }
.sankey-hit .flow { transition: opacity .15s; opacity: .42; }
.sankey-hit.on .flow { opacity: .85; }
.story-svg.sankey-focus .sankey-hit:not(.on) { opacity: .35; }
.sankey-hit:focus-visible .sankey-bar { stroke: var(--accent); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .sankey-hit .flow { transition: none; } }
.story-bridge-indent { visibility: hidden; }
.tile-titles > h3 + .info-tip { margin-bottom: 0; }
.trial-note:empty { display: none; }
/* the category says what it means on hover (sightings.storms.scaleTips) */
.storm-list .storm-cat { cursor: help; }
.storm-cat-name { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
/* a fact label with a definition on hover (EPSS) */
.cve-fact-help { width: fit-content; cursor: help; text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.cve-fact-help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* The CVE panel's Datadog section: one container. A tinted header, the primary action (Bits AI), then quieter rows
   divided by hairlines, each with a secondary button on the right (the DDSQL row opens in place). */
.dd-box { --dd-edge: color-mix(in srgb, var(--dd-purple) 30%, var(--border)); margin: 8px 0 18px; border: 1px solid var(--dd-edge);
  border-radius: 8px; background: var(--surface); overflow: hidden; }
.dd-box-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dd-edge);
  background: color-mix(in srgb, var(--dd-purple) 8%, var(--surface)); }
.dd-box-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--surface); border: 1px solid var(--dd-edge); }
.dd-box-mark img { width: 18px; height: 18px; }
.dd-box-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.dd-box-main { display: grid; gap: 10px; padding: 16px; }
.dd-box-sub { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.dd-box-line { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dd-box-main .dd-box-line { margin: -6px 0 2px; }
.dd-box-prompt { position: relative; padding: 12px 44px 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: color-mix(in srgb, var(--dd-purple) 4%, var(--surface)); }
.dd-box-prompt-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.dd-box-prompt > .copy-icon { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
.dd-box-go { width: 100%; justify-content: center; min-height: 36px; }
.dd-box-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--border); }
.dd-box-row-text { flex: 1; min-width: 0; }
.dd-box-row-acts { flex: none; display: flex; gap: 8px; }
/* the DDSQL row is a disclosure: the summary is the row, the query and the editor button open under it */
.dd-box-ddsql { display: block; }
.dd-box-ddsql > summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.dd-box-ddsql > summary::-webkit-details-marker { display: none; }
.dd-box-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s; }
.dd-box-ddsql[open] .dd-box-chev { transform: rotate(-135deg) translate(-3px, -3px); }
.dd-box-ddsql > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.dd-box-ddsql .cve-opt-query { margin-top: 12px; }
.dd-box-ddsql-acts { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dd-box-docs { font-size: 13px; color: var(--accent); }
@media (max-width: 480px) { .dd-box-row { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .dd-box-chev { transition: none; } }
