:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  font-family: -apple-system, system-ui, sans-serif;
  background: #111; color: #eee;
  margin: 0; padding: 24px; max-width: 720px; margin: 0 auto;
}
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: #888; margin: 0 0 24px; font-size: 14px; }
.tc {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-size: clamp(48px, 16vw, 96px); font-weight: 700; letter-spacing: 2px;
  text-align: center; margin: 16px 0; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.tc.main { color: #4ade80; }
.tc.synced { color: #60a5fa; }
.meta { text-align: center; color: #999; font-size: 14px; margin-bottom: 24px; }
.meta b { color: #ddd; }
.controls { display: grid; gap: 12px; background: #1b1b1b; padding: 16px; border-radius: 12px; }
label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
input, select { background: #222; color: #eee; border: 1px solid #333; border-radius: 8px; padding: 8px; font-size: 14px; }
input[type=range] { padding: 0; }
button {
  background: #4ade80; color: #062; border: 0; border-radius: 10px;
  padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button.stop { background: #f87171; color: #400; }
.log { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 12px; color: #888; margin-top: 16px; min-height: 60px; }
a { color: #60a5fa; }
.status { text-align: center; color: #fbbf24; min-height: 20px; }
.diag { margin-top: 16px; }
.meter { height: 14px; background: #222; border-radius: 7px; overflow: hidden; border: 1px solid #333; }
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#4ade80,#fbbf24,#f87171); transition: width .05s linear; }
#stats { font-family: ui-monospace, monospace; font-size: 12px; color: #888; margin-top: 6px; text-align: center; }
