.method-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.state-inspector { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #fff; }
.inspector-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 22px; background: #f4f5f3; border-bottom: 1px solid var(--line); }
.inspector-title { font: 22px var(--serif); letter-spacing: -.35px; }
.hand-switch { display: inline-flex; gap: 2px; padding: 3px; background: #e8ebe9; border-radius: 4px; }
.hand-switch button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 3px; font-size: 11px; line-height: 1.4; }
.hand-switch button[aria-pressed="true"] { color: var(--blue); background: white; box-shadow: 0 1px 3px #1d252d0c; }
.inspector-panels { display: grid; grid-template-columns: 1fr 1fr; }
.state-panel { min-width: 0; padding: 22px 24px 25px; }
.reference-panel { border-right: 1px solid var(--line); }
.state-panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.inspector-kind { font: 9px/1.5 var(--mono); letter-spacing: 1px; color: var(--blue); margin-bottom: 6px; }
.state-panel-heading h3 { font: 24px/1.25 var(--serif); letter-spacing: -.5px; }
.panel-meta { font: 9px/1.7 var(--mono); color: var(--muted); white-space: nowrap; }
.function-tag { font: 10px var(--mono); color: var(--blue); background: #eef3ff; border: 1px solid #d5e0fa; border-radius: 3px; padding: 5px 8px; }
.frame-selector, .prediction-context { height: 73px; padding-top: 19px; }
.frame-labels { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 10px/1.5 var(--mono); color: var(--muted); }
.frame-labels output { color: var(--ink); margin-left: 4px; }
.frame-labels #reference-time { color: var(--blue); }
.frame-selector input { --reference-progress: 4.1667%; display: block; width: 100%; height: 16px; margin: 8px 0 0; appearance: none; background: transparent; cursor: pointer; }
.frame-selector input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right,var(--blue) 0%,var(--blue) var(--reference-progress),#e2e7ed var(--reference-progress),#e2e7ed 100%); }
.frame-selector input::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid var(--blue); border-radius: 50%; background: white; box-shadow: 0 0 0 2px white; }
.frame-selector input::-moz-range-track { height: 3px; border-radius: 3px; background: #e2e7ed; }
.frame-selector input::-moz-range-progress { height: 3px; background: var(--blue); }
.frame-selector input::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; background: white; }
.prediction-context { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font: 10px/1.5 var(--sans); color: var(--muted); }
.state-field + .state-field { margin-top: 20px; }
.state-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.state-field-heading h4 { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.5; }
.state-field-heading > span { color: var(--muted); font: 10px var(--mono); }
.coordinate-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.coordinate-value { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 45px; padding: 10px 12px; border: 1px solid #e6e9e8; border-radius: 3px; background: #f8f9f7; font: 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.coordinate-value .axis-label { color: #8b949c; font: 10px var(--mono); }
.orientation-hold { min-height: 45px; display: flex; align-items: center; gap: 10px; border: 1px solid #e6e9e8; border-radius: 3px; background: #f8f9f7; color: var(--muted); padding: 10px 12px; font-size: 11px; }
.hold-mark { color: #8794a3; font: 18px/1 var(--sans); }
.joint-matrix { width: 100%; font-size: 11px; table-layout: fixed; }
.joint-matrix thead th { padding: 0 3px 7px; border: 0; background: transparent; text-align: center; font: 9px var(--mono); color: #8b949c; }
.joint-matrix thead th:first-child { width: 63px; }
.joint-matrix tbody th { border: 0; padding: 3px 8px 3px 0; font-size: 10px; font-weight: 400; color: var(--muted); }
.joint-matrix td { border: 0; padding: 3px; text-align: center; }
.joint-matrix td span { display: block; padding: 7px 3px; border-radius: 3px; background: rgba(37,89,212,var(--joint-fill,.04)); color: #3e526c; font: 11px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.project-credits { padding-top: 32px; padding-bottom: 34px; }
.project-credits .credits { margin-top: 0; }
@media (max-width: 1100px) {
  .state-panel { padding: 20px; }
  .state-panel-heading h3 { font-size: 22px; }
  .panel-meta { font-size: 8px; }
  .coordinate-value { padding: 10px; font-size: 12px; }
}
@media (max-width: 800px) {
  .inspector-panels { grid-template-columns: 1fr; }
  .reference-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .state-panel { padding: 23px; }
  .coordinate-value { font-size: 14px; }
  .panel-meta { font-size: 10px; }
}
@media (max-width: 600px) {
  .inspector-toolbar { padding: 13px 16px; gap: 12px; }
  .inspector-title { font-size: 20px; }
  .hand-switch button { font-size: 10px; padding: 6px 10px; }
  .state-panel { padding: 20px 16px 23px; }
  .state-panel-heading h3 { font-size: 23px; }
  .panel-meta { font-size: 8px; }
  .frame-selector, .prediction-context { height: 70px; }
  .coordinate-value { padding: 9px; font-size: 12px; }
  .coordinate-values { gap: 6px; }
  .state-field + .state-field { margin-top: 18px; }
  .joint-matrix td span { font-size: 10px; padding: 7px 2px; }
  .joint-matrix thead th:first-child { width: 53px; }
  .joint-matrix tbody th { font-size: 9px; }
  .project-credits { padding-top: 25px; padding-bottom: 25px; }
}
@media (max-width: 370px) {
  .inspector-toolbar { padding-inline: 12px; gap: 7px; }
  .inspector-title { font-size: 18px; }
  .hand-switch button { padding-inline: 8px; font-size: 9px; }
  .state-panel { padding-inline: 12px; }
  .state-panel-heading { gap: 10px; }
  .state-panel-heading h3 { font-size: 21px; }
  .coordinate-value { padding-inline: 7px; font-size: 11px; }
}
.method-overview p { margin: 0; }
.method-overview strong { color: var(--ink); font-weight: 500; }
.method-example-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.method-example-heading h3 { font: 24px var(--serif); }
.example-run-id { color: var(--muted); font: 10px/1.7 var(--mono); }
.method-network {
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr) 68px minmax(0,1fr);
  grid-template-rows: auto 30px auto 30px auto;
  margin-bottom: 30px;
}
.network-inputs { display: contents; }
.network-node {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.network-node .node-label {
  margin: 0 0 12px;
  color: var(--blue);
  font: 9px/1.5 var(--mono);
  letter-spacing: .8px;
}
.network-node h3 { font: 21px/1.3 var(--serif); margin-bottom: 9px; }
.network-node p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.reference-node { grid-column: 3; grid-row: 1; background: #f1f4fa; border-color: #c8d5ef; }
.observation-node { grid-column: 1; grid-row: 3; }
.feedback-node { grid-column: 3; grid-row: 5; }
.inference-node {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--blue);
  background: #f3f6ff;
}
.inference-node h3 { color: var(--blue); }
.controller-node {
  grid-column: 5;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.network-node .feedback-values { font: 10px/1.9 var(--mono); }
.network-arrow { display: grid; place-items: center; font: 24px/1 var(--sans); color: var(--blue); }
.reference-arrow { grid-column: 3; grid-row: 2; }
.observation-arrow { grid-column: 2; grid-row: 3; }
.action-arrow { grid-column: 4; grid-row: 3; align-content: center; gap: 8px; }
.action-arrow code { font: 10px var(--mono); color: var(--ink); }
.feedback-arrow { grid-column: 3; grid-row: 4; }
.network-return { grid-column: 4/6; grid-row: 4/6; position: relative; color: var(--blue); }
.network-return svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.network-return span { position: absolute; left: 6%; top: 44%; font: 10px/1.6 var(--sans); color: var(--muted); background: var(--paper); padding: 0 8px; }









@media (max-width: 1000px) {
  .method-network { grid-template-columns: minmax(0,1fr) 27px minmax(0,1fr) 62px minmax(0,1fr); }
  .network-node { padding: 15px; }
  .network-node h3 { font-size: 19px; }
  .example-run-id { max-width: 190px; text-align: right; }
  .method-overview { font-size: 14px; gap: 28px; }
}
@media (max-width: 700px) {
  .method-overview { grid-template-columns: 1fr; gap: 16px; }
  .method-example-heading { align-items: flex-start; gap: 14px; margin-top: 26px; padding-top: 20px; }
  .method-example-heading h3 { font-size: 22px; }
  .example-run-id { max-width: 150px; font-size: 9px; }
  .method-network { display: flex; flex-direction: column; gap: 0; }
  .network-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; order: 1; }
  .reference-node, .observation-node, .feedback-node { grid-column: auto; grid-row: auto; }
  .observation-node { grid-column: 1/3; grid-row: 1; }
  .observation-node .camera-thumbs { max-width: none; }
  .observation-node .camera-thumbs img { max-height: 100px; }
  .network-node { padding: 16px; }
  .network-node h3 { font-size: 20px; }
  .network-node p { font-size: 11px; }
  .network-node .node-label { font-size: 9px; margin-bottom: 9px; }
  .reference-node p, .feedback-node p { font-size: 10px; }
  .reference-node h3, .feedback-node h3 { font-size: 18px; }
  .network-node .feedback-values { font-size: 9px; }
  .reference-arrow, .feedback-arrow { display: none; }
  .observation-arrow { order: 2; height: 38px; transform: rotate(90deg); }
  .inference-node { order: 3; }
  .action-arrow { order: 4; height: 52px; grid-template-columns: 1fr 1fr; align-content: center; column-gap: 12px; }
  .action-arrow code { text-align: right; }
  .action-arrow span { justify-self: start; transform: rotate(90deg); }
  .controller-node { order: 5; }
  .network-return { order: 6; height: 28px; margin-top: 11px; }
  .network-return svg { display: none; }
  .network-return span { position: static; display: block; padding: 0; font-size: 10px; }
  .network-return span::before { content: "↶ "; color: var(--blue); }





}
@media (max-width: 370px) {
  .method-example-heading { flex-direction: column; gap: 7px; }
  .example-run-id { max-width: none; text-align: left; }
  .network-node { padding: 12px; }
  .network-node h3 { font-size: 17px; }



}
@media print {
  .method-network { break-inside: avoid; }

}
