:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #1a1d26;
  --muted: #5c6370;
  --border: #d8dce3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --code-bg: #eef1f6;
  --header-bg: #111827;
  --header-text: #f9fafb;
  --success: #15803d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #171a22;
    --text: #e8eaef;
    --muted: #9aa3b2;
    --border: #2a3140;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --code-bg: #222733;
    --header-bg: #0a0c10;
    --header-text: #f3f4f6;
    --success: #4ade80;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(1400px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2rem 0 1.75rem;
  margin-bottom: 1.5rem;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.site-header a {
  color: #93c5fd;
}

.tagline {
  margin: 0 0 0.5rem;
  max-width: 42rem;
  color: #cbd5e1;
}

.meta {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.search-input {
  width: 100%;
  max-width: 32rem;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
}

.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.result-count {
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--code-bg);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr[hidden] {
  display: none;
}

.appverifier-cell {
  min-width: 22rem;
}

.appverifier-block {
  display: block;
  max-width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  overflow-x: auto;
  cursor: text;
}

.appverifier-block:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

pre.appverifier-text {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: nowrap;
}

.copy-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
}

td ul {
  margin: 0;
  padding-left: 1.25rem;
}

td ul li + li {
  margin-top: 0.25rem;
}

.source-list {
  list-style: none;
  padding-left: 0;
}

.source-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}

.source-list li + li {
  margin-top: 0.5rem;
}

.source-hash {
  font-size: 0.78rem;
  word-break: break-all;
}

.issues-cell a + a::before {
  content: ", ";
}

.no-results {
  text-align: center;
  color: var(--muted);
  margin: -1rem 0 2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}
