
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: #f6f7f9;
  color: #1f2933;
  line-height: 1.55;
}
header, main, footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
header { border-bottom: 1px solid #e2e6ec; background: #fff; }
header h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
header nav a {
  display: inline-block;
  margin-right: .75rem;
  padding: .25rem .5rem;
  border-radius: 6px;
  color: #1d4ed8;
  text-decoration: none;
  background: #eef2ff;
}
header nav a:hover { background: #dbe4ff; }
main h1 { margin-top: 0; }
ul.regions { list-style: none; padding: 0; }
ul.regions li { margin: .35rem 0; }
ul.regions a {
  display: block;
  padding: .6rem .9rem;
  background: #fff;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  color: #1d4ed8;
  text-decoration: none;
}
ul.regions a:hover { background: #f0f5ff; }
table.aggregate { margin-bottom: 1.5rem; }
table.aggregate td:first-child a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
table.aggregate td:first-child a:hover { text-decoration: underline; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .92rem;
}
th, td {
  border: 1px solid #e2e6ec;
  padding: .55rem .65rem;
  vertical-align: top;
  text-align: left;
}
th { background: #f1f4f9; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #fafbfd; }
td:first-child {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  text-align: center;
  width: 1.5em;
}
tr.row-added { background: #e6f4ea !important; }
tr.row-added td:first-child { color: #15803d; }
tr.row-removed { background: #fde2e2 !important; }
tr.row-removed td:first-child { color: #b91c1c; }
tr.row-unchanged td:first-child { color: #64748b; }
@media (prefers-color-scheme: dark) {
  body { background: #0f172a; color: #e2e8f0; }
  header { background: #1e293b; border-color: #334155; }
  header nav a { background: #1d4ed8; color: #fff; }
  ul.regions a, table { background: #1e293b; color: #e2e8f0; border-color: #334155; }
  th { background: #334155; }
  tbody tr:nth-child(even) { background: #243046; }
  td, th { border-color: #334155; }
  tr.row-added { background: #14532d !important; }
  tr.row-added td:first-child { color: #86efac; }
  tr.row-removed { background: #7f1d1d !important; }
  tr.row-removed td:first-child { color: #fca5a5; }
}
