:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6f5;
  color: #172a29;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 28px 20px;
  display: grid;
  place-items: center;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  padding: 10px 16px;
  color: white;
  background: #14594f;
}

.skip-link:focus { top: 10px; }

.check-in {
  width: min(100%, 500px);
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #d5e0dc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(23 42 41 / 5%);
}

.context {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: #175c50;
}

h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.amharic {
  margin: 10px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #175c50;
}

.intro {
  margin: 24px 0;
  line-height: 1.6;
  color: #384b49;
  text-wrap: pretty;
}

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

.button {
  display: flex;
  min-height: 58px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button span { font-size: 0.875rem; font-weight: 500; }

.primary { background: #14594f; color: white; }
.primary:hover:not(:disabled) { background: #0e453d; }
.primary:disabled { opacity: 0.68; cursor: wait; }

.secondary {
  border-color: #b7c9c4;
  color: #183f3b;
  background: #fff;
}

.secondary:hover { background: #f1f7f5; }

.status {
  min-height: 1.5em;
  margin: 20px 0 0;
  line-height: 1.5;
  color: #3e5450;
}

.status.error { color: #a62222; }

.result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #d5e0dc;
}

.result h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.result p { margin: 8px 0 16px; line-height: 1.5; }

.result-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.result-links a, .text-action {
  border: 0;
  padding: 6px;
  background: none;
  color: #14594f;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.manual-copy { display: block; margin-top: 18px; line-height: 1.5; }

.manual-copy input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #859e96;
  border-radius: 6px;
  font: inherit;
}

.privacy {
  margin: 24px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #435b56;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #257d70;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}