.cve-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}
.cve-stat {
  border: 1px solid var(--hair);
  padding: 12px 14px 10px;
  min-width: 0;
}
.cve-stat a { color: inherit; }
.cve-stat .n {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--brass);
  line-height: 1.2;
}
.cve-stat .lbl {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.cve-table { overflow: visible; }
.cve-table tr:has(.cvss-tip:hover),
.cve-table tr:has(.cvss-tip:focus-within),
.cve-table tr:has(.cvss-tip.is-open) {
  position: relative;
  z-index: 40;
}
.cve-table .cvss-tip-panel {
  left: auto;
  right: 0;
  width: 22rem;
  max-width: min(26rem, calc(100vw - 48px));
  background: var(--bg);
  background-color: var(--bg);
}

.cve-id {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
.cve-title { max-width: 28rem; }
.cve-when {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cve-cvss { white-space: nowrap; }
.cve-cvss.cve-hot .cvss-tip-trigger,
.cve-cvss.cve-hot { color: var(--brass); }
.cve-pager { display: flex; gap: 18px; margin: 4px 0 32px; }
.cve-pager a { font-family: var(--mono); font-size: 12px; }
@media (max-width: 800px) {
  .cve-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .cve-stats { grid-template-columns: 1fr 1fr; }
  .cve-table { overflow: visible; }
  .cve-table table.sheet { display: block; overflow: visible; }
  .cve-table table.sheet thead { display: none; }
  .cve-table table.sheet tbody { display: block; }
  .cve-table table.sheet tr {
    display: block;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--hair);
  }
  .cve-table table.sheet td {
    display: grid;
    grid-template-columns: 5.6rem minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
    width: auto;
    border: 0;
    padding: 3px 0;
    white-space: normal;
  }
  .cve-table table.sheet td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0;
  }
  .cve-table table.sheet td.cve-title {
    display: block;
    padding: 8px 0 10px;
  }
  .cve-table table.sheet td.cve-title::before {
    margin-bottom: 3px;
  }
  .cve-title { max-width: none; }
  .cve-id, .cve-when, .cve-cvss { white-space: nowrap; }
  .cve-table table.sheet td a { overflow-wrap: anywhere; }
}

/* Vendor dropdown — match KEV / Recent / Critical filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}
form.cve-vendor-filter {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}
.filters select#cve-vendor,
form.cve-vendor-filter select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0 0.85rem 8px 0;
  margin: 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 2px) calc(50% - 2px), calc(100% + 3px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
form.cve-vendor-filter select:hover,
form.cve-vendor-filter select:focus,
form.cve-vendor-filter select:focus-visible {
  color: var(--brass);
  border-bottom-color: var(--brass);
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
}
form.cve-vendor-filter select:has(option:checked:not([value=""])) {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.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;
}

