:root {
  color-scheme: light;
  --paper: #f5f7f5;
  --ink: #173c33;
  --muted: #657b71;
  --line: #d8e1da;
  --sage: #e2eae3;
  --amber: #865c18;
  --gutter: clamp(1.25rem, 4vw, 8rem);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #5a8a71; outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.panel { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.brand {
  position: fixed;
  z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 110rem);
  font-size: clamp(2.5rem, 13vw, 28rem);
  letter-spacing: .13em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: top 750ms cubic-bezier(.22,.7,.2,1), left 750ms cubic-bezier(.22,.7,.2,1),
    transform 750ms cubic-bezier(.22,.7,.2,1), font-size 750ms, width 750ms;
  pointer-events: none;
}
.brand img { display: block; width: 100%; max-height: 35vh; object-fit: contain; }
.panel.active .brand {
  top: clamp(1.5rem, 4vh, 5rem);
  left: calc(100% - var(--gutter));
  transform: translate(-100%, 0);
  width: clamp(6.5rem, 13vw, 32rem);
  font-size: clamp(1.125rem, 2.35vw, 5.8rem);
}
.panel.active .brand img { max-height: 7vh; }
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vh, 5rem) clamp(1.5rem, 5vw, 8rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(6rem, 13vh, 18rem) var(--gutter) clamp(3rem, 7vh, 10rem);
  align-items: stretch;
}
.lead-grid:empty { display: none; }
.lead-grid.multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  min-height: 0;
  animation: arrive 600ms ease both;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: clamp(5rem, min(23vw, 44vh), 62rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.065em;
  padding-right: .065em;
  white-space: nowrap;
}
.multiple .timer { font-size: clamp(3.5rem, min(14vw, 32vh), 38rem); }
.many .timer { font-size: clamp(3.5rem, min(12vw, 23vh), 33rem); }
.lead-copy {
  margin: clamp(1rem, 3vh, 4rem) 0 0;
  font-size: clamp(1rem, 2.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.5;
  min-height: 3em;
  letter-spacing: .055em;
  max-width: 38ch;
  overflow-wrap: anywhere;
}
.multiple .lead-copy { font-size: clamp(1rem, 1.65vw, 4rem); }
.lead-copy strong { font-weight: 700; }
.center-message {
  display: block;
  font-size: clamp(3rem, min(9vw, 18vh), 25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--amber);
}
.multiple .center-message { font-size: clamp(2rem, min(5.4vw, 12vh), 15rem); }
.center-caption { color: var(--muted); }
.connection {
  position: fixed;
  z-index: 2;
  left: var(--gutter); bottom: 1rem;
  margin: 0;
  font-size: clamp(.875rem, 1vw, 1.75rem);
  color: var(--muted);
  background: var(--paper);
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@keyframes arrive { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .lead-grid { padding-top: 6.5rem; }
  .lead-grid.multiple { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .multiple .lead { min-height: 33vh; min-height: 33dvh; padding: 1rem 0; }
  .multiple .timer, .many .timer { font-size: clamp(4.5rem, 24vw, 10rem); }
  .lead-copy, .multiple .lead-copy { font-size: clamp(1rem, 4.1vw, 1.5rem); }
  .multiple .center-message { font-size: clamp(2.5rem, 10vw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Administration uses the same type and palette, with ordinary form controls. */
.console { max-width: 68rem; padding: clamp(1.5rem, 4vw, 4rem); margin: 0 auto; }
.console-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.wordmark-logo { display: block; width: clamp(9rem, 18vw, 14rem); height: auto; }
.console h1 { font-size: clamp(1.7rem,4vw,2.5rem); letter-spacing: -.03em; margin: 2.2rem 0 1rem; }
.console h2 { font-size: 1.2rem; margin: 0 0 1.2rem; }
.console p { line-height: 1.6; }
.console section { padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.controls { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; }
.field { display: grid; gap: .55rem; min-width: 10rem; font-size: 1rem; }
input, select { background: white; border: 1px solid #b7c7bc; border-radius: .35rem; color: var(--ink); padding: .8rem 1rem; min-height: 3rem; max-width: 100%; }
.broker-field { flex: 1 1 23rem; }
.broker-field select { width: 100%; }
button, .button { border: 1px solid var(--ink); border-radius: .35rem; background: var(--ink); color: white; padding: .8rem 1rem; min-height: 3rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.secondary { background: transparent; color: var(--ink); border-color: #b7c7bc; }
.danger { color: #8a3530; background: transparent; border-color: #cdb5b1; }
.notice { padding: .8rem 1rem; background: var(--sage); border-radius: .35rem; }
.admin-lead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.admin-lead p { margin: .3rem 0; }
.login { max-width: 28rem; margin: min(14vh, 8rem) auto; padding: 1.5rem; }
.login form { display: grid; gap: 1.25rem; margin-top: 2rem; }
.login h1 { font-size: 1.8rem; margin-top: 2.5rem; }
.error { color: #8a3530; }
@media (max-width: 480px) { .console-header { align-items: start; flex-direction: column; } .controls > .field { width: 100%; } }
.qa-console { padding: 1.5rem; }
#qa-stage { position: relative; margin: 1.5rem auto; }
#qa-frame { position: absolute; top: 0; left: 0; transform-origin: top left; border: 0; outline: 1px solid var(--line); }
