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

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.status-panel {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 16px 36px rgba(24, 32, 42, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #5f6f83;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
}

.status-grid div {
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  padding: 16px;
}

dt {
  margin-bottom: 8px;
  color: #657286;
  font-size: 0.84rem;
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 700;
}

.good {
  color: #146b4a;
}

.warn {
  color: #8a5a00;
}

.bad {
  color: #9e2430;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.apple-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.apple-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-message {
  margin: 0;
  color: #657286;
  font-size: 0.94rem;
  font-weight: 700;
}

.phone-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.phone-form label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 240px);
  color: #657286;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-form input {
  min-height: 42px;
  border: 1px solid #c9d2dc;
  border-radius: 8px;
  padding: 0 12px;
  color: #18202a;
  font: inherit;
  font-size: 1rem;
}

.phone-form button {
  min-height: 44px;
  border: 1px solid #18202a;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #18202a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.phone-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

#phone-message {
  margin-top: 12px;
}

.sms-consent {
  margin-top: 24px;
  border-top: 1px solid #e1e6ed;
  padding-top: 24px;
}

.sms-status {
  display: grid;
  gap: 12px;
}

.sms-status dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.sms-status div {
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  padding: 14px;
}

.sms-consent-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #344154;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.sms-consent-form button {
  width: fit-content;
  min-height: 44px;
  border: 1px solid #18202a;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #18202a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sms-consent-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

#sms-message {
  margin-top: 12px;
}

@media (max-width: 520px) {
  .shell {
    width: min(100vw - 24px, 960px);
    padding: 24px 0;
  }

  .status-panel {
    padding: 20px;
  }

  .apple-button,
  .phone-form button,
  .sms-consent-form button {
    width: 100%;
  }

  .phone-form {
    align-items: stretch;
  }
}
