@font-face {
  font-family: "Geist";
  src: url("./fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #f7f5f8;
  --surface: #ffffff;
  --surface-soft: #f4f0f7;
  --surface-lilac: #eee5f5;
  --surface-violet: #e7d7f4;
  --ink: #1c1c1c;
  --ink-soft: #4f4b52;
  --muted: #716b75;
  --line: #ddd8e0;
  --line-soft: #ebe7ed;
  --violet: #8213e5;
  --violet-deep: #650daf;
  --violet-dark: #4e087f;
  --violet-wash: #f7f1fc;
  --positive: #2d7258;
  --positive-soft: #e8f3ee;
  --warning: #87670e;
  --warning-soft: #f8f1db;
  --negative: #9a3d4d;
  --negative-soft: #f8eaed;
  --dark: #161616;
  --dark-soft: #222124;
  --on-dark: #f7f4f8;
  --on-dark-soft: #bdb7c0;
  --focus: #5d0ca7;
  --sidebar-width: 244px;
  --topbar-height: 64px;
  --radius-control: 8px;
  --radius-panel: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scrollbar-color: #bca5cf #eeeaf0;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  accent-color: var(--violet);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #eeeaf0;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid #eeeaf0;
  border-radius: 999px;
  background: #bca5cf;
}

::selection {
  background: #dcc1f2;
  color: #26043e;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

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

code,
pre,
kbd,
.mono-note,
.environment-tag,
.view-state,
.panel-status,
.boundary-state,
.result-count,
.identity-state {
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  box-shadow: 0 10px 30px rgba(22, 22, 22, 0.2);
  text-decoration: none;
  transition: transform 180ms var(--ease);
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100vh;
}

.app-sidebar {
  position: relative;
  z-index: 70;
  display: flex;
  min-width: 0;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background: var(--dark);
  color: var(--on-dark);
  padding: 20px 14px 16px;
}

.sidebar-brand {
  padding: 2px 10px 20px;
}

.sidebar-brand a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.sidebar-brand span {
  font-size: 21px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.sidebar-brand small {
  color: #8f8794;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.environment-state {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid #39363a;
  border-radius: 10px;
  background: #201f21;
  padding: 11px 10px;
}

.environment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9c4ee2;
  box-shadow: 0 0 0 4px rgba(156, 78, 226, 0.12);
}

.environment-state > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.environment-state strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environment-state small {
  color: #99929c;
  font-size: 9px;
}

.environment-tag {
  color: #b881e8;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
}

.app-nav {
  display: grid;
  gap: 3px;
}

.nav-label {
  margin: 15px 10px 5px;
  color: #918a94;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.app-nav a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  color: #bdb8c0;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 440;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.app-nav a:hover {
  background: #232124;
  color: #fff;
}

.app-nav a.is-active {
  background: #312638;
  color: #fff;
}

.app-nav a.is-active::before {
  position: absolute;
  left: 0;
  width: 2px;
  height: 18px;
  border-radius: 0 2px 2px 0;
  background: #a552ea;
  content: "";
}

.app-nav a {
  position: relative;
}

.app-nav svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.app-nav a small {
  color: #99919c;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
}

.app-nav a.is-active small {
  color: #b98bdf;
}

.sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 22px 10px 4px;
}

.sidebar-footer > div {
  display: grid;
  gap: 4px;
}

.sidebar-footer > div span {
  color: #918a94;
  font-size: 9px;
}

.sidebar-footer > div strong {
  color: #a96be0;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.sidebar-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #aaa4ad;
  font-size: 10px;
  text-decoration: none;
}

.sidebar-footer a:hover {
  color: #fff;
}

.sidebar-footer svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.sidebar-backdrop {
  display: none;
}

.workspace {
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.app-topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(320px, 620px) minmax(180px, 0.5fr);
  gap: 20px;
  align-items: center;
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 24px;
}

.sidebar-toggle {
  display: none;
}

.active-view {
  display: grid;
  gap: 1px;
}

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

.active-view strong {
  font-size: 13px;
  font-weight: 570;
}

.global-search {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  border: 1px solid #d8d3da;
  border-radius: var(--radius-control);
  background: var(--canvas);
  padding: 0 10px;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.global-search:focus-within {
  border-color: var(--violet);
  background: #fff;
}

.global-search svg,
.field-with-icon svg {
  width: 17px;
  fill: none;
  stroke: #746e77;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--violet);
  font-size: 12px;
}

.global-search input::placeholder,
.field-with-icon input::placeholder {
  color: #7b747e;
  opacity: 1;
}

.global-search kbd {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #d5d0d8;
  border-radius: 5px;
  background: #fff;
  color: #7b747e;
  font-size: 9px;
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.06);
}

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

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.topbar-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
}

.icon-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
}

.icon-action:hover {
  border-color: #b8b1bb;
  color: var(--ink);
}

.icon-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.workspace-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  background: var(--canvas);
}

.view-panel {
  width: min(1500px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 26px 28px 48px;
}

.view-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.view-heading h1 {
  margin-bottom: 5px;
  font-size: 25px;
  font-weight: 610;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.view-heading p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.view-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.button-primary,
.button-secondary,
.button-link,
.view-state,
.panel-status,
.boundary-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary,
.button-secondary {
  min-height: 38px;
  border-radius: var(--radius-control);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 540;
  text-decoration: none;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.button-primary {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--violet-deep);
  background: var(--violet-deep);
}

.button-secondary {
  gap: 7px;
  border: 1px solid #d1cbd4;
  background: var(--surface);
  color: var(--ink-soft);
}

.button-secondary:hover {
  border-color: #aaa2ad;
  color: var(--ink);
}

.button-secondary svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.button-secondary.inverse {
  border-color: #4d4850;
  background: #2b292c;
  color: #fff;
}

.button-secondary.inverse:hover {
  border-color: #a850e7;
  background: var(--violet-deep);
}

.button-link {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--violet-deep);
  padding: 0;
  font-size: 11px;
  font-weight: 550;
}

.button-link:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button-link.inverse {
  color: #bf83ea;
}

.view-state {
  gap: 7px;
  min-height: 30px;
  border: 1px solid #cce0d7;
  border-radius: 999px;
  background: var(--positive-soft);
  color: var(--positive);
  padding: 0 10px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-state i,
.panel-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.view-state.caution {
  border-color: #e7dab7;
  background: var(--warning-soft);
  color: var(--warning);
}

.panel,
.data-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header.compact {
  padding-top: 16px;
  padding-bottom: 16px;
}

.panel-header h2 {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 590;
  letter-spacing: -0.012em;
}

.panel-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-status {
  gap: 6px;
  min-height: 25px;
  border-radius: 999px;
  background: var(--positive-soft);
  color: var(--positive);
  padding: 0 9px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mono-note {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.system-status {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.status-verdict {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--violet-wash);
}

.status-indicator {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(130, 19, 229, 0.24);
  border-radius: 50%;
  background: #fff;
}

.status-indicator i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(130, 19, 229, 0.1);
}

.status-verdict > div {
  display: grid;
  gap: 1px;
}

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

.status-verdict strong {
  color: var(--violet-deep);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.system-status dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.system-status dl > div {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 72px;
  padding: 12px 16px;
  border-right: 1px solid var(--line-soft);
}

.system-status dl > div:last-child {
  border-right: 0;
}

.system-status dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
}

.system-status dd {
  display: grid;
  gap: 1px;
  margin-bottom: 1px;
}

.system-status dd > strong {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.system-status small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
  margin-bottom: 16px;
}

.overview-grid-lower {
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  margin-bottom: 0;
}

.proof-map-panel,
.recent-panel,
.evidence-map-panel,
.boundary-panel {
  min-width: 0;
  overflow: hidden;
}

.compact-orbit {
  display: grid;
  min-height: 278px;
  place-items: center;
  padding: 4px 18px 10px;
  background:
    radial-gradient(circle at 48% 48%, rgba(130, 19, 229, 0.09), transparent 34%),
    linear-gradient(155deg, #fff, #fbf9fc);
}

.compact-orbit svg {
  width: min(100%, 580px);
  height: auto;
}

.orbit-lines {
  fill: none;
  stroke: rgba(130, 19, 229, 0.27);
  stroke-width: 1;
}

.map-node circle {
  fill: var(--violet);
}

.map-node text,
.map-core-label {
  fill: #6a626d;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 580;
  letter-spacing: 0.06em;
}

.map-core {
  fill: #f4eafa;
  stroke: rgba(130, 19, 229, 0.35);
}

.map-core-label {
  fill: var(--violet-deep);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.map-core-result {
  fill: var(--ink);
  font-family: "Geist", sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.recent-transactions {
  display: grid;
}

.recent-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 0.8fr) minmax(120px, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.recent-row:last-child {
  border-bottom: 0;
}

.recent-row:hover {
  background: var(--violet-wash);
}

.recent-row:hover .recent-purpose,
.recent-row:focus-within .recent-purpose {
  overflow: visible;
  white-space: normal;
}

.recent-flow {
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  font-weight: 650;
}

.recent-purpose {
  overflow: hidden;
  font-size: 11px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.inspect-icon,
.transaction-inspect,
.transaction-link {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
}

.inspect-icon:hover,
.transaction-inspect:hover,
.transaction-link:hover {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.inspect-icon svg,
.transaction-inspect svg,
.transaction-link svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.evidence-map-panel {
  padding-bottom: 15px;
}

.evidence-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
  padding: 16px 18px 12px;
}

.evidence-slot {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
  color: var(--ink);
  padding: 7px 8px 9px;
  text-decoration: none;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.evidence-slot::after {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 2px;
  border-radius: 2px;
  background: #a9a3ac;
  content: "";
}

.evidence-slot[data-identity="legacy"]::after {
  background: #b28a28;
}

.evidence-slot[data-identity="attest"]::after {
  background: #8951b9;
}

.evidence-slot[data-identity="authority"]::after {
  background: var(--violet);
}

.evidence-slot:hover {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.evidence-slot:hover::after {
  background: #fff;
}

.slot-number {
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 8px;
}

.evidence-slot:hover .slot-number {
  color: #e9d9f6;
}

.slot-flow {
  overflow: hidden;
  font-size: 9px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 8px;
}

.rail-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rail-key {
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #a9a3ac;
}

.key-legacy {
  background: #b28a28;
}

.key-attest {
  background: #8951b9;
}

.key-authority {
  background: var(--violet);
}

.boundary-panel {
  background: var(--dark);
  color: var(--on-dark);
}

.boundary-panel .panel-header {
  border-bottom-color: #353237;
}

.boundary-panel .panel-header p {
  color: var(--on-dark-soft);
}

.boundary-state {
  min-height: 25px;
  border: 1px solid #5b4d62;
  border-radius: 999px;
  color: #c697e9;
  padding: 0 8px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.boundary-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 22px 12px 38px;
  color: #c7c1ca;
  font-size: 11px;
  line-height: 1.5;
}

.boundary-panel li::marker {
  color: #9c4ee2;
}

.boundary-panel > .button-link {
  margin: 3px 20px 16px;
}

.result-count {
  flex: 0 0 auto;
  color: var(--violet-deep);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.register-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.46fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
}

.register-tools label {
  display: grid;
  gap: 6px;
}

.register-tools label > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 540;
}

.field-with-icon {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  border: 1px solid #d3ced6;
  border-radius: var(--radius-control);
  background: #fff;
  padding: 0 10px;
}

.field-with-icon:focus-within {
  border-color: var(--violet);
}

.field-with-icon input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--violet);
  font-size: 11px;
}

.register-tools select {
  min-height: 40px;
  border: 1px solid #d3ced6;
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
}

.register-tools > button {
  min-width: 100px;
  min-height: 40px;
}

.data-panel {
  overflow: hidden;
}

.transaction-columns,
.flow-columns,
.reviewer-columns {
  display: grid;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0 14px;
  font-size: 8px;
  font-weight: 570;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.transaction-columns {
  grid-template-columns: 55px minmax(160px, 0.62fr) minmax(240px, 1.25fr) minmax(140px, 0.48fr) 78px;
  gap: 14px;
}

.transaction-list {
  display: grid;
}

.transaction-row {
  display: grid;
  grid-template-columns: 55px minmax(160px, 0.62fr) minmax(240px, 1.25fr) minmax(140px, 0.48fr) 78px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 150ms var(--ease);
}

.transaction-row:last-child {
  border-bottom: 0;
}

.transaction-row:hover {
  background: var(--violet-wash);
}

.transaction-flow {
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  font-weight: 650;
}

.transaction-label {
  font-size: 10px;
  font-weight: 520;
}

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

.identity-state {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink-soft);
  padding-left: 15px;
  font-size: 8px;
  font-weight: 560;
  line-height: 1.4;
}

.identity-state::before {
  position: absolute;
  left: 0;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #9f99a2;
  content: "";
}

.identity-state[data-state="legacy"]::before {
  background: #b28a28;
}

.identity-state[data-state="attest"]::before {
  background: #8951b9;
}

.identity-state[data-state="authority"]::before {
  background: var(--violet);
}

.transaction-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.transaction-inspect,
.transaction-link {
  flex: 0 0 auto;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
}

.empty-state svg {
  width: 30px;
  margin: 0 auto 12px;
  fill: none;
  stroke: #968d9a;
  stroke-linecap: round;
  stroke-width: 1.3;
}

.empty-state h2 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 580;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.flow-panel {
  margin-bottom: 16px;
}

.flow-columns {
  grid-template-columns: 55px minmax(170px, 0.6fr) minmax(260px, 1.4fr) 34px;
  gap: 16px;
}

.flow-list {
  display: grid;
}

.flow-row {
  display: grid;
  grid-template-columns: 55px minmax(170px, 0.6fr) minmax(260px, 1.4fr) 34px;
  gap: 16px;
  align-items: center;
  min-height: 55px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

.flow-row:last-child {
  border-bottom: 0;
}

.flow-row:hover {
  background: var(--violet-wash);
}

.flow-id {
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  font-weight: 650;
}

.flow-action {
  font-size: 10px;
  font-weight: 540;
}

.flow-proof {
  color: var(--muted);
  font-size: 10px;
}

.flow-open {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.flow-open::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-62%, -55%) rotate(-45deg);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
}

.flow-row:hover .flow-open {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.validator-explainer {
  overflow: hidden;
}

.validator-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 18px 20px 22px;
  list-style: none;
}

.validator-path li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding-right: 17px;
}

.validator-path li:not(:last-child) {
  border-right: 1px solid var(--line-soft);
  margin-right: 17px;
}

.validator-path li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(130, 19, 229, 0.22);
  border-radius: 50%;
  background: var(--violet-wash);
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 650;
}

.validator-path strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 580;
  line-height: 1.4;
}

.validator-path p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.validator-path small {
  color: var(--negative);
  font-family: "Geist Mono", monospace;
  font-size: 7px;
  font-weight: 600;
}

.validator-path .validator-result > span {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.validator-path .validator-result small {
  color: var(--positive);
}

.audit-verdict {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 156px;
  overflow: hidden;
  margin-bottom: 16px;
}

.audit-verdict-mark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: 1px solid rgba(130, 19, 229, 0.14);
  background: var(--violet-wash);
}

.audit-verdict-mark span {
  color: var(--violet-dark);
  font-size: 9px;
}

.audit-verdict-mark strong {
  color: var(--violet-deep);
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.audit-verdict-copy {
  align-self: center;
  padding: 20px 24px;
}

.audit-verdict-copy > p {
  max-width: 72ch;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.audit-verdict-copy .audit-scope {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 580;
}

.audit-verdict-copy dl {
  display: flex;
  gap: 28px;
  margin: 16px 0 0;
}

.audit-verdict-copy dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
}

.audit-verdict-copy dd {
  font-size: 10px;
  font-weight: 560;
}

.audit-verdict-copy code {
  color: var(--violet-dark);
  font-size: 9px;
}

.contracts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.audit-findings,
.audit-gates,
.audit-reviewers {
  display: grid;
}

.audit-finding-row {
  display: grid;
  grid-template-columns: 45px minmax(150px, 0.62fr) minmax(220px, 1.38fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-finding-row:last-child,
.audit-gate-row:last-child,
.audit-reviewer-row:last-child {
  border-bottom: 0;
}

.audit-finding-row code {
  color: var(--violet-deep);
  font-size: 8px;
  font-weight: 650;
}

.audit-finding-row strong {
  font-size: 9px;
  font-weight: 570;
  line-height: 1.45;
}

.audit-finding-row p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.audit-finding-row > span {
  color: var(--positive);
  font-family: "Geist Mono", monospace;
  font-size: 7px;
  font-weight: 650;
}

.audit-gate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-gate-row > span {
  font-size: 9px;
  font-weight: 540;
}

.audit-gate-row > strong {
  color: var(--positive);
  font-family: "Geist Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.04em;
}

.audit-gate-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}

.identity-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 30px;
  align-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 22px 26px;
  background:
    radial-gradient(circle at 88% 50%, rgba(130, 19, 229, 0.12), transparent 25%),
    var(--surface);
}

.identity-summary > div {
  display: grid;
  gap: 4px;
}

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

.identity-summary strong {
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.identity-summary p {
  max-width: 76ch;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.identity-summary svg {
  width: 84px;
  justify-self: center;
  fill: none;
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.identity-sequence {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 9% minmax(180px, 1fr) 9% minmax(180px, 1fr);
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 17px 20px;
}

.sequence-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sequence-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 650;
}

.sequence-step > div {
  display: grid;
  gap: 2px;
}

.sequence-step strong {
  font-size: 10px;
  font-weight: 580;
}

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

.sequence-line {
  height: 1px;
  background: rgba(130, 19, 229, 0.24);
}

.aid-register {
  overflow: hidden;
}

#aid-list {
  display: grid;
}

.aid-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr) 60px;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.aid-row:last-child {
  border-bottom: 0;
}

.aid-role {
  font-size: 9px;
  font-weight: 540;
}

.aid-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--violet-dark);
  font-size: 8px;
  line-height: 1.5;
}

.aid-row button,
.deployment-item button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 8px;
}

.aid-row button:hover,
.deployment-item button:hover {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.reviewer-panel {
  margin-bottom: 16px;
}

.reviewer-columns {
  grid-template-columns: minmax(155px, 0.55fr) 100px minmax(250px, 1fr);
  gap: 16px;
}

.audit-reviewer-row {
  display: grid;
  grid-template-columns: minmax(155px, 0.55fr) 100px minmax(250px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 50px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-reviewer-row strong {
  font-size: 9px;
  font-weight: 550;
}

.audit-reviewer-row > span {
  color: var(--positive);
  font-family: "Geist Mono", monospace;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-reviewer-row > span[data-state="unavailable"] {
  color: var(--negative);
}

.audit-reviewer-row > span[data-state="assessed"] {
  color: var(--warning);
}

.audit-reviewer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.limitations-panel {
  overflow: hidden;
}

.limitations-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limitations-panel li {
  position: relative;
  min-height: 58px;
  padding: 15px 18px 15px 34px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.limitations-panel li:nth-child(2n) {
  border-right: 0;
}

.limitations-panel li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.limitations-panel li::before {
  position: absolute;
  top: 21px;
  left: 17px;
  width: 7px;
  height: 1px;
  background: var(--negative);
  content: "";
}

.deployment-panel,
.tally-panel {
  overflow: hidden;
  margin-bottom: 16px;
}

.deployment-list {
  display: grid;
}

.deployment-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: start;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.deployment-item:last-child {
  border-bottom: 0;
}

.deployment-label {
  padding-top: 2px;
  font-size: 9px;
  font-weight: 540;
}

.deployment-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--violet-dark);
  font-size: 8px;
  line-height: 1.5;
}

.deployment-item a {
  display: grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 8px;
  text-decoration: none;
}

.deployment-item a:hover {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
}

.tally-rule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tally-cell {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
}

.tally-cell:last-child {
  border-right: 0;
}

.tally-cell > span {
  display: block;
  min-height: 28px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
}

.tally-cell > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--violet-deep);
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tally-cell p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
}

.reproduce-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
  gap: 40px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--dark);
  color: var(--on-dark);
  padding: 26px 28px;
}

.reproduce-copy h2 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 590;
}

.reproduce-copy > p {
  max-width: 70ch;
  margin-bottom: 12px;
  color: var(--on-dark-soft);
  font-size: 10px;
}

.reproduce-copy .network-boundary {
  margin: 22px 0 0;
  color: #a17bbd;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
}

.command-block {
  position: relative;
  overflow: hidden;
  border: 1px solid #343137;
  border-radius: 10px;
  background: var(--dark-soft);
}

.command-block pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 18px 18px 64px;
  color: #ddd7e0;
  font-size: 8px;
  line-height: 1.75;
}

.command-block button {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.record-drawer {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(450px, 100vw);
  transform: translateX(102%);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 48px rgba(22, 22, 22, 0.16);
  transition: transform 200ms var(--ease);
}

.record-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  border: 0;
  background: rgba(22, 22, 22, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 18px;
}

.drawer-header > div {
  display: grid;
  gap: 1px;
}

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

.drawer-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 590;
}

.drawer-header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
}

.drawer-header button:hover {
  border-color: #aba4ae;
  color: var(--ink);
}

.drawer-header svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.3;
}

.drawer-body {
  padding: 22px 20px 32px;
}

.drawer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--positive-soft);
  color: var(--positive);
  padding: 10px 12px;
  font-size: 9px;
  font-weight: 540;
}

.drawer-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.detail-list {
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.detail-list > div {
  display: grid;
  gap: 7px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
}

.detail-list code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--violet-dark);
  font-size: 9px;
  line-height: 1.55;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.drawer-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 180;
  right: 18px;
  bottom: 18px;
  max-width: min(340px, calc(100vw - 36px));
  transform: translateY(14px);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  padding: 11px 14px;
  box-shadow: 0 12px 32px rgba(22, 22, 22, 0.22);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 220px;
  }

  .app-topbar {
    grid-template-columns: 150px minmax(280px, 1fr) auto;
  }

  .topbar-status {
    display: none;
  }

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

  .overview-grid-lower {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .system-status {
    grid-template-columns: 190px minmax(0, 1fr);
  }

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

  .validator-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }

  .validator-path li:nth-child(2) {
    border-right: 0;
    margin-right: 0;
  }

  .transaction-columns,
  .transaction-row {
    grid-template-columns: 50px minmax(145px, 0.58fr) minmax(210px, 1.15fr) minmax(125px, 0.48fr) 70px;
    gap: 10px;
  }
}

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

  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 244px;
    transform: translateX(-102%);
    box-shadow: 18px 0 48px rgba(22, 22, 22, 0.24);
    transition: transform 200ms var(--ease);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(22, 22, 22, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .app-topbar {
    grid-template-columns: 36px minmax(120px, 0.45fr) minmax(270px, 1fr) auto;
    gap: 12px;
    padding: 0 16px;
  }

  .sidebar-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink-soft);
  }

  .sidebar-toggle svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.4;
  }

  .overview-grid,
  .overview-grid-lower {
    grid-template-columns: 1fr;
  }

  .system-status {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .system-status dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-status dl > div:nth-child(2) {
    border-right: 0;
  }

  .system-status dl > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .identity-sequence {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sequence-line {
    width: 1px;
    height: 18px;
    margin-left: 14px;
  }

  .reproduce-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .app-topbar {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 104px;
    align-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .active-view {
    align-self: center;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 36px;
  }

  .global-search kbd {
    display: none;
  }

  .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .view-panel {
    padding: 20px 16px 38px;
  }

  .view-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
  }

  .view-heading h1 {
    font-size: 22px;
  }

  .view-actions {
    width: 100%;
  }

  .view-actions > * {
    flex: 1;
  }

  .view-state,
  .result-count {
    align-self: flex-start;
  }

  .system-status {
    grid-template-columns: 1fr;
  }

  .status-verdict {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compact-orbit {
    min-height: 240px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .recent-row {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
  }

  .recent-hash {
    display: none;
  }

  .evidence-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-tools {
    grid-template-columns: 1fr;
  }

  .register-tools > button {
    width: 100%;
  }

  .transaction-columns,
  .flow-columns,
  .reviewer-columns {
    display: none;
  }

  .transaction-row {
    grid-template-columns: 40px minmax(0, 1fr) 70px;
    gap: 7px 10px;
    padding: 12px;
  }

  .transaction-flow {
    grid-column: 1;
    grid-row: 1;
  }

  .transaction-label {
    grid-column: 2;
    grid-row: 1;
  }

  .transaction-hash {
    grid-column: 2 / 4;
    grid-row: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .identity-state {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .transaction-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .flow-row {
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    gap: 7px 10px;
    padding: 12px;
  }

  .flow-proof {
    grid-column: 2 / 4;
    font-size: 9px;
  }

  .flow-open {
    grid-column: 3;
    grid-row: 1;
  }

  .validator-path {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .validator-path li,
  .validator-path li:not(:last-child),
  .validator-path li:nth-child(2) {
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 13px 0;
  }

  .validator-path li:last-child {
    border-bottom: 0;
  }

  .audit-verdict {
    grid-template-columns: 1fr;
  }

  .audit-verdict-mark {
    min-height: 115px;
    border-right: 0;
    border-bottom: 1px solid rgba(130, 19, 229, 0.14);
  }

  .audit-verdict-copy dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .audit-finding-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .audit-finding-row p {
    grid-column: 2 / -1;
  }

  .identity-summary {
    grid-template-columns: 1fr 76px;
    gap: 14px;
    padding: 18px;
  }

  .identity-summary strong {
    font-size: 15px;
  }

  .identity-summary svg {
    width: 68px;
  }

  .aid-row {
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 6px 10px;
  }

  .aid-value {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .audit-reviewer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    padding: 12px;
  }

  .audit-reviewer-row p {
    grid-column: 1 / -1;
  }

  .limitations-panel ul {
    grid-template-columns: 1fr;
  }

  .limitations-panel li,
  .limitations-panel li:nth-child(2n),
  .limitations-panel li:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .limitations-panel li:last-child {
    border-bottom: 0;
  }

  .deployment-item {
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 6px 10px;
    padding: 12px;
  }

  .deployment-value {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .tally-cell:nth-child(2) {
    border-right: 0;
  }

  .tally-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .reproduce-panel {
    padding: 22px 18px;
  }

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

@media (max-width: 430px) {
  .active-view span {
    display: none;
  }

  .active-view strong {
    font-size: 12px;
  }

  .system-status dl {
    grid-template-columns: 1fr 1fr;
  }

  .system-status dl > div {
    padding-right: 11px;
    padding-left: 11px;
  }

  .panel-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .compact-orbit svg {
    width: calc(100% + 12px);
  }

  .map-node text {
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .evidence-rail {
    padding-right: 12px;
    padding-left: 12px;
  }

  .rail-legend {
    padding-right: 12px;
    padding-left: 12px;
  }

  .identity-summary {
    grid-template-columns: 1fr;
  }

  .identity-summary svg {
    display: none;
  }

  .tally-rule {
    grid-template-columns: 1fr;
  }

  .tally-cell,
  .tally-cell:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .tally-cell:last-child {
    border-bottom: 0;
  }
}

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