/* WorldWatch — dark blueprint terminal.
   Near-black grainy surfaces, dashed construction lines, square corner marks,
   one blue-violet glow, mono labels, sharp corners. */
:root {
  --bg: #0a0a0b;
  --bg1: #0f0f10;
  --bg2: #141416;
  --line: #222225;
  --line2: #2e2e33;
  --guide: rgba(255, 255, 255, 0.16);
  --text: #ececec;
  --text2: #b9b9bf;
  --muted: #85858c;
  --dim: #55555c;
  --blue: #4f8dff;
  --violet: #8f7dff;
  --cyan: #8fe8f0;
  --sky: #6ea1e8;
  --red: #ff6b5f;
  --amber: #f2b552;
  --green: #5fd39a;
  --side: 232px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; opacity: .055; mix-blend-mode: overlay; }

/* ---------------------------------------------------------------- sidebar */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20;
  display: flex; flex-direction: column; padding: 34px 28px 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0c0d, #0a0a0b);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mark { width: 40px; height: 40px; display: block; margin: -7px -4px -7px -6px; }
.mark.big { width: 120px; height: 120px; margin: -26px 0 0 -12px; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 56px; }
.nav a {
  position: relative; color: var(--muted); font-size: 15px; padding: 3px 0; transition: color .2s;
}
.nav a::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  background: var(--text); transform: scale(0); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.nav a:hover { color: var(--text2); }
.nav a.on { color: var(--text); }
.nav a.on::before { transform: scale(1); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.tick { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; border-top: 1px dashed var(--line2); padding-top: 16px; }
.tick .k { color: var(--dim); font: 11px "Geist Mono", monospace; letter-spacing: .08em; grid-column: 1 / -1; }
.tick .v { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.tick .c { font-size: 12px; align-self: end; padding-bottom: 4px; }
.up { color: var(--green); }
.down { color: var(--red); }
.live { color: var(--dim); font-size: 11px; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.live i { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------------------------------------------------------------- layout */
.main { margin-left: var(--side); min-width: 0; }
.sec { padding: 120px clamp(24px, 6vw, 96px) 40px; max-width: 1360px; margin: 0 auto; }
.sh {
  display: flex; align-items: baseline; gap: 22px; padding-bottom: 26px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.sh .idx { color: var(--dim); font-size: 13px; }
.sh h2 { margin: 0; font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.sh .sl { color: var(--dim); font-weight: 300; margin: 0 4px; }
.acc { color: var(--sky); }
.sub-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 46px 0 16px; }
.sub-h h3, .chart-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.fine { color: var(--dim); font-size: 12px; margin: 12px 0 0; line-height: 1.6; }
.fine a, .body a { color: var(--text2); border-bottom: 1px dashed var(--line2); }
.center { text-align: center; }
.body { color: var(--muted); font-size: 15px; max-width: 46ch; }
.body b { color: var(--text); font-weight: 500; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s; }
.rv.in { opacity: 1; transform: none; filter: none; }
.static { scroll-behavior: auto; }
.static .rv { transition: none; opacity: 1; transform: none; filter: none; }
.static .hero { min-height: 0; }

/* ---------------------------------------------------------------- frames (blueprint) */
.frame { position: relative; border: 1px solid var(--line); background: var(--bg1); }
.cm { position: absolute; width: 7px; height: 7px; background: #8a8a90; z-index: 2; }
.cm.tl { left: -4px; top: -4px; } .cm.tr { right: -4px; top: -4px; }
.cm.bl { left: -4px; bottom: -4px; } .cm.br { right: -4px; bottom: -4px; }
.frame::before, .frame::after {
  content: ""; position: absolute; pointer-events: none; border-color: var(--guide); border-style: dashed; border-width: 0;
}
.frame::before { left: -60px; right: -60px; top: -1px; bottom: -1px; border-top-width: 1px; border-bottom-width: 1px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
          mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
.frame::after { top: -60px; bottom: -60px; left: -1px; right: -1px; border-left-width: 1px; border-right-width: 1px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
          mask: linear-gradient(180deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
.frame-label { position: absolute; left: 18px; top: 14px; font-size: 10.5px; letter-spacing: .1em; color: var(--dim); z-index: 2; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.ca { display: inline-flex; align-items: stretch; border: 1px solid var(--line2); background: var(--bg1); font-size: 12px; margin-bottom: 40px; max-width: 100%; }
.ca > * { display: flex; align-items: center; padding: 8px 12px; }
.ca-k { color: var(--dim); letter-spacing: .1em; border-right: 1px solid var(--line2); white-space: nowrap; }
.ca-v { color: var(--text); letter-spacing: .02em; min-width: 0; overflow: hidden; }
.ca-v > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-v .short { display: none; }
.ca > .ca-k, .ca > .ca-btn { flex: none; }
/* switch to the short address whenever the hero column is too narrow for the full one */
.hero { container-type: inline-size; }
@container (max-width: 860px) {
  .ca-v .full { display: none; }
  .ca-v .short { display: inline; }
}
.ca-btn { gap: 7px; color: var(--muted); border-left: 1px solid var(--line2); letter-spacing: .08em; font-size: 11px; white-space: nowrap; transition: color .15s, background .15s; }
.ca-btn:hover { color: var(--text); background: var(--bg2); }
.ca-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ca-btn.ok { color: var(--green); }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.h1 { font-weight: 500; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 0; max-width: 20ch; }
/* the headline's tight tracking glues digits together (17.7) */
.h1-num { letter-spacing: 0.01em; margin-right: 0.04em; }
.grad {
  background: linear-gradient(90deg, #f4f4f4 0%, #d6f6f9 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 22px 0 0; line-height: 1.55; }
.h1-x { font-size: clamp(34px, 4.4vw, 62px); max-width: 24ch; }
.hero .cmd-zone { margin-top: 44px; }
.x-embed { width: 100%; text-align: left; margin-top: 56px; scroll-margin-top: 24px; }
.x-embed .x-crumbs { margin-bottom: 22px; }
.hero .features { margin-top: 90px; }

.cmd-zone { position: relative; width: min(620px, 100%); margin: 64px 0 0; }
.cmd-glow {
  position: absolute; left: 4%; right: 4%; top: -60%; bottom: -60%; pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(79, 141, 255, .55), transparent 70%),
    radial-gradient(60% 70% at 50% 75%, rgba(143, 125, 255, .35), transparent 75%);
  filter: blur(28px);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .7; transform: scaleX(1.06); } }
.guides i { position: absolute; border-color: var(--guide); border-style: dashed; border-width: 0; pointer-events: none; }
.guides .gv { top: -110px; bottom: -110px; border-left-width: 1px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); mask: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); }
.guides .gv.l { left: 0; } .guides .gv.r { right: 0; }
.guides .gh { left: -90px; right: -90px; border-top-width: 1px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.guides .gh.t { top: 0; } .guides .gh.b { top: 50px; }
.cmd {
  position: relative; display: flex; align-items: center; height: 50px;
  background: #0d0d0e; border: 1px solid #8fb4ff; box-shadow: 0 0 0 1px rgba(143, 180, 255, .15), 0 0 24px rgba(79, 141, 255, .35);
}
.cmd .ic { width: 18px; height: 18px; margin: 0 12px 0 16px; fill: none; stroke: var(--text2); stroke-width: 1.8; flex: none; }
.cmd input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.cmd input::placeholder { color: var(--muted); }
.cmd .go { width: 40px; height: 40px; margin-right: 4px; background: #ececec; display: grid; place-items: center; transition: background .15s; }
.cmd .go:hover { background: #fff; }
.cmd .go svg { width: 18px; height: 18px; fill: none; stroke: #0a0a0b; stroke-width: 1.8; }
.cmd-hint { margin-top: 26px; font-size: 12px; color: var(--dim); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cmd-hint button { color: var(--muted); border: 1px dashed var(--line2); padding: 3px 9px; transition: color .15s, border-color .15s; }
.cmd-hint button:hover { color: var(--text); border-color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; max-width: 1120px; margin-top: 110px; }
.feat {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 28px;
  background: linear-gradient(180deg, #0b0b0c 0%, #151517 100%);
  border-bottom: 1px solid #d8d8d8;
}
.fic { width: 46px; height: 46px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* animated feature icons */
.fic g, .fic path, .fic circle, .fic rect { transform-box: view-box; }
.ic-eye .iris { animation: look 7s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes look {
  0%, 12% { transform: translate(0, 0); } 18%, 34% { transform: translate(-5px, -1px); }
  40%, 58% { transform: translate(5px, 1px); } 64%, 74% { transform: translate(2px, -2.5px); } 80%, 100% { transform: translate(0, 0); }
}
.ic-lock .shackle { stroke-linecap: butt; transform-origin: 16px 22px; animation: unlock 4.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.ic-lock .hole { animation: hole 4.4s infinite; }
@keyframes unlock {
  /* swings open on the left leg, which stays in the body; only the right leg lifts out */
  0%, 18% { transform: rotate(0); }
  34%, 64% { transform: rotate(-30deg); }
  80%, 100% { transform: rotate(0); }
}
}
@keyframes hole { 0%, 79% { stroke: currentColor; } 82% { stroke: var(--cyan); } 92%, 100% { stroke: currentColor; } }
.ic-flow .w1 { animation: wave 2.4s linear infinite; }
.ic-flow .w2 { animation: wave 3.4s linear infinite reverse; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(24px); } }
.ic-flow .arrow { animation: bob 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2.5px); } 50% { transform: translateY(1.5px); } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ic-radar .sweep { transform-origin: 24px 24px; animation: sweep 3s linear infinite; }
.ic-radar .beam { fill: currentColor; stroke: none; opacity: .14; }
.ic-radar .blip { fill: currentColor; stroke: none; transform-origin: 31px 19px; animation: blip 3s linear infinite; }
.ic-radar .b2 { transform-origin: 15px 30px; animation-delay: -1.41s; }
@keyframes blip { 0% { opacity: .15; transform: scale(1); } 3% { opacity: 1; transform: scale(1.7); } 12% { transform: scale(1); } 55%, 100% { opacity: .15; } }
.fic { color: #b5b5ba; transition: color .3s; }
.feat:hover .fic { color: #ececec; }
.fv { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; margin-top: 26px; }
.fk { color: var(--text2); font-size: 13.5px; font-weight: 500; margin-top: 4px; }

/* ---------------------------------------------------------------- humanity */
.hum { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.globe-frame { aspect-ratio: 1; overflow: visible; background: radial-gradient(70% 70% at 50% 50%, #111216, #0b0b0c); }
.globe-glow {
  position: absolute; inset: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(79, 141, 255, .45), rgba(143, 125, 255, .18) 55%, transparent 72%);
  filter: blur(40px);
}
#globe { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.hud { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); line-height: 1.75; pointer-events: none; }
.hud span { display: inline-block; min-width: 92px; color: var(--dim); }
.hud .ok { color: var(--green); font-weight: 500; }
.globe-frame { background: radial-gradient(70% 70% at 50% 50%, #101012, #0a0a0b); }
.globe-tip {
  position: absolute; pointer-events: none; padding: 6px 10px; z-index: 3;
  background: #0d0d0e; border: 1px solid var(--line2); font-size: 11.5px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -140%); transition: opacity .12s;
}
.label { color: var(--dim); font-size: 11px; letter-spacing: .12em; }
.giant {
  font-size: clamp(44px, 5.6vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 14px;
  background: linear-gradient(180deg, #ffffff 20%, #9aa3b5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.meter { margin: 34px 0 30px; }
.meter-track { position: relative; height: 12px; border: 1px solid var(--line2); background: var(--bg1); }
.meter-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan)); box-shadow: 0 0 18px rgba(79, 141, 255, .8); transition: width 2s cubic-bezier(.16, 1, .3, 1); }
.meter-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line2) calc(10% - 1px) 10%); }
.meter-legend { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; letter-spacing: .06em; margin-top: 10px; }
.meter-legend span:first-child { color: var(--cyan); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 0 26px; border-top: 1px dashed var(--line2); border-bottom: 1px dashed var(--line2); }
.kv div { padding: 16px 0 14px; }
.kv div:nth-child(even) { padding-left: 18px; border-left: 1px dashed var(--line2); }
.kv div:nth-child(n+3) { border-top: 1px dashed var(--line2); }
.live-label { display: flex; align-items: center; gap: 9px; }
.live-label i { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.8s steps(2) infinite; }
.chain-line { color: var(--muted); font-size: 12px; margin-top: 14px; letter-spacing: .02em; }
.chain-line a { color: var(--text2); border-bottom: 1px dashed var(--line2); }
.chain-line b { color: var(--green); font-weight: 500; }
.giant.bump { animation: bump 1.2s cubic-bezier(.16, 1, .3, 1); }
@keyframes bump { 0% { filter: drop-shadow(0 0 0 transparent); } 15% { filter: drop-shadow(0 0 18px rgba(95, 211, 154, .7)); } 100% { filter: drop-shadow(0 0 0 transparent); } }
.kv dt { color: var(--dim); font-size: 10.5px; letter-spacing: .1em; }
.kv dd { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.orb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); max-height: 330px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.orb-item {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s;
}
.orb-item[hidden] { display: none; }
.cfilter { display: flex; flex-wrap: wrap; border: 1px solid var(--line2); }
.cfilter button { padding: 6px 12px; font-size: 12px; letter-spacing: .06em; color: var(--muted); transition: color .15s, background .15s; }
.cfilter button + button { border-left: 1px solid var(--line2); }
.cfilter button span { color: var(--dim); margin-left: 4px; }
.cfilter button:hover { color: var(--text); }
.cfilter button.on { background: var(--text); color: var(--bg); }
.cfilter button.on span { color: #55555c; }
.orb-item:hover { background: var(--bg2); }
.orb-item .cc { font-size: 10.5px; color: var(--dim); border: 1px solid var(--line2); padding: 1px 5px; flex: none; }
.orb-item .nm { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orb-item .ct { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 64px; }
.card { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
.card .k { color: var(--dim); font: 10.5px "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.card .k i { width: 5px; height: 5px; background: var(--c, var(--muted)); box-shadow: 0 0 8px var(--c, transparent); flex: none; }
.card .v { font: 500 26px/1.15 "Geist Mono", monospace; letter-spacing: -0.03em; margin-top: 16px; }
.card .s { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card.hot { --c: var(--red); } .card.warm { --c: var(--amber); } .card.cool { --c: var(--blue); } .card.good { --c: var(--green); }

/* ---------------------------------------------------------------- unlocks */
.tree-frame { padding: 56px 24px 26px; margin-bottom: 64px; }
#tree { width: 100%; height: auto; display: block; overflow: visible; }
#tree .wire { fill: none; stroke-width: 1.4; }
#tree .node-box { fill: #0d0d0e; stroke: var(--line2); transition: stroke .2s, fill .2s; }
#tree { touch-action: none; user-select: none; -webkit-user-select: none; }
#tree .tnode { cursor: grab; }
#tree .tnode:hover .node-box { stroke: #55555c; }
#tree .tnode.dragging { cursor: grabbing; }
#tree .tnode.dragging .node-box { stroke: var(--sky); fill: #101214; filter: drop-shadow(0 0 14px rgba(110, 161, 232, .25)); }
.tree-hint { position: absolute; right: 18px; top: 14px; font-size: 10.5px; letter-spacing: .1em; color: var(--dim); z-index: 2; }
#tree text { font-family: "Geist Mono", monospace; }
#tree .t-big { fill: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
#tree .t-sm { fill: var(--muted); font-size: 11px; letter-spacing: .08em; }
#tree .t-pct { fill: var(--sky); font-size: 12px; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1); }
.in .draw { stroke-dashoffset: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chart-frame { padding: 20px 20px 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.chart-head .fine { margin: 0; }
.chart { position: relative; height: 260px; }
.lg { border-bottom: 1px dashed var(--line2); transition: border-color .2s; }
.lg:hover { border-color: currentColor; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart-tip { position: absolute; top: 6px; pointer-events: none; font: 11.5px "Geist Mono", monospace; padding: 7px 10px; background: #0d0d0e; border: 1px solid var(--line2); white-space: nowrap; opacity: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font: 10.5px "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px dashed var(--line); }
.table tr:hover td { background: var(--bg1); }
.table .num { text-align: right; }
.table a { color: var(--sky); }
.bar { display: inline-block; height: 4px; background: var(--amber); vertical-align: middle; margin-right: 12px; box-shadow: 0 0 8px rgba(242, 181, 82, .5); }

/* ---------------------------------------------------------------- whales */
.seg { display: flex; border: 1px solid var(--line2); }
.seg button { padding: 7px 13px; font-size: 12.5px; color: var(--muted); transition: color .15s, background .15s; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: var(--bg); }
.query-pill { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text2); border: 1px dashed var(--blue); padding: 5px 10px; margin-bottom: 12px; }
.query-pill[hidden] { display: none; }
.query-pill button { color: var(--muted); }
.feed { border-top: 1px solid var(--line); }
.move {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px 80px; gap: 18px; align-items: center;
  padding: 14px 6px; border-bottom: 1px dashed var(--line); transition: background .15s;
}
.move:hover { background: var(--bg1); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 10.5px "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.tag i { width: 6px; height: 6px; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.t-sell { --c: var(--red); } .t-insider { --c: var(--amber); } .t-buy { --c: var(--green); } .t-mm { --c: var(--violet); } .t-neutral { --c: var(--dim); }
.route { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.route .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; color: var(--muted); }
.route .who.ex { color: var(--text); }
.route .who:hover { color: var(--cyan); }
.route .arrow { color: var(--dim); flex: none; }
.amt { text-align: right; }
.amt .w { font-size: 14px; }
.amt .u { color: var(--dim); font-size: 12px; }
.more { display: flex; justify-content: center; gap: 10px; width: 100%; padding: 16px; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .15s, background .15s; }
.more:hover { color: var(--text); background: var(--bg1); }
.when { text-align: right; color: var(--dim); font-size: 12px; }
.when:hover { color: var(--text); }

/* ---------------------------------------------------------------- radar */
.map-frame { padding: 54px 18px 18px; }
.legend { position: absolute; right: 18px; top: 14px; display: flex; gap: 16px; font-size: 10.5px; letter-spacing: .1em; color: var(--dim); z-index: 2; }
.sq { display: inline-block; width: 7px; height: 7px; margin-right: 7px; }
.sq.restricted { background: var(--red); } .sq.scrutiny { background: var(--amber); } .sq.operating { background: var(--green); }
#map { width: 100%; height: auto; display: block; }
#map .grat { stroke: rgba(255, 255, 255, .06); stroke-dasharray: 2 4; fill: none; }
#map .land { fill: #1b1b1e; stroke: #0f0f10; stroke-width: .6; transition: fill .25s, opacity .2s; }
#map .land.restricted { fill: var(--red); }
#map .land.scrutiny { fill: var(--amber); }
#map .land.operating { fill: #3aa877; }
#map .has { cursor: pointer; }
#map .has:hover { opacity: .78; }
#map .sel { stroke-width: 1.6; stroke-linejoin: round; transition: filter .3s, stroke .3s; }
#map .land.restricted.sel { stroke: #ff8a80; filter: drop-shadow(0 0 3px rgba(255, 107, 95, .95)) drop-shadow(0 0 10px rgba(255, 107, 95, .6)); }
#map .land.scrutiny.sel { stroke: #ffcd7a; filter: drop-shadow(0 0 3px rgba(242, 181, 82, .95)) drop-shadow(0 0 10px rgba(242, 181, 82, .6)); }
#map .land.operating.sel { stroke: #7fe6b0; filter: drop-shadow(0 0 3px rgba(95, 211, 154, .95)) drop-shadow(0 0 10px rgba(95, 211, 154, .6)); }
#map .pulse { fill: none; stroke: var(--red); stroke-width: 1.2; animation: ping 2.4s cubic-bezier(.16, 1, .3, 1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.radar-low { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; margin-top: 40px; }
.radar-low .sub-h { margin-top: 0; }
.country-card { border: 1px solid var(--line); background: var(--bg1); padding: 20px 22px; min-height: 120px; }
.country-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ev { font-size: 13.5px; padding: 10px 0; border-top: 1px dashed var(--line); color: var(--text2); }
.ev:first-of-type { border-top: 0; }
.ev a:hover { color: var(--cyan); }
.ev .meta { color: var(--dim); font: 11px "Geist Mono", monospace; margin-top: 3px; }
.board { display: flex; flex-wrap: wrap; margin-top: 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.board button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; color: var(--text2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.board button:hover, .board button.on { background: var(--bg2); color: var(--text); }
.board i { width: 6px; height: 6px; }
.news { border-top: 1px solid var(--line); max-height: 640px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.news-item { padding: 14px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px; line-height: 1.45; }
.news-item a:hover { color: var(--cyan); }
.news-item .meta { margin-top: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--dim); font: 11px "Geist Mono", monospace; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; margin-top: 140px; border-top: 1px solid var(--line); overflow: hidden; padding-bottom: 56px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding: 64px clamp(24px, 6vw, 96px) 0; max-width: 1360px; margin: 0 auto; }
.foot-cols h4 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.foot-cols a, .foot-cols span { display: block; color: var(--muted); font-size: 15px; padding: 4px 0; }
.foot-cols a:hover { color: var(--text); }
.foot-tag { color: var(--dim); font-size: 13.5px; line-height: 1.6; max-width: 30ch; margin: 18px 0 0; }
.foot-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 11.5px; padding: 64px clamp(24px, 6vw, 96px) 0; max-width: 1360px; margin: 0 auto; }
.melt { position: relative; height: clamp(180px, 22vw, 340px); margin-top: 30px; }
.melt canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#meltDrip { filter: blur(5px); opacity: .9; }
.melt::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: #0d0d0e; border: 1px solid var(--line2); padding: 10px 16px; font-size: 12.5px; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.stale { color: var(--amber); }
.skeleton { color: var(--dim); padding: 36px 0; text-align: center; font: 12px "Geist Mono", monospace; letter-spacing: .06em; }
.skeleton::after { content: "_"; animation: blink 1s steps(2) infinite; }

/* ---------------------------------------------------------------- growth */
.squares-frame { padding: 54px 22px 22px; background: radial-gradient(60% 80% at 20% 30%, #101218, #0b0b0c 70%); overflow: hidden; }
.squares-frame canvas { display: block; width: 100%; }
.sq-replay { position: absolute; right: 18px; top: 10px; z-index: 2; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); border: 1px dashed var(--line2); padding: 3px 9px; transition: color .15s, border-color .15s; }
.sq-replay:hover { color: var(--text); border-color: var(--muted); }
.sq-read { position: absolute; right: 22px; bottom: 22px; text-align: right; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, .92) 22%); padding: 14px 4px 10px 70px; }
.sq-date { color: var(--sky); font-size: 12px; letter-spacing: .12em; }
.sq-count { font-size: clamp(30px, 4.2vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.sq-sub { color: var(--dim); font-size: 10.5px; letter-spacing: .1em; margin-top: 6px; text-transform: uppercase; }
.sq-tip { z-index: 3; top: 0; left: 0; transition: opacity .15s; }
.growth-cards { margin: 28px 0 28px; }
#growth .grid-2 { row-gap: 28px; }
#growthNote { margin-top: 40px; }
@media (max-width: 860px) {
  .squares-frame { padding: 44px 10px 12px; }
  .sq-read { position: static; text-align: left; background: none; padding: 14px 4px 0; }
  .sq-replay { top: 8px; right: 10px; }
  .sq-each { display: none; }
}

/* ---------------------------------------------------------------- explorer */
.x-page .tick .c { grid-column: 1 / -1; padding: 0; color: var(--dim); }
.x-sec { padding-top: 64px; }
.x-search { max-width: 760px; margin: 0 0 18px; }
.x-crumbs { font-size: 11px; letter-spacing: .1em; color: var(--dim); margin: 0 0 30px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.x-crumbs a { color: var(--muted); } .x-crumbs a:hover { color: var(--text); }
.x-crumbs .sep { color: var(--line2); }
.dim { color: var(--dim); }
.x-a { color: var(--sky); display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; }
.x-a:hover { color: #a9c6f2; }
.x-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-k { width: 7px; height: 7px; flex: none; border: 1px solid var(--muted); }
.x-k.eoa { border-radius: 50%; } .x-k.ct { background: var(--line2); border-color: var(--line2); }
.x-k.safe { border-color: var(--violet); background: rgba(143, 125, 255, .35); box-shadow: 0 0 6px rgba(143, 125, 255, .6); }
.x-copy { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 8px; color: var(--muted); vertical-align: middle; }
.x-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.x-copy:hover { color: var(--text); }
.x-frame { margin-bottom: 22px; }
.x-frame:has(> .x-fh) { padding-top: 40px; }
.x-frame.x-pad { padding: 46px 22px 18px; }
.x-fh { position: absolute; left: 18px; top: 14px; font-size: 10.5px; letter-spacing: .1em; color: var(--dim); display: flex; gap: 10px; align-items: center; z-index: 2; }
.x-fh .x-a { letter-spacing: 0; font-size: 12px; }
.x-pulse { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.8s steps(2) infinite; }
.x-stats { margin-bottom: 28px; }
.x-live .x-frame { padding-top: 40px; margin: 0; }
.x-list { display: flex; flex-direction: column; }
.x-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.x-row .dim { font-size: 11.5px; margin-top: 2px; }
.x-row.new { animation: xIn 1.4s cubic-bezier(.16, 1, .3, 1); }
@keyframes xIn { from { background: rgba(110, 161, 232, .14); transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; transform: none; } to { background: transparent; } }
.x-ico { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--muted); font-size: 10.5px; overflow: hidden; }
.x-ico img { width: 100%; height: 100%; object-fit: cover; }
.x-main, .x-mid { min-width: 0; }
.x-main > *, .x-mid > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-end-c { text-align: right; font-size: 12px; }
.x-hit:hover { background: var(--bg2); }
.x-m { display: inline-block; font-size: 11px; padding: 2px 7px; border: 1px solid var(--line2); color: var(--text2); background: var(--bg2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.x-head { margin: 0 0 28px; }
.x-title { font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.03em; margin: 10px 0 8px; line-height: 1.1; overflow-wrap: anywhere; }
.x-hash { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.x-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.x-tag { font: 10.5px "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px dashed var(--line2); color: var(--muted); margin-left: 6px; }
.x-tags .x-tag { margin: 0; }
.x-tag.sky { color: #b8b0ff; border-color: rgba(143, 125, 255, .5); }
.x-tag.ok { color: var(--green); border-color: rgba(95, 211, 154, .4); }
.x-tag.bad { color: var(--red); border-color: rgba(255, 107, 95, .5); }
.x-st { font: 10.5px "Geist Mono", monospace; letter-spacing: .08em; padding: 2px 7px; margin-left: 6px; border: 1px solid; }
.x-st.ok { color: var(--green); border-color: rgba(95, 211, 154, .4); } .x-st.bad { color: var(--red); border-color: rgba(255, 107, 95, .5); } .x-st.pend { color: var(--amber); border-color: rgba(242, 181, 82, .5); }
.x-bad { display: inline-block; width: 6px; height: 6px; background: var(--red); margin-right: 8px; vertical-align: middle; }
.x-revert { color: var(--red); font-size: 12px; margin-top: 10px; }
.x-nav { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; }
.x-cards { margin-bottom: 28px; }
.x-kv { margin: 0; display: grid; }
.x-kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-top: 1px dashed var(--line); align-items: baseline; }
.x-kv div:first-child { border-top: 0; }
.x-kv dt { color: var(--dim); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.x-kv dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.x-detail { margin-bottom: 8px; }
.x-detail .x-frame { margin: 0; }
.x-scroll { overflow-x: auto; }
.x-table { font-size: 13px; min-width: 760px; }
.x-table td { padding: 11px 12px; white-space: nowrap; }
.x-table td .x-a { max-width: 220px; }
.x-table .x-usd { font-size: 11px; }
.x-dir { font: 10px "Geist Mono", monospace; letter-spacing: .06em; padding: 2px 6px; border: 1px solid; }
.x-dir.in { color: var(--green); border-color: rgba(95, 211, 154, .4); } .x-dir.out { color: var(--amber); border-color: rgba(242, 181, 82, .45); }
.x-arrow { color: var(--dim); }
.x-tok img { width: 16px; height: 16px; border-radius: 50%; }
.x-tabs { width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.x-tabs button { white-space: nowrap; }
.x-tabs button span { color: var(--dim); margin-left: 4px; font-size: 11px; }
.x-tabs button.on span { color: #55555c; }
.x-tabs-host { margin-top: 40px; }
.x-more { display: block; margin: 18px auto 0; font-size: 11px; letter-spacing: .1em; color: var(--muted); border: 1px dashed var(--line2); padding: 8px 16px; }
.x-more:hover { color: var(--text); border-color: var(--muted); }
.x-end { text-align: center; color: var(--dim); font-size: 10.5px; letter-spacing: .1em; margin-top: 16px; }
.x-empty { color: var(--muted); padding: 40px 20px; text-align: center; font-size: 14px; line-height: 1.8; }
.x-ops { display: flex; flex-direction: column; }
.x-op { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 13.5px; flex-wrap: wrap; }
.x-op:first-child { border-top: 0; }
.x-op .dim { font-size: 11.5px; }
.x-call { color: var(--text2); font-size: 12.5px; margin-bottom: 12px; overflow-wrap: anywhere; }
.x-raw { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; line-height: 1.7; max-height: 220px; overflow-y: auto; }
.x-wrap { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.x-log { margin-bottom: 14px; }
@media (max-width: 860px) {
  .x-sec { padding-top: 40px; }
  .x-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); padding: 10px 12px; gap: 10px; }
  .x-row .x-end-c { display: none; }
  .x-ico { width: 30px; height: 30px; }
  .x-kv div { grid-template-columns: 1fr; gap: 4px; }
  .x-frame.x-pad { padding: 40px 14px 14px; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .hum, .grid-2, .radar-low { grid-template-columns: 1fr; }
  .globe-frame { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .side { position: sticky; top: 0; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(10, 10, 11, .85); backdrop-filter: blur(12px); }
  .logo span { display: none; }
  .nav { flex-direction: row; margin: 0 0 0 14px; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: 13.5px; white-space: nowrap; }
  .nav a::before { left: 50%; top: auto; bottom: -4px; margin-left: -2.5px; }
  .side-foot { margin: 0 0 0 auto; padding-left: 12px; }
  .tick { border: 0; padding: 0; display: block; text-align: right; }
  .tick .k, .tick .c, .live { display: none; }
  .tick .v { font-size: 15px; }
  .sec { padding: 72px 16px 24px; }
  .hero { min-height: auto; padding-top: 64px; }
  .sh { gap: 12px; margin-bottom: 28px; }
  .frame::before, .frame::after, .guides { display: none; }
  .move { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .move .route { grid-column: 1 / -1; order: 3; }
  .move .when { display: none; }
  .kv dd { font-size: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr; padding: 48px 16px 0; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-line { padding: 40px 16px 0; }
  .legend { position: static; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .map-frame { padding-top: 40px; }
  .seg { flex-wrap: wrap; }
  .ca-v .full { display: none; }
  .ca-v .short { display: inline; }
  .ca-btn span { display: none; }
  .ca-btn:last-child span { display: inline; }
  .table th:nth-child(2), .table td:nth-child(2) { display: none; }
  .table td { padding: 12px 8px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat { padding: 24px 10px 20px; }
  .fv { font-size: 20px; margin-top: 16px; }
  .fk { font-size: 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px 14px; }
  .card .v { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ---------------------------------------------------------------- docs (/docs) */
.nav .nav-docs, .nav .d-navdocs { margin-top: 18px; }
.d-sec { padding-top: 96px; }
.d-hero { margin-bottom: 72px; }
.d-h1 { font-size: clamp(34px, 4.4vw, 60px); max-width: 18ch; }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 56px; align-items: start; }
.d-body { min-width: 0; grid-column: 1; grid-row: 1; }
.d-toc { grid-column: 2; grid-row: 1; position: sticky; top: 40px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; border-left: 1px dashed var(--line2); padding-left: 18px; }
.d-toc-h { color: var(--dim); font-size: 10.5px; letter-spacing: .1em; margin-bottom: 12px; }
.d-toc a { position: relative; color: var(--muted); padding: 3px 0; transition: color .15s; }
.d-toc a span { color: var(--dim); margin-right: 10px; }
.d-toc a.sub { padding-left: 26px; font-size: 11.5px; }
.d-toc a:hover { color: var(--text2); }
.d-toc a.on { color: var(--text); }
.d-toc a.on::before { content: ""; position: absolute; left: -21px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.d-part { padding-bottom: 96px; scroll-margin-top: 32px; }
.d-part > .sh { margin-bottom: 32px; }
.d-p { color: var(--text2); font-size: 15px; line-height: 1.65; max-width: 72ch; margin: 0 0 16px; }
.d-p b { color: var(--text); font-weight: 500; }
.d-c, .d-f code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .86em; color: var(--text2); background: var(--bg2); border: 1px solid var(--line2); padding: 0 5px; overflow-wrap: anywhere; }
.d-cards { margin: 24px 0 28px; }
.d-cards .card { transition: background .15s; }
.d-cards .card:hover { background: var(--bg2); }
.d-cards .card .v { font: 500 20px/1.2 "Geist", system-ui, sans-serif; letter-spacing: -0.02em; }
.d-frame { padding: 48px 22px 22px; margin-bottom: 56px; scroll-margin-top: 32px; }
.d-h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.d-entry > .d-p { color: var(--muted); }
.d-kv { margin-top: 18px; }
.d-kv div { grid-template-columns: 190px minmax(0, 1fr); }
.d-kv dd { color: var(--text2); line-height: 1.6; }
.d-meta { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.d-meta span:last-child { color: var(--sky); }
.d-table { margin-bottom: 4px; }
.d-table td { vertical-align: top; color: var(--text2); overflow-wrap: anywhere; }
.d-table td:first-child { color: var(--text); }
.d-table td.mono { font-size: 13px; }
.d-table .num { white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.table.d-table th:nth-child(2), .table.d-table td:nth-child(2) { display: table-cell; }
.d-eps { border-top: 1px solid var(--line); margin-top: 24px; }
.d-ep { padding: 20px 4px 22px; border-bottom: 1px dashed var(--line); }
.d-ep-h { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-ep-h b { color: var(--sky); font-weight: 500; font-size: 11px; letter-spacing: .1em; }
.d-ep-h .x-tag { margin-left: auto; }
.d-ep p { color: var(--muted); font-size: 14px; margin: 8px 0 12px; max-width: 72ch; }
.d-f { display: flex; flex-wrap: wrap; gap: 6px; }
.d-f code { font-size: 11.5px; padding: 2px 7px; color: var(--muted); }
.d-note { border-color: var(--line2); }
.d-note .d-p { margin: 0; max-width: none; }
.d-body a:not(.card):not(.x-a) { color: var(--sky); }
.d-body a:not(.card):not(.x-a):hover { color: #a9c6f2; }
@media (max-width: 1240px) {
  .d-layout { grid-template-columns: 1fr; gap: 0; }
  .d-toc { grid-column: 1; position: static; border: 1px solid var(--line); background: var(--bg1); padding: 18px 20px; margin-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 18px; }
  .d-toc-h { grid-column: 1 / -1; margin-bottom: 6px; }
  .d-toc a.sub { padding-left: 0; }
  .d-toc a.on::before { display: none; }
  .d-body { grid-row: 2; }
}
@media (max-width: 860px) {
  html.d-page { scroll-padding-top: 76px; }
  .nav .nav-docs, .nav .d-navdocs { margin-top: 0; }
  .d-sec { padding-top: 56px; }
  .d-hero { margin-bottom: 40px; }
  .d-part { padding-bottom: 64px; scroll-margin-top: 76px; }
  .d-frame { padding: 42px 16px 16px; scroll-margin-top: 76px; }
  .d-kv div { grid-template-columns: 1fr; }
  .d-table td, .d-table th { padding: 10px 8px; }
  .d-ep-h .x-tag { margin-left: 0; }
}
