:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #17202a;
  --muted: #5d6975;
  --line: #d5dce3;
  --brand: #174d73;
  --brand-strong: #0c3856;
  --brand-soft: #e0eef7;
  --shadow: 0 8px 26px rgba(23, 32, 42, .08);
  --complete: #1b7f4b;
  --duplicate: #1467a0;
  --incomplete: #b46b00;
  --mixed: #7a47a2;
  --missing: #8b949e;
  --sticky-1: 188px;
}
:root[data-theme="dark"] {
  --bg: #101418;
  --surface: #181e24;
  --surface-2: #222a32;
  --text: #edf2f7;
  --muted: #aab5c0;
  --line: #34404a;
  --brand: #77b7e2;
  --brand-strong: #a8d8f7;
  --brand-soft: #17394e;
  --shadow: 0 8px 26px rgba(0,0,0,.28);
  --complete: #5ac58b;
  --duplicate: #5ab0e6;
  --incomplete: #e7a847;
  --mixed: #c291e4;
  --missing: #89939d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand); }
button, input, select { font: inherit; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--surface); padding: .7rem 1rem; border-radius: .4rem; }
.skip-link:focus { left: 8px; }
.site-header { color: white; background: linear-gradient(125deg, #102f46, #17618f); padding: 2rem 1.25rem; }
.header-inner { max-width: 1680px; margin: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.eyebrow { margin: 0 0 .35rem; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; opacity: .82; }
h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.05; }
.subtitle { margin: .75rem 0 0; max-width: 760px; font-size: 1.08rem; color: #d7e8f3; }
.header-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
main { max-width: 1680px; margin: 0 auto; padding: 1.25rem; }
.notice, .panel, .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.notice { margin: 0 0 1.25rem; padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: flex-start; }
.notice h2, .panel h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.notice p, .panel p { margin: .25rem 0; color: var(--muted); }
.notice-icon { flex: 0 0 auto; min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-strong); background: var(--brand-soft); font-weight: 800; }
code { background: var(--surface-2); border-radius: 5px; padding: .1em .35em; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.stat-card { padding: 1rem; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; font-size: 1.8rem; line-height: 1.15; margin: .2rem 0; }
.panel { margin-bottom: 1.25rem; padding: 1rem; }
.panel-heading, .table-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel-actions, .legend { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.button { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 8px; padding: .58rem .82rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; white-space: nowrap; }
.button:hover { filter: brightness(1.08); }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.button.secondary { background: var(--surface); color: var(--brand); border-color: var(--line); }
.site-header .button.secondary { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.button:disabled { opacity: .45; cursor: default; }
.filter-grid { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(6, minmax(130px, 1fr)) auto; gap: .7rem; }
.field { display: flex; flex-direction: column; gap: .28rem; }
.field span { color: var(--muted); font-size: .82rem; font-weight: 650; }
.field input, .field select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: .48rem .58rem; }
.field-button { justify-content: flex-end; }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { padding: 1rem 1rem 0; }
.legend { color: var(--muted); font-size: .86rem; }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.dot { display: inline-block; width: .62rem; height: .62rem; border-radius: 50%; }
.dot.complete { background: var(--complete); } .dot.duplicate { background: var(--duplicate); } .dot.incomplete { background: var(--incomplete); } .dot.mixed { background: var(--mixed); } .dot.missing { background: var(--missing); }
.table-wrap { overflow: auto; max-height: 68vh; border-block: 1px solid var(--line); }
table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .87rem; }
th, td { padding: .52rem .58rem; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; background: var(--surface); }
thead th { position: sticky; top: 0; z-index: 4; background: var(--surface-2); color: var(--text); font-size: .78rem; letter-spacing: .01em; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.sticky-col { position: sticky; z-index: 2; box-shadow: 1px 0 0 var(--line); }
thead .sticky-col { z-index: 6; }
.sticky-1 { left: 0; min-width: var(--sticky-1); }
.sticky-2 { left: var(--sticky-1); min-width: 118px; }
.issue-id { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; font-weight: 700; cursor: copy; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.note-cell { max-width: 250px; min-width: 150px; white-space: normal; }
.badge { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid currentColor; border-radius: 999px; padding: .18rem .48rem; font-size: .77rem; white-space: nowrap; }
.badge.complete { color: var(--complete); } .badge.duplicate { color: var(--duplicate); } .badge.incomplete { color: var(--incomplete); } .badge.mixed { color: var(--mixed); } .badge.missing { color: var(--missing); }
.yes { color: var(--complete); font-weight: 700; } .no { color: var(--muted); }
.search-head { min-width: 116px; }
.platform-cell { min-width: 116px; text-align: center; }
.search-link { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; padding: .34rem .48rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--brand); text-decoration: none; font-weight: 650; }
.search-link:hover { background: var(--brand-soft); }
.archive-link { white-space: nowrap; }
.pagination { padding: .85rem 1rem; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; }
#pageInfo { min-width: 150px; text-align: center; color: var(--muted); }
.sources ul { margin: .6rem 0; padding-left: 1.2rem; }
footer { padding: 1rem 1.25rem 2rem; color: var(--muted); text-align: center; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; background: var(--text); color: var(--surface); padding: .7rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-grid { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
  .field-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .site-header { padding-block: 1.4rem; }
  .header-inner, .panel-heading, .table-toolbar { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .header-actions, .panel-actions { width: 100%; }
  .header-actions .button, .panel-actions .button { flex: 1; }
  :root { --sticky-1: 168px; }
  th, td { padding: .46rem; }
}
@media print {
  .site-header, .notice, .stats-grid, .filters, .pagination, .sources, footer, .legend { display: none !important; }
  main { max-width: none; padding: 0; }
  .panel, .table-panel { border: 0; box-shadow: none; }
  .table-wrap { max-height: none; overflow: visible; border: 0; }
  table { width: 100%; font-size: 7pt; }
  th:nth-child(n+14), td:nth-child(n+14) { display: none; }
  .sticky-col, thead th { position: static; }
}

.title-cell { min-width: 210px; max-width: 280px; white-space: normal; font-weight: 650; }
.search-methods { margin-top: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.search-methods summary { cursor: pointer; font-weight: 750; color: var(--brand); }
.search-methods ul { margin: .75rem 0 .1rem 1.2rem; columns: 2; column-gap: 2rem; }
.search-methods li { margin-bottom: .45rem; break-inside: avoid; }
@media (max-width: 850px) { .search-methods ul { columns: 1; } }
