:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f6f7f9;
  color: #111827;
}

.container {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 16px;
}

.header {
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 4px 0;
  font-size: 28px;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.muted {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  background: #111827;
  color: white;
  border-color: #111827;
}

.screen {
  margin-top: 4px;
}

.hidden {
  display: none;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
}

.phone {
  display: grid;
  grid-template-columns: 64px 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.prefix {
  display: grid;
  place-items: center;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  font-weight: 700;
}

.phone input {
  border: none;
  border-radius: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary,
.secondary {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  border: 1px solid #111827;
  background: #111827;
  color: white;
}

.secondary {
  border: 1px solid #e5e7eb;
  background: white;
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 14px;
  min-height: 20px;
  font-size: 14px;
}

.status.error {
  color: #b91c1c;
}

.status.ok {
  color: #065f46;
}

.summary {
  margin: 10px 0 14px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
}

.footer {
  margin-top: 12px;
}
