@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+KR:wght@400;500;600&display=swap";

/* src/foundation/tokens.css */
:root {
  --bg-000:#f4f4f1;
  --bg-100:#ffffff;
  --bg-200:#efefea;
  --bg-300:#e5e5df;
  --line:#dcdcd5;
  --line-strong:#7b7b74;
  --ink:#18191b;
  --ink-muted:#53565b;
  --ink-faint:#606369;
  --accent:#b8370c;
  --accent-soft:#fbe9e2;
  --accent-wash:rgba(184, 55, 12, 0.12);
  --on-accent:#ffffff;
  --focus-ring:var(--accent);
  --machine-bg:#eef1f5;
  --machine-ink:#25303c;
  --machine-key:#4a5a6e;
  --side-a:#1f56b8;
  --side-a-soft:#e6eefb;
  --side-b:#855d00;
  --side-b-soft:#f7eedb;
  --status-ok:#0e6775;
  --status-ok-soft:#e0f0f2;
  --status-warn:#954c00;
  --status-warn-soft:#f8ebdc;
  --status-risk:#b0251d;
  --status-risk-soft:#fbe6e4;
  --scrim:rgba(24, 25, 27, 0.32);
  --shadow-float:0 1px 2px rgba(24, 25, 27, 0.08), 0 4px 12px rgba(24, 25, 27, 0.10);
  --shadow-sheet:0 8px 32px rgba(24, 25, 27, 0.18);
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --size-bar:28px;
  --size-control:22px;
  --size-pin:18px;
  --size-gutter:240px;
  --radius-0:0px;
  --radius-sm:2px;
  --radius-md:4px;
  --z-surface:0;
  --z-region:5;
  --z-leader:10;
  --z-pin:20;
  --z-callout:30;
  --z-spread:100;
  --font-sans:"IBM Plex Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  --font-mono:"IBM Plex Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg-000:#111214;
    --bg-100:#18191c;
    --bg-200:#1f2024;
    --bg-300:#2a2c31;
    --line:#303237;
    --line-strong:#71757d;
    --ink:#ececea;
    --ink-muted:#a6a9ae;
    --ink-faint:#95989e;
    --accent:#ff7f50;
    --accent-soft:#3a1d12;
    --accent-wash:rgba(255, 127, 80, 0.18);
    --on-accent:#18191c;
    --focus-ring:var(--accent);
    --machine-bg:#141920;
    --machine-ink:#c9d4e0;
    --machine-key:#90a4b9;
    --side-a:#82aaf5;
    --side-a-soft:#17233a;
    --side-b:#dfa945;
    --side-b-soft:#2c2310;
    --status-ok:#5cc3d0;
    --status-ok-soft:#10292d;
    --status-warn:#f0a052;
    --status-warn-soft:#302010;
    --status-risk:#ff8b80;
    --status-risk-soft:#3a1614;
    --scrim:rgba(0, 0, 0, 0.6);
    --shadow-float:0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-sheet:0 8px 32px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg-000:#111214;
  --bg-100:#18191c;
  --bg-200:#1f2024;
  --bg-300:#2a2c31;
  --line:#303237;
  --line-strong:#71757d;
  --ink:#ececea;
  --ink-muted:#a6a9ae;
  --ink-faint:#95989e;
  --accent:#ff7f50;
  --accent-soft:#3a1d12;
  --accent-wash:rgba(255, 127, 80, 0.18);
  --on-accent:#18191c;
  --focus-ring:var(--accent);
  --machine-bg:#141920;
  --machine-ink:#c9d4e0;
  --machine-key:#90a4b9;
  --side-a:#82aaf5;
  --side-a-soft:#17233a;
  --side-b:#dfa945;
  --side-b-soft:#2c2310;
  --status-ok:#5cc3d0;
  --status-ok-soft:#10292d;
  --status-warn:#f0a052;
  --status-warn-soft:#302010;
  --status-risk:#ff8b80;
  --status-risk-soft:#3a1614;
  --scrim:rgba(0, 0, 0, 0.6);
  --shadow-float:0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-sheet:0 8px 32px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* src/foundation/fonts.css */

/* src/foundation/motion.css */
:root {
  --motion-swap: 140ms;
  --motion-reveal: 180ms;
  --motion-spread: 240ms;
  --motion-trace: 120ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-swap: 0ms;
    --motion-reveal: 0ms;
    --motion-spread: 0ms;
    --motion-trace: 0ms;
  }
}

/* src/foundation/base.css */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  background: var(--bg-000);
  color: var(--ink);
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
.st-root {
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
}
.st-root *,
.st-root *::before,
.st-root *::after {
  box-sizing: border-box;
}
:where(.st-root) button {
  font: inherit;
  color: inherit;
}
.st-root :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

/* src/core/frame.css */
section.st-root {
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}
.st-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--size-bar);
  padding: 0 var(--space-1) 0 var(--space-3);
  background: var(--bg-200);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.st-title {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.st-head-fill {
  flex: 1 1 auto;
  min-width: var(--space-2);
}
.st-pad {
  padding: var(--space-3);
}
.st-empty {
  padding: var(--space-3);
  color: var(--ink-muted);
  font-size: 12px;
}
.st-face {
  animation: st-face-in var(--motion-swap) var(--ease-standard);
  min-width: 0;
}
.st-face[data-kind=machine] {
  background: var(--machine-bg);
}
@keyframes st-face-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* src/core/layer-switch.css */
.st-switch {
  display: inline-flex;
  align-items: stretch;
  height: var(--size-control);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  flex-shrink: 0;
  overflow: hidden;
}
.st-tab {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.st-tab:last-child {
  border-right: 0;
}
.st-tab:hover {
  background: var(--bg-300);
  color: var(--ink);
}
.st-tab.is-active {
  color: var(--ink);
  background: var(--bg-200);
}
.st-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.st-tab.is-machine::after {
  content: "";
  order: -1;
  width: 5px;
  height: 5px;
  background: var(--machine-key);
  border-radius: 1px;
}
.st-tab:focus-visible {
  outline-offset: -2px;
}
.st-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 5px 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  cursor: pointer;
  flex-shrink: 0;
}
.st-mark:hover {
  background: var(--bg-300);
}
.st-mark-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 9px;
}
.st-mark-bar {
  display: block;
  height: 2px;
  background: var(--line-strong);
  border-radius: 1px;
}
.st-mark-bar.is-machine {
  width: 6px;
}
.st-mark-bar.is-active {
  background: var(--accent);
}
.st-mark-name {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 14px;
  color: var(--ink-muted);
}

/* src/core/data-view.css */
.st-data {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--machine-ink);
  background: var(--machine-bg);
  min-width: 0;
}
.st-data-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 3px var(--space-3);
  font-size: 10.5px;
  line-height: 14px;
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--line);
}
.st-data-pre {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  overflow: auto;
  max-height: 320px;
  white-space: pre;
}
.st-j-key {
  color: var(--machine-key);
}
.st-j-punc {
  color: var(--machine-key);
}
.st-j-str,
.st-j-num,
.st-j-lit {
  color: var(--machine-ink);
}
.st-j-num,
.st-j-lit {
  font-weight: 500;
}

/* src/parts/parts.css */
.st-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.st-badge-ok {
  background: var(--status-ok-soft);
  color: var(--status-ok);
}
.st-badge-warn {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}
.st-badge-risk {
  background: var(--status-risk-soft);
  color: var(--status-risk);
}
.st-side-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 14px;
  border: 1px solid currentColor;
}
.st-side-tag[data-side=a] {
  color: var(--side-a);
}
.st-side-tag[data-side=b] {
  color: var(--side-b);
}
.st-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: var(--size-control);
  padding: 0 var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.st-btn:hover {
  background: var(--bg-300);
}
.st-btn-sm {
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}
.st-btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-muted);
}
.st-btn-quiet:hover {
  border-color: var(--line-strong);
  background: var(--bg-100);
  color: var(--ink);
}
.st-btn[aria-pressed=true],
.st-btn[aria-pressed=true]:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-100);
}
.st-btn.is-placeholder {
  visibility: hidden;
}
.st-head-kicker {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
}
.st-kind {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  color: var(--ink-muted);
  background: var(--bg-200);
  white-space: nowrap;
}
.st-kind.is-machine {
  color: var(--machine-key);
  background: var(--machine-bg);
}
.st-tabs {
  display: flex;
  align-items: stretch;
  height: var(--size-bar);
  flex-shrink: 0;
}
.st-tabs-item {
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--space-3);
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.st-tabs-item:last-child {
  border-right: 1px solid var(--line);
}
.st-tabs-item:hover {
  background: var(--bg-300);
  color: var(--ink);
}
.st-tabs-item[aria-selected=true],
.st-tabs-item[aria-current=page] {
  background: var(--bg-100);
  color: var(--ink);
  font-weight: 600;
}
.st-tabs-item[aria-selected=true]::before,
.st-tabs-item[aria-current=page]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.st-tabs-item:focus-visible {
  outline-offset: -2px;
}
.st-tabs-n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
}
.st-note {
  min-width: 0;
}
.st-note-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-2);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.st-note-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-note-title.is-kind {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}
.st-note-body {
  font-size: 12px;
  line-height: 17px;
}
.st-note-body[data-kind=human] {
  padding: 6px var(--space-2) 8px;
}
.st-note-body .st-data-pre {
  max-height: 180px;
  font-size: 11px;
  line-height: 16px;
  padding: var(--space-1) var(--space-2);
}
.st-note-body .st-data-head {
  padding: 2px var(--space-2);
}
.st-note-src {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}
.st-leader-dot {
  fill: var(--line-strong);
  transition: opacity var(--motion-trace) linear, fill var(--motion-trace) linear;
}
.st-leader-dot.is-active {
  fill: var(--accent);
}
.st-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.st-absent {
  color: var(--ink-faint);
  font-style: italic;
}

/* src/data/fact.css */
div.st-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.st-fact-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: space-between;
  min-width: 0;
}
.st-fact-label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-fact-face {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.st-fact-face[data-kind=machine] {
  flex: 1 1 auto;
  margin: 2px calc(var(--space-3) * -1) calc(var(--space-2) * -1);
}
.st-fact-face[data-kind=machine] .st-data-pre {
  padding: var(--space-1) var(--space-3) var(--space-2);
}
.st-fact-value {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-fact-unit {
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
}
.st-fact-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.st-fact-source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 14px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
}

/* src/hierarchy/drilldown.css */
.st-dd-trail {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 24px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.st-dd-trail-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-right: var(--space-1);
}
.st-dd-crumb {
  color: var(--ink-muted);
}
.st-dd-crumb + .st-dd-crumb::before {
  content: "/";
  margin-right: var(--space-1);
  color: var(--line-strong);
}
.st-dd-crumb:last-child {
  color: var(--ink);
  font-weight: 500;
}
.st-dd-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.st-dd-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 26px;
  padding: 3px var(--space-3) 3px calc(var(--space-3) + var(--depth) * var(--space-3) * 1.5);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.st-dd-row:hover {
  background: var(--bg-300);
}
.st-dd-node.is-focused > .st-dd-row {
  background: var(--bg-200);
}
.st-dd-node.is-focused > .st-dd-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.st-dd-level {
  position: absolute;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 12px;
  color: var(--ink-faint);
  width: 18px;
  text-align: left;
}
.st-dd-node[data-depth="0"] > .st-dd-row .st-dd-level {
  visibility: hidden;
}
.st-dd-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  cursor: pointer;
}
.st-dd-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(-45deg);
  transition: transform var(--motion-reveal) var(--ease-standard);
}
.st-dd-toggle.is-open::before {
  transform: translate(0, -1px) rotate(45deg);
}
.st-dd-toggle:disabled {
  border-color: transparent;
  background: transparent;
  cursor: default;
}
.st-dd-toggle:disabled::before {
  left: 6px;
  top: 6px;
  width: 3px;
  height: 3px;
  border: 0;
  background: var(--line-strong);
  border-radius: 50%;
  transform: none;
}
.st-dd-title {
  font-weight: 600;
  white-space: nowrap;
}
.st-dd-node[data-depth="0"] > .st-dd-row .st-dd-title {
  font-size: 13px;
}
.st-dd-node:not([data-depth="0"]) > .st-dd-row .st-dd-title {
  font-weight: 500;
  font-size: 12px;
}
.st-dd-summary {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-dd-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.st-dd-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--motion-reveal) var(--ease-standard);
}
.st-dd-reveal.is-open {
  grid-template-rows: 1fr;
}
.st-dd-reveal-inner {
  overflow: hidden;
  min-height: 0;
}
.st-dd-detail {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-3) + (var(--depth) + 1) * var(--space-3) * 1.5 + 6px);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
  background: var(--bg-000);
  border-bottom: 1px solid var(--line);
}
.st-dd-detail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--space-3) + var(--depth) * var(--space-3) * 1.5 + 7px);
  width: 1px;
  background: var(--line-strong);
}
.st-outline {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}
.st-outline li {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  padding: 1px var(--space-3) 1px calc(var(--space-3) + var(--depth) * var(--space-4));
  font-size: 12px;
  line-height: 18px;
  min-width: 0;
}
.st-outline-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}
.st-outline-title {
  font-weight: 500;
  white-space: nowrap;
}
.st-outline-summary {
  color: var(--ink-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* src/hierarchy/spread.css */
.st-spread {
  position: relative;
}
.st-spread-summary {
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
}
.st-spread-origin {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-000);
  opacity: 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.st-spread-origin span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
}
.st-spread-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-spread);
}
.st-spread-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  animation: st-fade var(--motion-spread) var(--ease-standard);
}
.st-spread-sheet {
  position: absolute;
  inset: var(--space-4);
  display: flex;
  flex-direction: column;
  background: var(--bg-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  outline: none;
  animation: st-spread-in var(--motion-spread) var(--ease-standard);
}
.st-spread-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.st-spread-body {
  flex: 1 1 auto;
  overflow: auto;
}
.st-spread-body[data-kind=human] {
  padding: var(--space-6);
}
@keyframes st-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes st-spread-in {
  from {
    clip-path: var(--spread-from);
    opacity: 0.6;
  }
  to {
    clip-path: inset(0 0 0 0 round 4px);
    opacity: 1;
  }
}

/* src/compare/side-by-side.css */
.st-sbs-grid {
  display: grid;
  grid-template-columns: minmax(96px, 0.6fr) minmax(0, 1fr) 44px minmax(0, 1fr);
}
.st-sbs-row {
  display: contents;
}
.st-sbs-row > * {
  padding: 5px var(--space-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 17px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: background-color var(--motion-trace) linear;
}
.st-sbs-headrow > * {
  background: var(--bg-200);
  padding-top: 3px;
  padding-bottom: 3px;
}
.st-sbs-key {
  color: var(--ink-muted);
  font-weight: 500;
  padding-left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.st-sbs-note {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-faint);
}
.st-sbs-gutter {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg-000);
}
.st-sbs-row.is-hover > * {
  background: var(--bg-300);
}
.st-sbs-row[data-status=same] .st-sbs-cell {
  color: var(--ink-muted);
}
.st-sbs-row[data-status=only-a] .st-sbs-cell[data-side=a] {
  background: var(--side-a-soft);
}
.st-sbs-row[data-status=only-b] .st-sbs-cell[data-side=b] {
  background: var(--side-b-soft);
}
.st-sbs-row[data-status=changed] .st-sbs-cell[data-side=a] {
  box-shadow: inset 2px 0 0 var(--side-a);
}
.st-sbs-row[data-status=changed] .st-sbs-cell[data-side=b] {
  box-shadow: inset 2px 0 0 var(--side-b);
}
.st-sbs-row.is-hover .st-sbs-cell {
  color: var(--ink);
}
.st-diff {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.st-diff[data-status=changed] {
  color: var(--ink);
  font-weight: 500;
}
.st-diff[data-status=only-a] {
  color: var(--side-a);
  font-weight: 500;
}
.st-diff[data-status=only-b] {
  color: var(--side-b);
  font-weight: 500;
}
.st-sbs-side-head {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  white-space: nowrap;
}
.st-sbs-side-label {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-sbs-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.st-sbs-pane {
  min-width: 0;
}
.st-sbs-pane + .st-sbs-pane {
  border-left: 1px solid var(--line);
}
.st-sbs-pane > .st-sbs-side-head {
  height: 24px;
  padding: 0 var(--space-3);
  background: var(--bg-200);
  border-bottom: 1px solid var(--line);
}
.st-sbs-pane[data-side=a] > .st-sbs-side-head {
  box-shadow: inset 0 2px 0 var(--side-a);
}
.st-sbs-pane[data-side=b] > .st-sbs-side-head {
  box-shadow: inset 0 2px 0 var(--side-b);
}

/* src/compare/overlay.css */
.st-ov-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.st-seg {
  display: inline-flex;
  height: var(--size-control);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.st-seg-item {
  position: relative;
  box-sizing: border-box;
  padding: 0 var(--space-2);
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--bg-100);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.st-seg-item:last-child {
  border-right: 0;
}
.st-seg-item:hover {
  background: var(--bg-300);
}
.st-seg-item.is-active {
  background: var(--bg-300);
  font-weight: 600;
}
.st-seg-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.st-ov-range {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.st-ov-range input {
  width: 160px;
  accent-color: var(--accent);
  height: var(--size-control);
  margin: 0;
}
.st-ov-amount {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}
.st-ov-stage {
  position: relative;
  overflow: hidden;
  contain: paint;
  background: var(--bg-000);
}
.st-ov-layer {
  position: absolute;
  inset: 0;
  z-index: var(--z-surface);
}
.st-ov-top {
  transition: opacity var(--motion-trace) linear;
}
.st-ov-stage[data-mode=diff] .st-ov-top {
  mix-blend-mode: difference;
}
.st-ov-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.st-ov-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  z-index: var(--z-pin);
  pointer-events: none;
}
.st-ov-corner {
  position: absolute;
  top: var(--space-2);
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 18px;
  padding: 0 var(--space-1);
  background: var(--bg-100);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  z-index: var(--z-callout);
}
.st-ov-corner[data-side=a] {
  left: var(--space-2);
  color: var(--side-a);
}
.st-ov-corner[data-side=b] {
  right: var(--space-2);
  color: var(--side-b);
}

/* src/compare/axis-matrix.css */
.st-ax-grid {
  display: grid;
  overflow-x: auto;
}
.st-ax-grid > * {
  padding: 5px var(--space-2);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
  transition: background-color var(--motion-trace) linear;
}
.st-ax-corner,
.st-ax-col {
  background: var(--bg-200);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
}
.st-ax-col {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.st-ax-corner {
  padding-left: var(--space-3);
}
.st-ax-col.is-hot,
.st-ax-crit.is-hot {
  background: var(--bg-300);
}
.st-ax-crit {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: var(--space-3);
  background: var(--bg-100);
}
.st-ax-crit-label {
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}
.st-ax-crit-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  color: var(--ink-faint);
}
.st-ax-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--space-2);
  row-gap: 2px;
}
.st-ax-cell.is-cross {
  background: var(--bg-200);
}
.st-ax-cell.is-hot {
  background: var(--bg-300);
}
.st-ax-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-muted);
}
.st-ax-cell.is-best .st-ax-num {
  color: var(--ink);
  font-weight: 600;
}
.st-ax-bar {
  display: block;
  height: 4px;
  background: var(--bg-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.st-ax-bar > span {
  display: block;
  height: 100%;
  background: var(--line-strong);
  border-radius: var(--radius-sm);
}
.st-ax-cell.is-best .st-ax-bar > span {
  background: var(--ink);
}
.st-ax-note {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-faint);
}
.st-ax-total {
  background: var(--bg-200);
  border-bottom: 0;
}
.st-rank {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}
.st-rank-row {
  display: grid;
  grid-template-columns: 24px minmax(100px, 160px) 1fr 48px;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-3);
  border-bottom: 1px solid var(--line);
}
.st-rank-pos {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}
.st-rank-label {
  font-weight: 500;
  font-size: 12px;
}
.st-rank-stack {
  display: flex;
  height: 10px;
  background: var(--bg-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.st-rank-seg {
  display: inline-block;
  height: 10px;
  border-right: 1px solid var(--bg-100);
}
.st-rank-seg[data-i="0"] {
  background: var(--ink);
}
.st-rank-seg[data-i="1"] {
  background: var(--ink-muted);
}
.st-rank-seg[data-i="2"] {
  background: var(--line-strong);
}
.st-rank-seg[data-i="3"] {
  background: var(--line);
}
.st-rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) 0 calc(var(--space-3) + 32px);
  font-size: 11px;
  color: var(--ink-muted);
}
.st-rank-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.st-rank-legend .st-rank-seg {
  width: 10px;
  border-radius: 1px;
}

/* src/canvas/anchor-layer.css */
.st-anchor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--size-gutter);
}
.st-anchor.is-below {
  grid-template-columns: minmax(0, 1fr);
}
.st-anchor-surface {
  position: relative;
  margin: var(--space-3);
  border: 1px solid var(--line);
  background: var(--bg-000);
  overflow: hidden;
  contain: paint;
  z-index: var(--z-surface);
}
.st-anchor-base {
  position: relative;
  z-index: var(--z-surface);
}
.st-region {
  position: absolute;
  z-index: var(--z-region);
  border: 1px dashed var(--line-strong);
  transition:
    background-color var(--motion-trace) linear,
    border-color var(--motion-trace) linear,
    left var(--motion-spread) var(--ease-standard),
    top var(--motion-spread) var(--ease-standard),
    width var(--motion-spread) var(--ease-standard),
    height var(--motion-spread) var(--ease-standard);
  pointer-events: none;
}
.st-region.is-active {
  border: 1px solid var(--accent);
  background: var(--accent-wash);
}
.st-pin {
  position: absolute;
  z-index: var(--z-pin);
  box-sizing: border-box;
  width: var(--size-pin);
  height: var(--size-pin);
  margin: calc(var(--size-pin) / -2) 0 0 calc(var(--size-pin) / -2);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--motion-trace) linear,
    color var(--motion-trace) linear,
    left var(--motion-spread) var(--ease-standard),
    top var(--motion-spread) var(--ease-standard);
}
.st-pin.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.st-anchor-gutter {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-left: 1px solid var(--line);
  background: var(--bg-000);
}
.st-anchor.is-below .st-anchor-gutter {
  border-left: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.st-callout {
  position: relative;
  z-index: var(--z-callout);
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 0;
  transition: border-color var(--motion-trace) linear, box-shadow var(--motion-trace) linear;
}
.st-callout.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-float);
}
.st-pin-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.st-pin-num.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.st-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: var(--z-leader);
}
.st-leader {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke var(--motion-trace) linear;
}
.st-leader.is-active {
  stroke: var(--accent);
  stroke-width: 1.5;
}
.st-index {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.st-index th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-200);
  padding: 4px var(--space-2);
  border-bottom: 1px solid var(--line);
}
.st-index td {
  padding: 4px var(--space-2);
  border-bottom: 1px solid var(--line);
}
.st-index th:first-child,
.st-index td:first-child {
  padding-left: var(--space-3);
}
.st-index-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .st-anchor {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-anchor-gutter {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* src/canvas/layer-canvas.css */
.st-lc-stage {
  position: relative;
  container-type: inline-size;
  max-width: 100%;
  margin-inline: auto;
  background: var(--bg-000);
}
.st-lc-plane {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition:
    transform var(--motion-spread) var(--ease-standard),
    opacity var(--motion-trace) linear,
    box-shadow var(--motion-trace) linear;
}
.st-lc-content,
.st-lc-ghost {
  position: absolute;
  inset: 0;
}
.st-lc-content > svg,
.st-lc-ghost > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.st-lc-ghost {
  opacity: 0;
  transition: opacity var(--motion-spread) linear;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-plane {
  background: var(--bg-100);
  box-shadow: 0 0 0 calc(1px / var(--lc-s, 1)) var(--line-strong);
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-ghost {
  opacity: 0.2;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-plane.is-focus {
  box-shadow: 0 0 0 calc(2px / var(--lc-s, 1)) var(--accent);
}
.st-lc-plane.is-dim {
  opacity: 0.18;
}
.st-lc-stage[data-arrangement=strata] .st-lc-plane.is-dim {
  opacity: 0.22;
}
.st-lc-stage[data-arrangement=grid] .st-lc-plane.is-dim {
  opacity: 0.45;
}
.st-lc-marker {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.st-lc-region {
  position: absolute;
  border: calc(1px / var(--lc-s, 1)) dashed var(--line-strong);
  pointer-events: none;
  transition: background-color var(--motion-trace) linear, border-color var(--motion-trace) linear;
}
.st-lc-region.is-active {
  border: calc(1.5px / var(--lc-s, 1)) solid var(--accent);
  background: var(--accent-wash);
}
.st-lc-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity var(--motion-spread) linear;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-labels {
  opacity: 1;
}
.st-lc-label {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 15px;
  color: var(--ink-muted);
  white-space: nowrap;
  background: var(--bg-000);
  border-radius: var(--radius-sm);
  transition: color var(--motion-trace) linear;
}
.st-lc-stage[data-arrangement=grid] .st-lc-label {
  transform: translate(-4px, 4px);
}
.st-lc-stage[data-arrangement=strata] .st-lc-label {
  transform: translate(calc(-100% - 8px), -50%);
}
.st-lc-label b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
}
.st-lc-label.is-focus {
  color: var(--ink);
}
.st-lc-label.is-focus b {
  color: var(--accent);
}
.st-lc-merged {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.st-lc-arrange {
  flex-shrink: 0;
}
.st-layer-canvas .st-pin {
  transition: background-color var(--motion-trace) linear, color var(--motion-trace) linear;
}
.st-lc-stage[data-arrangement=strata] .st-lc-plane:not(.is-base) {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.st-lc-stage[data-arrangement=strata] .st-lc-plane:not(.is-base) .st-lc-ghost {
  opacity: 0;
}
.st-lc-stage[data-arrangement=strata] .st-lc-plane:not(.is-base) .st-lc-content * {
  pointer-events: visiblePainted;
}
.st-lc-stage[data-arrangement=strata] .st-lc-plane:not(.is-base) .st-lc-region {
  pointer-events: auto;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-plane.is-merged {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-plane.is-merged .st-lc-ghost {
  opacity: 0;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-plane.is-merged .st-lc-content * {
  pointer-events: visiblePainted;
}
.st-lc-foot {
  position: absolute;
  border: calc(1px / var(--lc-s, 1)) dashed var(--line-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-spread) linear, border-color var(--motion-trace) linear;
}
.st-lc-stage[data-arrangement=strata] .st-lc-foot {
  opacity: 0.55;
}
.st-lc-stage[data-arrangement=strata] .st-lc-foot.is-focus {
  opacity: 1;
}
.st-lc-foot.is-focus {
  border-color: var(--accent);
  border-style: solid;
}
.st-lc-drops {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 55;
  opacity: 0;
  transition: opacity var(--motion-spread) linear;
}
.st-lc-stage[data-arrangement=strata] .st-lc-drops {
  opacity: 1;
}
.st-lc-drops line {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 2;
  opacity: 0;
  transition: opacity var(--motion-trace) linear;
}
.st-lc-drops line.is-focus {
  opacity: 0.9;
}
.st-lc-stage:not([data-arrangement=stack]) .st-lc-label {
  pointer-events: auto;
  cursor: default;
}
.st-anchor .st-pin {
  transition:
    opacity var(--motion-trace) linear,
    background-color var(--motion-trace) linear,
    color var(--motion-trace) linear,
    left var(--motion-spread) var(--ease-standard),
    top var(--motion-spread) var(--ease-standard);
}
.st-layer-canvas .st-anchor .st-pin {
  transition:
    opacity var(--motion-trace) linear,
    background-color var(--motion-trace) linear,
    color var(--motion-trace) linear;
}
.st-anchor .st-region {
  transition:
    opacity var(--motion-trace) linear,
    background-color var(--motion-trace) linear,
    border-color var(--motion-trace) linear,
    left var(--motion-spread) var(--ease-standard),
    top var(--motion-spread) var(--ease-standard),
    width var(--motion-spread) var(--ease-standard),
    height var(--motion-spread) var(--ease-standard);
}
.st-anchor .st-lc-region {
  transition:
    opacity var(--motion-trace) linear,
    background-color var(--motion-trace) linear,
    border-color var(--motion-trace) linear;
}
.st-anchor .st-callout {
  transition:
    opacity var(--motion-trace) linear,
    border-color var(--motion-trace) linear,
    box-shadow var(--motion-trace) linear;
}
.st-leader {
  transition: opacity var(--motion-trace) linear, stroke var(--motion-trace) linear;
}
.st-anchor.has-focus .st-pin:not(.is-active),
.st-anchor.has-focus .st-region:not(.is-active),
.st-anchor.has-focus .st-lc-region:not(.is-active),
.st-anchor.has-focus .st-callout:not(.is-active),
.st-anchor.has-focus .st-leader:not(.is-active) {
  opacity: 0.28;
}
.st-layer-canvas.is-layer-focus .st-pin,
.st-layer-canvas.is-layer-focus .st-leader {
  opacity: 0.22;
}
.st-layer-canvas.is-no-pins .st-anchor {
  grid-template-columns: minmax(0, 1fr);
}
.st-layer-canvas.is-no-pins .st-anchor-gutter {
  display: none;
}

/* src/canvas/layer-stack.css */
.st-ls-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.st-ls-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--motion-trace) linear;
}
.st-ls-row.is-focus {
  background: var(--bg-300);
}
.st-ls-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  height: 30px;
  padding: 0 var(--space-2) 0 var(--space-3);
  border: 0;
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.st-ls-toggle[aria-disabled=true] {
  cursor: default;
}
.st-ls-toggle:focus-visible,
.st-ls-solo:focus-visible {
  outline-offset: -2px;
}
.st-ls-z {
  flex: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.st-ls-box {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
}
.st-ls-toggle[aria-pressed=true] .st-ls-box {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--bg-100);
}
.st-ls-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.st-ls-toggle[aria-pressed=false] .st-ls-label {
  color: var(--ink-faint);
}
.st-ls-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.st-ls-solo {
  margin-right: var(--space-2);
  opacity: 0;
  transition: opacity var(--motion-trace) linear;
}
.st-ls-row:hover .st-ls-solo,
.st-ls-row.is-focus .st-ls-solo,
.st-ls-solo:focus-visible {
  opacity: 1;
}
.st-ls-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  line-height: 15px;
  color: var(--ink-muted);
}
.st-btn:disabled {
  color: var(--ink-faint);
  cursor: default;
  background: var(--bg-100);
}
@media (hover: none) {
  .st-ls-solo {
    opacity: 1;
  }
}
.st-ls-merge {
  min-width: 38px;
  margin-right: 2px;
}
.st-ls-foot {
  flex-wrap: wrap;
}
.st-layer-stack.is-mergeable .st-ls-meta {
  display: none;
}
.st-ls-group {
  background: var(--bg-200);
}
.st-ls-group .st-ls-label {
  font-weight: 600;
}
.st-ls-row.is-member .st-ls-toggle {
  padding-left: calc(var(--space-3) + 14px);
}
.st-ls-row.is-member .st-ls-z {
  position: relative;
}
.st-ls-row.is-member .st-ls-z::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -9px;
  bottom: -9px;
  width: 1px;
  background: var(--line-strong);
}

/* src/proxies/proxies.css */
:root {
  --viewport-safe-top: 8px;
  --viewport-safe-right: 8px;
  --viewport-safe-bottom: 8px;
  --viewport-safe-left: 8px;
}
.st-proxy-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: calc(var(--z-spread) - 1);
}
.st-peek-leader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.st-peek {
  position: fixed;
  width: min(280px, calc(100vw - 16px));
  pointer-events: auto;
  background: var(--bg-100);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  opacity: 0;
}
.st-peek.is-placed {
  opacity: 1;
  transition: opacity var(--motion-trace) linear;
}
.st-peek-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 3px var(--space-2);
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
  line-height: 15px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.st-peek-bar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-peek .st-callout,
.st-peek .st-callout.is-active {
  border: 0;
  box-shadow: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.st-cue {
  position: fixed;
  pointer-events: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  max-width: calc(100vw - 16px);
  padding: 0 8px 0 6px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-100);
  box-shadow: var(--shadow-float);
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.st-cue:hover {
  background: var(--bg-200);
}
.st-cue[data-side=top] {
  transform: translate(-50%, 0);
}
.st-cue[data-side=bottom] {
  transform: translate(-50%, -100%);
}
.st-cue[data-side=left] {
  transform: translate(0, -50%);
}
.st-cue[data-side=right] {
  transform: translate(-100%, -50%);
}
.st-cue-tri {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}
.st-cue[data-side=top] .st-cue-tri {
  border-top-width: 0;
  border-bottom-color: var(--accent);
}
.st-cue[data-side=bottom] .st-cue-tri {
  border-bottom-width: 0;
  border-top-color: var(--accent);
}
.st-cue[data-side=left] .st-cue-tri {
  border-left-width: 0;
  border-right-color: var(--accent);
}
.st-cue[data-side=right] .st-cue-tri {
  border-right-width: 0;
  border-left-color: var(--accent);
}
.st-cue-label {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-cue-where {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}

/* src/canvas/sketch.css */
.st-sketch {
  display: block;
  width: 100%;
  height: 100%;
}
.st-sketch * {
  vector-effect: non-scaling-stroke;
}
.sk-surface {
  fill: var(--bg-100);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.sk-ground {
  fill: var(--bg-100);
}
.sk-ink {
  fill: var(--ink);
}
.sk-muted {
  fill: var(--ink-muted);
}
.sk-faint {
  fill: var(--line);
}
.sk-field {
  fill: var(--bg-200);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.sk-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.sk-old {
  fill: none;
  stroke: var(--side-a);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}
.sk-new {
  fill: none;
  stroke: var(--side-b);
  stroke-width: 1.5;
}
.sk-diff-fill {
  fill: var(--side-b-soft);
  opacity: 0.6;
}
.sk-diff {
  stroke: var(--side-b);
  stroke-width: 1.5;
}
.sk-hatch-line {
  stroke: var(--side-b);
  stroke-width: 1.2;
}
.sk-machine {
  fill: var(--machine-bg);
  stroke: var(--machine-key);
  stroke-width: 1;
}
.sk-ok {
  fill: var(--status-ok-soft);
  stroke: var(--status-ok);
  stroke-width: 1;
}
.sk-warn {
  fill: var(--status-warn-soft);
  stroke: var(--status-warn);
  stroke-width: 1;
}
.sk-risk {
  fill: var(--status-risk-soft);
  stroke: var(--status-risk);
  stroke-width: 1.5;
}
.sk-stroke-ink {
  stroke: var(--ink);
  stroke-width: 1;
}
.sk-stroke-line {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.sk-stroke-route {
  stroke: var(--side-a);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  fill: none;
}
.sk-stroke-new {
  stroke: var(--side-b);
  stroke-width: 2;
}
.sk-stroke-risk {
  stroke: var(--status-risk);
  stroke-width: 2;
}
.sk-text-ink {
  fill: var(--ink);
  font-family: var(--font-sans);
}
.sk-text-muted {
  fill: var(--ink-muted);
  font-family: var(--font-sans);
}
.sk-text-mono {
  fill: var(--ink-muted);
  font-family: var(--font-mono);
}
.sk-text-on-ink {
  fill: var(--bg-100);
  font-family: var(--font-sans);
}
.sk-chip {
  fill: var(--side-b);
}
.sk-chip-text {
  fill: var(--bg-100);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
}
.sk-tag {
  fill: var(--machine-bg);
  stroke: var(--machine-key);
  stroke-width: 1;
}
.sk-tag-text {
  fill: var(--machine-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.sk-dim-bg {
  fill: var(--bg-100);
}
.sk-dim-text {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

/* src/topic/topic-view.css */
.st-topic {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.st-topic-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--size-bar);
  padding: 0 var(--space-1) 0 var(--space-3);
  background: var(--bg-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.st-topic-issues {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--status-risk);
  border-radius: var(--radius-md);
  background: var(--bg-100);
  font-size: 12px;
}
.st-topic-issues ul {
  margin: 0;
  padding-left: var(--space-4);
}
.st-topic-issues code,
.st-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--machine-bg);
  color: var(--machine-ink);
  padding: 0 3px;
  border-radius: var(--radius-sm);
}
.st-topic-issue {
  padding: var(--space-3);
  color: var(--status-risk);
  font-size: 12px;
  border: 1px dashed var(--status-risk);
  border-radius: var(--radius-md);
}
.st-topic-body[data-kind=machine] .st-data-pre {
  max-height: 640px;
}
.st-table-wrap {
  overflow-x: auto;
}

/* src/topic/dashboard.css */
.st-dash {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-2);
  align-items: start;
}
.st-dash > * {
  min-width: 0;
}
.st-span-12 {
  grid-column: span 12;
}
.st-span-7 {
  grid-column: span 7;
}
.st-span-5 {
  grid-column: span 5;
}
.st-span-6 {
  grid-column: span 6;
}
.st-span-4 {
  grid-column: span 4;
}
.st-span-8 {
  grid-column: span 8;
}
.st-span-1 {
  grid-column: span 1;
}
.st-span-2 {
  grid-column: span 2;
}
.st-span-3 {
  grid-column: span 3;
}
.st-span-9 {
  grid-column: span 9;
}
.st-span-10 {
  grid-column: span 10;
}
.st-span-11 {
  grid-column: span 11;
}
.st-dash .st-fact-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media (max-width: 900px) {
  .st-dash > [class^=st-span-] {
    grid-column: span 12;
  }
}

/* src/canvas/canvas-view.css */
.st-cv {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
}
.st-cv-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.st-cv-main {
  min-width: 0;
}
.st-cv-hint {
  margin: 0;
  padding: 0 var(--space-1);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
}
.st-cv-hint b {
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}
.st-cv .st-anchor-surface {
  width: min(760px, calc(100% - 24px));
}
.st-callout-before {
  color: var(--ink-muted);
}
.st-callout-before b {
  color: var(--side-a);
  font-weight: 600;
}
@media (max-width: 860px) {
  .st-cv {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* src/topic/article.css */
.st-art {
  position: relative;
  display: grid;
  grid-template-columns: 184px minmax(0, 700px) minmax(220px, 280px);
  gap: var(--space-6);
  justify-content: center;
  align-items: start;
}
.st-art-toc {
  position: sticky;
  top: var(--viewport-safe-top);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.st-art-cap {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  padding: 0 0 6px 12px;
}
.st-art-toc button {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0 3px 12px;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 17px;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}
.st-art-toc button:hover {
  color: var(--ink);
}
.st-art-toc button[aria-current=true] {
  color: var(--ink);
  font-weight: 500;
}
.st-art-toc button[aria-current=true]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--accent);
}
.st-art-toc button:focus-visible {
  outline-offset: -2px;
}
.st-art-n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
}
.st-art-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.st-art-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.st-art-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: space-between;
  min-width: 0;
}
.st-art-titlebar h2 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  min-width: 0;
}
.st-art-alt {
  margin-bottom: var(--space-2);
}
.st-art-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 16px;
  color: var(--ink-faint);
}
.st-art-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-margin-top: calc(var(--viewport-safe-top) + 16px);
}
.st-art-section > h3 {
  margin: 0;
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-wrap: balance;
}
.st-art-section > h3 .st-art-n {
  font-size: 11px;
}
.st-art-p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
}
.st-art-anchor {
  padding: 1px 0;
  border-bottom: 1px solid var(--line-strong);
  transition:
    opacity var(--motion-trace) linear,
    background-color var(--motion-trace) linear,
    border-color var(--motion-trace) linear;
}
.st-art-anchor sup {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-left: 1px;
}
.st-art-anchor.is-active {
  background: var(--accent-wash);
  border-bottom: 2px solid var(--accent);
}
.st-art-anchor.is-active sup {
  color: var(--accent);
}
.st-art-anchor:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.st-art-margin {
  position: relative;
  min-height: 100%;
  align-self: stretch;
}
.st-art-margin-title {
  display: none;
}
.st-mnote {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--note-top, 0px);
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    top var(--motion-reveal) var(--ease-standard),
    border-color var(--motion-trace) linear,
    box-shadow var(--motion-trace) linear,
    opacity var(--motion-trace) linear;
}
.st-mnote.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-float);
  z-index: 2;
}
.st-mnote.is-floating {
  position: static;
  border: 0;
  box-shadow: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.st-art-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.st-art.has-focus .st-art-anchor:not(.is-active),
.st-art.has-focus .st-mnote:not(.is-active),
.st-art.has-focus .st-leader:not(.is-active),
.st-art.has-focus .st-leader-dot:not(.is-active) {
  opacity: 0.3;
}
@media (max-width: 1180px) {
  .st-art {
    grid-template-columns: minmax(0, 700px) minmax(200px, 240px);
  }
  .st-art-toc {
    display: none;
  }
}
@media (max-width: 820px) {
  .st-art {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-art-margin {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }
  .st-art-margin-title {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
  }
  .st-mnote {
    position: static;
  }
  .st-art-leaders {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-mnote {
    transition: none;
  }
}

/* src/foundation/preview.css */
.st-demo {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.st-demo-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--ink-muted);
}
.st-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* src/volume/strata-volume.css */
.st-sv {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.st-sv-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.st-sv-tracebar {
  background: var(--bg-200);
  gap: var(--space-1) var(--space-2);
}
.st-sv-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.st-sv-tool-label {
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-muted);
}
.st-sv-stage {
  position: relative;
  height: var(--sv-h, 460px);
  overflow: hidden;
  overflow: clip;
  background: var(--bg-000);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.st-sv-stage:active {
  cursor: grabbing;
}
.st-sv-stage:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .st-sv-stage {
    --sv-h: 360px;
  }
}
.st-sv-scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.st-sv-plate {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  background: var(--bg-200);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--motion-trace) linear;
}
.st-sv-plate.is-hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.st-sv-plate.is-focus {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.st-sv-plate:focus-visible,
.st-sv-card:focus-visible {
  outline: 0;
}
.st-sv-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--bg-100);
  box-shadow: inset 0 0 0 1px var(--line);
}
.st-sv-zone[data-side=a] {
  box-shadow: inset 0 2px 0 var(--side-a), inset 0 0 0 1px var(--line);
}
.st-sv-zone[data-side=b] {
  box-shadow: inset 0 2px 0 var(--side-b), inset 0 0 0 1px var(--line);
}
.st-sv-edges {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  transform: translateZ(0.5px);
}
.st-sv-edges path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke var(--motion-trace) linear;
}
.st-sv-edges path.is-active {
  stroke: var(--accent);
  stroke-width: 1.5;
}
.st-sv-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 4px;
  background: var(--bg-000);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transform: translateZ(1px);
  cursor: pointer;
  transition: opacity var(--motion-trace) linear, box-shadow var(--motion-trace) linear;
}
.st-sv-card[data-side=a] {
  box-shadow: inset 0 2px 0 var(--side-a), inset 0 0 0 1px var(--line-strong);
}
.st-sv-card[data-side=b] {
  box-shadow: inset 0 2px 0 var(--side-b), inset 0 0 0 1px var(--line-strong);
}
.st-sv-card.is-hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.st-sv-card.is-selected,
.st-sv-card.is-current,
.st-sv-card.is-focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.st-sv-stage.has-selection .st-sv-card:not(.is-related) {
  opacity: 0.35;
}
.st-sv-stage.is-trace-mode .st-sv-card:not(.is-trace) {
  opacity: 0.28;
}
.st-sv-cell {
  min-width: 0;
  min-height: 0;
  border-radius: 1px;
  transition: opacity var(--motion-trace) linear;
}
.st-sv-cell[data-cell-state=supported],
.st-sv-swatch[data-cell-state=supported] {
  background: var(--status-ok);
}
.st-sv-cell[data-cell-state=unsupported],
.st-sv-swatch[data-cell-state=unsupported] {
  background: var(--status-risk);
}
.st-sv-cell[data-cell-state=unverified],
.st-sv-swatch[data-cell-state=unverified] {
  background: var(--status-warn-soft);
  box-shadow: inset 0 0 0 1px var(--status-warn);
}
.st-sv-cell[data-cell-state=not_applicable],
.st-sv-swatch[data-cell-state=not_applicable] {
  background: var(--bg-300);
}
.st-sv-cell[data-cell-state=unevaluated],
.st-sv-swatch[data-cell-state=unevaluated] {
  background: transparent;
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}
.st-sv-cell[data-revealed=false],
.st-sv-swatch[data-revealed=false] {
  background: transparent;
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.st-sv-cell.is-same {
  opacity: 0.22;
}
.st-sv-cell.is-current {
  box-shadow: 0 0 0 1.5px var(--accent);
}
.st-sv-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.st-sv-link {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: opacity var(--motion-trace) linear, stroke var(--motion-trace) linear;
}
.st-sv-link[data-kind=pair] {
  stroke: var(--ink-muted);
}
.st-sv-link[data-kind=pair][data-status=same] {
  stroke: var(--line-strong);
}
.st-sv-link[data-kind=pair][data-status=only-a] {
  stroke: var(--side-a);
}
.st-sv-link[data-kind=pair][data-status=only-b] {
  stroke: var(--side-b);
}
.st-sv-link[data-kind=ref] {
  stroke-dasharray: 3 3;
}
.st-sv-link[data-kind=trace] {
  stroke: var(--ink-muted);
  stroke-width: 1.5;
}
.st-sv-link.is-active {
  stroke: var(--accent);
  stroke-width: 1.5;
}
.st-sv-link.is-dim {
  opacity: 0.18;
}
.st-sv-leader {
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke var(--motion-trace) linear;
}
.st-sv-leader.is-active {
  stroke: var(--accent);
}
.st-sv-anchor {
  fill: var(--line-strong);
  transition: fill var(--motion-trace) linear;
}
.st-sv-anchor.is-active {
  fill: var(--accent);
}
.st-sv-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-sv-label {
  position: absolute;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 16px;
  padding: 0 5px 0 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 15px;
  color: var(--ink-muted);
  white-space: nowrap;
  background: var(--bg-000);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: auto;
  cursor: default;
  transition: color var(--motion-trace) linear, box-shadow var(--motion-trace) linear;
}
.st-sv-label.is-unit::before {
  content: "";
  flex: 0 0 3px;
  align-self: stretch;
  background: var(--line-strong);
}
.st-sv-label.is-unit[data-side=a]::before {
  background: var(--side-a);
}
.st-sv-label.is-unit[data-side=b]::before {
  background: var(--side-b);
}
.st-sv-label.is-unit {
  cursor: pointer;
}
.st-sv-label.is-stratum {
  padding-left: 4px;
  color: var(--ink);
  font-weight: 500;
}
.st-sv-label.is-stratum b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-faint);
}
.st-sv-label.is-hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.st-sv-label.is-hover.is-stratum b {
  color: var(--accent);
}
.st-sv-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-sv-label .st-kind {
  line-height: 12px;
}
.st-sv-folded {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-faint);
}
.st-sv-status {
  position: absolute;
  box-sizing: border-box;
  height: 16px;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  background: var(--bg-000);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 14px;
  transition: opacity var(--motion-trace) linear;
}
.st-sv-status.is-dim {
  opacity: 0.3;
}
.st-sv-step {
  position: absolute;
  transform: translate(-50%, -50%);
}
.st-sv-cues {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-cue.st-sv-cue {
  position: absolute;
  transform: none;
  max-width: calc(100% - 16px);
}
.st-sv-cue .st-side-tag {
  flex: 0 0 auto;
}
.st-sv-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
  pointer-events: none;
}
.st-sv-inspect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  min-height: 30px;
  padding: 5px var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
}
.st-sv-inspect.is-hint {
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
}
.st-sv-inspect-unit {
  font-weight: 600;
}
.st-sv-inspect-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.st-sv-inspect-note {
  color: var(--ink-muted);
  min-width: 0;
}
.st-sv-state {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  background: var(--bg-200);
  color: var(--ink-muted);
}
.st-sv-state[data-cell-state=supported] {
  background: var(--status-ok-soft);
  color: var(--status-ok);
}
.st-sv-state[data-cell-state=unsupported] {
  background: var(--status-risk-soft);
  color: var(--status-risk);
}
.st-sv-state[data-cell-state=unverified] {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}
.st-sv-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-3);
  padding: 5px var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
}
.st-sv-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.st-sv-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 1px;
}
.st-sv-legend .st-head-fill {
  flex: 1 1 auto;
}
.st-sv-note {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
.st-sv-outline-unit,
.st-sv-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.st-sv-level {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.st-sv-repeat {
  color: var(--ink-faint);
}
.st-sv-diffcells {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.st-sv-diffcells code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.st-sv-card.is-group {
  background: var(--bg-200);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    3px -3px 0 -1px var(--bg-200),
    3px -3px 0 0 var(--line-strong);
}
.st-sv-card.is-group.is-hover {
  box-shadow:
    inset 0 0 0 1px var(--ink),
    3px -3px 0 -1px var(--bg-200),
    3px -3px 0 0 var(--ink);
}
.st-sv-label.is-group .st-sv-label-text,
.st-sv-label.is-row .st-sv-label-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.st-sv-label.is-row {
  color: var(--ink-faint);
  box-shadow: inset 0 0 0 1px var(--line);
  border-style: dashed;
}
.st-sv-label .st-sv-folded {
  margin-left: -1px;
}
.st-sv-link[data-kind=bundle] {
  stroke: var(--line-strong);
  stroke-dasharray: 4 3;
  stroke-linecap: round;
}
.st-sv-bundle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}
.st-sv-bundle.is-dim {
  opacity: 0.3;
}
.st-sv-foldlist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 var(--space-3) var(--space-2);
  list-style: none;
}
.st-sv-foldlist-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  max-width: 220px;
  padding: 0 6px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-000);
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
  overflow: hidden;
}
.st-sv-foldlist-item::before {
  content: "";
  flex: 0 0 3px;
  align-self: stretch;
  background: var(--line-strong);
}
.st-sv-foldlist-item[data-side=a]::before {
  background: var(--side-a);
}
.st-sv-foldlist-item[data-side=b]::before {
  background: var(--side-b);
}
.st-sv-foldlist-item:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.st-index tr.st-sv-diff-current td {
  background: var(--bg-300);
}
.st-index tr.st-sv-diff-current td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}
.st-sv-label.is-peek,
.st-sv-status.is-peek {
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-float);
}

/* src/strata/strata-view.css */
.st-strata {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.st-strata-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}
.st-strata-hint {
  margin: 0;
  flex: 1 1 320px;
  min-width: 0;
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
}
.st-strata-hint b {
  font-weight: 600;
  color: var(--ink);
  margin-right: 6px;
}
.st-strata-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
}
.st-strata-body.is-bare {
  grid-template-columns: minmax(0, 1fr);
}
.st-strata-side,
.st-strata-main {
  min-width: 0;
}
.st-strata-main .st-anchor-surface {
  width: min(760px, calc(100% - 24px));
}
@media (max-width: 860px) {
  .st-strata-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
.st-mnote.is-dim {
  opacity: 0.35;
  transition: opacity var(--motion-trace) linear;
}
.st-flow-scroll {
  overflow-x: auto;
}
.st-flow-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(var(--flow-notes, 1), minmax(150px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-100);
}
.st-flow-row {
  display: contents;
}
.st-flow-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--size-bar);
  padding: 0 var(--space-2);
  background: var(--bg-200);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.st-flow-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink-faint);
}
.st-flow-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.st-flow-head + .st-flow-head,
.st-flow-cell + .st-flow-cell {
  border-left: 1px solid var(--line);
}
.st-flow-head.is-focus {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.st-flow-head.is-dim,
.st-flow-cell.is-dim {
  opacity: 0.45;
  transition: opacity var(--motion-trace) linear;
}
.st-flow-cell .st-art-p {
  margin: 0;
}
.st-flow-title {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.st-flow-anchor {
  padding: 1px 0;
  border-bottom: 1px solid var(--line-strong);
}
.st-flow-anchor sup {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-left: 1px;
}
.st-flow-anchor.is-active {
  background: var(--accent-wash);
  border-bottom: 2px solid var(--accent);
}
.st-flow-outside {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
}
.st-flow-para {
  margin: 0 0 var(--space-1);
}
.st-flow-para:last-child {
  margin-bottom: 0;
}
.st-sbs-cell[data-side=a] .st-flow-para.is-changed {
  box-shadow: inset 2px 0 0 var(--side-a);
  padding-left: var(--space-2);
}
.st-sbs-cell[data-side=b] .st-flow-para.is-changed {
  box-shadow: inset 2px 0 0 var(--side-b);
  padding-left: var(--space-2);
}
.st-tg {
  display: grid;
  grid-template-columns: repeat(var(--tg-cols, 1), minmax(200px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-100);
  align-items: start;
}
.st-tg-col {
  min-width: 0;
  transition: opacity var(--motion-trace) linear;
}
.st-tg-col + .st-tg-col {
  border-left: 1px solid var(--line);
}
.st-tg-col.is-dim {
  opacity: 0.45;
}
.st-tg-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--size-bar);
  padding: 0 var(--space-2);
  background: var(--bg-200);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.st-tg-col.is-focus .st-tg-head {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.st-tg-side {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2) 0;
  font-size: 11px;
  color: var(--ink-muted);
}
.st-tg-list {
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0;
}
.st-tg-unit {
  padding-right: var(--space-2);
  transition: opacity var(--motion-trace) linear;
}
.st-tg-unit.is-dim {
  opacity: 0.35;
}
.st-tg-hit {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: var(--size-control);
  padding: 0 var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.st-tg-hit:hover {
  background: var(--bg-300);
}
.st-tg-hit:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}
.st-tg-unit.is-selected .st-tg-hit {
  background: var(--accent-wash);
  box-shadow: inset 2px 0 0 var(--accent);
}
.st-tg-unit.is-related .st-tg-hit {
  background: var(--bg-300);
}
.st-tg-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-tg-meta,
.st-tg-refs {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}
.st-tg-cells {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  flex: none;
}
.st-tg-cell {
  min-width: 16px;
  padding: 0 3px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  color: var(--ink);
  background: var(--bg-300);
}
.st-tg-cell[data-cell-state=supported] {
  background: var(--status-ok-soft);
  color: var(--status-ok);
}
.st-tg-cell[data-cell-state=unsupported] {
  background: var(--status-risk-soft);
  color: var(--status-risk);
}
.st-tg-cell[data-cell-state=unverified] {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}
.st-tg-cell[data-cell-state=not_applicable] {
  color: var(--ink-faint);
}
.st-fv-face {
  position: absolute;
  inset: 0;
  transition: opacity var(--motion-trace) linear;
}
.st-fv-face > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.st-fv-face.is-dim {
  opacity: 0.3;
}
.st-fv-region {
  position: absolute;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  pointer-events: none;
}
.st-fv-region.is-active {
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.st-fv-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.st-fv-pin-label {
  cursor: pointer;
}
.st-strata-link {
  flex: 1 1 100%;
  min-width: 0;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-flow-section.is-linked,
.st-flow-cell.is-linked {
  box-shadow: inset 2px 0 0 var(--accent);
}
.st-flow-section.is-linked {
  padding-left: var(--space-2);
}
.st-flow-pick {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.st-flow-pick .st-art-n {
  flex: 0 0 auto;
}
.st-flow-pick:hover {
  color: var(--accent);
}
.st-flow-pick:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* src/timeline/timeline.css */
.st-timeline .st-face {
  padding: 0;
}
.st-tl {
  --st-tl-label-w: 132px;
  --st-tl-row-h: 40px;
  --st-tl-track-w: minmax(0, 1fr);
  --st-tl-label-bg: var(--bg-100);
  --st-tl-item-h: 20px;
  --st-tl-playhead-color: var(--accent);
  display: block;
}
.st-tl-scroll {
  position: relative;
  overflow: auto;
  padding: var(--space-3);
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.st-tl-grid {
  width: 100%;
  min-width: 0;
}
.st-tl-ruler-row,
.st-tl-row {
  display: grid;
  grid-template-columns: var(--st-tl-label-w) var(--st-tl-track-w, minmax(0, 1fr));
  gap: var(--space-2);
  align-items: stretch;
}
.st-tl-ruler-row {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--st-tl-label-bg);
}
.st-tl.is-ruler-free .st-tl-ruler-row {
  position: static;
}
.st-tl-ruler-label,
.st-tl-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--st-tl-label-bg);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-tl.is-labels-free .st-tl-ruler-label,
.st-tl.is-labels-free .st-tl-row-label {
  position: static;
}
.st-tl-ruler-label {
  color: var(--ink-faint);
}
.st-tl-ruler {
  position: relative;
  min-height: 30px;
  border-bottom: 1px solid var(--line);
  cursor: ew-resize;
  touch-action: none;
}
.st-tl-ruler:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.st-tl-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
  pointer-events: none;
}
.st-tl-tick-label {
  position: absolute;
  top: 4px;
  left: 4px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.st-tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--st-tl-playhead-color);
  pointer-events: none;
}
.st-tl-playhead::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -4px;
  width: 0;
  height: 0;
  border-top: 6px solid var(--accent);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.st-tl-track-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--st-tl-playhead-color);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.st-tl-row {
  min-height: var(--st-tl-row-h, 40px);
  border-bottom: 1px solid var(--line);
}
.st-tl-row:last-child {
  border-bottom: 0;
}
.st-tl-row[data-continuation=true] .st-tl-row-label {
  color: var(--ink-faint);
  border-left: 2px solid var(--line);
  margin-left: var(--space-2);
  padding-left: var(--space-2);
}
.st-tl-row-cont {
  display: inline-block;
  color: var(--line-strong);
  font-family: var(--font-mono);
}
.st-tl-track {
  position: relative;
  min-height: var(--st-tl-row-h, 40px);
  background-image:
    linear-gradient(
      to right,
      var(--line) 1px,
      transparent 1px);
  background-size: 10% 100%;
}
.st-tl-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  min-width: 10px;
  height: var(--st-tl-item-h);
  margin: 0;
  padding: 0 var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 18px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.st-tl-item:hover {
  border-color: var(--accent);
}
.st-tl-item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.st-tl-item[aria-pressed=true] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-wash);
}
.st-tl-item[data-kind=instant] {
  width: 12px;
  min-width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.st-tl-item[data-kind=milestone] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.st-tl-item[data-status=ok] {
  background: var(--status-ok-soft);
  border-color: var(--status-ok);
}
.st-tl-item[data-status=warn] {
  background: var(--status-warn-soft);
  border-color: var(--status-warn);
}
.st-tl-item[data-status=risk] {
  background: var(--status-risk-soft);
  border-color: var(--status-risk);
}
.st-tl-item-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-tl-item-dot {
  display: block;
  width: 100%;
  height: 100%;
}
.st-tl-empty {
  margin: var(--space-2) 0;
  padding: var(--space-3);
  border: 1px dashed var(--line);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

/* src/stratum.components.css */

/* src/stratum.css */
