:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #687384;
  --accent: #f5a300;
  --accent-dark: #c47f00;
  --ok: #1f9d55;
  --warn: #d97706;
  --off: #9aa3ae;
  --danger: #dc2626;
  --border: #e2e6ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151a;
    --card: #1b2128;
    --text: #e8ecf0;
    --muted: #9aa5b1;
    --border: #2c343d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--accent);
  color: #1c1300;
  font-weight: 700;
  font-size: 18px;
}
header .sub { font-weight: 400; font-size: 13px; margin-left: auto; opacity: .8; }
select, input, button { font: inherit; }
select, input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
}
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  color: #fff; background: var(--off);
}
.badge.ok { background: var(--ok); }
.badge.warn { background: var(--warn); }
.muted { color: var(--muted); font-size: 13px; }
.big { font-size: 28px; font-weight: 700; line-height: 1.2; }
button.primary, button.danger {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
button.primary { background: var(--ok); }
button.danger { background: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
