:root {
  color-scheme: light;
  --canvas: #f4f4f0;
  --surface: #ffffff;
  --surface-soft: #eceeea;
  --ink: #171a18;
  --muted: #646a66;
  --rule: #d8dcd7;
  --rule-strong: #aeb5af;
  --current: #066a59;
  --current-soft: #dcece8;
  --observation: #854d00;
  --observation-soft: #f4e7d2;
  --summary: #315f9a;
  --summary-soft: #dfe8f3;
  --reflection: #70466e;
  --reflection-soft: #ece2eb;
  --superseded: #a5413b;
  --superseded-soft: #f2dfdc;
  --focus: #1558d6;
  --shadow: 0 12px 28px rgb(23 26 24 / 8%);
  --content: 1180px;
  --radius: 6px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  background: var(--canvas);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: var(--canvas);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 8px;
}

.primary-nav a {
  position: relative;
  display: flex;
  min-width: 70px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #343a36;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  background: var(--current);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-action,
.button,
.button-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--current);
  border-radius: var(--radius);
  background: var(--current);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-action {
  padding: 0 18px;
}

.header-action:hover,
.button:hover:not(:disabled) {
  border-color: #056451;
  background: #056451;
}

.button:active:not(:disabled),
.header-action:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-secondary {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.full-result-link {
  margin-top: 18px;
  padding: 0 18px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.menu-button {
  display: none;
}

main {
  min-height: calc(100vh - 68px);
}

.page-shell {
  padding-top: 48px;
  padding-bottom: 80px;
}

.page-intro {
  max-width: 780px;
  margin-bottom: 42px;
}

.page-intro h1,
.home-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: 46px;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.page-intro p,
.home-intro p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.home-shell {
  padding-top: 0;
}

.home-intro {
  padding: 58px 0 38px;
}

.home-intro h1 {
  font-size: 62px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.home-actions .button,
.home-actions .button-secondary {
  min-width: 174px;
  padding: 0 20px;
}

.proof-band,
.personal-agent-band,
.query-workspace,
.safety-band,
.closing-band {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.proof-band {
  background: var(--surface);
}

.personal-agent-band {
  background: #10201d;
  color: #f7fbf9;
}

.personal-agent-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.personal-agent-band .section-head p,
.personal-agent-band .section-head a {
  color: #bdcbc6;
}

.personal-agent-flow {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #4b5d57;
  border-bottom: 1px solid #4b5d57;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.personal-agent-flow li {
  display: grid;
  min-height: 138px;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid #4b5d57;
}

.personal-agent-flow li:last-child {
  border-right: 0;
}

.personal-agent-flow span,
.personal-agent-flow small {
  color: #9fb0aa;
  font-size: 12px;
}

.personal-agent-flow span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.personal-agent-flow strong {
  font-size: 16px;
}

.personal-agent-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 20px;
  color: #bdcbc6;
  font-size: 12px;
}

.personal-agent-proof span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #35b7ad;
}

.proof-band-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2,
.section-head h3,
.section-title {
  margin: 0;
  font-size: 26px;
  font-weight: 740;
  line-height: 1.18;
}

.section-head p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head a,
.footer-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-inner nav a {
  min-width: 44px;
}

.scope-line {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.scope-line::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--current);
  background: var(--current-soft);
  content: "";
}

.query-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: end;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: #3d433f;
  font-size: 13px;
  font-weight: 700;
}

.query-input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  resize: vertical;
}

.query-form .button {
  min-height: 54px;
  padding: 0 20px;
}

.example-queries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.example-query {
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: #313733;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.example-query:hover {
  border-color: var(--current);
  color: var(--current);
}

.status-line {
  min-height: 28px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.result-shell {
  margin-top: 26px;
  border-top: 1px solid var(--rule);
}

.query-result-reserved {
  min-height: 920px;
}

[data-query-result] {
  display: flow-root;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 14px;
}

.result-heading h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.retrieval-mode {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.answer-summary {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--current);
  background: var(--current-soft);
  font-size: 16px;
  line-height: 1.55;
}

.memory-ledger {
  border-top: 1px solid var(--rule);
}

.memory-row {
  position: relative;
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(210px, 1.15fr) minmax(130px, 0.62fr) minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.memory-row[data-state="current"]::before,
.memory-row[data-state="superseded"]::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  content: "";
}

.memory-row[data-state="current"]::before {
  background: var(--current);
}

.memory-row[data-state="superseded"]::before {
  background: var(--superseded);
}

.memory-cell {
  min-width: 0;
  padding: 13px 14px;
}

.memory-cell:first-child {
  padding-left: 22px;
}

.memory-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 720;
}

.memory-value {
  color: var(--current);
  font-size: 16px;
  font-weight: 720;
}

.memory-row[data-state="superseded"] .memory-value {
  color: var(--superseded);
}

.mono,
.object-id,
.timestamp,
.predicate,
.source-ref,
.inventory-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.object-id,
.timestamp,
.source-ref {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.status-label,
.type-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.status-label::before,
.type-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.is-current,
.type-fact {
  background: var(--current-soft);
  color: var(--current);
}

.is-superseded {
  background: var(--superseded-soft);
  color: var(--superseded);
}

.type-observation {
  background: var(--observation-soft);
  color: var(--observation);
}

.type-summary {
  background: var(--summary-soft);
  color: var(--summary);
}

.type-reflection {
  background: var(--reflection-soft);
  color: var(--reflection);
}

.source-details {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.source-details > summary,
.assembly-details > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  cursor: pointer;
  color: #303632;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.source-details > summary::-webkit-details-marker,
.assembly-details > summary::-webkit-details-marker {
  display: none;
}

.source-details > summary::after,
.assembly-details > summary::after {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
}

.source-details[open] > summary::after,
.assembly-details[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.source-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 20px 20px 22px;
}

.source-step {
  position: relative;
  min-width: 0;
  padding: 18px 18px 14px 24px;
  border-top: 1px solid var(--rule);
}

.source-step:not(:last-child)::after {
  position: absolute;
  top: 28px;
  right: -5px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--rule-strong);
  border-right: 1px solid var(--rule-strong);
  content: "";
  transform: rotate(45deg);
}

.source-step::before {
  position: absolute;
  top: 23px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--current);
  content: "";
}

.source-step.observation::before {
  background: var(--observation);
}

.source-step.turn::before {
  background: var(--summary);
}

.source-step h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.source-step p,
.source-step blockquote {
  margin: 0;
  color: #444a46;
  font-size: 13px;
  line-height: 1.55;
}

.source-step blockquote {
  padding-left: 12px;
  border-left: 1px solid var(--rule-strong);
}

.assembly-details {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.assembly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}

.assembly-item {
  min-height: 92px;
  padding: 16px;
  background: var(--canvas);
}

.assembly-item strong,
.assembly-item span {
  display: block;
}

.assembly-item strong {
  margin-bottom: 7px;
  font-size: 13px;
}

.assembly-item span {
  color: var(--muted);
  font-size: 12px;
}

.section-block {
  padding: 66px 0;
}

.object-ledger {
  margin-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.object-ledger-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 180px minmax(0, 1fr) minmax(180px, 0.45fr);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.object-ledger-row > * {
  padding: 14px;
}

.object-ledger-row > :first-child {
  font-weight: 720;
}

.object-ledger-row > :last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.timeline {
  display: grid;
  max-width: 860px;
  grid-template-columns: 160px 30px minmax(0, 1fr);
  margin-top: 28px;
}

.timeline-time,
.timeline-entry {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.timeline-time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.timeline-rail {
  position: relative;
  border-top: 1px solid var(--rule);
}

.timeline-rail::before {
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 50%;
  width: 1px;
  background: var(--rule-strong);
  content: "";
}

.timeline-rail::after {
  position: absolute;
  top: 22px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid var(--canvas);
  border-radius: 50%;
  background: var(--current);
  box-shadow: 0 0 0 1px var(--current);
  content: "";
}

.timeline-rail.timeline-row.superseded::after,
.timeline-rail.superseded::after {
  background: var(--superseded);
  box-shadow: 0 0 0 1px var(--superseded);
}

.timeline-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.timeline-entry strong {
  font-size: 17px;
}

.timeline-entry span {
  color: var(--muted);
  font-size: 12px;
}

.safety-band {
  background: var(--ink);
  color: var(--surface);
}

.safety-band-inner {
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  grid-template-columns: 190px 1fr 1fr;
  align-items: stretch;
}

.safety-title,
.safety-scope {
  padding: 28px 24px;
}

.safety-title {
  padding-left: 0;
  font-size: 18px;
  font-weight: 740;
}

.safety-scope {
  border-left: 1px solid #4b504c;
}

.safety-scope strong,
.safety-scope span {
  display: block;
}

.safety-scope strong {
  margin-bottom: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.safety-scope span {
  color: #c9cfca;
  font-size: 13px;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  counter-reset: method;
  list-style: none;
}

.method-stage {
  position: relative;
  min-height: 260px;
  padding: 22px 18px;
  border-left: 1px solid var(--rule);
  counter-increment: method;
}

.method-stage:first-child {
  border-left: 0;
}

.method-stage:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: -6px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--canvas);
  content: "";
  transform: rotate(45deg);
}

.method-stage h2 {
  min-height: 48px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.3;
}

.method-stage h2::before {
  margin-right: 7px;
  color: var(--muted);
  content: counter(method) ".";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.method-stage p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.method-object-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-object-list li {
  min-height: 29px;
  padding: 5px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.store-symbol {
  display: grid;
  min-height: 94px;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.truth-symbol {
  position: relative;
  display: grid;
  min-height: 110px;
  align-content: center;
  gap: 16px;
  padding-left: 24px;
}

.truth-symbol::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: var(--rule-strong);
  content: "";
}

.truth-point {
  position: relative;
  font-size: 11px;
}

.truth-point::before {
  position: absolute;
  top: 4px;
  left: -22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--superseded);
  content: "";
}

.truth-point.current::before {
  background: var(--current);
}

.optional-lane {
  padding: 15px 10px;
  border: 1px dashed var(--rule-strong);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.method-example {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-strong);
}

.method-example-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.method-example-heading h2 {
  margin: 0;
  font-size: 20px;
}

.method-example-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.method-example-heading .text-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.method-example-path {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) auto minmax(300px, 1.35fr) auto minmax(220px, 0.9fr);
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.method-example-path > div {
  display: grid;
  gap: 7px;
}

.method-example-path a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--current);
}

.method-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.method-detail {
  padding: 24px;
}

.method-detail + .method-detail {
  border-left: 1px solid var(--rule);
}

.method-detail h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.definition-list {
  margin: 0;
}

.definition-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.definition-row dt {
  font-weight: 720;
}

.definition-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.evidence-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}

.inventory-line {
  color: var(--muted);
  font-size: 11px;
}

.evidence-tabs {
  display: flex;
  min-height: 52px;
  align-items: stretch;
  gap: 8px;
  border-bottom: 1px solid var(--rule-strong);
}

.evidence-tab {
  position: relative;
  min-width: 92px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.evidence-tab::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--ink);
  content: "";
  opacity: 0;
}

.evidence-tab[aria-selected="true"]::after {
  opacity: 1;
}

.evidence-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
  border-bottom: 1px solid var(--rule-strong);
}

.evidence-list {
  min-width: 0;
  padding: 22px 20px 22px 0;
  border-right: 1px solid var(--rule-strong);
}

.evidence-list h2,
.provenance-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.evidence-table th,
.evidence-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--rule);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.evidence-table th {
  color: #3e4540;
  font-size: 11px;
  font-weight: 750;
}

.evidence-table tbody tr {
  cursor: pointer;
}

.evidence-table tbody tr:hover,
.evidence-table tbody tr[aria-selected="true"] {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--current);
}

.evidence-records {
  display: none;
}

.evidence-records.always-visible {
  display: grid;
}

.provenance-panel {
  min-width: 0;
  padding: 22px 0 26px 24px;
}

.provenance-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.provenance-chain {
  position: relative;
  margin-top: 6px;
  padding-left: 24px;
}

.provenance-chain::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 1px;
  background: var(--rule-strong);
  content: "";
}

.provenance-node {
  position: relative;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.provenance-node::before {
  position: absolute;
  top: 19px;
  left: -22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--current);
  content: "";
}

.provenance-node.observation::before {
  background: var(--observation);
}

.provenance-node.turn::before {
  background: var(--summary);
}

.provenance-node h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.provenance-node dl {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  font-size: 12px;
}

.provenance-node dt {
  font-weight: 700;
}

.provenance-node dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.source-excerpt {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.record-label,
.generated-label,
.asset-type,
.asset-review {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.record-label {
  border-color: var(--current);
  background: var(--current-soft);
  color: #064f43;
}

.generated-label {
  border-color: var(--reflection);
  background: var(--reflection-soft);
  color: #543453;
}

.workspace-heading,
.recommendation-heading,
.asset-ledger-heading,
.assist-result-heading,
.inspector-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workspace-heading {
  margin-bottom: 20px;
}

.workspace-heading h2,
.asset-ledger-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.workspace-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.home-capability-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 38px;
}

.home-recommendation {
  min-width: 0;
}

.home-capability-proof .analytics-strip {
  align-self: start;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.home-capability-proof .analytics-type-line {
  grid-column: 1 / -1;
  min-height: 64px;
  padding-left: 0;
  border-top: 1px solid var(--rule);
  border-left: 0;
}

.recommendation-workspace,
.assist-workspace,
.demo-evidence-query,
.capability-analytics {
  padding: 30px 0 38px;
  border-top: 1px solid var(--rule-strong);
}

.assist-workspace,
.demo-evidence-query {
  margin-top: 48px;
}

.recommendation-form,
.assist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: end;
  gap: 14px;
}

.recommendation-form select,
.asset-filters select,
.assist-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.assist-form textarea {
  min-height: 104px;
  line-height: 1.45;
  resize: vertical;
}

.recommendation-form .button,
.assist-form .button-secondary {
  min-height: 54px;
  padding: 0 18px;
}

.assist-form .button-secondary:disabled {
  cursor: wait;
  opacity: 0.55;
}

.recommendation-result-reserved {
  min-height: 330px;
}

.recommendation-record {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}

.recommendation-heading {
  align-items: flex-end;
}

.recommendation-heading h3 {
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 1.2;
}

.recommendation-reason {
  max-width: 760px;
  margin: 12px 0 20px;
  color: var(--muted);
}

.recommended-assets {
  border-bottom: 1px solid var(--rule);
}

.recommended-asset-row {
  display: grid;
  min-height: 76px;
  grid-template-columns: 130px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.recommended-asset-row:hover {
  background: var(--surface-soft);
}

.recommended-asset-copy,
.recommended-asset-copy strong,
.recommended-asset-copy span {
  display: block;
  min-width: 0;
}

.recommended-asset-copy .recommended-asset-why {
  margin-top: 8px;
  color: var(--ink);
}

.recommended-asset-copy .recommended-asset-evidence {
  margin-top: 7px;
  color: var(--current);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recommended-asset-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.recommended-asset-copy strong {
  line-height: 1.3;
}

.recommended-asset-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.asset-version {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-align: right;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  color: var(--current);
  font-size: 13px;
  font-weight: 700;
}

.asset-type-prompt {
  border-color: var(--summary);
  background: var(--summary-soft);
  color: #244a7a;
}

.asset-type-workflow {
  border-color: var(--current);
  background: var(--current-soft);
  color: #064f43;
}

.asset-type-agent {
  border-color: var(--reflection);
  background: var(--reflection-soft);
  color: #543453;
}

.asset-type-decision_pattern {
  border-color: var(--observation);
  background: var(--observation-soft);
  color: #694000;
}

.asset-type-best_practice {
  border-color: var(--superseded);
  background: var(--superseded-soft);
  color: #77302c;
}

.asset-review-approved {
  border-color: var(--current);
  color: #064f43;
}

.asset-review-reviewed {
  border-color: var(--observation);
  color: #694000;
}

.asset-review-draft,
.asset-review-not_provided {
  color: var(--muted);
}

.analytics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 0.45fr)) minmax(280px, 1.65fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.analytics-strip > div {
  display: grid;
  min-height: 90px;
  align-content: center;
  padding: 14px 18px;
  border-left: 1px solid var(--rule);
}

.analytics-strip > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.analytics-strip > div > strong {
  font-size: 25px;
  line-height: 1;
}

.analytics-strip > div > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-strip .analytics-type-line {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.analytics-type-line span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.analytics-type-line strong {
  color: var(--ink);
}

.assist-result {
  margin-top: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--reflection);
  border-bottom: 1px solid var(--rule);
}

.assist-result-heading {
  align-items: center;
}

.assist-result-heading > strong {
  color: var(--muted);
  font-size: 11px;
}

.assist-copy {
  max-width: 880px;
  margin: 20px 0;
  color: #303532;
  white-space: pre-line;
}

.assist-result h4 {
  margin: 20px 0 8px;
  font-size: 14px;
}

.assist-plan,
.assist-result ul {
  margin: 8px 0;
  padding-left: 22px;
}

.assist-guidance {
  border-bottom: 1px solid var(--rule);
}

.assist-guidance > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.assist-guidance span,
.assist-guidance small {
  color: var(--muted);
}

.assist-guidance small {
  grid-column: 2;
}

.assist-assets {
  margin-top: 18px;
}

.assist-fallback {
  border-top-color: var(--observation);
}

.assets-page .page-intro {
  margin-bottom: 34px;
}

.capability-analytics {
  padding-top: 24px;
}

.analytics-ledger {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr) minmax(320px, 1.3fr);
  border-bottom: 1px solid var(--rule);
}

.analytics-ledger > section {
  min-width: 0;
  padding: 20px;
  border-left: 1px solid var(--rule);
}

.analytics-ledger > section:first-child {
  padding-left: 0;
  border-left: 0;
}

.analytics-ledger h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.analytics-ledger p,
.analytics-ledger li span {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.analytics-ledger ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analytics-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
}

.asset-filters {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 0.9fr 158px;
  align-items: end;
  gap: 12px;
  margin-top: 42px;
}

.asset-filters .button-secondary {
  min-height: 54px;
  padding: 0 16px;
}

.assets-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  border-top: 1px solid var(--rule-strong);
}

.asset-ledger {
  min-width: 0;
  padding: 22px 24px 0 0;
  border-right: 1px solid var(--rule-strong);
}

.asset-ledger-heading {
  align-items: baseline;
  margin-bottom: 12px;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.asset-table th,
.asset-table td {
  padding: 12px 8px;
  border-top: 1px solid var(--rule);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.asset-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.asset-table th:first-child {
  width: 32%;
}

.asset-table th:nth-child(2) {
  width: 18%;
}

.asset-table th:nth-child(3) {
  width: 21%;
}

.asset-table th:nth-child(4) {
  width: 18%;
}

.asset-table th:last-child {
  width: 11%;
}

.asset-table tbody tr {
  cursor: pointer;
}

.asset-table tbody tr:hover,
.asset-table tbody tr[aria-selected="true"] {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--current);
}

.asset-table td:first-child strong,
.asset-table td:first-child span {
  display: block;
}

.asset-table .object-id {
  margin-top: 5px;
}

.asset-records {
  display: none;
}

.asset-inspector {
  min-width: 0;
  padding: 22px 0 0 24px;
}

.asset-inspector-header h2 {
  margin: 12px 0 8px;
  font-size: 25px;
  line-height: 1.2;
}

.asset-inspector-header p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.asset-inspector-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.asset-inspector-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.asset-detail-list,
.governance-grid {
  margin: 0;
}

.asset-detail-list > div {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}

.asset-detail-list > div:first-child {
  border-top: 0;
}

.asset-detail-list dt,
.governance-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.asset-detail-list dd,
.governance-grid dd {
  margin: 4px 0 0;
  font-size: 13px;
}

.governance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.governance-grid > div,
.governance-grid dd {
  min-width: 0;
}

.governance-grid dd,
.governance-grid code {
  overflow-wrap: anywhere;
}

.governance-wide {
  grid-column: 1 / -1;
}

.governance-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.asset-content-body {
  max-height: 360px;
  margin: 16px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--surface-soft);
  color: var(--ink);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.split-inspector-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.split-inspector-section > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.split-inspector-section strong {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}

.asset-link-list {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.asset-link-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.external-asset-ref,
.external-asset-ref span,
.external-asset-ref small {
  display: block;
}

.external-asset-ref {
  min-height: 32px;
  padding: 5px 0;
}

.external-asset-ref small {
  margin-top: 2px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 9px;
}

.asset-evidence {
  border-top: 1px solid var(--rule);
}

.asset-evidence > summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.asset-evidence-path {
  display: grid;
  grid-template-columns: 0.65fr 0.9fr 1.2fr;
  gap: 1px;
  padding-bottom: 12px;
  background: var(--rule);
}

.asset-evidence-path > div {
  min-width: 0;
  padding: 10px;
  background: var(--surface);
}

.asset-evidence-path span,
.asset-evidence-path strong {
  display: block;
}

.asset-evidence-path span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.asset-evidence-path strong {
  margin-top: 4px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.asset-evidence-path blockquote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.empty-state,
.error-state,
.loading-state {
  min-height: 180px;
  padding: 32px 0;
  color: var(--muted);
}

.error-state {
  color: var(--superseded);
}

.closing-band {
  margin-top: 66px;
  background: var(--surface);
}

.closing-band-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 150px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.closing-band h2 {
  margin: 0;
  font-size: 29px;
}

.closing-band p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.closing-band .button {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 0 20px;
}

.site-footer {
  border-top: 1px solid var(--rule-strong);
}

.footer-inner {
  display: grid;
  min-height: 132px;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 16px;
  }

  .primary-nav a {
    min-width: 60px;
  }

  .header-action {
    display: none;
  }

  .memory-row {
    grid-template-columns: minmax(190px, 1fr) 130px minmax(180px, 0.85fr) minmax(190px, 0.95fr);
  }

  .query-result-reserved {
    min-height: 940px;
  }

  .method-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .method-stage:nth-child(4) {
    border-left: 0;
  }

  .method-stage:nth-child(-n + 3) {
    border-bottom: 1px solid var(--rule);
  }

  .method-stage:nth-child(3)::after {
    display: none;
  }

  .assets-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-ledger {
    padding-right: 0;
    border-right: 0;
  }

  .asset-inspector {
    margin-top: 30px;
    padding: 30px 0 0;
    border-top: 1px solid var(--rule-strong);
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .proof-band-inner,
  .personal-agent-inner,
  .safety-band-inner,
  .closing-band-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-button {
    display: grid;
    gap: 4px;
  }

  .menu-button span {
    width: 19px;
    height: 1.5px;
    background: currentColor;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--rule-strong);
    background: var(--canvas);
    box-shadow: var(--shadow);
  }

  .primary-nav[data-open="true"] {
    display: grid;
  }

  .primary-nav a {
    justify-content: flex-start;
    padding: 0 8px;
  }

  .primary-nav a::after {
    right: auto;
    left: 8px;
    width: 44px;
  }

  .evidence-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .evidence-tab {
    flex: 0 0 92px;
  }

  .page-shell {
    padding-top: 38px;
  }

  .home-intro h1 {
    font-size: 50px;
  }

  .page-intro h1 {
    font-size: 40px;
  }

  .query-form {
    grid-template-columns: 1fr;
  }

  .memory-row {
    grid-template-columns: 1fr 1fr;
  }

  .memory-cell:nth-child(3),
  .memory-cell:nth-child(4) {
    padding-top: 5px;
  }

  .source-path {
    grid-template-columns: 1fr;
  }

  .query-result-reserved {
    min-height: 1340px;
  }

  .source-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 7px;
    transform: rotate(135deg);
  }

  .method-detail-grid,
  .evidence-workspace {
    grid-template-columns: 1fr;
  }

  .method-detail + .method-detail {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .evidence-list {
    padding-right: 0;
    border-right: 0;
  }

  .provenance-panel {
    padding-left: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .safety-band-inner {
    grid-template-columns: 1fr 1fr;
  }

  .safety-title {
    grid-column: 1 / -1;
    padding-bottom: 10px;
  }

  .safety-scope:first-of-type {
    padding-left: 0;
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .home-capability-proof,
  .recommendation-form,
  .assist-form {
    grid-template-columns: 1fr;
  }

  .analytics-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .analytics-strip .analytics-type-line {
    grid-column: 1 / -1;
    min-height: 60px;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .analytics-ledger {
    grid-template-columns: 1fr;
  }

  .analytics-ledger > section,
  .analytics-ledger > section:first-child {
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .asset-filters {
    grid-template-columns: 1fr 1fr;
  }

  .asset-filters .button-secondary {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand {
    max-width: 250px;
    font-size: 15px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .page-shell {
    padding-bottom: 56px;
  }

  .home-intro {
    padding: 42px 0 32px;
  }

  .home-intro h1,
  .page-intro h1 {
    font-size: 39px;
    line-height: 1.08;
  }

  .home-intro p,
  .page-intro p {
    font-size: 17px;
  }

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

  .home-actions .button,
  .home-actions .button-secondary {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head h2,
  .section-title {
    font-size: 23px;
  }

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

  .personal-agent-flow li,
  .personal-agent-flow li:nth-child(2) {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid #4b5d57;
  }

  .personal-agent-flow li:last-child {
    border-bottom: 0;
  }

  .example-queries {
    display: grid;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .query-result-reserved {
    min-height: 1900px;
  }

  .memory-row {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .memory-cell {
    padding: 7px 14px 7px 22px;
  }

  .source-details > summary {
    padding-left: 12px;
  }

  .source-path {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .object-ledger-row {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

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

  .personal-agent-flow li:nth-child(2) {
    border-right: 0;
  }

  .personal-agent-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid #4b5d57;
  }

  .object-ledger-row > * {
    padding: 4px 0;
  }

  .timeline {
    grid-template-columns: 105px 24px minmax(0, 1fr);
  }

  .timeline-entry {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .safety-band-inner {
    grid-template-columns: 1fr;
  }

  .safety-title {
    padding: 24px 0 10px;
  }

  .safety-scope,
  .safety-scope:first-of-type {
    padding: 20px 0;
    border-top: 1px solid #4b504c;
    border-left: 0;
  }

  .method-flow {
    grid-template-columns: 1fr;
  }

  .method-stage,
  .method-stage:nth-child(4) {
    min-height: 0;
    border-bottom: 1px solid var(--rule);
    border-left: 0;
  }

  .method-stage:not(:last-child)::after {
    display: block;
    top: auto;
    right: 50%;
    bottom: -6px;
    transform: rotate(135deg);
  }

  .method-stage h2 {
    min-height: 0;
  }

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

  .method-detail {
    padding: 20px 0;
  }

  .definition-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .evidence-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-tabs {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .evidence-tab {
    flex: 0 0 auto;
    min-width: 86px;
  }

  .evidence-table {
    display: none;
  }

  .evidence-records {
    display: grid;
  }

  .evidence-record {
    width: 100%;
    min-height: 94px;
    padding: 14px 12px;
    border: 0;
    border-top: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .evidence-record[aria-selected="true"] {
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--current);
  }

  .evidence-record strong,
  .evidence-record span {
    display: block;
  }

  .evidence-record strong {
    margin-bottom: 4px;
  }

  .evidence-record span {
    color: var(--muted);
    font-size: 12px;
  }

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

  .closing-band-inner {
    min-height: 210px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
  }

  .closing-band .button {
    width: 100%;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }

  .workspace-heading,
  .recommendation-heading,
  .assist-result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .recommendation-heading h3 {
    font-size: 22px;
  }

  .recommended-asset-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 2px;
  }

  .recommended-asset-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .recommended-asset-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .asset-version {
    grid-column: 2;
    grid-row: 1;
  }

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

  .analytics-strip > div,
  .analytics-strip > div:first-child {
    min-height: 78px;
    padding: 12px;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }

  .analytics-strip > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .analytics-strip .analytics-type-line {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }

  .asset-filters {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .asset-table {
    display: none;
  }

  .asset-records {
    display: grid;
  }

  .asset-record {
    display: grid;
    width: 100%;
    min-height: 112px;
    gap: 6px;
    padding: 14px 10px;
    border: 0;
    border-top: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .asset-record:hover,
  .asset-record[aria-selected="true"] {
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--current);
  }

  .asset-record-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .asset-record > span:last-child {
    color: var(--muted);
    font-size: 11px;
  }

  .governance-grid,
  .split-inspector-section,
  .asset-evidence-path,
  .assist-guidance > div {
    grid-template-columns: 1fr;
  }

  .governance-wide {
    grid-column: auto;
  }

  .split-inspector-section > div + div {
    padding: 18px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .assist-guidance small {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .method-example-heading {
    flex-direction: column;
    gap: 12px;
  }

  .method-example-path {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-example-path > span[aria-hidden="true"] {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Judge demo: accepted governed-ledger concept. */
.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;
}

.judge-demo-mode {
  background: #fbfcfa;
}

.judge-demo-mode > .site-header,
.judge-demo-mode > .site-footer {
  display: none;
}

.judge-demo-mode > main {
  min-height: 100vh;
}

.judge-demo {
  --judge-bg: #fbfcfa;
  --judge-surface: #ffffff;
  --judge-ink: #111816;
  --judge-muted: #59635f;
  --judge-rule: #d5dad7;
  --judge-rule-strong: #aeb7b2;
  --judge-teal: #007f8e;
  --judge-teal-dark: #006573;
  --judge-teal-soft: #eef8f8;
  --judge-green: #18823b;
  --judge-amber: #dd8a00;
  --judge-red: #d92f2f;
  min-height: 100vh;
  background: var(--judge-bg);
  color: var(--judge-ink);
  font-size: 14px;
  line-height: 1.42;
}

.judge-demo a:focus-visible,
.judge-demo button:focus-visible,
.judge-demo input:focus-visible,
.judge-demo select:focus-visible,
.judge-demo summary:focus-visible {
  outline: 2px solid var(--judge-teal);
  outline-offset: 2px;
}

.judge-topbar {
  display: grid;
  min-height: 58px;
  grid-template-columns: 44px minmax(250px, 1fr) minmax(260px, 360px) 44px auto;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--judge-rule);
  background: var(--judge-surface);
}

.judge-menu {
  display: grid;
  width: 44px;
  height: 44px;
  align-content: center;
  gap: 4px;
  padding: 8px;
  color: var(--judge-ink);
  text-decoration: none;
}

.judge-menu span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.judge-brand {
  width: fit-content;
  color: var(--judge-ink);
  font-size: 19px;
  font-weight: 720;
  line-height: 1.1;
  text-decoration: none;
}

.judge-global-search {
  display: grid;
  min-height: 38px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--judge-rule);
  border-radius: 4px;
  background: var(--judge-bg);
}

.judge-global-search > span,
.judge-search-glyph {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--judge-ink);
}

.judge-global-search > span::after,
.judge-search-glyph::after {
  display: block;
  width: 6px;
  height: 1.5px;
  margin: 11px 0 0 10px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.judge-global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--judge-muted);
  font-size: 13px;
}

.judge-global-search kbd {
  padding: 1px 5px;
  border: 1px solid var(--judge-rule);
  border-radius: 3px;
  background: var(--judge-surface);
  color: var(--judge-muted);
  font-family: inherit;
  font-size: 10px;
}

.judge-help,
.judge-icon-button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--judge-ink);
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}

.judge-help {
  width: 44px;
  height: 44px;
  border: 1px solid var(--judge-ink);
  font-size: 13px;
}

.judge-session {
  display: flex;
  min-width: 160px;
  align-items: center;
  gap: 10px;
}

.judge-session > span:last-child,
.judge-session strong,
.judge-session small {
  display: block;
}

.judge-session strong {
  font-size: 13px;
}

.judge-session small {
  color: var(--judge-muted);
  font-size: 11px;
}

.judge-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--judge-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 720;
}

.judge-lifecycle {
  display: grid;
  min-height: 80px;
  grid-template-columns: auto minmax(48px, 128px) auto minmax(70px, 1fr) auto minmax(300px, 0.88fr);
  align-items: center;
  gap: 18px;
  margin: 0 22px;
  border-bottom: 1px solid var(--judge-rule);
}

.lifecycle-step {
  display: flex;
  min-width: 170px;
  align-items: center;
  gap: 12px;
}

.lifecycle-step > span:last-child,
.lifecycle-step strong,
.lifecycle-step small {
  display: block;
}

.lifecycle-step strong {
  font-size: 14px;
}

.lifecycle-step small {
  margin-top: 2px;
  color: var(--judge-muted);
  font-size: 11px;
}

.lifecycle-step.is-current strong,
.lifecycle-step.is-complete:first-child strong {
  color: var(--judge-teal);
}

.lifecycle-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid var(--judge-rule-strong);
  border-radius: 50%;
  color: var(--judge-muted);
  font-size: 11px;
  font-weight: 750;
}

.lifecycle-step.is-current .lifecycle-icon,
.lifecycle-step.is-complete:first-child .lifecycle-icon {
  border-color: var(--judge-teal);
  color: var(--judge-teal);
}

.lifecycle-connector {
  height: 1px;
  background: var(--judge-rule-strong);
}

.lifecycle-connector.is-dotted {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--judge-rule-strong) 0 2px, transparent 2px 6px);
}

.lifecycle-policy {
  display: grid;
  min-height: 52px;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 3px 12px;
  padding-left: 28px;
  border-left: 1px solid var(--judge-rule);
}

.lifecycle-policy strong {
  grid-row: 1 / span 2;
  font-size: 12px;
}

.lifecycle-policy span {
  color: var(--judge-muted);
  font-size: 11px;
  font-style: italic;
}

.lifecycle-policy a {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #0066c2;
  font-size: 11px;
  font-weight: 650;
}

.judge-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(330px, 0.95fr);
}

.judge-main {
  min-width: 0;
  min-height: 0;
  padding: 18px 16px 0 20px;
  border-right: 1px solid var(--judge-rule);
}

.judge-proof-rail {
  min-width: 0;
  padding: 18px 30px 0 24px;
}

.judge-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.judge-section-title h1,
.judge-section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.25;
}

.judge-section-title > a {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--judge-muted);
  border-radius: 50%;
  color: var(--judge-muted);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.judge-section-title > span {
  color: var(--judge-muted);
  font-size: 13px;
  font-weight: 500;
}

.judge-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  margin-top: 10px;
}

.judge-query-field {
  display: grid;
  min-height: 54px;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--judge-rule);
  border-right: 0;
  border-radius: 4px 0 0 0;
  background: var(--judge-surface);
}

.judge-query-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--judge-ink);
  font-size: 17px;
}

.judge-clear-query {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--judge-ink);
  font-size: 23px;
  line-height: 1;
}

.judge-primary-button,
.judge-secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--judge-teal);
  border-radius: 0 4px 0 0;
  background: var(--judge-teal);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.judge-primary-button:hover,
.judge-secondary-button:hover:not(:disabled) {
  border-color: var(--judge-teal-dark);
  background: var(--judge-teal-dark);
}

.judge-secondary-button {
  border-radius: 0 4px 4px 0;
}

.judge-secondary-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.judge-filter-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--judge-rule);
  background: var(--judge-surface);
}

.judge-filter-row label {
  display: flex;
  min-width: 180px;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--judge-rule);
  border-radius: 3px;
  color: var(--judge-muted);
  font-size: 10px;
  font-weight: 650;
}

.judge-filter-row select {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--judge-ink);
  font-size: 11px;
}

.judge-text-button {
  min-height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #0066c2;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.judge-search-meta {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 22px;
  padding: 0 12px;
  border-right: 1px solid var(--judge-rule);
  border-bottom: 1px solid var(--judge-rule);
  border-left: 1px solid var(--judge-rule);
  color: var(--judge-muted);
  font-size: 11px;
}

.judge-search-meta strong {
  color: var(--judge-ink);
}

.judge-search-meta span:nth-child(2) {
  color: var(--judge-teal-dark);
}

.judge-search-meta[data-match-status="none"] span:nth-child(2) {
  color: var(--judge-muted);
}

.judge-result-scroll {
  overflow-x: auto;
  border-right: 1px solid var(--judge-rule);
  border-left: 1px solid var(--judge-rule);
}

.judge-results-table {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--judge-surface);
}

.judge-results-table th {
  height: 35px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--judge-rule);
  color: #36413c;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.judge-results-table th:nth-child(1) { width: 11%; }
.judge-results-table th:nth-child(2) { width: 20%; }
.judge-results-table th:nth-child(3) { width: 10%; }
.judge-results-table th:nth-child(4) { width: 12%; }
.judge-results-table th:nth-child(5) { width: 25%; }
.judge-results-table th:nth-child(6) { width: 22%; }

.judge-results-table td {
  height: 75px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--judge-rule);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.judge-results-table tr:hover td {
  background: #f7faf8;
}

.judge-results-table td > strong,
.judge-results-table td > span,
.judge-results-table td > time,
.judge-results-table td > a,
.judge-results-table q {
  display: block;
}

.judge-results-table td > strong,
.judge-results-table td > a {
  color: var(--judge-ink);
  font-size: 11px;
  font-weight: 720;
}

.judge-results-table td > a {
  color: #0066c2;
}

.judge-results-table td > span,
.judge-results-table td > time {
  margin-top: 3px;
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-results-table q {
  color: #3e4944;
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.judge-type-code {
  display: grid !important;
  width: 24px;
  height: 27px;
  float: left;
  place-items: center;
  margin: 0 7px 0 0 !important;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 12px !important;
  font-weight: 750;
}

.judge-type-prompt { color: #225fc5 !important; }
.judge-type-workflow { color: var(--judge-green) !important; }
.judge-type-agent { color: #7a4a83 !important; }
.judge-type-decision_pattern { color: #df7100 !important; }
.judge-type-best_practice { color: #a33a35 !important; }

.judge-results-table .asset-review {
  display: inline-flex;
  min-height: 18px;
  margin-top: 4px;
  padding: 1px 5px;
  font-size: 8px;
}

.judge-version {
  color: var(--judge-ink) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px !important;
}

.judge-results-footer {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid var(--judge-rule);
  border-top: 0;
  background: var(--judge-surface);
  font-size: 10px;
}

.judge-results-footer a,
.judge-rail-link {
  color: #0066c2;
  font-weight: 650;
}

.judge-results-footer span {
  color: var(--judge-muted);
}

.judge-plan-section {
  padding-top: 16px;
}

.judge-plan-heading,
.judge-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.judge-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  color: var(--judge-muted);
  cursor: pointer;
  font-size: 10px;
}

.judge-toggle input {
  position: absolute;
  opacity: 0;
}

.judge-toggle > span {
  pointer-events: none;
}

.judge-toggle input:focus-visible + span {
  outline: 2px solid var(--judge-teal);
  outline-offset: 2px;
}

.judge-toggle > span {
  position: relative;
  width: 30px;
  height: 18px;
  border: 1px solid var(--judge-rule-strong);
  border-radius: 10px;
  background: #e9ecea;
}

.judge-toggle > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
  content: "";
  transition: transform 150ms ease;
}

.judge-toggle input:checked + span {
  border-color: var(--judge-teal);
  background: var(--judge-teal);
}

.judge-toggle input:checked + span::after {
  transform: translateX(12px);
}

.judge-adapt-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  margin-top: 7px;
}

.judge-adapt-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--judge-rule);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: var(--judge-surface);
  font-size: 11px;
}

.judge-plan-status {
  min-height: 16px;
  padding: 2px 2px 0;
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-plan-ledger {
  border: 1px solid var(--judge-rule);
  background: var(--judge-surface);
}

.judge-plan-summary {
  margin: 0;
  padding: 6px 12px;
  border-bottom: 1px solid var(--judge-rule);
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-plan-row {
  border-bottom: 1px solid var(--judge-rule);
}

.judge-plan-row > summary {
  display: grid;
  min-height: 44px;
  grid-template-columns: 28px minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  cursor: pointer;
  list-style: none;
}

.judge-plan-row > summary::-webkit-details-marker {
  display: none;
}

.judge-step-number {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--judge-rule-strong);
  border-radius: 50%;
  font-size: 10px;
}

.judge-step-copy {
  min-width: 0;
}

.judge-step-copy strong,
.judge-step-copy > span {
  display: block;
}

.judge-step-copy strong {
  font-size: 10px;
  font-weight: 720;
}

.judge-step-copy > span {
  overflow: hidden;
  color: #3e4944;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.judge-citation-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.judge-citation-list a,
.judge-citation-list span {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 1px 4px;
  border: 1px solid #78a8d9;
  border-radius: 2px;
  color: #225fc5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-decoration: none;
}

.judge-citation-list span {
  border-color: var(--judge-rule-strong);
  color: var(--judge-muted);
}

.judge-plan-result[data-citations="hidden"] .judge-citation-list,
.judge-plan-result[data-citations="hidden"] .judge-plan-footer > span {
  display: none;
}

.judge-plan-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 9px 48px;
  border-top: 1px solid #edf0ee;
  background: #fafcfb;
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-plan-detail span,
.judge-plan-detail strong {
  display: block;
}

.judge-plan-detail strong {
  color: var(--judge-ink);
}

.judge-plan-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--judge-rule);
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-plan-note strong {
  color: var(--judge-ink);
}

.judge-plan-note-items {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.judge-plan-note-items span {
  display: block;
  overflow-wrap: anywhere;
}

.judge-plan-footer {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px;
}

.judge-plan-footer > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--judge-muted);
  font-size: 9px;
}

.judge-plan-footer a {
  color: #0066c2;
}

.judge-copy-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #0066c2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.judge-more-evidence {
  margin-top: 14px;
  border-top: 1px solid var(--judge-rule);
}

.judge-more-evidence summary {
  min-height: 44px;
  padding: 13px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.judge-more-evidence p {
  margin: 0;
  padding: 0 12px 18px;
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-rail-section {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--judge-rule);
}

.judge-rail-section + .judge-rail-section {
  padding-top: 20px;
}

.judge-metrics {
  margin-top: 18px;
}

.judge-metric {
  margin-bottom: 18px;
}

.judge-metric > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
}

.judge-metric strong {
  font-size: 12px;
  font-weight: 560;
}

.judge-metric b {
  color: var(--judge-teal-dark);
  font-size: 14px;
  font-weight: 650;
}

.judge-metric > i {
  display: block;
  height: 4px;
  background: #e0e4e1;
  overflow: hidden;
}

.judge-metric em {
  display: block;
  height: 100%;
  background: var(--judge-teal);
}

.judge-metric em.is-green { background: var(--judge-green); }
.judge-metric em.is-amber { background: var(--judge-amber); }
.judge-metric em.is-red { background: var(--judge-red); }

.judge-analytics-note {
  margin: 3px 0 7px;
  color: var(--judge-muted);
  font-size: 10px;
}

.judge-rail-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 10px;
}

.judge-access-proofs {
  margin-top: 6px;
}

.judge-proof {
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--judge-rule);
}

.judge-proof-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.judge-proof-title > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.judge-proof.is-pass .judge-proof-title {
  color: var(--judge-green);
}

.judge-proof.is-fail .judge-proof-title {
  color: var(--judge-red);
}

.judge-proof-title strong {
  font-size: 11px;
}

.judge-proof dl {
  margin: 0 0 0 34px;
}

.judge-proof dl > div {
  display: grid;
  grid-template-columns: 63px minmax(0, 1fr);
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
}

.judge-proof dt {
  color: var(--judge-muted);
}

.judge-proof dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.judge-loading,
.judge-error,
.judge-zero-state {
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--judge-rule);
  background: var(--judge-surface);
  color: var(--judge-muted);
  font-size: 11px;
}

.judge-error {
  border-left: 3px solid var(--judge-red);
  color: #82302e;
}

.judge-error strong,
.judge-zero-state strong {
  color: var(--judge-ink);
}

@media (min-width: 901px) and (max-height: 820px) {
  .judge-lifecycle {
    min-height: 64px;
  }

  .judge-main,
  .judge-proof-rail {
    padding-top: 10px;
  }

  .judge-section-title > a,
  .judge-icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .judge-search-form {
    margin-top: 5px;
  }

  .judge-query-field {
    min-height: 46px;
  }

  .judge-filter-row {
    min-height: 38px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .judge-filter-row label {
    min-height: 30px;
  }

  .judge-text-button {
    min-height: 32px;
  }

  .judge-search-meta {
    min-height: 34px;
  }

  .judge-results-table th {
    height: 28px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .judge-results-table td {
    height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .judge-results-footer {
    min-height: 32px;
  }

  .judge-plan-section {
    padding-top: 8px;
  }

  .judge-plan-heading .judge-section-title > a {
    width: 38px;
    height: 38px;
  }

  .judge-adapt-form {
    margin-top: 3px;
  }

  .judge-adapt-form input {
    min-height: 38px;
  }
}

@media (max-width: 1120px) {
  .judge-topbar {
    grid-template-columns: 44px minmax(220px, 1fr) minmax(220px, 300px) 44px auto;
  }

  .judge-lifecycle {
    grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) auto;
  }

  .lifecycle-policy {
    display: none;
  }

  .judge-filter-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .judge-filter-row label {
    flex: 1 1 190px;
  }

  .judge-text-button {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .judge-topbar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 0 14px;
  }

  .judge-global-search,
  .judge-help {
    display: none;
  }

  .judge-session {
    min-width: 0;
  }

  .judge-session > span:last-child {
    display: none;
  }

  .judge-lifecycle {
    min-height: 72px;
    gap: 8px;
    margin: 0 14px;
  }

  .lifecycle-step {
    min-width: 0;
  }

  .lifecycle-step small {
    display: none;
  }

  .judge-workspace {
    grid-template-columns: 1fr;
  }

  .judge-main {
    padding: 18px 14px 0;
    border-right: 0;
  }

  .judge-proof-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 14px 40px;
    border-top: 1px solid var(--judge-rule);
  }

  .judge-rail-section + .judge-rail-section {
    padding-top: 4px;
  }
}

@media (max-width: 620px) {
  .judge-brand {
    font-size: 15px;
  }

  .judge-lifecycle {
    grid-template-columns: repeat(3, 1fr);
    padding: 9px 0;
  }

  .lifecycle-connector {
    display: none;
  }

  .lifecycle-step {
    justify-content: center;
  }

  .lifecycle-step strong {
    font-size: 11px;
  }

  .lifecycle-icon {
    width: 24px;
    height: 24px;
  }

  .judge-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .judge-section-title h1,
  .judge-section-title h2 {
    font-size: 16px;
  }

  .judge-query-field input {
    font-size: 14px;
  }

  .judge-search-form {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .judge-filter-row label {
    flex-basis: 100%;
  }

  .judge-search-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
  }

  .judge-plan-heading {
    align-items: flex-start;
  }

  .judge-adapt-form {
    grid-template-columns: 1fr;
  }

  .judge-adapt-form input {
    border-right: 1px solid var(--judge-rule);
    border-radius: 4px 4px 0 0;
  }

  .judge-secondary-button {
    border-radius: 0 0 4px 4px;
  }

  .judge-plan-row > summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .judge-citation-list {
    grid-column: 2;
    justify-content: flex-start;
  }

  .judge-step-copy > span {
    white-space: normal;
  }

  .judge-plan-detail {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px 48px;
  }

  .judge-plan-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .judge-proof-rail {
    grid-template-columns: 1fr;
  }
}
