@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #10263d;
  --muted: #627283;
  --border: #dbe3eb;
  --paper: #f4f7fa;
  --navy: #0d2238;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid #2e78d5;
  outline-offset: 3px;
}
.masthead {
  min-height: 76px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1400px) / 2));
  border-bottom: 3px solid #46c9a1;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #46c9a1;
  color: #57d9b1;
  font: 600 22px var(--mono);
  border-radius: 6px;
}
.brand-divider {
  opacity: 0.35;
  margin: 0 3px;
}
.brand-description {
  font-size: 16px;
  color: #bfcddc;
  font-weight: 400;
}
.header-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.read-only {
  color: #bdcddd;
}
.button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.button:hover:not(:disabled) {
  background: #eef4fa;
  border-color: #91a5bb;
}
.masthead .button {
  color: #fff;
  background: #1b344e;
  border-color: #3b5065;
}
main {
  max-width: 1456px;
  margin: auto;
  padding: 30px 28px 24px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.09em;
  margin: 0 0 6px;
  color: var(--muted);
}
h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.intro-copy {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}
.snapshot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  text-align: right;
  font-size: 14px;
}
.snapshot time {
  font-weight: 500;
}
.snapshot #live-status {
  color: var(--muted);
  font-size: 12px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px 22px;
  position: relative;
  text-align: left;
  color: var(--ink);
}
.stat:hover {
  border-color: var(--accent);
}
.stat[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 7px 0 0 7px;
  background: var(--accent);
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.stat-value {
  font: 500 32px/1.4 var(--mono);
  letter-spacing: -0.04em;
  display: block;
}
.stat small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.stat-number {
  font: 500 11px var(--mono);
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 5px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 24px 0 8px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.inventory {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px;
  gap: 20px;
}
.inventory-heading p.muted {
  margin: 4px 0 0;
}
.inventory-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.tree-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  min-height: 39px;
}
.search-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 12px;
  min-width: 250px;
}
.search-label svg {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}
input {
  border: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px 10px;
  gap: 15px;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.filter:hover {
  background: #f6f8fb;
}
.filter[aria-pressed="true"] {
  background: #edf2f7;
  color: var(--ink);
  border-color: #9cb0c4;
  font-weight: 500;
}
.filter-count {
  font: 400 11px var(--mono);
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-color, #708194);
  flex-shrink: 0;
}
.secondary-filters .filter {
  padding: 5px 8px;
  border-color: transparent;
  font-size: 11px;
}
.secondary-filters .filter[aria-pressed="true"] {
  border-color: #9cb0c4;
}
#result-count {
  white-space: nowrap;
  font-size: 12px;
}
.matrix-note {
  margin: 0;
  padding: 2px 22px 16px;
  color: var(--muted);
  font-size: 11px;
  max-width: 1150px;
}
.table-wrap {
  overflow: auto;
  max-height: 68vh;
  border-top: 1px solid var(--border);
  scroll-padding: 76px 0 0 340px;
}
.matrix-table {
  width: 100%;
  min-width: 1140px;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
}
.matrix-table th,
.matrix-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8edf2;
}
.matrix-table thead th {
  padding: 12px 10px;
  color: var(--muted);
  background: #f6f8fb;
  position: sticky;
  top: 0;
  z-index: 2;
}
.matrix-table thead th:first-child {
  width: 340px;
  padding-left: 22px;
  left: 0;
  z-index: 3;
}
.column-series {
  display: block;
  font: 500 14px var(--mono);
  color: var(--ink);
}
.column-release {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cve-description {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  padding: 15px 20px 15px 22px;
  font-weight: 400;
  box-shadow: 1px 0 #e8edf2;
}
.matrix-table tbody tr:hover .cve-description {
  background: #fafbfd;
}
.cve-id {
  font: 500 13px var(--mono);
  color: #245988;
}
.patch-title {
  display: block;
  margin: 5px 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.record-details {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
.record-details div {
  padding-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.record-details a {
  color: #245988;
  text-decoration: underline;
  overflow-wrap: anywhere;
  font-family: var(--mono);
}
.matrix-cell {
  padding: 12px 7px;
}
.matrix-table .focused-tree {
  background: #f0f5fa;
}
.cell-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 66px;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid var(--status-border);
  border-left: 3px solid var(--status-color);
  border-radius: 5px;
  background: var(--status-bg);
  color: var(--status-color);
}
.cell-status:hover {
  border-color: var(--status-color);
}
.cell-status strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.cell-status small {
  font-size: 10px;
  line-height: 1.4;
}
.status-project-backported {
  --status-color: #236743;
  --status-bg: #edf7f0;
  --status-border: #d7eadc;
}
.status-fixed-elsewhere {
  --status-color: #41677b;
  --status-bg: #f0f5f7;
  --status-border: #d7e3e8;
}
.status-queued,
.status-project-queued {
  --status-color: #2057a3;
  --status-bg: #edf3ff;
  --status-border: #d7e3f5;
}
.status-over-limit {
  --status-color: #a03931;
  --status-bg: #fff0ed;
  --status-border: #f1d9d3;
}
.status-within-limit,
.status-unfixed,
.status-size-unknown {
  --status-color: #855015;
  --status-bg: #fff7e5;
  --status-border: #ede0be;
}
.status-not-applicable {
  --status-color: #61717e;
  --status-bg: #f4f6f8;
  --status-border: #e0e5e9;
}
.status-unknown {
  --status-color: #52627b;
  --status-bg: #f0f4fa;
  --status-border: #cfdae8;
}
.cell-status.status-unknown,
.cell-status.status-size-unknown {
  border-style: dashed;
  border-left-style: solid;
}
.unassessed {
  color: var(--muted);
  font-size: 12px;
}
.pagination {
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.pagination button + button {
  margin-left: 8px;
}
.methodology {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 28px 0;
}
.methodology h2 {
  font-size: 14px;
}
.methodology p {
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0;
}
.methodology strong {
  font-weight: 500;
  color: var(--ink);
}
#source-details {
  font-size: 13px;
}
#source-details summary {
  font-weight: 500;
}
#sources {
  padding-top: 8px;
}
#sources p {
  overflow-wrap: anywhere;
}
#sources a {
  text-decoration: underline;
  color: #245988;
}
.notice {
  background: #fff7e8;
  border: 1px solid #edd3a7;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: 85vh;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 20px 80px #0d223840;
}
dialog::backdrop {
  background: #0d223870;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-header .eyebrow {
  margin: 0;
}
#detail-content {
  font-size: 14px;
}
#detail-content h2 {
  font: 500 18px var(--mono);
}
#detail-content p {
  overflow-wrap: anywhere;
}
#detail-content a {
  color: #245988;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--status-color);
  background: var(--status-bg);
}
.evidence-link {
  display: block;
  margin-bottom: 7px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.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;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .inventory-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-controls {
    width: 100%;
  }
  .search-label {
    flex: 1;
  }
  .read-only {
    display: none;
  }
}
@media (max-width: 700px) {
  .masthead {
    padding: 16px 20px;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    gap: 9px;
  }
  .brand-description {
    font-size: 14px;
  }
  .header-meta {
    margin-left: auto;
  }
  .masthead .button {
    font-size: 12px;
    padding: 6px 9px;
  }
  main {
    padding: 24px 16px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .snapshot {
    text-align: left;
    font-size: 12px;
  }
  h1 {
    font-size: 30px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .summary {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-number {
    display: none;
  }
  .stat small {
    font-size: 10px;
  }
  .inventory-heading,
  .filter-row {
    padding-left: 16px;
    padding-right: 16px;
  }
  .inventory-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-label {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }
  .secondary-filters {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .matrix-note {
    padding-left: 16px;
    padding-right: 16px;
  }
  .matrix-table thead th:first-child {
    width: 180px;
    padding-left: 16px;
  }
  .cve-description {
    padding-left: 16px;
    padding-right: 14px;
  }
  .matrix-table {
    min-width: 980px;
  }
  .table-wrap {
    scroll-padding-left: 180px;
  }
  .methodology {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pagination {
    padding: 14px 16px;
    gap: 10px;
  }
  footer {
    margin: 0 16px;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 440px) {
  .summary {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .stat-value {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-left: 10px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.12s,
      border-color 0.12s;
  }
}
