:root {
  color-scheme: dark;
  --canvas: #0b0e0d;
  --surface: #121714;
  --raised: #1a211d;
  --border: #2a332d;
  --text: #f1f0e8;
  --muted: #a8b0aa;
  --graphite: #858d87;
  --signal: #b9ff18;
  --danger: #ff796b;
  --display: "League Gothic", Impact, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--mono);
}

button,
a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.shell {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.arena-section-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--canvas);
}

.arena-section-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-decoration: none;
}

.arena-section-nav a:last-child {
  border-right: 0;
}

.arena-section-nav a:hover {
  color: var(--signal);
  background: var(--raised);
}

.arena-section-nav a[aria-current="page"] {
  color: var(--canvas);
  background: var(--signal);
}

.arena-section-nav a[aria-current="page"]:focus-visible {
  outline-color: var(--canvas);
  outline-offset: -4px;
}

#arena,
#trade-history,
#decision-history {
  scroll-margin-top: 56px;
}

#system-trust,
#latest-council,
#role-evolution,
#operational-control {
  scroll-margin-top: 56px;
}

.brand {
  display: block;
  width: 221px;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.live-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.live-cluster strong {
  color: var(--text);
  font-size: 0.82rem;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--graphite);
  background: transparent;
}

.status-dot[data-state="live"] {
  border-color: var(--signal);
  background: var(--signal);
}

.status-dot[data-state="error"] {
  border-color: var(--danger);
  background: var(--danger);
}

main {
  padding-bottom: 28px;
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 0 13px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--signal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1,
h2,
p,
blockquote,
dl {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.025em;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(2.35rem, 3.5vw, 3.35rem);
  line-height: 0.9;
}

.intro > div > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.paper-notice {
  display: grid;
  min-width: 330px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: right;
}

.paper-notice strong {
  color: var(--signal);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.paper-notice span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.rules-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

.rules-rail > div,
.rules-rail > a {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
}

.rules-rail > div span,
.rules-rail > div strong {
  display: block;
}

.rules-rail span {
  margin-bottom: 5px;
  color: var(--graphite);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.rules-rail strong {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.rules-rail > a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  border-right: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.battle-grid,
.lower-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.battle-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.85fr);
}

.lower-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.58fr);
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel-head {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
  line-height: 0.9;
}

.panel-head > span,
.chart-meta {
  color: var(--graphite);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.panel-head > a {
  color: var(--signal);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.skip-link,
.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.agent-desk-page .live-cluster,
.agent-desk-page .kicker,
.agent-desk-page .arena-section-nav a,
.agent-desk-page .paper-notice span,
.agent-desk-page .audit-strip span,
.agent-desk-page footer {
  font-size: 0.75rem;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 12px;
  clip: auto;
  padding: 10px 12px;
  color: var(--canvas);
  background: var(--signal);
}

/* Shared by Propr Paper; Agent Desk now uses the audit classes below. */
.agent-desk-panel {
  margin-top: 12px;
}

.agent-desk-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.agent-desk-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.agent-desk-state {
  padding: 7px 9px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.agent-desk-state[data-state="active"] {
  color: var(--signal);
  border-color: var(--signal);
}

.agent-desk-state[data-state="error"] {
  color: var(--danger);
  border-color: var(--danger);
}

.agent-desk-safeguards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--raised);
}

.agent-desk-safeguards span {
  min-width: 0;
  padding: 10px 12px;
  color: var(--graphite);
  border-right: 1px solid var(--border);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
}

.agent-desk-safeguards span:last-child {
  border-right: 0;
}

.agent-desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-desk-module {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.agent-desk-module:last-child {
  border-right: 0;
}

.agent-desk-module > header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.agent-desk-module > header span {
  color: var(--signal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.agent-desk-module h3 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.agent-desk-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.agent-desk-facts > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-desk-facts > div:nth-child(2n) {
  border-right: 0;
}

.agent-desk-facts dt {
  margin-bottom: 6px;
  color: var(--graphite);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.agent-desk-facts dd,
.agent-desk-facts small {
  display: block;
  overflow-wrap: anywhere;
}

.agent-desk-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.agent-desk-facts small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.agent-desk-provenance,
.agent-desk-disclosure {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.66rem;
  line-height: 1.55;
}

.propr-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.propr-activity-grid > article {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}

.propr-activity-grid > article:last-child {
  border-right: 0;
}

.propr-activity-grid h3 {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.propr-activity-list {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
  list-style: none;
}

.agent-desk-provenance strong,
.agent-desk-provenance a {
  color: var(--signal);
}

.agent-desk-provenance p {
  margin: 6px 0 0;
}

.agent-desk-provenance a {
  font-weight: 700;
}

.agent-desk-provenance code {
  overflow-wrap: anywhere;
}

.agent-desk-disclosure {
  color: var(--graphite);
  background: var(--canvas);
}

.desk-calendar {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.desk-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.desk-calendar-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.desk-calendar-head p:not(.kicker) {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.desk-calendar-controls {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.desk-calendar-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--signal);
  border: 1px solid var(--border);
  background: var(--raised);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  place-items: center;
}

.desk-calendar-controls button:hover,
.desk-calendar-controls button:focus-visible {
  border-color: var(--signal);
  background: var(--canvas);
}

.desk-calendar-controls strong {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.desk-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.desk-calendar-board {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.desk-calendar-weekdays,
.desk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.desk-calendar-weekdays {
  color: var(--graphite);
  border-bottom: 1px solid var(--border);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.desk-calendar-weekdays span {
  padding: 11px 4px;
}

.desk-calendar-day {
  display: grid;
  min-height: 74px;
  align-content: space-between;
  padding: 10px;
  color: var(--graphite);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  text-align: left;
}

.desk-calendar-day:nth-child(7n) {
  border-right: 0;
}

.desk-calendar-day--empty {
  background: var(--canvas);
}

button.desk-calendar-day--report {
  color: var(--text);
  cursor: pointer;
}

button.desk-calendar-day--report:hover,
button.desk-calendar-day--report:focus-visible {
  background: var(--raised);
  outline-offset: -3px;
}

.desk-calendar-day--report > span {
  font-size: 0.9rem;
  font-weight: 700;
}

.desk-calendar-day--report small {
  justify-self: start;
  padding: 3px 5px;
  color: var(--canvas);
  background: var(--signal);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.desk-calendar-day--report[data-direction="bearish"] small {
  color: var(--text);
  background: var(--danger);
}

.desk-calendar-day--report[data-direction="neutral"] small {
  color: var(--text);
  background: var(--graphite);
}

.desk-calendar-day--report.is-selected {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
  background: var(--raised);
}

.desk-calendar-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.selected-report {
  min-width: 0;
  padding: 20px;
}

.selected-report h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.selected-report-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.selected-report-signal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.selected-report-signal span {
  color: var(--signal);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.selected-report-signal span[data-direction="bearish"] {
  color: var(--danger);
}

.selected-report-signal span[data-direction="neutral"] {
  color: var(--muted);
}

.selected-report-signal strong {
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.selected-report-summary {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.6;
}

.selected-report-signals {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.selected-report-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
}

.selected-report-meta > div {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.selected-report-meta > div:nth-child(odd) {
  margin-right: 12px;
}

.selected-report-meta dt {
  color: var(--graphite);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.selected-report-meta dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.selected-report-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.35;
}

.selected-report-disclosure,
.desk-calendar-state {
  margin: 0;
  padding: 12px 20px;
  color: var(--graphite);
  border-top: 1px solid var(--border);
  font-size: 0.67rem;
  line-height: 1.5;
}

.desk-technical-details {
  margin-top: 12px;
}

.desk-technical-details > summary {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 16px 20px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.desk-technical-details > summary::-webkit-details-marker {
  display: none;
}

.desk-technical-details > summary::after {
  position: absolute;
  right: 20px;
  content: "+";
  color: var(--signal);
  font-size: 1.4rem;
}

.desk-technical-details[open] > summary::after {
  content: "−";
}

.desk-technical-details > summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -3px;
}

.desk-technical-details > summary strong {
  padding-right: 36px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.desk-technical-details > summary small {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.agent-audit-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.23fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.audit-index,
.audit-module,
.agent-provenance {
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.audit-index {
  align-self: start;
  position: sticky;
  top: 56px;
}

.audit-index > .kicker {
  padding: 14px 16px 0;
  font-size: 0.75rem;
}

.audit-index nav {
  display: grid;
}

.audit-index a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  padding: 18px 16px;
  color: var(--text);
  border-top: 1px solid var(--border);
  text-decoration: none;
}

.audit-index a:hover,
.audit-index a:focus-visible {
  background: var(--raised);
}

.audit-index a:focus-visible {
  outline-offset: -3px;
}

.audit-index a > span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--signal);
  border: 1px solid var(--signal);
  font-family: var(--display);
  font-size: 2rem;
  place-items: center;
}

.audit-index strong,
.audit-index small {
  overflow-wrap: anywhere;
}

.audit-index strong {
  align-self: end;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.audit-index small {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.agent-audit-content {
  display: grid;
  gap: 16px;
}

.audit-module-head {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.audit-module-head h2,
.agent-provenance h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.audit-module-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.audit-number {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  color: var(--text);
  border: 1px solid var(--graphite);
  font-family: var(--display);
  font-size: 2.65rem;
  place-items: center;
}

.audit-module-head--link > a {
  margin-left: auto;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
}

.trust-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.trust-facts > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}

.trust-facts > div:last-child {
  border-right: 0;
}

.trust-facts dt {
  margin-bottom: 7px;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.trust-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.trust-facts small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.council-trace-wrap {
  overflow-x: auto;
}

.council-trace-wrap:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -3px;
}

.council-trace {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.council-trace th,
.council-trace td {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.council-trace th:last-child,
.council-trace td:last-child {
  border-right: 0;
}

.council-trace th {
  color: var(--graphite);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.council-trace td:first-child,
.council-trace td:nth-child(2) {
  font-weight: 700;
}

.council-trace td:first-child {
  color: var(--signal);
}

.council-trace tbody th {
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 700;
}

.role-evolution-facts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.audit-message {
  margin: 0;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operations-group {
  min-width: 0;
  border-bottom: 1px solid var(--border);
}

.operations-group:nth-child(odd):not(.operations-group--wide) {
  border-right: 1px solid var(--border);
}

.operations-group--wide {
  grid-column: 1 / -1;
}

.operations-group h3 {
  margin: 0;
  padding: 11px 16px;
  color: var(--signal);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.operation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.operation-facts--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operation-facts > div {
  min-width: 0;
  padding: 11px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.operation-facts > div:nth-child(2n),
.operation-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.operation-facts > div:nth-child(2n) {
  border-right: 0;
}

.operation-facts--wide > div:nth-child(2n) {
  border-right: 1px solid var(--border);
}

.operation-facts--wide > div:nth-child(4n) {
  border-right: 0;
}

.operation-facts--wide > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.operation-facts dt {
  margin-bottom: 6px;
  color: var(--graphite);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.operation-facts dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.operation-facts small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.agent-provenance {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
}

.agent-provenance h2 {
  color: var(--signal);
  font-size: 1.55rem;
}

.agent-provenance p,
.source-agreement {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.agent-provenance a,
.source-agreement strong {
  color: var(--signal);
  font-weight: 700;
}

.agent-provenance code,
.source-agreement span {
  overflow-wrap: anywhere;
}

.source-agreement {
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.source-agreement strong {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

@media (min-width: 1081px) {
  .agent-desk-page .agent-audit-content {
    gap: 12px;
  }

  .agent-desk-page .audit-module-head {
    min-height: 66px;
    gap: 14px;
    padding: 11px 16px;
  }

  .agent-desk-page .audit-module-head h2 {
    font-size: clamp(2rem, 2.8vw, 2.65rem);
  }

  .agent-desk-page .audit-number {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 2.2rem;
  }

  .agent-desk-page .trust-facts {
    grid-template-columns: 0.85fr 1fr 1fr 1fr 1.35fr 0.85fr;
  }

  .agent-desk-page .trust-facts > div,
  .agent-desk-page .role-evolution-facts > div {
    padding: 9px 12px;
  }

  .agent-desk-page .trust-facts dt {
    margin-bottom: 5px;
  }

  .agent-desk-page .trust-facts dd,
  .agent-desk-page .trust-facts small,
  .agent-desk-page .agent-desk-facts dd,
  .agent-desk-page .agent-desk-facts small {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .agent-desk-page .trust-facts small,
  .agent-desk-page .agent-desk-facts small {
    margin-top: 4px;
  }

  .agent-desk-page .council-trace th,
  .agent-desk-page .council-trace td {
    padding: 9px 14px;
  }

  .agent-desk-page .audit-message {
    padding: 10px 16px;
  }

  .agent-desk-page .agent-provenance {
    gap: 14px;
    margin-top: 12px;
    padding: 11px 14px;
  }

  .agent-desk-page .agent-provenance h2 {
    font-size: 0.9rem;
    letter-spacing: 0.07em;
  }

  .agent-desk-page .agent-provenance p,
  .agent-desk-page .source-agreement {
    margin-top: 6px;
    line-height: 1.45;
  }

  .agent-desk-page .source-agreement {
    gap: 6px;
    margin: 0;
    padding-left: 14px;
  }
}

.chart-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.chart-wrap {
  position: relative;
  height: clamp(410px, 48vw, 660px);
  min-height: 360px;
  background: var(--canvas);
}

.propr-paper-chart-panel .chart-wrap {
  height: clamp(300px, 36vw, 460px);
  min-height: 280px;
}

#arena-chart,
#propr-paper-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  color: var(--graphite);
  text-align: center;
}

.chart-empty[hidden] {
  display: none;
}

.chart-empty strong {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.chart-empty span {
  font-size: 0.74rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-height: 45px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.legend-item small {
  color: var(--signal);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
}

.legend-line {
  display: block;
  width: 24px;
  height: 0;
  border-top: 2px solid var(--line-color);
}

.legend-swatch {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--swatch-color) 72%, white);
}

.legend-swatch-qwen {
  --swatch-color: #64ffda;
}

.legend-swatch-deepseek {
  --swatch-color: #b2ff59;
}

.legend-swatch-luna {
  --swatch-color: #00e676;
}

.chart-disclosure {
  margin: 0;
  padding: 10px 16px;
  color: var(--graphite);
  border-top: 1px solid var(--border);
  font-size: 0.66rem;
  line-height: 1.45;
}

.chart-disclosure strong {
  color: var(--signal);
  font-weight: 700;
}

.contestants {
  min-height: 560px;
}

.contestant {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.contestant:last-child {
  border-bottom: 0;
}

.contestant-head,
.contestant-metrics,
.rail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rank-model {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.rank {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  color: var(--graphite);
  font-family: var(--display);
  font-size: 1.2rem;
  place-items: center;
}

.model-name {
  min-width: 0;
}

.model-name strong,
.model-name span {
  display: block;
}

.model-name strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-name span {
  margin-top: 3px;
  color: var(--graphite);
  font-size: 0.64rem;
}

.state {
  padding: 5px 7px;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.state[data-live="true"] {
  color: var(--signal);
  border-color: var(--signal);
}

.contestant-metrics {
  margin: 8px 0;
}

.equity strong,
.equity span,
.paper-return strong,
.paper-return span {
  display: block;
}

.equity strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.equity span,
.paper-return span {
  color: var(--graphite);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.paper-return {
  text-align: right;
}

.paper-return strong {
  margin-bottom: 3px;
  font-size: 0.84rem;
}

.progress-stack {
  display: grid;
  gap: 6px;
}

.rail-label {
  margin-bottom: 3px;
  color: var(--graphite);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.rail-label strong {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  background: var(--raised);
  accent-color: var(--text);
}

progress::-webkit-progress-bar {
  background: var(--raised);
}

progress::-webkit-progress-value {
  background: var(--text);
}

progress::-moz-progress-bar {
  background: var(--text);
}

.safety progress {
  accent-color: var(--graphite);
}

.safety progress::-webkit-progress-value {
  background: var(--graphite);
}

.safety progress::-moz-progress-bar {
  background: var(--graphite);
}

.contestant-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--graphite);
  font-size: 0.62rem;
}

.rulebook,
.tape-panel {
  min-height: 320px;
}

.verified-label {
  color: var(--signal) !important;
}

blockquote {
  margin: 0;
  padding: 20px 20px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.65;
}

.ruleset-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.ruleset-details div {
  padding: 13px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ruleset-details div:nth-child(2n) {
  border-right: 0;
}

.ruleset-details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ruleset-details dt {
  margin-bottom: 5px;
  color: var(--graphite);
  font-size: 0.62rem;
}

.ruleset-details dd {
  margin: 0;
  font-size: 0.7rem;
}

.decision-tape {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--border);
}

.decision:last-child {
  border-right: 0;
}

.decision header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.decision header strong {
  font-size: 0.74rem;
}

.decision header span {
  color: var(--graphite);
  font-size: 0.62rem;
}

.decision-action {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.decision p {
  min-height: 5em;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.decision code {
  display: block;
  overflow: hidden;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading {
  margin: 0;
  padding: 22px 16px;
  color: var(--graphite);
  font-size: 0.62rem;
}

.audit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--raised);
}

.audit-strip span {
  flex: 1 1 auto;
  padding: 11px 14px;
  color: var(--graphite);
  border-right: 1px solid var(--border);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-align: center;
}

.audit-strip span:last-child {
  border-right: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  color: var(--graphite);
  border-top: 1px solid var(--border);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
}

@media (max-width: 1080px) {
  .battle-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .contestants {
    min-height: 0;
  }

  .agent-desk-grid {
    grid-template-columns: 1fr;
  }

  .desk-calendar-layout {
    grid-template-columns: 1fr;
  }

  .desk-calendar-board {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .agent-desk-module {
    border-right: 0;
  }

  .agent-desk-module + .agent-desk-module {
    border-top: 1px solid var(--border);
  }

  .propr-activity-grid {
    grid-template-columns: 1fr;
  }

  .propr-activity-grid > article {
    border-right: 0;
  }

  .propr-activity-grid > article + article {
    border-top: 1px solid var(--border);
  }

  .agent-audit-layout {
    grid-template-columns: 1fr;
  }

  .audit-index {
    position: static;
  }

  .audit-index nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-index a {
    border-right: 1px solid var(--border);
  }

  .audit-index a:nth-child(2n) {
    border-right: 0;
  }

  .trust-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-provenance {
    grid-template-columns: 1fr;
  }

  .source-agreement {
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .rules-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .rules-rail > div:nth-child(2) {
    border-right: 0;
  }

  .rules-rail > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .rules-rail > a {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1680px);
  }

  .topbar,
  .intro {
    align-items: start;
    flex-direction: column;
  }

  .topbar {
    padding: 14px 0;
  }

  .arena-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-section-nav a:nth-child(2n) {
    border-right: 0;
  }

  .arena-section-nav a:nth-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }

  #arena,
  #trade-history,
  #decision-history,
  #system-trust,
  #latest-council,
  #role-evolution,
  #operational-control {
    scroll-margin-top: 152px;
  }

  .live-cluster {
    width: 100%;
    flex-wrap: wrap;
  }

  .intro {
    gap: 20px;
  }

  .desk-calendar-head {
    align-items: start;
    flex-direction: column;
  }

  .desk-calendar-controls {
    width: 100%;
  }

  .paper-notice {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .agent-desk-safeguards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-desk-safeguards span:nth-child(2n) {
    border-right: 0;
  }

  .agent-desk-safeguards span {
    border-bottom: 1px solid var(--border);
  }

  .agent-desk-safeguards span:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .audit-index nav {
    grid-template-columns: 1fr;
  }

  .audit-index a,
  .audit-index a:last-child {
    border-right: 0;
  }

  .audit-module-head {
    min-height: 0;
    align-items: flex-start;
  }

  .audit-module-head--link {
    flex-wrap: wrap;
  }

  .audit-module-head--link > a {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .trust-facts,
  .role-evolution-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .operations-group:nth-child(odd):not(.operations-group--wide) {
    border-right: 0;
  }

  .operations-group--wide {
    grid-column: auto;
  }

  .operation-facts--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-facts--wide > div:nth-child(2n) {
    border-right: 0;
  }

  .operation-facts--wide > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }

  .operation-facts--wide > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .chart-wrap {
    height: 410px;
  }

  .propr-paper-chart-panel .chart-wrap {
    height: 320px;
    min-height: 280px;
  }

  .decision-tape {
    grid-template-columns: 1fr;
  }

  .decision {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .decision:last-child {
    border-bottom: 0;
  }

  .audit-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .audit-strip span {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 470px) {
  .rules-rail,
  .ruleset-details,
  .agent-desk-facts,
  .trust-facts,
  .role-evolution-facts,
  .operation-facts,
  .operation-facts--wide {
    grid-template-columns: 1fr;
  }

  .trust-facts > div,
  .trust-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .operation-facts > div,
  .operation-facts > div:nth-child(2n),
  .operation-facts--wide > div:nth-child(2n) {
    border-right: 0;
  }

  .operation-facts > div,
  .operation-facts--wide > div:nth-last-child(-n + 2),
  .operation-facts--wide > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }

  .operation-facts > div:last-child,
  .operation-facts--wide > div:last-child {
    border-bottom: 0;
  }

  .agent-desk-facts > div,
  .agent-desk-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .trust-facts > div:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .rules-rail > div,
  .rules-rail > div:nth-child(2),
  .ruleset-details div,
  .ruleset-details div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .rules-rail > a {
    grid-column: auto;
  }

  .ruleset-details div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .ruleset-details div:last-child {
    border-bottom: 0;
  }

  .panel-head,
  .contestant-foot,
  footer {
    align-items: start;
    flex-direction: column;
  }

  .chart-meta {
    text-align: left;
  }

  .selected-report-meta {
    grid-template-columns: 1fr;
  }

  .selected-report-meta > div:nth-child(odd) {
    margin-right: 0;
  }
}

body.agent-desk-page .live-cluster,
body.agent-desk-page .kicker,
body.agent-desk-page footer {
  font-size: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
