:root {
  --fg: #1f1f1f;
  --fg-muted: #5e5e5e;
  --fg-subtle: #474747;
  --bg: #fff;
  --bg-surface: #f2f2f2;
  --bg-surface-alt: #faf9f8;
  --bg-hover: #efeded;
  --bg-selected: #d3e3fd;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  --border: #dadadb;
  --border-subtle: #e9e8e8;
  --accent: #0b57d0;
  --color-success: #37be5f;
  --color-error: #b3261e;
  --color-warning: #e8710a;
  --badge-default: #e1e3e1;
  --badge-get-bg: #e7f8ed;
  --badge-get-fg: #146c2e;
  --badge-post-bg: #d3e3fd;
  --badge-post-fg: #0b57d0;
  --input-bg: #fff;
  --input-border: #c4c7c5;
  --button-bg: #fff;
  --button-border: #c4c7c5;
}

:root.dark {
  --fg: #e3e3e3;
  --fg-muted: #9aa0a6;
  --fg-subtle: #c7c7c7;
  --bg: #1f1f1f;
  --bg-surface: #2a2a2a;
  --bg-surface-alt: #2d2e31;
  --bg-hover: #3c3c3c;
  --bg-selected: #303d52;
  --bg-overlay: rgba(31, 31, 31, 0.95);
  --border: #3c4043;
  --border-subtle: #343535;
  --accent: #8ab4f8;
  --color-success: #37be5f;
  --color-error: #f28b82;
  --color-warning: #f5a05a;
  --badge-default: #3c4043;
  --badge-get-bg: #0a3818;
  --badge-get-fg: #37be5f;
  --badge-post-bg: #062e6f;
  --badge-post-fg: #8ab4f8;
  --input-bg: #2a2a2a;
  --input-border: #5f6368;
  --button-bg: #2a2a2a;
  --button-border: #5f6368;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--fg);
  background: var(--bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.button {
  padding: 6px 16px;
  border: 1px solid var(--button-border);
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--fg);
  cursor: pointer;
  font-size: 12px;
}
.button:hover {
  background: var(--bg-hover);
}
.button--small {
  padding: 2px 8px;
  border: 1px solid var(--button-border);
  border-radius: 3px;
  background: var(--button-bg);
  color: var(--fg);
  font-size: 12px;
  cursor: pointer;
}
.button--small:hover {
  background: var(--bg-hover);
}

.connection-status {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.connection-status--connected {
  color: var(--color-success);
}
.connection-status--error {
  color: var(--color-error);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--fg-muted);
  font-size: 12px;
}

.split-pane {
  display: flex;
  height: 100%;
  width: 100%;
}
.split-pane__child {
  overflow: auto;
  min-width: 0;
  min-height: 0;
}
.split-pane__divider {
  flex-shrink: 0;
  background: var(--border);
  position: relative;
}
.split-pane__divider::after {
  content: "";
  position: absolute;
}
.split-pane__divider--vertical {
  width: 1px;
  cursor: col-resize;
}
.split-pane__divider--vertical::after {
  inset: 0 -3px;
}
.split-pane__divider--vertical:hover, .split-pane__divider--vertical.split-pane__divider--dragging {
  background: var(--accent);
}
.split-pane__divider--horizontal {
  height: 1px;
  cursor: row-resize;
}
.split-pane__divider--horizontal::after {
  inset: -3px 0;
}
.split-pane__divider--horizontal:hover, .split-pane__divider--horizontal.split-pane__divider--dragging {
  background: var(--accent);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.pane-header__tabs {
  display: flex;
}
.pane-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
}
.pane-header__checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.pane-header__checkbox input {
  margin: 0;
}

.tab {
  padding: 6px 16px;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab:hover {
  color: var(--fg);
  background: var(--bg-hover);
}
.tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.list-panel {
  flex: 1;
  overflow-y: auto;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  flex-shrink: 0;
}

.trace-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}
.trace-entry:hover {
  background: var(--bg-hover);
}
.trace-entry--selected {
  background: var(--bg-selected);
}
.trace-entry__method {
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  margin-top: 1px;
  border-radius: 3px;
  background: var(--badge-default);
  flex-shrink: 0;
}
.trace-entry__method--get {
  background: var(--badge-get-bg);
  color: var(--badge-get-fg);
}
.trace-entry__method--post {
  background: var(--badge-post-bg);
  color: var(--badge-post-fg);
}
.trace-entry__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trace-entry__pathname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
}
.trace-entry__meta {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.trace-detail {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
}
.trace-detail__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}
.trace-detail__pathname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-detail__step-title {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}
.trace-detail__node-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.trace-detail__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.trace-detail__error {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--color-error);
  border-radius: 4px;
}
.trace-detail__error-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trace-detail__error-status {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-error);
}
.trace-detail__error-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-error);
}
.trace-detail__error-stack {
  margin-top: 8px;
}
.trace-detail__error-stack summary {
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
}
.trace-detail__error-stack pre {
  margin: 8px 0 0;
  max-height: 240px;
  overflow: auto;
  font-family: monospace;
  font-size: 11px;
  color: var(--fg);
  white-space: pre;
}
.trace-detail__properties {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
}
.trace-detail__property {
  display: contents;
}
.trace-detail__property-label {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.trace-detail__property-value {
  font-size: 12px;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trace-detail__property-value--mono {
  font-family: monospace;
}

.metric-card {
  border: none;
  border-radius: 4px;
  padding: 16px;
  background: var(--bg-surface-alt);
  flex: 1;
  min-width: 0;
}
.metric-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.metric-card__value {
  font-size: 32px;
  font-weight: 400;
  color: var(--color-success);
  margin-bottom: 8px;
}
.metric-card__description {
  font-size: 12px;
  color: var(--fg-muted);
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 12px;
}
.auth-overlay__message {
  font-size: 14px;
  color: var(--fg-subtle);
}
.auth-overlay__input-row {
  display: flex;
  gap: 8px;
}
.auth-overlay__input {
  font-family: monospace;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  width: 120px;
  padding: 6px 10px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  text-align: center;
  background: var(--input-bg);
  color: var(--fg);
}
.auth-overlay__input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-overlay__error {
  color: var(--color-error);
  font-size: 12px;
}
.auth-overlay__countdown {
  font-family: monospace;
  font-size: 12px;
  color: var(--fg-muted);
}
.auth-overlay__countdown--warning {
  color: var(--color-error);
}
.auth-overlay__refresh {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.auth-overlay__refresh:hover {
  color: var(--fg);
}

.profiler {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  --profiler-bar-text: #202124;
  --profiler-cat-request-fill: #dfe1e5;
  --profiler-cat-request-border: #b9bdc4;
  --profiler-cat-hooks-fill: #f9e2ae;
  --profiler-cat-hooks-border: #d9b45e;
  --profiler-cat-validation-fill: #b8d4f1;
  --profiler-cat-validation-border: #7fabdc;
  --profiler-cat-preparation-fill: #d5c8ec;
  --profiler-cat-preparation-border: #ab97d4;
  --profiler-cat-navigation-fill: #b2dfd3;
  --profiler-cat-navigation-border: #7cbcab;
  --profiler-cat-render-evaluation-fill: #d3ead4;
  --profiler-cat-render-evaluation-border: #9cc79f;
  --profiler-cat-render-output-fill: #c8e6c9;
  --profiler-cat-render-output-border: #87bd8a;
}
:root.dark .profiler {
  --profiler-bar-text: #e6e6e8;
  --profiler-cat-request-fill: #3a3d42;
  --profiler-cat-request-border: #55595f;
  --profiler-cat-hooks-fill: #5c4a1a;
  --profiler-cat-hooks-border: #8a6d1f;
  --profiler-cat-validation-fill: #2b4a73;
  --profiler-cat-validation-border: #4a6fa5;
  --profiler-cat-preparation-fill: #45356b;
  --profiler-cat-preparation-border: #6a55a3;
  --profiler-cat-navigation-fill: #1f5347;
  --profiler-cat-navigation-border: #3d7d6c;
  --profiler-cat-render-evaluation-fill: #2c5230;
  --profiler-cat-render-evaluation-border: #4d7f52;
  --profiler-cat-render-output-fill: #35603a;
  --profiler-cat-render-output-border: #578a5e;
}
.profiler__toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.profiler__reset {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--button-bg);
  color: var(--fg-muted);
  font-size: 11px;
  cursor: pointer;
}
.profiler__reset:hover {
  background: var(--bg-hover);
  color: var(--fg);
}
.profiler__spacer {
  flex: 1;
}
.profiler__total b {
  color: var(--fg);
  font-weight: 600;
}
.profiler__chart {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.profiler__ruler {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.profiler__tick-label {
  position: absolute;
  top: 2px;
  padding-left: 3px;
  font-size: 10px;
  color: var(--fg-muted);
  white-space: nowrap;
  pointer-events: none;
}
.profiler__gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  pointer-events: none;
}
.profiler__canvas {
  position: relative;
  width: 100%;
  cursor: grab;
}
.profiler__canvas--panning {
  cursor: grabbing;
}
.profiler__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.profiler__resize-handle {
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 7px;
  z-index: 3;
  cursor: ns-resize;
}
.profiler__resize-handle:hover::after, .profiler__resize-handle:active::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}
.profiler__bottom-tabs {
  display: flex;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.profiler__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
  overflow: auto;
}
.profiler__donut {
  position: relative;
  flex-shrink: 0;
  width: 116px;
  height: 116px;
}
.profiler__donut-total {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.profiler__donut-total span {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--fg-muted);
}
.profiler__legend {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 4px 12px;
  align-content: center;
  font-size: 11.5px;
}
.profiler__legend-row {
  display: contents;
}
.profiler__legend-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profiler__legend-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.profiler__legend-pct {
  text-align: right;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.profiler__table {
  flex: 1;
  overflow: auto;
}
.profiler__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.profiler__table th {
  position: sticky;
  top: 0;
  height: 24px;
  padding: 0 12px;
  text-align: left;
  font-weight: 400;
  color: var(--fg-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.profiler__table td {
  height: 24px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.profiler__th--sorted {
  color: var(--fg);
}
.profiler__col-time {
  width: 130px;
}
.profiler__row {
  cursor: pointer;
}
.profiler__row:hover td {
  background: var(--bg-hover);
}
.profiler__row--selected td {
  background: var(--bg-selected);
}
.profiler__cell-time {
  font-variant-numeric: tabular-nums;
}
.profiler__cell-pct {
  margin-left: 6px;
  color: var(--fg-muted);
}
.profiler__activity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}
.profiler__activity--child {
  padding-left: 24px;
  color: var(--fg-muted);
}
.profiler__row--child .profiler__cell-time {
  color: var(--fg-muted);
}
.profiler__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--fg-muted);
  font-size: 9px;
  cursor: pointer;
}
.profiler__kind {
  color: var(--fg);
}
.profiler__variant {
  color: var(--fg-muted);
}
.profiler__props {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
}
.profiler__swatch {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid;
}
.profiler__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 16px;
  color: var(--fg-muted);
  font-size: 11px;
}

.profiler-bar {
  position: absolute;
  height: 15px;
  border-radius: 2px;
  border: 1px solid transparent;
  padding: 0 3px;
  font-size: 10px;
  line-height: 13px;
  color: var(--profiler-bar-text);
  white-space: nowrap;
  overflow: hidden;
}
.profiler-bar--clickable {
  cursor: pointer;
}
.profiler-bar--phase {
  font-weight: 600;
}
.profiler-bar:hover {
  filter: brightness(0.95);
}
:root.dark .profiler-bar:hover {
  filter: brightness(1.3);
}
.profiler-bar--selected {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  z-index: 1;
}
.profiler-bar--hovered {
  outline: 1.5px solid var(--accent);
  outline-offset: -1px;
  z-index: 1;
}
.profiler-bar__label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.reachability-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.reachability-view__statbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  height: 27px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow-x: auto;
}
.reachability-view__statbar b {
  font-weight: 600;
  color: var(--fg);
}
.reachability-view__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.reachability-view__spacer {
  flex: 1;
}
.reachability-view__mono {
  font-family: monospace;
}
.reachability-view__canvas {
  flex-shrink: 0;
  max-height: 45%;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: auto;
}
.reachability-view__stage {
  position: relative;
}
.reachability-view__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.reachability-view__marker {
  fill: var(--fg-muted);
}
.reachability-view__marker--path {
  fill: var(--accent);
}
.reachability-view__marker--rejected {
  fill: var(--color-error);
}
.reachability-view__edge {
  fill: none;
  stroke: var(--fg-muted);
  stroke-width: 1.2;
}
.reachability-view__edge--current {
  stroke: var(--accent);
  stroke-width: 1.6;
}
.reachability-view__edge--rejected {
  stroke: var(--color-error);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}
.reachability-view__edge--faint {
  opacity: 0.4;
}
.reachability-view__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 170px;
  height: 40px;
  padding: 0 8px 0 9px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 4px;
  background: var(--bg-surface-alt);
  cursor: pointer;
}
.reachability-view__node--reachable {
  border-left-color: var(--color-success);
}
.reachability-view__node--unreachable {
  border-left-color: var(--color-error);
}
.reachability-view__node--invalid {
  border-left-color: var(--color-warning);
}
.reachability-view__node--dim {
  opacity: 0.62;
}
.reachability-view__node--highlighted {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-bottom-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.reachability-view__node-code {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
}
.reachability-view__node-meta {
  font-size: 10px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reachability-view__split {
  display: flex;
  flex: 1;
  min-height: 0;
}
.reachability-view__rail {
  flex-shrink: 0;
  width: 235px;
  padding: 6px 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.reachability-view__rail-hint {
  margin: 8px 10px 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.reachability-view__rail-item {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  font-size: 11px;
  cursor: pointer;
}
.reachability-view__rail-item:hover {
  background: var(--bg-hover);
}
.reachability-view__rail-item--selected {
  background: var(--bg-selected);
  border-left-color: var(--accent);
}
.reachability-view__rail-item--selected:hover {
  background: var(--bg-selected);
}
.reachability-view__rail-item--dim {
  opacity: 0.62;
}
.reachability-view__rail-code {
  font-family: monospace;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reachability-view__rail-branches {
  margin-left: 21px;
  border-left: 1px dashed var(--border);
}
.reachability-view__rail-branches .reachability-view__rail-item {
  height: 23px;
  padding-left: 8px;
}
.reachability-view__chips {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.reachability-view__inspector {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  overflow-y: auto;
}
.reachability-view__inspector-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.reachability-view__inspector-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.reachability-view__inspector-route {
  margin: 3px 0 12px;
  font-family: monospace;
  font-size: 11px;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.reachability-view__props {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 18px;
  font-size: 11.5px;
}
.reachability-view__props dt {
  color: var(--fg-muted);
  white-space: nowrap;
}
.reachability-view__props dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.reachability-view__val--yes {
  color: var(--color-success);
}
.reachability-view__val--no {
  color: var(--color-error);
}
.reachability-view__val-note {
  color: var(--fg-muted);
}
.reachability-view__section-title {
  margin: 16px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.reachability-view__fail {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
  font-size: 11.5px;
}
.reachability-view__fail-x {
  font-weight: 700;
  color: var(--color-error);
}
.reachability-view__fail--info {
  color: var(--fg-muted);
}
.reachability-view__fail--info .reachability-view__fail-x {
  font-weight: 400;
  color: var(--fg-muted);
}
.reachability-view__fail-code {
  font-family: monospace;
  color: var(--fg-muted);
}
.reachability-view__fail-note {
  font-size: 10.5px;
  color: var(--fg-muted);
}
.reachability-view__nav-edge {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
  font-size: 11.5px;
}
.reachability-view__nav-edge--rejected .reachability-view__nav-arrow {
  color: var(--color-error);
}
.reachability-view__nav-edge--rejected .reachability-view__nav-code {
  color: var(--color-error);
  text-decoration: line-through;
}
.reachability-view__nav-arrow {
  color: var(--fg-muted);
}
.reachability-view__nav-code {
  font-size: 11px;
}
.reachability-view__nav-note {
  font-size: 10.5px;
  color: var(--fg-muted);
}

.reachability-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.reachability-dot--reachable {
  background: var(--color-success);
}
.reachability-dot--unreachable {
  background: transparent;
  box-shadow: inset 0 0 0 1.4px var(--color-error);
}
.reachability-dot--invalid {
  background: var(--color-warning);
}

.reachability-chip {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}
.reachability-chip--entry {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}
.reachability-chip--current, .reachability-chip--frontier {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.reachability-chip--rejected {
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
}

.unit-detail {
  display: flex;
  gap: 40px;
  font-size: 11.5px;
}
.unit-detail__col {
  min-width: 0;
}
.unit-detail__col--tree {
  flex: 1;
}
.unit-detail__swatch {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid;
}
.unit-detail__kind {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}
.unit-detail__metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 8px 0 0;
}
.unit-detail__meta-row {
  display: contents;
}
.unit-detail__meta-label {
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.unit-detail__meta-value {
  font-size: 11px;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unit-detail__meta-value--mono {
  font-family: monospace;
}
.unit-detail__section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.unit-detail__props {
  font-family: monospace;
  font-size: 11px;
}
.unit-detail__no-props {
  font-size: 11px;
  color: var(--fg-muted);
}

.property-row__line {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  line-height: 18px;
}
.property-row__toggle {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0;
  width: 10px;
  height: 14px;
  flex-shrink: 0;
  line-height: 0;
}
.property-row__toggle::before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid currentcolor;
  border-width: 0 1px 1px 0;
  transform: rotate(-45deg);
}
.property-row__toggle--expanded::before {
  transform: rotate(45deg);
}
.property-row__spacer {
  width: 10px;
  flex-shrink: 0;
}
.property-row__name {
  color: var(--accent);
  flex-shrink: 0;
}
.property-row__name::after {
  content: ":";
  color: var(--fg-muted);
  margin-right: 4px;
}
.property-row__preview {
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.property-row__children {
  padding-left: 12px;
}

.property-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.property-value--string {
  color: #c41a16;
}
:root.dark .property-value--string {
  color: #ce9178;
}
.property-value--number {
  color: #1c00cf;
}
:root.dark .property-value--number {
  color: #b5cea8;
}
.property-value--boolean {
  color: #0d22aa;
}
:root.dark .property-value--boolean {
  color: #569cd6;
}
.property-value--null {
  color: var(--fg-muted);
  font-style: italic;
}

.block-ref {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-family: monospace;
  color: var(--accent);
  cursor: pointer;
}
.block-ref:hover {
  background: var(--bg-hover);
}
.block-ref--inactive {
  cursor: default;
  color: var(--fg-muted);
}
.block-ref--inactive:hover {
  background: var(--bg-surface);
}

.state-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.state-view__toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow-x: auto;
}
.state-view__toolbar b {
  font-weight: 600;
  color: var(--fg);
}
.state-view__spacer {
  flex: 1;
}
.state-view__mono {
  font-family: monospace;
}
.state-view__split {
  display: flex;
  flex: 1;
  min-height: 0;
}
.state-view__rail {
  flex-shrink: 0;
  width: 250px;
  padding: 4px 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.state-view__rail-item {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-left: 2px solid transparent;
  font-size: 11px;
  cursor: pointer;
}
.state-view__rail-item:hover {
  background: var(--bg-hover);
}
.state-view__rail-item--selected {
  background: var(--bg-selected);
  border-left-color: var(--accent);
}
.state-view__rail-item--selected:hover {
  background: var(--bg-selected);
}
.state-view__rail-divider {
  margin: 4px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.state-view__rail-name {
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-view__rail-badges {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.state-view__badge {
  padding: 0 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}
.state-view__badge--add {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}
.state-view__badge--del {
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
}
.state-view__badge--chg {
  background: color-mix(in srgb, var(--color-warning) 16%, transparent);
  color: var(--color-warning);
}
.state-view__badge--data {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.state-view__badge--none {
  background: none;
  font-weight: 400;
  color: var(--fg-muted);
}
.state-view__inspector {
  flex: 1;
  min-width: 0;
  padding: 10px 16px 16px;
  overflow-y: auto;
}
.state-view__inspector-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
.state-view__inspector-sub {
  margin: 1px 0 10px;
  font-size: 11px;
  color: var(--fg-muted);
}
.state-view__subtabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.state-view__subtab {
  padding: 3px 8px 4px;
  border: none;
  background: none;
  font-size: 11px;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.state-view__subtab:hover {
  color: var(--fg);
}
.state-view__subtab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.state-view__note {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--fg-muted);
}
.state-view__empty-note {
  padding: 8px 0;
  font-size: 11.5px;
  color: var(--fg-muted);
}
.state-view__tree {
  font-size: 11.5px;
}
.state-view__tree-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 3px;
}
.state-view__tree-row--new {
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
}
.state-view__tree-caret {
  flex-shrink: 0;
  width: 10px;
  font-size: 9px;
  text-align: center;
  color: var(--fg-muted);
  cursor: pointer;
}
.state-view__tree-key {
  font-family: monospace;
  font-weight: 600;
  color: var(--fg);
}
.state-view__tree-key--index {
  font-weight: 400;
  color: var(--fg-muted);
}
.state-view__tree-sep {
  color: var(--fg-muted);
}
.state-view__tree-value {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-view__tree-preview {
  font-family: monospace;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-view__tree-chip {
  margin-left: auto;
  flex-shrink: 0;
}
.state-view__tree-children {
  margin-left: 15px;
}
.state-view__tree-children--new {
  border-left: 2px solid color-mix(in srgb, var(--color-success) 40%, transparent);
}
.state-view__chip {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}
.state-view__chip--access, .state-view__chip--phase {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.state-view__chip--submission {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}
.state-view__chip--default, .state-view__chip--other {
  background: color-mix(in srgb, var(--fg-muted) 16%, transparent);
  color: var(--fg-muted);
}

.blocks-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.blocks-view__toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow-x: auto;
}
.blocks-view__toolbar b {
  font-weight: 600;
  color: var(--fg);
}
.blocks-view__spacer {
  flex: 1;
}
.blocks-view__count--error {
  color: var(--color-error);
}
.blocks-view__count--error b {
  color: var(--color-error);
}
.blocks-view__checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.blocks-view__checkbox input {
  margin: 0;
}
.blocks-view__split {
  display: flex;
  flex: 1;
  min-height: 0;
}
.blocks-view__tree {
  flex-shrink: 0;
  width: 340px;
  padding: 4px 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.blocks-view__row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding-right: 8px;
  border-left: 2px solid transparent;
  font-size: 11px;
  cursor: pointer;
}
.blocks-view__row:hover {
  background: var(--bg-hover);
}
.blocks-view__row--selected {
  background: var(--bg-selected);
  border-left-color: var(--accent);
}
.blocks-view__row--selected:hover {
  background: var(--bg-selected);
}
.blocks-view__caret {
  flex-shrink: 0;
  width: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 9px;
  text-align: center;
  color: var(--fg-muted);
  cursor: pointer;
}
.blocks-view__variant {
  font-family: monospace;
  color: var(--accent);
  white-space: nowrap;
}
.blocks-view__step-title {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blocks-view__preview {
  font-family: monospace;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.blocks-view__row-chips {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.blocks-view__inspector {
  flex: 1;
  min-width: 0;
  padding: 10px 16px 16px;
  overflow-y: auto;
}
.blocks-view__inspector-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.blocks-view__inspector-variant {
  font-family: monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
.blocks-view__inspector-sub {
  margin: 3px 0 10px;
  font-family: monospace;
  font-size: 11px;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.blocks-view__subtabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.blocks-view__subtab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 4px;
  border: none;
  background: none;
  font-size: 11px;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.blocks-view__subtab:hover {
  color: var(--fg);
}
.blocks-view__subtab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.blocks-view__count-pill {
  padding: 0 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
}
.blocks-view__empty-note {
  padding: 8px 8px 8px 0;
  font-size: 11.5px;
  color: var(--fg-muted);
}
.blocks-view__props {
  font-size: 11.5px;
}
.blocks-view__prop-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 3px;
}
.blocks-view__prop-caret {
  flex-shrink: 0;
  width: 10px;
  font-size: 9px;
  text-align: center;
  color: var(--fg-muted);
  cursor: pointer;
}
.blocks-view__prop-key {
  font-family: monospace;
  font-weight: 600;
  color: var(--fg);
}
.blocks-view__prop-key--index {
  font-weight: 400;
  color: var(--fg-muted);
}
.blocks-view__prop-sep {
  color: var(--fg-muted);
}
.blocks-view__prop-value {
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blocks-view__prop-preview {
  font-family: monospace;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blocks-view__prop-children {
  margin-left: 15px;
}
.blocks-view__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blocks-view__fail-card {
  padding: 8px 10px;
  border: 1px solid;
  border-radius: 4px;
}
.blocks-view__fail-card--error {
  border-color: color-mix(in srgb, var(--color-error) 30%, transparent);
  background: color-mix(in srgb, var(--color-error) 6%, transparent);
}
.blocks-view__fail-card--warning {
  border-color: color-mix(in srgb, var(--color-warning) 30%, transparent);
  background: color-mix(in srgb, var(--color-warning) 6%, transparent);
}
.blocks-view__fail-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.blocks-view__fail-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.blocks-view__fail-dot--error {
  background: var(--color-error);
}
.blocks-view__fail-dot--warning {
  background: var(--color-warning);
}
.blocks-view__fail-message {
  color: var(--fg);
}
.blocks-view__fail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.blocks-view__chip {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
}
.blocks-view__chip--accent {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.blocks-view__chip--error {
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
}
.blocks-view__chip--warning {
  background: color-mix(in srgb, var(--color-warning) 14%, transparent);
  color: var(--color-warning);
}
.blocks-view__chip--muted {
  background: color-mix(in srgb, var(--fg-muted) 16%, transparent);
  color: var(--fg-muted);
}