/* The look every page and every component inherits (AGENTS.md §6): the
   company's blue on a pale ground in the light, on navy in the dark.
   No font to fetch, nothing that can fail to load. */
:root {
  --ground: #f4f7fc;
  --surface: #ffffff;  /* what sits ON the ground: a card, a field, a button */
  --soft: #e2edfa;     /* the one that is picked, and a person's own words */
  --ink: #16233a;
  --quiet: #5f6b7d;
  --line: #d0dcec;
  --brand: #1463bd;    /* the company's blue: its name, a heading, what is picked */
  --go: #1463bd;
  --go-ink: #ffffff;
  --no: #a8432f;
  --yes: #2f7a52;
  --accent: #1463bd;   /* what is alive right now: a step running, an agent thinking */
  --ring: color-mix(in srgb, var(--brand) 22%, transparent);
  --lift: 0 1px 2px rgba(22, 35, 58, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, ui-serif, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0a1524;
    --surface: #101f36;
    --soft: #173d6b;
    --ink: #e8eef7;
    --quiet: #93a3b8;
    --line: #22354f;
    --brand: #6fb1f2;
    --go: #4a9bea;
    --go-ink: #06131f;
    --no: #e09a86;
    --yes: #7fb898;
    --accent: #6fb1f2;
    --lift: none;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main.door {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}
main.door > div { width: 100%; max-width: 23rem; }
h1 { font: 600 24px/1.25 var(--serif); color: var(--brand); margin: 0 0 6px; }
p { margin: 0 0 22px; color: var(--quiet); font-size: 15px; overflow-wrap: anywhere; }
a { color: inherit; }
button {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--go);
  color: var(--go-ink);
  font: 600 16px/1 inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { opacity: .45; }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
button.plain {
  width: auto;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 500;
  font-size: 14px;
}
#msg { margin: 18px 0 0; font-size: 14px; min-height: 1.4em; color: var(--no); }
#msg.ok { color: var(--yes); }
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.top button.icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--quiet); }
header.top button.icon:hover { color: var(--brand); border-color: var(--brand); }
header.top button.icon[hidden] { display: none; }
header.top button.icon.busy { opacity: 1; color: var(--brand); }
header.top button.icon.busy svg { animation: top-turn 1s linear infinite; }
@keyframes top-turn { to { transform: rotate(360deg); } }
header.top .brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--brand); }
header.top .brand svg { flex: none; }
header.top strong { font: 700 13.5px/1.25 var(--serif); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
main.page { padding: 14px 18px 0; max-width: 64rem; margin: 0 auto; }
header.top .who { display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: 14px; min-width: 0; }
header.top .who span { overflow-wrap: anywhere; }
/* The veil: the company's mark over the page while its parts are set in. */
.veil {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--ground); color: var(--brand);
  transition: opacity .35s ease;
}
.veil.gone { opacity: 0; pointer-events: none; }
.veil svg { animation: veil-breathe 1.6s ease-in-out infinite; }
.veil-bar { width: 84px; height: 3px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.veil-bar::after { content: ""; display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--brand); animation: veil-run 1.1s ease-in-out infinite; }
@keyframes veil-breathe { 50% { opacity: .55; transform: scale(.96); } }
@keyframes veil-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .veil svg, .veil-bar::after { animation: none; } }
