:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --fg: #e7e9ee;
  --muted: #8a90a0;
  --accent: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --border: #2a2e38;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#app { width: 100%; max-width: 360px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
h1 { margin: 0; font-size: 22px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 12px; }
.error { color: var(--red); margin: 0; min-height: 18px; font-size: 14px; }
.hidden { display: none !important; }

input {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1115;
  color: var(--fg);
  text-align: center;
}
button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  transition: filter .15s;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: not-allowed; }

.status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.ready { background: var(--green); }
.dot.busy { background: var(--accent); }
.dot.error { background: var(--red); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.keypad button {
  background: #232733;
  color: var(--fg);
  font-size: 20px;
  padding: 16px 0;
}
.keypad button.wide { grid-column: span 3; background: #1a1d24; }

.actions { display: flex; flex-direction: column; gap: 8px; }
.call { background: var(--green); }
.hangup { background: var(--red); }
.secondary { background: #232733; color: var(--fg); }

.timer { text-align: center; font-size: 28px; font-variant-numeric: tabular-nums; }
