:root {
  color-scheme: dark;
  --bg: #081018;
  --panel: #101b26;
  --panel-2: #142331;
  --line: #26394a;
  --muted: #91a4b5;
  --text: #f2f6f8;
  --cyan: #66d9e8;
  --orange: #ff9f43;
  --red: #ff5c6c;
  --lime: #a8e063;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 15% 0%, #13283b 0, transparent 28rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button, label[for], select { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .8rem 1rem; background: var(--cyan); color: #061018; font-weight: 800; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.site-header { min-height: 78px; padding: 1rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(8, 16, 24, .86); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; gap: .85rem; align-items: center; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { letter-spacing: .03em; }
.brand small { color: var(--muted); margin-top: .12rem; }
.brand-mark { width: 36px; height: 36px; display: flex; gap: 3px; align-items: end; padding: 7px; border: 1px solid #3c566c; border-radius: 9px; }
.brand-mark i { display: block; flex: 1; background: var(--cyan); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 45%; }.brand-mark i:nth-child(2) { height: 88%; background: var(--orange); }.brand-mark i:nth-child(3) { height: 65%; }
.header-meta, .ingest-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.privacy-badge { color: #bdd1dc; border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 999px; font-size: .84rem; }
.privacy-badge i { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: .4rem; box-shadow: 0 0 12px var(--lime); }

main { width: min(1480px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 4vw, 4rem) 0 4rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: 2rem; }
.intro h1 { font-size: clamp(2.3rem, 5.5vw, 5.6rem); max-width: 14ch; letter-spacing: -.055em; line-height: .96; margin: .6rem 0 1.2rem; }
.intro > div:first-child > p:last-child { color: #b9c7d1; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; max-width: 64ch; }
.eyebrow, .field-label { color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; }
.ingest-panel { background: linear-gradient(145deg, #152637, #0e1924); border: 1px solid #34516a; border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.ingest-panel > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; }
.ingest-panel h2 { margin: 0; font-size: 1.15rem; }.ingest-panel p { color: var(--muted); margin: .3rem 0 1rem; }.ingest-panel .step { grid-row: 1 / 3; color: var(--orange); font: 700 .8rem ui-monospace, monospace; }
.button { border: 1px solid var(--line); border-radius: 8px; padding: .68rem .9rem; background: transparent; color: var(--text); font-weight: 750; text-decoration: none; transition: border-color .18s, background .18s, transform .18s; }
.button:hover { transform: translateY(-1px); border-color: var(--cyan); }.button.primary { background: var(--cyan); border-color: var(--cyan); color: #071219; }.button.secondary { background: #1a2a38; }.button.ghost { padding: .58rem .8rem; }.button.full { width: 100%; }
.status { font-size: .82rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-bottom: 0 !important; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.metrics article { padding: 1.2rem 1.35rem; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(16, 27, 38, .78); }
.metrics article + article { border-left: 1px solid var(--line); }.metrics span, .metrics small { color: var(--muted); }.metrics strong { font-size: 2.1rem; letter-spacing: -.04em; }.metrics .metric-alert strong { color: var(--red); }
.timeline-section, .findings-panel, .events-panel { background: rgba(16, 27, 38, .78); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline-section { padding: 1.25rem 1.4rem; margin-bottom: 1rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }.section-heading h2 { margin: .2rem 0 0; font-size: 1.25rem; }.section-heading p { color: var(--muted); margin: 0; font-size: .8rem; }.section-heading.compact { padding: 1.25rem 1.25rem 0; }.events-heading { padding: 1.25rem 1.25rem 0; }
.legend { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: .5rem; }.legend.elevated { background: var(--orange); }.legend.standard { background: #45637a; }
.timeline { height: 128px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: clamp(3px, .8vw, 10px); border-bottom: 1px solid var(--line); padding-top: .5rem; }
.timeline-column { height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; min-width: 0; }.timeline-bar { min-height: 4px; background: #38536a; border-radius: 4px 4px 0 0; position: relative; overflow: hidden; }.timeline-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--orange); }.timeline-column small { color: var(--muted); font: .65rem ui-monospace, monospace; padding-top: .45rem; overflow: hidden; text-overflow: clip; white-space: nowrap; }

.workspace-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr); gap: 1rem; align-items: start; }.findings-panel { overflow: hidden; }.count { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: 700 .8rem ui-monospace, monospace; }
.finding-list { display: grid; }.finding-card { display: grid; grid-template-columns: auto auto 1fr; gap: .45rem .7rem; text-align: left; color: var(--text); background: transparent; border: 0; border-top: 1px solid var(--line); padding: 1rem 1.25rem; }.finding-card:hover { background: var(--panel-2); }.finding-card strong { grid-column: 2 / -1; }.finding-card p { grid-column: 2 / -1; color: var(--muted); line-height: 1.45; margin: .1rem 0; font-size: .87rem; }.finding-index { grid-row: 1 / 4; color: #587086; font: .72rem ui-monospace, monospace; }.severity { justify-self: start; border-radius: 999px; padding: .18rem .44rem; font: 800 .62rem ui-monospace, monospace; text-transform: uppercase; }.severity.critical { color: #ffdce0; background: #6e1e2a; }.severity.high { color: #ffe3c2; background: #713f15; }.severity.medium { color: #fff3b5; background: #5c531d; }.finding-meta { grid-column: 2 / -1; color: #72899b; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }
.filters { display: grid; grid-template-columns: 1fr 180px 160px; gap: .7rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }.filters label, .notes-field { display: grid; gap: .35rem; }.filters label > span, .notes-field > span { color: var(--muted); font-size: .72rem; font-weight: 700; }.filters input, .filters select, textarea { width: 100%; background: #0b151e; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: .68rem .75rem; }
.event-table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { text-align: left; color: #7e93a5; font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }td { padding: .85rem 1rem; vertical-align: top; border-bottom: 1px solid #1d2e3d; font-size: .82rem; }tbody tr:hover, tbody tr:focus { background: #142433; }td strong, td small { display: block; }td small { color: var(--muted); margin-top: .18rem; }.event-type { color: var(--cyan); font-size: .72rem; text-transform: uppercase; }td p { margin: .22rem 0 0; color: #c4d0d8; min-width: 260px; }code { color: #b7dceb; font-size: .76rem; }.empty-state { padding: 2rem; color: var(--muted); text-align: center; }

dialog { width: min(650px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid #3b5870; border-radius: 16px; color: var(--text); background: #0f1b26; box-shadow: 0 30px 100px #000; }dialog::backdrop { background: rgba(1, 6, 10, .78); backdrop-filter: blur(5px); }.dialog-shell { padding: 1.5rem; }.dialog-heading { display: flex; justify-content: space-between; gap: 1rem; }.dialog-heading h2 { margin: .25rem 0 0; }.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: 1.5rem; }.dialog-rationale { color: #c4d0d8; line-height: 1.6; }.recommendation { margin: 1.25rem 0; padding: 1rem; border-left: 3px solid var(--orange); background: #172534; }.recommendation span { color: var(--orange); font-size: .7rem; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }.recommendation p { margin: .45rem 0 0; }.linked-events { display: grid; gap: .5rem; max-height: 180px; overflow-y: auto; margin-top: .6rem; }.linked-events > div { background: #0a141d; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; }.linked-events p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }fieldset { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }legend { padding: 0 .4rem; font-weight: 750; }.decision-grid { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }.decision-grid label { flex: 1; min-width: 110px; border: 1px solid var(--line); border-radius: 8px; padding: .65rem; }.notes-field { margin-top: .7rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding: 1.5rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }footer p { margin: 0; max-width: 85ch; }

@media (max-width: 900px) {
  .intro, .workspace-grid { grid-template-columns: 1fr; }.metrics { grid-template-columns: 1fr 1fr; }.metrics article:nth-child(3) { border-left: 0; }.metrics article:nth-child(n+3) { border-top: 1px solid var(--line); }.filters { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-header { align-items: flex-start; }.privacy-badge { display: none; }.intro h1 { font-size: clamp(2.4rem, 14vw, 4rem); }.metrics { grid-template-columns: 1fr 1fr; }.metrics article { min-height: 110px; padding: 1rem; }.timeline-column small { display: none; }.filters { grid-template-columns: 1fr; }.search-field { grid-column: auto; }.event-table-wrap { overflow: visible; }table, tbody { display: block; }thead { position: absolute; width: 1px; height: 1px; overflow: hidden; }tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: .75rem; }td { border: 0; padding: .4rem; }td:nth-child(3) { grid-column: 1 / -1; }td p { min-width: 0; }.dialog-shell { padding: 1rem; }footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.source-link { color: #b7dceb; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-underline-offset: .25rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.project-meta li { border: 1px solid var(--line); border-radius: 999px; padding: .38rem .62rem; color: #b7dceb; font-size: .65rem; font-weight: 750; letter-spacing: .035em; }
.demo-cue { display: block; width: fit-content; margin: .85rem 0 0; border: 0; background: none; padding: 0; color: #dfeaf0; font-size: .72rem; font-weight: 800; letter-spacing: .025em; text-decoration: underline; text-underline-offset: .22rem; }.demo-cue span { color: var(--cyan); }
@media (max-width: 760px) { .source-link { display: none; } }
