:root {
  color-scheme: dark;
  --ink: #e8e1d3;
  --ink-muted: #a9aaa2;
  --paper: #d8d1bf;
  --paper-ink: #172021;
  --black: #080d0e;
  --surface: #111a1b;
  --surface-soft: rgba(23, 34, 34, 0.74);
  --line: rgba(218, 225, 212, 0.17);
  --line-strong: rgba(218, 225, 212, 0.38);
  --cyan: #55a9b7;
  --violet: #8d6ca4;
  --carmine: #b94f58;
  --ochre: #c89c3d;
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Two entrances share the existing paper / painted-atlas visual language. */
.entry-choices { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.entry-choices > div { flex: 1 1 220px; }
.entry-choices button { width: 100%; min-height: 62px; }
.entry-choices p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.agent-header { max-width: 850px; margin-bottom: 32px; }
.agent-header h1 { font-size: clamp(34px, 3.5vw, 56px); line-height: 1.1; margin: 24px 0; }
.agent-header p, .agent-handoff p, .agent-summary p, .agent-footer p, .agent-episode p, .agent-experiments p, .agent-map p { font-size: 18px; line-height: 1.55; max-width: 85ch; }
.agent-handoff { border-left: 3px solid var(--cyan); padding: 8px 24px; background: var(--surface); }
.agent-handoff h2, .agent-summary h2, .agent-episode h2 { font-size: 28px; line-height: 1.25; }
.agent-handoff .agent-privacy { color: var(--ink-muted); font-size: 16px; }
.agent-handoff details, .agent-export, .agent-map { margin: 24px 0; }
.agent-handoff summary, .agent-export summary, .agent-map summary, .agent-episode summary { cursor: pointer; font-size: 18px; line-height: 1.5; padding: 12px 0; }
.agent-handoff pre, .agent-export pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; max-width: 90ch; padding: 20px; background: var(--black); }
.agent-summary, .agent-experiments { padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.agent-episode { padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.agent-scene { max-width: 960px; }
.agent-scene h2 { font: 26px/1.45 Georgia, serif; text-transform: none; letter-spacing: normal; }
.agent-scene .agent-scene__note { color: var(--ink-muted); font-size: 16px; }
.agent-header--compact { margin-bottom: 8px; }
.agent-header--compact h1 { font-size: 36px; margin: 18px 0; }
.agent-handoff--compact { background: none; border: 0; padding: 0; }
.agent-handoff--compact details { margin: 0; }
.agent-summary--compact { padding: 12px 0; }
.agent-summary .agent-progress { font-size: 16px; color: var(--ink-muted); letter-spacing: .04em; }
.agent-episode dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.agent-episode dt { font-size: 16px; color: var(--cyan); margin-bottom: 10px; }
.agent-episode dd { font: 20px/1.5 Georgia, serif; margin: 0; overflow-wrap: anywhere; }
.agent-interpretation { padding: 12px 24px; border-left: 3px solid var(--ochre); background: var(--surface); }
.agent-interpretation h3 { font-size: 20px; }
.agent-episode--confirmed .agent-interpretation { border-color: var(--cyan); }
.agent-episode--rejected .agent-interpretation { border-color: var(--carmine); }
.agent-episode__actions, .agent-footer { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.agent-footer p { flex-basis: 100%; }
.agent-finding { color: var(--ink); font-weight: 700; }
.agent-map__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.agent-voice { position: relative; opacity: .65; min-width: 0; }
.agent-voice .intro-portrait { aspect-ratio: 1; width: 100%; position: relative; }
.agent-voice--observed { opacity: 1; border-top: 3px solid var(--cyan); }
.agent-voice strong, .agent-voice span { display: block; padding-top: 8px; font-size: 16px; }
.agent-voice span { color: var(--ink-muted); font-size: 14px; }
@media (max-width: 1200px) { .agent-episode dl { grid-template-columns: 1fr; } .agent-map__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

* {
  box-sizing: border-box;
}

html {
  min-width: 1100px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #0d1516;
  overflow-x: hidden;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #f1ca6a;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-ink);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.world,
.world > div {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.world {
  z-index: -2;
  background:
    radial-gradient(circle at 74% 10%, rgba(53, 93, 94, 0.24), transparent 35%),
    radial-gradient(circle at 4% 92%, rgba(128, 50, 51, 0.18), transparent 33%),
    linear-gradient(113deg, #0a1011 0%, #111b1c 49%, #0b1213 100%);
}

.world__wash {
  opacity: 0.5;
  background:
    linear-gradient(88deg, transparent 0 6%, rgba(113, 153, 151, 0.06) 7%, transparent 12%),
    linear-gradient(171deg, transparent 0 57%, rgba(193, 146, 59, 0.06) 64%, transparent 74%);
  filter: blur(14px);
}

.world__flare {
  left: 38%;
  width: 30%;
  background: linear-gradient(103deg, transparent, rgba(234, 220, 178, 0.035), transparent);
  transform: skewX(-14deg);
}

.world__grain {
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.world__film {
  inset: 0 auto 0 15px;
  width: 24px;
  opacity: 0.2;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(230, 223, 202, 0.55) 15px 22px, transparent 23px 36px);
}

.boot-copy,
.noscript-panel {
  margin: 20vh auto;
  max-width: 560px;
  padding: 40px;
}

.paper-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 18px 4px 12px;
  color: var(--paper-ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  clip-path: polygon(0 8%, 96% 0, 100% 82%, 9% 100%);
  transform: rotate(-0.45deg);
}

.primary-action,
.secondary-action,
.choice-action,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 8px 0 22px;
  color: #f6efe1;
  background: #b64632;
  border: 1px solid rgba(255, 227, 201, 0.25);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.primary-action b {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 22px;
}

.primary-action:hover:not(:disabled) {
  background: #d25b40;
  transform: translate(-2px, -2px);
}

.primary-action:disabled {
  cursor: not-allowed;
  filter: saturate(0.2);
  opacity: 0.38;
}

.secondary-action {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(10, 16, 17, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-button {
  padding: 6px 0;
  color: var(--ink-muted);
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 50px;
  align-items: center;
  padding: 0 34px 0 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 17, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.brand__eyebrow {
  color: #718382;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.brand__title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.topbar__phase {
  color: #86908c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}

.topbar__restart {
  color: #b9a788;
}

.session-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 34px 8px 58px;
  color: #adbbb5;
  border-bottom: 1px solid rgba(200, 156, 61, 0.3);
  background: linear-gradient(90deg, rgba(200, 156, 61, 0.13), rgba(8, 14, 15, 0.72));
}

.session-banner > span {
  color: #d3ad55;
  text-shadow: 0 0 12px rgba(211, 173, 85, 0.55);
}

.session-banner p {
  margin: 0;
  font-size: 12px;
}

.session-banner strong {
  color: #e5ddce;
  text-transform: uppercase;
}

.session-banner button {
  border: 0;
  color: #9aa6a1;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.app-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: calc(100vh - 50px);
}

.phase-rail {
  position: sticky;
  top: 50px;
  height: calc(100vh - 50px);
  padding: 78px 12px 28px 24px;
  border-right: 1px solid var(--line);
  background: rgba(8, 14, 15, 0.34);
}

.phase-rail ol {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-rail__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #53615f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.phase-rail__mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #394644;
  font-size: 12px;
  transform: rotate(45deg);
}

.phase-rail__mark::first-line {
  transform: rotate(-45deg);
}

.phase-rail__item.is-current {
  color: var(--ink);
}

.phase-rail__item.is-current .phase-rail__mark {
  color: #151d1e;
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 0 0 26px rgba(218, 209, 191, 0.22);
}

.phase-rail__item.is-done {
  color: #82928f;
}

.phase-rail__privacy {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 24px;
  margin: 0;
  color: #64706e;
  font-size: 12px;
  line-height: 1.45;
}

.stage {
  min-width: 0;
  padding: 48px clamp(28px, 3.4vw, 62px) 64px;
}

.stage-heading {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(260px, 410px);
  align-items: end;
  gap: 60px;
  margin-bottom: 30px;
}

.stage-heading h1 {
  max-width: 760px;
  margin: 0;
  color: #efe8db;
  font-size: clamp(36px, 3.3vw, 52px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
}

.stage-heading > p {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.stage-heading--compact {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  margin-bottom: 24px;
}

.stage-heading--compact h1 {
  font-size: clamp(32px, 2.7vw, 44px);
}

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.attribute-stack {
  border-top: 1px solid var(--line-strong);
}

.attribute-band {
  position: relative;
  display: grid;
  grid-template-columns: 190px 186px minmax(370px, 1fr) 30px;
  min-height: 132px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--attr-color) 9%, transparent), transparent 68%);
  overflow: hidden;
  transition: background 220ms ease;
}

.attribute-band::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--attr-color);
  box-shadow: 0 0 30px var(--attr-color);
  content: '';
}

.attribute-band:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--attr-color) 16%, transparent), transparent 78%);
}

.attribute-band__name {
  display: flex;
  flex-direction: column;
  padding-left: 26px;
  text-transform: uppercase;
}

.attribute-band__name span {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.attribute-band__name strong {
  font-size: 27px;
  letter-spacing: -0.05em;
}

.attribute-control {
  display: grid;
  grid-template-columns: 36px 76px 36px;
  align-items: center;
  gap: 4px;
}

.attribute-control button {
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 0;
  color: var(--ink-muted);
  background: transparent;
  font-size: 34px;
  font-weight: 200;
  cursor: pointer;
}

.attribute-control button:hover:not(:disabled) {
  color: var(--attr-color);
}

.attribute-control button:disabled {
  opacity: 0.14;
  cursor: not-allowed;
}

.attribute-control output {
  color: #f4eee0;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 34px color-mix(in srgb, var(--attr-color) 45%, transparent);
}

.attribute-band__copy h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.attribute-band__copy p {
  max-width: 640px;
  margin: 0;
  color: #8e9a97;
  font-size: 12px;
  line-height: 1.4;
}

.attribute-band__voices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 9px;
  color: color-mix(in srgb, var(--attr-color) 70%, #8f9995);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attribute-band__level {
  display: grid;
  gap: 5px;
}

.attribute-band__level i {
  width: 7px;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--attr-color) 48%, transparent);
  transform: rotate(45deg);
}

.attribute-band__level i.is-filled {
  background: var(--attr-color);
  box-shadow: 0 0 12px var(--attr-color);
}

.allocation-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.allocation-footer strong {
  color: var(--ink);
}

.council-layout {
  display: grid;
  grid-template-columns: minmax(700px, 1fr) 340px;
  min-height: 660px;
  gap: 28px;
}

.council-main {
  min-width: 0;
}

.skill-grid {
  display: grid;
  gap: 7px;
}

.skill-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
}

.skill-row__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 3px solid var(--attr-color);
  background: color-mix(in srgb, var(--attr-color) 11%, rgba(8, 14, 15, 0.82));
  overflow: hidden;
}

.skill-row__label span {
  position: absolute;
  bottom: 10px;
  left: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.skill-row__label b {
  color: var(--attr-color);
  font-size: 34px;
}

.skill-row__tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 7px;
}

.skill-tile {
  position: relative;
  min-width: 0;
  height: 136px;
  padding: 0;
  border: 1px solid rgba(219, 226, 213, 0.11);
  color: var(--ink);
  background: #080d0e;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, transform 160ms ease, filter 160ms ease;
}

.skill-tile::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 5, 6, 0.98) 0 27%, rgba(3, 6, 7, 0.08) 66%);
  content: '';
}

.skill-tile__portrait,
.intro-portrait,
.voice-inspector__portrait,
.recognition-reveal__portrait,
.balance-entry__portrait {
  aspect-ratio: 1 / 1;
}

.skill-tile__portrait,
.intro-portrait,
.voice-inspector__portrait,
.balance-entry__portrait {
  background-color: #182223;
  background-image:
    url('./assets/voices-atlas-v2.webp'),
    radial-gradient(circle at 42% 35%, color-mix(in srgb, var(--skill-color) 75%, #d5c7ab), transparent 17%),
    conic-gradient(from 130deg at 50% 50%, #071011, var(--skill-color), #0a1112, var(--skill-color), #05090a);
  background-position:
    calc(var(--portrait-col) * 20%) calc(var(--portrait-row) * 33.333%),
    center,
    center;
  background-size: 600% 400%, cover, cover;
  background-repeat: no-repeat;
}

.skill-tile__portrait {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 100%;
  height: auto;
  opacity: var(--voice-intensity, 1);
  filter: saturate(0.36) contrast(1.08) brightness(0.78);
  transform: scale(1.03);
  transition: filter 260ms ease, transform 260ms ease, opacity 260ms ease;
}

.skill-tile:hover,
.skill-tile.is-selected {
  z-index: 2;
  border-color: color-mix(in srgb, var(--skill-color) 72%, white);
  transform: translateY(-2px);
}

.skill-tile:hover .skill-tile__portrait,
.skill-tile.is-selected .skill-tile__portrait,
.skill-tile.is-loud .skill-tile__portrait {
  filter: saturate(1.08) contrast(1.04) brightness(1.06) drop-shadow(0 0 12px color-mix(in srgb, var(--skill-color) 52%, transparent));
  transform: scale(1.08);
}

.skill-tile.is-quiet .skill-tile__portrait {
  opacity: 0.28;
  filter: grayscale(1) contrast(1.35) brightness(0.44);
}

.skill-tile.is-loud::before {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 1px solid #f1eadb;
  background: var(--skill-color);
  content: '';
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--skill-color);
}

.skill-tile__crown {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  display: none;
  place-items: center;
  border: 1px solid rgba(243, 210, 123, 0.72);
  border-radius: 50%;
  background: rgba(8, 13, 14, 0.82);
  color: #f3d27b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 14px #dca937;
}

.skill-tile.is-signature .skill-tile__crown {
  display: grid;
}

.skill-tile__copy {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}

.skill-tile__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill-tile__copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #7e8986;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-tile.is-untested .skill-tile__portrait {
  opacity: 0.15;
  filter: grayscale(1) contrast(1.2) brightness(0.48);
}

.skill-tile.is-untested::after {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(218, 225, 212, 0.035) 10px 11px),
    linear-gradient(to top, rgba(2, 5, 6, 0.99) 0 34%, rgba(3, 6, 7, 0.46) 76%);
}

.skill-tile__untested {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 7px;
  padding: 3px 5px;
  border: 1px solid rgba(218, 225, 212, 0.24);
  color: #7f8a87;
  background: rgba(8, 13, 14, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.voice-inspector {
  position: relative;
  height: max-content;
  min-height: 0;
  border: 1px solid var(--line-strong);
  background: rgba(9, 14, 15, 0.82);
  box-shadow: 16px 18px 38px rgba(0, 0, 0, 0.25);
}

.voice-inspector__top {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
}

.voice-inspector__summary {
  position: sticky;
  top: 60px;
  z-index: 2;
  background: #0b1213;
  border-bottom: 1px solid var(--line);
}

.voice-inspector::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 23%, color-mix(in srgb, var(--attr-color) 10%, transparent), transparent 72%);
  content: '';
}

.voice-inspector__portrait {
  width: 100%;
  height: auto;
  filter: saturate(0.95) contrast(1.1);
  box-shadow: inset 0 -45px 44px rgba(6, 9, 10, 0.85);
}

.voice-inspector__header {
  position: relative;
  margin-top: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.voice-inspector__header p {
  margin: 0 0 4px;
  color: var(--attr-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.voice-inspector__header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.voice-inspector__header > span {
  color: #7d8986;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.voice-inspector__body {
  display: grid;
  gap: 12px;
  padding: 0 20px 18px;
}

.voice-inspector__body section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.voice-inspector__body h3 {
  margin: 0;
  color: var(--attr-color);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.voice-inspector__body p {
  margin: 0;
  color: #b7b9af;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.35;
}

.voice-inspector__body .voice-inspector__manifestation {
  grid-template-columns: 1fr;
  margin: 0 -20px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--attr-color) 5%, transparent);
}

.voice-inspector__manifestation p {
  color: #aeb4ae;
  line-height: 1.5;
}

.voice-inspector__body blockquote {
  margin: 0;
  padding: 13px 14px;
  border-left: 2px solid var(--attr-color);
  color: #e8e0d1;
  background: color-mix(in srgb, var(--attr-color) 8%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
}

.voice-inspector__risk {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.choice-action {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  color: #aeb5b0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-action:hover,
.choice-action.is-active {
  color: #f2eadb;
  border-color: var(--attr-color);
  background: color-mix(in srgb, var(--attr-color) 18%, transparent);
}

.choice-action--quiet {
  grid-column: 1 / -1;
}

.council-footer {
  position: sticky;
  z-index: 10;
  bottom: 0;
  margin-right: 368px;
  padding: 16px 0;
  background: linear-gradient(to top, #0d1516 72%, transparent);
}

.council-tray {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
}

.council-tray__count {
  color: #d9d2c4;
  font-size: 14px;
  font-weight: 900;
}

.council-tray > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.council-tray em {
  color: #697572;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.council-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: #8e9996;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.council-chip.is-signature {
  color: #efcf7a;
  border-color: rgba(239, 207, 122, 0.45);
}

.recognition-layout {
  display: grid;
  grid-template-columns: 190px minmax(570px, 820px) minmax(170px, 220px);
  min-height: calc(100vh - 184px);
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4vw, 72px);
}

.recognition-map {
  align-self: center;
}

.context-map {
  display: grid;
  gap: 15px;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}

.context-map__item {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 9px;
  color: #4f5d5a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-map__item i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.context-map__item.is-done {
  color: #788784;
}

.context-map__item.is-done i {
  background: currentColor;
}

.context-map__item.is-current {
  color: #e8e1d3;
}

.context-map__item.is-current i {
  background: #c5a354;
  box-shadow: 0 0 16px #c5a354;
}

.recognition-map > p:last-child {
  color: #66736f;
  font-size: 12px;
}

.recognition-scene {
  position: relative;
  padding: 14px 24px 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(110deg, rgba(25, 39, 39, 0.34), rgba(8, 14, 15, 0.1));
  animation: scene-reveal 520ms ease both;
}

.recognition-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: #697572;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.recognition-navigation .text-button {
  padding: 0;
  color: #aeb6b0;
  background: transparent;
}

.recognition-navigation .text-button:disabled {
  cursor: not-allowed;
  opacity: 0.2;
}

@keyframes scene-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.recognition-scene__context {
  margin: 0 0 24px;
  color: #c8a659;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.recognition-scene__line {
  position: absolute;
  top: -1px;
  left: 44px;
  width: 94px;
  height: 3px;
  background: #c8a659;
  box-shadow: 0 0 22px #c8a659;
}

.recognition-scene__eyebrow {
  margin: 0 0 10px;
  color: #74807d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recognition-scene h1 {
  margin: 0;
  color: #efe7d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.25;
}

.recognition-scene blockquote {
  margin: 24px 0 22px;
  padding-left: 18px;
  border-left: 2px solid #b94f58;
  color: #bfc2b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
}

.recognition-probe {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 2px solid #c8a659;
  background: rgba(200, 166, 89, 0.06);
}

.recognition-probe span,
.recognition-reveal__calibration span {
  display: block;
  margin-bottom: 6px;
  color: #8a9692;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recognition-probe p {
  margin: 0;
  color: #c4c5bb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
}

.recognition-scene__question {
  margin: 0 0 12px;
  color: #7f8a87;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recognition-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.recognition-actions button {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  color: #b7beb8;
  background: rgba(8, 13, 14, 0.58);
  cursor: pointer;
  text-align: left;
}

.recognition-actions button:hover {
  color: #f0e9db;
  border-color: #c4a259;
  background: rgba(196, 162, 89, 0.1);
}

.recognition-actions b {
  color: #66726f;
  font-size: 12px;
}

.recognition-actions span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.free-answer {
  margin-top: 17px;
}

.free-answer label {
  display: block;
  margin-bottom: 7px;
  color: #6f7b78;
  font-size: 12px;
}

.free-answer > div {
  display: grid;
  grid-template-columns: 1fr 82px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 10, 0.5);
}

.free-answer textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  padding: 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
}

.dictate-button {
  border: 0;
  border-left: 1px solid var(--line);
  color: #9da8a4;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dictate-button span {
  display: block;
  margin-bottom: 5px;
  color: #b94f58;
  font-size: 14px;
}

.other-confirm {
  display: grid !important;
  grid-template-columns: auto repeat(3, 1fr) !important;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(200, 156, 61, 0.38) !important;
  background: rgba(200, 156, 61, 0.06) !important;
}

.other-confirm p {
  margin: 0 7px 0 0;
  color: #9ba5a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.other-confirm button {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  color: #b7beb8;
  background: rgba(8, 13, 14, 0.58);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.other-confirm button:hover {
  color: var(--paper-ink);
  background: var(--paper);
}

.recognition-layout--reveal {
  align-items: center;
}

.recognition-reveal {
  padding-top: 26px;
  border: 1px solid color-mix(in srgb, var(--attr-color) 52%, transparent);
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--attr-color) 12%, transparent), transparent 62%),
    rgba(8, 14, 15, 0.55);
}

.recognition-reveal__voice {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: end;
  gap: 24px;
  margin: 2px 0 24px;
}

.recognition-reveal__portrait {
  width: 136px;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--attr-color) 42%, transparent);
  background-color: #182223;
  background-image: url('./assets/voices-atlas-v2.webp');
  background-position: calc(var(--portrait-col) * 20%) calc(var(--portrait-row) * 33.333%);
  background-size: 600% 400%;
  filter: saturate(1.02) contrast(1.08) brightness(1.02);
}

.recognition-reveal__voice h1 {
  color: var(--attr-color);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-transform: uppercase;
}

.recognition-reveal__voice > div:last-child > span {
  display: block;
  margin-top: 12px;
  color: #929c98;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.recognition-reveal__verdict {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recognition-reveal__verdict strong {
  color: var(--attr-color);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recognition-reveal__verdict p,
.recognition-reveal__empty {
  margin: 0;
  color: #a3ada8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.recognition-reveal__calibration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.recognition-reveal__calibration section {
  padding: 16px 18px 16px 0;
}

.recognition-reveal__calibration section + section {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.recognition-reveal__calibration p {
  margin: 0;
  color: #aeb5af;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.recognition-reveal__risk p {
  color: #c9a09a;
}

.recognition-reveal__inner-line {
  margin: 18px 0 !important;
  border-left-color: var(--attr-color) !important;
}

.recognition-reveal__note {
  margin: 19px 0 !important;
  border-left-color: var(--attr-color) !important;
}

.recognition-reveal__note span {
  display: block;
  margin-bottom: 5px;
  color: #707c78;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.recognition-reveal__empty {
  margin: 18px 0;
  color: #66736f;
  font-size: 12px;
}

.recognition-reveal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.recognition-aside {
  align-self: center;
  color: #697572;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.recognition-aside p:not(.paper-label) {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calibration-screen {
  position: relative;
  display: flex;
  min-height: calc(100vh - 184px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.calibration-screen h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 88px);
  letter-spacing: -0.075em;
  line-height: 0.77;
  text-transform: uppercase;
}

.calibration-screen > p:not(.paper-label) {
  max-width: 560px;
  margin: 32px 0 0;
  color: #8b9692;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
}

.calibration-screen__field {
  position: absolute;
  inset: 3% 9%;
  z-index: -1;
  opacity: 0.5;
  filter: blur(3px);
}

.calibration-screen__field span {
  position: absolute;
  top: calc(11% + var(--i) * 22%);
  left: 5%;
  width: 90%;
  height: 16%;
  border-top: 1px solid var(--attr-color);
  border-bottom: 1px solid color-mix(in srgb, var(--attr-color) 45%, transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--attr-color) 22%, transparent), transparent);
  animation: calibration-pass 1.25s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -180ms);
}

@keyframes calibration-pass {
  from { transform: translateX(-8%) scaleX(0.92); opacity: 0.24; }
  to { transform: translateX(8%) scaleX(1.03); opacity: 0.8; }
}

.calibration-tape {
  display: flex;
  gap: 15px;
  margin-top: 38px;
}

.calibration-tape i {
  width: 9px;
  height: 9px;
  border: 1px solid #8c9a96;
  transform: rotate(45deg);
  animation: tape-light 900ms ease infinite;
  animation-delay: calc(var(--i) * 100ms);
}

.calibration-tape i:nth-child(2) { animation-delay: 100ms; }
.calibration-tape i:nth-child(3) { animation-delay: 200ms; }
.calibration-tape i:nth-child(4) { animation-delay: 300ms; }
.calibration-tape i:nth-child(5) { animation-delay: 400ms; }
.calibration-tape i:nth-child(6) { animation-delay: 500ms; }

@keyframes tape-light {
  0%, 100% { background: transparent; }
  50% { background: #d9bd73; box-shadow: 0 0 15px #d9bd73; }
}

.result-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 255px;
  align-items: end;
  gap: 34px;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line-strong);
}

.result-hero__stamp {
  display: flex;
  width: 94px;
  height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #9c4b44;
  color: #c96b5d;
  transform: rotate(-5deg);
}

.result-hero__stamp span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.result-hero__stamp strong {
  font-size: 16px;
}

.result-hero__copy h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.9vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.result-hero__copy > p:last-child {
  margin: 18px 0 0;
  color: #737f7c;
  font-size: 12px;
}

.result-hero__signature {
  padding: 18px;
  border-left: 3px solid var(--attr-color);
  background: color-mix(in srgb, var(--attr-color) 10%, transparent);
}

.result-hero__signature span,
.result-hero__signature small {
  display: block;
  color: var(--attr-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-hero__signature strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.result-attributes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
}

.result-attributes > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(95deg, color-mix(in srgb, var(--attr-color) 10%, transparent), transparent);
}

.result-attributes span {
  color: var(--attr-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.result-attributes strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--attr-color);
  font-size: 38px;
  line-height: 0.9;
}

.result-attributes small {
  color: #717d79;
  font-size: 12px;
}

.result-council {
  padding: 54px 0;
  border-bottom: 1px solid var(--line-strong);
}

.result-full-map {
  padding: 0;
}

.result-full-map > summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: #dcd5c7;
  background: linear-gradient(90deg, rgba(200, 156, 61, 0.09), transparent 62%);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
  list-style: none;
  text-transform: uppercase;
}

.result-full-map > summary::-webkit-details-marker {
  display: none;
}

.result-full-map > summary::after {
  color: #c7a75e;
  content: '+';
  font-size: 28px;
  font-weight: 400;
}

.result-full-map[open] > summary::after {
  content: '−';
}

.result-full-map > summary span {
  margin-left: auto;
  color: #6f7b78;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.result-full-map > .result-council__head,
.result-full-map > .council-layout {
  margin-right: 24px;
  margin-left: 24px;
}

.result-full-map > .result-council__head {
  margin-top: 30px;
}

.result-council__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.layer-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.layer-switcher button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  color: #737f7b;
  background: rgba(5, 9, 10, 0.32);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-switcher button:last-child {
  border-right: 0;
}

.layer-switcher button.is-active {
  color: #172021;
  background: var(--paper);
}

.result-council__head > p {
  margin: 0;
  color: #78837f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.result-council__head strong {
  color: #b7bcb4;
}

.council-layout--result {
  grid-template-columns: minmax(700px, 1fr) 325px;
  min-height: 590px;
}

.skill-grid--result .skill-tile {
  height: 118px;
}

.skill-grid--result .skill-row__label b {
  display: none;
}

.council-layout--result .voice-inspector {
  min-height: 585px;
}

.result-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.36fr) minmax(680px, 1fr);
  gap: 64px;
  padding: 70px 0;
  border-bottom: 1px solid var(--line-strong);
}

.result-section__heading h2 {
  margin: 0;
  font-size: clamp(30px, 2.6vw, 44px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.result-reading__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
}

.result-voice-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-voice-summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  border-top: 2px solid var(--attr-color);
  background: linear-gradient(118deg, color-mix(in srgb, var(--attr-color) 10%, transparent), rgba(7, 12, 13, 0.4));
}

.result-voice-summary > span {
  color: var(--attr-color);
  font-size: 12px;
  font-weight: 900;
}

.result-voice-summary h3 {
  margin: 0 0 10px;
  color: #e3dccf;
  font-size: 17px;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.result-voice-summary p {
  margin: 0;
  color: #929d99;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.45;
}

.result-late-summary {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 10, 0.32);
}

.result-late-summary ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-late-summary li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.result-late-summary strong,
.result-late-summary span {
  display: block;
}

.result-late-summary strong {
  margin-bottom: 5px;
  color: #c6c6bc;
  font-size: 12px;
  text-transform: uppercase;
}

.result-late-summary span {
  color: #717d79;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
}

.evidence-ledger ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.evidence-ledger li {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 130px;
  gap: 22px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-ledger li > span {
  color: #7c8884;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.evidence-ledger blockquote {
  margin: 0;
  color: #c1c2b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.evidence-ledger li > strong {
  color: #9da7a2;
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
}

.evidence-ledger .evidence-ledger__empty {
  display: block;
  color: #7a8581;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.5;
}

.result-deltas ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.result-deltas li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.result-deltas strong {
  font-size: 14px;
  text-transform: uppercase;
}

.result-deltas span {
  color: #8e9995;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.loop-list,
.balance-list {
  display: grid;
  gap: 24px;
}

.loop-chain {
  position: relative;
  padding: 26px 26px 22px 70px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 25, 26, 0.42);
}

.loop-chain__number {
  position: absolute;
  top: 26px;
  left: 22px;
  color: #65716e;
  font-size: 12px;
  font-weight: 900;
}

.loop-chain h3 {
  margin: 0 0 20px;
  font-size: 20px;
  text-transform: uppercase;
}

.loop-chain__flow {
  display: grid;
  grid-template-columns: 0.7fr 14px 1.2fr 14px 1.35fr;
  align-items: center;
  gap: 8px;
}

.loop-chain__flow span {
  color: #acb3ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.35;
}

.loop-chain__flow small {
  display: block;
  margin-bottom: 5px;
  color: #697572;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loop-chain__flow i {
  color: #806a3d;
  font-style: normal;
}

.loop-chain__impact {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: rgba(154, 66, 63, 0.09);
}

.loop-chain__impact small {
  color: #b86b66;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loop-chain__impact strong {
  color: #c3c1b7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.loop-chain blockquote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #868f8b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.balance-entry {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 250px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(100deg, color-mix(in srgb, var(--attr-color) 10%, transparent), rgba(8, 13, 14, 0.5));
}

.balance-entry__portrait {
  width: 170px;
  min-height: 0;
  align-self: start;
  border-right: 1px solid var(--line);
  filter: saturate(0.75) contrast(1.15);
}

.balance-entry > div:last-child {
  padding: 24px 26px;
}

.balance-entry h3 {
  margin: 0 0 14px;
  color: var(--attr-color);
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.balance-entry p {
  margin: 0 0 9px;
  color: #aeb4ae;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
}

.balance-entry .balance-entry__label {
  display: inline-block;
  width: max-content;
  margin: 0 0 14px;
  padding: 6px 18px 5px 12px;
  color: var(--paper-ink);
  background: var(--paper);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(230, 223, 202, 0.16);
}

.balance-entry p strong {
  color: #d9d3c6;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.balance-entry__experiment {
  margin-top: 15px !important;
  padding: 11px 13px;
  border-left: 2px solid var(--attr-color);
  background: color-mix(in srgb, var(--attr-color) 9%, transparent);
}

.balance-entry__cost {
  color: #747f7b !important;
  font-size: 12px !important;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 10px;
}

.result-footer > p {
  max-width: 720px;
  margin: 0;
  color: #7d8885;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.result-footer > div {
  display: flex;
  gap: 9px;
}

.intro-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 58% 42%;
  overflow: hidden;
}

.intro-screen::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(88deg, transparent 0 45%, rgba(8, 13, 14, 0.76) 61%, #0a1112 100%);
  content: '';
  pointer-events: none;
}

.intro-screen__portraits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: max(100%, 150vh);
  min-height: 0;
  aspect-ratio: 3 / 2;
  align-self: center;
  opacity: 0.64;
  filter: saturate(0.5) contrast(1.12);
  transform: scale(1.04) translateX(-2%);
}

.intro-portrait {
  min-width: 0;
  border: 1px solid rgba(225, 232, 220, 0.08);
  filter: saturate(0.2) brightness(0.7);
  animation: portrait-breathe 6s ease-in-out infinite alternate;
}

.intro-portrait:nth-child(3n) { animation-delay: -2s; }
.intro-portrait:nth-child(4n) { animation-delay: -4s; }

@keyframes portrait-breathe {
  from { filter: saturate(0.1) brightness(0.54); }
  to { filter: saturate(0.62) brightness(0.82); }
}

.intro-screen__copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 650px;
  margin-left: -64px;
  padding: 60px 70px 60px 0;
}

.intro-screen__copy h1 {
  margin: 0;
  color: #f0e9dc;
  font-size: clamp(52px, 5vw, 82px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-transform: uppercase;
  text-shadow: 8px 10px 34px #030606;
}

.intro-screen__copy h1 em {
  color: #d1aa58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74em;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-transform: none;
}

.intro-screen__lead {
  max-width: 560px;
  margin: 32px 0 20px;
  color: #b4b8b0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.intro-screen__facts {
  display: flex;
  gap: 22px;
  margin-bottom: 30px;
  color: #74817e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-action--hero {
  min-width: 300px;
  min-height: 60px;
}

.intro-screen__disclaimer {
  max-width: 460px;
  margin: 18px 0 0;
  color: #5f6b68;
  font-size: 12px;
  line-height: 1.45;
}

.intro-method {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 32px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: #8e9996;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 6, 7, 0.74);
  backdrop-filter: blur(5px);
}

.method-drawer {
  position: relative;
  width: min(520px, 42vw);
  height: 100%;
  padding: 84px 58px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  background:
    linear-gradient(152deg, rgba(55, 84, 81, 0.14), transparent 42%),
    #11191a;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.4);
  animation: drawer-in 240ms ease both;
}

@keyframes drawer-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 26px;
}

.method-drawer h2 {
  margin: 0 0 28px;
  font-size: 38px;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

.method-drawer > p:not(.paper-label),
.method-drawer li {
  color: #a8afa8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.55;
}

.method-drawer__rule {
  display: grid;
  gap: 5px;
  margin: 28px 0;
  padding: 18px;
  border-left: 3px solid var(--ochre);
  background: rgba(200, 156, 61, 0.08);
}

.method-drawer__rule strong {
  text-transform: uppercase;
}

.method-drawer__rule span {
  color: #8e9995;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.method-drawer ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.live-status {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 18px;
  max-width: 360px;
  color: #9eaaa6;
  font-size: 12px;
}

@media (max-width: 1280px) {
  .app-body { grid-template-columns: 148px minmax(0, 1fr); }
  .phase-rail { padding-left: 12px; }
  .phase-rail__privacy { left: 12px; }
  .stage { padding-right: 34px; padding-left: 34px; }
  .council-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .skill-row { grid-template-columns: 58px minmax(0, 1fr); }
  .skill-tile { height: 126px; }
  .council-footer { margin-right: 330px; }
  .recognition-layout { grid-template-columns: 160px minmax(560px, 1fr) 170px; gap: 30px; }
  .result-section { grid-template-columns: 290px minmax(650px, 1fr); gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Episode-based calibration: preserve the atlas, give full sentences room. */
.episode-interview {
  grid-template-columns: 160px minmax(0, 780px);
  align-items: start;
  justify-content: center;
  gap: 34px;
  padding: 0;
}
.episode-interview .recognition-map { align-self: start; padding-top: 54px; }
.episode-interview .recognition-map > p:last-child { color: var(--ink-muted); font-size: 13px; line-height: 1.7; }
.interview-progress { display: block; width: 100%; height: 3px; margin: 10px 0 14px; border: 0; accent-color: var(--ochre); }
.interview-progress::-webkit-progress-bar { background: var(--line); }
.interview-progress::-webkit-progress-value { background: var(--ochre); }
.episode-interview .recognition-scene h1 { font-size: clamp(21px, 2vw, 28px); line-height: 1.3; margin: 12px 0; }
.interview-hint { color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.episode-choices { grid-template-columns: 1fr; gap: 6px; margin: 12px 0; }
.episode-choices button { min-height: 42px; padding: 9px 14px; }
.episode-choices span { font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none; line-height: 1.4; }
.episode-choices button.is-active { color: var(--ink); background: rgba(200, 156, 61, .14); border-color: var(--ochre); }
.episode-choices button.is-active b { color: var(--ochre); }
.episode-interview .free-answer textarea { min-height: 54px; padding: 8px 12px; font-size: 15px; line-height: 1.4; }
.episode-interview .free-answer label span { color: var(--ink-muted); font-weight: 400; }
.interview-footer { display: flex; justify-content: flex-end; padding-top: 10px; }
.interview-footer .primary-action { min-height: 44px; padding-top: 2px; padding-bottom: 2px; }
.episode-anchor { margin: 18px 0; border-left: 2px solid var(--cyan); padding: 8px 16px; color: var(--ink-muted); }
.episode-anchor p, .episode-anchor blockquote { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
summary { cursor: pointer; }
.episode-result-hero { grid-template-columns: 112px minmax(0, 1fr); }
.phase-result .result-section { grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: 34px; }
.episode-comparison p, .episode-loop p, .result-empty, .hypothesis-review p, .result-section__heading > p:last-child { font-size: 15px; line-height: 1.65; }
.episode-comparison p { margin: 0 0 16px; }
.episode-loop .loop-chain__flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.episode-loop .loop-chain__flow span { font-size: 15px; line-height: 1.5; }
.episode-loop .loop-chain__impact strong { font-size: 17px; line-height: 1.5; }
.episode-boundary { border-left: 2px solid var(--cyan); padding-left: 16px; }
.review-list { display: grid; gap: 24px; }
.hypothesis-review { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hypothesis-review h3 { margin: 8px 0; font-size: 21px; font-weight: 500; }
.all-evidence { padding: 26px 0; border-top: 1px solid var(--line); }
.evidence-ledger summary { padding: 12px 0; color: var(--ink); font-size: 14px; }
.evidence-ledger ol { padding: 0; list-style: none; }
.evidence-ledger li { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.evidence-ledger li > span { display: block; color: var(--ochre); font-size: 13px; }
.evidence-ledger li p, .evidence-ledger li strong, .evidence-ledger li blockquote { font-size: 15px; line-height: 1.6; }
.evidence-ledger li blockquote { margin: 14px 0; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.evidence-ledger .evidence-empty { color: var(--ink-muted); font-size: 13px; }
.all-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.phase-result .council-layout--result { grid-template-columns: minmax(0, 1fr) 270px; }
.phase-result .balance-entry { grid-template-columns: 130px minmax(0, 1fr); }
.phase-result .balance-entry__portrait { width: 100%; }
.phase-result .balance-entry p { font-size: 15px; line-height: 1.6; }
.phase-result .balance-entry__cost { color: #aeb4ae !important; font-size: 14px !important; }
@media (max-width: 1280px) {
  .episode-interview { grid-template-columns: 125px minmax(0, 1fr); gap: 22px; }
  .phase-result .result-section { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .phase-result .loop-chain { padding-left: 24px; padding-right: 24px; }
  .phase-result .balance-entry { grid-template-columns: 100px minmax(0, 1fr); }
}

/* The questionnaire shows the remembered situation, without interpretation labels. */
.phase-recognition .stage { padding-top: 10px; padding-bottom: 14px; }
.episode-interview { display: block; max-width: 1000px; margin: 0 auto; }
.episode-interview .recognition-scene:has(.episode-anchor) { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 24px; align-content: start; }
.recognition-scene:has(.episode-anchor) .recognition-navigation,
.recognition-scene:has(.episode-anchor) .interview-progress { grid-column: 1 / -1; }
.recognition-scene:has(.episode-anchor) > h1,
.recognition-scene:has(.episode-anchor) > .interview-hint,
.recognition-scene:has(.episode-anchor) > .episode-choices,
.recognition-scene:has(.episode-anchor) > .free-answer,
.recognition-scene:has(.episode-anchor) > .interview-footer { grid-column: 2; }
.recognition-scene > .episode-anchor { grid-column: 1; grid-row: 3 / span 5; align-self: start; }
.episode-anchor { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #617c79; background: rgba(208, 218, 200, 0.045); }
.episode-anchor p, .episode-anchor blockquote { margin: 0 0 6px; color: #c3ccc4; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.episode-anchor .episode-anchor__title { color: #e0dfd0; font-weight: 700; }
.episode-anchor blockquote { padding-left: 16px; border-left: 1px solid var(--line-strong); }
.episode-anchor__previous { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.episode-anchor > :last-child, .episode-anchor__previous > :last-child { margin-bottom: 0; }
.skill-tile__chosen { position: absolute; top: 8px; left: 6px; padding: 3px 5px; background: #d5ceb7; color: #172022; font-size: 12px; line-height: 1.2; font-weight: 700; z-index: 2; }
.has-evidence-label .skill-tile__copy small { color: #c2cbc4; }
.skill-evidence { padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.skill-evidence p { color: #d1d8cf; }
.catalog-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 0; font: inherit; font-size: 14px; line-height: 1.5; letter-spacing: .035em; color: var(--ink-muted); text-decoration: none; transition: color 160ms ease; }
.catalog-link span { color: var(--cyan); }
.catalog-link:hover, .catalog-link:focus-visible { color: var(--ink); }
.catalog-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.agent-setup { position: relative; z-index: 1; width: min(100% - 80px, 1000px); margin: 0 auto; padding: 32px 0 44px; }
.agent-setup > .text-button:first-child { margin-bottom: 28px; }
.agent-setup .agent-header { max-width: 760px; margin-bottom: 24px; }
.agent-setup .agent-header h1 { font-size: clamp(34px, 3.2vw, 46px); }
.agent-setup .agent-header p:not(.paper-label) { color: var(--ink-muted); }
.agent-setup__handoff { max-width: 760px; }
.agent-setup__handoff > .primary-action { gap: 28px; }
.agent-setup__hint { font-size: 16px; line-height: 1.5; max-width: 66ch; color: var(--ink-muted); }
.agent-setup details.agent-handoff { border: 0; padding: 0; margin: 16px 0 24px; background: transparent; }
.agent-setup details summary { color: var(--ink-muted); font-size: 16px; padding: 6px 0; }
.agent-setup__connection { border-top: 1px solid var(--line-strong); padding: 22px 0; max-width: 760px; }
.agent-setup__connection p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); max-width: 70ch; }
.agent-setup__connection .agent-setup__state { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.agent-setup__connection.is-connected .agent-setup__state { color: #83c9c8; }
.agent-setup__connection button { margin-top: 8px; }
.agent-setup > .agent-privacy { max-width: 86ch; margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .catalog-link { transition: none; } }
