@font-face {
  font-family: Geist;
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Live execution controls extend the Paper workspace components. */
.mode-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 26px;
  font-size: 12px;
}
.mode-switch .segmented {
  margin: 0;
}
.live-config {
  flex-wrap: wrap;
  gap: 20px;
}
.live-config .field {
  min-width: 145px;
}
.live-config .seed-field {
  min-width: 80px;
}
.run-history {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: -6px 0 24px;
  font-size: 12px;
}
.run-history label {
  font-weight: 550;
}
.run-history select {
  min-width: 200px;
  max-width: 360px;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  padding: 8px 28px 8px 10px;
  background: white;
  color: #47516a;
  font-size: 12px;
}
.run-history > .text-button {
  margin-left: auto;
}
.run-progress {
  border: 1px solid #d8e0ff;
  border-radius: 8px;
  background: #f7f9ff;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.progress-title,
.progress-title > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.progress-title strong {
  font-size: 13px;
  font-weight: 550;
}
.progress-track {
  height: 4px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5eafb;
  margin: 16px 0;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #3159f5;
  transition: width 0.3s;
}
.progress-events {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #64708a;
}
.progress-events > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-event-table {
  min-width: 620px;
}
.live-event-head,
.live-event-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) minmax(125px, 1.1fr) 110px 60px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
}
.live-event-head {
  color: #8891a2;
  font-size: 9px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e9ebf0;
}
.live-event-row {
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  cursor: pointer;
  font-size: 12px;
  color: #344057;
}
.live-event-row:hover {
  background: #f8faff;
}
.live-event-row.selected {
  background: #f0f4ff;
  box-shadow: inset 3px 0 #3159f5;
}
.live-event-row strong {
  font-weight: 550;
  display: block;
}
.live-event-row small {
  display: block;
  color: #8a92a5;
  font-size: 10px;
  margin-top: 5px;
}
.live-event-row .mono {
  font-size: 11px;
}
.live-inspector {
  overflow-wrap: anywhere;
}
.live-inspector h3 {
  margin: 22px 0 8px;
  font-size: 12px;
  font-weight: 600;
}
.live-inspector p {
  font-size: 12px;
  line-height: 1.7;
}
.inspector-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.inspector-title h2 {
  margin: 0;
  font-size: 16px;
}
.inspector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-block: 1px solid #e3e8f1;
  padding: 12px 0;
  font-size: 10px;
  color: #7c8598;
}
.live-inspector details {
  border-bottom: 1px solid #e3e8f1;
  padding: 12px 0;
}
.live-inspector summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}
.live-inspector pre {
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 0;
  padding: 12px;
  background: #eef1f7;
  border-radius: 6px;
  max-height: 420px;
  overflow: auto;
}
.decision-note {
  padding: 12px;
  margin: 16px 0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
}
.decision-note.safe {
  background: #e8f3ee;
  color: #28694f;
}
.decision-note.unsafe {
  background: #f8eaf0;
  color: #95495b;
}
.decision-note ul {
  padding-left: 16px;
  margin-bottom: 0;
}
.badge.danger {
  color: #a14f60;
  background: #f8eaf0;
}
.danger-text {
  color: #a14f60;
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}
.connection-card {
  padding: 24px;
}
.connection-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.connection-heading h2 {
  margin: 0;
  font-size: 18px;
}
.connection-card h3 {
  margin: 20px 0 8px;
  font-size: 13px;
}
.connection-card p {
  color: #788298;
  font-size: 13px;
  line-height: 1.8;
}
.connection-detail {
  color: #65718c;
  font-size: 11px;
  margin: 20px 0;
}
.connection-body p {
  max-width: 820px;
  font-size: 13px;
  line-height: 1.8;
}
.connection-body pre {
  padding: 18px;
  background: #f4f6fb;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.8;
}
.control-unlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.control-unlock input {
  border: 1px solid #dce2eb;
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 260px;
  flex: 1;
  max-width: 540px;
}
.training-controls {
  flex-wrap: wrap;
  gap: 16px;
}
.training-controls .field {
  flex: 1;
  min-width: 250px;
}
.training-controls .field select {
  width: 100%;
}
.live-empty .empty-hint {
  max-width: 650px;
}
@media (max-width: 1100px) {
  .live-config {
    gap: 16px;
  }
  .run-history > .mono {
    display: none;
  }
}
@media (max-width: 700px) {
  .mode-switch {
    margin-bottom: 22px;
    gap: 10px;
  }
  .mode-switch > .muted {
    font-size: 11px;
    line-height: 1.7;
  }
  .run-history {
    gap: 9px;
  }
  .run-history select {
    width: 100%;
    max-width: none;
  }
  .live-config .field {
    min-width: calc(50% - 12px);
  }
  .run-history > .text-button {
    margin-left: 0;
  }
  .connection-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .connection-card {
    padding: 20px;
  }
  .progress-title,
  .progress-title > div {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .training-controls .field {
    min-width: 0;
    width: 100%;
    flex: auto;
  }
  .training-controls .button {
    flex: 1;
  }
  .live-inspector {
    padding: 20px;
  }
  .connection-heading {
    flex-wrap: wrap;
  }
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Tokens and proportions copied from design/paper, exported from Paper Desktop. */
:root {
  --color-canvas: #fff;
  --color-surface: #f5f5f5;
  --color-ink: #17191d;
  --color-muted: #686d76;
  --color-border: #e4e6ea;
  --color-primary: #3159f5;
  --color-attacker: #b65364;
  --color-auditor: #907333;
  --color-success: #2b7560;
  --font-sans: Geist, system-ui, sans-serif;
  --font-mono: "Geist Mono", monospace;
  --sidebar: 216px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:is(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #94a9ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 42px;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
h3 {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
}
h4 {
  font-size: 12px;
  font-weight: 550;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
code,
pre,
.mono {
  font-family: var(--font-mono);
}
pre {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--color-muted);
}
.primary-text {
  color: var(--color-primary);
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -50px;
  left: 12px;
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--color-primary);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 16px 24px;
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #aeb3be;
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: #fff;
  white-space: nowrap;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 29px;
}
.brand:hover {
  text-decoration: none;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 1px solid #34373e;
  border-radius: 8px;
}
.workspace-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #33363e;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}
.workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #f1f2f4;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: #a2a7b2;
}
.workspace > svg {
  margin-left: auto;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #9399a4;
  padding: 0 12px 10px;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #aeb3be;
  font-size: 13px;
}
.nav-link:hover {
  text-decoration: none;
  color: #fff;
  background: #272a32;
}
.nav-link.active {
  color: #fff;
  background: var(--color-primary);
  font-weight: 500;
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: auto;
  padding-top: 32px;
}
.workspace-context {
  border-top: 1px solid #34373e;
  padding: 16px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.workspace-status {
  color: #d6dbe3;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #78b69b;
  flex-shrink: 0;
}
.workspace-context p {
  color: #9399a4;
  font-size: 11px;
  line-height: 1.7;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #33363e;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #e5e7eb;
}
.profile strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #d6dbe3;
}
.profile small {
  font-size: 10px;
  color: #9399a4;
}
.main-workspace {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--color-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb,
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.breadcrumb > svg {
  color: #868c97;
}
.topbar-meta {
  gap: 16px;
}
.topbar-meta > span {
  font-size: 11px;
}
.page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 32px 28px;
  max-width: 1720px;
  margin: auto;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.page-heading p {
  color: var(--color-muted);
  margin-top: 5px;
  font-size: 13px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  white-space: nowrap;
  background: #fff;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  text-decoration: none;
  background: #f6f7f9;
  border-color: #cdd1da;
}
.button.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.button.primary:hover {
  background: #254adf;
  border-color: #254adf;
}
.button.compact {
  font-size: 11px;
  padding: 5px 9px;
  height: 30px;
}
.button.icon-only {
  padding: 6px;
  width: 32px;
  height: 32px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--color-primary);
  padding: 4px 0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.text-button:hover {
  text-decoration: underline;
}
.text-button:disabled {
  cursor: default;
  color: #9499a3;
  opacity: 1;
  text-decoration: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.badge .dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.badge.success {
  color: var(--color-success);
  background: #f0f6f3;
}
.badge.blue {
  color: var(--color-primary);
  background: #eef2ff;
}
.badge.rose {
  color: var(--color-attacker);
  background: #faeff1;
}
.badge.gold {
  color: var(--color-auditor);
  background: #f7f3e9;
}
.badge.bronze {
  color: #936c54;
  background: #f6f1ed;
}
.badge.silver {
  color: #666e7e;
  background: #f0f2f5;
}
.config {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  min-height: 67px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.field > label,
.field > .label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}
.field select,
.field input {
  height: 26px;
  padding: 0 18px 0 0;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  border-radius: 3px;
}
.field input {
  padding: 1px 4px 1px 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.field input::-webkit-inner-spin-button,
.field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.field input:focus {
  background: #f5f7ff;
  outline-offset: 2px;
}
.field select {
  cursor: pointer;
}
.scenario-field {
  width: 280px;
  flex-shrink: 1;
}
.seed-field {
  width: 112px;
  flex-shrink: 0;
}
.policy-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  white-space: nowrap;
}
.policy-choice > span {
  color: var(--color-muted);
  font-size: 11px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: var(--color-surface);
  border-radius: 7px;
}
.segmented button {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 12px;
  line-height: 18px;
  background: transparent;
  color: var(--color-muted);
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-ink);
  font-weight: 500;
  box-shadow: 0 1px 2px #17191d04;
}
.config-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 12px;
  white-space: nowrap;
}
.config-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}
.config-description {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}
.config-description svg {
  color: var(--color-muted);
}
.run-config {
  gap: 28px;
}
.run-config .field:first-child {
  max-width: 300px;
}
.run-config .field .field-value {
  font-size: 13px;
  font-weight: 500;
}
.run-config .badge {
  margin-left: auto;
}
.metrics {
  display: flex;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--color-border);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}
.metric + .metric {
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
}
.metric-label {
  font-size: 12px;
  color: var(--color-muted);
}
.metric-value {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 36px;
}
.metric-note {
  font-size: 11px;
  color: var(--color-muted);
}
.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
}
.tab-list {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-width: 0;
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}
.tab:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.tab.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
}
.tab small {
  color: inherit;
  opacity: 0.7;
  font-size: 11px;
}
.tabs > .badge {
  flex-shrink: 0;
}
.columns {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}
.columns.top {
  align-items: flex-start;
}
.columns > .panel,
.columns > .grow {
  flex: 1;
  min-width: 0;
}
.panel {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  min-width: 0;
  background: white;
}
.panel.clip {
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.panel-header p {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 3px;
}
.panel-header > .badge,
.panel-header > .legend {
  flex-shrink: 0;
}
.panel-body {
  padding: 0 20px 20px;
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 306px;
  flex-shrink: 0;
  padding: 20px;
  background: var(--color-surface);
  border-radius: 10px;
}
.aside h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
}
.aside p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 20px;
}
.aside small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 18px;
}
.aside hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.action-detail {
  width: 322px;
  gap: 16px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}
.detail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-copy > .badge {
  align-self: flex-start;
}
.detail-copy h2 {
  font-size: 20px;
  line-height: 25px;
  overflow-wrap: anywhere;
}
.code-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.code-card strong {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.code-card pre {
  color: var(--color-muted);
}
.code-card details summary {
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.code-card details[open] summary {
  margin-bottom: 8px;
}
.auditor-context {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.auditor-context > svg {
  color: var(--color-auditor);
  margin-top: 2px;
}
.auditor-context p {
  font-size: 11px;
  line-height: 18px;
  margin-top: 4px;
}
.record-brief {
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--color-border);
}
.info-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.info-row small {
  font-size: 10px;
  color: var(--color-muted);
}
.info-row > strong {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 18px;
}
.page-footer > span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 9px;
  padding: 15px 18px;
}
.note > svg {
  color: var(--color-muted);
  margin-top: 2px;
}
.note h3 {
  font-size: 12px;
  font-weight: 550;
}
.note p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 19px;
  margin-top: 3px;
}
.note.blue-note {
  background: #f5f7ff;
  border-color: #e5eafe;
}
.note.blue-note > svg {
  color: var(--color-primary);
}
.error-note {
  background: #fff5f6;
  border-color: #edc6ce;
}
.error-note > svg {
  color: var(--color-attacker);
}
.error-note .text-button {
  margin-top: 8px;
}
.actor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-primary);
}
.actor .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.actor.attacker {
  color: var(--color-attacker);
}
.actor.oversight {
  color: var(--color-auditor);
}
.actor.worker {
  color: var(--color-primary);
}
.filter-select {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 11px;
  max-width: 160px;
  cursor: pointer;
  padding: 4px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
}
.event-head,
.event-row {
  display: grid;
  grid-template-columns: 36px 100px minmax(125px, 1fr) 78px 36px;
  gap: 12px;
  align-items: center;
}
.event-head {
  background: var(--color-surface);
  padding: 8px 14px 8px 17px;
  color: var(--color-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.event-row {
  min-height: 47px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  background: white;
  padding: 10px 14px;
  font-size: 12px;
}
.event-row:hover {
  background: #f8f9ff;
}
.event-row.selected {
  background: #eef2ff;
  border-left-color: var(--color-primary);
}
.event-row .tick {
  font-size: 11px;
  color: var(--color-muted);
}
.event-row .action-name {
  font-size: 12px;
  font-weight: 450;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-row .reward,
.event-head > span:last-child {
  text-align: right;
  font-size: 11px;
  color: var(--color-muted);
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 48px 40px 42px;
  border: 1px dashed #d5d9e2;
  border-radius: 12px;
  min-height: 324px;
  text-align: center;
}
.agent-flow {
  display: flex;
  align-items: center;
  gap: 20px;
}
.agent-flow > svg {
  color: #a3aab7;
  margin-top: -24px;
}
.flow-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
}
.flow-role.attacker {
  color: var(--color-attacker);
}
.flow-role.oversight {
  color: var(--color-auditor);
}
.flow-symbol {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: white;
}
.empty h2 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.empty p {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  max-width: 430px;
  margin-top: 8px;
}
.empty-hint {
  font-size: 11px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.loading {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-muted);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d9e1ff;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.button .spinner {
  width: 14px;
  height: 14px;
  border-color: #ffffff55;
  border-top-color: #fff;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 10px;
  white-space: nowrap;
}
.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--legend-color);
}
.chart-wrap {
  position: relative;
  padding: 0 14px 6px;
  min-width: 0;
}
.chart-wrap > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #17191df5;
  border: 1px solid #34373e;
  border-radius: 6px;
  color: white;
  padding: 9px 12px;
  font-size: 10px;
  line-height: 1.8;
  box-shadow: 0 4px 15px #17191d18;
  min-width: 130px;
  max-width: 220px;
  white-space: nowrap;
  display: none;
}
.chart-tooltip strong {
  display: block;
  font-weight: 500;
  color: #d6dbe3;
}
.chart-tooltip > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.chart-tooltip i {
  font-style: normal;
  color: #b8c3ed;
  font-family: var(--font-mono);
}
.chart-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 18px;
  font-size: 10px;
  color: var(--color-muted);
}
.chart-caption .legend {
  gap: 18px;
}
.timeline {
  padding-bottom: 15px;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 20px;
}
.timeline-label {
  width: 148px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-muted);
}
.timeline-row svg {
  flex: 1;
  min-width: 0;
  height: 24px;
}
.timeline-count {
  width: 24px;
  text-align: right;
  font-size: 11px;
}
.timeline-axis {
  display: flex;
  justify-content: space-between;
  padding: 9px 60px 0 185px;
  font-size: 10px;
  color: var(--color-muted);
  font-family: var(--font-mono);
}
.stats-card {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.small-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 20px;
}
.small-stat + .small-stat {
  border-left: 1px solid var(--color-border);
}
.small-stat > span {
  font-size: 12px;
  color: var(--color-muted);
}
.small-stat > strong {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.small-stat > small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 18px;
}
.reward-agent {
  padding: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
  align-items: center;
}
.reward-agent > .actor {
  width: 90px;
  flex-shrink: 0;
}
.reward-track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.reward-track .bar {
  min-width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--bar-color);
}
.reward-agent > strong {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.reward-legend {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.reward-calculation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--color-muted);
}
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rules-list p {
  font-size: 12px;
  line-height: 21px;
  color: var(--color-muted);
  margin-top: 8px;
}
.pair-replay-head,
.pair-replay-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-top: 1px solid var(--color-border);
}
.pair-replay-head {
  font-size: 9px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  background: var(--color-surface);
  padding-block: 9px;
}
.pair-replay-row {
  width: 100%;
  background: white;
  text-align: left;
  font-size: 11px;
  min-height: 66px;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
}
.pair-replay-row:hover,
.pair-replay-row.emphasized {
  background: #f5f7ff;
}
.pair-replay-row > span:first-child,
.pair-replay-row > span:last-child {
  font-family: var(--font-mono);
  color: var(--color-muted);
}
.pair-replay-row > span:last-child {
  text-align: right;
}
.pair-replay-row strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.pair-replay-row small {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  line-height: 17px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pair-score {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pair-score strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.pair-score small {
  font-size: 10px;
  color: var(--color-muted);
}
.score-bar-row {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 18px 20px;
  border-top: 1px solid var(--color-border);
}
.score-bar-row > .actor {
  width: 84px;
}
.paired-bars {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.paired-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--color-muted);
}
.paired-bar > i {
  height: 9px;
  border-radius: 2px;
  background: var(--bar-color);
  min-width: 2px;
}
.paired-bar span {
  font-family: var(--font-mono);
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  font-weight: 500;
  border-top: 1px solid var(--color-border);
  padding: 10px 18px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--color-border);
  padding: 13px 18px;
  font-size: 12px;
}
td.mono {
  font-size: 11px;
}
td strong {
  font-weight: 500;
}
td small {
  display: block;
  color: var(--color-muted);
  font-size: 10px;
  margin-top: 2px;
}
td .badge {
  font-size: 10px;
}
.record-table {
  min-width: 550px;
}
.record-table td {
  padding: 14px 12px;
}
.record-table th {
  padding-left: 12px;
  padding-right: 12px;
}
.record-table td:first-child,
.record-table th:first-child {
  padding-left: 18px;
}
.record-table td:last-child,
.record-table th:last-child {
  padding-right: 18px;
}
.record-table tbody tr:hover {
  background: #f5f7ff;
}
.record-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
}
.record-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.message-cell {
  max-width: 280px;
  min-width: 145px;
}
.message-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 17px;
}
.subject-cell {
  min-width: 130px;
  max-width: 230px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 15px;
  gap: 15px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 230px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 10px;
  color: #8b929e;
}
.search-field input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  outline: 0;
}
.search-field:focus-within {
  outline: 2px solid #94a9ff;
  outline-offset: 2px;
}
.search-field input::placeholder {
  color: #787f8b;
}
.rules-aside {
  width: 272px;
  gap: 20px;
  align-self: flex-start;
}
.rules-aside .rules-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rules-aside .rules-heading svg {
  color: var(--color-muted);
}
.rules-aside .snapshot-seed {
  font-size: 23px;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.rule-group {
  padding-top: 17px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.rule-item > span:first-child {
  color: var(--color-muted);
}
.rule-item strong {
  font-weight: 500;
}
.rules-aside .scope-note {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.empty-results {
  text-align: center;
  padding: 42px 20px;
  color: var(--color-muted);
  font-size: 12px;
}
.empty-results strong {
  display: block;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}
.training-aside {
  width: 298px;
  gap: 9px;
}
.training-aside > p {
  margin-bottom: 5px;
}
.guide-columns {
  display: flex;
  align-items: flex-start;
  gap: 42px;
  min-width: 0;
}
.guide-article {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.guide-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px 30px;
  background: #f5f7ff;
  border: 1px solid #e5eafe;
  border-radius: 12px;
}
.guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-primary);
}
.guide-hero h2 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 41px;
  max-width: 600px;
}
.guide-hero > p {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-muted);
  max-width: 710px;
}
.guide-facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.guide-facts .badge {
  background: white;
  color: var(--color-primary);
}
.guide-toc {
  width: 196px;
  flex-shrink: 0;
  position: sticky;
  top: 28px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-toc strong {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.guide-toc a {
  font-size: 12px;
  color: var(--color-muted);
  display: flex;
  gap: 10px;
}
.guide-toc a:hover {
  color: var(--color-primary);
}
.guide-toc a span {
  font-size: 10px;
  color: #9096a2;
  font-family: var(--font-mono);
}
.guide-toc .note {
  margin-top: 10px;
  padding: 14px;
  display: block;
}
.guide-toc .note p {
  font-size: 11px;
}
.guide-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 28px;
}
.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.guide-section h2 > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0;
}
.guide-section > p {
  font-size: 13px;
  line-height: 22px;
  color: var(--color-muted);
}
.guide-role-cards {
  display: flex;
  gap: 12px;
}
.guide-role {
  flex: 1;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.guide-role > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-role > div > span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9da4b1;
}
.guide-role p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 20px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.guide-mini {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-mini p {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}
.guide-mini h3 {
  font-size: 13px;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.guide-step > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #eef2ff;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10px;
}
.guide-step p {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 20px;
  margin-top: 3px;
}
.guide-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}
.guide-links a {
  display: flex;
  gap: 6px;
  align-items: center;
}
dialog {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0;
  max-width: min(640px, calc(100vw - 32px));
  width: 640px;
  max-height: 85vh;
  color: var(--color-ink);
  background: white;
  box-shadow: 0 20px 80px #17191d33;
}
dialog::backdrop {
  background: #17191d66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: white;
}
.dialog-header h2 {
  font-size: 18px;
}
.dialog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dialog-body p {
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dialog-body pre {
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.dialog-body h3 {
  font-size: 12px;
}
.dialog-body section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-brand {
  display: none;
}
.mobile-menu {
  display: none;
}
.menu-backdrop {
  display: none;
}
@media (min-width: 1600px) {
  .page {
    padding: 32px 40px;
  }
  .topbar {
    padding: 0 40px;
  }
  .scenario-field {
    width: 280px;
  }
  .action-detail {
    width: 350px;
  }
}
@media (max-width: 1190px) {
  :root {
    --sidebar: 196px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .brand {
    font-size: 20px;
    gap: 8px;
  }
  .page {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .config {
    gap: 18px;
    flex-wrap: wrap;
  }
  .scenario-field {
    width: 230px;
  }
  .config-meta {
    margin-left: 0;
  }
  .policy-choice {
    gap: 10px;
  }
  .panel-header {
    gap: 12px;
  }
  .panel-header > .legend {
    flex-shrink: 1;
    gap: 9px;
  }
  .metric + .metric {
    padding-left: 18px;
  }
  .metric {
    padding-right: 14px;
  }
  .aside {
    width: 268px;
  }
  .action-detail {
    width: 282px;
  }
  .event-head,
  .event-row {
    grid-template-columns: 28px 82px minmax(100px, 1fr) 66px 28px;
    gap: 7px;
  }
  .event-row .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .event-row .action-name {
    font-size: 11px;
  }
  .event-row .actor {
    font-size: 11px;
  }
  .rules-aside {
    width: 230px;
  }
  .guide-columns {
    gap: 26px;
  }
  .guide-toc {
    width: 166px;
  }
  .guide-hero h2 {
    font-size: 32px;
    line-height: 38px;
  }
  .guide-role {
    padding: 16px;
  }
  .training-aside {
    width: 250px;
  }
  .run-config {
    gap: 20px;
  }
}
@media (max-width: 960px) {
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-heading .button {
    padding: 8px 11px;
    font-size: 12px;
  }
  .columns {
    flex-wrap: wrap;
  }
  .columns > .panel {
    flex: 1 1 100%;
  }
  .columns > .aside {
    width: 100%;
  }
  .columns.paired > .panel {
    flex: 1 1 280px;
  }
  .aside.action-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
  }
  .action-detail .detail-label {
    grid-column: 1/-1;
  }
  .action-detail .code-card {
    grid-column: 2;
    grid-row: 2/4;
  }
  .action-detail .detail-copy {
    grid-column: 1;
  }
  .action-detail .auditor-context {
    grid-column: 1;
  }
  .columns > .rules-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }
  .rules-aside .rules-heading {
    grid-column: 1/-1;
  }
  .rules-aside .rule-group {
    padding-top: 12px;
  }
  .rules-aside .scope-note {
    grid-column: 1/-1;
  }
  .guide-toc {
    display: none;
  }
  .guide-columns {
    display: block;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-note {
    font-size: 10px;
  }
  .tabs > .badge {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .training-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
  .training-aside h2,
  .training-aside > p,
  .training-aside > small {
    grid-column: 1/-1;
  }
  .config-description {
    font-size: 12px;
  }
  .compare-metrics .metric-value {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 216px;
    transition: transform 0.2s;
    z-index: 50;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #17191d66;
    border: 0;
  }
  .topbar {
    height: 56px;
    padding: 0 18px;
    gap: 10px;
  }
  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--color-muted);
  }
  .breadcrumb {
    gap: 10px;
  }
  .breadcrumb > .crumb-label,
  .breadcrumb > .crumb-icon {
    display: none;
  }
  .breadcrumb .workspace-crumb {
    font-size: 11px;
  }
  .topbar-meta {
    gap: 8px;
  }
  .topbar-meta > .mono {
    display: none;
  }
  .topbar-meta > .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  .page {
    padding: 24px 18px;
    gap: 20px;
  }
  h1 {
    font-size: 32px;
    line-height: 38px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-heading .button {
    height: 36px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .config {
    padding: 14px;
    gap: 16px 18px;
  }
  .scenario-field {
    flex: 1;
    min-width: 160px;
    width: auto;
  }
  .seed-field {
    width: 80px;
  }
  .policy-choice {
    flex-basis: 100%;
    justify-content: space-between;
  }
  .config-meta {
    margin-left: auto;
    font-size: 11px;
  }
  .config-divider {
    display: none;
  }
  .config-description {
    flex: 1;
  }
  .run-config .field:first-child {
    flex-basis: 100%;
    max-width: none;
  }
  .run-config .badge {
    margin-left: 0;
  }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 2px 0 18px;
  }
  .metric {
    padding-right: 12px;
  }
  .metric + .metric {
    padding-left: 18px;
  }
  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-note {
    font-size: 11px;
  }
  .tabs {
    gap: 12px;
    flex-wrap: wrap;
  }
  .tab-list {
    gap: 22px;
    width: 100%;
  }
  .tab {
    font-size: 12px;
    height: 40px;
  }
  .tabs > .badge {
    margin-bottom: 10px;
    max-width: none;
  }
  .empty {
    padding: 32px 20px;
    gap: 24px;
  }
  .empty h2 {
    font-size: 24px;
  }
  .empty p {
    font-size: 12px;
  }
  .empty-hint {
    font-size: 10px;
    max-width: 260px;
    align-items: flex-start;
  }
  .agent-flow {
    gap: 16px;
  }
  .panel-header {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .panel-header h3 {
    font-size: 14px;
  }
  .panel-header p {
    font-size: 11px;
  }
  .event-head,
  .event-row {
    grid-template-columns: 25px 73px minmax(100px, 1fr) 64px 26px;
    gap: 6px;
  }
  .event-head {
    padding-left: 11px;
    padding-right: 8px;
    font-size: 8px;
  }
  .event-row {
    padding-left: 8px;
    padding-right: 8px;
    min-height: 48px;
  }
  .event-row .actor {
    font-size: 10px;
    gap: 5px;
  }
  .event-row .tick,
  .event-row .reward {
    font-size: 10px;
  }
  .event-row .action-name {
    font-size: 10px;
  }
  .event-row .badge {
    font-size: 9px;
    padding: 3px 5px;
  }
  .event-table-scroll {
    overflow-x: auto;
  }
  .event-table {
    min-width: 340px;
  }
  .table-footer {
    padding: 12px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .table-toolbar {
    padding: 0 14px 14px;
    gap: 10px;
  }
  .search-field {
    flex: 1;
    min-width: 120px;
    width: auto;
  }
  .filter-select {
    max-width: 128px;
  }
  .columns {
    gap: 16px;
  }
  .columns.paired > .panel {
    flex-basis: 100%;
  }
  .aside.action-detail {
    display: flex;
  }
  .aside {
    padding: 18px;
  }
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
  }
  .page-footer > span:last-child {
    text-align: left;
  }
  .note {
    padding: 14px;
    gap: 10px;
  }
  .note p {
    font-size: 11px;
  }
  .stats-card {
    flex-direction: column;
  }
  .small-stat + .small-stat {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
  .small-stat {
    padding: 18px;
    gap: 5px;
  }
  .small-stat > strong {
    font-size: 24px;
  }
  .chart-wrap {
    padding-inline: 8px;
  }
  .chart-caption {
    padding: 0 16px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .legend {
    gap: 12px;
  }
  .chart-caption .legend {
    gap: 12px;
  }
  .chart-tooltip {
    font-size: 9px;
    max-width: 185px;
    min-width: 110px;
  }
  .timeline-label {
    width: 107px;
    font-size: 10px;
  }
  .timeline-row {
    padding: 4px 14px;
    gap: 10px;
  }
  .timeline-axis {
    padding-left: 135px;
    padding-right: 51px;
  }
  .columns > .rules-aside {
    gap: 16px;
  }
  .columns > .rules-aside .snapshot-context {
    grid-column: 1/-1;
  }
  .rules-aside .rule-item {
    gap: 8px;
    font-size: 10px;
  }
  .rules-aside .scope-note {
    font-size: 11px;
  }
  .training-aside {
    display: flex;
  }
  .reward-agent {
    padding: 16px;
    gap: 14px;
  }
  .reward-agent > .actor {
    width: 70px;
    font-size: 11px;
  }
  .reward-agent > strong {
    font-size: 18px;
  }
  .reward-calculation {
    font-size: 10px;
  }
  .guide-hero {
    padding: 24px;
  }
  .guide-hero h2 {
    font-size: 29px;
    line-height: 34px;
  }
  .guide-hero > p {
    font-size: 13px;
    line-height: 22px;
  }
  .guide-facts {
    gap: 8px;
  }
  .guide-facts .badge {
    font-size: 10px;
  }
  .guide-role-cards {
    flex-direction: column;
  }
  .guide-role {
    padding: 18px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-section h2 {
    font-size: 20px;
  }
  .guide-article {
    gap: 24px;
  }
  .guide-section {
    padding-top: 24px;
  }
  .dialog-header {
    padding: 18px;
  }
  .dialog-body {
    padding: 18px;
  }
  .score-bar-row {
    padding: 16px;
    gap: 14px;
  }
  .score-bar-row > .actor {
    width: 70px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.guide-tour {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.guide-tour-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
.guide-tour-link:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.guide-tour-link strong {
  width: 105px;
  flex-shrink: 0;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 550;
}
.guide-tour-link > span {
  flex: 1;
  font-size: 12px;
}
.guide-tour-link > svg {
  width: 20px;
  flex-shrink: 0;
}
.guide-rule {
  display: flex !important;
  gap: 10px;
  align-items: flex-start !important;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 17px;
}
.guide-rule strong {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.positive {
  color: var(--color-success);
}
.negative {
  color: var(--color-attacker);
}
.guide-definitions {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.guide-definitions > div {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--color-border);
}
.guide-definitions strong {
  width: 150px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 550;
}
.guide-definitions p {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 20px;
}
@media (max-width: 700px) {
  .guide-tour-link {
    gap: 12px;
    flex-wrap: wrap;
  }
  .guide-tour-link strong {
    width: auto;
    flex: 1;
  }
  .guide-tour-link > span {
    order: 3;
    flex-basis: 100%;
    padding-left: 32px;
    font-size: 11px;
  }
  .guide-definitions > div {
    gap: 12px;
    flex-direction: column;
  }
  .guide-definitions strong {
    width: auto;
  }
  .guide-definitions p {
    font-size: 12px;
  }
}
