* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.phone {
  width: 100%;
  max-width: 340px;
  background: #1e293b;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

h1 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  text-align: center;
  color: #f8fafc;
}

.status {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  min-height: 18px;
}

.status.ready { color: #4ade80; }
.status.error { color: #f87171; }
.status.oncall { color: #fbbf24; }

input#number {
  width: 100%;
  padding: 14px;
  font-size: 20px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

input#number:focus { outline: 2px solid #6366f1; }

.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dialpad button {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  font-size: 20px;
  cursor: pointer;
}

.dialpad button:active { background: #334155; }

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-call { background: #22c55e; color: #052e16; }
.btn-hangup { background: #ef4444; color: #450a0a; }
.btn-mute { background: #334155; color: #f8fafc; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.incoming {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #422006;
  border: 1px solid #fbbf24;
}

.incoming.show { display: block; }

.incoming .caller {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fbbf24;
}

.incoming-actions {
  display: flex;
  gap: 12px;
}
