/* Elysium, System A: public on-chain tools on the open floor. The live block head is the hero number; pools are hairline
   rows; the transaction and hook tools sit beside them on desktop. No monospace: addresses and code use Mona Sans. */

.ey code, .ey pre { font-family: var(--qa-sans); font-variant-numeric: tabular-nums; }
.ey .ey-note, .ey .ey-intro, .ey .ey-target { font-size: 13px; line-height: 1.45; color: var(--qa-tx-3); }
.ey .ey-status { margin-top: 8px; font-size: 13.5px; color: var(--qa-tx-2); }
.ey .ey-status[data-state="error"], .ey .ey-status.is-error { color: var(--qa-warn); }
.ey .ey-stale { color: var(--qa-warn); }

/* hero: the network at a glance */
.ey-hero { display: grid; gap: 26px; }
.ey-hero::before { content: ""; position: absolute; z-index: -1; inset: -60px -30% auto; height: 380px; pointer-events: none; background: radial-gradient(44% 50% at 76% 36%, rgba(80,227,194,.12), transparent 70%), radial-gradient(40% 50% at 18% 18%, var(--qa-gold-wash), transparent 70%); }
.ey-network-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ey-network-top h2 { font-size: 13px; font-weight: 640; color: var(--qa-tx-3); }
.ey-network-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule); }
.ey-network-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 12px 18px; box-shadow: -1px 0 0 var(--qa-rule); }
.ey-network-facts > div:first-child { grid-column: 1 / -1; padding-left: 0; box-shadow: 0 1px 0 var(--qa-rule); }
.ey-network-facts > div:nth-child(2) { padding-left: 0; box-shadow: none; }
.ey-network-facts span { font-size: var(--qa-fs-small); color: var(--qa-tx-3); }
.ey-network-facts strong { font-size: 20px; font-weight: 780; font-stretch: 110%; letter-spacing: -.015em; }
.ey-network-facts strong small { font-size: 12.5px; font-weight: 600; color: var(--qa-tx-3); letter-spacing: 0; }
.ey-head strong { font-size: 22px; font-weight: 850; font-stretch: 118%; letter-spacing: -.045em; transition: color .9s var(--qa-ease), text-shadow .9s var(--qa-ease); }
.ey-head strong.is-number { font-size: 40px; }
.ey-head strong.is-tick { color: var(--qa-gold-hi); text-shadow: 0 0 22px rgba(240,218,174,.6); transition: none; }
.ey-source { margin-top: 10px; }
.ey-source summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; font-size: 13.5px; font-weight: 680; color: var(--qa-tx-2); cursor: pointer; }
.ey-source summary::-webkit-details-marker { display: none; }
.ey-source summary::after { content: "+"; color: var(--qa-gold-hi); font-size: 17px; }
.ey-source[open] summary::after { content: "−"; }
.ey-source p, .ey-source dl { font-size: 13px; color: var(--qa-tx-3); }
.ey-source dl > div, .ey-pool-detail dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; box-shadow: 0 1px 0 var(--qa-rule-row); }
.ey-source dd, .ey-pool-detail dd { margin: 0; color: var(--qa-tx); text-align: right; overflow-wrap: anywhere; min-width: 0; }

/* section jumps: underlined text, no numbers */
.ey-jump { position: sticky; top: calc(var(--qa-hdr-h) + env(safe-area-inset-top)); z-index: 20; display: flex; gap: 20px; margin: 26px calc(var(--qa-pad) * -1) 0; padding: 0 var(--qa-pad); overflow-x: auto; scrollbar-width: none;
  background: var(--qa-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--qa-rule), 0 -1px 0 var(--qa-rule); }
.ey-jump::-webkit-scrollbar { display: none; }
.ey-jump a { flex: none; display: inline-flex; align-items: center; height: 46px; font-size: 14.5px; font-weight: 680; color: var(--qa-tx-2); }
.ey-jump a:hover { color: var(--qa-tx); }

/* panels on the floor */
.ey-workspace { display: grid; gap: var(--qa-section-gap); padding-top: var(--qa-section-gap); }
.ey-panel { scroll-margin-top: 120px; }
.ey-tools { display: grid; gap: var(--qa-section-gap); }
.ey-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ey-kicker { font-size: 12.5px; font-weight: 680; color: var(--qa-gold-hi); }
.ey-section-head h2 { margin-top: 4px; font-size: var(--qa-fs-h2); line-height: .95; font-weight: 840; font-stretch: var(--qa-wd-display); letter-spacing: var(--qa-track-display); }
.ey-tools .ey-section-head h2 { font-size: var(--qa-fs-display-m); }
.ey-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 640; color: var(--qa-buy); white-space: nowrap; }
.ey-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* forms */
.ey-pool-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; margin-top: 14px; }
.ey-pool-controls label, .ey-tool-form label { display: grid; gap: 4px; padding: 10px 0 8px; font-size: var(--qa-fs-small); font-weight: 600; color: var(--qa-tx-3); box-shadow: 0 1px 0 var(--qa-rule); }
.ey-pool-controls label:focus-within, .ey-tool-form label:focus-within { box-shadow: 0 2px 0 var(--qa-gold); }
.ey .qa-select { font-size: 17px; font-weight: 720; padding-right: 20px; }
.ey .qa-select option { color: #111; }
.ey .qa-select:disabled { opacity: .55; }
.ey .qa-input { font-size: 17px; }
.ey-pool-controls .ey-button { grid-column: 1 / -1; margin-top: 14px; }
.ey-tool-form .ey-button { margin-top: 12px; }
.ey-target { margin-top: 12px; overflow-wrap: anywhere; }
.ey-window { margin-top: 10px; font-size: 13px; color: var(--qa-tx-2); }

/* pool rows */
.ey-pool-list { margin-top: 12px; }
.ey-pool { position: relative; display: grid; gap: 8px; padding: 18px 0 18px 16px; box-shadow: 0 1px 0 var(--qa-rule); }
.ey-pool::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #50E3C2, var(--qa-gold)); }
.ey-pool-top { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--qa-tx-3); }
.ey-protocol { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--qa-gold-hi); text-transform: none; letter-spacing: 0; }
.ey-protocol::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ey-pool h3 { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 830; font-stretch: 116%; letter-spacing: -.025em; }
.ey-pool h3 > span:not(.ey-pair-asset) { color: var(--qa-tx-3); font-weight: 500; }
.ey-assets, .ey-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; }
.ey-assets > div, .ey-facts > div { display: flex; align-items: baseline; gap: 6px; padding: 0 12px; box-shadow: -1px 0 0 var(--qa-rule-2); font-size: 13px; }
.ey-assets > div:first-child, .ey-facts > div:first-child { padding-left: 0; box-shadow: none; }
.ey-assets dt, .ey-facts dt { color: var(--qa-tx-3); }
.ey-assets dd, .ey-facts dd { margin: 0; font-weight: 660; overflow-wrap: anywhere; }
.ey-address { font-size: 13px; color: var(--qa-tx-2); overflow-wrap: anywhere; }
.ey-native { margin-left: 6px; font-size: 12px; color: var(--qa-buy); font-weight: 680; }
.ey-pool-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ey-text-button { display: inline-flex; align-items: center; height: 36px; font-size: 14px; font-weight: 700; color: var(--qa-gold-hi); }
.ey-text-button:hover { color: var(--qa-tx); }
.ey-text-button:disabled { opacity: .45; }
.ey-pool-detail summary { list-style: none; display: inline-flex; height: 32px; align-items: center; font-size: 13px; font-weight: 660; color: var(--qa-tx-2); cursor: pointer; }
.ey-pool-detail summary::-webkit-details-marker { display: none; }
.ey-pool-detail dl { margin: 6px 0 4px; font-size: 13px; }
.ey-pool-detail dt { color: var(--qa-tx-3); }
.ey-empty { display: grid; justify-items: start; gap: 8px; padding: 26px 0; }
.ey-empty-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--qa-gold-wash); color: var(--qa-gold); font-size: 18px; }
.ey-empty h3 { font-size: var(--qa-fs-h3); font-weight: 780; font-stretch: 112%; letter-spacing: -.02em; }
.ey-empty p { font-size: 14.5px; color: var(--qa-tx-2); max-width: 46ch; }
.ey-pool-bottom { display: grid; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--qa-tx-3); }
.ey-pool-pagination { display: flex; flex-wrap: wrap; gap: 10px; }

/* swaps (qx-elysium-activity.mjs) and tool results */
.ey-activity { margin-top: var(--qa-section-gap); }
.ey-activity h3 { font-size: var(--qa-fs-display-s); font-weight: 830; font-stretch: var(--qa-wd-head); }
.ey-activity-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.ey-activity-chart { display: block; width: 100%; margin-top: 12px; }
.ey-swap-list { margin-top: 8px; }
.ey-swap-list > * { padding: 10px 0; box-shadow: 0 1px 0 var(--qa-rule-row); font-size: 13.5px; }
.ey-swap-top { display: flex; gap: 10px; justify-content: space-between; }
.ey-tool-result { margin-top: 12px; font-size: 14px; }
.ey-tool-result:empty { display: none; }
.ey-tool-result dl > div, .ey-permissions > *, .ey-metric-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; box-shadow: 0 1px 0 var(--qa-rule-row); }
.ey-tool-result dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; font-weight: 650; }
.ey-tool-result dt { color: var(--qa-tx-3); }
.ey-flags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.ey-code-hash { overflow-wrap: anywhere; }
.ey-inline-actions { display: flex; gap: 16px; }
.ey-history { display: grid; gap: 4px; margin-top: 6px; }

/* developer */
.ey-developer { margin-top: var(--qa-section-gap); box-shadow: 0 -1px 0 var(--qa-rule), 0 1px 0 var(--qa-rule); }
.ey-developer > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0; cursor: pointer; font-size: var(--qa-fs-display-s); font-weight: 830; font-stretch: var(--qa-wd-head); letter-spacing: var(--qa-track-head); }
.ey-developer > summary::-webkit-details-marker { display: none; }
.ey-developer > summary .ey-note { font-size: 13px; font-weight: 560; letter-spacing: 0; font-stretch: 100%; }
.ey-dev-body { display: grid; gap: 22px; padding-bottom: 22px; }
.ey-dev-body h2 { font-size: var(--qa-fs-h3); font-weight: 800; font-stretch: 112%; }
.ey-dev-body p { margin-top: 8px; color: var(--qa-tx-2); font-size: 14.5px; }
.ey-dev-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ey-dev-body pre { margin: 0; padding: 18px; border-radius: var(--qa-r-m); background: var(--qa-wash); overflow-x: auto; font-size: 13.5px; line-height: 1.55; color: var(--qa-tx-2); white-space: pre; }

@media (min-width: 1100px) {
  .ey-hero { grid-template-columns: minmax(0, 1fr) 520px; align-items: center; column-gap: 64px; }
  .ey-head strong.is-number { font-size: 56px; }
  .ey-jump { top: var(--qa-nav-h); margin: 34px 0 0; padding: 0; }
  .ey-workspace { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
  .ey-tools { position: sticky; top: calc(var(--qa-nav-h) + 64px); }
  .ey-pool-controls { grid-template-columns: 1fr 1fr auto; }
  .ey-pool-controls .ey-button { grid-column: auto; margin-top: 0; margin-bottom: 6px; }
  .ey-dev-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
