:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18324b;
  background: #f2f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding: 20px 14px;
  background: #f2f6fa;
}

.page-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  padding: 22px 20px;
  border: 1px solid #d8e2ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(31 65 96 / 7%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #42698d;
  font-size: 0.95rem;
  font-weight: 650;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #142b40;
  font-size: clamp(1.65rem, 7vw, 2rem);
  line-height: 1.2;
}

h2 {
  margin: 22px 0 8px;
  color: #142b40;
  font-size: 1.2rem;
  line-height: 1.3;
}

.intro,
.status,
.save-error p,
.saved-result p {
  font-size: 1.05rem;
  line-height: 1.55;
}

.intro {
  margin: 14px 0 20px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.primary-button {
  width: 100%;
  padding: 12px 18px;
  color: #fff;
  background: #1769aa;
}

.primary-button:hover:not(:disabled) {
  background: #10598f;
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid #b7cce0;
  color: #164f7d;
  background: #f6faff;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.support-code:focus-visible {
  outline: 3px solid #79b7ec;
  outline-offset: 3px;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 1.55em;
  margin: 14px 0 0;
  color: #3b566e;
}

.save-error p,
.saved-result p {
  margin: 0 0 12px;
  color: #3b566e;
}

.code-label {
  display: block;
  margin: 18px 0 7px;
  font-size: 1rem;
  font-weight: 650;
}

.support-code {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  border: 1px solid #b7cce0;
  border-radius: 10px;
  color: #142b40;
  background: #f8fbff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.82rem, 4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-align: center;
}

.copy-status {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: #3b566e;
  font-size: 0.95rem;
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.noscript-message {
  max-width: 560px;
  margin: 12px auto 0;
  padding: 0 14px;
  color: #3b566e;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 320px) {
  body {
    padding: 12px 10px;
  }

  .card {
    padding: 18px 14px;
    border-radius: 14px;
  }
}
