/* Mobile H5 — layout spec, Inter, black & white only */
.m-h5-only {
  display: none;
}

@media (max-width: 760px) {
  body.is-mobile-layout {
    --m-h5-header-h: calc(44px + env(safe-area-inset-top, 0px));
    --m-h5-subnav-h: 44px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    background: #000 !important;
    color: #fff !important;
  }

  body.is-mobile-layout .m-h5-only {
    display: flex;
  }

  body.is-mobile-layout .sidebar,
  body.is-mobile-layout .dashboard-top,
  body.is-mobile-layout .topbar,
  body.is-mobile-layout .mobile-back-home,
  body.is-mobile-layout .mobile-home-actions,
  body.is-mobile-layout .dashboard > .metrics-grid.mobile-home-body {
    display: none !important;
  }

  body.is-mobile-layout .dashboard {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #000 !important;
    color: #fff !important;
    border: 0 !important;
  }

  body.is-mobile-layout .dashboard-scroll {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(var(--m-h5-header-h) + var(--m-h5-subnav-h)) 0 calc(58px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  /* 1. Header */
  body.is-mobile-layout #mobile-h5-header {
    position: fixed;
    z-index: 500;
    inset: 0 0 auto 0;
    height: var(--m-h5-header-h);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    border-bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
  }

  body.is-mobile-layout .m-h5-brand {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  body.is-mobile-layout .chain-search-field--mobile-header {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 6px;
    position: relative;
    display: none;
  }

  body.is-mobile-layout[data-view="radar"] .chain-search-field--mobile-header {
    display: block;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 30px;
    padding: 0 10px 0 8px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #111;
    color: #888;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    outline: none;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-input::placeholder {
    color: #666;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-icon {
    font-size: 13px;
    line-height: 1;
    color: #777;
    flex-shrink: 0;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-dropdown {
    position: absolute;
    z-index: 600;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow: auto;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    background: #0a0a0a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-option {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #1a1a1a;
    background: transparent;
    color: #ddd;
    text-align: left;
    cursor: pointer;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-option:last-child {
    border-bottom: 0;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-option strong {
    font-size: 13px;
    color: #fff;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-option span {
    font-size: 11px;
    color: #888;
  }

  body.is-mobile-layout .chain-search-field--mobile-header .chain-search-empty {
    padding: 12px;
    font-size: 12px;
    color: #777;
  }

  body.is-mobile-layout .m-h5-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
  }

  body.is-mobile-layout .m-h5-brand-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
  }

  body.is-mobile-layout .m-h5-header-actions {
    display: flex;
    flex: 0 0 auto;
    shrink: 0;
    align-items: center;
    gap: 8px;
  }

  body.is-mobile-layout #mobile-h5-wallet {
    max-width: 96px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #111;
    color: #ccc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-layout #mobile-h5-boost {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #000;
    line-height: 1.05;
  }

  body.is-mobile-layout #mobile-h5-boost .boost-btn-label {
    font-size: 10px;
    font-weight: 700;
  }

  body.is-mobile-layout #mobile-h5-boost .boost-btn-time {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
  }

  /* 2. Subnav — fixed below header, horizontally centered */
  body.is-mobile-layout #mobile-h5-subnav {
    position: fixed;
    z-index: 490;
    top: var(--m-h5-header-h);
    left: 0;
    right: 0;
    height: var(--m-h5-subnav-h);
    margin: 0;
    padding: 0 6px;
    border-bottom: 1px solid #1a1a1a;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }

  body.is-mobile-layout .m-h5-subnav-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: var(--m-h5-subnav-h);
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    vertical-align: top;
  }

  body.is-mobile-layout #mobile-h5-subnav::-webkit-scrollbar {
    display: none;
  }

  body.is-mobile-layout .m-h5-subnav-item {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #0a0a0a;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  body.is-mobile-layout .m-h5-subnav-item.active {
    border-color: #fff;
    background: #fff;
    color: #000;
  }

  /* 3. 冷门meme tab page */
  body.is-mobile-layout .mobile-meme-panel {
    margin: 10px 0 16px !important;
  }

  body.is-mobile-layout .mobile-meme-panel.alert-highlight {
    border: 1px solid rgba(255, 77, 79, 0.75) !important;
    border-radius: 12px !important;
    background: #121212 !important;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.35) !important;
  }

  body.is-mobile-layout .mobile-meme-panel.alert-highlight .queue-count {
    color: #4ade80 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  body.is-mobile-layout .meme-page-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
  }

  body.is-mobile-layout .meme-page-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  body.is-mobile-layout .meme-page-list .meme-monitor-row,
  body.is-mobile-layout .meme-page-list .chain-row {
    border-bottom: 1px solid #1a1a1a;
    padding: 10px 0;
    color: #ccc;
  }

  body.is-mobile-layout .meme-page-list .empty-state {
    padding: 24px 0;
    color: #888;
    font-size: 13px;
    text-align: center;
  }

  /* 4. Full-width monitor event banner */
  body.is-mobile-layout .m-h5-event-banner {
    display: block;
    width: calc(100% - 24px);
    margin: 10px 12px 0;
    padding: 0;
    border: 1px solid #222;
    border-radius: 10px;
    background: #0a0a0a;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
  }

  body.is-mobile-layout .m-h5-event-banner.alert-highlight {
    border-color: rgba(255, 77, 79, 0.75) !important;
    background: #121212 !important;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.35);
  }

  body.is-mobile-layout .m-h5-event-banner.alert-highlight::before {
    top: 8px;
    bottom: 8px;
  }

  body.is-mobile-layout .m-h5-event-banner.alert-highlight .m-h5-event-row {
    color: #ccc;
  }

  body.is-mobile-layout .m-h5-event-carousel {
    position: relative;
    width: 100%;
    height: 44px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }

  body.is-mobile-layout .m-h5-event-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  body.is-mobile-layout .m-h5-event-track.is-paused {
    will-change: auto;
  }

  body.is-mobile-layout .m-h5-event-row {
    flex: 0 0 auto;
    padding-right: 48px;
    font-size: 12px;
    font-weight: 500;
    line-height: 44px;
    color: #ccc;
    white-space: nowrap;
  }

  body.is-mobile-layout .m-h5-metric-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #0a0a0a;
    text-align: left;
  }

  body.is-mobile-layout .m-h5-metric-card span {
    font-size: 10px;
    color: #888;
  }

  body.is-mobile-layout .m-h5-metric-card strong {
    margin: 6px 0 4px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
  }

  body.is-mobile-layout .m-h5-metric-card small {
    font-size: 10px;
    color: #666;
    line-height: 1.3;
  }

  body.is-mobile-layout .m-h5-metric-card--alert {
    border-color: #666;
  }

  body.is-mobile-layout .m-h5-metric-card--alert strong {
    color: #fff;
  }

  /* 5–6. Content panels */
  body.is-mobile-layout .view-panel {
    margin: 0 !important;
    padding: 0 12px;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .workbench {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0 16px;
    padding: 0;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .radar-panel,
  body.is-mobile-layout .view-panel[data-panel="radar"] .funnel-panel {
    border: 1px solid #222;
    border-radius: 12px;
    background: #0a0a0a;
    padding: 12px;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .inflow-board,
  body.is-mobile-layout .view-panel[data-panel="radar"] .heat-legend-bar {
    display: none !important;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .panel-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .panel-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
  }

  body.is-mobile-layout .view-panel[data-panel="radar"] .heat-board,
  body.is-mobile-layout .view-panel[data-panel="radar"] .new-chain-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  body.is-mobile-layout .mobile-h5-card {
    border: 0 !important;
    border-bottom: 1px solid #1a1a1a !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 10px 0 !important;
    color: #fff !important;
  }

  body.is-mobile-layout .mobile-h5-card:last-child {
    border-bottom: 0 !important;
  }

  body.is-mobile-layout .mobile-h5-card strong,
  body.is-mobile-layout .mobile-h5-card b {
    color: #fff !important;
  }

  body.is-mobile-layout .mobile-h5-card span,
  body.is-mobile-layout .mobile-h5-card small {
    color: #888 !important;
  }

  /* Tab pages */
  body.is-mobile-layout[data-view="core"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="tvl"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="watch"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="account"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="discover"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="pools"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="membership"] #mobile-h5-home-chrome,
  body.is-mobile-layout[data-view="meme"] #mobile-h5-home-chrome {
    display: none !important;
  }

  body.is-mobile-layout .view-panel.hidden {
    display: none !important;
  }

  body.is-mobile-layout .view-panel:not(.hidden) {
    display: block !important;
  }

  body.is-mobile-layout .table-panel,
  body.is-mobile-layout .alerts-panel,
  body.is-mobile-layout .watch-config-panel,
  body.is-mobile-layout .watch-feed-panel,
  body.is-mobile-layout .mobile-menu-panel,
  body.is-mobile-layout .watch-snapshot-card {
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    background: #0a0a0a !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  body.is-mobile-layout .panel-head h3 {
    color: #fff !important;
    font-size: 14px !important;
  }

  body.is-mobile-layout .detail-row,
  body.is-mobile-layout .chain-row,
  body.is-mobile-layout .heat-row,
  body.is-mobile-layout .new-chain-row,
  body.is-mobile-layout .pool-row,
  body.is-mobile-layout .alert-row,
  body.is-mobile-layout .watch-token-row {
    background: #0a0a0a !important;
    color: #ccc !important;
    border: 1px solid #222 !important;
    box-shadow: none !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-panel,
  body.is-mobile-layout .view-panel[data-panel="membership"] .full-panel,
  body.is-mobile-layout .view-panel[data-panel="membership"] .table-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-panel.alert-highlight {
    margin: 0 12px !important;
    padding: 12px 12px 8px 14px !important;
    border: 1px solid rgba(255, 77, 79, 0.75) !important;
    border-radius: 12px !important;
    background: #121212 !important;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.35) !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-panel.alert-highlight .anomaly-panel-head {
    margin: 0 0 10px;
    padding: 0 0 10px;
  }

  body.is-mobile-layout .anomaly-panel.alert-highlight .anomaly-panel-count {
    color: #4ade80 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-panel-head {
    margin: 0 12px 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #222 !important;
  }

  body.is-mobile-layout .anomaly-panel-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  body.is-mobile-layout .anomaly-panel-count {
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-subtitle {
    margin-top: 4px !important;
    font-size: 11px !important;
    color: #666 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .anomaly-board {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card {
    display: block !important;
    padding: 12px 14px !important;
    border: 1px solid #222 !important;
    border-radius: 10px !important;
    background: #0a0a0a !important;
    color: #ccc !important;
    margin-bottom: 0 !important;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card.dual {
    border-color: #2a3a32 !important;
    background: rgba(84, 240, 162, 0.03) !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card.severe {
    border-color: #3a2a2a !important;
    background: rgba(255, 92, 122, 0.03) !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-chain {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-metric-pill {
    padding: 2px 8px !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    background: #111 !important;
    color: #888 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card.dual .anomaly-metric-pill {
    border-color: #2a4a38 !important;
    background: rgba(84, 240, 162, 0.08) !important;
    color: #9ef0c4 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card.severe .anomaly-metric-pill {
    border-color: #4a3038 !important;
    background: rgba(255, 92, 122, 0.08) !important;
    color: #ffb3c0 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-pct.is-up {
    color: #fff !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-pct.is-severe {
    color: #ff6b6b !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-pct.is-down {
    color: #ff8a8a !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-meta {
    color: #666 !important;
    font-size: 12px !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-meta.meta-cold {
    color: #7eb8d4 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-meta.meta-emerging {
    color: #c4a86a !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-meta.meta-dual {
    color: #7ecaa0 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card-value {
    color: #aaa !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  body.is-mobile-layout .anomaly-board .anomaly-card.severe .anomaly-card-value {
    color: #c8a0a8 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="membership"] .panel-head {
    border-bottom: 0 !important;
  }

  body.is-mobile-layout .full-panel > .anomaly-board {
    background: transparent !important;
    max-height: none !important;
  }

  body.is-mobile-layout .watch-layout,
  body.is-mobile-layout .watch-snapshot-grid,
  body.is-mobile-layout .discover-grid,
  body.is-mobile-layout .split-grid,
  body.is-mobile-layout .pools-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 10px 0 16px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.is-mobile-layout .watch-layout > *,
  body.is-mobile-layout .discover-grid > *,
  body.is-mobile-layout .split-grid > *,
  body.is-mobile-layout .pools-layout > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
  }

  body.is-mobile-layout .upcoming-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px !important;
    margin: 0 !important;
  }

  body.is-mobile-layout .upcoming-row-link {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.is-mobile-layout .upcoming-row-head {
    align-items: flex-start;
  }

  body.is-mobile-layout .upcoming-row-head strong {
    font-size: 14px !important;
    line-height: 1.35;
  }

  body.is-mobile-layout .upcoming-row-meta {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: #888 !important;
  }

  body.is-mobile-layout .upcoming-row-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #ccc !important;
  }

  body.is-mobile-layout .upcoming-row-date {
    max-width: none;
    text-align: left;
  }

  body.is-mobile-layout .upcoming-row-date strong {
    font-size: 12px !important;
    color: var(--green) !important;
  }

  body.is-mobile-layout .upcoming-subscribe-btn {
    align-self: start;
    margin-top: 2px;
  }

  body.is-mobile-layout #upcoming-table.detail-table {
    display: grid;
    gap: 10px;
    max-height: none !important;
    overflow: visible !important;
  }

  /* 7. Bottom nav */
  body.is-mobile-layout #mobile-h5-bottom-nav {
    position: fixed;
    z-index: 500;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid #222;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
  }

  body.is-mobile-layout .m-h5-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
  }

  body.is-mobile-layout .m-h5-tab-icon {
    font-size: 16px;
    line-height: 1;
  }

  body.is-mobile-layout .m-h5-tab.active {
    color: #fff;
  }

  body.is-mobile-layout .m-h5-tab span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-mobile-layout .m-h5-tab[data-view="membership"] span:last-child {
    font-size: 9px;
    letter-spacing: -0.02em;
  }

  body.is-mobile-layout .m-h5-tab[data-view="meme"] span:last-child {
    font-size: 9px;
    letter-spacing: -0.02em;
  }

  body.is-mobile-layout .m-h5-home-chrome {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 10px 12px 0;
    box-sizing: border-box;
  }

  body.is-mobile-layout .m-h5-home-chrome.hidden {
    display: none !important;
  }

  body.is-mobile-layout .circle-arc-panel--mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 209, 102, 0.55);
    background: #0a0a0a;
    animation: circle-arc-glow-ring 1.8s ease-in-out infinite;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-title {
    font-size: 14px;
    font-weight: 600;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-kv {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-kv span {
    color: #888;
    font-size: 10px;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-kv strong {
    font-size: 14px;
    color: #fff;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-tagline {
    white-space: normal;
    color: #c8c8c8;
    font-size: 12px;
    line-height: 1.4;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-btn {
    flex: 1 1 auto;
    min-height: 36px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-link {
    color: #aaa;
    font-size: 12px;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-switch {
    margin-left: auto;
  }

  body.is-mobile-layout .circle-arc-panel--mobile .circle-arc-switch-label {
    color: #aaa;
    font-size: 12px;
  }

  body.is-mobile-layout #mobile-back-home {
    display: none !important;
  }

  body.is-mobile-layout:not([data-view="radar"]) .dashboard {
    padding-top: 0 !important;
  }

  body.is-mobile-layout[data-view="core"] .view-panel[data-panel="core"] .bridge-panel {
    margin: 10px 0 16px !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    background: #0a0a0a !important;
  }

  body.is-mobile-layout[data-view="core"] .view-panel[data-panel="core"] .bridge-board {
    padding: 0 12px 12px !important;
  }

  /* Account tab */
  body.is-mobile-layout .view-panel[data-panel="account"] .mobile-menu-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="account"] .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 0 !important;
  }

  body.is-mobile-layout .view-panel[data-panel="account"] .panel-head h3 {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  body.is-mobile-layout .mobile-account-guest,
  body.is-mobile-layout .mobile-account-profile,
  body.is-mobile-layout .pro-membership-card {
    margin: 0 12px;
  }

  body.is-mobile-layout .pro-membership-card {
    margin-bottom: 12px;
    border-color: rgba(255, 184, 77, 0.24) !important;
    background: #0a0a0a !important;
  }

  body.is-mobile-layout .pro-membership-card.is-active {
    border-color: rgba(255, 184, 77, 0.42) !important;
  }

  body.is-mobile-layout .pro-membership-title {
    color: #fff !important;
  }

  body.is-mobile-layout .pro-membership-contact {
    border-radius: 999px;
  }

  body.is-mobile-layout .mobile-account-guest {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #222 !important;
    border-radius: 16px !important;
    background: #0a0a0a !important;
  }

  body.is-mobile-layout .mobile-account-guest strong {
    color: #fff !important;
    font-size: 18px;
  }

  body.is-mobile-layout .mobile-account-guest span {
    color: #888 !important;
    font-size: 13px;
    line-height: 1.5;
  }

  body.is-mobile-layout .mobile-account-guest .primary-btn.compact {
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #54f0a2 !important;
    color: #000 !important;
    font-weight: 700;
  }

  body.is-mobile-layout .mobile-account-profile {
    display: grid;
    gap: 10px;
  }

  body.is-mobile-layout .mobile-account-section {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #222;
    border-radius: 14px;
    background: #0a0a0a;
  }

  body.is-mobile-layout .mobile-account-label {
    color: #666;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  body.is-mobile-layout .mobile-account-section strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-all;
  }

  body.is-mobile-layout .mobile-account-meta {
    color: #888;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-all;
  }

  body.is-mobile-layout .mobile-account-watch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
  }

  body.is-mobile-layout .mobile-account-watch-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #111;
    color: #ccc;
    font-size: 12px;
  }

  body.is-mobile-layout .mobile-account-watch-chip strong {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  body.is-mobile-layout .mobile-account-watch-chip span {
    color: #888;
    font-size: 11px;
  }

  body.is-mobile-layout .mobile-account-empty {
    color: #666;
    font-size: 12px;
    line-height: 1.45;
  }

  body.is-mobile-layout .mobile-account-actions {
    display: grid;
    gap: 8px;
    margin-top: 4px;
  }

  body.is-mobile-layout .mobile-account-btn {
    width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
  }

  body.is-mobile-layout .mobile-account-btn.accent {
    border-color: #54f0a2;
    background: #54f0a2;
    color: #000;
  }

  body.is-mobile-layout .auth-modal {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1200;
  }

  body.is-mobile-layout .auth-modal-panel {
    max-height: none;
    overflow: visible;
  }

  body.is-mobile-layout .auth-modal-panel.membership-panel {
    background: linear-gradient(180deg, rgba(24, 30, 27, 0.98), rgba(16, 20, 18, 0.98)) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
  }

  body.is-mobile-layout .auth-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 10px;
    background: linear-gradient(180deg, rgba(21, 26, 24, 0.99), rgba(21, 26, 24, 0.92) 72%, transparent);
  }

  body.is-mobile-layout #membership-modal-close {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
  }

  body.is-mobile-layout .membership-cancel-btn {
    min-height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
    color: #fff;
  }

  body.is-mobile-layout .membership-dd-trigger {
    min-height: 44px;
    border-radius: 12px;
    background: #111 !important;
    border-color: #333 !important;
    color: #fff !important;
  }

  body.is-mobile-layout .membership-dd-menu,
  .membership-dd-menu {
    background: #121815;
    color: #ecf2ea;
  }

  /* DEX 成交量页 — 标题/筛选与内容居中 */
  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .pools-layout {
    align-items: center !important;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .pools-layout > * {
    width: min(100%, 380px) !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .panel-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .panel-head h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .panel-head .segmented {
    justify-content: center;
    flex-wrap: nowrap;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .chain-dex-board {
    width: 100%;
    margin: 0 auto;
  }

  body.is-mobile-layout[data-view="pools"] .view-panel[data-panel="pools"] .alert-feed {
    width: 100%;
  }
}

@media (min-width: 761px), (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .m-h5-only {
    display: none !important;
  }

  .dashboard-scroll {
    display: contents;
  }
}
