:root {
  --desk: #e4e2db;
  --paper: #f7f6f2;
  --paper-2: #fbf8f2;
  --gold: #a68548;
  --ink: #1a1e22;
  --muted: #5c656e;
  --line: #1a1e22;
  --hair: #d5dbe0;
  --navy: #16324f;
  --oxblood: #8d2f2c;
  --oxblood-soft: #f6e8e6;
}

* { box-sizing: border-box; }

html { background: var(--desk); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--desk);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

.story-bar,
.banner { display: none; }

body[data-step="night"] .frame { padding-top: 1.65rem; }

body[data-step="night"] .paper {
  box-shadow: 0 16px 36px rgba(22, 36, 48, 0.08);
}

body[data-step="night"] .story-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 1rem 1.85rem 0.9rem;
  background: var(--paper);
  border: 1px solid #d5dbe3;
  border-bottom: none;
}

body[data-step="night"] .rail { border-top: 1px solid #e4dfd4; }

.story-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.story-parties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.15rem;
}

.story-parties li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.story-parties .flag {
  width: 2.15rem;
  height: 1.42rem;
}

body[data-step="inquiry"] .banner,
body[data-step="debrief"] .banner {
  display: flex;
}

.banner {
  flex-direction: column;
  background: var(--navy);
  color: #f4f7f8;
  border-bottom: 3px solid #c4b48a;
}

body[data-step="night"] .mast {
  border-bottom: 1px solid var(--hair);
}

body[data-step="night"] .imprint { display: none; }

.banner-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.75rem 0.8rem;
}

.banner .gov,
.banner .commission,
.banner .ref { color: #f4f7f8; }

.banner .flag-lg {
  border-color: rgba(255, 255, 255, 0.45);
}

.party-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.42rem 1.75rem 0.5rem;
  color: #f4f7f8;
  background: #10283e;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.party-line .party-kicker {
  margin: 0;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.92;
}

.party-line li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.party-line .flag {
  width: 1.65rem;
  height: 1.1rem;
  border-color: rgba(255, 255, 255, 0.4);
}

.site { min-height: 100vh; }
.site[hidden] { display: none; }

.before {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #d6d2c4;
}

.before[hidden] { display: none; }

.welcome {
  position: relative;
  width: min(36rem, 100%);
  padding: 2.35rem 2.6rem 2.5rem;
  background: #fff;
  border: 2px solid #000;
}

.uga-logo {
  display: block;
  width: min(22rem, 100%);
  height: auto;
  margin: 0 0 2.4rem;
}

.welcome .question {
  margin: 0 0 0.45rem;
  max-width: 12em;
  color: #000;
  font-family: Oswald, sans-serif;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.welcome .byline {
  margin: 0 0 1.25rem;
  color: #000;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.4;
}

.welcome .prose p {
  color: #000;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
}

.welcome .reach {
  margin: 0.2rem 0 0;
  color: #000;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

.welcome a {
  color: #ba0c2f;
}

.welcome .minutes {
  display: inline-block;
  margin: 1.35rem 0 1.45rem;
  padding: 0 0 0.35rem;
  border-bottom: 2px solid #ba0c2f;
  color: #000;
  font-family: Oswald, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}

.welcome .primary { margin-top: 1.75rem; }

.draft-mark {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  margin: 0;
  padding: 0.12rem 0.4rem;
  border: 1px solid #554f47;
  color: #554f47;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frame {
  max-width: 92rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.rail {
  background: var(--paper);
  border: 1px solid #d5dbe3;
  border-bottom: none;
}

.rail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0 1.85rem;
}

.rail li {
  margin: 0;
  padding: 0.85rem 0.05rem 0.7rem;
  border: none;
  color: #3e4c59;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail li.now {
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--navy);
}

.rail li.done { color: var(--ink); }

.rail-note {
  margin: 0;
  padding: 0 1.85rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.sheet {
  position: relative;
  background: var(--paper);
  min-height: 70vh;
  padding: 0 0 0.5rem;
  border: 1px solid #d5dbe3;
  border-top: none;
  box-shadow: none;
}

.gov {
  margin: 0;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.commission {
  margin: 0.16rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.ref {
  margin: 0 0 0 auto;
  color: var(--navy);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.ref span {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: 0;
  padding: 1.05rem 1.85rem 0.85rem;
  border-bottom: 3px double var(--navy);
}

.mast .doc {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mast .when {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#app { padding: 1.35rem 1.85rem 0.5rem; }

.opening {
  max-width: 40rem;
  min-height: 52vh;
  padding: 2.5rem 0 2rem;
}

.opening-kicker {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.opening-file {
  margin: 0 0 1.35rem;
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.opening-parties {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--hair);
}

.opening-parties li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
}

.opening-parties .flag {
  width: 4.4rem;
  height: 2.9rem;
}

.opening-rule {
  width: 2.5rem;
  height: 2px;
  padding: 0;
  background: var(--navy);
  transform-origin: left center;
  animation: open-rule 0.55s ease 0.3s both;
}

.opening-line {
  margin: 0;
  max-width: 36rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
  opacity: 0;
  animation: open-line 0.45s ease 0.45s forwards;
}

.opening .primary {
  opacity: 0;
  pointer-events: none;
  animation: open-line 0.45s ease 2s forwards;
}

@keyframes open-line {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; pointer-events: auto; }
}

@keyframes open-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .opening-rule,
  .opening-line,
  .opening .primary {
    animation: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22.5rem);
  gap: 2rem;
  align-items: start;
}

.spread-side {
  position: sticky;
  top: 1.25rem;
}

.column { max-width: 40rem; }

.computer-only {
  display: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  max-width: 28rem;
  color: var(--ink);
  flex-direction: column;
  justify-content: center;
}

.computer-only .brand {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.computer-only h1 {
  margin: 0 0 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.computer-only p { margin: 0.35rem 0; font-size: 1.1rem; line-height: 1.5; }

.question {
  margin: 0.15rem 0 0.9rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.cover { max-width: 44rem; }

.cover .question {
  max-width: 40rem;
  margin-bottom: 1.15rem;
  font-size: 2.2rem;
  line-height: 1.2;
}

.imprint {
  margin: 2rem 1.85rem 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
}

.imprint p { margin: 0.1rem 0; }

.prose p,
.sitrep p,
.cable p,
.morning p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.55;
}

.sitrep { margin: 0 0 1rem; }

.plot {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.sat {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #1a2428;
  background: #16324a;
}

.plot-line {
  margin: 0 0 0.2rem;
  max-width: 36rem;
  font-size: 1.15rem;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--navy);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.chain li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.chain li + li::before {
  content: "→";
  color: var(--navy);
  font-weight: 400;
}

.film-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

@media (max-width: 1280px) {
  .frame { padding-left: 0.85rem; padding-right: 0.85rem; }
  body[data-step="night"] .story-bar { padding-left: 1.15rem; padding-right: 1.15rem; }
  .banner-row,
  .party-line { padding-left: 1.1rem; padding-right: 1.1rem; }
  .mast,
  #app,
  .rail ol { padding-left: 1.15rem; padding-right: 1.15rem; }
  .rail li { letter-spacing: 0.08em; }
  .spread { grid-template-columns: 1fr; }
  .spread-side {
    position: static;
    max-width: 36rem;
  }
  .chain { font-size: 1.05rem; }
}

@media (min-width: 1700px) {
  .frame { max-width: 108rem; }
}

.dateline {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parties {
  margin: 0.2rem 0 1.25rem;
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.parties-label {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spread-side .parties,
.spread-side .log,
.spread-side .file,
.spread-side .signal {
  background: #fff;
  border: 1px solid #cfd6de;
  padding: 1rem 1.05rem 0.85rem;
}

.spread-side .parties {
  margin: 0;
  padding: 1rem 1.05rem 0.85rem;
  border-top: 4px solid var(--navy);
}

.spread-side .parties ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.spread-side .parties li {
  font-size: 1.45rem;
}

.spread-side .flag {
  width: 4.6rem;
  height: 3.05rem;
}

.spread-side .log,
.spread-side .file,
.spread-side .signal {
  margin: 0;
}

.oracle .readout {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
}

.oracle .readout-label {
  margin: 0 0 0.2rem;
  color: #9aa3ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oracle .figure {
  color: #f7f4ee;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.oracle .figure .unit { color: #d9c7a2; }

.oracle .meter {
  height: 6px;
  margin: 0.45rem 0 0.15rem;
  background: #2c3138;
  border-radius: 99px;
  overflow: hidden;
}

.oracle .meter span {
  background: #d9c7a2;
  border-radius: 99px;
}

.signal-word {
  margin: 0.2rem 0 0.15rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.parties ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.parties li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.flag {
  display: block;
  width: 2.7rem;
  height: 1.8rem;
  object-fit: cover;
  border: 1px solid rgba(22, 30, 40, 0.28);
  box-shadow: 0 1px 0 rgba(22, 30, 40, 0.06);
}

.flag-lg {
  width: 3.6rem;
  height: 2.4rem;
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.spread-side .shot { margin: 0; }

.oracle,
.spread-side .oracle {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #101218;
  color: #f4f1ea;
  border: 1px solid #2c3340;
  border-radius: 14px;
  box-shadow:
    0 22px 44px rgba(12, 16, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.oracle-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem 0.55rem;
}

.oracle-chrome .mark {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  box-shadow: inset 0 0 0 1px #d9c7a2;
}

.oracle-name { margin: 0; }

.oracle-name {
  color: #f7f4ee;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.oracle-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.15rem 0.85rem 1rem;
}

.human {
  align-self: flex-end;
  max-width: 92%;
  padding: 0.55rem 0.7rem 0.6rem;
  background: #2a3142;
  border-radius: 12px 12px 4px 12px;
}

.human .who {
  margin: 0 0 0.15rem;
  color: #9aa3ad;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.human p:last-child {
  margin: 0;
  color: #f4f1ea;
  font-size: 0.98rem;
  line-height: 1.45;
}

.turn {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.mark {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.08rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #101218 0 3px, #d9c7a2 3.4px 4.6px, transparent 5px),
    radial-gradient(circle at 50% 50%, transparent 0 7px, #243044 7.4px 100%);
  box-shadow: inset 0 0 0 1px #d9c7a2, 0 0 0 3px #1a2030;
}

.model-name {
  margin: 0 0 0.35rem;
  color: #f3efe6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.model-out p {
  margin: 0 0 0.45rem;
  color: #f4f1ea;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

.model-out p:last-child { margin-bottom: 0; }

.readout {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  margin: 0.15rem 0 0.95rem;
}

.figure {
  margin: 0;
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.figure .unit {
  margin-left: 0.08rem;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.meter {
  flex: 1;
  height: 4px;
  margin: 0 0 0.4rem;
  background: #d5dbe3;
}

.meter span {
  display: block;
  height: 100%;
  width: var(--fill);
  background: var(--navy);
}

.cable {
  margin: 1.1rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--navy);
}

.cable .label,
.file .label,
.log .label {
  margin: 0 0 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.log,
.file {
  margin: 1rem 0;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid var(--navy);
  background: transparent;
}

.log p {
  margin: 0.35rem 0;
  font-size: 1.05rem;
}

h2 {
  margin: 1.2rem 0 0.2rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

button,
input,
textarea { font: inherit; color: inherit; }

button.choice {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 0.95rem 0.15rem 0.95rem 0.7rem;
  border: none;
  border-top: 1px solid var(--hair);
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

button.choice:last-of-type { border-bottom: 1px solid var(--hair); }

button.choice .let {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

button.choice:hover {
  border-left-color: var(--navy);
  background: transparent;
}

button.choice:focus-visible {
  border-left-color: var(--navy);
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.qhead { display: inline; }

.num {
  margin-right: 0.4rem;
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

.field label,
.ask > label,
#gate label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  margin-top: 0.15rem;
}

button.primary,
button.secondary {
  display: inline-block;
  width: auto;
  min-width: 12rem;
  margin: 1rem 0.5rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
}

button.primary {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #f7f8f6;
  font-weight: 700;
}

.welcome button.primary {
  margin-top: 1.85rem;
  background: #ba0c2f;
  border: 1px solid #ba0c2f;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.welcome button.primary:focus-visible {
  outline-color: #000;
}

.class-gate {
  background: #d6d2c4;
  color: #000;
}

.class-gate .brand {
  color: #554f47;
  font-family: "Merriweather Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.class-gate h1 {
  color: #000;
  font-family: Oswald, sans-serif;
  font-weight: 500;
}

.class-gate p {
  font-family: Merriweather, Georgia, serif;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

button.primary:focus-visible,
button.secondary:focus-visible,
.scale label:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

fieldset {
  margin: 1.35rem 0 0;
  padding: 0.75rem 0 0;
  border: none;
  border-top: 1px solid var(--navy);
}

legend {
  padding: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

label.tick {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.6rem 0;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  accent-color: var(--navy);
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.7rem 0.2rem;
  border: none;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  background: transparent;
}

textarea {
  min-height: 8rem;
  border: 1px solid #c5ced6;
  background: var(--paper-2);
  padding: 0.75rem;
  resize: vertical;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.scale label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--navy);
  cursor: pointer;
}

.scale input { position: absolute; opacity: 0; }

.scale label:has(input:checked) {
  background: var(--navy);
  color: #f7f8f6;
}

.ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.file ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.file li { margin: 0.35rem 0; }

.ask { margin: 1.2rem 0; }

.error {
  margin: 0.6rem 0;
  color: var(--oxblood);
  font-weight: 700;
}

.muted { color: var(--muted); }

.colophon {
  margin-top: 2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th, td {
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

th { color: var(--navy); }

.account {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
}

body.register { background: #d6d2c4; }

.register-desk.is-open { align-items: flex-start; }

.welcome.register-sheet.is-open { width: min(76rem, 100%); }

.register-sheet .question { max-width: none; }

.register-gate label {
  display: block;
  margin: 1.15rem 0 0.35rem;
  color: #000;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-sheet input {
  width: min(22rem, 100%);
  border-bottom: 2px solid #000;
  color: #000;
  font-family: Merriweather, Georgia, serif;
}

.register-gate.is-open { display: none; }

.register-sheet .error {
  color: #ba0c2f;
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
}

.register-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 1.35rem 0 0.2rem;
}

.register-sheet button.secondary {
  margin: 0;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 2px solid #000;
  color: #000;
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.register-sheet button.secondary:focus-visible { outline-color: #000; }

.register-sheet button.remove {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #ba0c2f;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.register-sheet button.remove:focus-visible { outline-color: #000; }

.register-table {
  font-family: Merriweather, Georgia, serif;
  font-size: 0.98rem;
}

.register-sheet .register-table th {
  padding: 0.85rem 0.85rem 0.5rem 0;
  border-bottom: 2px solid #000;
  color: #000;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-sheet .register-table td {
  padding: 0.72rem 0.85rem 0.72rem 0;
  border-bottom: 1px solid #000;
  color: #000;
}

.register-table td.code,
.register-table td.score {
  font-variant-numeric: tabular-nums;
}

.register-table td.code { font-weight: 700; }

.register-table td.blank {
  padding: 1.45rem 0 1.6rem;
  border-bottom: 1px solid #000;
  color: #554f47;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.register-table .harm-yes {
  color: #ba0c2f;
  font-weight: 700;
}

.register-sheet .accounts { margin-top: 1.4rem; }

.register-sheet .account {
  margin: 0;
  padding: 0.85rem 0 0.9rem 0.9rem;
  border-bottom: 1px solid #000;
  border-left: 2px solid #ba0c2f;
  color: #000;
  font-family: Merriweather, Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.6;
}

.register-sheet .account .who {
  display: block;
  margin-bottom: 0.25rem;
  color: #554f47;
  font-family: "Merriweather Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  body:has(.class-gate) { background: #d6d2c4; }
  .site,
  .before { display: none; }
  .computer-only { display: flex; }
}
