body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 16px;
  background: #0b1020;
  color: #e5e7eb;
}

/* Table container */
.csstable {
  border-collapse: collapse;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}

/* Header */
.csstable th {
  position: sticky;
  top: 0;
  background: #111827;
  color: #fff;
  padding: 10px 8px;
  font-weight: 600;
  text-align: left;
  font-size: 13px;
}

/* Cells */
.csstable td {
  padding: 8px;
  border-bottom: 1px solid rgba(229,231,235,.12);
  font-size: 13px;
  vertical-align: top;
  color: #e5e7eb;
}

/* Zebra rows */
.csstable tr:nth-child(even) td {
  background: rgba(255,255,255,.03);
}

/* Small helper text */
.tablesmall {
  font-size: 12px;
  color: #cbd5e1;
}

/* Status cells (mirror the light palette, but dark-friendly) */
.tableok   { background: rgba(34,197,94,.18);  color: #bbf7d0; font-weight: 600; }
.tablewarn { background: rgba(245,158,11,.18); color: #fde68a; font-weight: 600; }
.tablecri  { background: rgba(239,68,68,.18);  color: #fecaca; font-weight: 700; }

/* Strip separator line */
.tableline td {
  background: rgba(255,255,255,.06) !important;
  height: 4px;
  padding: 0;
  border: 0;
}

/* Links */
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Copy-to-clipboard interaction (same behavior as light) */
[data-copy] {
  cursor: pointer;
}
[data-copy]:hover {
  text-decoration: underline;
}
[data-copy][data-copied="1"]::after {
  content: " Copied!";
  font-weight: 600;
  margin-left: 6px;
  color: #a7f3d0;
}

/* OCSP badges */
.ocsp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.18);
  color: #e5e7eb;
}

.ocsp-badge.ok    { background: rgba(34,197,94,.22); }
.ocsp-badge.fail  { background: rgba(239,68,68,.22); }
.ocsp-badge.warn  { background: rgba(245,158,11,.22); }
.ocsp-badge:hover { filter: brightness(1.06); }

.csstable td.tableok,
.csstable td.tablecri,
.csstable td.tablewarn {
  background-clip: padding-box;
}

/* Re-apply status backgrounds on even zebra rows */
.csstable tr:nth-child(even) td.tableok {
  background: rgba(34,197,94,.18);
}

.csstable tr:nth-child(even) td.tablecri {
  background: rgba(239,68,68,.18);
}

.csstable tr:nth-child(even) td.tablewarn {
  background: rgba(245,158,11,.18);
}

