:root {
  color-scheme: dark;
  font-family: 'Geist Pixel', 'Courier New', monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --background: #090909;
  --foreground: #efefed;
  --muted: #898985;
  --faint: #555550;
  --line: #292927;
  --line-strong: #3a3a36;
  --accent: #d6ff62;
  --critical: #ff6d68;
  --high: #ffab66;
  --medium: #e8d36e;
  --low: #9cc9aa;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--background); color: var(--foreground); font-size: 13px; line-height: 1.55; font-variation-settings: 'ELSH' 1; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.page-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }

.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--foreground); font-size: 12px; font-weight: 600; letter-spacing: .045em; text-decoration: none; }
.brand-mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); font-size: 14px; }
.wordmark-divider { color: var(--faint); padding: 0 3px; }
.topbar-right { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.system-status { display: flex; align-items: center; gap: 8px; }
.status-dot, .footer-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #d6ff6250; }
.muted-slash { color: var(--faint); }
.topbar-index { color: var(--foreground); }

.intro { min-height: 340px; padding: 77px 0 69px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.eyebrow { margin: 0 0 19px; color: var(--muted); font-size: 10px; letter-spacing: .11em; }
.eyebrow-mark { color: var(--accent); margin-right: 8px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 21px; font-size: clamp(40px, 6vw, 66px); font-weight: 500; line-height: 1.04; letter-spacing: -.075em; }
.title-muted { color: #777772; }
.intro-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.intro-aside { width: 218px; padding-bottom: 4px; }
.aside-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .07em; }
.aside-line strong { color: var(--foreground); font-size: 12px; font-weight: 500; letter-spacing: 0; }

.reports-section { border-top: 1px solid var(--line-strong); }
.section-heading { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.055em; }
.heading-count { color: var(--faint); font-size: 14px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 1px solid transparent; cursor: pointer; font-size: 10px; letter-spacing: .04em; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.button-primary { background: var(--accent); color: #10110b; }
.button-primary:hover { background: #e5ff9c; }
.button-plus { font-size: 17px; line-height: 1; }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.button-quiet:hover { border-color: var(--muted); color: var(--foreground); }

.toolbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { min-width: 210px; height: 39px; display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); }
.search-icon { font-size: 21px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; padding: 7px 0; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 11px; }
.search-box input::placeholder { color: #676762; }
.search-box kbd { min-width: 19px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--faint); font-size: 10px; }
.filter-group { display: flex; align-items: center; gap: 3px; }
.filter-button { min-height: 30px; padding: 0 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; letter-spacing: .035em; }
.filter-button:hover { color: var(--foreground); }
.filter-button.is-active { border-color: var(--line-strong); color: var(--foreground); background: #141412; }

.list-header, .report-row { display: grid; grid-template-columns: 118px minmax(210px, 1.7fr) minmax(130px, 1fr) 105px 92px 20px; align-items: center; column-gap: 16px; }
.list-header { min-height: 42px; color: var(--faint); font-size: 9px; letter-spacing: .07em; }
.report-row { position: relative; width: 100%; min-height: 83px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.report-row:last-child { border-bottom: 1px solid var(--line); }
.report-row:hover { background: linear-gradient(90deg, transparent, #ffffff08 48%, transparent); }
.severity-cell { display: flex; align-items: center; gap: 9px; }
.severity-mark { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border: 1px solid currentColor; }
.severity-mark.critical { background: var(--critical); border-color: var(--critical); }
.severity-mark.high { background: var(--high); border-color: var(--high); }
.severity-mark.medium { background: var(--medium); border-color: var(--medium); }
.severity-mark.low { background: transparent; border-color: var(--low); }
.severity-label { color: var(--foreground); font-size: 9px; letter-spacing: .045em; }
.severity-cell.critical { color: var(--critical); }
.severity-cell.high { color: var(--high); }
.severity-cell.medium { color: var(--medium); }
.severity-cell.low { color: var(--low); }
.finding-title { display: block; overflow: hidden; color: var(--foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.finding-meta { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.asset-cell, .date-cell { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.state-pill { width: fit-content; padding: 4px 7px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 8px; letter-spacing: .05em; }
.state-pill.open { color: #f0a39d; border-color: #70443f; }
.state-pill.triage { color: #e2cf84; border-color: #625a37; }
.state-pill.fixed { color: #9ec5a6; border-color: #3d5742; }
.row-arrow { color: var(--faint); font-size: 15px; text-align: right; transition: color .16s ease, transform .16s ease; }
.report-row:hover .row-arrow { color: var(--accent); transform: translateX(3px); }
.list-footnote { margin: 17px 0 0; color: var(--faint); font-size: 9px; letter-spacing: .04em; }
.list-footnote span { margin-right: 7px; color: var(--accent); }
.loading-state, .empty-state, .error-state { min-height: 145px; display: flex; align-items: center; justify-content: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.loading-mark { color: var(--accent); }
.empty-state { flex-direction: column; gap: 5px; }
.empty-state strong { color: var(--foreground); font-size: 13px; font-weight: 500; }
.empty-state span { color: var(--muted); font-size: 10px; }
.error-state { color: var(--critical); }

.footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 68px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; letter-spacing: .06em; }
.footer-year { margin-left: 8px; color: var(--faint); letter-spacing: 0; }
.footer-dot { width: 5px; height: 5px; margin: 0 6px 1px; box-shadow: none; }

.detail-page { min-height: 490px; padding: 54px 0 38px; border-top: 1px solid var(--line-strong); }
.back-link { color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; gap: clamp(28px, 5vw, 64px); margin: 21px 0 35px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.detail-badges .state-pill { font-size: 9px; }
.detail-title { max-width: 900px; margin: 20px 0 15px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 500; line-height: 1.12; letter-spacing: -.06em; text-wrap: balance; }
.detail-summary { max-width: 820px; margin: 0; color: #c4c4be; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.8; }
.detail-rating { min-height: 184px; display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 23px 21px; border: 1px solid var(--line-strong); border-left: 3px solid currentColor; background: #10100f; }
.detail-rating.critical { color: var(--critical); }
.detail-rating.high { color: var(--high); }
.detail-rating.medium { color: var(--medium); }
.detail-rating.low { color: var(--low); }
.detail-rating-label { color: var(--muted); font-size: 9px; letter-spacing: .08em; line-height: 1.6; }
.detail-rating-value { color: var(--foreground); font-size: clamp(43px, 5vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.detail-rating-value span { margin-left: 5px; color: var(--muted); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.detail-rating-note { color: currentColor; font-size: 9px; letter-spacing: .045em; }
.detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 35px; border-top: 1px solid var(--line); }
.detail-meta div { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-meta dt { margin-bottom: 7px; color: var(--faint); font-size: 9px; letter-spacing: .08em; }
.detail-meta dd { margin: 0; color: var(--foreground); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-context, .detail-references { padding-top: 22px; border-top: 1px solid var(--line); }
.detail-block-label { margin: 0 0 13px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.detail-body { max-width: 900px; color: #c4c4be; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 28px; }
.detail-tag { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.detail-references { margin-top: 30px; }
.detail-references ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-references li + li { margin-top: 8px; }
.detail-references a { color: var(--muted); text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail-references a:hover { color: var(--accent); }

.dialog { width: min(620px, calc(100% - 32px)); max-height: min(88vh, 850px); padding: 25px 28px 28px; overflow-y: auto; border: 1px solid var(--line-strong); background: #0d0d0c; color: var(--foreground); box-shadow: 0 24px 100px #000b; }
.dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.icon-button:hover { color: var(--foreground); }
.form-dialog h2 { margin: 25px 0 5px; font-size: 27px; font-weight: 500; letter-spacing: -.055em; }
.dialog-description { margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.required-mark { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.field-wide { grid-column: 1 / -1; }
.field-optional { margin-left: 4px; color: var(--faint); font-size: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 0; background: #111110; color: var(--foreground); font-size: 11px; letter-spacing: 0; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #5e5e58; }
.form-error { min-height: 16px; margin: 12px 0 0; color: var(--critical); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 3; padding: 12px 16px; border: 1px solid var(--line-strong); background: #131313; color: var(--accent); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 40px, 600px); }
  .intro { min-height: auto; padding: 61px 0 53px; }
  .intro-aside { width: 175px; }
  .list-header, .report-row { grid-template-columns: 91px minmax(140px, 1fr) minmax(85px, .7fr) 18px; column-gap: 11px; }
  .list-header span:nth-child(4), .report-row .date-cell, .list-header span:nth-child(5), .report-row .state-cell { display: none; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .search-box { width: 100%; flex: initial; }
  .filter-group { width: 100%; justify-content: space-between; }
  .filter-button { padding: 0 8px; }
  .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .detail-rating { width: 100%; min-height: 108px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 18px; padding: 16px 19px; }
  .detail-rating-label, .detail-rating-note { grid-column: 1; }
  .detail-rating-value { grid-column: 2; grid-row: 1 / 3; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}

@media (max-width: 500px) {
  .page-shell { width: calc(100% - 32px); }
  .topbar { height: 62px; }
  .wordmark { gap: 8px; font-size: 10px; }
  .brand-mark { width: 22px; height: 22px; }
  .topbar-right { gap: 12px; font-size: 8px; }
  .system-status { gap: 6px; }
  .intro { display: block; padding: 51px 0 41px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  .intro-aside { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 31px; }
  .aside-line { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 8px; }
  .aside-line span { font-size: 8px; }
  .section-heading { min-height: 108px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading .eyebrow { font-size: 8px; }
  .section-heading .button { padding: 0 10px; font-size: 8px; }
  .list-header, .report-row { grid-template-columns: 77px minmax(0, 1fr) 16px; column-gap: 9px; }
  .list-header span:nth-child(3), .report-row .asset-cell { display: none; }
  .report-row { min-height: 76px; }
  .finding-title { font-size: 10px; }
  .finding-meta { font-size: 9px; }
  .severity-cell { gap: 6px; }
  .severity-label { font-size: 8px; }
  .filter-button { padding: 0 5px; font-size: 8px; }
  .footer { min-height: 78px; margin-top: 48px; font-size: 8px; }
  .footer > span:nth-child(2) { display: none; }
  .dialog { padding: 20px 17px; }
  .form-grid { gap: 13px 10px; }
  .form-dialog h2 { font-size: 23px; }
  .form-actions .button { padding: 0 10px; font-size: 8px; }
  .detail-page { padding: 38px 0 30px; }
  .detail-hero { margin-top: 17px; }
  .detail-title { font-size: clamp(34px, 10vw, 47px); letter-spacing: -.055em; }
  .detail-summary { font-size: 15px; }
  .detail-meta { gap: 0 14px; }
  .detail-meta div { padding: 12px 0; }
  .detail-meta dd { font-size: 12px; }
  .detail-body { font-size: 14px; line-height: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}