/* Elysium module: overview, token market, token detail, bridge */
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 32px !important; line-height: 36px; margin: 0 0 8px !important; }
.hero .eyebrow .chain-logo, .lede .chain-logo, .sub .chain-logo, .card p .chain-logo, .form-note .chain-logo, h3 .chain-logo {
  display: inline-block; vertical-align: -3px; margin: 0 2px;
}
.grid-3 { margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 12px 0 0; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.kv small { color: var(--ink-faint); font-size: 12px; }
.token-icon { border-radius: 50%; }
.contracts h3 { display: flex; align-items: center; gap: 8px; }

/* token mark: letter disc tinted from the address */
.token-mark {
  --size: 32px; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: calc(var(--size) * .42); color: hsl(var(--hue) 80% 85%);
  background: radial-gradient(circle at 30% 25%, hsl(var(--hue) 55% 42%), hsl(var(--hue) 60% 22%));
  box-shadow: inset 0 0 0 1px hsl(var(--hue) 60% 60% / .35);
}

/* generic data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  height: 44px; padding: 0 16px; text-align: left; font-weight: 500; color: var(--ink-muted); font-size: 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-light); vertical-align: middle; font-variant-numeric: tabular-nums; }
.data-table .num { text-align: right; }
.data-table td.num small { display: block; }
.data-table small { color: var(--ink-muted); font-size: 12px; }
.data-table th button { all: unset; cursor: pointer; }
.data-table th button:hover { color: var(--ink); }
.data-table th button[data-dir]::after { content: " ↓"; color: var(--brand); }
.data-table th button[data-dir="asc"]::after { content: " ↑"; }
.data-table .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-secondary); }
.data-table a.mono { text-decoration: none; }
.data-table a.mono:hover { color: var(--brand); }
.table-title { margin: 0; padding: 16px 16px 4px; font-size: 16px; font-weight: 600; }

.market-table { min-width: 900px; }
.market-table tbody tr { cursor: pointer; }
.market-table tbody tr:hover td { background: var(--hover); }
.token-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.token-cell span { display: flex; flex-direction: column; min-width: 0; }
.token-cell b { font-weight: 500; }
.token-cell small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { font-weight: 500; }
.chg.up { color: #3ccf91; }
.chg.down { color: #ff6b6b; }

/* token detail */
.crumbs { margin: 0 0 12px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.token-title .token-mark { --size: 52px; }
.mono-link { color: var(--ink-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.chart-panel { margin-bottom: 16px; padding: 20px 20px 12px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head .view-switch { margin: 0; }
.chart-price { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.chart-price small { display: block; font-size: 12px; line-height: 16px; letter-spacing: 0; color: var(--ink-muted); font-weight: 400; }
.chart-change { display: inline-flex; gap: 6px; align-items: baseline; margin-left: 12px; vertical-align: 8px; }
.chart-change small { color: var(--ink-muted); font-size: 12px; }
.price-chart { position: relative; margin-top: 12px; min-height: 120px; }
.price-chart svg { display: block; width: 100%; height: auto; }
.price-chart .grid { stroke: var(--line); }
.price-chart .axis { fill: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.price-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.price-chart .cross { stroke: var(--ink-faint); stroke-dasharray: 3 3; }
.price-chart .cross-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.price-chart .hit { fill: transparent; cursor: crosshair; }
.price-chart .tip {
  position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; display: grid; gap: 2px;
  padding: 8px 10px; border-radius: 8px; background: var(--control); box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, .5);
  font-size: 12px; color: var(--ink-secondary); white-space: nowrap;
}
.price-chart .tip b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-note { color: var(--ink-faint); font-size: 12px; margin: 4px 0 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.side { padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.side.buy { background: rgba(60, 207, 145, .14); color: #3ccf91; }
.side.sell { background: rgba(255, 107, 107, .14); color: #ff6b6b; }
.tag-pool { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--ink-secondary); font-size: 11px; font-family: var(--font-text); }
.share { display: inline-block; width: 60px; height: 4px; margin-right: 8px; vertical-align: middle; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.share i { display: block; height: 100%; background: var(--brand); max-width: 100%; }

/* bridge */
.bridge-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 20px; }
.route-end {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 12px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line-light);
}
.route-label { color: var(--ink-muted); font-size: 12px; }
.route-bal { font-variant-numeric: tabular-nums; color: var(--ink-secondary); font-size: 13px; }
.route-arrow { color: var(--brand); font-size: 22px; }
.amount-label { display: block; color: var(--ink-muted); font-size: 12px; margin-bottom: 6px; }
.amount {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.amount:focus-within { box-shadow: 0 0 0 1px var(--brand); }
.amount img { border-radius: 50%; flex: none; }
.amount input { all: unset; flex: 1; min-width: 0; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.amount span { color: var(--ink-muted); }
.amount .btn-sm { background: var(--control); }
.amount-hint { min-height: 18px; margin: 8px 2px 12px; color: var(--ink-muted); font-size: 12px; }
.btn-block { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; height: 48px; }
.btn-block:disabled { background: var(--control); color: var(--ink-muted); cursor: not-allowed; filter: none; }
.form-note { color: var(--ink-faint); font-size: 12px; line-height: 18px; margin: 16px 0 0; }
.review { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
.review h4 { margin: 0; font-size: 14px; }
.review-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.review-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; color: var(--ink); }
.review-actions .btn-primary { color: var(--brand-fg); }
.review-actions .btn:disabled { opacity: .5; cursor: wait; }
.tx-result { margin: 12px 0 0; font-size: 13px; color: var(--ink-secondary); }
.tx-result:empty { display: none; }
.tx-result a { color: var(--brand); }
.bridge-status h3 { margin: 0; }
.pill { padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.pill.good { background: rgba(60, 207, 145, .14); color: #3ccf91; }
.pill.bad { background: rgba(255, 107, 107, .14); color: #ff6b6b; }
.pill.wait { background: rgba(255, 178, 30, .14); color: #ffb21e; }
.dep-status small { display: block; margin-top: 2px; }
.deposits-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px 4px 0; }
.deposits-head .view-switch { margin: 0; }
.deposits-card .data-table { min-width: 640px; }

@media (max-width: 900px) {
  .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .bridge-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .stats-4 { grid-template-columns: 1fr; }
  .card-title { font-size: 28px !important; }
  .data-table th, .data-table td { padding-inline: 12px; }
  .route-end { padding: 12px 8px; }
  .chart-change { display: flex; margin: 4px 0 0; vertical-align: 0; }
}
.two-col .table-card .scroll { max-height: 640px; overflow-y: auto; }
.two-col .data-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.add-chains { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mono-sm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.route-end .add-chain { height: 28px; padding: 0 10px; font-size: 12px; }
