/* TuskTokens (lib/core/theme/tusk_tokens.dart), light then dark. Text is the
   system face, as round 10 draws the /c/{code} page. */
:root {
  color-scheme: light dark;
  --surface: #faf8f4;
  --on-surface: #1c1b18;
  --on-surface-muted: #5c5850;
  --raised: #ffffff;
  --accent-text: #0f5c46; /* TuskTokens.accentText: accent on surface */
  --busy: #ede9e1;
  --on-busy: #3f3b33;
  --separator: #e2dcd1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #131311;
    --on-surface: #edeae4;
    --on-surface-muted: #a5a099;
    --raised: #1e1d1a;
    --accent-text: #4fb892;
    --busy: #26251f;
    --on-busy: #c9c4bb;
    --separator: #302e29;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font: 1rem/1.5 -apple-system, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  box-sizing: border-box;
  max-width: 30rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  overflow-wrap: anywhere;
}

p, h1, h2 { margin: 0; }

/* The classes below set display, which would otherwise beat [hidden]. */
[hidden] { display: none !important; }

.retry {
  align-self: flex-start;
  min-height: 48px; /* AppConstants.minTapTargetSize */
  display: flex;
  align-items: center;
  color: var(--accent-text);
  font-weight: 600;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-text);
}

.muted {
  font-size: 0.875rem;
  color: var(--on-surface-muted);
}

.who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h1 {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
}

.initial {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--busy);
  color: var(--on-busy);
  font-size: 1.0625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

#open {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

section h2 {
  font-size: 1rem;
  font-weight: 600;
}

.code-box {
  background: var(--raised);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.code {
  font: 1.875rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}
