/* ════════════════════════════════════════════════════════════════
   explorer.css — Capital Exchange | Bourse block explorer
   Component layer on top of artifacts/style/main.css (link main.css FIRST).
   Reuses main.css :root tokens, .site-header/.brand/.brand-badge + footer.
   Palette + chrome mirror bridge.css so the explorer reads as a sibling app.
   ════════════════════════════════════════════════════════════════ */

:root {
  --gold-dim:  #a8892a;
  --gold-pale: #f0d980;
  --red:       var(--accent);
  --ok:        var(--green);
  --warn:      var(--amber);
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif:     'Lora', Georgia, 'Times New Roman', serif;
  --xp-max:    1120px;
}

/* the explorer is data-dense — tighten the global rhythm a touch */
body { font-size: 13px; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-pale); }

/* ── Header: brand left · search center · badge right ─────────── */
.site-header {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  /* lock the bar to the site-standard height so it doesn't change between the
     home page (header search hidden) and other pages (search shown) */
  min-height: 59px;
}
.site-header .brand { min-width: 0; flex-shrink: 0; font-family: var(--serif); }
.site-header .brand-logo { width: 26px; height: 26px; flex-shrink: 0; align-self: center; object-fit: contain; }
.site-header .brand > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--serif); }
.site-header .brand .suffix { color: var(--text2); font-weight: 500; }
@media (max-width: 720px) { .site-header .brand .suffix { display: none; } }

/* ── Section menu, merged inline into the house header ───────── */
.xp-nav { display: flex; align-items: center; gap: 1px; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.xp-nav::-webkit-scrollbar { height: 0; }
.xp-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text2); padding: 7px 12px; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s, background .15s;
}
.xp-nav a:hover { color: var(--text); background: rgba(212,175,55,.06); }
.xp-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* slim search at the right of the header (hidden on home, which has the hero) */
.hdr-search { flex: 0 1 290px; display: flex; align-items: center; margin-left: auto; position: relative; }
.hdr-search .search { width: 100%; }
.hdr-search.hide { display: none; }
@media (max-width: 600px) { .hdr-search { display: none; } }

.brand-badge .name { letter-spacing: .01em; font-family: var(--serif); }

/* ── Main canvas + atmospheric backdrop (mirrors bourse/bridge) ─ */
.xp-main {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: clamp(20px, 4vw, 34px) 16px clamp(28px, 5vw, 48px);
}
.xp-main::before {
  content: ""; position: absolute; top: -14%; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 760px; max-width: 150vw;
  background: radial-gradient(circle, rgba(212,175,55,.06) 0%, rgba(70,110,165,.05) 42%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.xp-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(140,165,200,.08) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 18%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 18%, #000 35%, transparent 80%);
}
.xp-wrap { position: relative; z-index: 1; width: 100%; max-width: var(--xp-max); }

/* staggered reveal, reused from main.css conventions */
.reveal { opacity: 0; transform: translateY(12px); animation: xprise .6s cubic-bezier(.22,1,.36,1) forwards; }
.reveal.d1{animation-delay:.04s} .reveal.d2{animation-delay:.12s}
.reveal.d3{animation-delay:.20s} .reveal.d4{animation-delay:.28s}
@keyframes xprise { to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){ .reveal{animation:none;opacity:1;transform:none} }

/* ── Hero (home) ──────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 30px; }
.hero-logo { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto 14px;
  filter: drop-shadow(0 4px 18px rgba(212,175,55,.22)); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
  color: var(--text-primary, var(--text)); margin-bottom: 8px;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text2); margin-bottom: 22px;
}
.hero .sub .sep { color: var(--gold); opacity: .5; margin: 0 8px; }

/* ── Search ───────────────────────────────────────────────────── */
.search {
  display: flex; align-items: stretch; width: 100%;
  background: var(--bg2); border: 1px solid var(--border2);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(212,175,55,.08); }
.hero .search { max-width: 720px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: 13px;
  padding: 13px 15px;
}
.hero .search input { padding: 16px 18px; font-size: 14px; }
.search input::placeholder { color: var(--text3); }
.search button {
  background: transparent; border: none; border-left: 1px solid var(--border2);
  color: var(--gold); cursor: pointer; padding: 0 16px; font-size: 15px;
  transition: background .15s, color .15s;
}
.search button:hover { background: rgba(212,175,55,.1); }
.hdr-search .search input { padding: 6px 12px; font-size: 12px; }
.hdr-search .search button { padding: 0 12px; }

/* autocomplete dropdown */
.search-pop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  background: var(--bg2); border: 1px solid var(--border2);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.85);
  max-height: 60vh; overflow-y: auto; display: none;
}
.search-pop.open { display: block; }
.sp-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; cursor: pointer; border-bottom: 1px solid var(--border); }
.sp-item:last-child { border-bottom: none; }
.sp-item:hover, .sp-item.sel { background: var(--bg3); }
.sp-kind { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); padding: 2px 6px; flex-shrink: 0; }
.sp-main { min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sub  { margin-left: auto; color: var(--text2); font-size: 11px; flex-shrink: 0; }
.sp-empty { padding: 14px; text-align: center; color: var(--text2); font-size: 12px; }

/* ── Stat grid (home) ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); margin-bottom: 28px; }
.stat-card { background: var(--bg2); padding: 15px 17px; display: flex; flex-direction: column; gap: 5px; }
.stat-card .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.stat-card .v { font-family: var(--serif); font-size: clamp(18px, 3vw, 23px); font-weight: 700; color: var(--text); line-height: 1; }
.stat-card .v .unit { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text2); margin-left: 4px; }
.stat-card .s { font-size: 11px; color: var(--gold-pale); }

/* ── Panels & sections ────────────────────────────────────────── */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }

.panel { background: var(--bg2); border: 1px solid var(--border); border-top: 1px solid var(--gold); margin-bottom: 18px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.panel-head h2, .panel-head h3 {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--text);
}
.panel-head .more { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.panel-head .more .arrow { transition: transform .2s; display: inline-block; }
.panel-head .more:hover .arrow { transform: translateX(3px); }
.panel-pad { padding: 16px; }

.section-title {
  font-family: var(--serif); font-size: clamp(19px, 3vw, 24px); font-weight: 700;
  color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.section-title .count { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text2);
  letter-spacing: .04em; border: 1px solid var(--border2); padding: 3px 9px; }
/* Contracts verified/unverified/all filter toggle (right of the section title) */
.cfilter { display: inline-flex; gap: 4px; margin-left: auto; }
.cfilter .cf-seg { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text2); border: 1px solid var(--border2); padding: 4px 10px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s; }
.cfilter .cf-seg:hover { color: var(--text); border-color: rgba(63,185,80,.45); }
/* active/toggled segment = the header status-light green, so it stands out and signals
   the other segments are clickable */
.cfilter .cf-seg.active { color: var(--green-text); border-color: rgba(63,185,80,.55);
  background: rgba(63,185,80,.14); }

/* ── Tables ───────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); text-align: left; font-weight: 500;
  padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 12.5px; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg3); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.mono { font-family: var(--mono); }
.table .nowrap { white-space: nowrap; }

/* compact "list card" rows used in the home two-column lists */
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--bg3); }
.feed-ic {
  width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2); background: var(--bg3); color: var(--gold);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
}
/* time chip (home feed): the box shows the relative age instead of a Bk/Tx label */
.feed-ic.feed-time { font-size: 11px; font-weight: 500; color: var(--gold-pale); }
.feed-mid { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feed-mid .l1 { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-mid .l2 { font-size: 11px; color: var(--text2); display: flex; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-end { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.feed-end .val { font-family: var(--mono); font-size: 12px; color: var(--text); }
.feed-end .ago { font-size: 10.5px; color: var(--text3); }

/* ── Pills / links / hashes ───────────────────────────────────── */
.h-addr, .h-tx, .h-block { font-family: var(--mono); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .04em; padding: 2px 8px; border-radius: 2px;
  text-transform: uppercase; white-space: nowrap; border: 1px solid transparent;
}
.tag.ok      { color: var(--green);    background: rgba(63,185,80,.12);  border-color: rgba(63,185,80,.3); }
.tag.err     { color: #e3a59e;         background: rgba(192,57,43,.12);  border-color: rgba(192,57,43,.35); }
.tag.pending { color: var(--gold-pale);background: rgba(212,175,55,.12);  border-color: var(--gold-dim); }
.tag.method  { color: var(--text);     background: var(--bg3);           border-color: var(--border2); text-transform: none; letter-spacing: 0; }
.tag.dim     { color: var(--text2);    background: var(--bg3);           border-color: var(--border); }
.tag.gold    { color: var(--gold);     background: rgba(212,175,55,.1);   border-color: var(--gold-dim); }
.tag.in      { color: var(--green);    background: rgba(63,185,80,.1);    border-color: rgba(63,185,80,.3); }
.tag.out     { color: var(--gold-pale);background: rgba(212,175,55,.1);   border-color: var(--gold-dim); }

.copy { cursor: pointer; color: var(--text3); margin-left: 6px; font-size: 11px; transition: color .15s; user-select: none; }
.copy:hover { color: var(--gold); }

/* deterministic identicon chip from a hash */
.ident { width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ident.lg { width: 30px; height: 30px; border-radius: 4px; }

.label-name { color: var(--gold-pale); }
.muted { color: var(--text2); }
.muted2 { color: var(--text3); }
.mono { font-family: var(--mono); }

/* ── Detail header ────────────────────────────────────────────── */
.detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-head .dh-ic {
  width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dim); background: rgba(212,175,55,.07); color: var(--gold);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
/* the boxed detail-header icon doubles as a Back button on detail pages */
.detail-head .dh-ic.dh-back {
  cursor: pointer; font-size: 24px; font-weight: 400; line-height: 1; user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.detail-head .dh-ic.dh-back:hover { background: rgba(212,175,55,.16); border-color: var(--gold); color: var(--gold-pale); }
.detail-head .dh-ic.dh-back:active { transform: translateY(1px); }
.detail-head .dh-body { min-width: 0; flex: 1; }
.detail-head .dh-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.detail-head .dh-title {
  font-family: var(--mono); font-size: clamp(13px, 2.6vw, 16px); color: var(--text);
  word-break: break-all; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.detail-head .dh-title .name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.detail-head .dh-tags { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }

/* ── Key/value detail rows ────────────────────────────────────── */
.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.kv-row:last-child { border-bottom: none; }
.kv-k {
  width: 210px; flex-shrink: 0; color: var(--text2); font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.kv-k .q { color: var(--text3); cursor: help; border: 1px solid var(--border2); border-radius: 50%;
  width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
.kv-v { flex: 1; min-width: 0; color: var(--text); font-size: 12.5px; line-height: 1.6; word-break: break-word; }
.kv-v.mono { font-family: var(--mono); }
@media (max-width: 620px) {
  .kv-row { flex-direction: column; gap: 4px; }
  .kv-k { width: auto; }
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 0; overflow-x: auto; }
.tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text2); background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 11px 15px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab .badge-n { color: var(--text3); margin-left: 5px; font-size: 10px; }

/* ── Pager ────────────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--border); }
.pager button {
  font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--bg3);
  border: 1px solid var(--border2); padding: 6px 13px; cursor: pointer; transition: border-color .15s, color .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager .pos { font-family: var(--mono); font-size: 11px; color: var(--text2); margin-right: auto; }

/* ── Code / data blocks ───────────────────────────────────────── */
.codeblock {
  background: #0a0f16; border: 1px solid var(--border2); padding: 12px 14px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: #9fb0cf;
  white-space: pre-wrap; word-break: break-all; max-height: 360px; overflow: auto;
}
.codeblock.tall { max-height: 600px; }
.code-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.code-toolbar .seg {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text2); background: var(--bg3); border: 1px solid var(--border2); padding: 4px 10px; cursor: pointer;
}
.code-toolbar .seg.active { color: var(--gold); border-color: var(--gold-dim); }

/* ── States ───────────────────────────────────────────────────── */
.empty { text-align: center; color: var(--text2); padding: 40px 16px; font-size: 13px; }
.empty .big { font-size: 26px; margin-bottom: 8px; opacity: .5; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--text2); font-family: var(--mono); font-size: 12px; }
.spin { width: 13px; height: 13px; border: 2px solid var(--gold-dim); border-top-color: transparent; border-radius: 50%; animation: xpspin .8s linear infinite; }
@keyframes xpspin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 37%, var(--bg2) 63%); background-size: 400% 100%; animation: xpsk 1.3s ease infinite; height: 13px; border-radius: 2px; }
@keyframes xpsk { 0%{background-position:100% 50%} 100%{background-position:0 50%} }

.err-box { border: 1px solid rgba(192,57,43,.4); background: rgba(192,57,43,.07); color: #e3a59e;
  padding: 13px 15px; font-size: 12.5px; }

/* breadcrumb */
.crumbs { font-family: var(--mono); font-size: 11px; color: var(--text2); margin-bottom: 14px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text2); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--text3); }

/* toast */
#toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); border: 1px solid var(--gold-dim); color: var(--text);
  font-family: var(--mono); font-size: 12px; padding: 9px 16px; opacity: 0;
  transition: opacity .2s, transform .2s; z-index: 2000; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* network status dot in the badge (reuses main.css .dot.ok/.down) */
.brand-badge .dot { font-size: 14px; line-height: 1; }

/* small helpers */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gap-tags { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.mt16 { margin-top: 16px; } .mb0 { margin-bottom: 0; }
.right { text-align: right; } .center { text-align: center; }

/* (section menu now lives inline in .site-header — see header block above) */

/* clickable feed rows (home Latest Blocks / Transactions) + whole-row links (accounts) */
.feed-row[data-href] { cursor: pointer; }
.table tbody tr.row-link { cursor: pointer; }
/* brief highlight on the row you came back to (Back-restore) */
@keyframes rowflash { 0% { background: rgba(212,175,55,.30); } 100% { background: transparent; } }
.table tbody tr.row-flash { animation: rowflash 1.7s ease-out; }

/* sortable table headers */
.th-sort { cursor: pointer; user-select: none; }
.th-sort:hover { color: var(--text2); }
.th-sort .sort-ind { color: var(--gold); font-size: 9px; }

/* ════════════════════════════════════════════════════════════════
   Cross-chain explorer additions (moved from inline index.html → here, 2026-06-03)
   ════════════════════════════════════════════════════════════════ */
.cc-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 11px; padding: 4px 9px; border: 1px solid var(--border2); border-radius: 3px;
  color: var(--text); background: var(--bg3); white-space: nowrap; text-decoration: none;
  transition: border-color .15s, background .15s; }
.cc-chip:hover { border-color: var(--gold-dim); background: var(--bg2); }
.cc-chip .cc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px -1px currentColor; }
.cc-chip .cc-name { font-weight: 600; }
.cc-chip .cc-label { color: var(--text2); }
.cc-chip .cc-bal { color: var(--gold-pale); }
.cc-chip .cc-ext { color: var(--text3); }
.cc-chip.cc-self { border-color: var(--gold-dim); background: rgba(212,175,55,.08); }
.cc-chip.cc-zero { opacity: .45; }
.cc-chip.cc-zero .cc-bal { color: var(--text3); }
.delta-pos { color: #5BC873; }
.delta-neg { color: #e8705f; }
.dir-tag { display:inline-flex; align-items:center; font-family:var(--mono); font-size:10px; font-weight:600; line-height:1.5; padding:0 6px; border:1px solid; border-radius:4px; white-space:nowrap; vertical-align:middle; letter-spacing:.02em; }
.chain-lbl { display:inline-flex; align-items:center; gap:5px; font-family:var(--mono); font-size:10px; font-weight:600; line-height:1.6; padding:0 7px; border:1px solid; border-radius:4px; white-space:nowrap; vertical-align:middle; letter-spacing:.02em; }
.chain-lbl .cl-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; box-shadow:0 0 5px -1px currentColor; }
.chain-lbl .cl-arrow { opacity:.6; }
.cc-balcard { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg2); }
.cc-balcard-h { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text2); margin-bottom: 10px; }
.cc-balcard-h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); margin: 4px 0 8px; padding-left: 14px; }
.cc-balsum { font-size: 14px; color: var(--text); margin: 2px 0 14px; padding-left: 14px; }
.cc-balsum .mono { font-family: var(--mono); }
.cc-chainseg { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cc-seg2.cc-seg-all { font-weight: 600; }
.cc-allnote { font-family: var(--mono); font-size: 10.5px; color: var(--text3); padding: 9px 14px 0; }
.xc-sub { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--text3); letter-spacing: .02em; text-transform: none; margin-left: 6px; }
.cc-assets { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: start; }
.cc-asym { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--gold-pale); white-space: nowrap; padding-top: 5px; }
.bal-line { line-height: 1.65; }
.cc-tokbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 14px 0; }
.cc-toklbl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.cc-toksel { font-family: var(--mono); font-size: 12px; padding: 4px 9px; background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.cc-toksel:hover { border-color: var(--gold-dim); }
.cc-segl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-right: 4px; }
.cc-seg2 { --ch: var(--gold-dim); display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.cc-seg2:hover { border-color: var(--ch); color: var(--text); }
.cc-seg2.active { border-color: var(--ch); color: var(--ch); background: color-mix(in srgb, var(--ch) 14%, transparent); }
.tag.mint { color: var(--green-text); background: rgba(63,185,80,.10); border-color: rgba(63,185,80,.35); }
.tag.burn { color: #e8a05f; background: rgba(224,162,26,.10); border-color: rgba(224,162,26,.40); }
.cc-deploy { display: flex; flex-direction: column; gap: 9px; }
.cc-deploy-sec { display: flex; flex-direction: column; gap: 6px; }
.cc-seclabel { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
/* beta ribbon */
#cc-preview { position: fixed; bottom: 12px; left: 12px; z-index: 3000; font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-deep);
  background: var(--gold); padding: 4px 11px; border-radius: 3px; opacity: .92;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.6); pointer-events: none; }

/* ════════ wallet (RPC-badge menu · connect modal · WalletConnect picker) + address colours — folded in from staging 2026-06-04 ════════ */
#rpc-badge { position: relative; cursor: pointer; }
#rpc-badge .w-acct { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--gold-pale); }
#rpc-badge .w-acct .w-sep { color: var(--text3); }
#rpc-badge .w-mdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
#rpc-badge .w-mdot.ok { background: var(--green); box-shadow: 0 0 5px -1px var(--green); }
#rpc-badge .w-mdot.warn { background: var(--amber); box-shadow: 0 0 5px -1px var(--amber); }
.wmenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; box-shadow: 0 12px 34px -10px rgba(0,0,0,.7); z-index: 2500; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.wmenu-h { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 6px 8px; }
.wmenu-i { display: block; width: 100%; text-align: left; font-family: var(--mono); font-size: 12px; padding: 8px 9px; border: none; background: transparent; color: var(--text); cursor: pointer; border-radius: 5px; text-decoration: none; }
.wmenu-i:hover { background: var(--bg3); color: var(--gold); }
.wmenu-i.danger:hover { color: #e8705f; }
.wmenu .warn { color: var(--amber-text); }
.wmodal-bg { position: fixed; inset: 0; background: rgba(5,8,13,.66); z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wmodal { width: 340px; max-width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-top: 1px solid var(--gold); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); max-height: 92vh; overflow-y: auto; }
.wmodal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-family: 'Lora', serif; font-size: 15px; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.wmodal-x { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; line-height: 1; }
.wmodal-b { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.wopt { display: flex; align-items: center; gap: 11px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg3); color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s; }
.wopt:hover { border-color: var(--gold-dim); }
.wopt-ic { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wopt.wc .wc-ic { background: rgba(63,99,235,.15); color: #5b7cfa; font-size: 15px; }
.wopt .muted { color: var(--text3); font-size: 11px; }
.wopt-empty { color: var(--text2); font-size: 12px; padding: 14px; text-align: center; }
.wmodal-f { padding: 10px 16px 14px; font-size: 11px; color: var(--text3); line-height: 1.5; }
.wqr-b { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wqr-img { width: 232px; height: 232px; border-radius: 8px; background: #fff; padding: 8px; }
.wqr-hint { font-size: 11.5px; color: var(--text2); line-height: 1.5; text-align: center; }
.wqr-copy { justify-content: center; font-weight: 600; }
.wsearch { width: 100%; box-sizing: border-box; font-family: 'Inter', sans-serif; font-size: 12.5px; padding: 9px 12px; border: 1px solid var(--border2); border-radius: 8px; background: var(--bg3); color: var(--text); }
.wsearch:focus { outline: none; border-color: var(--gold-dim); }
.wsearch::placeholder { color: var(--text3); }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-height: 200px; overflow-y: auto; overflow-x: hidden; padding: 2px; }
.wcard { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg3); cursor: pointer; transition: border-color .15s; }
.wcard:hover { border-color: var(--gold-dim); }
.wcard-ic { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg2); }
.wcard-n { font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--text2); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgrid::-webkit-scrollbar { width: 7px; }
.wgrid::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.wgrid::-webkit-scrollbar-track { background: transparent; }
.wtoast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4500; background: var(--bg2); border: 1px solid var(--border2); color: var(--text); font-family: var(--mono); font-size: 12px; padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); max-width: 90vw; text-align: center; }
/* address styling: LABEL = gold (prominent) / raw ADDRESS + tx hash = gold-pale (subtler); both pale on hover */
.label-name { font-family: var(--mono); color: var(--gold); }
.h-addr, .h-tx { color: var(--gold-pale); }
a:hover .label-name { color: var(--gold-pale); }
/* detail pages (block/token/tx/address): addresses + hashes gold, not gold-pale (lists keep the hierarchy) */
.detail-head ~ .panel .h-addr, .detail-head ~ .panel .h-tx { color: var(--gold); }
/* home "Latest Transfers" age chip → gold (was gold-pale) */
.feed-ic.feed-time { color: var(--gold); }
.wmenu[hidden] { display: none; }   /* the [hidden] attr the wallet JS toggles must beat the display:flex on .wmenu, else the menu never closes */
/* network & contracts page (#/network) */
.nw-note { color: var(--text2); font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.nw-tok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nw-tok:last-child { border-bottom: none; }
.nw-addr { font-family: var(--mono); font-size: 12px; color: var(--gold-pale); }
.nw-sp { margin-left: auto; }
.nw-btn { font-family: var(--mono); font-size: 12px; padding: 7px 14px; border: 1px solid var(--gold-dim); border-radius: 6px; background: transparent; color: var(--gold); cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.nw-btn:hover { background: rgba(212,175,55,.10); border-color: var(--gold); }
/* top-nav scroll affordance: clickable chevrons over the nav edges, shown only when that side overflows (JS toggles .on) */
.xp-navwrap { position: relative; display: flex; flex: 1 1 auto; min-width: 0; align-items: stretch; }
.navchev { position: absolute; top: 0; bottom: 0; display: none; align-items: center; z-index: 2;
  border: none; cursor: pointer; color: var(--gold); font-size: 18px; line-height: 1; font-family: var(--mono);
  -webkit-tap-highlight-color: transparent; }
.navchev.on { display: inline-flex; }
.navchev:hover { color: var(--gold-pale); }
.navchev-l { left: 0;  padding: 0 16px 0 4px; background: linear-gradient(to right, var(--navy-deep) 60%, rgba(10,25,41,0)); }
.navchev-r { right: 0; padding: 0 4px 0 16px; background: linear-gradient(to left,  var(--navy)      60%, rgba(26,43,60,0)); }

/* ── branded system-entity glyphs (Core / Pulse / Beam) — prefix before a labelled name ── */
/* FIXED icon box: every entity glyph occupies the same 18px box; the SVG is centred inside it, so
   glyphs of any intrinsic size line up identically across rows (cells stay left-aligned as normal). */
.ent-ic { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; vertical-align:middle; margin-right:4px; color:var(--gold); flex-shrink:0; }
.ent-ic svg { width:13px; height:13px; display:block; }   /* default glyph size, centred in the box */
.ent-ic-pulse .ring { transform-box:fill-box; transform-origin:center; animation:ent-ping 1.9s cubic-bezier(0,.2,.3,1) infinite; }
@keyframes ent-ping { 0% { transform:scale(.18); opacity:.9; } 70%,100% { transform:scale(1); opacity:0; } }
@media (prefers-reduced-motion: reduce) { .ent-ic-pulse .ring { animation:none; opacity:.45; } }

/* entity-icon refinements (2026-06-06): bigger Pulse; Beam sits AFTER the name; group icon+name on the detail header */
.ent-ic-pulse svg { width:18px; height:18px; }  /* pulse glyph fills the box; the rest sit at 13px, centred */
.ent-ic-beam  { margin-left:4px; margin-right:4px; }  /* glyph on both sides of "Beam" → symmetric gap */
.dh-title .dh-name { display:inline-flex; align-items:center; }

/* (cells stay left-aligned as normal — the fixed-size .ent-ic box above keeps glyphs aligned regardless of icon size) */
.ent-ic-transverse svg { width:16px; height:16px; }  /* a touch bigger than the 13px default (per user) */
