:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #222c2b;
  --muted: #7b8380;
  --line: #e2e5dc;
  --accent: #de583b;
  --mint: #dcebe4;
  --green: #37775c;
  --red: #b94f43;
  --amber: #94632a;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button {
  color: inherit;
}
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
}
.brand {
  font-size: 29px;
  letter-spacing: -1.4px;
  font-weight: 760;
  text-decoration: none;
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand-dot {
  color: var(--accent);
}
.header-caption {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 27px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5a7061;
  font-size: 11px;
}
.local-badge > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67977b;
}
.github-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  gap: 15px;
}
.text-button {
  border: 0;
  padding: 5px 0;
  background: transparent;
  font-size: 12px;
  font-weight: 550;
}
.text-button:hover {
  color: var(--accent);
}
.language {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
main {
  max-width: 1710px;
  margin: auto;
  padding: 0 44px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 45px 0 29px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7a817c;
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-mark {
  font-size: 23px;
  line-height: 12px;
  color: var(--accent);
}
h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 560;
  letter-spacing: -1.8px;
  line-height: 1.14;
  margin: 0 0 13px;
}
.intro-copy {
  font-size: 13px;
  color: #747d77;
  margin: 0;
}
.intro-note {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 16px 0 30px;
}
.note-number {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 5px;
  color: #c1c8bd;
  transform: rotate(-12deg);
}
.intro-note p {
  font-size: 11px;
  color: #8b9289;
  line-height: 1.8;
}
.import-section {
  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  align-items: center;
}
.file-card {
  border: 1px dashed #c6cec1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fafbf7;
  padding: 19px 22px;
  min-width: 0;
  transition:
    background 0.15s,
    border 0.15s;
}
.file-card:focus-within,
.file-card.dragover {
  border-color: var(--accent);
  background: #fff2e8;
}
.file-index {
  font: 12px var(--mono);
  color: #a7afa2;
  align-self: flex-start;
  padding-top: 4px;
}
.file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.file-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8b9387;
  font-weight: 650;
  cursor: pointer;
}
.file-info strong {
  font: 12px var(--mono);
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 330px;
}
.file-info > span {
  font-size: 10px;
  color: #8c948a;
}
.file-button {
  border: 1px solid #d7ddd2;
  border-radius: 5px;
  padding: 7px 12px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.file-card .file-button {
  margin-left: auto;
}
.file-button:hover {
  border-color: #879580;
  background: #f6f9f2;
}
.compare-arrow {
  text-align: center;
  font-size: 23px;
  color: #abb4a7;
  font-family: var(--mono);
}
.import-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1px 29px;
  color: #8a9287;
  font-size: 10px;
}
.import-footer p {
  margin: 0;
}
.import-footer p > span:first-child {
  font-size: 14px;
  margin-right: 4px;
}
.import-footer > div {
  display: flex;
  gap: 13px;
  align-items: center;
}
.import-footer .text-button {
  font-size: 10px;
  color: #788371;
}
.import-footer .text-button:hover {
  color: var(--accent);
}
.separator {
  color: #c2c9bb;
}
.import-footer #clear {
  margin-left: 10px;
  color: #999f94;
}
.notice {
  padding: 11px 16px;
  border: 1px solid #e4d6ab;
  background: #fdf8e8;
  border-radius: 6px;
  font-size: 12px;
  color: #786032;
  margin: -12px 0 18px;
}
.notice.error {
  background: #fff0ec;
  border-color: #f0d1c8;
  color: #ae4d35;
}
.workspace {
  border: 1px solid #dce1d7;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 10px #2f3d2603;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.workspace-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workspace-title h2 {
  font-size: 15px;
  letter-spacing: -0.4px;
  font-weight: 650;
  margin: 0;
}
.demo-badge {
  font: 8px var(--mono);
  letter-spacing: 0.6px;
  background: #eff1e9;
  border: 1px solid #e2e6d9;
  padding: 3px 6px;
  color: #7f8b73;
  border-radius: 3px;
}
.project-name {
  font: 10px var(--mono);
  color: #8a9583;
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.view-switch {
  display: flex;
  gap: 3px;
  background: #f0f2eb;
  border-radius: 5px;
  padding: 3px;
}
.view-switch button {
  border: 0;
  background: transparent;
  font-size: 10px;
  color: #8a9481;
  padding: 5px 12px;
  border-radius: 3px;
}
.view-switch button.active {
  background: #fff;
  color: #35462e;
  box-shadow: 0 1px 3px #1d2b1410;
}
.primary-button {
  border: 1px solid #293a2b;
  background: #293a2b;
  color: #fff;
  padding: 8px 13px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.primary-button:hover:not(:disabled) {
  background: #41563b;
  border-color: #41563b;
}
.primary-button > span:first-child:not(:last-child) {
  font-size: 15px;
  line-height: 1;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.stat {
  padding: 0 27px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8b9485;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-value {
  font: 30px var(--mono);
  letter-spacing: -1.5px;
  margin-top: 6px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-value small {
  font-size: 11px;
  letter-spacing: 0;
  color: #a0a99a;
  font-weight: 400;
}
.stat-hint {
  font-size: 9px;
  color: #9da593;
  margin: 6px 0 0;
}
.stat .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dot.added {
  background: #70a688;
}
.dot.removed {
  background: #ce8978;
}
.dot.updated {
  background: #ceab69;
}
.dot.signals {
  background: var(--accent);
}
.stat.signals .stat-value {
  color: #bd6441;
}
.explorer {
  display: grid;
  grid-template-columns: 223px minmax(350px, 1fr) 332px;
  align-items: stretch;
  min-height: 530px;
}
.roots-panel {
  background: #fafbf7;
  border-right: 1px solid var(--line);
  padding: 23px 14px;
}
.panel-label {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #8b9683;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}
.panel-label > span:last-child {
  font-size: 14px;
  color: #9ca994;
  line-height: 1;
}
.panel-description {
  font-size: 9px;
  color: #a0a997;
  margin: 6px 8px 21px;
}
.root-button {
  display: block;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 10px;
  width: 100%;
  border-radius: 5px;
  margin: 3px 0;
  color: #65715e;
}
.root-button:hover {
  background: #eef2e8;
}
.root-button.active {
  background: #e9efdf;
  border-color: #dce5d0;
  color: #3a4d2f;
}
.root-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.root-name {
  font: 10px var(--mono);
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 154px;
}
.root-count {
  font: 10px var(--mono);
  color: #7a896f;
}
.root-bar {
  display: flex;
  height: 3px;
  background: #ecf0e5;
  margin-top: 9px;
  border-radius: 2px;
  overflow: hidden;
}
.root-bar i {
  height: 3px;
  display: block;
}
.root-bar .added {
  background: #90b49a;
}
.root-bar .removed {
  background: #d3a394;
}
.root-bar .updated {
  background: #c7b487;
}
.root-bar .metadata {
  background: #bdc6ae;
}
.root-sub {
  font-size: 8px;
  color: #99a28e;
  margin-top: 5px;
}
.root-all {
  margin-bottom: 11px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.root-all .root-name {
  font-family: var(--sans);
  font-size: 11px;
}
.root-all .root-name::before {
  content: "⌘";
  font-size: 12px;
  margin-right: 8px;
}
.root-footnote {
  color: #a7ae9e;
  font-size: 9px;
  line-height: 1.7;
  padding: 10px 9px 0;
}
.changes-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.table-toolbar {
  display: flex;
  padding: 17px 17px 11px;
  align-items: center;
  gap: 9px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.search-wrap > span {
  font-size: 22px;
  color: #8c9982;
  font-family: var(--mono);
  line-height: 1;
}
.search-wrap input {
  border: 0;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  color: #4f5e45;
  background: transparent;
  padding: 4px;
}
.search-wrap input::placeholder {
  color: #9ba492;
}
.search-wrap input:focus {
  outline: 0;
  box-shadow: 0 1px #90a67d;
}
.search-wrap kbd {
  border: 1px solid #e5e9df;
  border-radius: 3px;
  color: #b1b9a8;
  font: 9px var(--mono);
  padding: 0 4px;
}
.signal-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #8b957f;
  white-space: nowrap;
  cursor: pointer;
}
.signal-toggle input {
  width: 11px;
  height: 11px;
  accent-color: var(--accent);
  margin: 0 2px 0 0;
}
.signal-dot {
  background: #d29467;
  height: 4px;
  width: 4px;
  border-radius: 50%;
}
.filter-row {
  display: flex;
  padding: 0 18px 14px;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 9px;
  color: #89957c;
  padding: 4px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.filter-button.active {
  background: #eff3e8;
  color: #4c633e;
  border-color: #e0e7d6;
}
.filter-button:hover {
  background: #f5f7f0;
}
.filter-button small {
  font: 8px var(--mono);
  color: #a2ad96;
}
.table-head {
  display: grid;
  grid-template-columns: 1fr 113px;
  background: #fafbf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  color: #98a38d;
  font-size: 8px;
  letter-spacing: 0.9px;
}
.change-list {
  max-height: 494px;
  overflow: auto;
  min-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: #d5ddcd transparent;
}
.change-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 113px;
  position: relative;
  padding: 13px 19px 13px 20px;
  gap: 8px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0f2eb;
  align-items: center;
  min-height: 66px;
}
.change-row:hover {
  background: #fafbf7;
}
.change-row.active {
  background: #f4f6ec;
}
.change-row.active::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.change-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 11px var(--mono);
  font-weight: 550;
  min-width: 0;
}
.change-name .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-marker {
  font: 10px var(--mono);
  min-width: 11px;
  color: #c6ad7b;
}
.type-marker.added {
  color: #719977;
}
.type-marker.removed {
  color: #cb8b7e;
}
.type-marker.metadata {
  color: #9da98f;
}
.row-signal {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #d98c58;
  flex-shrink: 0;
}
.change-path {
  display: block;
  font: 8px var(--mono);
  color: #a3ac99;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 6px 0 0 18px;
  max-width: 100%;
}
.version-cell {
  font: 9px var(--mono);
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  color: #67765a;
}
.version-before {
  color: #b0b7a6;
}
.version-arrow {
  color: #b7bfae;
  font-size: 10px;
}
.version-cell .same {
  color: #a2ab96;
  font-size: 8px;
}
.list-footer {
  padding: 11px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #9ca78f;
  gap: 8px;
}
.sort-label {
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.sort-label select {
  font-size: 9px;
  border: 0;
  background: transparent;
  color: #76876a;
  max-width: 110px;
}
.load-more {
  border: 0;
  border-top: 1px solid var(--line);
  background: #f9fbf5;
  padding: 10px;
  font-size: 11px;
}
.detail-panel {
  border-left: 1px solid var(--line);
  background: #fdfefa;
  padding: 22px;
  min-width: 0;
}
.detail-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.detail-tag {
  font: 8px var(--mono);
  padding: 3px 6px;
  letter-spacing: 0.6px;
  border: 1px solid #e4d7b5;
  background: #faf5e8;
  color: #a28948;
  border-radius: 3px;
  text-transform: uppercase;
}
.detail-tag.added {
  border-color: #d4e6d7;
  background: #eef7ee;
  color: #65956d;
}
.detail-tag.removed {
  border-color: #ecd7cf;
  background: #fdf1ec;
  color: #b98473;
}
.detail-tag.metadata {
  border-color: #dfe5d5;
  background: #f2f5ec;
  color: #8a9974;
}
.detail-id {
  font: 8px var(--mono);
  color: #afba9f;
}
.detail-panel h3 {
  font: 17px var(--mono);
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  font-weight: 550;
  margin: 15px 0 8px;
}
.detail-version {
  font: 11px var(--mono);
  color: #627252;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-version .version-before {
  font-size: 11px;
}
.detail-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 13px 0 20px;
}
.detail-chips span {
  border: 1px solid #e5eadd;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 8px;
  color: #8b9a7c;
}
.detail-location {
  padding: 11px 0 16px;
  border-top: 1px solid var(--line);
}
.small-heading {
  font-size: 8px;
  color: #95a387;
  letter-spacing: 1px;
  font-weight: 650;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.location-value {
  font: 9px var(--mono);
  color: #7f8e6f;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.signal-card {
  background: #fff7eb;
  border: 1px solid #efdcc0;
  border-radius: 5px;
  padding: 10px 11px;
  margin: 0 0 8px;
}
.signal-card h4 {
  font-size: 10px;
  font-weight: 600;
  color: #a5783d;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.signal-card h4::before {
  content: "◇";
  font-size: 13px;
}
.signal-card p {
  font-size: 9px;
  color: #a39373;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}
.chain-heading {
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chain-heading .chain-rule {
  margin-left: auto;
  font-weight: 400;
  text-transform: none;
  font-size: 8px;
  letter-spacing: 0;
}
.chain-sides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.chain-label {
  font: 8px var(--mono);
  color: #a7b197;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 1px 0 7px;
}
.chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chain-list li {
  position: relative;
  padding: 0 0 12px 17px;
  font: 9px var(--mono);
  color: #839473;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.chain-list li::before {
  position: absolute;
  left: 3px;
  top: 4px;
  content: "";
  height: 5px;
  width: 5px;
  border: 1px solid #b5c2a6;
  border-radius: 50%;
  background: #fdfefa;
  z-index: 1;
}
.chain-list li:not(:last-child)::after {
  position: absolute;
  content: "";
  left: 5px;
  top: 9px;
  bottom: -4px;
  width: 1px;
  background: #dfe5d5;
}
.chain-list li:last-child {
  padding-bottom: 0;
  color: #4d6939;
}
.chain-list li:last-child::before {
  border-color: #7b9b62;
  background: #7b9b62;
}
.chain-version {
  font-size: 8px;
  color: #b2bca6;
  margin-left: 4px;
}
.chain-empty {
  font-size: 9px;
  color: #a8b29b;
  line-height: 1.7;
  margin: 0;
}
.evidence {
  margin-top: 21px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.evidence summary {
  font-size: 10px;
  color: #81936d;
  cursor: pointer;
}
.evidence-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: 8px var(--mono);
  margin-top: 9px;
}
.evidence-table th,
.evidence-table td {
  vertical-align: top;
  text-align: left;
  padding: 5px 3px;
  border-bottom: 1px solid #e9eddf;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.evidence-table th {
  color: #829470;
  font-weight: 500;
  width: 30%;
}
.evidence-table td {
  color: #a0ac90;
}
.evidence-legend {
  display: flex;
  gap: 9px;
  font: 8px var(--mono);
  color: #b4bfa6;
  margin: 9px 0 0;
}
.evidence-legend span:last-child {
  color: #7d9469;
}
.no-results {
  padding: 55px 28px;
  text-align: center;
  color: #9ba58e;
  font-size: 12px;
}
.detail-empty {
  padding: 75px 0;
  text-align: center;
  color: #a3ae95;
  font-size: 12px;
}
.model-notes {
  border-top: 1px solid var(--line);
  padding: 14px 23px;
  background: #fafbf7;
  font-size: 10px;
  color: #8c987f;
}
.model-notes summary {
  cursor: pointer;
  color: #7f8e70;
}
.model-notes #warning-count {
  margin-left: 9px;
  color: #b28a4e;
}
.model-notes p {
  line-height: 1.8;
  max-width: 1000px;
}
.model-notes ul {
  padding-left: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.model-notes a {
  font-size: 9px;
  color: #789362;
}
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  padding: 33px 3px 36px;
}
.how-it-works > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: start;
  column-gap: 10px;
}
.how-it-works > div > span {
  font: 10px var(--mono);
  color: #c1c8b8;
  padding-top: 2px;
}
.how-it-works h3 {
  font-size: 11px;
  font-weight: 600;
  color: #6f7c64;
  margin: 0 0 6px;
}
.how-it-works p {
  grid-column: 2;
  font-size: 10px;
  color: #9ba58f;
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 21px 44px;
  display: flex;
  gap: 23px;
  align-items: center;
  font-size: 9px;
  color: #a9b19e;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #8e9b81;
}
.site-footer > span:last-child {
  margin-left: auto;
  font-family: var(--mono);
}
.footer-divider {
  margin: 0 9px;
  color: #c6cdbd;
}
.report-panel {
  padding: 25px;
}
.report-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.report-intro h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.report-intro p {
  font-size: 11px;
  color: #939e88;
  margin: 0;
}
.report-intro > div:last-child {
  display: flex;
  gap: 8px;
}
.report-panel pre {
  font: 11px/1.9 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 25px;
  background: #f8faf3;
  border: 1px solid #e2e8d8;
  border-radius: 6px;
  max-height: 570px;
  overflow: auto;
  color: #6e7d5e;
  margin: 0;
}
.empty-state {
  padding: 65px 25px;
  text-align: center;
  background: radial-gradient(ellipse at center, #f5f8eb, transparent 65%);
}
.empty-mark {
  color: #abc291;
  font-size: 70px;
  line-height: 1;
}
.empty-state h3 {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 500;
}
.empty-state p {
  color: #9da98f;
  font-size: 12px;
}
.empty-state .primary-button {
  margin-top: 15px;
}
dialog {
  border: 1px solid #d9e1ce;
  border-radius: 12px;
  background: #fcfdf8;
  color: var(--ink);
  padding: 29px;
  width: min(900px, 95vw);
  max-height: 90vh;
  box-shadow: 0 25px 80px #27381b33;
}
dialog::backdrop {
  background: #27331a77;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
.dialog-heading button {
  font-size: 18px;
  color: #9ba98c;
}
dialog p {
  font-size: 12px;
  color: #859674;
}
.paste-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}
.paste-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #859674;
}
.paste-grid textarea {
  min-height: 290px;
  resize: vertical;
  border: 1px solid #dce4d1;
  border-radius: 6px;
  padding: 13px;
  font: 11px/1.6 var(--mono);
  background: #fff;
  min-width: 0;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.dialog-footer > span {
  font-size: 10px;
  color: #94a085;
}
.workspace[aria-busy="true"] #result {
  opacity: 0.4;
  pointer-events: none;
}
.workspace[aria-busy="true"] #export {
  pointer-events: none;
}
@media (min-width: 1550px) {
  .explorer {
    grid-template-columns: 250px minmax(380px, 1fr) 390px;
  }
  .detail-panel {
    padding: 25px;
  }
  .chain-sides {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .change-row {
    min-height: 69px;
  }
  .change-list {
    max-height: 560px;
  }
  .root-name {
    max-width: 176px;
  }
  .file-info strong {
    max-width: 480px;
  }
}
@media (max-width: 1180px) {
  main {
    padding: 0 25px;
  }
  .site-header {
    padding: 0 25px;
  }
  .explorer {
    grid-template-columns: 180px minmax(270px, 1fr) 285px;
  }
  .detail-panel {
    padding: 18px;
  }
  .stat {
    padding: 0 20px;
  }
  .root-name {
    max-width: 118px;
    font-size: 9px;
  }
  .file-card {
    padding: 17px 15px;
    gap: 10px;
  }
  .file-index {
    display: none;
  }
  .intro-note {
    display: none;
  }
  .header-caption {
    display: none;
  }
  .table-toolbar {
    padding: 15px 12px 10px;
    flex-wrap: wrap;
  }
  .signal-toggle {
    margin-left: auto;
  }
  .change-row,
  .table-head {
    padding-left: 14px;
    grid-template-columns: 1fr 90px;
  }
  .change-name {
    font-size: 10px;
  }
  .version-cell {
    font-size: 8px;
    gap: 3px;
  }
  .table-head {
    font-size: 7px;
  }
  .file-info strong {
    max-width: 270px;
  }
  .workspace-heading {
    padding: 19px;
  }
  .site-footer {
    padding: 20px 25px;
  }
}
@media (max-width: 950px) {
  .explorer {
    grid-template-columns: 173px minmax(270px, 1fr);
  }
  .detail-panel {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 24px;
  }
  .detail-panel .detail-eyebrow,
  .detail-panel h3,
  .detail-panel .detail-version,
  .detail-panel .detail-chips,
  .detail-panel .detail-location,
  .detail-panel .signal-card {
    grid-column: 1;
  }
  .detail-panel .chain-section {
    grid-column: 2;
    grid-row: 1 / span 7;
  }
  .detail-panel .chain-heading {
    margin-top: 2px;
  }
  .detail-panel .evidence {
    grid-column: 1/-1;
  }
  .detail-panel .detail-empty {
    grid-column: 1/-1;
  }
  .file-info strong {
    max-width: 210px;
  }
  .summary-grid {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
  .stat-value {
    font-size: 26px;
  }
  .stat {
    padding: 0 15px;
  }
  .stat-label {
    font-size: 8px;
  }
  .stat-hint {
    font-size: 8px;
  }
  .report-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .how-it-works {
    gap: 20px;
  }
  .workspace-title {
    gap: 8px;
  }
  .workspace-title .project-name {
    display: none;
  }
}
@media (max-width: 650px) {
  main {
    padding: 0 16px;
  }
  .site-header {
    padding: 0 17px;
    height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .site-header nav {
    gap: 17px;
  }
  .local-badge {
    display: none;
  }
  .github-link {
    font-size: 10px;
    gap: 6px;
  }
  .intro {
    padding: 32px 0 24px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .intro-copy {
    font-size: 11px;
    max-width: 320px;
    line-height: 1.8;
  }
  .import-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .compare-arrow {
    display: none;
  }
  .file-card {
    padding: 14px;
    gap: 10px;
  }
  .file-info strong {
    max-width: 210px;
    font-size: 10px;
  }
  .file-info > span {
    font-size: 8px;
  }
  .file-label {
    font-size: 8px;
  }
  .file-button {
    font-size: 9px;
    padding: 6px 9px;
  }
  .import-footer {
    align-items: flex-start;
    padding-bottom: 23px;
    gap: 9px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .import-footer > div {
    margin-left: auto;
    gap: 10px;
  }
  .import-footer .text-button {
    font-size: 9px;
  }
  .workspace-heading {
    padding: 15px;
    align-items: flex-start;
  }
  .workspace-title {
    gap: 6px;
    max-width: 165px;
  }
  .workspace-title h2 {
    font-size: 13px;
  }
  .demo-badge {
    font-size: 6px;
    padding: 2px 5px;
  }
  .workspace-actions {
    gap: 6px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }
  .workspace-actions .primary-button {
    font-size: 8px;
    padding: 6px 10px;
  }
  .view-switch {
    padding: 2px;
    gap: 2px;
  }
  .view-switch button {
    font-size: 8px;
    padding: 4px 11px;
  }
  .summary-grid {
    padding: 17px 0;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 15px;
  }
  .stat:first-child {
    grid-column: 1/-1;
    border: 0;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 15px;
  }
  .stat:first-child .stat-hint {
    margin: 0;
  }
  .stat:first-child .stat-label {
    order: 2;
  }
  .stat:first-child .stat-value {
    font-size: 24px;
    order: 1;
  }
  .stat:first-child .stat-hint {
    order: 3;
    margin-left: auto;
  }
  .stat {
    padding: 0 12px;
  }
  .stat-label {
    font-size: 7px;
    letter-spacing: 0.5px;
    gap: 4px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-hint {
    font-size: 7px;
  }
  .stat-value small {
    font-size: 9px;
  }
  .explorer {
    display: flex;
    flex-direction: column;
  }
  .roots-panel {
    padding: 15px 10px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .panel-label {
    font-size: 8px;
    padding: 0 5px;
  }
  .panel-description {
    margin: 4px 5px 8px;
    font-size: 8px;
  }
  #roots {
    display: flex;
    gap: 5px;
    overflow: auto;
    padding: 1px 1px 5px;
    scrollbar-width: thin;
  }
  .root-button {
    width: 150px;
    flex-shrink: 0;
    padding: 8px;
    margin: 0;
  }
  .root-all {
    width: 127px;
    margin-bottom: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .root-all .root-top {
    width: 100%;
  }
  .root-all .root-name {
    font-size: 9px;
  }
  .root-top {
    gap: 10px;
  }
  .root-name {
    font-size: 9px;
    max-width: 112px;
  }
  .root-sub {
    font-size: 7px;
  }
  .root-count {
    font-size: 8px;
  }
  .root-footnote {
    font-size: 7px;
    margin: 0;
    padding: 6px 5px 0;
  }
  .root-bar {
    margin-top: 6px;
    height: 2px;
  }
  .root-bar i {
    height: 2px;
  }
  .table-toolbar {
    padding: 14px;
  }
  .filter-row {
    padding: 0 12px 12px;
    gap: 2px;
  }
  .filter-button {
    padding: 4px 7px;
    font-size: 8px;
  }
  .table-head {
    padding: 10px 16px;
    grid-template-columns: 1fr 110px;
    font-size: 7px;
  }
  .change-row {
    grid-template-columns: 1fr 110px;
    padding: 12px 16px;
    min-height: 62px;
  }
  .change-name {
    font-size: 10px;
  }
  .change-path {
    font-size: 7px;
  }
  .version-cell {
    font-size: 8px;
  }
  .change-list {
    max-height: 420px;
    min-height: 220px;
  }
  .detail-panel {
    display: block;
    padding: 20px;
  }
  .detail-panel h3 {
    font-size: 19px;
  }
  .chain-sides {
    grid-template-columns: 1fr 1fr;
  }
  .detail-panel .chain-heading {
    margin-top: 22px;
  }
  .detail-location {
    padding-bottom: 10px;
  }
  .signal-card {
    margin-top: 5px;
  }
  .evidence-table {
    font-size: 9px;
  }
  .model-notes {
    padding: 13px 17px;
    font-size: 9px;
  }
  .how-it-works {
    display: block;
    padding: 24px 3px 10px;
  }
  .how-it-works > div {
    margin-bottom: 18px;
    grid-template-columns: 28px 1fr;
    gap: 5px;
  }
  .how-it-works h3 {
    font-size: 11px;
  }
  .how-it-works p {
    font-size: 9px;
    max-width: none;
  }
  .site-footer {
    padding: 19px 18px;
    gap: 14px;
    font-size: 8px;
  }
  .footer-brand {
    font-size: 14px;
  }
  .site-footer > span:nth-child(2) {
    max-width: 150px;
  }
  .footer-divider {
    margin: 0 3px;
  }
  .report-panel {
    padding: 18px;
  }
  .report-intro h3 {
    font-size: 15px;
  }
  .report-intro p {
    font-size: 10px;
  }
  .report-panel pre {
    padding: 14px;
    font-size: 9px;
  }
  .paste-grid {
    grid-template-columns: 1fr;
  }
  .paste-grid textarea {
    min-height: 170px;
  }
  .dialog-footer {
    align-items: flex-end;
  }
  .dialog-footer > span {
    font-size: 8px;
    max-width: 130px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.chain-scope {
  font-size: 8px;
  line-height: 1.7;
  color: #a2af94;
  margin: 0 0 12px;
}
#root-more {
  font-size: 10px;
  color: #849674;
}
/* Secondary copy remains readable at small workbench sizes. */
.header-caption,
.intro-copy,
.intro-note p,
.file-info > span,
.import-footer,
.import-footer .text-button,
.project-name,
.stat-label,
.stat-hint,
.panel-label,
.panel-description,
.root-sub,
.root-footnote,
.change-path,
.version-before,
.chain-label,
.chain-version,
.chain-scope,
.small-heading,
.location-value,
.list-footer,
.signal-toggle,
.filter-button,
.filter-button small,
.table-head,
.model-notes,
.model-notes summary,
.how-it-works p,
.site-footer,
.detail-id,
.detail-chips span,
.chain-empty {
  color: #6f7b64;
}
.file-label,
.root-count,
.version-cell .same,
.search-wrap input::placeholder,
.detail-tag.metadata {
  color: #75816a;
}
.signal-card p {
  color: #8a714c;
}
.evidence-table td {
  color: #70805f;
}
.report-intro p {
  color: #718260;
}
.root-button:hover {
  color: #3e5330;
}
.import-footer #clear {
  color: #7b8473;
}

.root-range {
  display: block;
  font: 8px var(--mono);
  color: #7d9169;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.example-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin: -12px 0 22px;
  color: #6f7b64;
  font-size: 10px;
}
.example-picker label {
  font-weight: 600;
}
.example-picker select {
  max-width: 100%;
  width: min(325px, 100%);
  padding: 6px 9px;
  border: 1px solid #d7ddd2;
  border-radius: 5px;
  background: #fff;
  color: #526344;
  font-size: 10px;
}
.example-picker > span {
  color: #7a8570;
}
.case-provenance {
  margin: -10px 0 22px;
  font: 10px/1.8 var(--mono);
  color: #6f7b64;
  overflow-wrap: anywhere;
}
.case-provenance a {
  color: #526c3f;
}
@media (max-width: 650px) {
  .example-picker {
    gap: 7px;
    margin-top: -9px;
  }
  .example-picker label {
    flex: 1 0 100%;
  }
  .example-picker select {
    width: 100%;
  }
  .example-picker > span {
    font-size: 9px;
  }
  .case-provenance {
    font-size: 9px;
  }
}

@media (min-width: 651px) {
  .roots-panel #roots {
    max-height: 445px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d5ddcd transparent;
  }
}
@media (min-width: 951px) {
  .detail-panel {
    max-height: 720px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d5ddcd transparent;
  }
}
