:root { color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #000; color: #ccc;
  font: 16px/1.4 -apple-system, system-ui, sans-serif; -webkit-touch-callout: none; }
.screen { min-height: 100vh; padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
h1 { font-size: 24px; margin: 0 0 4px; color: #eee; }
h2 { font-size: 15px; margin: 28px 0 8px; color: #999; text-transform: uppercase; letter-spacing: .05em; }
.sub { color: #777; margin: 0 0 20px; font-size: 14px; }
.error { color: #ff6b6b; border: 1px solid #5a1f1f; padding: 10px; border-radius: 8px; white-space: pre-wrap; }
button { font: inherit; color: #ddd; background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 12px 16px; }
button.big { width: 100%; padding: 18px; font-size: 20px; background: #1d2a55; border-color: #2f427f; color: #fff; }
button.link { background: none; border: 0; padding: 4px 0; color: #7a9cff; }
button:disabled { opacity: .5; }
.list { list-style: none; padding: 0; margin: 0; }
.list button { width: 100%; text-align: left; margin-bottom: 8px; }
.list small { color: #888; display: block; }
table { border-collapse: collapse; width: 100%; margin: 6px 0 14px; font-size: 14px; }
td, th { text-align: left; padding: 4px 6px 4px 0; border-bottom: 1px solid #222; vertical-align: top; }
td:first-child { color: #999; }
.bad { color: #ff9a6b; }
.good { color: #7ddc8f; }
h3 { font-size: 15px; margin: 18px 0 4px; color: #bbb; }

/* night mode: pure black, nearly invisible */
#night { background: #000; display: flex; flex-direction: column; justify-content: space-between; }
#nightline { color: #3a3a3a; font-size: 12px; text-align: center; padding-top: 40vh; font-variant-numeric: tabular-nums; }
#detail { color: #4a4a4a; font: 11px/1.5 ui-monospace, monospace; opacity: 0; transition: opacity .3s; white-space: pre-wrap; margin: 12px 0; }
#detail.show { opacity: 1; }
#stop { position: relative; overflow: hidden; background: #000; border-color: #1c1c1c; color: #3a3a3a; font-size: 13px;
  -webkit-user-select: none; user-select: none; touch-action: none; }
#stopfill { position: absolute; inset: 0 auto 0 0; width: 0; background: #1a1a1a; }
#stop.holding #stopfill { width: 100%; transition: width 1.5s linear; }
#stoplabel { position: relative; }
