:root {
  --ink: #14201c;
  --muted: #617069;
  --paper: #f3f5ef;
  --panel: #fbfcf8;
  --line: #dce3da;
  --forest: #173e32;
  --moss: #2e6c56;
  --mint: #a8e5c8;
  --lime: #dff29a;
  --red: #b74747;
  --green: #18734c;
  --shadow: 0 18px 60px rgba(24, 47, 39, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 42px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ff617e; outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; min-height: 76px; padding: 0 4vw; border-bottom: 1px solid rgba(220,227,218,.9); background: rgba(243,245,239,.92); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1; }
.brand strong { display: block; font-size: .96rem; letter-spacing: .015em; }
.brand small { display: block; margin-top: .22rem; color: var(--muted); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.brand-mark { position: relative; display: inline-flex; align-items: end; gap: 3px; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--forest); overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; width: 18px; height: 18px; right: -8px; top: -8px; border: 5px solid var(--lime); border-radius: 50%; opacity: .9; }
.brand-mark i { display: block; width: 4px; border-radius: 4px 4px 1px 1px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 20px; }
nav { display: flex; align-items: center; gap: .35rem; }
nav a, .account-link { padding: .62rem .78rem; border-radius: .65rem; color: #42514b; font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a.active, .account-link:hover { background: #e6ece4; color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.freshness { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.account-link { border: 1px solid var(--line); background: var(--panel); }
main { min-height: 72vh; }
.page { width: min(1180px, 92vw); margin: 0 auto; padding: 3rem 0 5rem; }
.narrow { width: min(720px, 92vw); }
.initial-loader, .empty-state { display: grid; place-items: center; gap: 1rem; min-height: 50vh; color: var(--muted); text-align: center; }
.initial-loader span { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--moss); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { margin: 0 0 .75rem; color: var(--moss); font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.03em; line-height: 1.08; }
h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.45rem, 6vw, 5.4rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.06rem; letter-spacing: -.01em; }
.lede { max-width: 740px; color: #50605a; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.hero { position: relative; padding: 4rem 0 2.4rem; overflow: hidden; }
.hero::after { content: ""; position: absolute; z-index: -1; right: 2%; top: 12%; width: 240px; height: 240px; border: 50px solid rgba(168,229,200,.26); border-radius: 50%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: .72rem; padding: .7rem 1rem; background: var(--forest); color: white; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: #245b49; }
.button.secondary, button.secondary { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.button.ghost, button.ghost { background: transparent; color: var(--moss); }
.button.danger, button.danger { background: #8e3030; }
button:disabled { cursor: not-allowed; opacity: .55; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; margin: 1.4rem 0 2.5rem; }
.metric, .panel, .price-card, .form-card { border: 1px solid var(--line); border-radius: 1.05rem; background: var(--panel); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.metric { padding: 1.15rem; }
.metric small { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.metric strong { display: block; font-size: clamp(1.1rem, 2vw, 1.55rem); }
.metric span { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.section-head h2 { margin-bottom: .2rem; }
.section-head p { margin: 0; color: var(--muted); }
.market-controls { display: flex; gap: .65rem; align-items: center; }
.search { width: min(330px, 50vw); min-height: 42px; border: 1px solid var(--line); border-radius: .7rem; padding: .65rem .8rem; background: var(--panel); color: var(--ink); }
.market-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); box-shadow: var(--shadow); }
.market-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.market-table th { position: sticky; top: 0; z-index: 1; padding: .8rem .85rem; background: #edf1e9; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.market-table th:nth-child(1), .market-table th:nth-child(2), .market-table td:nth-child(1), .market-table td:nth-child(2) { text-align: left; }
.market-table td { padding: .9rem .85rem; border-top: 1px solid #e8ece5; text-align: right; font-size: .86rem; }
.market-table tr:hover td { background: #f4f7f1; }
.coin-name { display: flex; align-items: center; gap: .7rem; min-width: 170px; }
.coin-token { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #e1ebe4; color: var(--forest); font-size: .68rem; font-weight: 850; }
.coin-name a { font-weight: 750; text-decoration: none; }
.coin-name small { display: block; margin-top: .15rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.spark { width: 116px; height: 38px; overflow: visible; }
.icon-button { min-width: 34px; min-height: 34px; padding: .35rem; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.icon-button.saved { background: #e2f2e8; color: var(--green); }
.stale-banner, .notice, .warning { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #e2d49b; border-radius: .75rem; background: #fff8dc; color: #6a5715; }
.notice { border-color: #b9dacc; background: #eaf6f0; color: #235b45; }
.warning { border-color: #e6b8b8; background: #fff0f0; color: #823939; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.panel { padding: 1.2rem; }
.mini-list { display: grid; gap: .6rem; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.mini-row:first-child { border-top: 0; }
.mini-row a { font-weight: 700; text-decoration: none; }
.coin-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding-top: 2rem; }
.coin-price { text-align: right; }
.coin-price strong { display: block; font-size: clamp(2rem,5vw,4rem); }
.chart-panel { margin: 1.5rem 0; padding: 1.2rem; }
.large-chart { width: 100%; height: 250px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.workspace-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.workspace-head h1 { margin-bottom: .3rem; font-size: clamp(2.2rem,5vw,4rem); }
.workspace-head p { color: var(--muted); }
.stack { display: grid; gap: .8rem; }
.data-row { display: grid; grid-template-columns: minmax(130px,1fr) repeat(4,minmax(100px,.7fr)) auto; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.data-row small { display: block; color: var(--muted); }
.form-card { padding: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
label { display: grid; gap: .35rem; color: #42514b; font-size: .8rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #cbd5ca; border-radius: .65rem; padding: .65rem .75rem; background: white; color: #17201d; }
textarea { min-height: 90px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1rem; }
.auth-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,460px); gap: 4rem; align-items: center; min-height: 64vh; }
.auth-copy h1 { font-size: clamp(2.5rem,6vw,5rem); }
.auth-card { padding: 1.5rem; box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: .85rem; }
.auth-links { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .82rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.pricing-hero { max-width: 790px; margin: 0 auto 2rem; padding-top: 2rem; text-align: center; }
.pricing-hero h1 { margin-inline: auto; font-size: clamp(2.5rem,6vw,5rem); }
.pricing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; max-width: 880px; margin: 0 auto; }
.price-card { position: relative; padding: 1.5rem; }
.price-card.pro { border-color: #83bca2; box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: 1rem; right: 1rem; padding: .3rem .55rem; border-radius: 99px; background: var(--lime); color: #334416; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.price { margin: 1.2rem 0; font-size: 2.7rem; font-weight: 800; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .8rem; letter-spacing: 0; }
.feature-list { display: grid; gap: .65rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.feature-list li::before { content: "✓"; margin-right: .5rem; color: var(--green); font-weight: 900; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem,6vw,4.8rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.55rem; }
.legal p, .legal li { color: #46564f; line-height: 1.75; }
.legal .updated { color: var(--muted); font-size: .82rem; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.account-grid .panel { min-height: 180px; }
.toast-region { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; width: min(380px,calc(100vw - 2rem)); }
.toast { padding: .9rem 1rem; border-radius: .75rem; background: var(--forest); color: white; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast.error { background: #8e3030; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
footer { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; padding: 2.5rem 4vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer strong { color: var(--ink); }
footer p { margin: .35rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.provider-credit, .fine-print { grid-column: 1 / -1; max-width: 900px; }
.fine-print { font-size: .72rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto 1fr; gap: .8rem; padding-block: .65rem; }
  .site-header nav { grid-column: 1/-1; order: 3; overflow: auto; }
  .header-actions { justify-self: end; }
  .freshness { display: none; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-shell { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .site-header { position: static; }
  .site-header nav a { padding: .55rem .62rem; }
  .page { padding-top: 1.8rem; }
  .hero { padding-top: 2rem; }
  .metrics-grid, .movers, .pricing-grid, .account-grid, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .section-head, .workspace-head, .coin-hero { display: grid; }
  .market-controls { width: 100%; }
  .search { width: 100%; }
  .coin-price { text-align: left; }
  .data-row { grid-template-columns: 1fr 1fr; }
  .data-row > :first-child, .data-row > :last-child { grid-column: 1/-1; }
  footer { grid-template-columns: 1fr; }
  .footer-links { grid-row: auto; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink:#edf3ee; --muted:#9eada6; --paper:#0e1714; --panel:#15211d; --line:#293a34; --forest:#a8e5c8; --moss:#86d1ad; --mint:#173e32; --lime:#cae77e; --shadow:0 20px 60px rgba(0,0,0,.25); }
  .site-header { background:rgba(14,23,20,.92); border-color:var(--line); }
  nav a, .account-link, .lede, .section-head p, label, .legal p, .legal li { color:#aab8b2; }
  nav a:hover, nav a.active, .account-link:hover { background:#1d2c27; color:#dff5e9; }
  .account-link, input, select, textarea { background:#17241f; color:#eef4f0; border-color:#34453e; }
  .metric, .panel, .price-card, .form-card, .market-table-wrap { box-shadow:none; }
  .market-table th { background:#1b2924; }
  .market-table td { border-color:#25342f; }
  .market-table tr:hover td { background:#1a2823; }
  .coin-token { background:#22362e; color:#b8efd4; }
  .icon-button { color:#aab8b2; }
  .icon-button.saved { background:#1f4635; color:#b8efd4; }
  .button, button { background:#b7e7cf; color:#10201a; }
  .button:hover, button:hover { background:#d0f3df; }
  .button.secondary, button.secondary { background:#192620; color:#edf3ee; }
  .button.ghost, button.ghost { background:transparent; color:#a8e5c8; }
  .brand-mark { background:#b5e7cd; }
  .brand-mark i { background:#225a46; }
  .stale-banner { background:#332f1c; color:#e5d595; border-color:#5e542b; }
  .notice { background:#163126; color:#a8e5c8; border-color:#2e5b49; }
  .warning { background:#3a2020; color:#f0b8b8; border-color:#663434; }
}

/* Deliberate black-steel market cockpit. The base is near-black, never pure black. */
:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --bg-elevated: #101319;
  --surface: #15191f;
  --surface-2: #1b2028;
  --surface-hover: #222832;
  --line: #2b323c;
  --line-strong: #3b4654;
  --text: #eef2f6;
  --text-secondary: #aab3bf;
  --text-muted: #7f8a98;
  --accent: #ff1745;
  --accent-hover: #ff617e;
  --accent-soft: rgba(255, 23, 69, .12);
  --positive: #55d49a;
  --negative: #ff7a86;
  --warning-tone: #f2c66d;
  --info: #70b7f1;
  --crypto: #91b9d5;
  --stocks: #74b8ff;
  --macro: #e8bd68;
  --focus: #ff617e;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.025), 0 8px 24px rgba(0,0,0,.18);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.28);
  --ink: var(--text);
  --muted: var(--text-muted);
  --paper: var(--bg);
  --panel: var(--surface);
  --forest: var(--accent);
  --moss: var(--accent);
  --mint: var(--accent-soft);
  --lime: var(--accent);
  --red: var(--negative);
  --green: var(--positive);
  --shadow: var(--shadow-lg);
  font-size: 15px;
  background: var(--bg);
}
html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 8% -12%, rgba(145,185,213,.09), transparent 34rem),
    radial-gradient(circle at 96% 8%, rgba(98,112,135,.065), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}
button, input, select, textarea, .metric strong, .market-table td, .coin-price, .price {
  font-variant-numeric: tabular-nums lining-nums;
}
.skip-link { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-sm); }
.site-header {
  min-height: 72px;
  gap: 1.35rem;
  padding-inline: clamp(1rem, 3.2vw, 3.5rem);
  border-color: rgba(59,70,84,.72);
  background: #0c0f13;
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.brand { flex: 0 0 auto; }
.brand strong { color: var(--text); font-size: 1rem; }
.brand small { color: var(--text-muted); }
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #030305;
  box-shadow: 0 0 0 1px rgba(255,23,69,.28), 0 0 20px rgba(255,23,69,.12);
}
nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a, .account-link {
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 9px;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
nav a:hover, nav a.active, nav a[aria-current="page"], .account-link:hover {
  border-color: rgba(145,185,213,.18);
  background: var(--accent-soft);
  color: var(--text);
}
nav a.active, nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.nav-divider { flex: 0 0 1px; width: 1px; height: 24px; margin-inline: .35rem; background: var(--line); }
.header-actions { gap: .65rem; }
.freshness {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .42rem .68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21,25,31,.88);
  color: var(--text-secondary);
  font-size: .72rem;
}
.freshness::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(145,185,213,.12); }
.freshness.stale::before { background: var(--warning-tone); box-shadow: 0 0 0 3px rgba(242,198,109,.12); }
.freshness.unavailable::before { background: var(--negative); box-shadow: 0 0 0 3px rgba(255,122,134,.12); }
.account-link { border-color: var(--line); background: var(--surface); color: var(--text); }
.page { width: min(1280px, calc(100vw - 2rem)); padding: 2.35rem 0 5rem; }
.narrow { width: min(760px, calc(100vw - 2rem)); }
.hero { padding: 2.5rem 0 1.4rem; }
.hero::after {
  right: 2%; top: 0; width: 290px; height: 170px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(145,185,213,.11), transparent 68%);
  filter: blur(12px);
}
.eyebrow { color: var(--accent); font-size: .69rem; letter-spacing: .16em; }
h1 { max-width: 960px; font-size: clamp(2.05rem, 4.1vw, 3.65rem); font-weight: 730; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.lede { color: var(--text-secondary); font-size: clamp(1rem, 1.7vw, 1.16rem); }
.button, button {
  border: 1px solid rgba(145,185,213,.32);
  border-radius: 10px;
  background: var(--accent);
  color: #0a1117;
  box-shadow: 0 7px 20px rgba(91,126,153,.14);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover, button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button.secondary, button.secondary { border-color: var(--line); background: var(--surface-2); color: var(--text); box-shadow: none; }
.button.ghost, button.ghost { border-color: transparent; background: transparent; color: var(--accent); box-shadow: none; }
.button.danger, button.danger { border-color: rgba(255,122,134,.28); background: #8d3440; color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.metrics-grid { gap: .75rem; margin: 1.15rem 0 2rem; }
.metric, .panel, .price-card, .form-card {
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(27,32,40,.98), rgba(18,22,28,.98));
  box-shadow: var(--shadow-sm);
}
.metric { position: relative; min-height: 126px; padding: 1rem 1.05rem; overflow: hidden; }
.metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, var(--accent), transparent 78%); opacity: .72; }
.metric small { color: var(--text-muted); font-size: .67rem; }
.metric strong { color: var(--text); font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.025em; }
.metric span { color: var(--text-secondary); line-height: 1.35; }
.section-head { margin-top: 2.2rem; }
.section-head p, .workspace-head p { color: var(--text-secondary); }
.market-controls { flex-wrap: wrap; }
.search, input, select, textarea {
  min-height: 44px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: #11151b;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.search::placeholder, input::placeholder, textarea::placeholder { color: #6f7b89; }
label { color: var(--text-secondary); }
.market-table-wrap { border-color: var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.market-table { font-variant-numeric: tabular-nums lining-nums; }
.market-table caption { padding: .8rem; color: var(--text-secondary); text-align: left; }
.market-table th { height: 44px; background: #191e25; color: var(--text-muted); font-size: .66rem; }
.market-table td { height: 58px; border-color: var(--line); color: var(--text-secondary); }
.market-table td:nth-child(2), .market-table td:nth-child(3) { color: var(--text); }
.market-table tr:hover td, .market-table tr:focus-within td { background: var(--surface-hover); }
.coin-token { background: var(--accent-soft); color: var(--accent); }
.coin-name a { color: var(--text); }
.coin-name small { color: var(--text-muted); }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.icon-button { border-color: var(--line); background: #11151b; color: var(--text-secondary); box-shadow: none; }
.icon-button.saved { border-color: rgba(145,185,213,.3); background: var(--accent-soft); color: var(--accent); }
.stale-banner, .notice, .warning { border-radius: 12px; box-shadow: none; }
.stale-banner { border-color: rgba(242,198,109,.32); background: rgba(242,198,109,.1); color: #f3d99e; }
.notice { border-color: rgba(112,183,241,.28); background: rgba(112,183,241,.1); color: #bcdcf5; }
.warning { border-color: rgba(255,122,134,.28); background: rgba(255,122,134,.09); color: #ffb1b9; }
.movers { gap: .75rem; }
.panel { padding: 1.15rem; }
.mini-row { border-color: var(--line); }
.mini-row a { color: var(--text); }
.coin-price strong { color: var(--text); }
.chart-panel { background: linear-gradient(160deg, #1a2028, #11151b); }
.data-row { border-color: var(--line); border-radius: 12px; background: var(--surface); color: var(--text-secondary); }
.data-row strong { color: var(--text); }
.data-row small { color: var(--text-muted); }
.price-card.pro { border-color: rgba(145,185,213,.4); box-shadow: 0 18px 56px rgba(0,0,0,.24); }
.price-card .badge, .badge { display: inline-flex; width: fit-content; padding: .32rem .58rem; border: 1px solid rgba(145,185,213,.26); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.price-card .badge { position: absolute; top: 1rem; right: 1rem; }
.feature-list li::before { color: var(--accent); }
.legal p, .legal li { color: var(--text-secondary); }
.empty-state { min-height: 320px; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: 16px; background: rgba(21,25,31,.48); }
.initial-loader span { border-color: var(--line); border-top-color: var(--accent); }
.toast { border: 1px solid rgba(145,185,213,.24); background: #202a34; color: var(--text); box-shadow: var(--shadow-lg); }
.toast.error { border-color: rgba(255,122,134,.28); background: #51252c; }
footer { border-color: var(--line); background: rgba(7,9,12,.62); color: var(--text-muted); }
footer strong { color: var(--text); }
.footer-links a, .provider-credit a { color: var(--text-secondary); }
.flintglade-attribution a { color: #ff617e; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

/* Shared shells for the cross-market expansion. */
.market-tabs { display: inline-flex; gap: .35rem; padding: .3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elevated); }
.market-tabs a { padding: .5rem .75rem; border-radius: 8px; color: var(--text-secondary); text-decoration: none; }
.market-tabs a.active { background: var(--surface-2); color: var(--text); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: .75rem; }
.data-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .72rem; }
.source-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-secondary); font-size: .7rem; }
.macro-value { color: var(--macro); }
.stock-value { color: var(--stocks); }
.loading-shell { display: grid; gap: .75rem; padding-top: 2rem; }
.skeleton { min-height: 110px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(100deg, var(--surface) 20%, var(--surface-2) 40%, var(--surface) 60%); background-size: 220% 100%; animation: skeleton 1.5s ease-in-out infinite; }
@keyframes skeleton { to { background-position-x: -220%; } }

/* Cross-market dashboards and chart surfaces. */
.compact-hero { max-width: 1040px; padding-bottom: 1.2rem; }
.stocks-hero .eyebrow { color: var(--stocks); }
.macro-hero .eyebrow { color: var(--macro); }
.news-hero .eyebrow { color: #c599ff; }
.source-panel {
  display: grid; grid-template-columns: minmax(240px,.85fr) minmax(0,1.4fr); gap: 1rem 2rem;
  margin-top: 2.5rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 16px;
  background: #101319; color: var(--text-secondary);
}
.source-panel h2 { margin-bottom: .35rem; font-size: 1.15rem; }
.source-panel p:not(.eyebrow) { margin: 0; max-width: 720px; }
.source-panel .data-meta { align-content: center; margin: 0; padding: 0; border: 0; }

/*
 * CSS-native haze, limited to the sticky navigation and source context panel.
 * Solid backgrounds remain the deliberate fallback for browsers that do not
 * support backdrop filtering, keeping contrast and hierarchy intact everywhere.
 */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: linear-gradient(180deg, rgba(15,18,23,.9), rgba(10,12,15,.76));
    -webkit-backdrop-filter: blur(18px) saturate(112%);
    backdrop-filter: blur(18px) saturate(112%);
  }

  .source-panel {
    background: rgba(16,19,25,.76);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
  }
}
.visual-deck { align-items: stretch; margin: 1.5rem 0 2rem; }
.chart-card { min-width: 0; overflow: hidden; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .75rem; }
.card-heading h2, .card-heading h3 { margin-bottom: 0; }
.card-heading .eyebrow { margin-bottom: .4rem; }
.chart-note { margin: .65rem 0 0; color: var(--text-muted); font-size: .72rem; line-height: 1.55; }
.insight-stack { display: grid; gap: .75rem; min-width: 0; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mini-metrics .metric { min-height: 112px; }
.distribution-fallback { display: grid; gap: .5rem; }
.distribution-fallback > div { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .45rem .55rem; border-radius: 8px; background: rgba(255,255,255,.025); color: var(--text-secondary); }
.spark-stroke { stroke: currentColor; stroke-width: 2; }
.positive-line { color: var(--positive); }
.negative-line { color: var(--negative); }
.widget-shell { padding: 1rem; overflow: hidden; }
.stock-widget { display: block; width: 100%; min-height: 610px; border: 1px solid var(--line); border-radius: 12px; background: #11151a; }
.stock-chip { border-color: rgba(116,184,255,.28); color: var(--stocks); }
.stock-intel-grid { margin-top: .75rem; }
.stock-intel-grid > .panel { min-height: 290px; }
.company-lookup { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .7rem; margin-top: 1rem; }
.lookup-result { min-height: 58px; margin-top: .8rem; color: var(--text-secondary); }
.lookup-result .button { margin-top: .5rem; }
.intelligence-roadmap .feature-list { margin-bottom: 0; }
.macro-grid .macro-metric { min-height: 168px; }
.macro-metric, .yield-card { --accent: var(--macro); }
.macro-metric .metric-info { min-height: auto; margin-top: .65rem; padding: 0; font-size: .72rem; }
.yield-fallback { display: flex; align-items: end; gap: .45rem; min-height: 260px; padding: 1rem 0; }
.yield-fallback > div { display: grid; place-items: center; gap: .4rem; flex: 1; padding: .5rem .2rem; border-top: 2px solid var(--macro); background: linear-gradient(to bottom, rgba(232,189,104,.1), transparent); }
.yield-fallback span { color: var(--text-muted); font-size: .68rem; }
.source-status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.source-status { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.source-status strong, .source-status small { display: block; }
.source-status small { margin-top: .2rem; color: var(--text-muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning-tone); box-shadow: 0 0 0 4px rgba(242,198,109,.09); }
.status-dot.ok { background: var(--positive); box-shadow: 0 0 0 4px rgba(75,213,154,.09); }
.status-dot.unavailable { background: var(--negative); box-shadow: 0 0 0 4px rgba(255,122,134,.09); }
.news-metrics .metric { --accent: #c599ff; }
.briefing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.briefing-card { display: grid; align-content: space-between; min-height: 210px; padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(27,32,40,.92), rgba(16,19,25,.96)); box-shadow: var(--shadow-sm); }
.briefing-card h2 { margin: 1rem 0 1.4rem; font-size: clamp(1.15rem,2vw,1.45rem); line-height: 1.25; }
.briefing-card h2 a { text-decoration: none; }
.briefing-card h2 a:hover { color: var(--accent); }
.briefing-meta, .briefing-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; color: var(--text-muted); font-size: .7rem; }
.briefing-footer { justify-content: space-between; padding-top: .8rem; border-top: 1px solid var(--line); }
.briefing-footer strong { color: var(--text-secondary); }

/* FlintsCharts uses currentColor and CSS variables, keeping every SVG theme-native. */
.fc-chart { display: block; width: 100%; max-width: 100%; height: auto; min-height: 220px; color: var(--accent); overflow: visible; }
.fc-chart text { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 10px; }
.fc-chart-grid, .fc-chart-axes { color: var(--text-muted); }
.fc-chart-grid-line, .fc-chart-axis { shape-rendering: crispEdges; }
.fc-chart--positive { color: var(--positive); }
.fc-chart--negative { color: var(--negative); }
.fc-chart--neutral { color: var(--accent); }
.yield-card .fc-chart { color: var(--macro); }
.fc-chart-line { filter: drop-shadow(0 0 5px rgba(145,185,213,.2)); }
.fc-chart--negative .fc-chart-line { filter: drop-shadow(0 0 5px rgba(255,122,134,.18)); }
.fc-chart-point, .fc-chart-endpoint { filter: drop-shadow(0 0 4px currentColor); }
.fc-chart-bar--positive { color: var(--positive); }
.fc-chart-bar--negative { color: var(--negative); }
.fc-chart-bar--neutral { color: var(--info); }
/* Distribution bars encode observation counts, not gains; keep them steel-neutral. */
.fc-chart--distribution .fc-chart-bar { color: var(--accent); }
.fc-chart-series--1 { color: var(--accent); }
.fc-chart-series--2 { color: var(--info); }
.fc-chart-series--3 { color: var(--macro); }
.fc-chart-series--4 { color: #c599ff; }
.fc-chart-empty-state { color: var(--text-muted); }
.fc-chart--empty { min-height: 220px; border: 1px dashed var(--line); border-radius: 12px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto 1fr; padding-block: .55rem; }
  .site-header nav { grid-column: 1 / -1; order: 3; width: 100%; }
  .header-actions { justify-self: end; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { position: sticky; gap: .55rem; }
  .site-header nav { margin-inline: -.25rem; }
  .site-header nav a { flex: 0 0 auto; padding: .5rem .62rem; }
  .nav-divider { display: none; }
  .freshness { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { width: min(100% - 1rem, 1280px); padding-top: 1.25rem; }
  .hero { padding-top: 1.4rem; }
  .hero::after { display: none; }
  .metric { min-height: 112px; }
  .market-controls { align-items: stretch; }
  .market-controls > * { flex: 1 1 150px; }
  .market-table th, .market-table td { padding-inline: .7rem; }
  .market-table th:nth-child(1), .market-table td:nth-child(1),
  .market-table th:nth-child(7), .market-table td:nth-child(7),
  .market-table th:nth-child(8), .market-table td:nth-child(8) { display: none; }
  .source-panel, .briefing-grid, .source-status-grid { grid-template-columns: 1fr; }
  .company-lookup { grid-template-columns: 1fr; }
  .stock-widget { min-height: 540px; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .freshness { max-width: 82px; padding-inline: .5rem; }
  .account-link { padding-inline: .6rem; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric { min-height: 118px; padding: .85rem; }
  .market-table th:nth-child(4), .market-table td:nth-child(4),
  .market-table th:nth-child(6), .market-table td:nth-child(6),
  .market-table th:nth-child(9), .market-table td:nth-child(9) { display: none; }
  .mini-metrics { grid-template-columns: 1fr; }
  .briefing-card { min-height: 190px; }
  .stock-widget { min-height: 500px; }
}
@media (max-width: 340px) {
  .metrics-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .button:hover, button:hover { transform: none; }
}
