:root {
  --paper: #f4f4f1;
  --ink: #111111;
  --muted: #646464;
  --line: #b8b8b4;
  --line-soft: #d9d9d4;
  --white: #ffffff;
  --panel: #ebebe7;
  --black: #111111;
  --rail-width: 236px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

.app-shell {
  width: min(1920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(244, 244, 241, 0.97);
  border-inline: 1px solid var(--ink);
}

.topbar {
  min-height: 116px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
}

.eyebrow,
.micro,
.column-label,
.svg-kicker {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.verdict-block {
  width: 390px;
  padding: 18px 26px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--white);
  background: var(--black);
  border-left: 1px solid var(--ink);
}

.verdict-block strong {
  font-size: 20px;
}

.verdict-block span:last-child {
  color: #cfcfcb;
  font-size: 11px;
}

.verdict-label {
  font-size: 11px;
  color: #cfcfcb;
}

.workspace {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100vh - 152px);
}

.rail {
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.rail-meta {
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.view-nav {
  display: grid;
}

.view-button {
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.view-button > span {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 11px;
}

.view-button strong {
  font-size: 13px;
}

.view-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.view-button:hover,
.view-button:focus-visible {
  background: var(--panel);
  outline: 0;
}

.view-button.is-active {
  color: var(--white);
  background: var(--black);
}

.view-button.is-active span,
.view-button.is-active small {
  color: #cfcfcb;
}

.rail-legend {
  margin-top: auto;
  padding: 18px 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 1px solid var(--ink);
}

.legend-dot.solid {
  background: var(--ink);
}

.legend-dot.stripe {
  background: var(--panel);
  border-style: double;
}

.legend-dot.outline {
  border-style: dashed;
}

.stage {
  min-width: 0;
  background: var(--paper);
}

.stage-toolbar {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.runtime-strip {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(620px, 4fr) 58px;
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.runtime-summary {
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.runtime-summary div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.runtime-summary strong {
  font-size: 12px;
}

.runtime-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

body[data-runtime-state="stale"] .runtime-pulse {
  background: var(--panel);
  border-style: double;
}

body[data-runtime-state="unavailable"] .runtime-pulse {
  background: transparent;
  border-style: dashed;
}

.runtime-signals {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.runtime-cell {
  position: relative;
  min-width: 0;
  padding: 12px 14px 10px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
}

.runtime-cell::before {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--ink);
}

.runtime-cell[data-state="healthy"]::before {
  background: var(--ink);
}

.runtime-cell[data-state="degraded"]::before {
  background: var(--panel);
  border-style: double;
}

.runtime-cell[data-state="unavailable"]::before,
.runtime-cell[data-state="unknown"]::before {
  border-style: dashed;
}

.runtime-cell > span {
  color: var(--muted);
  font-size: 9px;
}

.runtime-cell > strong {
  font-size: 16px;
}

.runtime-cell > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-refresh {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

.runtime-refresh:hover,
.runtime-refresh:focus-visible {
  background: var(--panel);
  outline: 0;
}

.runtime-refresh[aria-busy="true"] {
  color: var(--muted);
}

.view-title {
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}

.view-title span {
  color: var(--muted);
}

.layer-filter {
  display: flex;
  border-left: 1px solid var(--line);
}

.filter-button,
.print-button {
  min-width: 82px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.filter-button:hover,
.filter-button:focus-visible,
.print-button:hover,
.print-button:focus-visible {
  background: var(--panel);
  outline: 0;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--black);
}

.print-button {
  min-width: 74px;
  border-right: 0;
  border-left: 1px solid var(--ink);
}

.view {
  padding: 24px 26px 28px;
}

.view[hidden] {
  display: none;
}

.view-heading {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.view-heading h2 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.15;
}

.view-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.diagram-panel {
  border: 1px solid var(--ink);
  background: var(--white);
}

.system-map {
  height: clamp(500px, 63vh, 700px);
  overflow: hidden;
}

.diagram-svg {
  width: 100%;
  height: 100%;
}

.diagram-svg .node {
  stroke: var(--ink);
  stroke-width: 1.2;
  fill: var(--white);
}

.diagram-svg .node.canonical {
  stroke-width: 2;
}

.diagram-svg .node.review {
  stroke-dasharray: 6 4;
}

.diagram-svg .node.generated {
  fill: url(#systemStripe);
}

.node-id {
  font-size: 11px;
  fill: var(--muted);
}

.node-title {
  font-size: 18px;
  font-weight: 800;
  fill: var(--ink);
}

.node-title.small {
  font-size: 15px;
}

.node-copy {
  font-size: 10px;
  fill: var(--muted);
}

.diagram-svg .connectors path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.baseline {
  stroke: var(--ink);
  stroke-width: 1;
}

.metric-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.metric-strip > div {
  min-height: 82px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  border-right: 1px solid var(--line);
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip span,
.metric-strip small {
  font-size: 9px;
  color: var(--muted);
}

.metric-strip strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 25px;
}

.metric-strip small {
  align-self: end;
}

.knowledge-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.25fr 1fr;
}

.knowledge-grid > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.knowledge-grid > div:last-child {
  border-right: 0;
}

.source-column,
.authority-column,
.portal-column,
.gate-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.knowledge-card {
  min-height: 90px;
  padding: 14px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--ink);
}

.knowledge-card b,
.authority-card b {
  font-size: 13px;
}

.knowledge-card span,
.knowledge-card small,
.authority-card span,
.authority-card small,
.authority-card em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.gate-sequence {
  display: grid;
  align-content: center;
  gap: 13px;
  flex: 1;
}

.gate-sequence > div {
  position: relative;
  min-height: 72px;
  padding: 12px 12px 12px 46px;
  display: grid;
  gap: 4px;
  border: 1px dashed var(--ink);
}

.gate-sequence > div::after {
  content: "↓";
  position: absolute;
  left: calc(50% - 5px);
  bottom: -19px;
  z-index: 2;
  background: var(--white);
  font-size: 13px;
}

.gate-sequence > div:last-child::after {
  display: none;
}

.gate-sequence i {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.gate-sequence b {
  font-size: 12px;
}

.gate-sequence span {
  color: var(--muted);
  font-size: 9px;
}

.authority-map {
  display: grid;
  gap: 10px;
}

.authority-card {
  min-height: 86px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  border: 1px solid var(--ink);
}

.authority-card span,
.authority-card small {
  grid-column: 1 / span 2;
}

.authority-card em {
  align-self: center;
  border-left: 2px solid var(--ink);
  padding-left: 8px;
}

.portal-frame {
  flex: 1;
  margin-top: 26px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.portal-header,
.portal-footer {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
}

.portal-row {
  min-height: 78px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}

.portal-row span,
.portal-row small {
  color: var(--muted);
  font-size: 9px;
}

.portal-row b {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 20px;
}

.portal-footer {
  border-bottom: 0;
  background: var(--ink);
  color: var(--white);
}

.contract-table,
.owner-matrix {
  margin-top: 14px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.contract-table > div,
.owner-matrix > div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 0.8fr;
  border-bottom: 1px solid var(--line);
}

.contract-table > div:last-child,
.owner-matrix > div:last-child {
  border-bottom: 0;
}

.contract-table span,
.owner-matrix span {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  font-size: 9px;
}

.contract-table span:last-child,
.owner-matrix span:last-child {
  border-right: 0;
}

.table-head {
  background: var(--ink);
  color: var(--white);
}

.call-flow {
  min-height: 650px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 22px;
}

.flow-spine {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.flow-spine article {
  position: relative;
  min-height: 116px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--ink);
}

.flow-spine article::after {
  content: "→";
  position: absolute;
  right: -19px;
  top: calc(50% - 10px);
  z-index: 2;
  background: var(--white);
}

.flow-spine article:last-child::after {
  display: none;
}

.flow-spine i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.flow-spine b {
  font-size: 14px;
}

.flow-spine span,
.flow-spine small {
  color: var(--muted);
  font-size: 9px;
}

.route-grid {
  position: relative;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.route-label {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-size: 10px;
}

.route-card {
  min-height: 102px;
  padding: 14px;
  display: grid;
  gap: 6px;
  border: 1px dashed var(--ink);
}

.route-card span,
.route-card small {
  color: var(--muted);
  font-size: 9px;
}

.route-card b {
  font-size: 12px;
}

.receipt-line {
  position: relative;
  min-height: 100px;
  padding: 36px 20px 16px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--ink);
  background: var(--panel);
}

.receipt-label {
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.receipt-item {
  flex: 1;
  padding: 12px;
  display: grid;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--ink);
}

.receipt-item b {
  font-size: 11px;
}

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

.receipt-arrow {
  align-self: center;
}

.call-invariants {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--ink);
}

.call-invariants > div {
  min-height: 68px;
  padding: 10px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.call-invariants > div:last-child {
  border-right: 0;
}

.call-invariants b {
  font-size: 9px;
}

.call-invariants span {
  color: var(--muted);
  font-size: 8px;
}

.docs-compare {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.25fr 0.52fr 1.35fr;
}

.docs-current,
.docs-target,
.docs-gate {
  min-width: 0;
  padding: 18px;
}

.docs-current,
.docs-gate {
  border-right: 1px solid var(--ink);
}

.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
}

.compare-head b {
  font-size: 17px;
}

.folder-stack {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.folder-stack > div {
  min-height: 62px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  border: 1px solid var(--ink);
}

.folder-stack b {
  font-size: 11px;
}

.folder-stack span {
  color: var(--muted);
  font-size: 9px;
}

.folder-stack i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 5px;
  border: 1px dashed var(--ink);
  font-size: 8px;
  font-style: normal;
}

.risk-band,
.success-band {
  margin-top: 14px;
  padding: 12px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
  text-align: center;
}

.docs-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--panel);
}

.gate-top,
.gate-bottom {
  font-size: 9px;
  text-align: center;
}

.gate-diamond {
  font-size: 42px;
}

.docs-gate ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style-position: inside;
  color: var(--muted);
  font-size: 9px;
}

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

.surface-grid article {
  min-height: 78px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--ink);
}

.surface-grid article.generated {
  background: var(--panel);
  border-style: double;
}

.surface-grid b {
  font-size: 10px;
}

.surface-grid span {
  color: var(--muted);
  font-size: 8px;
}

.docs-routing {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  background: var(--white);
}

.docs-routing > div {
  min-height: 82px;
  padding: 12px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.docs-routing > div:last-child {
  border-right: 0;
}

.docs-routing span,
.docs-routing small {
  color: var(--muted);
  font-size: 8px;
}

.docs-routing b {
  font-size: 11px;
}

.rollout-board {
  min-height: 620px;
  padding: 20px;
  display: grid;
  grid-template-rows: 38px repeat(4, 84px) auto;
  gap: 8px;
}

.timeline-axis {
  margin-left: 150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
}

.timeline-axis span {
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.timeline-lane {
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 10px;
  align-items: stretch;
}

.lane-name {
  display: flex;
  align-items: center;
  font-size: 10px;
  border-right: 1px solid var(--ink);
}

.timeline-block {
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.timeline-block b {
  font-size: 10px;
}

.timeline-block small {
  color: var(--muted);
  font-size: 8px;
}

.b-0-2 { grid-column: 2 / span 1; }
.b-3-7 { grid-column: 3 / span 1; }
.b-14-30 { grid-column: 5 / span 2; }
.b-0-7 { grid-column: 2 / span 2; }
.b-7-14 { grid-column: 4 / span 1; }
.b-3-14 { grid-column: 3 / span 2; }
.b-7-30 { grid-column: 4 / span 3; }

.milestone-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.milestone-grid article {
  min-height: 104px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px dashed var(--ink);
}

.milestone-grid span,
.milestone-grid small {
  color: var(--muted);
  font-size: 8px;
}

.milestone-grid b {
  font-size: 10px;
}

.owner-matrix > div {
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
}

.footer {
  min-height: 36px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  background: var(--black);
  color: #cfcfcb;
  font-size: 9px;
}

body[data-layer-filter="human"] .layer:not(.human),
body[data-layer-filter="machine"] .layer:not(.machine),
body[data-layer-filter="control"] .layer:not(.control) {
  opacity: 0.16;
  transition: opacity 120ms linear;
}

body[data-layer-filter="all"] .layer {
  opacity: 1;
}

@media (max-width: 1180px) {
  :root {
    --rail-width: 184px;
  }

  .verdict-block {
    width: 330px;
  }

  .system-map {
    overflow: auto;
  }

  .system-map .diagram-svg {
    min-width: 1220px;
  }

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

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

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

  .docs-compare {
    grid-template-columns: 1fr;
  }

  .docs-current,
  .docs-gate {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .docs-gate {
    min-height: 220px;
  }

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

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

  .flow-spine article::after {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    max-width: 100vw;
    overflow-x: hidden;
    border: 0;
  }

  .topbar {
    min-height: 0;
    display: grid;
  }

  h1 {
    font-size: 26px;
  }

  .verdict-block {
    width: auto;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

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

  .stage {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

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

  .rail-meta,
  .rail-legend {
    display: none;
  }

  .view-nav {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .view-button {
    min-height: 72px;
    padding: 10px;
    grid-template-columns: 1fr;
  }

  .view-button > span {
    grid-row: auto;
  }

  .view-button small {
    display: none;
  }

  .stage-toolbar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .runtime-strip {
    min-height: 0;
    grid-template-columns: 1fr 46px;
  }

  .runtime-summary {
    min-height: 64px;
  }

  .runtime-signals {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(124px, 1fr));
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .runtime-cell {
    min-height: 68px;
  }

  .runtime-refresh {
    grid-column: 2;
    grid-row: 1;
  }

  .view-title {
    min-height: 48px;
  }

  .layer-filter {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-x: auto;
  }

  .filter-button {
    min-height: 42px;
    flex: 1;
  }

  .print-button {
    display: none;
  }

  .view {
    padding: 18px 14px;
  }

  .view-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
  }

  .view-heading h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .system-map {
    max-width: calc(100vw - 28px);
  }

  .knowledge-grid,
  .metric-strip,
  .flow-spine,
  .route-grid,
  .call-invariants,
  .docs-routing,
  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .metric-strip > div,
  .call-invariants > div,
  .docs-routing > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-grid {
    padding-top: 34px;
  }

  .receipt-line {
    display: grid;
  }

  .receipt-arrow {
    display: none;
  }

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

  .timeline-axis {
    display: none;
  }

  .rollout-board {
    display: block;
  }

  .timeline-lane {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .lane-name,
  .timeline-block,
  .b-0-2,
  .b-3-7,
  .b-14-30,
  .b-0-7,
  .b-7-14,
  .b-3-14,
  .b-7-30 {
    grid-column: 1;
  }

  .lane-name {
    min-height: 36px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .contract-table,
  .owner-matrix {
    overflow-x: auto;
  }

  .contract-table > div,
  .owner-matrix > div {
    min-width: 700px;
  }

  .footer {
    display: none;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .app-shell {
    border: 0;
  }

  .rail,
  .stage-toolbar,
  .footer {
    display: none;
  }

  .workspace {
    display: block;
  }

  .view {
    break-after: page;
  }

  .view[hidden] {
    display: block;
  }
}
