/* The public page shell uses the homepage palette and navigation scale. */
body[data-ec-shell] {
  --ec-bg: #0a100d;
  --ec-surface: #101914;
  --ec-raised: #152019;
  --ec-line: #28382d;
  --ec-text: #eff6f0;
  --ec-muted: #a7b7aa;
  --ec-green: #a3efba;
  background-color: var(--ec-bg) !important;
  color: var(--ec-text);
  color-scheme: dark;
  margin: 0;
  --ec-ink: var(--ec-text);
  --ec-paper: var(--ec-bg);
  --ec-white: var(--ec-surface);
  --ec-soft: #1d3427;
  --ec-accent: var(--ec-green);
  --ec-green-hover: #c3f6d2;
  --pq-ink: var(--ec-text);
  --pq-paper: var(--ec-bg);
  --pq-panel: var(--ec-surface);
  --pq-line: var(--ec-line);
  --pq-lilac: #1d3427;
  --pq-violet: var(--ec-green);
  --desk-ink: var(--ec-text);
  --desk-paper: var(--ec-bg);
  --desk-panel: var(--ec-surface);
  --desk-rule: var(--ec-line);
  --desk-muted: var(--ec-muted);
  --desk-accent: var(--ec-green);
  --fin-ink: var(--ec-text);
  --fin-paper: var(--ec-bg);
  --fin-bg: var(--ec-surface);
  --fin-brand: var(--ec-green);
  --fin-muted: var(--ec-muted);
  --fin-line: var(--ec-line);
  --j-ink: var(--ec-text);
  --j-paper: var(--ec-bg);
  --j-muted: var(--ec-muted);
  --j-line: var(--ec-line);
  --j-purple: var(--ec-green);
}
body[data-ec-shell]:not([data-ec-shell="checkout"]):not([data-green-surface]) {
  --bg: var(--ec-bg);
  --paper: var(--ec-bg);
  --canvas: var(--ec-bg);
  --white: var(--ec-surface);
  --surface: var(--ec-surface);
  --light: var(--ec-raised);
  --ink: var(--ec-text);
  --muted: var(--ec-muted);
  --line: var(--ec-line);
  --green: var(--ec-green);
  --green-dark: var(--ec-green);
  --purple: var(--ec-green);
  --violet: var(--ec-green);
  --mint: #1d3427;
  --code: var(--ec-raised);
}
body[data-ec-shell] [data-ec-legacy-header],
body[data-ec-shell] > :is(.fin-skip,.skip-link,.skip),
body[data-ec-shell][data-ec-ui="chain"] #app > .ecosystem-bar,
body[data-ec-shell="checkout"] > .strip,
body[data-ec-shell="app"] #app > header.shell {
  display: none !important;
}
body[data-ec-shell="app"] #app > header.header :is(.brand, nav) {
  display: none !important;
}
body[data-ec-shell="app"] #app > header.header .header-inner {
  justify-content: flex-end;
  min-height: 0;
  background: transparent;
  border: 0;
}
body[data-ec-shell="app"] #app > :is(.ecosystem-topbar,.ecosystem-bar) { display: none; }
body[data-ec-shell="app"] #app > header.header { background: var(--ec-bg); }
#ec-site-shell, #ec-site-shell * { box-sizing: border-box; }
#ec-site-shell {
  position: relative;
  z-index: 40;
  background: var(--ec-bg);
  border-block-end: 1px solid #1e2b22;
  color: var(--ec-text);
  font: 15px/1.55 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
#ec-site-shell .ec-shell-frame {
  display: flex;
  width: min(1280px, calc(100% - 100px));
  min-height: 68px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#ec-site-shell a, #ec-site-shell summary {
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
}
#ec-site-shell .ec-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -.045em;
  white-space: nowrap;
}
#ec-site-shell .ec-shell-brand svg {
  display: block;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--ec-green);
  stroke-linecap: round;
}
#ec-site-shell .ec-shell-nav, #ec-site-shell .ec-shell-actions {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 32px);
  margin: 0;
  padding: 0;
}
#ec-site-shell .ec-shell-actions { gap: 10px; }
#ec-site-shell details { position: relative; margin: 0; padding: 0; }
#ec-site-shell summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}
#ec-site-shell summary::-webkit-details-marker { display: none; }
#ec-site-shell summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-end: 1px solid;
  border-block-end: 1px solid;
  transform: translateY(-2px) rotate(45deg);
}
#ec-site-shell details[open] summary::after { transform: translateY(2px) rotate(225deg); }
#ec-site-shell .ec-shell-nav :is(a, summary) { color: var(--ec-muted); white-space: nowrap; font-size: 14px; }
#ec-site-shell .ec-shell-nav a:hover, #ec-site-shell summary:hover, #ec-site-shell [aria-current] { color: var(--ec-green); }
#ec-site-shell .ec-shell-actions summary {
  padding-inline: 10px;
  border: 1px solid #496955;
  border-radius: 7px;
  background: var(--ec-surface);
  font-size: 13px;
}
#ec-site-shell .ec-shell-dropdown {
  display: block;
  position: absolute;
  z-index: 41;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  width: max-content;
  min-width: 190px;
  max-width: calc(100vw - 30px);
  margin: 0;
  padding: 5px;
  border: 1px solid #496955;
  border-radius: 9px;
  background: var(--ec-raised);
  box-shadow: 0 16px 44px #0006;
}
#ec-site-shell details:not([open]) > .ec-shell-dropdown { display: none; }
#ec-site-shell .ec-shell-actions .ec-shell-dropdown { inset-inline: auto 0; }
#ec-site-shell .ec-shell-dropdown ul { margin: 0; padding: 0; list-style: none; }
#ec-site-shell .ec-shell-dropdown li { display: block; margin: 0; padding: 0; }
#ec-site-shell .ec-shell-dropdown a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--ec-text);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#ec-site-shell .ec-shell-dropdown a:is(:hover, [aria-current]) {
  background: #1d3427;
  color: var(--ec-green);
}
#ec-site-shell .ec-shell-languages .ec-shell-dropdown {
  width: min(238px, calc(100vw - 30px));
  max-height: min(62vh, 460px);
  overflow: auto;
}
#ec-site-shell .ec-shell-dropdown .ec-shell-label {
  margin: 0;
  padding: 8px 10px 4px;
  color: var(--ec-muted);
  font-weight: 600;
  font-size: 11px;
}
#ec-site-shell .ec-shell-dropdown ul + .ec-shell-label { border-top: 1px solid var(--ec-line); margin-top: 4px; }
#ec-site-shell .ec-shell-mobile { display: none; }
#ec-site-shell .ec-shell-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 13px;
  min-height: 42px;
  border: 1px solid #80c698;
  border-radius: 7px;
  background: var(--ec-green);
  color: #0a1b11;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
#ec-site-shell :is(a, summary):focus-visible { outline: 2px solid var(--ec-green); outline-offset: 3px; }
#ec-site-shell .ec-shell-skip {
  position: absolute;
  top: 8px;
  left: 12px;
  transform: translateY(-150%);
  background: var(--ec-green);
  color: #0a1b11;
  padding: 8px 12px;
  border-radius: 6px;
}
#ec-site-shell .ec-shell-skip:focus { transform: none; }

body[data-ec-shell="guide"] > main {
  color: var(--ec-text);
}
body[data-ec-shell="guide"] main :is(.intro,.locale-lead) {
  color: var(--ec-muted);
}
body[data-ec-shell="guide"] main :is(h1,h2,h3) { color: var(--ec-text); }
body[data-ec-shell="guide"] main a:not(.download) { color: var(--ec-green); }
body[data-ec-shell="guide"] main .download {
  background: var(--ec-green);
  color: #0a1b11;
}
body[data-ec-shell="checkout"] main > .hero {
  gap: clamp(24px, 5vw, 62px);
  padding-block: clamp(35px, 6vw, 78px);
}
body[data-ec-shell="checkout"] main > .hero h1 {
  color: var(--ec-text);
  font-weight: 670;
  letter-spacing: -.045em;
}
body[data-ec-shell="checkout"] main > .hero h1 em { color: var(--ec-green); }
body[data-ec-shell="checkout"] main > .hero .intro { color: var(--ec-muted); }
body[data-ec-shell="checkout"] :is(.scope,.airdrop-framework,.participation-flow) {
  border-color: #496955;
  background-color: var(--ec-surface);
  color: var(--ec-text);
}
body[data-ec-shell="checkout"] .airdrop-framework .airdrop-note { color: var(--ec-muted); }

/* Reconcile older editorial, protocol and product surfaces with the same palette. */
body[data-ec-shell] :is(.fin-hero-links, .fin-inline-links, .j-article-body) a,
body[data-ec-shell] :is(.fin-kicker, .j-card-kicker, .j-category, .j-chip, .j-meta > span) { color: var(--ec-green); }
body[data-ec-shell] :is(.fin-review-strip, .fin-inline-links) { display: flex; flex-wrap: wrap; gap: 6px 18px; }
body[data-ec-shell] .fin-review-strip { padding-block: 12px; }
body[data-ec-shell] .fin-review-strip a { padding-block: 4px; }
body[data-ec-shell]:is([data-ec-ui="review"],.account-page) {
  background-image: none;
}
body[data-ec-shell][data-ec-ui="review"] main :is(.hero, .section) { background: none; }
body[data-ec-shell] main :is(.fin-editorial-hero, .page-head, .content-hero, .fin-quote-profile, .fin-quote-header) {
  background-color: var(--ec-bg);
  color: var(--ec-text);
  border-color: var(--ec-line);
}
body[data-ec-shell] main :is(.article h1, .content-hero h1, .page-head h1, .section h2, .hero h1, .m-method h1) { color: var(--ec-text); }
body[data-ec-shell] main :is(.hero h1 em, .hero h1 span, .article a:not(.button)) { color: var(--ec-green); }
body[data-ec-shell] main :is(.account-card,.account-section,.resource-card,.article-sidebar,.article-sources,
  .j-card,.j-tool-note,.fin-quote-profile,.m-metrics > *, .m-content-section,.m-profile-aside > *,
  .m-project,.m-related,.hero-diagram,.price-card,.module-card,.proof-card,.preview,.panel,.card) {
  background: var(--ec-surface);
  border-color: var(--ec-line);
  color: var(--ec-text);
  box-shadow: none;
}
body[data-ec-shell] main :is(.fin-quote-profile,.m-metrics,.m-content-section,.article,.account-card,.card) :is(h2,h3,h4) { color: var(--ec-text); }
body[data-ec-shell] main :is(.quote-tile,.fin-quote-tile,.article-meta,.fin-quote-profile header) { color: var(--ec-text); background-color: transparent; }
body[data-ec-shell] :is(.metrics-consent, .ec-schema-publisher, .ec-reading, .ec-related-reading, .ecosystem-section) {
  background-color: var(--ec-surface);
  color: var(--ec-text);
  border-color: var(--ec-line);
}
body[data-ec-shell] :is(.metrics-consent, .fin-quote-profile, .account-card) :is(p,small,dt) { color: var(--ec-muted); }
body[data-ec-shell] :is(.j-footer, .m-footer, .account-footer, .new-footer) {
  background: var(--ec-surface);
  color: var(--ec-muted);
  border-color: var(--ec-line);
}
body[data-ec-shell]:not([data-green-surface]) main :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  background-color: var(--ec-bg);
  color: var(--ec-text);
  border-color: #496955;
}
body[data-ec-shell]:not([data-green-surface]) :is(.button:not(.secondary):not(.subtle), .fin-button:not(.secondary)) {
  color: #0a1b11;
  background: var(--ec-green);
  border-color: var(--ec-green);
  border-radius: 7px;
}
body[data-ec-shell]:not([data-green-surface]) :is(.button.secondary,.button.subtle,.fin-button.secondary,.fin-star,.metrics-consent button) {
  color: var(--ec-text);
  background: var(--ec-raised);
  border-color: #496955;
  border-radius: 7px;
}
body[data-ec-shell]:not([data-green-surface]) :is(.fin-star[aria-pressed="true"],.metrics-consent .consent-yes) {
  color: #0a1b11;
  background: var(--ec-green);
}
body[data-ec-shell][data-ec-ui="chain"] #app > header.new-header { display: none !important; }
body[data-ec-shell] main :is(.page-head p, .article p, .metrics-consent p),
body[data-ec-shell] .metrics-consent :is(p,small) { color: var(--ec-muted); }
body[data-ec-shell] main :is(.page-head .eyebrow,.takeaway strong),
body[data-ec-shell] .metrics-consent strong { color: var(--ec-green); }
body[data-ec-shell] main :is(.m-metrics,.takeaway,.journey,.notice,.network) {
  background: var(--ec-surface);
  border-color: var(--ec-line);
  color: var(--ec-text);
}
body[data-ec-shell][data-ec-ui="asset"] main .m-dark-button {
  background: var(--ec-green);
  color: #0a1b11;
  border-color: var(--ec-green);
}
body[data-ec-shell][data-ec-ui="exchange"] .lab-strip { color: var(--ec-muted); }
body[data-ec-shell][data-ec-ui="exchange"] #scope-note {
  color: #f0c68c;
  border-color: #6c5235;
  background: #2b241a;
}
body[data-ec-shell="checkout"] main > .hero .text-link {
  padding: 9px 13px;
  border: 1px solid #496955;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ec-green);
  background: var(--ec-surface);
}

@media (max-width: 1040px) {
  #ec-site-shell .ec-shell-frame { width: calc(100% - 36px); gap: 12px; }
  #ec-site-shell .ec-shell-nav { display: none; }
  #ec-site-shell .ec-shell-mobile { display: block; }
}
@media (max-width: 560px) {
  #ec-site-shell .ec-shell-frame { min-height: 60px; width: calc(100% - 24px); }
  #ec-site-shell .ec-shell-start { display: none; }
  #ec-site-shell .ec-shell-brand { font-size: 17px; gap: 5px; }
  #ec-site-shell .ec-shell-actions { gap: 6px; }
  #ec-site-shell .ec-shell-actions summary { padding-inline: 7px; }
}
