:root {
  --fd-bg: #070810;
  --fd-bg-soft: #0b0d17;
  --fd-surface: rgba(17, 20, 34, .88);
  --fd-surface-solid: #111422;
  --fd-surface-raised: #181b2b;
  --fd-border: rgba(148, 163, 184, .14);
  --fd-border-strong: rgba(148, 163, 184, .25);
  --fd-text: #f4f7fb;
  --fd-muted: #94a3b8;
  --fd-dim: #64748b;
  --fd-purple: #8b7cff;
  --fd-purple-strong: #7666ff;
  --fd-cyan: #2dd4e8;
  --fd-green: #34d399;
  --fd-red: #fb7185;
  --fd-amber: #fbbf24;
  --fd-radius-sm: 10px;
  --fd-radius: 16px;
  --fd-radius-lg: 22px;
  --fd-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --fd-focus: 0 0 0 3px rgba(45, 212, 232, .22);
  --fd-bottom-nav-h: 70px;
  --bg: var(--fd-bg);
  --panel: var(--fd-surface-solid);
  --panel-2: var(--fd-surface-raised);
  --card: var(--fd-surface-solid);
  --card2: var(--fd-surface-raised);
  --border: var(--fd-border);
  --text: var(--fd-text);
  --muted: var(--fd-muted);
  --accent: var(--fd-purple);
  --cyan: var(--fd-cyan);
  --green: var(--fd-green);
  --up: var(--fd-green);
  --red: var(--fd-red);
  --down: var(--fd-red);
}

html { background: var(--fd-bg); color-scheme: dark; }
body.fd-redesign {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(139, 124, 255, .18), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(45, 212, 232, .09), transparent 26rem),
    linear-gradient(180deg, #080912 0%, var(--fd-bg) 48%, #06070d 100%);
  color: var(--fd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
body.fd-redesign::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
body.fd-redesign a, body.fd-redesign button, body.fd-redesign input, body.fd-redesign select, body.fd-redesign summary { -webkit-tap-highlight-color: transparent; }
body.fd-redesign button, body.fd-redesign a, body.fd-redesign summary, body.fd-redesign [role="button"] { cursor: pointer; }
body.fd-redesign :focus-visible { outline: none; box-shadow: var(--fd-focus) !important; }
body.fd-redesign img { max-width: 100%; }
body.fd-redesign #root { width: 100%; max-width: 100%; overflow-x: clip; }

/* Shared shell */
body.fd-redesign #app-header { z-index: 100; overflow: visible; background: rgba(7,8,16,.78); backdrop-filter: blur(20px); }
body.fd-redesign .app-header {
  min-height: 66px;
  padding: 10px clamp(14px, 2vw, 30px);
  gap: 18px;
  overflow: visible;
  border-color: var(--fd-border);
  background: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.025);
}
body.fd-redesign .brand { font-size: 17px; letter-spacing: -.02em; }
body.fd-redesign .brand img { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 22px rgba(124,92,255,.22); }
body.fd-redesign .brand .accent { color: var(--fd-cyan); }
body.fd-redesign .hdr-nav { gap: 2px; overflow: visible; }
body.fd-redesign .hdr-nav a {
  position: relative;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--fd-muted);
  font-size: 13px;
  font-weight: 700;
}
body.fd-redesign .hdr-nav a:hover { color: var(--fd-text); background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.06); }
body.fd-redesign .hdr-nav a.active { color: #fff; background: rgba(139,124,255,.13); border-color: rgba(139,124,255,.25); }
body.fd-redesign .hdr-nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,var(--fd-purple),var(--fd-cyan)); }
body.fd-redesign .hdr-right { gap: 8px; }
body.fd-redesign .preview-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 5px 9px; border: 1px solid rgba(251,191,36,.25); border-radius: 999px; background: rgba(251,191,36,.08); color: #fde68a; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.fd-redesign .preview-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fd-amber); box-shadow: 0 0 12px rgba(251,191,36,.8); }
body.fd-redesign .hdr-x { background: rgba(255,255,255,.035); border-color: var(--fd-border); border-radius: 11px; }
body.fd-redesign .wallet-btn { min-height: 38px; padding: 9px 14px; border-radius: 11px; background: linear-gradient(135deg,var(--fd-purple-strong),#6554e8); box-shadow: 0 10px 24px rgba(118,102,255,.22), inset 0 1px rgba(255,255,255,.2); }
body.fd-redesign .wallet-menu { border-color: var(--fd-border-strong); border-radius: var(--fd-radius-lg); box-shadow: var(--fd-shadow); }
.mobile-bottom-nav { display: none; }

.preview-live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(251,191,36,.2);
  background: linear-gradient(90deg,rgba(251,191,36,.05),rgba(251,191,36,.12),rgba(251,191,36,.05));
  color: #fde68a;
  font-size: 12px;
}
.preview-live-banner strong { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.preview-live-banner span { color: #d6cda9; }

body.fd-redesign .summary.pool-summary.header-summary {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  gap: 6px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  overflow: visible;
}
body.fd-redesign .header-summary .ss {
  min-width: max-content;
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid var(--fd-border);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
body.fd-redesign .header-summary .tg-banner { display: none; }
body.fd-redesign .summary .ss { gap: 2px; }
body.fd-redesign .summary .sl { color: var(--fd-dim); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
body.fd-redesign .summary .sv { color: var(--fd-text); font-size: 14px; font-weight: 800; }
body.fd-redesign .header-summary .sl { font-size: 8px; letter-spacing: .06em; }
body.fd-redesign .header-summary .sv { font-size: 11px; }
body.fd-redesign .tg-banner { border-radius: 10px; border-color: rgba(45,212,232,.16); background: rgba(45,212,232,.07); }

body.fd-redesign .trending-rail {
  top: var(--app-header-h);
  min-height: 48px;
  padding: 7px clamp(14px,2vw,30px);
  border-color: var(--fd-border);
  background: rgba(9,11,19,.9);
  backdrop-filter: blur(18px);
}
body.fd-redesign .trending-rail .trending-label { color: var(--fd-cyan); }
body.fd-redesign .trending-rail .trending-track { animation-play-state: running !important; }
body.fd-redesign .trending-rail .trending-track:focus-within { animation-play-state: paused !important; }
body.fd-redesign .trending-rail .trending-card { min-height: 32px; border-color: rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.035); transition: color .2s,border-color .2s,background .2s; }
body.fd-redesign .trending-rail .trending-card:hover { transform: none; border-color: rgba(45,212,232,.35); background: rgba(45,212,232,.07); }
body.fd-redesign .trending-rail .trending-card .ti { width: 20px; height: 20px; object-fit: cover; background: var(--fd-surface-raised); }

.token-workspace {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  padding: 7px clamp(14px,2vw,30px);
  border-bottom: 1px solid var(--fd-border);
  background: rgba(11,13,23,.88);
  overflow-x: auto;
  scrollbar-width: none;
}
.token-workspace::-webkit-scrollbar { display: none; }
.token-workspace > span { margin-right: 10px; color: var(--fd-dim); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.token-workspace a { min-height: 33px; padding: 7px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--fd-muted); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.token-workspace a:hover { color: var(--fd-text); background: rgba(255,255,255,.04); }
.token-workspace a.active { color: #e9ffff; border-color: rgba(45,212,232,.25); background: rgba(45,212,232,.1); }

/* Dashboard */
body.fd-redesign .controls { gap: 9px; padding: 14px clamp(14px,2vw,30px); border-color: var(--fd-border); background: rgba(7,8,16,.5); }
body.fd-redesign .controls input[type=text], body.fd-redesign .controls select, body.fd-redesign .btn, body.fd-redesign .btn-icon {
  min-height: 38px;
  border: 1px solid var(--fd-border);
  border-radius: 11px;
  background-color: rgba(17,20,34,.82);
  color: var(--fd-text);
  font-size: 12px;
}
body.fd-redesign .controls input[type=text]:focus, body.fd-redesign .controls select:focus { border-color: rgba(45,212,232,.48); }
body.fd-redesign .search-shell { min-width: min(360px,100%); }
body.fd-redesign .grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,320px),1fr)); gap: 14px; padding: 18px clamp(14px,2vw,30px) 32px; }
body.fd-redesign .card {
  padding: 16px;
  border-color: var(--fd-border);
  border-radius: var(--fd-radius);
  background: linear-gradient(180deg,rgba(20,23,38,.94),rgba(12,14,24,.94));
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
  transition: border-color .2s,background .2s,box-shadow .2s;
}
body.fd-redesign .card:hover { transform: none; border-color: rgba(139,124,255,.38); border-radius: var(--fd-radius); background: linear-gradient(180deg,rgba(24,27,45,.98),rgba(13,15,27,.98)); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
body.fd-redesign .c-logo { width: 42px; height: 42px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
body.fd-redesign .c-sym { font-size: 15px; font-weight: 900; }
body.fd-redesign .c-price .pv { font-size: 15px; font-weight: 850; }
body.fd-redesign .stats > div { padding: 9px; border-radius: 10px; background: rgba(255,255,255,.025); }
body.fd-redesign .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
body.fd-redesign .stats .v { overflow: visible; text-overflow: clip; white-space: nowrap; }
body.fd-redesign .card-chart { height: 104px; border-color: rgba(255,255,255,.07); border-radius: 12px; background: rgba(4,6,12,.46); }
body.fd-redesign .c-swap a, body.fd-redesign .c-swap button { border-radius: 10px; }
body.fd-redesign .tbl-wrap { padding: 18px clamp(14px,2vw,30px) 32px; }
body.fd-redesign table { border-collapse: separate; border-spacing: 0; }
body.fd-redesign .tbl-wrap table, body.fd-redesign .data-table-wrap { border: 1px solid var(--fd-border); border-radius: var(--fd-radius); overflow: hidden; background: rgba(11,13,23,.7); }
body.fd-redesign th { color: var(--fd-dim); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.fd-redesign td { border-color: rgba(255,255,255,.055); }
body.fd-redesign tbody tr:hover td { background: rgba(45,212,232,.035); }

/* Explorer, token, holder, portfolio and wallet */
body.fd-redesign .explorer-shell { width: min(1520px,100%); margin: 0 auto; padding: 28px clamp(12px,2.5vw,36px) 60px; }
body.fd-redesign .explorer-card, body.fd-redesign .result-card, body.fd-redesign .portfolio-chart-card, body.fd-redesign .holder-analysis-card, body.fd-redesign .holder-history-card, body.fd-redesign .holder-table-card {
  border-color: var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: linear-gradient(180deg,rgba(19,22,37,.9),rgba(10,12,21,.9));
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset, var(--fd-shadow);
}
body.fd-redesign .explorer-card { padding: clamp(20px,3vw,36px); }
body.fd-redesign .explorer-kicker, body.fd-redesign .holder-eyebrow { color: var(--fd-cyan); letter-spacing: .12em; }
body.fd-redesign .explorer-title { color: var(--fd-text); font-size: clamp(30px,4vw,50px); letter-spacing: -.045em; }
body.fd-redesign .explorer-subtitle { max-width: 720px; color: var(--fd-muted); }
body.fd-redesign .search-row input, body.fd-redesign .holder-wallet-search input, body.fd-redesign .portfolio-filter-input { border-color: var(--fd-border); border-radius: 12px; background: rgba(5,7,13,.68); }
body.fd-redesign .primary-btn, body.fd-redesign .ghost-btn, body.fd-redesign .copy, body.fd-redesign .ext { min-height: 38px; border-radius: 11px; }
body.fd-redesign .primary-btn { background: linear-gradient(135deg,var(--fd-purple-strong),#5f52d8); box-shadow: 0 10px 26px rgba(118,102,255,.2); }
body.fd-redesign .holder-overview-grid, body.fd-redesign .portfolio-stat-grid, body.fd-redesign .positions-summary-grid { gap: 12px; }
body.fd-redesign .holder-metric, body.fd-redesign .positions-summary-card, body.fd-redesign .breakdown-card, body.fd-redesign .allocation-card { border-color: var(--fd-border); border-radius: 14px; background: rgba(255,255,255,.03); }
body.fd-redesign .holder-pie-detail, body.fd-redesign .portfolio-chart-tooltip { z-index: 60; border-color: rgba(45,212,232,.25); background: rgba(8,11,20,.97); box-shadow: var(--fd-shadow); }
body.fd-redesign .holder-pie-legend button { border-radius: 12px; }
body.fd-redesign .holder-history-plot, body.fd-redesign .portfolio-chart-card { overflow: hidden; }
body.fd-redesign .portfolio-chart-capture { touch-action: pan-y; }

/* Transaction and utility pages */
body.fd-redesign .seo-intro { color: var(--fd-muted); }
body.fd-transactional .seo-intro {
  position: relative !important;
  width: min(960px,100%) !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 34px clamp(16px,3vw,30px) 8px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  text-align: center;
}
body.fd-transactional .seo-intro h1 { margin: 0; color: var(--fd-text); font-size: clamp(28px,3vw,42px); letter-spacing: -.04em; }
body.fd-transactional .seo-intro p { max-width: 680px; margin: 8px auto 0; color: var(--fd-muted); line-height: 1.55; }
body.fd-redesign .swap-page, body.fd-redesign .bridge-page, body.fd-redesign .pack-page, body.fd-redesign .submit-page, body.fd-redesign main.container { width: min(1120px,100%); margin-inline: auto; padding-inline: clamp(12px,2.5vw,30px); }
body.fd-redesign .panel, body.fd-redesign .bridge-card, body.fd-redesign .pack-card, body.fd-redesign .form-card, body.fd-redesign .card-box {
  border-color: var(--fd-border);
  border-radius: var(--fd-radius-lg);
  background: linear-gradient(180deg,rgba(19,22,37,.94),rgba(10,12,21,.94));
  box-shadow: var(--fd-shadow), inset 0 1px rgba(255,255,255,.04);
}
body.fd-redesign input, body.fd-redesign select, body.fd-redesign textarea { border-color: var(--fd-border); }
body.fd-redesign .picker-modal, body.fd-redesign .result-modal, body.fd-redesign .modal, body.fd-redesign .qr-card { border-color: var(--fd-border-strong); border-radius: var(--fd-radius-lg); background: var(--fd-surface-solid); box-shadow: 0 30px 90px rgba(0,0,0,.6); }

/* Shared footer and legal notice */
.site-footer {
  width: 100%;
  margin-top: 28px;
  padding: 24px clamp(14px,3vw,32px);
  border-top: 1px solid var(--fd-border,rgba(148,163,184,.14));
  background: rgba(6,7,13,.62);
  color: var(--fd-muted,#94a3b8);
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; width: min(1200px,100%); margin: 0 auto; }
.footer-left,.footer-right { display: flex; flex-direction: column; gap: 7px; }
.footer-right { align-items: flex-end; text-align: right; }
.footer-title { color: var(--fd-text,#f4f7fb); font-size: 14px; font-weight: 850; }
.footer-desc { max-width: 560px; font-size: 12px; line-height: 1.55; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.footer-links a,.footer-link-btn { padding: 0; border: 0; background: transparent; color: var(--fd-muted,#94a3b8); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; transition: color .15s; }
.footer-links a:hover,.footer-link-btn:hover { color: var(--fd-cyan,#2dd4e8); }
.footer-credit { color: var(--fd-dim,#64748b); font-size: 10px; }
.site-footer--compact { margin-top: auto; padding: 12px 0 2px; border-top-style: dashed; background: transparent; }
.site-footer--compact .footer-inner,.site-footer--compact .footer-links { display: flex; justify-content: flex-start; gap: 9px; }
.site-footer--compact .footer-inner { flex-direction: column; }
.site-footer--compact .footer-left,.site-footer--compact .footer-right { width: 100%; align-items: flex-start; text-align: left; gap: 4px; }
.site-footer--compact .footer-title { font-size: 11px; }
.site-footer--compact .footer-desc { font-size: 10px; line-height: 1.45; }
.site-footer--compact .footer-links a,.site-footer--compact .footer-link-btn { font-size: 10px; }
.site-footer--compact .footer-credit { font-size: 9px; }

.disclaimer-bg { position: fixed; inset: 0; z-index: 180; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.disclaimer-bg.open { display: flex; }
.disclaimer-modal { position: relative; width: min(720px,100%); max-height: min(84vh,720px); overflow: auto; padding: 20px; border: 1px solid rgba(45,212,232,.22); border-radius: 16px; background: linear-gradient(180deg,rgba(13,16,24,.99),rgba(9,11,17,.99)); color: var(--fd-text,#f4f7fb); box-shadow: 0 28px 70px rgba(0,0,0,.58); }
.disclaimer-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--fd-border,rgba(148,163,184,.14)); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--fd-muted,#94a3b8); font: inherit; font-size: 20px; cursor: pointer; }
.disclaimer-close:hover { color: var(--fd-text,#f4f7fb); border-color: rgba(45,212,232,.45); background: rgba(45,212,232,.08); }
.disclaimer-kicker { margin-bottom: 6px; color: var(--fd-cyan,#2dd4e8); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.disclaimer-modal h2 { margin: 0 42px 10px 0; font-size: 20px; letter-spacing: -.02em; }
.disclaimer-lead,.disclaimer-footnote { margin: 0; color: var(--fd-muted,#94a3b8); font-size: 12px; line-height: 1.65; }
.disclaimer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.disclaimer-card { padding: 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.025); }
.disclaimer-card h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.disclaimer-card ul { margin: 0; padding-left: 17px; color: var(--fd-muted,#94a3b8); font-size: 11px; line-height: 1.6; }
.disclaimer-card li+li { margin-top: 6px; }
.disclaimer-card strong { color: var(--fd-text,#f4f7fb); }
body.disclaimer-open { overflow: hidden !important; }

/* Chart workspace */
body.fd-chart main { width: 100%; min-width: 0; gap: 12px; padding: 12px; }
body.fd-chart .profile-aside { flex-basis: 310px; width: 310px; max-width: min(310px,32vw); margin-right: 0; border-color: var(--fd-border); border-radius: var(--fd-radius); background: rgba(15,18,30,.92); }
@media (min-width: 861px) {
  body.fd-chart.sidebar-collapsed-left .profile-aside {
    flex: 0 0 42px;
    width: 42px;
    max-width: 42px;
    margin-right: 0;
    overflow: hidden;
  }
}
body.fd-chart .chart-area { min-width: 0; border-radius: var(--fd-radius); overflow: hidden; }
body.fd-chart #chart-wrap { min-width: 0; border-color: var(--fd-border); border-radius: var(--fd-radius); background: #080a11; }
body.fd-chart .toolbar { border-color: var(--fd-border); background: rgba(17,20,34,.92); }
body.fd-chart .toolbar button, body.fd-chart .toolbar summary { border-radius: 9px; }
body.fd-chart #trades { min-width: 0; overflow: hidden; background: rgba(9,11,18,.94); }
body.fd-chart #trades .trades-table-wrap, body.fd-chart #trades .table-wrap { max-width: 100%; overflow: auto; }
body.fd-chart .pa-stat { border-radius: 11px; background: rgba(255,255,255,.025); }
body.fd-chart .holder-popover, body.fd-chart .trade-wallet-popover { z-index: 120; border-radius: 14px; background: rgba(10,12,21,.98); box-shadow: var(--fd-shadow); }

@media (max-width: 1600px) and (min-width: 861px) {
  body.fd-chart .app-header { flex-wrap: wrap; gap-block: 7px; }
  body.fd-chart .hdr-nav { order: 3; flex: 1 1 100%; justify-content: center; }
  body.fd-chart .hdr-nav a.active::after { bottom: -8px; }
}

@media (max-width: 1180px) {
  body.fd-redesign .app-header { flex-wrap: wrap; gap-block: 7px; }
  body.fd-redesign .hdr-nav { order: 3; flex: 1 1 100%; justify-content: center; }
  body.fd-redesign .hdr-nav a { padding-inline: 10px; font-size: 12px; }
  body.fd-redesign .hdr-nav a.active::after { bottom: -8px; }
  body.fd-redesign .preview-pill { display: none; }
  body.fd-redesign .header-summary .sl { display: none; }
  body.fd-chart .profile-aside { flex-basis: 270px; width: 270px; max-width: 29vw; }
}

@media (max-width: 860px) {
  body.fd-redesign { padding-bottom: calc(var(--fd-bottom-nav-h) + env(safe-area-inset-bottom,0px)); }
  body.fd-redesign #app-header { overflow: visible; }
  body.fd-redesign .app-header { min-height: 58px; padding: 9px 12px; flex-wrap: nowrap; gap: 9px; }
  body.fd-redesign .brand { flex: 0 1 auto; max-width: 130px; }
  body.fd-redesign .brand img { width: 32px; height: 32px; }
  body.fd-redesign .hdr-nav { display: none; }
  body.fd-redesign .hdr-right { max-width: none; }
  body.fd-redesign .hdr-x, body.fd-redesign .hdr-status { display: none; }
  body.fd-redesign .summary.pool-summary.header-summary { display: none; }
  body.fd-redesign .wallet-btn { max-width: 124px; min-height: 36px; }
  body.fd-redesign .hdr-search { flex: 1 1 auto; min-width: 0; max-width: none; margin-left: 0; }
  body.fd-redesign .hdr-search input { min-height: 36px; border-radius: 10px; }
  body.fd-redesign .recent-tokens, body.fd-redesign header .meta { display: none; }
  .mobile-bottom-nav {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px,env(safe-area-inset-bottom,0px));
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 18px;
    background: rgba(12,14,24,.94);
    box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(22px);
  }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border-radius: 12px; color: var(--fd-dim); font-size: 9px; font-weight: 800; text-decoration: none; }
  .mobile-bottom-nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav a.active { color: #e9ffff; background: linear-gradient(180deg,rgba(45,212,232,.14),rgba(139,124,255,.1)); }
  body.fd-redesign .trending-rail { position: relative; top: auto; min-height: 44px; padding: 6px 10px; }
  .token-workspace { padding: 6px 10px; }
  .token-workspace > span { display: none; }
  .token-workspace a { flex: 1 0 auto; text-align: center; }
  body.fd-redesign .controls { padding: 12px; }
  body.fd-redesign .search-shell { min-width: 100%; order: -1; }
  body.fd-redesign .grid { padding: 12px 10px 24px; }
  body.fd-redesign .tbl-wrap { padding: 12px 10px 24px; overflow-x: auto; }
  body.fd-redesign .explorer-shell { padding: 14px 9px 30px; }
  body.fd-redesign .explorer-card, body.fd-redesign .result-card, body.fd-redesign .holder-analysis-card, body.fd-redesign .holder-history-card, body.fd-redesign .holder-table-card { border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
  body.fd-redesign .explorer-title { font-size: 30px; }
  .preview-live-banner { align-items: flex-start; justify-content: flex-start; padding-inline: 12px; }
  body.fd-transactional .seo-intro { padding-top: 24px !important; text-align: left; }
  body.fd-transactional .seo-intro p { margin-left: 0; }
}

@media (max-width: 768px) {
  body.fd-chart { overflow-y: auto; }
  body.fd-chart.mob-chart,
  body.fd-chart.mob-trades,
  body.fd-chart.mob-swap {
    overflow: hidden;
    padding-bottom: 0;
  }
  body.fd-chart main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 8px;
  }
  body.fd-chart.mob-chart main,
  body.fd-chart.mob-trades main,
  body.fd-chart.mob-swap main {
    height: var(--mobile-chart-main-h);
    overflow: hidden;
  }
  body.fd-chart.mob-info main {
    height: auto;
    overflow: visible;
  }
  body.fd-chart .profile-aside {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    max-height: none;
    margin: 0;
    border-radius: 14px;
  }
  body.fd-chart .chart-area {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
  }
  body.fd-chart #chart-wrap {
    min-height: 0;
    border-radius: 14px;
  }
  body.fd-chart #trades { min-height: 0; }
  body.fd-chart .mob-tabs { display: grid; }
}

@media (max-width: 520px) {
  body.fd-redesign .brand span { display: none; }
  body.fd-redesign .brand { width: 34px; }
  body.fd-redesign .wallet-btn { max-width: 106px; padding-inline: 10px; font-size: 11px; }
  body.fd-redesign .summary.pool-summary { overflow-x: auto; }
  body.fd-redesign .summary .sv { font-size: 13px; }
  body.fd-redesign .trending-rail .trending-card .trend-spark { display: none; }
  body.fd-redesign .card { padding: 14px; }
  body.fd-redesign .card-chart { height: 94px; }
  body.fd-redesign .holder-overview-grid, body.fd-redesign .holder-insight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.fd-redesign .holder-pie-legend { grid-template-columns: 1fr; }
  body.fd-redesign .holder-history-controls .segmented { width: 100%; }
  body.fd-redesign .holder-history-tooltip, body.fd-redesign .portfolio-chart-tooltip { max-width: calc(100% - 16px); }
  .preview-live-banner { display: grid; gap: 1px; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; text-align: left; }
  .footer-links { justify-content: flex-start; }
  .disclaimer-grid { grid-template-columns: 1fr; }
  .disclaimer-modal { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body.fd-redesign .trending-track { animation: none !important; }
}
