:root {
  color-scheme: dark;
  --bg: #111820;
  --surface: #18212b;
  --surface-raised: #202b36;
  --surface-hover: #273442;
  --surface-inset: #141c24;
  --ink: #eef3f7;
  --muted: #afbbc6;
  --faint: #8f9dab;
  --line: #344352;
  --line-strong: #4c5d6d;
  --accent: #82c9bd;
  --accent-soft: #142925;
  --focus: #b8d2ff;
  --ok: #77d59c;
  --ok-soft: #12271b;
  --warn: #e5b76a;
  --warn-soft: #2b2112;
  --bad: #ef8d8d;
  --bad-soft: #2d1718;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.site-header {
  background: #151d26;
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
  background: var(--surface-raised);
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-context {
  min-width: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-context h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.repo-link {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.repo-link:hover {
  color: var(--ink);
  border-color: #53606d;
  background: var(--surface-raised);
}

.boundary-bar {
  background: var(--warn-soft);
  border-bottom: 1px solid #4a381c;
}

.boundary-disclosure summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: #d7c4a0;
  font-size: 13px;
}

.boundary-disclosure summary::-webkit-details-marker {
  display: none;
}

.boundary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
  font-weight: 700;
  white-space: nowrap;
}

.boundary-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disclosure-hint {
  color: #a78d62;
  font-size: 12px;
}

.boundary-disclosure[open] .disclosure-hint::before {
  content: "收起";
}

.boundary-disclosure[open] .disclosure-hint {
  font-size: 0;
}

.boundary-disclosure[open] .disclosure-hint::before {
  font-size: 12px;
}

.boundary-copy {
  max-width: 1040px;
  padding: 0 0 16px 112px;
  color: #b9aa8d;
  font-size: 14px;
}

.boundary-copy p {
  margin: 0 0 8px;
}

.boundary-copy p:last-child {
  margin-bottom: 0;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.tabs-inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  min-height: 62px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.tab span {
  font-size: 14px;
  font-weight: 700;
}

.tab small {
  color: var(--faint);
  font-size: 12px;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.workspace {
  min-height: calc(100vh - 246px);
  padding-block: 34px 72px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.panel-heading > div:first-child {
  max-width: 780px;
}

.panel-heading h2,
.doc-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.panel-heading p:not(.eyebrow),
.doc-header > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.view-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.view-meta > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
}

.status-dot.complete {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(119, 213, 156, 0.1);
}

.status-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(130, 201, 189, 0.12);
}

.status-dot.queued {
  background: #58616d;
}

.status-dot.caution {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(229, 183, 106, 0.1);
}

.flow-navigator {
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
}

.flow-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.flow-toolbar > span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.flow-legend {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.flow-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.flow-legend i {
  font-style: normal;
}

.stage-stepper {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.stage-node {
  position: relative;
  min-width: 0;
  min-height: 98px;
  padding: 15px 12px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.stage-node:last-child {
  border-right: 0;
}

.stage-node::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.stage-node:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.stage-node.done {
  color: #aeb8c1;
}

.stage-node.current {
  color: var(--ink);
  background: var(--accent-soft);
}

.stage-node.current::after {
  background: var(--accent);
}

.stage-no {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.stage-label {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.trace-layout {
  display: grid;
  grid-template-columns: minmax(270px, 318px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.trace-rail,
.inspector,
.case-switcher {
  border: 1px solid var(--line);
  background: var(--surface);
}

.trace-rail {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border-radius: 9px;
}

.rail-heading,
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.rail-heading h3,
.section-bar h3 {
  margin: 0;
  font-size: 15px;
}

.rail-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.trace-timeline {
  margin: 0;
  padding: 8px;
  list-style: none;
  counter-reset: trace-item;
}

.trace-timeline li {
  position: relative;
  padding-left: 22px;
  counter-increment: trace-item;
}

.trace-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: -10px;
  left: 9px;
  width: 1px;
  background: var(--line-strong);
}

.trace-timeline li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.trace-timeline li.selected::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-button {
  width: 100%;
  min-height: 58px;
  display: block;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

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

.trace-timeline li.selected .timeline-button {
  color: var(--ink);
  background: var(--accent-soft);
}

.timeline-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-label {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.snapshot-state {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.step-action {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector {
  min-width: 0;
  min-height: 540px;
  border-radius: 9px;
  padding: 26px 30px 34px;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-head h2 {
  margin: 0 6px 0 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.stage-tag {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.badge.ok {
  border-color: #28543b;
  color: var(--ok);
  background: var(--ok-soft);
}

.badge.waiting {
  border-color: #5a4220;
  color: var(--warn);
  background: var(--warn-soft);
}

.badge.bad {
  border-color: #603033;
  color: var(--bad);
  background: var(--bad-soft);
}

.badge.info {
  border-color: #28534c;
  color: var(--accent);
  background: var(--accent-soft);
}

.badge.neutral {
  color: var(--muted);
  background: var(--surface-raised);
}

.pending-action {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.block {
  margin-top: 28px;
}

.block h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #b9c1ca;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  scrollbar-color: var(--line-strong) var(--surface-inset);
}

table.data {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #cbd1d8;
  text-align: left;
  vertical-align: top;
}

table.data th {
  position: sticky;
  top: 0;
  color: var(--muted);
  background: var(--surface-inset);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:hover td {
  background: var(--surface-hover);
}

.mono {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.kv-grid > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface-inset);
  font-size: 13px;
}

.kv-grid .k {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 11px;
}

.case-switcher {
  margin-bottom: 20px;
  border-radius: 9px;
}

.section-bar > p {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.case-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.case-card {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.case-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.case-card:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.case-card.selected {
  color: var(--ink);
  background: var(--accent-soft);
}

.case-card.selected::after {
  background: var(--accent);
}

.case-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.case-id {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.case-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.case-card p {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.stats-row > span {
  min-width: 0;
  padding: 9px 10px;
  background: var(--surface-inset);
  color: var(--faint);
  font-size: 11px;
}

.stats-row strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
}

.conclusion-text,
.blocked-note,
.confidence-note {
  margin: 0;
  padding: 13px 15px;
  border-left: 2px solid var(--accent);
  background: var(--surface-inset);
  color: #cbd1d8;
  font-size: 14px;
}

.confidence-note {
  margin-top: 8px;
  border-left-color: var(--line-strong);
  color: var(--muted);
}

.blocked-note {
  border-left-color: var(--bad);
  background: var(--bad-soft);
}

.hypothesis {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #d5dae0;
  font-size: 14px;
}

.hypothesis:first-of-type {
  padding-top: 0;
}

.hypothesis:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hypothesis .uncertainty {
  margin-top: 7px;
  color: var(--warn);
  font-size: 13px;
}

.stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 6px 8px 0;
  padding: 3px 8px;
  border: 1px solid #28534c;
  border-radius: 5px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.block ul {
  margin: 0;
  padding-left: 20px;
  color: #cbd1d8;
  font-size: 14px;
}

.evidence-doc {
  max-width: 1120px;
  margin: 0 auto;
}

.doc-header {
  max-width: 820px;
  padding: 10px 0 34px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.doc-index {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 2px;
  padding-top: 24px;
}

.doc-index a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.doc-index a:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.doc-content {
  min-width: 0;
}

.doc-section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.section-number {
  margin: 3px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.doc-section h3 {
  margin: 0 0 22px;
  font-size: 19px;
}

.evidence-list {
  margin: 0;
}

.evidence-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.evidence-list dt {
  color: var(--ink);
  font-weight: 700;
}

.evidence-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  color: #c9d1d9;
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.limit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: limit;
}

.limit-list li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  counter-increment: limit;
  font-size: 14px;
}

.limit-list li::before {
  content: counter(limit, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 11px;
}

.evidence-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.evidence-links a {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  text-decoration: none;
}

.evidence-links a:hover {
  background: var(--surface-hover);
}

.evidence-links span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.evidence-links small {
  color: var(--faint);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c0f13;
}

.site-footer .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .stage-stepper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .stage-node {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }

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

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, 1440px);
  }

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

  .brand-copy span,
  .repo-link {
    display: none;
  }

  .boundary-copy {
    padding-left: 0;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .view-meta {
    justify-content: flex-start;
  }

  .trace-layout {
    grid-template-columns: 1fr;
  }

  .trace-rail {
    position: static;
    max-height: none;
  }

  .trace-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .trace-timeline li {
    padding-left: 18px;
  }

  .trace-timeline li::after {
    display: none;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .doc-index {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .doc-index a {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1440px);
  }

  .header-row {
    min-height: 74px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

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

  .brand-copy {
    display: none;
  }

  .header-context {
    text-align: left;
  }

  .header-context h1 {
    font-size: 17px;
  }

  .boundary-disclosure summary {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
  }

  .boundary-label {
    grid-column: 1 / 2;
  }

  .boundary-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 10px;
    overflow: visible;
    white-space: normal;
    line-height: 1.45;
  }

  .disclosure-hint {
    grid-column: 2;
    grid-row: 1;
  }

  .boundary-copy {
    padding-bottom: 14px;
  }

  .tabs-inner {
    gap: 24px;
  }

  .tab {
    min-height: 58px;
  }

  .tab small {
    display: none;
  }

  .workspace {
    padding-block: 26px 48px;
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .panel-heading h2,
  .doc-header h2 {
    font-size: 26px;
  }

  .flow-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 10px;
  }

  .flow-legend {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .stage-node {
    flex-basis: 142px;
    min-height: 92px;
  }

  .trace-timeline {
    grid-template-columns: 1fr;
  }

  .trace-timeline li:not(:last-child)::after {
    display: block;
  }

  .inspector {
    min-height: 0;
    padding: 20px 16px 26px;
  }

  .detail-head {
    align-items: flex-start;
  }

  .detail-head h2 {
    width: 100%;
    font-size: 20px;
  }

  .kv-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row > span {
    min-height: 44px;
  }

  .case-cards {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 116px;
  }

  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .evidence-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .evidence-links {
    grid-template-columns: 1fr;
  }

  .site-footer .shell {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

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

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