:root {
  --bg: #14181f;
  --panel: #1f2530;
  --text: #eef1f5;
  --muted: #8d97a6;
  --accent: #ffb020;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 18px/1.4 system-ui, sans-serif;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
main { max-width: 480px; margin: 0 auto; padding: 24px 0; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1rem; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
#status, #countdown { color: var(--muted); margin: 0 0 16px; min-height: 1.4em; font-size: .95rem; }

button {
  font: inherit; color: var(--text); background: var(--panel);
  border: 2px solid transparent; border-radius: 14px;
  padding: 14px 12px; min-height: 56px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:active { filter: brightness(1.3); }
button:disabled { opacity: .4; cursor: default; }

.stations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stations button.active { border-color: var(--accent); }
.stations button.playing { background: var(--accent); color: #14181f; font-weight: 600; }

.toggle {
  width: 100%; font-size: 1.3rem; font-weight: 600; min-height: 72px;
  background: var(--accent); color: #14181f; margin-bottom: 28px;
}
.toggle:disabled { background: var(--panel); color: var(--muted); }

.timer-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.timer-buttons button.on { border-color: var(--accent); }
#cancel { grid-column: 1 / -1; }
