:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f8;
  color: #182230;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(circle at top, #ffffff 0, #eef2f7 55%, #e6ebf2 100%);
}

.phone-shell,
.message-shell {
  width: min(100%, 25rem);
  padding: 1.5rem;
  border: 1px solid #d8dee8;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.25rem 3rem rgba(21, 35, 52, 0.12);
}

header { margin-bottom: 1.25rem; }
.eyebrow { margin: 0 0 0.25rem; color: #526174; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; }
h1 { margin: 0; font-size: 1.8rem; }
h2 { margin: 1.25rem 0 0.65rem; font-size: 0.95rem; }
label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 650; }

input,
button {
  min-height: 2.75rem;
  border: 1px solid #b8c2cf;
  border-radius: 0.65rem;
  font: inherit;
}

input { width: 100%; padding: 0.65rem 0.8rem; font-size: 1.1rem; }
input:focus,
button:focus-visible { outline: 3px solid rgba(28, 103, 235, 0.25); outline-offset: 2px; }
button { padding: 0.55rem 0.8rem; background: #edf2f8; color: #172131; cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { background: #e0e8f3; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
#dial { background: #1769e0; border-color: #1769e0; color: white; }
#dial:hover:not(:disabled) { background: #1059c2; }
.danger { background: #fff0f0; border-color: #eab6b6; color: #9c2525; }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-top: 0.8rem; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.keypad button { font-size: 1.05rem; }
.status { display: inline-block; margin: 0.8rem 0 0; padding: 0.3rem 0.55rem; border-radius: 99rem; background: #e8edf4; color: #425269; font-size: 0.8rem; }
.status[data-state="connected"], .status[data-state="active"] { background: #e3f7ea; color: #126234; }
.status[data-state="failed"] { background: #ffeded; color: #922828; }
.error { min-height: 1.35rem; margin: 1rem 0 0; color: #a22222; font-size: 0.85rem; }
.notice { margin: 0.6rem 0 0; color: #5b6879; font-size: 0.78rem; line-height: 1.45; }
.message-shell { text-align: center; }
.message-shell p { color: #526174; line-height: 1.5; }
