:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --soft: #f6f4ef;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #e6e3dc;
  --accent: #3b5bdb;
  --real: #2b8a3e;
  --real-bg: #e6f4ea;
  --mock: #b35c00;
  --mock-bg: #fff1dc;
  --tag: #495057;
  --tag-bg: #eceff3;
  --bad: #c92a2a;
  --bad-bg: #fdecec;
  --ink-soft: #3a3a3e;
  --ink-mid: #45454a;
  --header-bg: rgba(251, 250, 247, 0.94);
  --surface: #fff;
  --hover: #fcfbf8;
  --edge: #c9c6bd;
  --faint: #a9a6a0;
  --fainter: #b8b5ae;
  --track: #efece5;
  --accent-bg: #edf1ff;
  --accent-line: #c9d4fb;
  --real-line: #b7dfc2;
  --mock-line: #f3d19e;
  --deposit-bg: #e7f0ff;
  --deposit-line: #c9dafc;
  --withdrawal-bg: #fdecef;
  --withdrawal-line: #f5c8d0;
  --l1: #34487a;
  --l1-bg: #e3e8f4;
  --l2: #7b2fb5;
  --l2-bg: #f1e4f7;
  --code-bg: #fdfcf9;
  --code-pre: #f7f5f0;
  --tk-comment: #7c7c80;
  --tk-string: #a4461b;
  --tk-number: #8a5a00;
  --tk-keyword: #7b2fb5;
  --tk-type: #1c6b8c;
  --on-solid: #fff;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

/* Dark mode follows the browser's setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413;
    --panel: #1d1c1a;
    --soft: #252320;
    --ink: #ecebe7;
    --muted: #9c9a94;
    --line: #34312d;
    --accent: #8ea4ff;
    --real: #5cc27a;
    --real-bg: #17301f;
    --mock: #eea54d;
    --mock-bg: #382812;
    --tag: #c3c6cb;
    --tag-bg: #2b2d31;
    --bad: #ff7070;
    --bad-bg: #3b1b1b;
    --ink-soft: #d6d4cf;
    --ink-mid: #c4c2bc;
    --header-bg: rgba(21, 20, 19, 0.92);
    --surface: #211f1d;
    --hover: #22201e;
    --edge: #4b4843;
    --faint: #76736d;
    --fainter: #5d5a55;
    --track: #2f2c28;
    --accent-bg: #1f2646;
    --accent-line: #36427a;
    --real-line: #2b5a39;
    --mock-line: #6b4b1d;
    --deposit-bg: #1d2742;
    --deposit-line: #34447a;
    --withdrawal-bg: #3a1d27;
    --withdrawal-line: #6b3545;
    --l1: #a7b8ea;
    --l1-bg: #222a42;
    --l2: #cfa0ec;
    --l2-bg: #31213c;
    --code-bg: #1a1917;
    --code-pre: #1f1e1b;
    --tk-comment: #8b8a90;
    --tk-string: #e39a6d;
    --tk-number: #d8b25e;
    --tk-keyword: #c592ef;
    --tk-type: #6fc1e0;
    --on-solid: #151413;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
.muted { color: var(--muted); font-weight: 400; }
.check { color: var(--real); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 10px 28px; background: var(--header-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand .muted { margin-left: -3px; }
.mark { width: 22px; height: 22px; flex: none; }
.mark-edge { fill: var(--panel); stroke: var(--ink); stroke-width: 2.2; }
.mark-core { fill: var(--accent); }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav a { color: var(--ink-soft); }
#search { margin-left: auto; }
#search input {
  width: 330px; max-width: 70vw; font: inherit; font-size: 14px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.status { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 28px; max-width: 1180px; margin: 0 auto; }
.pill { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { border-color: var(--real-line); background: var(--real-bg); color: var(--real); }
.pill.warn { border-color: var(--mock-line); background: var(--mock-bg); color: var(--mock); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--real); margin-right: 6px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 28px 60px; }
h1 { font-size: 28px; line-height: 1.25; margin: 18px 0 10px; letter-spacing: -0.01em; }
h1 .kind { font-size: 14px; vertical-align: 5px; margin-left: 8px; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 8px; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 820px; }
.section-lead { color: var(--muted); max-width: 820px; margin: 0 0 14px; }
.note { color: var(--muted); font-size: 14px; }
.row-links { display: flex; gap: 14px; font-size: 14px; margin: -4px 0 8px; }

/* Badges and chips */
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; vertical-align: 1px; }
.badge.real { background: var(--real-bg); color: var(--real); }
.badge.mock { background: var(--mock-bg); color: var(--mock); }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; margin: 1px 2px 1px 0; }
.chip.deposit { background: var(--deposit-bg); border-color: var(--deposit-line); }
.chip.withdrawal { background: var(--withdrawal-bg); border-color: var(--withdrawal-line); }
.legend { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }

/* Callouts */
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 12px 0 18px; max-width: 900px; }
.callout.mock { border-left-color: var(--mock); }
.callout p { margin: 4px 0; }

/* Stats */
/* The live numbers, in one strip. */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.stat { padding: 8px 14px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 18px; font-weight: 700; white-space: nowrap; }
.stat .value .unit { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
}

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--soft); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover { background: var(--hover); }
.mock-table td:first-child { font-weight: 600; }

/* Annotated fields: field, value, note */
table.fields td:first-child { width: 210px; color: var(--ink-soft); font-weight: 600; }
table.fields td.value { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; width: 38%; }
table.fields td.note { color: var(--muted); font-size: 13.5px; }
a.addr { white-space: nowrap; }
.nowrap { white-space: nowrap; }
svg.merkle { display: block; max-width: 100%; height: auto; margin: 8px 0; font: 11px var(--mono); }
svg.merkle rect { fill: var(--surface); stroke: var(--edge); }
svg.merkle text { fill: var(--ink); }
svg.merkle .mt-sib rect { fill: var(--accent-bg); stroke: var(--accent); }
svg.merkle .mt-root rect { fill: var(--real-bg); stroke: var(--real); }
svg.merkle .mt-leaf rect { stroke: var(--ink); }
svg.merkle .mt-label { font: 11px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--muted); }
svg.merkle .mt-ok { font: 12px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--real); }
svg.merkle .mt-edge { stroke: var(--edge); }
svg.merkle .mt-path { stroke: var(--ink); stroke-width: 1.6; }
svg.merkle .mt-dashed { stroke-dasharray: 4 4; }
svg.merkle .mt-bit { font: 700 11px var(--mono); fill: var(--ink); }
svg.merkle .mt-bit.off { font-weight: 400; fill: var(--faint); }
svg.merkle .mt-subtree { fill: var(--accent-bg); stroke: var(--accent); }
svg.merkle .mt-sib.empty rect, svg.merkle .mt-subtree.empty { fill: var(--surface); stroke: var(--edge); stroke-dasharray: 3 3; }
svg.merkle .mt-sib.empty text { fill: var(--muted); }
svg.merkle .strong { font-weight: 600; fill: var(--ink); }
svg.merkle .pv-label { font: 11px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--muted); }
svg.merkle .mt-bad rect { fill: var(--bad-bg); stroke: var(--bad); }
svg.merkle .mt-bad-text { font: 12px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--bad); }
svg.merkle .mt-cell rect { fill: var(--surface); stroke: var(--line); }
svg.merkle .mt-cell text { font-size: 10px; fill: var(--fainter); }
svg.merkle .mt-cell.child rect { fill: var(--soft); stroke: var(--edge); }
svg.merkle .mt-cell.child text { fill: var(--muted); }
svg.merkle .mt-cell.taken rect { fill: var(--accent-bg); stroke: var(--accent); }
svg.merkle .mt-cell.taken text { fill: var(--accent); font-weight: 700; }
.mt-k { color: var(--accent); font-weight: 700; }
.mt-rest { color: var(--muted); }
/* Lists name the addresses they know, with the address on hover. */
table.txs .addr .muted, .targets .addr .muted, .item .addr .muted { display: none; }
.targets { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; align-items: baseline; }
.prose { font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
.tag-note { font: 12px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); }
.empty-hash { font: 12px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--tag); background: var(--tag-bg); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.net { display: inline-block; font: 700 9.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0.03em; padding: 2px 4px; border-radius: 4px; margin-right: 4px; vertical-align: 1.5px; }
.net.l1 { background: var(--l1-bg); color: var(--l1); }
.net.l2 { background: var(--l2-bg); color: var(--l2); }
table.fields td.value.nested { width: auto; padding: 2px 0; }
table.fields table.fields { border: none; background: transparent; }
table.fields table.fields td:first-child { width: 190px; font-weight: 500; white-space: nowrap; }
table.fields table.fields td.value { width: auto; }

/* Tabs and details, as on Etherscan */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 16px 0 14px; }
.tabs a { padding: 7px 14px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: var(--ink-soft); font-size: 14px; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; background: var(--soft); }
.tabs a.active { background: var(--panel); border-color: var(--line); border-bottom-color: var(--panel); color: var(--ink); font-weight: 600; }
details.more { margin: 10px 0 18px; }
details.more > summary { cursor: pointer; color: var(--accent); font-size: 14px; padding: 6px 2px; }
details.more > table { margin-top: 6px; }

/* Frames */
.frames { display: grid; gap: 12px; }
.frame { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.frame-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.frame-head .idx { font-weight: 700; }
.frame-head .mode { font: 700 12px var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.frame-head .status { margin-left: auto; font-size: 13px; }
.frame-body { padding: 10px 14px 14px; }
.frame-body .explain { margin: 2px 0 10px; max-width: 880px; }
.frame table { border: none; border-radius: 0; }
.gasbar { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.kind { font: 11.5px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.kind.verified { color: var(--real); background: var(--real-bg); border-color: var(--real-line); }
.kind.unverified { border-style: dashed; }
.term { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.flag { font: 600 11.5px var(--mono); color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-line); padding: 1px 6px; border-radius: 5px; }

.fill { position: relative; height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; margin: 6px 0; max-width: 520px; }
.fill > span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 5px; min-width: 2px; }
.minifill { display: inline-block; width: 60px; height: 7px; background: var(--track); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.minifill > span { display: block; height: 100%; background: var(--accent); min-width: 2px; }

.button { display: inline-block; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--soft); }
.button:hover { border-color: var(--accent); }
pre.code { font: 12px/1.5 var(--mono); background: var(--soft); padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Sources */
pre.src { max-height: 640px; overflow: auto; }
.ln { display: inline-block; color: var(--fainter); margin-right: 14px; user-select: none; }
pre.bytecode { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; }

/* Blobs */
.rlp details { margin: 2px 0 2px 0; }
.rlp details > summary { cursor: pointer; font-size: 13px; }
.rlp .rlp { padding-left: 16px; border-left: 1px solid var(--line); margin-left: 4px; }
.rlp-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; font-size: 13px; padding: 1px 0; }
.rlp-name { color: var(--muted); }
.rlp-value { overflow-wrap: anywhere; }
pre.raw { max-height: 520px; overflow: auto; white-space: pre; font-size: 11.5px; line-height: 1.45; }
.fe-index { color: var(--fainter); }
.fe-zero { color: var(--edge); }
.fe-hdr { color: var(--bad); font-weight: 700; }
.fe-bal { color: var(--tk-type); }
.fe-txs { color: var(--tk-keyword); }
.fe-pad { color: var(--edge); }

/* Code */
details.code { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--code-bg); }
details.code > summary { cursor: pointer; padding: 8px 12px; font-size: 13.5px; }
details.code > pre.code { margin: 0; border-radius: 0 0 10px 10px; background: var(--code-pre); font-size: 12.5px; line-height: 1.55; white-space: pre; overflow-x: auto; word-break: normal; }
.callees { padding: 6px 12px 10px; font-size: 13px; }
.callees details.code { margin: 6px 0 0; background: var(--panel); }
.tk-c { color: var(--tk-comment); font-style: italic; }
.tk-s { color: var(--tk-string); }
.tk-n { color: var(--tk-number); }
.tk-k { color: var(--tk-keyword); font-weight: 600; }
.tk-t { color: var(--tk-type); }

/* The steps every block takes, on a line of numbered dots. */
.journey { list-style: none; display: grid; grid-template-columns: repeat(var(--steps), 1fr); gap: 0 18px; padding: 0; margin: 18px 0 24px; }
.journey li { position: relative; padding-top: 34px; font-size: 13.5px; display: flex; flex-direction: column; }
.journey li::before { content: ""; position: absolute; top: 12px; left: 0; right: -18px; height: 2px; background: var(--line); }
.journey li:last-child::before { right: 0; }
.journey .step { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 12px var(--mono); color: var(--on-solid); background: var(--real); }
.journey li.pending .step { background: var(--surface); color: var(--muted); border: 2px dashed var(--edge); }
.journey li.pending { color: var(--muted); }
.journey li.mixed .step { background: linear-gradient(90deg, var(--real) 50%, var(--mock) 50%); }
.journey b { font-size: 15px; }
.journey p { margin: 4px 0 6px; color: var(--ink-mid); line-height: 1.45; }
.journey .evidence { font-size: 13px; margin-top: auto; white-space: nowrap; }

.pager { display: flex; gap: 12px; align-items: center; margin: 10px 0; font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { display: block; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-mid); }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  #search { margin-left: 0; width: 100%; }
  #search input { width: 100%; max-width: none; }
  .journey { grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
  table.fields td:first-child { width: auto; }
  .hide-narrow { display: none; }
}

/* Home: latest blocks and transactions side by side, as on Etherscan */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 14px; }
/* minmax(0, …) keeps each row's columns the same width whatever their content. */
.item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.item .line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item:last-child { border-bottom: none; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } }

/* Home: the story */
.story { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.story a { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.story a:last-child { border-bottom: none; }
.story a:hover { background: var(--soft); text-decoration: none; }

/* Feedback while a page loads */
body.loading #app { opacity: 0.55; transition: opacity 0.15s; }
body.loading::before { content: ""; position: fixed; top: 0; left: 0; z-index: 20; height: 3px; width: 40%;
  background: var(--accent); animation: loading 0.9s ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Phones: fields stack, the header scrolls away, and wide tables scroll
   within themselves. */
@media (max-width: 640px) {
  .top { position: static; padding: 10px 14px; gap: 10px 16px; }
  main { padding: 0 14px 40px; }
  .status { padding: 8px 14px; }
  table.fields, table.fields > tbody, table.fields > tbody > tr, table.fields > tbody > tr > td { display: block; }
  table.fields > tbody > tr > td, table.fields td.value { width: auto; border-bottom: none; }
  table.fields > tbody > tr { border-bottom: 1px solid var(--line); }
  table.fields > tbody > tr:last-child { border-bottom: none; }
  table.fields > tbody > tr > td:first-child { padding-bottom: 0; }
  table.fields > tbody > tr > td.note { padding-top: 0; }
  main table:not(.fields) { display: block; overflow-x: auto; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .journey { grid-template-columns: 1fr; gap: 14px; }
  .journey li::before { display: none; }
}

/* A block across the L1/L2 boundary, scrolling sideways on narrow screens. */
.boundary-wrap { overflow-x: auto; }
@media (max-width: 860px) { svg.boundary { min-width: 960px; } }
svg.boundary { display: block; width: 100%; height: auto; margin: 6px 0 18px; font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
svg.boundary text { fill: var(--ink); }
svg.boundary .bd-band { fill: var(--soft); stroke: var(--line); }
svg.boundary .bd-nest { fill: var(--panel); stroke: var(--line); }
svg.boundary .bd-title { font-weight: 700; font-size: 12px; }
svg.boundary .bd-sub, svg.boundary .bd-detail, svg.boundary .bd-l2 { fill: var(--muted); }
svg.boundary .bd-group { font-weight: 700; font-size: 9.5px; letter-spacing: 0.06em; fill: var(--muted); }
svg.boundary .bd-field { font: 11px var(--mono); }
svg.boundary .bd-value { font: 11px var(--mono); fill: var(--muted); }
svg.boundary .bd-back { fill: var(--accent); }
svg.boundary .bd-hit { fill: transparent; }
svg.boundary .bd-row:hover .bd-hit { fill: var(--hover); }
svg.boundary .bd-arrow { stroke: var(--edge); stroke-width: 1.1; fill: none; }
svg.boundary .bd-headpath { fill: var(--edge); }
svg.boundary .bd-chip text { font-size: 10px; font-weight: 600; }
svg.boundary .bd-chip.storage rect { fill: var(--accent-bg); stroke: var(--accent-line); }
svg.boundary .bd-chip.storage text { fill: var(--accent); }
svg.boundary .bd-chip.l1 rect { fill: var(--l1-bg); stroke: var(--l1); }
svg.boundary .bd-chip.l1 text { fill: var(--l1); }
svg.boundary .bd-chip.checked rect { fill: var(--real-bg); stroke: var(--real-line); }
svg.boundary .bd-chip.checked text { fill: var(--real); }
svg.boundary .bd-chip.free rect { fill: none; stroke: var(--edge); stroke-dasharray: 3 2; }
svg.boundary .bd-chip.free text { fill: var(--muted); }
svg.boundary .bd-chip.fixed rect { fill: var(--tag-bg); stroke: var(--line); }
svg.boundary .bd-chip.fixed text { fill: var(--tag); }
svg.boundary .bd-chip.registry rect { fill: var(--l2-bg); stroke: var(--l2); }
svg.boundary .bd-chip.registry text { fill: var(--l2); }
svg.boundary .bd-chip.computed rect { fill: var(--panel); stroke: var(--accent-line); }
svg.boundary .bd-chip.computed text { fill: var(--accent); }
svg.boundary .bd-box rect { fill: var(--panel); stroke: var(--line); }
svg.boundary .bd-box.boundary rect { fill: var(--soft); stroke: var(--edge); }
svg.boundary .bd-check rect { fill: var(--real-bg); stroke: var(--real); }
svg.boundary .bd-check.bad rect { fill: var(--bad-bg); stroke: var(--bad); }
svg.boundary .bd-ok { fill: var(--real); font-weight: 600; }
svg.boundary .bd-bad { fill: var(--bad); font-weight: 600; }
