:root {
  /* palette: hieuphay.com (hp-hugo-coder, gruvbox light) */
  --bg: #f3eddc;
  --panel: #fcfaf3;
  --panel-2: #f5efdf;
  --line: #e6dcc0;
  --line-strong: #d5c4a1;
  --text: #1d2021;
  --muted: #7c6f64;
  --accent: #950e00;
  --accent-soft: rgba(149, 14, 0, 0.09);
  --hit: #b57614;
  --ok: #79740e;
  --err: #cc241d;
  --err-soft: rgba(204, 36, 29, 0.1);
  --edge: #bdae93;
  --edge-strong: #7c6f64;
  --node: #fcfaf3;
  --node-text: #1d2021;
  --group: rgba(124, 111, 100, 0.045);
  --group-line: #d5c4a1;
  --src-bg: #fbf7e8;
  --src-hl: rgba(215, 153, 33, 0.18);
  --mono: "Iosevka Custom Web", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sc: "Alegreya SC Web", "Alegreya Sans", serif;
  --c0: #8f3f71; --c1: #79740e; --c2: #9d0006; --c3: #076678; --c4: #b57614;
  --c5: #427b58; --c6: #af3a03; --c7: #928374;
  --hl-kw: #9d0006; --hl-str: #79740e; --hl-num: #8f3f71; --hl-com: #928374; --hl-fn: #b57614; --hl-type: #427b58; --hl-meta: #076678;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* gruvbox dark, links as on hieuphay.com */
    --bg: #1d2021; --panel: #282828; --panel-2: #32302f; --line: #3c3836; --line-strong: #504945;
    --text: #eae2d2; --muted: #a89984; --accent: #61acbb; --accent-soft: rgba(97, 172, 187, 0.16);
    --hit: #fabd2f; --ok: #b8bb26; --err: #fb4933; --err-soft: rgba(251, 73, 51, 0.14);
    --edge: #665c54; --edge-strong: #a89984; --node: #282828; --node-text: #eae2d2;
    --group: rgba(235, 219, 178, 0.03); --group-line: #504945; --src-bg: #242322; --src-hl: rgba(250, 189, 47, 0.16);
    --c0: #d3869b; --c1: #b8bb26; --c2: #fb4933; --c3: #83a598; --c4: #fabd2f; --c5: #8ec07c; --c6: #fe8019; --c7: #a89984;
    --hl-kw: #fb4933; --hl-str: #b8bb26; --hl-num: #d3869b; --hl-com: #928374; --hl-fn: #fabd2f; --hl-type: #8ec07c; --hl-meta: #83a598;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  /* gruvbox dark, links as on hieuphay.com */
  --bg: #1d2021; --panel: #282828; --panel-2: #32302f; --line: #3c3836; --line-strong: #504945;
  --text: #eae2d2; --muted: #a89984; --accent: #61acbb; --accent-soft: rgba(97, 172, 187, 0.16);
  --hit: #fabd2f; --ok: #b8bb26; --err: #fb4933; --err-soft: rgba(251, 73, 51, 0.14);
  --edge: #665c54; --edge-strong: #a89984; --node: #282828; --node-text: #eae2d2;
  --group: rgba(235, 219, 178, 0.03); --group-line: #504945; --src-bg: #242322; --src-hl: rgba(250, 189, 47, 0.16);
  --c0: #d3869b; --c1: #b8bb26; --c2: #fb4933; --c3: #83a598; --c4: #fabd2f; --c5: #8ec07c; --c6: #fe8019; --c7: #a89984;
  --hl-kw: #fb4933; --hl-str: #b8bb26; --hl-num: #d3869b; --hl-com: #928374; --hl-fn: #fabd2f; --hl-type: #8ec07c; --hl-meta: #83a598;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); font-feature-settings: 'liga' on, 'onum' on;
  display: flex; flex-direction: column; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
kbd {
  font: 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line-strong);
  border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--panel);
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
a, .link { color: var(--accent); cursor: pointer; text-decoration: none; }
a:hover, .link:hover { text-decoration: underline; }

/* ---- top bar */
#topbar {
  height: 46px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.brand strong { font: 700 17px var(--sc); letter-spacing: .01em; }
.brand #pkgname { overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #cb3c33; } .dots i:nth-child(2) { background: #389826; } .dots i:nth-child(3) { background: #9558b2; }
#views { display: flex; gap: 2px; background: var(--panel-2); padding: 3px; border-radius: 8px; }
#views button { padding: 4px 12px; border-radius: 6px; color: var(--muted); font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
#views button i { font-size: 11px; opacity: .8; }
#views button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.search {
  flex: 1; max-width: 420px; display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px 5px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  background: var(--bg);
}
.search:hover { border-color: var(--line-strong); }
.search span { flex: 1; text-align: left; margin-left: 8px; }
.status { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.live.off i { background: var(--err); }
.live.pulse i { animation: pulse 0.9s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.themebtn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1; display: grid; place-items: center; }
.themebtn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }
.errbadge { background: var(--err-soft); color: var(--err); padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: 12px; }

/* ---- layout */
#layout { flex: 1; display: flex; min-height: 0; }
#sidebar {
  width: 270px; flex: none; display: flex; flex-direction: column; background: var(--panel);
  border-right: 1px solid var(--line); min-height: 0;
}
.side-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.side-head input { flex: 1; min-width: 0; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); text-transform: none; letter-spacing: 0; font-weight: 400; }
.tree { overflow: auto; flex: 1; padding: 6px 0 20px; font-size: 12.5px; }
.tree details > summary { list-style: none; }
.tree details > summary::-webkit-details-marker { display: none; }
.tree .row {
  display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px calc(10px + var(--d, 0) * 14px);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0;
}
.tree .row:hover { background: var(--panel-2); }
.tree .row.sel { background: var(--accent-soft); }
.tree .row .tw { width: 10px; color: var(--muted); flex: none; font-size: 9px; transition: transform .1s; }
.tree details[open] > summary .tw { transform: rotate(90deg); }
.tree .row .lbl { overflow: hidden; text-overflow: ellipsis; }
.tree .row .cnt { margin-left: auto; color: var(--muted); font-size: 11px; padding-left: 6px; }
.tree .sect { padding: 10px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ico { width: 15px; flex: none; text-align: center; font: 600 10px var(--mono); border-radius: 3px; }
.ico.m { color: var(--accent); } .ico.f { color: var(--muted); } .ico.fn { color: var(--hl-fn); }
.ico.t { color: var(--hl-type); } .ico.mac { color: var(--hl-meta); } .ico.c { color: var(--hl-num); }
.errdot { width: 6px; height: 6px; background: var(--err); border-radius: 50%; flex: none; }

#center { flex: 1; position: relative; min-width: 0; }
#cy { position: absolute; inset: 0; }
#toolbar {
  position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px;
  pointer-events: none;
}
#toolbar > * { pointer-events: auto; }
.tgroup {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tgroup button, .tgroup label { padding: 3px 9px; border-radius: 5px; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.tgroup button:hover, .tgroup label:hover { color: var(--text); background: var(--panel-2); }
.tgroup button.on { background: var(--accent-soft); color: var(--accent); }
.tgroup input[type=checkbox] { accent-color: var(--accent); margin: 0; }
.tgroup input[type=range] { width: 70px; accent-color: var(--accent); }
.tgroup .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 3px; }
.tgroup .tlabel { font-size: 12px; color: var(--muted); padding: 0 4px; }
.focuschip { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.focuschip b { font-family: var(--mono); font-weight: 600; }

#legend {
  position: absolute; z-index: 5; left: 10px; bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap;
  padding: 6px 10px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line);
  border-radius: 8px; font-size: 12.5px; color: var(--muted); max-width: calc(100% - 20px);
}
#legend span { display: inline-flex; align-items: center; gap: 5px; }
#legend .sw { width: 18px; height: 0; border-top: 2px solid var(--edge-strong); }
#legend .sw.dash { border-top-style: dashed; }
#legend .sw.dot { border-top-style: dotted; }
#legend .box { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; pointer-events: none; }

#splitter { width: 5px; flex: none; cursor: col-resize; background: transparent; border-left: 1px solid var(--line); }
#splitter:hover, #splitter.drag { background: var(--accent-soft); }
#inspector {
  width: 420px; flex: none; display: flex; flex-direction: column; background: var(--panel); min-height: 0; min-width: 260px;
}
.details { flex: 1 1 50%; overflow: auto; padding: 14px 16px 24px; min-height: 120px; }
.placeholder { color: var(--muted); padding-top: 30px; text-align: center; }
.placeholder h3 { color: var(--text); margin: 0 0 6px; font-weight: 600; }
.details h2 { margin: 0; font: 650 17px/1.3 var(--mono); word-break: break-word; letter-spacing: -0.01em; }
.details .kicker { font: 600 13px/1.3 var(--sc); letter-spacing: .03em; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; }
.details .sub { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-word; }
.details h4 { margin: 18px 0 6px; font: 650 14px/1.3 var(--sc); letter-spacing: .02em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.details h4 .n { font-weight: 500; color: var(--muted); background: var(--panel-2); padding: 0 6px; border-radius: 999px; letter-spacing: 0; }
.badge { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--panel-2); color: var(--muted); text-transform: none; letter-spacing: 0; }
.badge.exp { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.ext { background: color-mix(in srgb, var(--c4) 16%, transparent); color: var(--c4); }
.badge.err { background: var(--err-soft); color: var(--err); }
.doc { margin-top: 10px; padding: 8px 10px; background: var(--panel-2); border-radius: 6px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.doc code { font-family: var(--mono); font-size: 11.5px; }
.doc pre { margin: 6px 0; white-space: pre-wrap; font: 11.5px/1.4 var(--mono); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: baseline; gap: 8px; padding: 3px 6px; border-radius: 5px; cursor: pointer; min-width: 0; }
.list li:hover { background: var(--panel-2); }
.list li .nm { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li .meta { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; font-family: var(--mono); flex: none; }
.list li .ico { align-self: center; }
.method { border: 1px solid var(--line); border-radius: 7px; margin-bottom: 6px; overflow: hidden; }
.method .sig { font: 12px/1.45 var(--mono); padding: 6px 9px; background: var(--src-bg); white-space: pre-wrap; word-break: break-word; cursor: pointer; }
.method .sig:hover { background: var(--panel-2); }
.method .mfoot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 4px 9px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.chip { display: inline-block; font: 11px var(--mono); padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.chip.plain { background: var(--panel-2); color: var(--muted); cursor: default; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
table.fields { width: 100%; border-collapse: collapse; font-size: 12px; }
table.fields td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fields td:first-child { font-family: var(--mono); white-space: nowrap; }
table.fields td.ty { font-family: var(--mono); color: var(--hl-type); word-break: break-word; }
table.fields th { text-align: left; font: 600 11.5px var(--sans); color: var(--muted); padding: 2px 6px; border-bottom: 1px solid var(--line-strong); }
table.fields td.df { font-family: var(--mono); color: var(--muted); word-break: break-word; }
table.fields tr.hasnote td { border-bottom: 0; padding-bottom: 0; }
table.fields tr.fnote td { font: 13px/1.35 var(--sans); color: var(--text); padding: 0 6px 5px 18px; }
table.fields tr.fnote code { font: 11.5px var(--mono); }
table.fields .link { color: inherit; text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); }
.grp { margin: 6px 0 2px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.more { font-size: 12px; color: var(--accent); cursor: pointer; padding: 3px 6px; }
.diag { padding: 6px 8px; border-left: 3px solid var(--err); background: var(--err-soft); border-radius: 4px; margin-bottom: 6px; cursor: pointer; font-size: 12px; }
.diag .loc { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---- source pane */
.srcpane { flex: 1 1 50%; display: flex; flex-direction: column; border-top: 1px solid var(--line); min-height: 0; }
.srcpane.collapsed { flex: none; }
.srcpane.collapsed .src { display: none; }
.srcpane.collapsed #srctoggle { transform: rotate(-90deg); }
.src-head { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--panel-2); font-size: 12px; min-height: 30px; }
.src-head .spacer { flex: 1; }
.src-head #srcpath { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
button.icon { width: 20px; color: var(--muted); transition: transform .1s; }
button.small { font-size: 11px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--panel); }
.src { flex: 1; margin: 0; overflow: auto; background: var(--src-bg); font: 12px/1.55 var(--mono); tab-size: 4; }
.src code { display: block; padding: 6px 0 40px; counter-reset: ln; }
.src .ln { display: block; padding-right: 12px; white-space: pre; }
.src .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 4.2em; padding-right: 1em; text-align: right; color: var(--muted); opacity: .6; user-select: none; }
.src .ln.hl { background: var(--src-hl); }
.src .ln.hl::before { color: var(--hit); opacity: 1; }
.src .ln.focus { box-shadow: inset 3px 0 var(--hit); }
.src .ln.err { background: var(--err-soft); }
.hljs-keyword, .hljs-built_in.hljs-keyword { color: var(--hl-kw); font-weight: 600; }
.hljs-string, .hljs-regexp { color: var(--hl-str); }
.hljs-number, .hljs-literal { color: var(--hl-num); }
.hljs-comment { color: var(--hl-com); font-style: italic; }
.hljs-title, .hljs-title.function_ { color: var(--hl-fn); }
.hljs-type, .hljs-built_in { color: var(--hl-type); }
.hljs-meta, .hljs-symbol { color: var(--hl-meta); }
.hljs-subst { color: var(--text); }
.src a.def { color: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: 3px; cursor: pointer; }

/* ---- palette */
.palette { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.28); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.palette-box { width: min(640px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.palette input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; font-size: 15px; }
.palette ul { list-style: none; margin: 0; padding: 4px; max-height: 52vh; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.palette li.on { background: var(--accent-soft); }
.palette li .nm { font-family: var(--mono); font-size: 13px; }
.palette li .nm mark { background: none; color: var(--accent); font-weight: 700; }
.palette li .meta { margin-left: auto; color: var(--muted); font-size: 11.5px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.palette-foot { padding: 6px 14px; border-top: 1px solid var(--line); font-size: 11px; }

.toast {
  position: fixed; z-index: 60; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 80vw;
}

@media (max-width: 900px) {
  #sidebar { display: none; }
  #inspector { width: 320px; }
  .search span { display: none; }
}

/* dispatch table */
.dtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.dtable { border-collapse: collapse; font: 11px var(--mono); width: max-content; min-width: 100%; }
.dtable th, .dtable td { padding: 3px 7px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
.dtable thead th { background: var(--panel-2); font-weight: 600; position: sticky; top: 0; }
.dtable thead th.abs { font-style: italic; }
.dtable thead th.cur, .dtable td.cur { background: var(--accent-soft); }
.dtable th.fnh { background: var(--panel); font-weight: 600; position: sticky; left: 0; }
.dtable td.hit { background: color-mix(in srgb, var(--ok) 8%, transparent); }
.dtable td.up { color: var(--muted); text-align: center; }
.dtable td.nil { color: var(--line-strong); text-align: center; }
.dtable td.miss { color: var(--err); background: var(--err-soft); font-size: 10px; text-align: center; }

/* math in docstrings */
.doc .katex { white-space: nowrap; font-size: 1.06em; }
.doc .mathblock { white-space: normal; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.doc .mathblock .katex-display { margin: 0.4em 0; }
.cv-tip .katex { font-size: 1em; }
.dtable .dx { display: block; color: var(--muted); font-size: 10px; }
.dtt { margin: 0 0 6px; }

/* hidden nodes: top-bar button + searchable menu, and the hide button over graph nodes */
.hiddenbtn { height: 28px; min-width: 28px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.hiddenbtn.on { color: var(--text); }
.hiddenbtn .n { font: 600 11px var(--mono); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 6px; }
.hiddenbtn:hover { border-color: var(--line-strong); }
.hiddenmenu {
  position: fixed; top: 50px; right: 14px; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 560px); z-index: 60;
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22); overflow: hidden;
}
.hid-head { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 4px; }
.hid-head b { font: 650 15px var(--sc); }
.hid-head .muted { font-size: 12px; }
.hiddenmenu input { margin: 6px 12px 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); outline: none; }
.hiddenmenu input:focus { border-color: var(--accent); }
#hidlist { list-style: none; margin: 0; padding: 0 6px 6px; overflow: auto; flex: 1; }
#hidlist li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
#hidlist li:hover { background: var(--accent-soft); }
#hidlist li .hk { width: 16px; text-align: center; color: var(--muted); font-size: 12px; flex: none; }
#hidlist li .nm { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#hidlist li .meta { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
#hidlist li .sh { color: var(--accent); opacity: 0; font-size: 12px; flex: none; }
#hidlist li:hover .sh { opacity: 1; }
#hidlist li.empty { cursor: default; color: var(--muted); font-size: 13px; }
#hidlist li.empty:hover { background: none; }
.hid-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel-2); }
.hid-foot button { font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); }
.hid-foot button:disabled { opacity: .45; cursor: default; }
.nodehide {
  position: absolute; z-index: 7; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.nodehide:hover { color: var(--err); border-color: var(--err); }
body.view-canvas .nodehide { display: none; }
