/* EastSea explorer. The palette, type and motion are generated from
   design/brand/tokens.json; shared es-* pieces join the wallet and extension.
   This file composes a reading surface, with one navy finalized-height plate
   and a quiet ledger. All fonts are bundled under SIL OFL 1.1. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--c-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-text);
  font-size: var(--text-footnote-size);
  line-height: var(--text-body-line);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: var(--c-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: var(--weight-semibold); }
::selection { background: var(--c-gold); color: var(--c-plate); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.skip { position: fixed; top: var(--space-3); left: var(--space-4); z-index: 10; padding: var(--space-2) var(--space-4); background: var(--c-accent-fill); color: var(--c-on-accent-fill); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

/* A small labeled dot keeps the reader status beside the wordmark. */
#top { position: sticky; top: 0; z-index: 5; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.header-inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: var(--space-3); padding: var(--space-4) var(--space-6); }
.header-identity { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--c-text); white-space: nowrap; }
.logo { width: 32px; height: 32px; flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 0; }
.brand-name .es-wordmark { font-size: var(--text-title-3-size); line-height: var(--text-title-3-line); letter-spacing: var(--text-title-3-tracking); }
.brand-surface { font-family: var(--font-text); font-size: var(--text-caption-size); line-height: var(--text-caption-line); color: var(--c-text-muted); }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--c-line); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-2); font-size: var(--text-caption-size); line-height: var(--text-caption-line); color: var(--c-text-muted); background: var(--c-surface); white-space: normal; }
.pill.good { color: var(--c-success); }
.pill.warn { color: var(--c-warn); }
.pill.bad { color: var(--c-danger); }
.connection-status { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--space-4); height: var(--space-4); color: var(--c-text-muted); }
.connection-status.good { color: var(--c-success); }
.explorer-nav { display: flex; gap: var(--space-3); align-items: center; font-size: var(--text-footnote-size); }
.explorer-nav a { padding: var(--space-2) 0; text-decoration: none; color: var(--c-text-muted); white-space: nowrap; }
.explorer-nav a[aria-current], .explorer-nav a:hover { color: var(--c-text); }
.explorer-nav a[aria-current] { font-weight: var(--weight-medium); }

#search { position: relative; display: flex; align-items: center; flex: 1 1 240px; min-width: 160px; gap: var(--space-2); margin-left: auto; }
input[type="search"], input[type="url"] { min-width: 0; min-height: 40px; border: 1px solid var(--c-line-control); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); background: var(--c-surface); color: var(--c-text); }
input::placeholder { color: var(--c-text-muted); opacity: 1; }
#search input[type="search"] { flex: 1 1 180px; width: 100%; }
#search-msg { position: absolute; inset: calc(100% + var(--space-2)) 0 auto; background: var(--c-surface); border-radius: var(--radius-sm); }
#search-msg:empty { display: none; }
#search-msg .msg { display: block; }

button { appearance: none; min-height: 40px; padding: var(--space-2) var(--space-4); border: 1px solid var(--c-line-control); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); font-weight: var(--weight-medium); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
button:hover, #settings summary:hover { background: var(--c-surface-sunken); }
#search button { background: var(--c-accent-fill); color: var(--c-on-accent-fill); border-color: var(--c-accent-fill); }
#search button:hover { background: color-mix(in srgb, var(--c-accent-fill) 88%, var(--c-bg)); }
button.ghost { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: var(--space-2); background: transparent; }
button.ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 96px; padding: var(--space-2) var(--space-3); white-space: nowrap; }
button.theme-toggle svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.search-toggle { display: none !important; }
button.copy { min-height: 28px; padding: var(--space-1) var(--space-2); font-size: var(--text-caption-size); line-height: var(--text-caption-line); color: var(--c-text-muted); white-space: nowrap; }
button:disabled { opacity: .5; cursor: default; }

#settings { position: relative; }
#settings summary { min-height: 40px; padding: var(--space-2) var(--space-3); cursor: pointer; color: var(--c-text); border: 1px solid var(--c-line-control); border-radius: var(--radius-sm); list-style: none; white-space: nowrap; font-size: inherit; }
#settings summary::-webkit-details-marker { display: none; }
#settings summary::after { content: none; }
#settings[open] summary { background: var(--c-surface-sunken); }
.settings-body { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 6; width: min(380px, calc(100vw - var(--space-6))); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.settings-body label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-caption-size); line-height: var(--text-caption-line); color: var(--c-text-muted); }
.settings-body input { width: 100%; font-size: var(--text-footnote-size); line-height: var(--text-footnote-line); }
.settings-body .msg { display: inline-block; }
.settings-body p { margin: 0; }

/* Pages use the same geometry for successful, empty and refused reads. */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding: var(--space-6); }
#view { padding-top: var(--space-10); min-height: 60vh; }
#notice:empty { display: none; }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.row { display: flex; align-items: center; min-width: 0; gap: var(--space-2); }
.row > * { min-width: 0; }
.row.tight { gap: var(--space-2); }
.account-identity { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; }
.account-heading { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.account-heading > .row { flex-wrap: wrap; min-width: 0; }
.account-heading .mono { min-width: 0; overflow-wrap: anywhere; }
.row.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.page-title { margin: 0; font-family: var(--font-display); font-size: var(--text-title-1-size); line-height: var(--text-title-1-line); letter-spacing: var(--text-title-1-tracking); font-weight: var(--weight-regular); text-wrap: balance; }
.page-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); }
.page-heading p { margin: 0; color: var(--c-text-muted); }
.muted { color: var(--c-text-muted); }
.small { font-size: var(--text-caption-size); line-height: var(--text-footnote-line); }
.mono { font-family: var(--font-mono); font-size: var(--text-caption-size); line-height: var(--text-footnote-line); font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "zero"; }
.mono.wrap, .wrap .mono { overflow-wrap: anywhere; }
.source { margin: 0; font-size: var(--text-caption-size); line-height: var(--text-footnote-line); }

.card { display: flex; flex-direction: column; min-width: 0; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
.card > h2 { margin: 0; color: var(--c-text); font-family: var(--font-display); font-size: var(--text-title-3-size); line-height: var(--text-title-3-line); letter-spacing: var(--text-title-3-tracking); font-weight: var(--weight-regular); }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-3) var(--space-6); margin: 0; font-size: var(--text-footnote-size); line-height: var(--text-footnote-line); }
.kv dt, .kv dd { margin: 0; }
.kv > :nth-child(odd) { color: var(--c-text-muted); }
.kv > :nth-child(even) { min-width: 0; overflow-wrap: anywhere; }
.kv .row { flex-wrap: wrap; align-items: baseline; }
.kv .row a { flex: none; white-space: nowrap; }

/* The live globe uses the shared EastSea brand without changing older views. */
:root[data-page="network"] body {
  --bg: var(--c-bg); --panel: var(--c-surface); --panel-2: var(--c-surface-sunken);
  --line: var(--c-line); --text: var(--c-text); --muted: var(--c-text-muted);
  --accent: var(--c-accent); --accent-2: var(--c-accent);
}
html[data-page="network"] body { background: var(--c-bg); }
html[data-page="network"] .logo { background: var(--c-gold); }
.network-page { padding: clamp(24px, 4vw, 48px) 0 20px; }
.network-page h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; font-weight: 500; }
.network-intro { margin: 8px 0 28px; color: var(--c-text-muted); font-size: 16px; }
@media (max-width: 680px) { html[data-page="network"] #top { gap: 6px 16px; } }
/* ---- chain-backed app/name search; order is the node's order ---- */
.app-search > p { margin: 0; }
.app-search-query { overflow-wrap: anywhere; }
.app-search-results { margin: 0; }
.app-search-result { list-style: none; padding: 4px 0 14px; border-bottom: 1px solid var(--c-line); min-width: 0; }
.app-search-result:last-child { border-bottom: none; padding-bottom: 0; }
.app-search-result > * + * { margin-top: 8px; }
.app-search-title { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.app-search-name, .app-search-description { margin-bottom: 0; overflow-wrap: anywhere; }
.app-search-description { max-width: 75ch; white-space: pre-line; }
.app-search-meta { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin-bottom: 0; font-size: 13px; }
.app-search-meta dt { color: var(--c-text-muted); }
.app-search-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.app-search a { color: color-mix(in srgb, var(--c-accent) 75%, var(--c-text)); }
.app-search a:hover { text-decoration-thickness: 2px; }
.app-search a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.app-search .msg.warn { color: var(--c-text); }
.app-search-retry { align-self: flex-start; }


.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; }
.kv > :nth-child(odd) { color: var(--c-text-muted); }
.kv > :nth-child(even) { overflow-wrap: anywhere; min-width: 0; }

/* ---- stat tiles (one hero figure per view at most) ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-label { font-size: 12px; color: var(--c-text-muted); }
.tile-value { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile.major .tile-value { font-size: 30px; }
.tile.big .tile-value { font-size: 34px; }
.tile-sub { font-size: 11px; color: var(--c-text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hero { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---- live network: counts observed through this node's home relays ---- */
.live-total { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-breakdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.live-breakdown { min-width: 0; }
.live-breakdown h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--c-text-muted); }
.live-counts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 13px; }
.live-counts dt { overflow-wrap: anywhere; }
.live-counts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Presence has no reported locations today: one quiet observation, no map. */
.network-presence { max-width: 680px; padding-block: var(--space-8); }
.presence-number { margin: 0; font-family: var(--font-display); font-size: clamp(72px, 12vw, 120px); line-height: 1; font-weight: var(--weight-regular); letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; }
.presence-label { margin: var(--space-2) 0 var(--space-5); font-family: var(--font-display); font-size: var(--text-title-3-size); line-height: var(--text-title-3-line); }
.presence-roles { margin: 0 0 var(--space-4); font-size: var(--text-body-size); color: var(--c-text); }
.presence-updated, .presence-note { margin: var(--space-2) 0 0; color: var(--c-text-muted); font-size: var(--text-footnote-size); line-height: var(--text-footnote-line); overflow-wrap: anywhere; }

/* One plate, with the supporting node metrics laid out as a ledger. */
.tiles { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
.rate-cell { min-width: 0; display: flex; }
.rate-cell > .tile { width: 100%; }
.tiles:has(> .rate-cell[hidden]) { grid-template-columns: minmax(240px, 1.3fr) minmax(0, 1fr); }
.tile { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); min-width: 0; padding: var(--space-5) 0; border-bottom: 1px solid var(--c-line); }
.tile-label { color: var(--c-text-muted); font-size: var(--text-caption-size); line-height: var(--text-caption-line); }
.tile-value { font-family: var(--font-amount); font-size: var(--text-title-3-size); line-height: var(--text-title-3-line); letter-spacing: var(--text-title-3-tracking); font-weight: var(--weight-medium); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tile.major { align-self: stretch; justify-content: flex-start; gap: var(--space-3); padding: var(--space-6); border: none; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--c-plate), var(--c-plate-2)); color: var(--c-plate-ink); }
.tile:not(.major) { border: none; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent; }
.tile.major .tile-label { color: var(--c-plate-soft); }
.tile.major .tile-value { margin-top: auto; font-size: var(--text-amount-lg-size); line-height: var(--text-amount-lg-line); letter-spacing: var(--text-amount-lg-tracking); }
.tile.major .tile-value a { color: var(--c-plate-ink); text-decoration: none; }
.tile.major .tile-value a:hover { text-decoration: underline; }
.tile.major .tile-sub { color: var(--c-plate-soft); margin-bottom: var(--space-1); }
.tile-sub { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; color: var(--c-text-muted); font-size: var(--text-caption-size); line-height: var(--text-footnote-line); }
.tile.big .tile-value, .tile-value.big { font-size: var(--text-amount-lg-size); line-height: var(--text-amount-lg-line); letter-spacing: var(--text-amount-lg-tracking); }
.hero { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.account-balance { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); }
.account-balance p { margin: 0; }
.account-balance .tile-label { color: var(--c-plate-soft); }
.account-balance .tile-value { font-size: var(--text-amount-lg-size); line-height: var(--text-amount-lg-line); }

/* Tables carry the detail; numbers stay aligned as they refresh. */
.tablewrap { overflow-x: auto; scrollbar-color: var(--c-line-control) var(--c-surface); }
.block-ledger table { table-layout: fixed; }
.block-ledger th:nth-child(1) { width: 12%; }
.block-ledger th:nth-child(2) { width: 25%; }
.block-ledger th:nth-child(3) { width: 22%; }
.block-ledger th:nth-child(4) { width: 10%; }
.block-ledger th:nth-child(5) { width: 15%; }
.block-ledger th:nth-child(6) { width: 16%; }
.block-ledger tbody tr { height: var(--space-12); }
.skeleton { display: block; height: var(--space-3); width: 70%; border-radius: var(--radius-sm); background: var(--c-surface-sunken); }
.skeleton-row:nth-child(even) .skeleton { width: 55%; }
.presence-compact { display: flex; align-items: baseline; flex-wrap: wrap; max-width: none; gap: var(--space-2) var(--space-4); padding: 0; color: var(--c-text-muted); font-size: var(--text-caption-size); }
.presence-compact .presence-summary { color: var(--c-text-muted); }
.presence-compact .presence-roles, .presence-compact .presence-updated { margin: 0; font-size: inherit; line-height: inherit; }
#home-presence:empty { display: none; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--c-text-muted); font-size: var(--text-caption-size); line-height: var(--text-caption-line); font-weight: var(--weight-medium); padding: 0 var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--c-line); font-size: var(--text-footnote-size); line-height: var(--text-footnote-line); vertical-align: middle; white-space: nowrap; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover { background: var(--c-surface-sunken); }
tr:last-child td { border-bottom: none; }
td > a:not(.mono) { font-family: var(--font-mono); font-size: var(--text-footnote-size); }

.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--c-text-muted); }
.dot.done { background: var(--c-success); }
.dot.failed { background: var(--c-danger); }
.dot.pending { background: var(--c-warn); }
.msg { padding: var(--space-3) var(--space-4); border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface-sunken); font-size: var(--text-footnote-size); line-height: var(--text-footnote-line); overflow-wrap: anywhere; }
.msg.error { color: var(--c-danger); }
.msg.ok { color: var(--c-success); }
.msg.warn { color: var(--c-warn); }
.event { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--c-line); }
.event:last-child { border-bottom: none; }
details { min-width: 0; }
details summary { cursor: pointer; color: var(--c-text-muted); font-size: var(--text-caption-size); line-height: var(--text-footnote-line); }
details > *:not(summary) { margin-top: var(--space-2); }

/* A read gets one finite acknowledgement, then a quiet static indicator. */
.loading { display: flex; align-items: center; gap: var(--space-3); color: var(--c-text-muted); padding: var(--space-8) 0; }
.spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--c-line); border-top-color: var(--c-accent); border-radius: 50%; animation: spin var(--dur-slow) var(--ease-standard) 1; }
@keyframes spin { to { transform: rotate(360deg); } }
#foot { margin-top: var(--space-6); color: var(--c-text-muted); border-top: 1px solid var(--c-line); }
#foot p { margin: 0; max-width: 90ch; }
.demo-notice { padding: var(--space-2) var(--space-6); color: var(--c-text-muted); border-bottom: 1px solid var(--c-line); text-align: center; font-size: var(--text-caption-size); line-height: var(--text-footnote-line); }

@media (max-width: 1000px) {
  .header-inner { gap: var(--space-3); }
  .explorer-nav { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile.major { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .tile.major .tile-value { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .tile.major .tile-sub { grid-column: 1; }
}
@media (max-width: 640px) {
  .container, .header-inner { padding-inline: var(--space-4); }
  #view { padding-top: var(--space-6); }
  .header-identity { flex: 1; }
  .brand { margin-right: auto; }
  .header-inner { gap: var(--space-2); }
  button.theme-toggle { min-width: var(--space-10); padding: var(--space-2); }
  button.theme-toggle span { display: none; }
  .search-toggle { display: inline-flex !important; }
  .search-toggle[hidden] { display: none !important; }
  #search { display: none; position: absolute; inset: 100% 0 auto; margin: 0; padding: var(--space-3) var(--space-4); background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
  #top.search-open #search { display: flex; }
  #search-msg { inset-inline: var(--space-4); }
  .stack { gap: var(--space-5); }
  .page-title { font-size: var(--text-title-2-size); line-height: var(--text-title-2-line); letter-spacing: var(--text-title-2-tracking); }
  .page-heading p { font-size: var(--text-caption-size); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
  .tile.major { padding: var(--space-5); grid-template-columns: 1fr; gap: var(--space-2); }
  .tile.major .tile-value { grid-column: 1; grid-row: auto; }
  .tile.major .tile-sub { grid-column: 1; }
  .tile-value { font-size: var(--text-body-lg-size); line-height: var(--text-title-3-line); }
  .card { padding: var(--space-4); }
  .account-balance { padding: var(--space-5); }
  .account-balance .tile-value { font-size: var(--text-amount-md-size); line-height: var(--text-amount-md-line); }
  .settings-body { position: fixed; inset: calc(var(--space-4) + var(--space-10) + var(--space-2)) var(--space-4) auto; width: auto; max-height: calc(100dvh - var(--space-24)); overflow-y: auto; }
  .app-search-meta { grid-template-columns: 96px minmax(0, 1fr); }
  .kv { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); }
  th, td { padding-right: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* CJK headings keep their natural spacing on desktop and mobile. */
html:is(:lang(ko), :lang(ja), :lang(zh)) :is(.page-title, .card > h2, .presence-label) { letter-spacing: 0; }
@media (prefers-reduced-transparency: reduce) {
  .settings-body { background: var(--c-surface); }
}

/* All token surfaces use the shipped registry; native DBLN keeps its 3D coin. */
.token-identity { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); min-width: 0; }
.token-art { display: inline-block; object-fit: contain; flex: none; }
.token-letter-chip { display: inline-grid; place-items: center; flex: none; border: 1px solid var(--c-line-control); border-radius: 50%; background: var(--c-surface-sunken); color: var(--c-text); font-size: 0.75rem; font-weight: var(--weight-medium); }
.unverified-token-art { position: relative; display: inline-grid; place-items: center; flex: none; border: 1px dashed var(--c-line-control); border-radius: 50%; color: var(--c-plate); }
.unverified-token-disc { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.unverified-token-initial { position: relative; font-size: 0.75rem; font-weight: var(--weight-semibold); }
.unverified-token-question { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 12px; height: 12px; border: 1px solid var(--c-line-control); border-radius: 50%; background: var(--c-surface); color: var(--c-text); font: var(--weight-semibold) 9px/1 var(--font-text); }

/* Match the native CJK display-title token, including localized card headings. */
:is(h1, h2, h3, .page-title, .es-wordmark, .lg-caption):is(:lang(ko), :lang(ja), :lang(zh)) {
  letter-spacing: var(--text-cjk-title-tracking);
}
