:root {
  color-scheme: light;
  --ink: #091815;
  --ink-soft: #20312c;
  --paper: #f4f6f1;
  --paper-raised: #fffef9;
  --paper-muted: #e6ebe5;
  --line: rgba(18, 23, 20, 0.12);
  --line-strong: rgba(18, 23, 20, 0.22);
  --muted: #5f675f;
  --teal: #007d6d;
  --teal-dark: #05695d;
  --teal-soft: #d3ebe4;
  --signal: #65e8ca;
  --amber: #9c570f;
  --amber-soft: #f5e5c8;
  --red: #b03229;
  --red-soft: #f4d9d5;
  --violet: #6750a4;
  --violet-soft: #e5def3;
  --gray-soft: #e8e9e4;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-card:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.08),
    0 10px 30px -18px rgba(18, 23, 20, 0.28);
  --shadow-card-hover:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.1),
    0 18px 36px -20px rgba(18, 23, 20, 0.34);
}

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

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(circle at 78% 10%, rgba(101, 232, 202, 0.09), transparent 26%),
    linear-gradient(rgba(9, 24, 21, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 24, 21, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
  min-height: 100vh;
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 8px 8px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-130%);
  transition: transform 120ms ease;
  z-index: 1000;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible,
pre:focus-visible {
  box-shadow: 0 0 0 6px var(--paper-raised);
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

body[data-workspace-view="trust"] .topbar-actions .button,
body[data-workspace-view="receipt"] .topbar-actions .button,
body[data-workspace-view="decisions"] .topbar-actions .button,
body[data-phase="proof"] .topbar-actions .button {
  display: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(244, 246, 241, 0.9);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 250px 1fr auto;
  min-height: 76px;
  padding: 12px 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  width: fit-content;
}

.brand img {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 5px 14px rgba(18, 23, 20, 0.14);
  height: 42px;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  width: 42px;
}

.brand span {
  display: grid;
}

.brand strong {
  font-family: var(--display);
  font-size: 24px;
  font-stretch: condensed;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.process {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process li {
  align-items: center;
  color: #8b8f89;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.07em;
  min-height: 40px;
  text-transform: uppercase;
}

.process li + li::before {
  background: var(--line-strong);
  content: "";
  height: 1px;
  margin: 0 14px;
  width: clamp(24px, 3vw, 52px);
}

.process li span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: flex;
  font-size: 10px;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.process li.is-current {
  color: var(--ink);
}

.process li.is-current span {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.process li.is-complete {
  color: var(--teal-dark);
}

.process li.is-complete span {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: end;
}

.execution-badge,
.mode-pill {
  align-items: center;
  background: var(--gray-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.execution-badge.mode-recorded,
.mode-pill.mode-recorded {
  background: var(--amber-soft);
  color: #7a460d;
}

.execution-badge.mode-live,
.mode-pill.mode-live {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.button {
  align-items: center;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  transition-duration: 150ms;
  transition-property: scale, background-color, box-shadow, color;
  transition-timing-function: ease-out;
}

.button-icon,
.glyph {
  fill: none;
  flex: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 18px;
}

.button-icon {
  margin-right: 7px;
}

.button:active,
.decision-button:active,
.claim-filters button:active,
.citation-tabs button:active,
.mobile-tabs button:active,
.copy-reference:active,
.text-action:active {
  scale: 0.96;
}

.button-primary {
  background: var(--teal);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 7px 15px -8px rgba(8, 126, 112, 0.8);
  color: white;
}

.button-primary:hover {
  background: var(--teal-dark);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 10px 20px -9px rgba(8, 126, 112, 0.9);
}

.button-secondary {
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
}

.button-secondary:hover {
  box-shadow: var(--shadow-card-hover);
}

.button-large {
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  min-height: 68px;
  padding: 12px 17px;
  text-align: left;
}

.button-large > .button-icon {
  height: 22px;
  margin-right: 11px;
  width: 22px;
}

.button-copy {
  display: grid;
}

.button-copy > strong {
  font-size: 12px;
}

.button-large .button-copy > span {
  font-size: 10px;
  font-weight: 560;
  margin-top: 4px;
  opacity: 0.78;
}

.status-region {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.app {
  min-height: calc(100vh - 76px);
}

.workspace-shell {
  background: var(--paper);
  display: grid;
  grid-template-columns: 250px minmax(520px, 1fr) 330px;
  height: calc(100vh - 76px);
  min-height: 0;
  overflow: hidden;
}

.workspace-rail,
.channel-thread,
.run-inspector {
  min-width: 0;
  overflow: auto;
}

.workspace-rail {
  background:
    radial-gradient(circle at 18% 0%, rgba(101, 232, 202, 0.13), transparent 24%),
    var(--ink);
  color: #edf2ed;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.workspace-switcher {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 0 4px 18px;
}

.workspace-mark,
.agent-avatar {
  align-items: center;
  background: var(--teal);
  border-radius: 10px;
  color: white;
  display: flex;
  font-family: var(--display);
  font-weight: 850;
  justify-content: center;
}

.workspace-mark {
  height: 38px;
  letter-spacing: -0.04em;
  width: 38px;
}

.workspace-switcher > div {
  display: grid;
}

.workspace-switcher strong {
  font-size: 13px;
}

.workspace-switcher small {
  color: #8e9a92;
  font-size: 9px;
  margin-top: 3px;
}

.workspace-select {
  display: block;
  margin-top: 6px;
}

.workspace-select select {
  width: 100%;
  border: 1px solid rgba(201, 211, 204, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #e8efea;
  font: inherit;
  font-size: 9px;
  padding: 5px 6px;
}

.local-dot {
  color: #8bc9bc;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.workspace-nav {
  margin-top: 20px;
  scrollbar-width: none;
}

.workspace-nav::-webkit-scrollbar {
  display: none;
}

.workspace-nav > p {
  color: #6f7b74;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin: 22px 9px 7px;
  text-transform: uppercase;
}

.workspace-nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #aeb8b1;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 40px;
  padding: 8px 9px;
  text-align: left;
  transition-duration: 150ms;
  transition-property: background-color, color, box-shadow, transform;
  width: 100%;
}

.workspace-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.workspace-nav-item .glyph {
  height: 15px;
  width: 15px;
}

.workspace-nav-item > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-nav-item strong {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
}

.workspace-nav-item:not(.is-alert) strong {
  background: rgba(255, 255, 255, 0.11);
  color: #9eb0a5;
}

.workspace-nav-item.is-active strong {
  background: var(--teal);
  color: white;
}

.workspace-nav-item small {
  color: #77827b;
  font-size: 8px;
  white-space: nowrap;
}

.workspace-nav-item.is-active {
  background: rgba(101, 232, 202, 0.12);
  box-shadow: inset 3px 0 var(--signal);
  color: white;
}

.workspace-nav-item.is-alert {
  color: #f0d2ce;
}

.workspace-nav-item.is-complete {
  color: #9ed8ca;
}

.workspace-nav-item.is-complete strong {
  background: var(--teal);
}

.channel-hash {
  color: #8bc9bc;
  font-family: var(--mono);
  font-size: 17px;
  text-align: center;
}

.agent-presence {
  align-items: center;
  background: #d7f0e9;
  border-radius: 7px;
  color: var(--teal-dark);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 850;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.workspace-boundary {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #7f9187;
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 18px 7px 2px;
}

.workspace-boundary .glyph {
  color: #8bc9bc;
}

.workspace-boundary p {
  display: grid;
}

.workspace-boundary strong {
  color: #b9c5be;
  font-size: 9px;
}

.workspace-boundary span {
  font-size: 8px;
  margin-top: 3px;
}

.workspace-import {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 10px;
  color: #c9d3cc;
  display: grid;
  gap: 9px;
  grid-template-columns: 24px 1fr;
  margin-top: 12px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  transition-duration: 150ms;
  transition-property: background-color, color, transform;
  width: 100%;
}

.workspace-import:hover {
  background: rgba(101, 232, 202, 0.11);
  color: white;
}

.workspace-import .glyph {
  color: #8bc9bc;
  height: 18px;
  width: 18px;
}

.workspace-import span {
  display: grid;
}

.workspace-import strong {
  font-size: 9px;
}

.workspace-import small {
  color: #7f9187;
  font-size: 8px;
  margin-top: 3px;
}

.channel-thread {
  background:
    linear-gradient(rgba(9, 24, 21, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  padding: 30px clamp(26px, 4vw, 66px) 80px;
}

.workspace-notice {
  align-items: center;
  border-radius: 11px;
  display: grid;
  font-size: 10px;
  gap: 9px;
  grid-template-columns: 20px 1fr 30px;
  margin: 0 auto 16px;
  max-width: 820px;
  min-height: 44px;
  padding: 8px 9px 8px 12px;
}

.workspace-notice.notice-success {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.workspace-notice.notice-error {
  background: var(--red-soft);
  color: var(--red);
}

.workspace-notice .glyph {
  height: 16px;
  width: 16px;
}

.workspace-notice button {
  background: transparent;
  border: 0;
  color: currentColor;
  font-size: 18px;
  min-height: 30px;
}

.channel-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 820px;
  padding-bottom: 22px;
}

.channel-head h1 {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 52px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin-top: 8px;
}

.channel-head h1 span {
  color: var(--teal);
  margin-right: 5px;
}

.channel-head > div > p:last-child {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}

.channel-status {
  align-items: center;
  background: var(--red-soft);
  border-radius: 999px;
  color: #963c34;
  display: inline-flex;
  flex: none;
  font-size: 9px;
  font-weight: 800;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
}

.channel-status i {
  background: var(--red);
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.channel-status.is-complete {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.channel-status.is-complete i {
  background: var(--teal);
}

.workspace-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 1fr) auto;
  margin: 18px auto 0;
  max-width: 820px;
}

.workspace-search {
  align-items: center;
  background: var(--paper-raised);
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 18px 1fr;
  min-height: 40px;
  padding: 0 11px;
}

.workspace-search:focus-within {
  box-shadow: 0 0 0 2px rgba(8, 126, 112, 0.26);
}

.workspace-search .glyph {
  color: var(--muted);
  height: 15px;
  width: 15px;
}

.workspace-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 650 10px/1 var(--body);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.workspace-search input::placeholder {
  color: #8b938e;
}

.workspace-filters {
  align-items: center;
  background: rgba(9, 24, 21, 0.045);
  border-radius: 10px;
  display: flex;
  gap: 3px;
  padding: 3px;
}

.workspace-filters button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.workspace-filters button[aria-pressed="true"] {
  background: var(--paper-raised);
  box-shadow: 0 1px 5px rgba(9, 24, 21, 0.08);
  color: var(--ink);
}

.run-index {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 14px auto 0;
  max-width: 820px;
}

.run-index-entry {
  display: contents;
}

.run-index-item {
  align-items: center;
  background: rgba(255, 254, 249, 0.74);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
  transition-duration: 160ms;
  transition-property: background-color, box-shadow, transform;
}

.run-index-item:hover {
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 18px -16px rgba(9, 24, 21, 0.7);
  transform: translateY(-1px);
}

.run-index-item.is-selected {
  background: #fbfffd;
  box-shadow: 0 0 0 2px rgba(8, 126, 112, 0.72), 0 10px 22px -18px rgba(8, 126, 112, 0.8);
}

.run-index-copy {
  display: grid;
  min-width: 0;
}

.run-index-copy strong {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-index-copy small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}

.run-index-status {
  background: var(--gray-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  padding: 5px 7px;
  white-space: nowrap;
}

.status-needs_review .run-index-status {
  background: var(--red-soft);
  color: var(--red);
}

.thread-date {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 9px;
  gap: 14px;
  margin: 26px auto 22px;
  max-width: 820px;
}

.thread-date::before,
.thread-date::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.agent-thread-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 820px;
}

.agent-avatar {
  border-radius: 12px;
  box-shadow: 0 7px 18px -11px rgba(8, 126, 112, 0.9);
  font-size: 20px;
  height: 42px;
  width: 42px;
}

.agent-thread-body {
  min-width: 0;
}

.agent-thread-body > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.agent-thread-body > header > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.agent-thread-body > header strong {
  font-size: 13px;
}

.agent-thread-body > header span,
.agent-thread-body time {
  color: var(--muted);
  font-size: 9px;
}

.agent-message {
  color: #3f4944;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 9px;
}

.agent-run-title {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 13px;
}

.run-timeline {
  background: rgba(255, 254, 249, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  margin: 18px 0 0;
  padding: 5px 16px;
}

.run-timeline li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 11px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 0;
}

.run-timeline li > time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.run-timeline li:last-child {
  border-bottom: 0;
}

.run-timeline li > .glyph {
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-dark);
  height: 27px;
  padding: 6px;
  width: 27px;
}

.run-timeline li.is-review > .glyph {
  background: var(--amber-soft);
  color: #8b5618;
}

.run-timeline li div {
  display: grid;
}

.run-timeline strong {
  font-size: 10px;
}

.run-timeline span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.proof-handoff {
  background:
    radial-gradient(circle at 86% 12%, rgba(101, 232, 202, 0.16), transparent 26%),
    var(--ink);
  border-radius: 17px;
  box-shadow: 0 20px 44px -30px rgba(9, 24, 21, 0.85);
  color: white;
  margin-top: 14px;
  padding: 20px;
}

.proof-handoff-head {
  align-items: center;
  display: flex;
  gap: 12px;
}

.proof-seal {
  align-items: center;
  background: var(--teal);
  border-radius: 11px;
  color: white;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.proof-seal .glyph {
  height: 23px;
  width: 23px;
}

.proof-handoff .eyebrow {
  color: #8bc9bc;
}

.proof-handoff h2 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.proof-handoff > p {
  color: #bdc8c1;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 15px;
}

.handoff-metrics {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding: 13px 0;
}

.handoff-metrics span {
  color: #91a099;
  display: grid;
  font-size: 8px;
  text-transform: uppercase;
}

.handoff-metrics strong {
  color: white;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.proof-handoff .button {
  margin-top: 16px;
  width: 100%;
}

.run-outcome {
  align-items: flex-start;
  background: var(--teal-soft);
  border-radius: 15px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  margin-top: 14px;
  padding: 17px;
}

.run-outcome.is-unavailable {
  background: var(--red-soft);
}

.run-outcome-mark {
  align-items: center;
  background: var(--paper-raised);
  border-radius: 10px;
  color: var(--teal-dark);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.run-outcome.is-unavailable .run-outcome-mark {
  color: var(--red);
}

.run-outcome-mark .glyph {
  height: 20px;
  width: 20px;
}

.run-outcome h2 {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 5px;
}

.run-outcome > div > p:last-child {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 8px;
}

.run-inspector {
  background: var(--paper-raised);
  border-left: 1px solid var(--line);
  padding: 25px 22px 40px;
}

.run-inspector-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.run-inspector > h2 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 18px;
}

.run-goal {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 10px;
}

.workspace-run-meta {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 22px 0 0;
}

.workspace-run-meta > div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 80px 1fr;
  min-height: 44px;
}

.workspace-run-meta > div:last-child {
  border-bottom: 0;
}

.workspace-run-meta dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-run-meta dd {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 730;
  gap: 7px;
  margin: 0;
}

.workspace-run-meta .attention-value {
  color: var(--red);
}

.source-manifest {
  margin-top: 24px;
}

.source-manifest h3 {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-manifest ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.source-manifest li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 26px 1fr;
  min-height: 48px;
}

.source-manifest li > .glyph {
  color: var(--teal-dark);
  height: 17px;
  width: 17px;
}

.source-manifest li span {
  display: grid;
  min-width: 0;
}

.source-manifest li strong {
  font-size: 9px;
}

.source-manifest li small,
.source-manifest > small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  margin-top: 3px;
}

.run-inspector > .button {
  margin-top: 24px;
  width: 100%;
}

.run-inspector > .button + .button {
  margin-top: 8px;
}

.mode-local {
  background: var(--gray-soft);
  color: var(--ink-soft);
}

.inspector-events {
  margin-top: 24px;
}

.inspector-events h3 {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inspector-events > div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 24px 1fr;
  min-height: 48px;
}

.inspector-events .glyph {
  color: var(--teal-dark);
  height: 16px;
  width: 16px;
}

.inspector-events span {
  display: grid;
}

.inspector-events strong {
  font-size: 9px;
}

.inspector-events small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  margin-top: 3px;
}

.workspace-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 48px auto;
  max-width: 820px;
  min-height: 300px;
  text-align: center;
}

.workspace-empty > span {
  align-items: center;
  background: var(--gray-soft);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.workspace-empty .glyph {
  height: 24px;
  width: 24px;
}

.workspace-empty h2 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-top: 15px;
}

.workspace-empty p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}

.boot-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: calc(100vh - 76px);
}

.boot-state p {
  color: var(--muted);
  font-size: 13px;
}

.boot-mark {
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  height: 38px;
  position: relative;
  width: 38px;
}

.boot-mark::after {
  animation: orbit 850ms linear infinite;
  background: var(--teal);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 13px;
  position: absolute;
  top: -5px;
  transform-origin: 4px 23px;
  width: 8px;
}

.onboarding {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 120px);
  grid-template-columns: minmax(440px, 0.95fr) minmax(420px, 0.78fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(50px, 7vh, 94px) clamp(30px, 6vw, 90px);
  position: relative;
}

.onboarding::before {
  background: linear-gradient(90deg, transparent, rgba(8, 126, 112, 0.13), transparent);
  content: "";
  height: 1px;
  left: 5%;
  position: absolute;
  top: 34%;
  transform: rotate(-8deg);
  width: 90%;
  z-index: -1;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 880;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.onboarding-copy h1 {
  font-family: var(--display);
  font-size: clamp(58px, 6vw, 100px);
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.86;
  margin-top: 18px;
  max-width: 820px;
}

.onboarding-copy h1 span {
  color: var(--teal-dark);
}

.lede {
  color: #414b46;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  margin-top: 30px;
  max-width: 670px;
}

.proof-trace {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.proof-trace::before {
  background: linear-gradient(90deg, transparent 4%, var(--teal) 16%, var(--signal) 50%, var(--teal) 84%, transparent 96%);
  content: "";
  height: 1px;
  left: 7%;
  opacity: 0.5;
  position: absolute;
  right: 7%;
  top: 23px;
}

.proof-trace li {
  align-items: center;
  background: rgba(255, 254, 249, 0.72);
  box-shadow: 0 0 0 1px rgba(9, 24, 21, 0.075);
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 12px 10px;
  position: relative;
}

.proof-trace li:first-child {
  border-radius: 14px 0 0 14px;
}

.proof-trace li:last-child {
  border-radius: 0 14px 14px 0;
}

.proof-trace > li > .glyph {
  background: var(--paper-raised);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(9, 24, 21, 0.14), 0 5px 12px -8px rgba(9, 24, 21, 0.55);
  color: var(--teal-dark);
  height: 34px;
  padding: 7px;
  position: relative;
  width: 34px;
  z-index: 1;
}

.proof-trace span {
  display: grid;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.proof-trace strong {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-trace small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  margin-top: 3px;
}

.onboarding-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.trust-strip {
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0;
  padding-top: 18px;
}

.trust-strip div {
  min-width: 0;
  padding-right: 12px;
}

.trust-strip dt,
.run-meta dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trust-strip dd,
.run-meta dd {
  font-size: 12px;
  font-weight: 760;
  margin: 6px 0 0;
}

.packet-preview {
  background: var(--paper-raised);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 28px 60px -32px rgba(18, 23, 20, 0.46);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-2deg) rotateZ(-0.4deg);
  transition-duration: 260ms;
  transition-property: transform, box-shadow;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.packet-preview:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 34px 74px -34px rgba(18, 23, 20, 0.52);
  transform: perspective(1100px) rotateY(0) rotateZ(0) translateY(-3px);
}

.packet-head,
.packet-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.packet-head {
  background: var(--ink);
  color: white;
  padding: 14px 18px;
}

.packet-head span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.packet-head strong {
  color: #b6dcd3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.packet-title {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 24px 22px 18px;
}

.packet-glyph {
  align-items: center;
  background: var(--teal);
  border-radius: 14px;
  color: white;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.packet-glyph .glyph {
  height: 28px;
  width: 28px;
}

.packet-title small {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.packet-title h2 {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
  margin-top: 3px;
}

.packet-title p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.source-stack {
  list-style: none;
  margin: 0;
  padding: 0 22px 20px;
}

.source-stack li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 68px 1fr;
  padding: 14px 0;
}

.source-kind {
  background: var(--paper-muted);
  border-radius: 6px;
  font-family: var(--mono);
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  grid-row: 1 / 3;
  padding: 6px 7px;
  text-align: center;
  text-transform: uppercase;
}

.source-kind .glyph {
  color: var(--teal-dark);
  height: 15px;
  width: 15px;
}

.source-kind em {
  font-style: normal;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-stack strong {
  font-size: 12px;
}

.source-stack small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.packet-foot {
  background: #eff0e9;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  padding: 12px 18px;
}

.analysis-state,
.error-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
  min-height: calc(100vh - 76px);
  padding: 52px 24px;
  text-align: center;
}

.analysis-orbit {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  height: 84px;
  margin-bottom: 27px;
  position: relative;
  width: 84px;
}

.analysis-orbit span {
  animation: orbit 1.1s linear infinite;
  background: var(--teal);
  border-radius: 999px;
  height: 13px;
  left: 35px;
  position: absolute;
  top: -7px;
  transform-origin: 7px 49px;
  width: 13px;
}

.analysis-orbit i {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  height: 30px;
  inset: 26px;
  color: var(--signal);
  display: flex;
  justify-content: center;
  position: absolute;
  width: 30px;
}

.analysis-orbit i .glyph {
  height: 17px;
  width: 17px;
}

.analysis-state h1,
.error-state h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-top: 14px;
}

.analysis-state > p:not(.eyebrow),
.error-state > p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 640px;
}

.analysis-steps {
  display: flex;
  gap: 28px;
  justify-content: center;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.analysis-steps li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 760;
  gap: 7px;
}

.analysis-steps span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: flex;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.analysis-steps .is-complete,
.analysis-steps .is-active {
  color: var(--ink);
}

.analysis-steps .is-complete span {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.analysis-steps .is-active span {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 126, 112, 0.12);
}

.skeleton-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  width: 100%;
}

.skeleton-grid span,
.source-skeleton i {
  animation: pulse 1.2s ease-in-out infinite alternate;
  background: linear-gradient(100deg, #e8e6de, #f5f3ed, #e8e6de);
  background-size: 200% 100%;
  border-radius: 12px;
  height: 84px;
}

.error-code {
  background: var(--red-soft);
  border-radius: 999px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  padding: 7px 10px;
}

.error-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.error-state > small {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 20px;
}

.proof-shell {
  background: var(--paper);
  display: grid;
  grid-template-columns: 300px minmax(430px, 1fr) minmax(390px, 430px);
  height: calc(100vh - 76px);
  min-height: 0;
  overflow: hidden;
}

.proof-pane {
  min-width: 0;
  overflow: auto;
}

.summary-pane {
  background:
    radial-gradient(circle at 12% 8%, rgba(101, 232, 202, 0.16), transparent 22%),
    var(--ink);
  color: #f6f4ec;
  padding: 24px 20px;
}

.claims-pane {
  background: #efede5;
  border-right: 1px solid var(--line);
  padding: 24px 28px;
}

.trace-pane {
  background: var(--paper-raised);
  padding: 24px 22px 34px;
  position: relative;
}

.pane-head,
.trace-head,
.human-gate-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pane-head h2,
.trace-head h2 {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-top: 6px;
}

.summary-pane .eyebrow {
  color: #8bc9bc;
}

.summary-pane .pane-head h2 {
  max-width: 210px;
}

.workspace-back {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8bc9bc;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 6px;
  margin: -6px 0 18px;
  min-height: 38px;
  padding: 5px 0;
}

.workspace-back .glyph {
  height: 13px;
  rotate: 180deg;
  width: 13px;
}

.review-total {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  margin-top: 24px;
  padding: 20px 0;
}

.review-total span {
  color: #b9c0ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-total strong {
  font-family: var(--display);
  font-size: 72px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin-top: 8px;
}

.review-total small {
  color: #9ea6a0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}

.verdict-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  overflow: hidden;
}

.verdict-metric {
  background: rgba(255, 255, 255, 0.065);
  min-height: 74px;
  padding: 12px;
}

.verdict-metric span {
  align-items: center;
  color: #aab0ab;
  display: flex;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verdict-metric span .glyph {
  height: 12px;
  width: 12px;
}

.verdict-metric strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 9px;
}

.verdict-metric.verdict-supported strong {
  color: #76d1bf;
}

.verdict-metric.verdict-unsupported strong,
.verdict-metric.verdict-contradictory strong {
  color: #ef8c80;
}

.verdict-metric.verdict-stale strong {
  color: #edbb70;
}

.verdict-metric.verdict-uncertain strong {
  color: #b8a6e1;
}

.run-summary {
  margin-top: 24px;
}

.run-summary h3,
.reasoning-boundary h3,
.guard-stack h3,
.human-gate h3 {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.run-summary p {
  color: #c3c9c4;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}

.run-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 14px 8px;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0 0;
  padding-top: 18px;
}

.run-meta dt {
  color: #828c85;
}

.run-meta dd {
  color: #e2e5e1;
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.summary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.summary-actions > .button-primary {
  flex: 1 0 100%;
}

.summary-pane .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13);
  color: white;
}

.text-action {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-color: rgba(8, 126, 112, 0.34);
  text-underline-offset: 4px;
  transition-duration: 150ms;
  transition-property: scale, color, text-decoration-color;
}

.text-action:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

.summary-pane .text-action {
  color: #a7d4ca;
}

.mode-disclosure {
  color: #8e9891;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 18px;
}

.claims-head {
  align-items: end;
}

.claim-count {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.claim-filters {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 2px;
}

.claim-filters button,
.citation-tabs button {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 790;
  min-height: 40px;
  padding: 8px 11px;
  transition-duration: 150ms;
  transition-property: scale, color, background-color, box-shadow;
  white-space: nowrap;
}

.claim-filters button:hover,
.claim-filters button[aria-pressed="true"] {
  background: var(--paper-raised);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.claim-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding-bottom: 30px;
}

.claim-card {
  animation: card-in 360ms cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: calc(var(--claim-index) * 60ms);
  background: var(--paper-raised);
  border: 0;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 13px;
  min-height: 142px;
  padding: 17px 48px 16px 17px;
  position: relative;
  text-align: left;
  transition-duration: 170ms;
  transition-property: transform, box-shadow, background-color;
  width: 100%;
}

.claim-card .claim-arrow {
  transition-duration: 170ms;
  transition-property: color, translate;
  transition-timing-function: ease-out;
}

.claim-card:hover .claim-arrow,
.claim-card.is-selected .claim-arrow {
  color: var(--teal-dark);
  translate: 3px 0;
}

.claim-arrow .glyph {
  height: 20px;
  width: 20px;
}

.claim-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.claim-card.is-selected {
  background: #fbfffd;
  box-shadow:
    0 0 0 2px var(--teal),
    0 14px 30px -19px rgba(8, 126, 112, 0.62);
}

.claim-card.is-selected::after {
  background: linear-gradient(90deg, var(--teal), rgba(8, 126, 112, 0.18));
  content: "";
  height: 2px;
  position: absolute;
  right: -29px;
  top: 50%;
  width: 29px;
}

.claim-card > strong {
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 25px);
  letter-spacing: -0.032em;
  line-height: 1.05;
}

.claim-topline,
.claim-foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.verdict-label,
.verdict-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 880;
  gap: 6px;
  letter-spacing: 0.07em;
  min-height: 26px;
  padding: 5px 8px;
  text-transform: uppercase;
}

.verdict-label i {
  background: currentColor;
  border-radius: 999px;
  height: 6px;
  width: 6px;
}

.verdict-supported .verdict-label,
.verdict-chip.verdict-supported {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.verdict-unsupported .verdict-label,
.verdict-chip.verdict-unsupported,
.verdict-contradictory .verdict-label,
.verdict-chip.verdict-contradictory {
  background: var(--red-soft);
  color: var(--red);
}

.verdict-stale .verdict-label,
.verdict-chip.verdict-stale {
  background: var(--amber-soft);
  color: #874d0b;
}

.verdict-uncertain .verdict-label,
.verdict-chip.verdict-uncertain {
  background: var(--violet-soft);
  color: #59418e;
}

.confidence,
.citation-count,
.disagreement,
.decision-pill {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.claim-foot {
  margin-top: auto;
}

.disagreement {
  color: var(--red);
}

.decision-pill {
  background: var(--gray-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 4px 7px;
}

.decision-approved {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.decision-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.decision-resolved {
  background: var(--violet-soft);
  color: #59418e;
}

.decision-more-proof {
  background: var(--amber-soft);
  color: #874d0b;
}

.claim-arrow {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 15px;
  top: calc(50% - 15px);
  width: 30px;
}

.claim-card.is-selected .claim-arrow {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.no-claims {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.no-claims > span {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 999px;
  color: var(--teal-dark);
  display: flex;
  font-size: 23px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.no-claims h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.no-claims p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

.trace-head {
  padding-bottom: 18px;
}

.trace-head h2 {
  font-size: 23px;
  max-width: 300px;
}

.verdict-chip {
  flex: none;
}

.trace-disclosure {
  background: var(--paper-muted);
  border-radius: 12px;
  padding: 12px 14px;
}

.trace-disclosure span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trace-disclosure p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
}

.citation-tabs {
  display: flex;
  gap: 6px;
  margin-top: 15px;
  overflow-x: auto;
  padding: 2px;
}

.citation-tabs button {
  align-items: flex-start;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 46px;
  padding: 7px 10px;
}

.citation-tabs button span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  margin-top: 2px;
}

.citation-tabs button[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: white;
}

.citation-tabs button[aria-pressed="true"] span {
  color: #afbbb4;
}

.source-card {
  background: #f8f8f2;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  margin-top: 10px;
  min-height: 148px;
  overflow: visible;
  position: relative;
}

.source-card::before {
  background: var(--teal);
  border-radius: 999px;
  content: "";
  height: 9px;
  left: -5px;
  position: absolute;
  top: 44px;
  width: 9px;
}

.source-card-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 13px;
}

.source-card-head > div {
  display: grid;
  min-width: 0;
}

.source-card-head span {
  font-size: 11px;
  font-weight: 820;
}

.source-card-head code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-reference {
  background: white;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: none;
  font-size: 9px;
  font-weight: 770;
  min-height: 40px;
  padding: 7px 9px;
  transition-duration: 150ms;
  transition-property: scale, box-shadow;
}

.copy-reference:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.source-code {
  background: #181d1a;
  color: #e8eee9;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
  max-height: 250px;
  overflow: auto;
  padding: 12px 0;
  tab-size: 2;
}

.source-code > span {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-width: max-content;
  padding-right: 14px;
}

.source-code i {
  color: #66716a;
  font-style: normal;
  padding-right: 11px;
  text-align: right;
  user-select: none;
}

.source-code code {
  font: inherit;
  white-space: pre;
}

.source-integrity {
  align-items: center;
  background: #eff3ee;
  border-radius: 0 0 15px 15px;
  color: var(--teal-dark);
  display: flex;
  font-size: 9px;
  font-weight: 800;
  justify-content: space-between;
  padding: 9px 12px;
}

.source-integrity code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.source-skeleton {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.source-skeleton i {
  height: 12px;
}

.source-skeleton i:nth-child(2) {
  width: 83%;
}

.source-skeleton i:nth-child(3) {
  width: 68%;
}

.source-error p,
.source-waiting {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  padding: 16px;
}

.missing-source {
  align-items: center;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 9px, rgba(182, 56, 46, 0.04) 9px, rgba(182, 56, 46, 0.04) 18px),
    #fff8f6;
  border-radius: 15px;
  box-shadow: 0 0 0 1px rgba(182, 56, 46, 0.18);
  display: flex;
  gap: 13px;
  margin-top: 14px;
  min-height: 118px;
  padding: 16px;
}

.missing-source > span {
  align-items: center;
  border: 1px solid rgba(182, 56, 46, 0.25);
  border-radius: 999px;
  color: var(--red);
  display: flex;
  flex: none;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.missing-source h3 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.missing-source p {
  color: #745c57;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 5px;
}

.reasoning-boundary,
.guard-stack,
.human-gate {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.reasoning-boundary p {
  font-size: 12px;
  line-height: 1.58;
  margin-top: 8px;
}

.reasoning-boundary small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  margin-top: 8px;
}

.guard-row {
  align-items: flex-start;
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.guard-row > span {
  align-items: center;
  border-radius: 999px;
  display: flex;
  flex: none;
  font-size: 10px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.guard-row > span .glyph {
  height: 13px;
  width: 13px;
}

.guard-pass > span {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.guard-fail > span {
  background: var(--red-soft);
  color: var(--red);
}

.guard-row p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.guard-row strong {
  color: var(--ink);
  display: block;
  font-size: 9px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.guard-none {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 9px;
}

.human-gate {
  margin-bottom: 16px;
}

.human-gate label {
  display: grid;
  margin-top: 14px;
}

.human-gate label > span {
  font-size: 10px;
  font-weight: 790;
}

.human-gate label small {
  color: var(--muted);
  font-weight: 500;
}

.human-gate textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  line-height: 1.45;
  margin-top: 7px;
  min-height: 66px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.decision-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 9px;
}

.review-error {
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.history-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--amber) 10%, var(--paper));
}

.history-warning > svg {
  width: 22px;
  color: var(--amber);
  flex: 0 0 auto;
}

.history-warning h2,
.history-warning h3,
.history-warning p {
  margin: 0;
}

.history-warning.compact {
  margin-top: 0;
}

.decision-button {
  background: var(--paper-raised);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-strong);
  font-size: 10px;
  font-weight: 820;
  min-height: 42px;
  transition-duration: 150ms;
  transition-property: scale, background-color, color, box-shadow;
}

.decision-button.approve:hover {
  background: var(--teal-soft);
  box-shadow: 0 0 0 1px rgba(8, 126, 112, 0.28);
  color: var(--teal-dark);
}

.decision-button.reject:hover {
  background: var(--red-soft);
  box-shadow: 0 0 0 1px rgba(182, 56, 46, 0.24);
  color: var(--red);
}

.decision-button.resolve:hover {
  background: var(--violet-soft);
  box-shadow: 0 0 0 1px rgba(103, 80, 164, 0.24);
  color: #59418e;
}

.decision-button.more-proof:hover {
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px rgba(169, 105, 26, 0.25);
  color: #874d0b;
}

.trace-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.trace-empty > span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--teal);
  display: flex;
  font-size: 26px;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.trace-empty > span .glyph,
.missing-source > span .glyph,
.no-claims > span .glyph {
  height: 28px;
  width: 28px;
}

.trace-empty h2 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-top: 17px;
}

.trace-empty p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 8px;
  max-width: 290px;
}

.mobile-tabs {
  display: none;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  from { background-position: 100% 0; opacity: 0.58; }
  to { background-position: 0 0; opacity: 1; }
}

@keyframes card-in {
  from {
    filter: blur(4px);
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes circuit-flow {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.trust-head {
  align-items: flex-start;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 920px;
  padding-bottom: 24px;
}

.trust-head > div:first-child {
  max-width: 640px;
}

.trust-head h1,
.trust-empty h1 {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin-top: 8px;
}

.trust-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin-top: 14px;
}

.trust-head-score {
  align-items: flex-end;
  display: grid;
  flex: none;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  text-align: right;
}

.trust-head-score strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 46px;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.trust-head-score span {
  font-size: 10px;
  font-weight: 800;
  margin-top: 7px;
  text-transform: uppercase;
}

.trust-head-score small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}

.trust-circuit {
  background:
    radial-gradient(circle at 82% 18%, rgba(101, 232, 202, 0.18), transparent 34%),
    var(--ink);
  border-radius: 22px;
  box-shadow: 0 24px 60px -38px rgba(9, 24, 21, 0.88);
  color: var(--paper);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(250px, 0.76fr) minmax(420px, 1.24fr);
  margin: 0 auto 18px;
  max-width: 920px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.trust-circuit::after {
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  background-size: 220% 100%;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.82;
  position: absolute;
  right: 0;
  animation: circuit-flow 2.8s linear infinite;
}

.trust-circuit .eyebrow {
  color: #8bc9bc;
}

.trust-circuit-copy h2 {
  font-family: var(--display);
  font-size: 31px;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-top: 8px;
}

.trust-circuit-copy > p:not(.eyebrow) {
  color: #b9c4bc;
  font-size: 10px;
  line-height: 1.55;
  margin-top: 10px;
  max-width: 340px;
}

.trust-circuit-action {
  align-items: center;
  background: var(--signal);
  border-radius: 12px;
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  min-height: 50px;
  padding: 9px 12px;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.trust-circuit-action:hover {
  background: white;
  transform: translateY(-1px);
}

.trust-circuit-action > span {
  display: grid;
  min-width: 0;
}

.trust-circuit-action small {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-circuit-action strong {
  font-family: var(--mono);
  font-size: 9px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-circuit-action .glyph {
  flex: none;
}

.trust-circuit-steps {
  align-self: center;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.trust-circuit-steps::before {
  background: linear-gradient(90deg, var(--signal), rgba(101, 232, 202, 0.25));
  content: "";
  height: 2px;
  left: 12.5%;
  position: absolute;
  right: 12.5%;
  top: 22px;
}

.trust-circuit-steps li {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  text-align: center;
}

.trust-circuit-node {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(101, 232, 202, 0.5);
  border-radius: 999px;
  box-shadow: 0 0 0 5px var(--ink);
  color: var(--signal);
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
  z-index: 1;
}

.trust-circuit-node .glyph {
  height: 19px;
  width: 19px;
}

.trust-circuit-steps li > span:nth-child(2) {
  display: grid;
  margin-top: 12px;
}

.trust-circuit-steps strong {
  font-size: 10px;
}

.trust-circuit-steps small {
  color: #9eaaa2;
  font-size: 8px;
  margin-top: 4px;
}

.trust-circuit-steps em {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  margin-top: 8px;
  text-transform: uppercase;
}

.trust-toolbar {
  display: flex;
  gap: 7px;
  margin: 0 auto 18px;
  max-width: 920px;
  overflow-x: auto;
  padding: 2px;
}

.trust-toolbar button {
  background: rgba(255, 255, 255, 0.68);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: var(--muted);
  flex: none;
  font-size: 9px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 13px;
  transition-duration: 150ms;
  transition-property: background-color, box-shadow, color, transform;
}

.trust-toolbar button:hover,
.trust-toolbar button[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(9, 24, 21, 0.18);
  color: white;
}

.trust-toolbar button:active,
.trust-open:active {
  transform: scale(0.96);
}

.trust-limit {
  background: var(--amber-soft);
  border-radius: 10px;
  color: #7d480f;
  font-size: 10px;
  line-height: 1.5;
  margin: 0 auto 15px;
  max-width: 920px;
  padding: 10px 13px;
}

.workspace-limit {
  background: var(--paper-muted);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 16px;
  padding: 10px 13px;
}

.trust-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 auto;
  max-width: 920px;
  padding: 0;
}

.trust-item {
  background: rgba(255, 254, 249, 0.94);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
  grid-template-columns: 50px minmax(0, 1fr) 140px;
  min-width: 0;
  padding: 16px;
  position: relative;
  transition-duration: 160ms;
  transition-property: box-shadow, transform;
}

.trust-item::before {
  background: var(--teal);
  border-radius: 18px 0 0 18px;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.trust-item.criticality-critical::before {
  background: var(--red);
}

.trust-item.criticality-high::before {
  background: var(--amber);
}

.trust-item:hover,
.trust-item:focus-within,
.trust-item.is-routed {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.trust-rank {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
  gap: 8px;
  justify-content: center;
  padding-right: 14px;
}

.trust-rank span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.trust-rank strong {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.trust-item-copy {
  min-width: 0;
}

.trust-item-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 9px;
  gap: 7px;
}

.trust-item-meta code {
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 8px;
}

.criticality-pill,
.new-pill {
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.criticality-pill {
  background: var(--ink);
  color: white;
}

.criticality-critical .criticality-pill {
  background: var(--red);
}

.criticality-high .criticality-pill {
  background: var(--amber);
}

.new-pill {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.trust-item h2 {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.035em;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.trust-why {
  display: grid;
  font-size: 11px;
  gap: 4px;
  line-height: 1.5;
  margin-top: 10px;
}

.trust-why strong {
  color: var(--red);
}

.trust-why span {
  color: var(--ink-soft);
}

.trust-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.trust-reasons span {
  background: var(--paper-muted);
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 8px;
  padding: 5px 7px;
}

.trust-trace {
  color: var(--muted);
  font-size: 9px;
  margin-top: 11px;
}

.trust-trace summary {
  cursor: pointer;
  min-height: 40px;
  padding-block: 12px;
  width: fit-content;
}

.trust-trace ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-trace li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 94px;
}

.trust-trace li strong {
  color: var(--ink);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.trust-trace li small {
  text-align: right;
}

.trust-open {
  align-items: center;
  align-self: center;
  background: var(--ink);
  border-radius: 11px;
  color: white;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
  transition-duration: 150ms;
  transition-property: background-color, box-shadow, transform;
}

.trust-open:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 18px -12px rgba(5, 105, 93, 0.7);
}

.trust-open .glyph {
  flex: none;
  height: 15px;
  width: 15px;
}

.trust-empty {
  align-items: center;
  display: grid;
  justify-items: center;
  margin: 60px auto;
  max-width: 620px;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.trust-empty > .glyph {
  color: var(--teal);
  height: 34px;
  width: 34px;
}

.trust-empty.is-error > .glyph {
  color: var(--red);
}

.trust-empty p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}

.trust-summary h2 {
  font-size: 29px;
}

.trust-criticality {
  display: grid;
  gap: 7px;
  margin: 24px 0;
}

.trust-criticality div {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
}

.trust-criticality dt {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-criticality dd {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.trust-checkpoint {
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 14px;
}

.trust-checkpoint h3 {
  font-size: 12px;
}

.trust-checkpoint p {
  color: var(--teal-dark);
  font-size: 9px;
  line-height: 1.55;
  margin-top: 7px;
}

.trust-checkpoint .button {
  margin-top: 12px;
  width: 100%;
}

.operator-panel,
.decision-history {
  margin: 0 auto;
  max-width: 920px;
}

.operator-panel {
  background: rgba(255, 254, 249, 0.94);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 24px;
  padding: 22px;
}

.operator-panel section + section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.operator-panel h2 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.operator-fields {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.operator-fields div {
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.operator-fields dt,
.receipt-counts dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.operator-fields dd,
.receipt-counts dd {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
}

.operator-fields code {
  font-family: var(--mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.digest-value {
  color: var(--teal-dark);
}

.receipt-counts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 15px;
}

.receipt-counts div {
  background: var(--paper-muted);
  border-radius: 10px;
  padding: 12px;
}

.receipt-counts dd {
  font-family: var(--display);
  font-size: 24px;
  margin-top: 6px;
}

.receipt-warnings ul,
.decision-history {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.receipt-warnings ul {
  margin-top: 14px;
}

.receipt-warnings li,
.operator-clear {
  align-items: flex-start;
  background: var(--amber-soft);
  border-radius: 10px;
  color: #7d480f;
  display: flex;
  font-size: 10px;
  gap: 9px;
  line-height: 1.5;
  padding: 11px;
}

.receipt-warnings .glyph,
.operator-clear .glyph {
  flex: none;
  height: 16px;
  width: 16px;
}

.operator-clear {
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-top: 14px;
}

.receipt-status strong {
  font-size: 30px;
  text-transform: capitalize;
}

.receipt-status.status-accepted strong {
  color: var(--teal-dark);
}

.decision-history {
  margin-bottom: 24px;
}

.decision-event {
  align-items: center;
  background: rgba(255, 254, 249, 0.94);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
  grid-template-columns: 90px minmax(0, 1fr) 125px;
  padding: 16px;
}

.decision-event.is-current {
  box-shadow: inset 4px 0 var(--teal), var(--shadow-card);
}

.decision-event-status {
  display: grid;
  gap: 8px;
}

.decision-event-status strong {
  font-size: 10px;
  text-transform: capitalize;
}

.decision-event-copy {
  min-width: 0;
}

.decision-event-copy h2 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.decision-event-copy > p:not(.eyebrow),
.decision-event-copy small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  line-height: 1.55;
  margin-top: 6px;
}

.operator-boundary h2 {
  font-size: 25px;
}

@media (max-width: 1240px) {
  .topbar {
    gap: 14px;
    grid-template-columns: 180px 1fr auto;
  }

  .topbar-actions .button-secondary {
    display: none;
  }

  .proof-shell {
    grid-template-columns: 270px minmax(400px, 1fr) 380px;
  }

  .workspace-shell {
    grid-template-columns: 220px minmax(520px, 1fr);
  }

  .run-inspector {
    display: none;
  }

  .onboarding {
    gap: 50px;
    grid-template-columns: minmax(400px, 1fr) minmax(380px, 0.8fr);
    padding-inline: 42px;
  }
}

.proof-circuit-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  position: relative;
}

.proof-circuit-rail::before {
  background: rgba(101, 232, 202, 0.24);
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 13px;
}

.proof-circuit-rail li {
  align-items: center;
  color: #829088;
  display: grid;
  font-family: var(--mono);
  font-size: 7px;
  gap: 6px;
  justify-items: center;
  position: relative;
  text-transform: uppercase;
}

.proof-circuit-rail li > span {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(101, 232, 202, 0.3);
  border-radius: 999px;
  display: flex;
  height: 27px;
  justify-content: center;
  width: 27px;
  z-index: 1;
}

.proof-circuit-rail .glyph {
  height: 12px;
  width: 12px;
}

.proof-circuit-rail .is-complete {
  color: #a8d5ca;
}

.proof-circuit-rail .is-current {
  color: var(--signal);
}

.proof-circuit-rail .is-current > span {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(101, 232, 202, 0.11);
  color: var(--ink);
}

@media (max-width: 1020px) {
  .process {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .proof-shell {
    grid-template-columns: 240px minmax(380px, 1fr) 350px;
  }

  .summary-pane {
    padding-inline: 16px;
  }

  .claims-pane {
    padding-inline: 20px;
  }

  .trace-pane {
    padding-inline: 17px;
  }

  .onboarding {
    grid-template-columns: 1fr;
    max-width: 820px;
    padding-block: 60px;
  }

  .packet-preview {
    transform: none;
  }
}

@media (max-width: 820px) {
  body {
    background-size: 22px 22px;
    padding-bottom: 70px;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 12px;
    position: static;
  }

  .brand img {
    border-radius: 10px;
    height: 38px;
    width: 38px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    font-size: 9px;
  }

  .execution-badge {
    display: none;
  }

  .topbar-actions .button-primary {
    font-size: 0;
    min-height: 40px;
    padding: 8px;
    width: 42px;
  }

  .topbar-actions .button-primary .button-icon {
    margin: 0;
  }

  .app {
    min-height: calc(100vh - 66px);
  }

  .workspace-shell {
    display: block;
    height: auto;
    min-height: calc(100vh - 66px);
    overflow: visible;
  }

  .workspace-rail,
  .channel-thread {
    overflow: visible;
  }

  .workspace-rail {
    display: block;
    padding: 12px;
  }

  .workspace-switcher {
    border: 0;
    padding: 0;
  }

  .workspace-nav {
    display: flex;
    gap: 7px;
    margin-top: 12px;
    overflow-x: auto;
  }

  .workspace-nav > p,
  .workspace-boundary {
    display: none;
  }

  .workspace-nav-item {
    flex: none;
    min-width: 150px;
    width: auto;
  }

  .workspace-import {
    margin-top: 10px;
  }

  body[data-workspace-view="trust"] .workspace-import {
    display: none;
  }

  .channel-thread {
    padding: 26px 16px 90px;
  }

  .trust-head {
    display: grid;
    gap: 18px;
  }

  .trust-head-score {
    align-items: end;
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .trust-head-score strong {
    grid-row: 1 / span 2;
    margin-right: 12px;
  }

  .trust-head-score small {
    margin-top: 2px;
  }

  .trust-circuit {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .trust-circuit-copy h2 {
    font-size: 29px;
  }

  .trust-circuit-steps strong {
    font-size: 9px;
  }

  .trust-circuit-steps small {
    font-size: 7px;
  }

  .trust-toolbar {
    margin-top: 20px;
  }

  .trust-item {
    gap: 12px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .trust-rank {
    padding-right: 10px;
  }

  .trust-rank strong {
    font-size: 20px;
  }

  .trust-open {
    grid-column: 1 / -1;
    margin-left: 52px;
  }

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

  .decision-event {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .decision-event .trust-open {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .channel-head {
    display: block;
  }

  .channel-head h1 {
    font-size: clamp(32px, 10vw, 45px);
    overflow-wrap: anywhere;
  }

  .channel-status {
    margin-top: 16px;
  }

  .workspace-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .workspace-filters {
    overflow-x: auto;
  }

  .workspace-filters button {
    flex: 1;
  }

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

  .agent-thread-card {
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .agent-avatar {
    border-radius: 9px;
    font-size: 16px;
    height: 34px;
    width: 34px;
  }

  .agent-thread-body > header > div {
    display: grid;
    gap: 2px;
  }

  .proof-handoff h2 {
    font-size: 22px;
  }

  .handoff-metrics {
    gap: 10px;
  }

  .onboarding {
    display: block;
    min-height: auto;
    overflow: visible;
    padding: 46px 18px 36px;
  }

  .onboarding-copy h1 {
    font-size: clamp(50px, 15vw, 70px);
    line-height: 0.88;
    margin-top: 14px;
  }

  .lede {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 24px;
  }

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

  .proof-trace::before {
    display: none;
  }

  .proof-trace li,
  .proof-trace li:first-child,
  .proof-trace li:last-child {
    border-radius: 12px;
  }

  .proof-trace small {
    white-space: normal;
  }

  .onboarding-actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .button-large {
    width: 100%;
  }

  .trust-strip {
    gap: 16px 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }

  .packet-preview {
    margin-top: 38px;
  }

  .packet-head strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .packet-title {
    align-items: flex-start;
    padding-inline: 16px;
  }

  .source-stack {
    padding-inline: 16px;
  }

  .source-stack li {
    grid-template-columns: 60px 1fr;
  }

  .analysis-state,
  .error-state {
    min-height: calc(100vh - 136px);
  }

  .analysis-state h1,
  .error-state h1 {
    font-size: 42px;
  }

  .analysis-steps {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .skeleton-grid span:nth-child(n + 2) {
    display: none;
  }

  .proof-shell {
    display: block;
    height: auto;
    min-height: calc(100vh - 136px);
    overflow: visible;
  }

  .proof-pane {
    display: none;
    min-height: calc(100vh - 136px);
    overflow: visible;
  }

  body[data-mobile-view="summary"] [data-proof-view="summary"],
  body[data-mobile-view="claims"] [data-proof-view="claims"],
  body[data-mobile-view="source"] [data-proof-view="source"] {
    display: block;
  }

  .summary-pane,
  .claims-pane,
  .trace-pane {
    border: 0;
    padding: 22px 17px 110px;
  }

  .review-total strong {
    font-size: 82px;
  }

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

  .claims-head h2 {
    font-size: 28px;
  }

  .claim-list {
    gap: 10px;
  }

  .claim-card {
    min-height: 150px;
    padding-right: 46px;
  }

  .claim-card > strong {
    font-size: 23px;
  }

  .claim-card.is-selected::after {
    display: none;
  }

  .trace-head h2 {
    font-size: 25px;
  }

  .source-code {
    max-height: 310px;
  }

  .mobile-tabs {
    background: rgba(255, 254, 249, 0.94);
    border-top: 1px solid var(--line-strong);
    bottom: 0;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    position: fixed;
    right: 0;
    z-index: 30;
  }

  .mobile-tabs button {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    min-height: 44px;
    transition-duration: 150ms;
    transition-property: scale, background-color, color;
  }

  .mobile-tabs button[aria-selected="true"] {
    background: var(--ink);
    color: white;
  }
}

@media (max-width: 440px) {
  .topbar-actions .button-primary {
    font-size: 0;
  }

  .source-stack li {
    align-items: start;
  }

  .packet-foot {
    gap: 6px;
  }

  .packet-foot span:last-child {
    display: none;
  }

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

  .trust-circuit {
    border-radius: 18px;
    margin-inline: -2px;
    padding: 18px 16px 20px;
  }

  .trust-circuit-steps::before {
    left: 10%;
    right: 10%;
  }

  .trust-circuit-node {
    height: 38px;
    width: 38px;
  }

  .trust-circuit-steps li > span:nth-child(2) {
    margin-top: 10px;
  }

  .decision-button {
    min-height: 44px;
  }

  .summary-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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

@media (forced-colors: active) {
  .trust-item,
  .receipt-panel,
  .decision-history,
  .workspace-nav button,
  .workspace-import,
  .button,
  .decision-button {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }

  .trust-item.is-routed,
  .trust-item:focus-within,
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }

  .criticality-pill,
  .new-pill,
  .mode-pill,
  .receipt-status {
    border: 1px solid currentColor;
  }
}
