:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone {
  width: min(100%, 520px);
}

h1 {
  margin-top: 0;
  text-align: center;
}

.panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 20px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #1e293b;
  box-shadow: 0 12px 32px rgb(0 0 0 / 20%);
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

label {
  font-size: 0.88rem;
  color: #cbd5e1;
}

input,
button {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #475569;
  padding: 9px 12px;
  background: #0f172a;
  color: #f8fafc;
}

button {
  border: 0;
  padding: 9px 14px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #1d4ed8;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: #93c5fd;
}

#remote-audio {
  display: none;
}

@media (max-width: 420px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
