:root {
  --bg: #fafaf7;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --line: #d9d9d2;
  --accent: #1f4e79;
  --alert: #a12b2b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --fg: #ecece6;
    --muted: #a3a39b;
    --line: #3a3a36;
    --accent: #8db8e0;
    --alert: #e58a8a;
  }
}

body {
  font-family: system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 140px;
}

input[type=text],
select {
  font-size: 16px;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}

button {
  min-height: 52px;
  font-size: 18px;
  width: 100%;
}

#btn-start,
#btn-next {
  background: var(--accent);
  color: var(--bg);
}

#timeline {
  list-style: none;
  padding: 0;
}

.line {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

#controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 36px;
  padding: 8px 16px;
  background: var(--bg);
}

#notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

#msg {
  color: var(--alert);
  min-height: 1.7em;
}

[hidden] {
  display: none !important;
}
