@font-face {
  font-family: "Clarity City";
  src: url("OpenType/ClarityCity-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --fg: #1d1d1f;
  --bg: #ffffff;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --accent: #0071e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f7;
    --bg: #1c1c1e;
    --muted: #a1a1a6;
    --border: #3a3a3c;
    --accent: #2997ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

@media (max-width: 640px) {
  main {
    padding: 28px 16px 56px;
  }
}

h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Clarity City", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.logo {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 22px;
  }

  .logo {
    width: 26px;
    height: 26px;
  }
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.field {
  margin: 20px 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field:has(input[type="checkbox"]) label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
}

#status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  table {
    font-size: 13px;
  }

  th, td {
    padding: 8px 6px;
  }
}

a.download {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a.download:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.yes {
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.badge.no {
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
}

.badge.beta {
  background: rgba(255, 149, 0, 0.15);
  color: #c93400;
}

.badge.rc {
  background: rgba(88, 86, 214, 0.15);
  color: #5856d6;
}

.note {
  margin-top: 40px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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