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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.panel {
  width: min(100%, 440px);
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
}

.lead {
  margin: 16px 0 28px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

.button-stack {
  display: grid;
  gap: 16px;
}

button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 4px solid #f4c430;
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.returner-button,
.primary-button {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 22px rgb(15 118 110 / 18%);
}

.returner-button:active,
.primary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  background: #ffffff;
  color: #374151;
  border: 2px solid #cbd5e1;
}

.hidden {
  display: none;
}

.status {
  min-height: 3.2em;
  margin: 20px 0 0;
  color: #155e3f;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
}

.status.error {
  color: #b42318;
}

@media (max-width: 380px) {
  h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  button {
    min-height: 60px;
    font-size: 18px;
  }
}

