/* Shared base styles for the web pages. Tokens come from tokens.css (generated from theme.ts). */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-navy);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body, 1.35);
}
main {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-screen-top) var(--space-screen-x);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100dvh;
}
h1 {
  margin: 0;
  font-size: var(--font-size-title);
  line-height: 1.1;
}
p {
  margin: 0;
  color: var(--color-muted-strong);
}
a {
  color: var(--color-navy);
  font-weight: 700;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-button-large);
  border-radius: var(--radius-card);
  border: var(--border-width) solid var(--color-navy);
  background: var(--color-navy);
  color: var(--color-paper);
  font: inherit;
  font-size: var(--font-size-button);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: var(--color-paper);
  color: var(--color-navy);
}
.disclaimer {
  font-size: var(--font-size-caption);
  color: var(--color-muted);
  text-align: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site {
  font-size: var(--font-size-label);
  font-weight: 700;
  color: var(--color-muted);
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-large);
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead {
  font-size: var(--font-size-body-large);
  line-height: 1.5;
}
.note {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 16px;
  color: var(--color-navy);
}
.actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: var(--font-size-label);
}
.field input {
  min-height: var(--touch-button);
  border-radius: var(--radius-card);
  border: var(--border-width) solid var(--color-navy);
  padding: 0 14px;
  font: inherit;
  font-weight: 400;
  font-size: var(--font-size-body-large);
  color: var(--color-navy);
}
.field small {
  font-weight: 400;
  color: var(--color-muted);
  font-size: var(--font-size-small);
}
.error {
  background: var(--color-alert-bg);
  border: var(--border-width) solid var(--color-alert-border);
  color: var(--color-alert-text);
  border-radius: var(--radius-card);
  padding: 12px 16px;
}
.center {
  text-align: center;
}
.button:disabled {
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
.head {
  border-radius: var(--radius-large);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.head.alert {
  background: var(--color-alert-bg);
  border: var(--border-width) solid var(--color-alert-border);
}
.head.info {
  background: var(--color-signal-light);
}
.head.safe {
  background: var(--color-safe);
}
.head.safe h1,
.head.safe p {
  color: var(--color-paper);
}
.button.store {
  gap: 10px;
  background: var(--color-navy);
  color: var(--color-paper);
}
.button.store[aria-disabled='true'] {
  opacity: 0.6;
  pointer-events: none;
}
