/* Bundled Crypto winter stylesheet (0 @import waterfall).
 * Source modules (edit these and re-run bundle_css_and_sitemaps.py):
 *   tokens.css, base.css, content.css, markets.css, frost.css, directory.css
 */


/* === tokens.css === */
:root {
  --cw-bg: #0b1320;
  --cw-header: #0d1626;
  --cw-surface: #121e31;
  --cw-raised: #18273e;
  --cw-input: #0c1524;
  --cw-text: #f3f6fc;
  --cw-muted: #9eb0c6;
  --cw-line: rgba(168, 206, 240, 0.14);
  --cw-line-strong: rgba(176, 214, 248, 0.26);
  --cw-accent: #5ad0fa;
  --cw-accent-hover: #9be6ff;
  --cw-accent-soft: rgba(86, 208, 252, 0.14);
  --cw-ink: #04101d;
  --cw-success: #86e0b3;
  --cw-danger: #ff9c94;
  --cw-info: #9fd0fb;
  --cw-warning: #f5ca7f;
  --cw-gradient: linear-gradient(135deg, #62dcff 0%, #3b82ff 100%);
  --cw-ambient:
    radial-gradient(ellipse 62% 82% at 10% 18%, rgba(96, 168, 238, 0.22), transparent 62%),
    radial-gradient(ellipse 54% 74% at 90% 86%, rgba(78, 190, 252, 0.12), transparent 58%),
    linear-gradient(180deg, #0b1423 0%, #111e33 52%, #0a1220 100%);
  --cw-shadow: 0 26px 68px rgba(1, 5, 14, 0.72), 0 6px 20px rgba(2, 8, 20, 0.48);
  --cw-sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  --cw-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}


/* === base.css === */
html[data-crypto-winter] {
  color-scheme: dark;
  color: var(--cw-text);
  background: var(--cw-bg);
  font-family: var(--cw-sans);
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-crypto-winter]:lang(zh-CN) :is(h1, h2, h3),
html[data-crypto-winter]:lang(zh) :is(h1, h2, h3) {
  letter-spacing: -0.025em;
}

html[data-crypto-winter] body,
html[data-crypto-winter] body[data-ec-shell] {
  --bg: var(--cw-bg);
  --paper: var(--cw-bg);
  --canvas: var(--cw-bg);
  --ink: var(--cw-text);
  --text: var(--cw-text);
  --white: var(--cw-surface);
  --surface: var(--cw-surface);
  --card: var(--cw-surface);
  --panel: var(--cw-surface);
  --raised: var(--cw-raised);
  --light: var(--cw-raised);
  --code: var(--cw-input);
  --muted: var(--cw-muted);
  --subtle: var(--cw-muted);
  --line: var(--cw-line);
  --soft-line: var(--cw-line);
  --green: var(--cw-accent);
  --lime: var(--cw-accent);
  --acid: var(--cw-accent);
  --mint: var(--cw-accent-soft);
  --green-dark: var(--cw-accent);
  --accent: var(--cw-accent);
  --violet: var(--cw-accent);
  --purple: var(--cw-accent);
  --blue: var(--cw-info);
  --navy: var(--cw-raised);
  --mono: var(--cw-mono);
  --sans: var(--cw-sans);
  --ec-bg: var(--cw-bg);
  --ec-surface: var(--cw-surface);
  --ec-raised: var(--cw-raised);
  --ec-line: var(--cw-line);
  --ec-text: var(--cw-text);
  --ec-muted: var(--cw-muted);
  --ec-soft: var(--cw-accent-soft);
  --ec-green: var(--cw-accent);
  --ec-green-hover: var(--cw-accent-hover);
  --pq-lilac: var(--cw-raised);
  --pq-violet: var(--cw-accent);
  color: var(--cw-text) !important;
  background: var(--cw-ambient) !important;
  background-attachment: fixed !important;
  background-color: var(--cw-bg) !important;
  font-family: var(--cw-sans);
  accent-color: var(--cw-accent);
}

html[data-crypto-winter] [hidden] { display: none !important; }
html[data-crypto-winter] :focus-visible { outline: 2px solid var(--cw-accent) !important; outline-offset: 3px; }
html[data-crypto-winter] ::selection { color: var(--cw-ink); background: var(--cw-accent); }
html[data-crypto-winter] a { color: var(--cw-accent); text-underline-offset: .2em; }
html[data-crypto-winter] :where(a:hover) { color: var(--cw-accent-hover); }
html[data-crypto-winter] :where(h1, h2, h3, th, label) { color: var(--cw-text); }
html[data-crypto-winter] :where(pre, code, kbd, samp) { font-family: var(--cw-mono); }
html[data-crypto-winter] :where(pre, .table-wrap) { max-width: 100%; overflow: auto; }

html[data-crypto-winter] :is(#ec-site-shell, .locale-header, body > header.header, body > header.top) {
  color: var(--cw-text);
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.88), rgba(8, 12, 20, 0.84)) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(168, 206, 240, 0.14) !important;
}
html[data-crypto-winter] #ec-site-shell {
  position: sticky;
  top: 0;
  box-shadow: inset 0 -1px 0 rgba(168, 206, 240, 0.12), 0 12px 34px rgba(2, 6, 14, 0.42);
}
html[data-crypto-winter] :is(.header-inner, .locale-top, .ec-shell-frame) { border-color: rgba(168, 206, 240, 0.14) !important; }
html[data-crypto-winter] .new-header .header-inner {
  background: var(--cw-surface);
  color: var(--cw-text);
}
html[data-crypto-winter] :is(.brand, .locale-brand, #ec-site-shell .ec-shell-brand) { color: #f4f8ff; }
html[data-crypto-winter] :is(.brand-mark, .brand > svg, #ec-site-shell .ec-shell-brand svg) { color: var(--cw-accent); stroke: var(--cw-accent); }
html[data-crypto-winter] a:is(.brand, .locale-brand, .ec-shell-brand):hover { color: var(--cw-accent-hover); }
html[data-crypto-winter] :is(#ec-site-shell,.header,.locale-header) :is(nav a, .locale-actions a) {
  color: #cddbeb;
  transition: color .16s ease, background .16s ease;
}
html[data-crypto-winter] :is(#ec-site-shell,.header,.locale-header) nav a:hover { color: var(--cw-accent-hover); }
html[data-crypto-winter] #ec-site-shell .ec-shell-nav > a,
html[data-crypto-winter] #ec-site-shell .ec-shell-nav details > summary {
  padding: 6px 11px;
  border-radius: 999px;
  color: #cddbeb;
}
html[data-crypto-winter] #ec-site-shell .ec-shell-nav > a:hover,
html[data-crypto-winter] #ec-site-shell .ec-shell-nav details > summary:hover,
html[data-crypto-winter] #ec-site-shell .ec-shell-nav details[open] > summary {
  background: rgba(168, 206, 240, 0.10);
  color: #ffffff;
}
html[data-crypto-winter] :is(.site-languages, .locale-languages, .mobile-nav, .ec-shell-languages, .ec-shell-mobile) > summary,
html[data-crypto-winter] #ec-site-shell .ec-shell-nav details > summary {
  color: #dce7f5;
  border-color: rgba(168, 206, 240, 0.22);
}
html[data-crypto-winter] :is(.site-languages, .locale-languages, .mobile-nav, .ec-shell-languages, .ec-shell-mobile) > summary {
  background-color: rgba(168, 206, 240, 0.07) !important;
  border-color: rgba(168, 206, 240, 0.24) !important;
  border-radius: 999px !important;
  padding-inline: 13px !important;
}
html[data-crypto-winter] :is(.site-languages, .locale-languages, .mobile-nav, .ec-shell-languages, .ec-shell-mobile) > summary:hover {
  border-color: rgba(90, 208, 250, 0.55) !important;
  background-color: rgba(90, 208, 250, 0.12) !important;
  color: var(--cw-accent-hover);
}
html[data-crypto-winter] :is(.mobile-nav, #ec-site-shell .ec-shell-mobile) nav,
html[data-crypto-winter] :is(.site-languages, #ec-site-shell .ec-shell-languages, #ec-site-shell .ec-shell-dropdown) > :is(nav, ul),
html[data-crypto-winter] #ec-site-shell .ec-shell-dropdown {
  background: rgba(13, 20, 31, 0.95) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: var(--cw-text) !important;
  border-color: rgba(176, 214, 248, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.14), 0 18px 44px rgba(2, 6, 14, 0.65) !important;
}
html[data-crypto-winter] #ec-site-shell .ec-shell-dropdown a {
  border-radius: 9px;
  color: #dce7f5;
}
html[data-crypto-winter] #ec-site-shell .ec-shell-dropdown a:is(:hover, [aria-current]) {
  background: rgba(168, 206, 240, 0.11) !important;
  color: var(--cw-accent-hover) !important;
}
html[data-crypto-winter] #ec-site-shell .ec-shell-start {
  border-radius: 999px !important;
  padding-inline: 16px !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(225, 248, 255, 0.55), 0 6px 20px rgba(78, 190, 252, 0.24);
}
html[data-crypto-winter] :is(footer, .footer, .site-footer, .new-footer, .m-footer, .j-footer) {
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.74) 0%, rgba(8, 14, 25, 0.92) 100%) !important;
  border-color: rgba(168, 206, 240, 0.16) !important;
  color: var(--cw-muted);
}
html[data-crypto-winter] :is(footer, .footer, .site-footer, .new-footer, .m-footer, .j-footer) :is(p, small, li) { color: var(--cw-muted); }
html[data-crypto-winter] :is(footer, .footer, .site-footer, .new-footer, .m-footer, .j-footer) a:hover { color: var(--cw-accent-hover); }

html[data-crypto-winter] :is(button, [type="button"], [type="submit"], .button, .btn, .locale-action):not(.link-button) {
  border-color: var(--cw-line-strong);
  color: var(--cw-text);
  background-color: rgba(22, 31, 46, 0.86);
  border-radius: 10px;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html[data-crypto-winter] :is(.button.primary, .primary-button, .btn-primary, .btn-lime, .locale-action.primary),
html[data-crypto-winter] #ec-site-shell .ec-shell-start {
  color: var(--cw-ink) !important;
  background: var(--cw-gradient) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), inset 0 -1px 0 rgba(4, 22, 52, 0.28), 0 0 0 1px rgba(130, 224, 255, 0.28), 0 10px 28px rgba(58, 164, 255, 0.42), 0 3px 10px rgba(2, 8, 22, 0.52);
}
html[data-crypto-winter] :is(.button.primary, .primary-button, .btn-primary, .btn-lime, .locale-action.primary):hover,
html[data-crypto-winter] #ec-site-shell .ec-shell-start:hover {
  color: var(--cw-ink) !important;
  background: var(--cw-gradient) !important;
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80), inset 0 -1px 0 rgba(4, 22, 52, 0.25), 0 0 0 1px rgba(154, 234, 255, 0.48), 0 14px 36px rgba(72, 184, 255, 0.56), 0 4px 12px rgba(2, 8, 22, 0.55);
}
html[data-crypto-winter] :is(.btn-outline, .button.secondary, .button.outline, .button:not(.primary), .locale-action:not(.primary)) {
  background: linear-gradient(180deg, rgba(28, 46, 74, 0.72) 0%, rgba(14, 24, 42, 0.88) 100%);
  border-color: rgba(164, 214, 250, 0.34) !important;
  color: #eef6ff;
  box-shadow: inset 0 1px 0 rgba(224, 244, 255, 0.22), 0 6px 18px rgba(2, 7, 18, 0.44);
}
html[data-crypto-winter] :is(.btn-outline, .button:not(.primary), .locale-action:not(.primary)):hover {
  color: #ffffff;
  border-color: rgba(98, 220, 255, 0.68) !important;
  background: linear-gradient(180deg, rgba(42, 84, 130, 0.78) 0%, rgba(18, 40, 68, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(232, 248, 255, 0.34), 0 8px 24px rgba(72, 184, 255, 0.26);
}
html[data-crypto-winter] :is(button, input, select, textarea):disabled { opacity: .55; }
html[data-crypto-winter] :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"],
  input[type="password"], input[type="url"], input[type="number"], input[type="file"], select, textarea) {
  background-color: var(--cw-input) !important;
  border-color: rgba(168, 206, 240, 0.24) !important;
  color: var(--cw-text) !important;
  border-radius: 10px;
}
html[data-crypto-winter] :is(input, textarea)::placeholder { color: #8f99aa; opacity: 1; }

html[data-crypto-winter] .pq-service-home .header {
  box-shadow: 0 3px 26px #0004;
}
html[data-crypto-winter] .pq-service-home .brand-mark {
  color: var(--cw-accent);
  background: #0c1c2e;
  border-color: rgba(90, 208, 250, 0.34);
  border-radius: 10px;
}
html[data-crypto-winter] .pq-service-home .site-nav a:first-child { color: var(--cw-accent); }
html[data-crypto-winter] .pq-service-hero {
  position: relative;
  isolation: isolate;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.35rem, 5.8vw, 5.9rem);
}
html[data-crypto-winter] .pq-service-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, var(--cw-bg), transparent 28%, var(--cw-bg) 94%),
    linear-gradient(0deg, var(--cw-bg), transparent 48%, transparent 80%, var(--cw-bg)),
    repeating-linear-gradient(0deg, transparent 0 37px, #9dadc42a 37px 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, #9dadc42a 37px 38px);
  opacity: .38;
}
html[data-crypto-winter] .pq-service-hero h1 {
  margin: 0;
  color: var(--cw-text);
  font-size: clamp(2.5rem, 5vw, 5.35rem);
  font-weight: 725;
  letter-spacing: -.055em;
}
html[data-crypto-winter] .pq-service-hero h1 span {
  margin-top: .55rem;
  color: #c7cfde;
  font-size: .584em;
  letter-spacing: -.028em;
  text-wrap: balance;
}
html[data-crypto-winter] .pq-service-hero .intro {
  color: var(--cw-muted);
  font-size: clamp(1rem, 1.38vw, 1.18rem);
  line-height: 1.65;
}
html[data-crypto-winter] .pq-service-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.35rem;
}
html[data-crypto-winter] .pq-service-hero .hero-actions .button { min-height: 44px; }
html[data-crypto-winter] .pq-service-scope { color: var(--cw-muted); }
html[data-crypto-winter] .pq-service-section { border-color: var(--cw-line); }
html[data-crypto-winter] .pq-service-section > h2 { color: var(--cw-text); letter-spacing: -.025em; }
html[data-crypto-winter] .pq-service-card {
  background: linear-gradient(145deg, var(--cw-raised), var(--cw-surface) 64%);
  border: 1px solid var(--cw-line);
  border-radius: 14px;
}
html[data-crypto-winter] .pq-service-card:first-child { border-color: rgba(90, 208, 250, 0.42); }
html[data-crypto-winter] .pq-service-card h3 { color: var(--cw-text); letter-spacing: -.01em; }
html[data-crypto-winter] .pq-service-card p { color: var(--cw-muted); }
html[data-crypto-winter] :is(.pq-service-links, .pq-reference-links) a { color: var(--cw-accent); }
html[data-crypto-winter] :is(.pq-service-links, .pq-reference-links) a:hover { color: var(--cw-accent-hover); }

html[data-crypto-winter] :is(.pq-status, .pq-notice),
html[data-crypto-winter] .pq-service-record.pq-status {
  color: var(--cw-text);
  background:
    radial-gradient(ellipse at 96% 0, #272c36, transparent 58%),
    linear-gradient(140deg, var(--cw-raised), var(--cw-surface) 76%);
  border-color: var(--cw-line-strong);
  border-radius: 14px;
}
html[data-crypto-winter] .pq-service-record.pq-status { box-shadow: var(--cw-shadow); }
html[data-crypto-winter] :is(.pq-status, .pq-notice) h2 { color: var(--cw-text); letter-spacing: -.018em; }
html[data-crypto-winter] :is(.pq-status, .pq-notice) :is(p, time, dt, th, summary) { color: var(--cw-muted); }
html[data-crypto-winter] :is(.pq-status, .pq-notice) a { color: var(--cw-accent); }
html[data-crypto-winter] .pq-status-fields {
  border-color: var(--cw-line);
  background: var(--cw-line);
}
html[data-crypto-winter] .pq-status-fields > div { background: var(--cw-input); }
html[data-crypto-winter] .pq-status [data-pq-state] { color: var(--cw-muted); }
html[data-crypto-winter] .pq-status-nodes li { border-color: var(--cw-line); background: var(--cw-input); }
html[data-crypto-winter] .pq-status-nodes span { color: var(--cw-muted); }
html[data-crypto-winter] .pq-status-fields dd { color: var(--cw-text); }
html[data-crypto-winter] .pq-service-record [data-pq-field="height"] {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  color: var(--cw-accent);
  font-variant-numeric: tabular-nums;
}
html[data-crypto-winter] .pq-service-record [data-pq-field="node_count"] {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
html[data-crypto-winter] .pq-status :is(pre, code, .pq-digest code) {
  color: var(--cw-accent-hover);
  background: var(--cw-input);
}
html[data-crypto-winter] .pq-status :is(.pq-status-nodes, .pq-digest, th, td) { border-color: var(--cw-line); }

html[data-crypto-winter] :is(.inner-page .page-head, .q-hero, .manifesto, .architecture, .intro:not(p):not(.locale-home .intro)) {
  background-color: var(--cw-surface);
  border-color: rgba(168, 206, 240, 0.22);
  color: var(--cw-text);
}
html[data-crypto-winter] .inner-page .page-head {
  border: 1px solid rgba(174, 213, 243, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 62% 72% at 92% 0%, rgba(96, 166, 234, 0.22), transparent 56%),
    linear-gradient(142deg, #0d1624 0%, #111c2d 62%, #152438 100%) !important;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.18), 0 18px 48px rgba(2, 6, 14, 0.44);
}
html[data-crypto-winter] :is(.inner-page, .home-page) :is(.panel, .doc, .faq, .pillar, .launch-card, .milestone, .detail-item, .ecosystem-cards > a) {
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%) !important;
  border-color: rgba(168, 206, 240, 0.18) !important;
  color: var(--cw-text) !important;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12);
}
html[data-crypto-winter] .inner-page .page-head :is(h1, .eyebrow) { color: #f4f8ff; }
html[data-crypto-winter] .inner-page .page-head p { color: #b7c9df; }
html[data-crypto-winter] :is(.inner-page, .home-page) :is(.panel, .doc, .faq, .pillar, .launch-card, .milestone) p { color: var(--cw-muted); }
html[data-crypto-winter] :is(.inner-page, .home-page) :is(.text-link, .doc-number, .section-kicker) { color: var(--cw-accent); }
html[data-crypto-winter] :is(.inner-page, .home-page) :is(.note, .timeline) {
  color: var(--cw-text);
  background: var(--cw-raised);
  border-color: var(--cw-line);
}
html[data-crypto-winter] :is(.inner-page, .home-page) :is(.badge-green, .badge-amber) {
  background: var(--cw-accent-soft);
  border-color: rgba(90, 208, 250, 0.38);
  color: var(--cw-accent-hover);
}
html[data-crypto-winter] .timeline .milestone.done .dot { background: var(--cw-success); }
html[data-crypto-winter] :is(.q-art, .exchange-entry, .principle-strip, .launch-heading, .q-hero .hero-caption) {
  color: var(--cw-text);
  background: var(--cw-raised);
  border-color: var(--cw-line);
}
html[data-crypto-winter] .q-hero :is(.q-title, .art-coordinate) { color: var(--cw-text); }
html[data-crypto-winter] :is(.ecosystem-bar, .ecosystem-section, .ec-schema-publisher) {
  background: var(--cw-header) !important;
  border-color: var(--cw-line) !important;
  color: var(--cw-muted);
}
html[data-crypto-winter] .skip-link:focus, html[data-crypto-winter] .ec-shell-skip:focus {
  background: var(--cw-gradient);
  color: var(--cw-ink);
}
@media (max-width: 760px) {
  html[data-crypto-winter] .pq-service-hero::before { inset-inline-start: 0; }
  html[data-crypto-winter] .pq-service-hero h1 { font-size: clamp(2.3rem, 10vw, 3.9rem); }
  html[data-crypto-winter] .pq-service-hero h1 span { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-crypto-winter] { scroll-behavior: auto; }
}


/* === content.css === */
/* Editorial pages, browser tools and report readers. */
html[data-crypto-winter] body:is([data-ec-ui="tools"], [data-green-surface="tools"], .j-page, .j-tool-runtime, .account-page, .locale-hub) {
  --bg: var(--cw-bg);
  --surface: var(--cw-surface);
  --ink: var(--cw-text);
  --muted: var(--cw-muted);
  --line: var(--cw-line);
  --green: var(--cw-accent);
  --green-dark: var(--cw-accent);
  --mint: var(--cw-raised);
  --code: var(--cw-input);
  --red: var(--cw-danger);
  --amber: var(--cw-warning, #ebc380);
  --shadow: 0 18px 40px #0003;
  --j-ink: var(--cw-text);
  --j-muted: var(--cw-muted);
  --j-paper: var(--cw-bg);
  --j-line: var(--cw-line);
  --j-purple: var(--cw-accent);
}

html[data-crypto-winter] body:is([data-ec-ui="tools"], [data-green-surface="tools"], .j-tool-runtime) {
  --gh-bg: var(--cw-bg);
  --gh-surface: var(--cw-surface);
  --gh-raised: var(--cw-raised);
  --gh-input: var(--cw-input);
  --gh-line: var(--cw-line);
  --gh-strong-line: var(--cw-line);
  --gh-ink: var(--cw-text);
  --gh-muted: var(--cw-muted);
  --gh-green: var(--cw-accent);
  --gh-deep: var(--cw-ink);
  --gh-soft: color-mix(in srgb, var(--cw-accent) 11%, var(--cw-surface));
}

/* Cards share a frosted obsidian-ice base, with raised glass surfaces for controls. */
html[data-crypto-winter] body :is(
  .tool-card, .guide-card, .reading-card, .resource-card, .j-tool-card,
  .j-card, .j-search-result, .j-toc, .j-aside-tool, .reader-controls,
  .article-sidebar, .article-sources, .sidebar-callout, .ec-related-reading,
  .ec-schema-publisher, .ec-reading, .locale-card, .ec-schema-credit
) {
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%);
  border-color: rgba(168, 206, 240, 0.18);
  color: var(--cw-text);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12), 0 10px 28px rgba(2, 6, 14, 0.28);
}

html[data-crypto-winter] body :is(
  .content-note, .editorial-note, .takeaway, .resource-ribbon, .service-bridge,
  .j-tool-note, .j-related, .ec-news-related, .ec-news-sources, .ec-news-credit-only
) {
  background: linear-gradient(150deg, rgba(24, 36, 54, 0.72), rgba(14, 21, 33, 0.88));
  border-color: rgba(168, 206, 240, 0.20);
  color: var(--cw-text);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.10);
}

html[data-crypto-winter] body :is(
  .tool-card, .guide-card, .reading-card, .resource-card, .j-card, .j-tool-card, .locale-card, .ec-schema-credit
) {
  border-radius: 16px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

html[data-crypto-winter] body .ec-schema-credit,
html[data-crypto-winter] body .ec-schema-identity {
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.82), rgba(13, 19, 30, 0.94) 80%) !important;
  border-color: rgba(168, 206, 240, 0.20) !important;
  color: var(--cw-text) !important;
}
html[data-crypto-winter] body :is(.ec-schema-credit, .ec-schema-identity) :is(h2, h3) { color: #f4f8ff !important; }
html[data-crypto-winter] body :is(.ec-schema-credit, .ec-schema-identity) p { color: #c4d3e6 !important; }
html[data-crypto-winter] body .ec-schema-credit .ec-schema-kicker { color: #9fd0fb !important; }
html[data-crypto-winter] body .ec-schema-credit :is(figcaption, small) { color: #9bb0c9 !important; }
html[data-crypto-winter] body :is(.ec-schema-credit, .ec-schema-identity, .ec-schema-publisher) a { color: var(--cw-accent) !important; }
html[data-crypto-winter] body :is(.ec-schema-credit, .ec-schema-identity, .ec-schema-publisher) a:hover { color: var(--cw-accent-hover) !important; }
html[data-crypto-winter] body .ec-schema-credit img {
  border: 1px solid rgba(168, 206, 240, 0.22);
  border-radius: 12px;
  background: #070b13;
}

html[data-crypto-winter] body :is(
  .tool-card, .guide-card, .reading-card, .resource-card, .j-card, .j-tool-card, .locale-card
):is(:hover, :focus-within) {
  border-color: rgba(174, 213, 243, 0.42);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.22), 0 16px 36px rgba(4, 12, 26, 0.44);
  transform: translateY(-2px);
}

html[data-crypto-winter] body :is(
  .reading-card p, .reading-top, .reading-foot, .tool-card p, .tool-subtitle,
  .j-tool-card p, .j-tool-card small, .j-card-meta, .j-caption, .j-article-meta,
  .article-deck, .article-meta, .article-next p, .breadcrumbs, .editorial-note p,
  .locale-intro, .locale-card p, .locale-language-note, .guide-card p
) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body :is(
  .tool-icon, .resource-symbol, .tool-heading .pill, .j-author-mark, .reader-language, .file-badge
) {
  background: color-mix(in srgb, var(--cw-accent) 9%, var(--cw-surface));
  border-color: var(--cw-line);
  color: var(--cw-accent);
}

/* Long-form text and code examples. */
html[data-crypto-winter] body :is(.j-top, .j-article-head, .content-hero, .j-library, .locale-hub) {
  border-color: var(--cw-line);
}

html[data-crypto-winter] body :is(.j-prose, .j-policy, .article) :is(p, li, dd) {
  color: var(--cw-muted);
  line-height: 1.72;
}

html[data-crypto-winter] body :is(.j-prose, .j-policy, .article) :is(h2, h3, strong) {
  color: var(--cw-text);
}

html[data-crypto-winter] body :is(
  .j-prose, .j-policy, .j-toc, .j-related, .article, .article-sources,
  .ec-news-sources, .ec-news-related, .reading-card, .locale-card, .ec-related-reading
) a:not(.button) {
  color: var(--cw-accent);
  text-underline-offset: 0.2em;
}

html[data-crypto-winter] body :is(
  .j-prose pre, .j-policy pre, .article pre, .code-example, .ec-news-code, .reader-code,
  .tool-guide pre, .floating-code
) {
  background: #060a12;
  border-color: rgba(168, 206, 240, 0.16);
  border-radius: 12px;
  color: #cfe6fc;
}

html[data-crypto-winter] body :is(.code-example, .ec-news-code, .j-prose pre) :is(code, pre) {
  background: transparent;
  color: inherit;
}

html[data-crypto-winter] body :is(.code-example figcaption, .line-numbers, .ec-news-code figcaption) {
  color: var(--cw-muted);
  border-color: var(--cw-line);
}

html[data-crypto-winter] body :is(.j-prose, .article) blockquote {
  background: var(--cw-raised);
  color: var(--cw-muted);
  border-color: var(--cw-accent);
}

/* Browser tool inputs remain distinct from generated output. */
html[data-crypto-winter] body :is(
  .tool-layout .sidebar, .workbench, .workbench-bar, .editor-panel, .editor,
  .amount-workbench, .hash-workbench, .hash-body, .metrics-consent, .abi-visual,
  .resource-controls, .tool-guide, .dialog, .search-results a
) {
  background: var(--cw-surface);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body :is(
  .editor-label, .editor-foot, .run-bar, .tool-layout .segmented, .hash-result,
  .amount-result, .output-empty, .code-example button, .close-dialog, .dialog-search input,
  .evm-result, .evm-details, .evm-empty, .function-summary
) {
  background: var(--cw-raised);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body :is(.code-editor, .output-editor, .hash-text, .file-drop, .diff-output) {
  background: var(--cw-input);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body :is(.code-editor, .output-editor) textarea {
  color: var(--cw-text);
  background: transparent;
  caret-color: var(--cw-accent);
}

html[data-crypto-winter] body :is(
  .editor-label label, .editor-label small, .editor-foot span, .sidebar-note,
  .sidebar-heading, .run-bar > span, .output-empty span, .output-empty small,
  .hash-result-label, .tool-guide p, .tool-guide li, .tool-empty-message, .file-drop span
) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body :is(
  .hash-result output:not(.empty), .amount-value, .file-drop .icon, .code-lines .num
) {
  color: var(--cw-accent);
}

html[data-crypto-winter] body .code-lines .key { color: var(--cw-info); }
html[data-crypto-winter] body .code-lines .str { color: var(--cw-success); }

html[data-crypto-winter] body :is(.hash-result output, .hash-text, .tool-main .param-table) {
  overflow-wrap: anywhere;
}

html[data-crypto-winter] body :is(.j-filters button, .j-search-scope button, .segment, .content-tabs a) {
  color: var(--cw-muted);
  border-color: var(--cw-line);
}

html[data-crypto-winter] body :is(
  .tool-layout .sidebar a.active, .mobile-tools a.active, .segmented .active,
  .segmented [aria-pressed="true"], .j-filters button[aria-pressed="true"],
  .j-search-scope button[aria-pressed="true"], .content-tabs [aria-current="page"], .file-drop.dragging
) {
  background: color-mix(in srgb, var(--cw-accent) 13%, var(--cw-surface));
  color: var(--cw-accent);
  border-color: color-mix(in srgb, var(--cw-accent) 45%, var(--cw-line));
}

html[data-crypto-winter] body :is(.result-status, .account-notice) {
  background: var(--cw-raised);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body :is(.result-status.success, .account-notice[data-kind="success"]) {
  background: color-mix(in srgb, var(--cw-success) 11%, var(--cw-surface));
  border-color: color-mix(in srgb, var(--cw-success) 42%, var(--cw-line));
  color: var(--cw-success);
}

html[data-crypto-winter] body :is(.result-status.error, .account-notice[data-kind="error"]) {
  background: color-mix(in srgb, var(--cw-danger) 12%, var(--cw-surface));
  border-color: color-mix(in srgb, var(--cw-danger) 42%, var(--cw-line));
  color: var(--cw-danger);
}

html[data-crypto-winter] body .result-status.warning {
  background: color-mix(in srgb, var(--cw-warning, #ebc380) 11%, var(--cw-surface));
  border-color: color-mix(in srgb, var(--cw-warning, #ebc380) 42%, var(--cw-line));
  color: var(--cw-warning, #ebc380);
}

/* Account and evidence layouts. PDF document colors are independent of their reader UI. */
html[data-crypto-winter] body.account-page :is(
  .account-card, .account-section, .account-plan, .reader-detail .finding-card,
  .reader-appendix, .report-notes
),
html[data-crypto-winter] body[data-ec-ui="review"] main :is(.metric, .card, .finding, .downloads a) {
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.82), rgba(13, 19, 30, 0.94) 80%);
  border-color: rgba(168, 206, 240, 0.20);
  border-radius: 16px;
  color: var(--cw-text);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12), 0 14px 36px rgba(2, 6, 14, 0.36);
}

html[data-crypto-winter] body.account-page .reader-controls {
  border-radius: 14px;
  border: 1px solid rgba(168, 206, 240, 0.18);
  padding: 14px 16px;
}

html[data-crypto-winter] body.account-page .account-intro .eyebrow {
  color: #9fd0fb;
}

html[data-crypto-winter] body.locale-hub .pq-network-main > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

html[data-crypto-winter] body.locale-hub .pq-network-main > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(168, 206, 240, 0.20);
  background: rgba(168, 206, 240, 0.06);
  color: #dceafa;
  font-size: .88rem;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

html[data-crypto-winter] body.locale-hub .pq-network-main > nav a:is(:hover, [aria-current="page"]) {
  border-color: rgba(90, 208, 250, 0.55);
  background: rgba(90, 208, 250, 0.12);
  color: var(--cw-accent-hover);
}

@media (prefers-reduced-motion: reduce) {
  html[data-crypto-winter] body :is(
    .tool-card, .guide-card, .reading-card, .resource-card, .j-card, .j-tool-card, .locale-card
  ):is(:hover, :focus-within) {
    transform: none;
  }
}

html[data-crypto-winter] body.account-page :is(.reader-summary.report-summary, .report-summary span),
html[data-crypto-winter] body[data-ec-ui="review"] main :is(.notice, .scope) {
  background: var(--cw-raised);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body.account-page .reader-detail .finding-card :is(h3, h4, dt, summary, .reader-code) {
  color: var(--cw-text);
}

html[data-crypto-winter] body.account-page :is(.reader-detail .finding-card dd, .reader-detail .finding-card p, .account-fine, .account-intro p),
html[data-crypto-winter] body[data-ec-ui="review"] main :is(.lead, .hash, .muted) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body:is(.account-page, [data-ec-ui="review"]) :is(.severity, .finding .badge) {
  color: var(--cw-warning, #ebc380);
  background: color-mix(in srgb, var(--cw-warning, #ebc380) 10%, var(--cw-surface));
}

html[data-crypto-winter] body[data-ec-ui="review"] main :is(.metric b, .downloads a, .finding a) {
  color: var(--cw-accent);
}

html[data-crypto-winter] body.account-page #report-language :is(option, optgroup) {
  background: var(--cw-input);
  color: var(--cw-text);
}

/* Legacy landing pages and transaction-reference shells. */
html[data-crypto-winter] body.locale-hub {
  background: radial-gradient(ellipse at 14% 0%, #1e243037, transparent 42rem), var(--cw-bg);
  color: var(--cw-text);
}

html[data-crypto-winter] body.locale-hub :is(.locale-header, .locale-footer) {
  background: var(--cw-header);
  border-color: var(--cw-line);
  color: var(--cw-muted);
}

html[data-crypto-winter] body.locale-hub .locale-action:not(.locale-secondary) {
  background: var(--cw-gradient);
  border-color: transparent;
  color: var(--cw-ink);
}

html[data-crypto-winter] body.locale-hub .locale-action.locale-secondary {
  background: var(--cw-raised);
  border-color: var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body.locale-hub .locale-state {
  color: var(--cw-warning, #ebc380);
}

html[data-crypto-winter] body:is([data-ec-ui="participate"], [data-ec-ui="exchange"]) :is(
  .panel, .wallet-panel, .step, .hero-diagram, .journey, .quote, .receipt,
  .terms-list, .checkout-checklist li, .wallet-help, .live-status, .message
) {
  background: var(--cw-surface);
  border-color: var(--cw-line);
  color: var(--cw-text);
  box-shadow: none;
}

html[data-crypto-winter] body:is([data-ec-ui="participate"], [data-ec-ui="exchange"]) :is(
  .muted, .fine, .step-hint, .terms-list small, .hero p, .panel > p, .receipt p
) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body:is([data-ec-ui="participate"], [data-ec-ui="exchange"]) :is(
  .message.error, .quote.error, .feedback.error, .error
) {
  color: var(--cw-danger);
}

html[data-crypto-winter] body:is([data-ec-ui="participate"], [data-ec-ui="exchange"]) :is(.scope, .warning) {
  background: color-mix(in srgb, var(--cw-warning, #ebc380) 11%, var(--cw-surface));
  border-color: var(--cw-line);
  color: var(--cw-warning, #ebc380);
}

/* The browser workbench predates the site's common header and field styles. */
html[data-crypto-winter] body[data-ec-ui="tools"] .ecosystem-topbar {
  background: var(--cw-header);
  color: var(--cw-muted);
  border-bottom: 1px solid var(--cw-line);
}

html[data-crypto-winter] body[data-ec-ui="tools"] .ecosystem-topbar .shell > :is(strong, a) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body[data-ec-ui="tools"] .ecosystem-topbar .shell > a:hover {
  color: var(--cw-accent);
}

html[data-crypto-winter] body[data-ec-ui="tools"] #app > .header :is(.header-inner, .header-actions .search-trigger) {
  background: var(--cw-header);
  border: 1px solid var(--cw-line);
  color: var(--cw-text);
}

html[data-crypto-winter] body[data-ec-ui="tools"] #app > .header :is(.header-button, .header-button:hover) {
  background: var(--cw-gradient);
  border-color: transparent;
  color: var(--cw-ink) !important;
}

html[data-crypto-winter] body[data-ec-ui="tools"] #app > .header .brand-mark,
html[data-crypto-winter] body[data-ec-ui="tools"] #app > .header .search-trigger kbd {
  background: var(--cw-raised);
  border-color: var(--cw-line);
  color: var(--cw-accent);
}

html[data-crypto-winter] body[data-ec-ui="tools"] #app > .header .brand-name small {
  color: var(--cw-muted);
}

html[data-crypto-winter] body[data-ec-ui="tools"] :is(
  .tool-main .breadcrumbs a, .tool-main .breadcrumbs span, .editor-label label,
  .editor-label small, .editor-foot span, #output-empty span, #output-empty small,
  #standard-output-actions > span, .tool-main .run-bar > span, .tool-main .context-note,
  .metrics-consent p, .metrics-consent small, .metrics-consent b, .metrics-consent strong
) {
  color: var(--cw-muted);
}

html[data-crypto-winter] body[data-ec-ui="tools"] :is(.editor-label label, #standard-output-actions > span, .metrics-consent b) {
  color: var(--cw-text);
}

html[data-crypto-winter] body[data-ec-ui="tools"] :is(.editor-label label, #output-empty span) {
  font-size: 0.875rem;
}

html[data-crypto-winter] body[data-ec-ui="tools"] .metrics-consent button:not(.consent-yes) {
  background: var(--cw-raised);
  color: var(--cw-text);
  border-color: var(--cw-line);
}

html[data-crypto-winter] body[data-ec-ui="tools"] .metrics-consent .consent-yes {
  background: var(--cw-gradient);
  color: var(--cw-ink);
  border-color: transparent;
}

html[data-crypto-winter] body .j-prose .ec-news-code,
html[data-crypto-winter] body[data-ec-ui="participate"] .hero-art {
  background: var(--cw-input);
  color: var(--cw-text);
  border-color: var(--cw-line);
}

html[data-crypto-winter] body.account-page #report-static-overview {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
}

html[data-crypto-winter] body.account-page #report-static-overview :is(h2, h3) {
  color: var(--cw-text);
  margin: 0 0 .75rem;
}

html[data-crypto-winter] body.account-page #report-static-overview h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

html[data-crypto-winter] body.account-page #report-static-overview :is(p, li) {
  color: var(--cw-muted);
  line-height: 1.72;
}

html[data-crypto-winter] body.account-page #report-static-overview ol {
  margin: .75rem 0 1rem;
  padding-left: 1.35rem;
  display: grid;
  gap: .6rem;
}

html[data-crypto-winter] body.account-page #report-static-overview strong {
  color: var(--cw-text);
}

html[data-crypto-winter] body.account-page #report-static-overview code {
  background: rgba(168, 206, 240, 0.10);
  border: 1px solid rgba(168, 206, 240, 0.18);
  border-radius: 6px;
  padding: 1px 6px;
  color: #cfe8ff;
}


/* === markets.css === */
/* Market-directory layout and controls. Quotes use their own status colors. */
html[data-crypto-winter] .desk-market {
  --fin-ink: var(--cw-text);
  --fin-muted: var(--cw-muted);
  --fin-line: var(--cw-line);
  --fin-soft: var(--cw-raised);
  --fin-brand: var(--cw-accent);
  --fin-positive: var(--cw-success);
  --fin-negative: var(--cw-danger);
  --quiet-paper: var(--cw-bg);
  --quiet-ink: var(--cw-text);
  --quiet-green: var(--cw-accent);
  --quiet-muted: var(--cw-muted);
  --quiet-rule: var(--cw-line);
  --gh-bg: var(--cw-bg);
  --gh-surface: var(--cw-surface);
  --gh-raised: var(--cw-raised);
  --gh-input: var(--cw-input);
  --gh-soft: color-mix(in srgb, var(--cw-accent) 8%, var(--cw-surface));
  --gh-ink: var(--cw-text);
  --gh-muted: var(--cw-muted);
  --gh-line: var(--cw-line);
  --gh-strong-line: var(--cw-line);
  --gh-green: var(--cw-accent);
  --gh-deep: var(--cw-ink);
  --gh-error: var(--cw-danger);
  --market-paper: var(--cw-bg);
  --market-panel: var(--cw-surface);
  --market-border: var(--cw-line);
  --market-dark: var(--cw-text);
  --market-violet: var(--cw-accent);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] .fin-market-head {
  background:
    radial-gradient(ellipse 68% 78% at 88% 0%, rgba(96, 166, 234, 0.18), transparent 62%),
    radial-gradient(ellipse 46% 52% at 10% 90%, rgba(78, 190, 252, 0.06), transparent 60%),
    linear-gradient(180deg, #0b1321 0%, var(--cw-bg) 100%);
  border-bottom: 1px solid rgba(168, 206, 240, 0.14);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] .fin-market-head .fin-market-grid {
  background: linear-gradient(150deg, rgba(20, 31, 48, 0.84), rgba(11, 17, 27, 0.94));
  border: 1px solid rgba(168, 206, 240, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.14), 0 16px 40px rgba(2, 6, 14, 0.42);
}

html[data-crypto-winter] .desk-market .fin-market-grid .fin-card {
  border-color: rgba(168, 206, 240, 0.16);
  transition: background .16s ease, border-color .16s ease;
}

html[data-crypto-winter] .desk-market .fin-market-jumps a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 206, 240, 0.22);
  background: rgba(168, 206, 240, 0.06);
  color: #cfe4fa;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}

html[data-crypto-winter] .desk-market .fin-market-jumps a:hover {
  border-color: rgba(90, 208, 250, 0.55);
  background: rgba(90, 208, 250, 0.12);
  color: #a8eaff;
}

html[data-crypto-winter] .desk-market .fin-market-head .fin-market-grid .fin-card a,
html[data-crypto-winter] .desk-market .fin-table tbody a:not(.fin-button) {
  color: var(--cw-text);
}

html[data-crypto-winter] .desk-market .fin-market-head .fin-market-grid .fin-card a:hover,
html[data-crypto-winter] .desk-market .fin-table tbody a:not(.fin-button):hover,
html[data-crypto-winter] .desk-market[data-green-surface="market"] #directory .fin-project-purchase {
  color: var(--cw-accent);
}

html[data-crypto-winter] .desk-market .fin-table {
  color: var(--cw-text);
}

html[data-crypto-winter] .desk-market[data-ec-ui="market"] .fin-table :is(th, td) {
  border-color: var(--cw-line);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] :is(#directory, #compare) .fin-scroll {
  border-color: var(--cw-line);
  border-radius: 12px;
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] .fin-control :is(input, select) {
  background: var(--cw-input);
  color: var(--cw-text);
  border-color: var(--cw-line);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] :is(.fin-filter button, .fin-star, .fin-mobile-columns, .fin-pagination button) {
  background: rgba(168, 206, 240, 0.08);
  color: #e6f0fc;
  border-color: rgba(168, 206, 240, 0.22);
  border-radius: 999px;
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] :is(.fin-filter button, .fin-star, .fin-mobile-columns)[aria-pressed="true"] {
  border-color: var(--cw-accent);
  color: var(--cw-accent-hover);
  background: var(--cw-accent-soft);
}

html[data-crypto-winter] .desk-market #directory .fin-scroll:not([data-fin-wide]) .fin-star[aria-pressed="true"] {
  border-color: var(--cw-accent);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] .fin-quote-status [data-quote-status="current"],
html[data-crypto-winter] .fin-profile .fin-quote-profile [data-quote-status="current"],
html[data-crypto-winter] body:is(.desk-market, .fin-profile) :is(.fin-up, .m-change.positive, .fin-quote-badge[data-quote-status="current"]) {
  color: var(--cw-success);
}

html[data-crypto-winter] body:is(.desk-market, .fin-profile) :is(.fin-down, .m-change.negative) {
  color: var(--cw-danger);
}

html[data-crypto-winter] .desk-market[data-green-surface="market"] .fin-quote-status [data-quote-status="delayed"],
html[data-crypto-winter] .fin-profile .fin-quote-profile [data-quote-status="delayed"],
html[data-crypto-winter] body:is(.desk-market, .fin-profile) .fin-quote-badge[data-quote-status="delayed"] {
  color: var(--cw-warn, #f1bf8e);
}

/* Asset profiles and the market methodology page share the original data grid. */
html[data-crypto-winter] [data-ec-ui="asset"],
html[data-crypto-winter] body[data-ec-ui="market"]:not(.desk-market) {
  --fin-ink: var(--cw-text);
  --fin-muted: var(--cw-muted);
  --fin-line: var(--cw-line);
  --fin-brand: var(--cw-accent);
  --fin-positive: var(--cw-success);
  --fin-negative: var(--cw-danger);
  --violet: var(--cw-accent);
  --lime: var(--cw-accent);
  --light: var(--cw-raised);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) :is(.fin-quote-profile, .m-method, .m-metrics, .m-content-section, .m-profile-aside > *, .m-related) {
  color: var(--cw-text);
  border-color: var(--cw-line);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) :is(.fin-quote-profile, .m-metrics, .m-profile-aside > *, .m-faq details, .m-mini-card) {
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%);
  border-color: rgba(168, 206, 240, 0.20);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12), 0 12px 32px rgba(2, 6, 14, 0.34);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) .m-mini-card {
  transition: border-color .2s ease, transform .2s ease;
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) .m-mini-card:hover {
  border-color: rgba(174, 213, 243, 0.45);
  transform: translateY(-2px);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) :is(.m-facts, .m-checklist, .m-range, .m-data-table, .m-next-prev > a) {
  background: rgba(15, 23, 36, 0.78);
  color: var(--cw-text);
  border-color: rgba(168, 206, 240, 0.18);
  border-radius: 14px;
}

html[data-crypto-winter] .fin-profile :is(.m-content-section td, .m-content-section p, .m-coin-hero p, .m-faq p, .m-profile-aside p, .m-aside-project small, .m-aside-security small, .m-project p, .m-project-copy > small, .m-project-art > small),
html[data-crypto-winter] body[data-ec-ui="market"] .m-method p {
  color: var(--cw-muted);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) :is(.m-content-section a, .m-method p a, .m-aside-nav a:hover, .fin-quote-profile a, .m-project-secondary) {
  color: var(--cw-accent);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) :is(.m-dark-button, .m-lime-button) {
  background: var(--cw-gradient) !important;
  color: var(--cw-ink) !important;
  border: 1px solid rgba(132, 224, 255, 0.72) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(225, 248, 255, 0.56), 0 6px 22px rgba(78, 190, 252, 0.24);
}

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) .m-dark-button span {
  color: inherit;
}

html[data-crypto-winter] .fin-profile :is(.m-project, .m-coin-art) {
  color: var(--cw-text);
  background:
    radial-gradient(ellipse 68% 72% at 86% 12%, rgba(96, 166, 234, 0.20), transparent 60%),
    radial-gradient(ellipse 52% 62% at 14% 90%, rgba(78, 190, 252, 0.08), transparent 60%),
    linear-gradient(150deg, rgba(20, 31, 48, 0.86), rgba(11, 17, 27, 0.96));
  border: 1px solid rgba(168, 206, 240, 0.24);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.16), 0 18px 44px rgba(2, 6, 14, 0.42);
}

html[data-crypto-winter] .fin-profile .m-coin-hero {
  border: 1px solid rgba(174, 213, 243, 0.22);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  margin-top: 1rem;
  background:
    radial-gradient(ellipse 62% 72% at 92% 0%, rgba(96, 166, 234, 0.20), transparent 58%),
    linear-gradient(142deg, rgba(16, 25, 39, 0.92), rgba(10, 15, 24, 0.96));
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.16), 0 18px 48px rgba(2, 6, 14, 0.44);
}

html[data-crypto-winter] .fin-profile :is(.m-coin-art > div, .m-project-art > div) {
  border-color: var(--cw-line);
  box-shadow: 0 0 0 24px #a7b4ca08, 0 0 0 48px #a7b4ca06, 0 0 0 72px #a7b4ca04;
}

html[data-crypto-winter] .fin-profile .m-coin-mark {
  background: var(--cw-raised);
  color: var(--cw-text);
  border-color: var(--cw-line);
}

html[data-crypto-winter] .fin-profile .m-coin-mark.m-btc {
  color: var(--cw-accent);
}

html[data-crypto-winter] .fin-profile .m-project-tags > span {
  border-color: var(--cw-line);
  color: var(--cw-muted);
}

html[data-crypto-winter] .fin-profile .m-range-track { background: var(--cw-input); }
html[data-crypto-winter] .fin-profile .m-range-track i { background: var(--cw-gradient); }

html[data-crypto-winter] body:is(.fin-profile, [data-ec-ui="market"]) .fin-archive {
  color: var(--cw-warn, #f1bf8e);
  border-color: color-mix(in srgb, var(--cw-warn, #f1bf8e) 34%, var(--cw-line));
  background: color-mix(in srgb, var(--cw-warn, #f1bf8e) 8%, var(--cw-surface));
}


/* === frost.css === */
/* The frost layer sits between the panel background and its content. */
html[data-crypto-winter] {
  --cw-ice-edge: #96bed9;
  --cw-ice-rim: #afd9f750;
  --cw-ice-glow: #a0d4f423;
  --cw-ice-texture: url("/chain-assets/crypto-winter/frost-edge.png");
}

html[data-crypto-winter] .pq-service-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 32%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 76% 15%, #8bb9db24, transparent 60%),
    radial-gradient(ellipse at 100% 55%, #76a5c512, transparent 62%);
  opacity: .84;
}

html[data-crypto-winter] :is(.pq-status, .pq-notice, .inner-page .page-head, .pq-service-card) {
  position: relative;
  isolation: isolate;
}

html[data-crypto-winter] .pq-status,
html[data-crypto-winter] .pq-service-record.pq-status {
  border-color: var(--cw-ice-rim);
  background:
    radial-gradient(ellipse at 92% 0, #4566814d, transparent 58%),
    linear-gradient(145deg, #1d2530, var(--cw-surface) 74%);
  box-shadow: inset 0 1px #c8e7fb30, 0 16px 50px #0005;
}
html[data-crypto-winter] .pq-service-record.pq-status {
  --cw-frost-strength: .89;
}

html[data-crypto-winter] :is(.pq-status, .pq-notice, .inner-page .page-head)::after,
html[data-crypto-winter] .pq-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--cw-ice-texture) right top / min(96%, 31rem) auto no-repeat;
  opacity: var(--cw-frost-strength, .63);
}

html[data-crypto-winter] :is(.pq-status, .pq-notice, .inner-page .page-head)::after {
  animation: cw-rime-forms 1.55s cubic-bezier(.23, .64, .32, 1) both;
}

html[data-crypto-winter] .pq-notice::after {
  --cw-frost-strength: .49;
  background-size: min(65%, 24rem) auto;
}

html[data-crypto-winter] .inner-page .page-head::after {
  --cw-frost-strength: .72;
  background-size: min(58%, 38rem) auto;
}

html[data-crypto-winter] .pq-service-card {
  transition: border-color .28s ease, box-shadow .28s ease;
}

html[data-crypto-winter] .pq-service-card::after {
  background-size: min(88%, 19rem) auto;
  opacity: .22;
  clip-path: circle(44% at 100% 0);
  transition: opacity .36s ease-out, clip-path .52s cubic-bezier(.23, .64, .32, 1);
}

html[data-crypto-winter] .pq-service-card:focus-within {
  border-color: var(--cw-ice-edge);
  box-shadow: inset 0 1px #c8e7fb36, 0 0 22px var(--cw-ice-glow);
}
html[data-crypto-winter] .pq-service-card:focus-within::after {
  opacity: .78;
  clip-path: circle(150% at 100% 0);
}

@media (hover: hover) {
  html[data-crypto-winter] .pq-service-card:hover {
    border-color: var(--cw-ice-edge);
    box-shadow: inset 0 1px #c8e7fb36, 0 0 22px var(--cw-ice-glow);
  }
  html[data-crypto-winter] .pq-service-card:hover::after {
    opacity: .78;
    clip-path: circle(150% at 100% 0);
  }
}

html[data-crypto-winter] :is(.fin-market-head, .m-coin-hero, .content-hero, .j-article-head, .locale-main, .account-shell .account-card, .j-tool-runtime .j-workbench) {
  position: relative;
  isolation: isolate;
}

html[data-crypto-winter] :is(.fin-market-head, .m-coin-hero, .content-hero, .j-article-head, .locale-main, .account-shell .account-card, .j-tool-runtime .j-workbench)::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--cw-ice-texture) right top / min(64%, 34rem) auto no-repeat;
  opacity: .42;
}

@keyframes cw-rime-forms {
  from { opacity: 0; clip-path: circle(0 at 100% 0); }
  30% { opacity: calc(var(--cw-frost-strength, .63) * .72); }
  to { opacity: var(--cw-frost-strength, .63); clip-path: circle(150% at 100% 0); }
}

@media (max-width: 760px) {
  html[data-crypto-winter] .pq-service-hero::after { inset-inline-start: 0; }
  html[data-crypto-winter] .pq-status::after { background-size: min(82%, 25rem) auto; }
  html[data-crypto-winter] .inner-page .page-head::after { background-size: min(64%, 26rem) auto; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-crypto-winter] :is(.pq-status, .pq-notice, .inner-page .page-head)::after { animation: none; }
  html[data-crypto-winter] .pq-service-card,
  html[data-crypto-winter] .pq-service-card::after { transition: none; }
}
@media (forced-colors: active) {
  html[data-crypto-winter] .pq-service-hero::after,
  html[data-crypto-winter] :is(.fin-market-head, .m-coin-hero, .content-hero, .j-article-head, .locale-main, .account-shell .account-card, .j-tool-runtime .j-workbench)::after,
  html[data-crypto-winter] :is(.pq-status, .pq-notice, .inner-page .page-head, .pq-service-card)::after { display: none; }
}


/* === directory.css === */
html[data-crypto-winter] body.pq-service-home .pq-service-hero {
  padding-block: clamp(1.9rem, 4vw, 3.65rem);
}
.pq-service-home #service-directory,
.pq-service-home #browser-tools,
.pq-service-home #market-quotes {
  scroll-margin-block-start: 5rem;
}
.pq-service-home .pq-service-card h3 {
  margin: 0;
  line-height: 1.3;
}
.pq-service-home .pq-service-card .pq-service-links {
  padding-top: .25rem;
}
.cw-tool-grid, .cw-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.cw-tool-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
html[data-crypto-winter] .cw-tool-link {
  display: grid;
  align-content: start;
  gap: .38rem;
  min-height: 6.75rem;
  padding: 1.05rem;
  border: 1px solid rgba(168, 206, 240, 0.18);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12);
  color: var(--cw-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cw-tool-link strong {
  color: var(--cw-accent);
  font-size: .99rem;
  line-height: 1.35;
}
.cw-tool-link span {
  color: var(--cw-muted);
  font-size: .89rem;
  line-height: 1.5;
}
html[data-crypto-winter] .cw-tool-link:is(:hover, :focus-visible) {
  background: linear-gradient(155deg, rgba(28, 43, 64, 0.88), rgba(15, 22, 34, 0.96));
  border-color: rgba(174, 213, 243, 0.45);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.22), 0 14px 32px rgba(4, 12, 26, 0.44);
  transform: translateY(-2px);
}
.cw-reference-grid > :is(div, section) {
  min-width: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(168, 206, 240, 0.18);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(22, 33, 50, 0.80), rgba(13, 19, 30, 0.94) 80%);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.12);
}
.cw-reference-grid h3 {
  margin: 0 0 .45rem;
  color: var(--cw-text);
  font-size: 1.025rem;
}
.cw-reference-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cw-reference-list li {
  min-width: 0;
  padding-block: .23rem;
  overflow-wrap: anywhere;
}
.cw-reference-list li + li {
  border-top: 1px solid var(--cw-line);
}
.cw-reference-list a {
  display: inline-block;
  padding-block: .34rem;
}
.cw-reference-list :is(small, span) {
  display: inline-block;
  margin-inline-start: .35rem;
  color: var(--cw-muted);
  font-size: .85rem;
}
@media (max-width: 1030px) {
  .cw-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cw-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-reference-grid { grid-template-columns: minmax(0, 1fr); }
  .cw-tool-link { min-height: 6rem; }
}
@media (max-width: 350px) {
  .cw-tool-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Contextual Workspace Conversion Strip (Coin Research & Free Tools Pages) */
html[data-crypto-winter] .cw-workspace-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-block: 1.4rem;
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(174, 213, 243, 0.24);
  background:
    radial-gradient(ellipse 56% 80% at 96% 0%, rgba(114, 180, 242, 0.2), transparent 62%),
    linear-gradient(148deg, rgba(20, 31, 47, 0.92), rgba(11, 17, 27, 0.96) 76%);
  box-shadow: inset 0 1px 0 rgba(218, 240, 255, 0.16), 0 14px 36px rgba(2, 6, 14, 0.36);
}
html[data-crypto-winter] .cw-workspace-bridge.is-tools {
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
}
html[data-crypto-winter] .cw-wb-copy {
  flex: 1 1 360px;
  min-width: 0;
  display: grid;
  gap: .35rem;
}
html[data-crypto-winter] .cw-wb-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--cw-accent);
}
html[data-crypto-winter] .cw-wb-copy h2 {
  margin: 0;
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
  line-height: 1.32;
  color: var(--cw-text);
  letter-spacing: -.015em;
}
html[data-crypto-winter] .cw-wb-copy p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--cw-muted);
}
html[data-crypto-winter] .cw-wb-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  flex-shrink: 0;
}
html[data-crypto-winter] .cw-wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
html[data-crypto-winter] .cw-wb-btn:hover {
  transform: translateY(-1px);
}
html[data-crypto-winter] .cw-wb-primary {
  background: var(--cw-accent);
  color: #0b111a !important;
  border: 1px solid transparent;
}
html[data-crypto-winter] .cw-wb-primary:hover {
  background: var(--cw-accent-hover);
  color: #0b111a !important;
}
html[data-crypto-winter] .cw-wb-secondary {
  background: rgba(168, 206, 240, 0.1);
  color: var(--cw-text) !important;
  border: 1px solid rgba(174, 213, 243, 0.3);
}
html[data-crypto-winter] .cw-wb-secondary:hover {
  border-color: rgba(174, 213, 243, 0.56);
  background: rgba(168, 206, 240, 0.18);
}
@media (max-width: 640px) {
  html[data-crypto-winter] .cw-workspace-bridge {
    padding: 1rem 1.05rem;
  }
  html[data-crypto-winter] .cw-wb-actions {
    width: 100%;
  }
  html[data-crypto-winter] .cw-wb-btn {
    flex: 1 1 auto;
  }
}
