/* 移动端采用页内分段导航与紧凑业务卡片；宽屏保留原有总览。 */
.ibn-mobile-pager, .ibn-mobile-content { display: contents; }
.ibn-mobile-preview { display: none; }
.ibn-promo-list-toggle { display: none; }
.ibn-commission-unit { display: none; }
.ibm-mobile-record-list, .ibm-mobile-sort { display: none; }
body[data-layout-page="ib-dashboard-new"] .sidebar .brand-subtitle { display: none; }
.ibn-quicknav-more { display: contents; }
.ibn-quicknav-more[hidden],
.ibn-quicknav .ibn-quicknav-mobile-only,
.ibn-mobile-quicknav-toggle { display: none; }
.ibn-mobile-nav,
.ibn-mobile-nav-anchor,
.ibn-mobile-filter-trigger,
.ibn-mobile-level-summary,
.ibn-mobile-level-toggle,
.ibn-mobile-table-sort,
.ibn-mobile-filter-sheet:not([open]) { display: none; }

@media (max-width: 760px) {
  /* 同一语义使用同一字号：说明、正文、标题、指标、核心金额。 */
  body.ibn-mobile-ready {
    --ibn-type-caption: 12px;
    --ibn-type-body: 13px;
    --ibn-type-title: 15px;
    --ibn-type-metric: 22px;
    --ibn-type-hero: 30px;
    /* 卡片采用 16px 侧边 / 底部留白，8px 内容间隔、12px 分组间隔。 */
    --ibn-card-inset: 16px;
    --ibn-content-gap: 8px;
    --ibn-group-gap: 12px;
  }
  body[data-layout-page="ib-dashboard-new"] { background: var(--page-bg); }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    box-shadow: none;
    background: var(--surface);
  }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) .brand { min-height: 56px; padding-block: 8px; }
  body.ibn-nav-stuck[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) { border-bottom-color: transparent; }
  body[data-layout-page="ib-dashboard-new"] .mobile-nav-toggle { top: 6px; width: 44px; height: 44px; flex-basis: 44px; border: 0; background: transparent; box-shadow: none; }
  body.ibn-mobile-ready[data-layout-page="ib-dashboard-new"] .mobile-client-notification { top: 6px; right: 60px; width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; }
  body[data-layout-page="ib-dashboard-new"] .ibn-page { padding: 12px 16px; background: var(--page-bg); }
  .ibn-mobile-ready .ibn-shell, .ibn-mobile-ready .ibn-mobile-content { display: flex; flex-direction: column; min-width: 0; }
  .ibn-mobile-ready .ibn-page { overflow-x: clip; }
  .ibn-mobile-ready .ibn-mobile-pager { display: block; position: relative; min-width: 0; min-height: calc(100svh - 180px); overflow-anchor: none; }
  .ibn-mobile-ready .ibn-mobile-content { width: 100%; }
  .ibn-mobile-ready .ibn-mobile-preview { position: absolute; inset: 0 0 auto; pointer-events: none; user-select: none; }
  .ibn-mobile-pager.is-moving { overflow: clip; }
  .ibn-mobile-pager.is-moving > .ibn-mobile-content { will-change: transform; backface-visibility: hidden; }
  .ibn-mobile-pager.is-moving { user-select: none; }
  .ibn-mobile-content:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) .brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) .brand-copy { display: flex; align-items: center; gap: 9px; }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) .brand-title { font-size: 16px; letter-spacing: -.04em; }
  body[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) .brand-subtitle { padding-left: 9px; border-left: 1px solid var(--border-light); font-size: 10px; }
  .ibn-mobile-ready .ibn-mobile-content[data-mobile-view="overview"] [data-mobile-pages]:not([data-mobile-pages~="overview"]),
  .ibn-mobile-ready .ibn-mobile-content[data-mobile-view="clients"] [data-mobile-pages]:not([data-mobile-pages~="clients"]),
  .ibn-mobile-ready .ibn-mobile-content[data-mobile-view="tasks"] [data-mobile-pages]:not([data-mobile-pages~="tasks"]) { display: none; }

  .ibn-mobile-ready .ibn-topbar { display: block; border: 0; padding: 0; margin-bottom: 10px; }
  .ibn-mobile-ready .ibn-heading { gap: 4px; margin-bottom: 0; }
  .ibn-mobile-ready .ibn-title { justify-content: space-between; align-items: center; gap: 8px; }
  .ibn-mobile-ready .ibn-title h1 { font-size: 19px; font-weight: 750; line-height: 1.35; letter-spacing: -.025em; }
  .ibn-mobile-ready .ibn-title small { font-size: var(--ibn-type-caption); white-space: nowrap; line-height: 1.5; }
  .ibn-mobile-ready .ibn-mobile-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
  .ibn-mobile-ready .ibn-controls > :is(.ibn-segment:not(.ibn-range-control), .ibn-select) { display: none; }
  .ibn-mobile-ready .ibn-range-control { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; padding: 0; gap: 6px; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready .ibn-range-control button { min-width: 0; min-height: 36px; padding: 5px 2px; border: 1px solid transparent; background: var(--surface-muted); color: var(--muted); box-shadow: none; font-size: var(--ibn-type-body); font-weight: 550; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
  .ibn-mobile-ready .ibn-range-control button.is-active { border-color: rgba(var(--blue-rgb), .2); background: var(--blue-soft); color: var(--blue); box-shadow: none; }
  .ibn-mobile-ready .ibn-mobile-filter-trigger { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-width: 64px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--surface); color: var(--text-strong); font: inherit; font-size: var(--ibn-type-body); font-weight: 550; cursor: pointer; line-height: 1.5; }
  .ibn-mobile-filter-trigger svg { width: 16px; height: 16px; }
  .ibn-mobile-filter-trigger b { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; }
  .ibn-mobile-filter-trigger b[hidden] { display: none; }
  .ibn-mobile-ready .ibn-section { margin-bottom: 12px; }
  .ibn-mobile-ready .ibn-card { padding: var(--ibn-content-gap) var(--ibn-card-inset) var(--ibn-card-inset); border-radius: 12px; box-shadow: none; }
  .ibn-mobile-ready .ibn-section-head { margin-bottom: 12px; }
  .ibn-mobile-ready .ibn-section-head h2 { font-size: var(--ibn-type-title); font-weight: 650; line-height: 1.4; }
  .ibn-mobile-ready .ibn-card-head h3 { font-size: var(--ibn-type-title); font-weight: 650; line-height: 1.4; }
  .ibn-mobile-ready .ibn-commission-summary-card { position: relative; padding: var(--ibn-content-gap) var(--ibn-card-inset) var(--ibn-card-inset); margin-bottom: 12px; cursor: pointer; }
  .ibn-mobile-ready .ibn-commission-summary-card > .ibn-section-head { gap: 8px; margin-bottom: var(--ibn-content-gap); min-height: 44px; }
  .ibn-mobile-ready .ibn-commission-summary-card h2 { display: inline-flex; align-items: center; gap: 7px; font-size: var(--ibn-type-title); font-weight: 650; color: var(--text-strong); white-space: nowrap; line-height: 1.4; }
  .ibn-mobile-ready .ibn-commission-unit { display: inline-flex; padding: 2px 5px; border-radius: 4px; background: var(--surface-muted); color: var(--muted); font-size: var(--ibn-type-caption); font-weight: 550; line-height: 1.5; letter-spacing: .02em; }
  .ibn-mobile-ready .ibn-commission-summary-card .ibn-card-actions { gap: 8px; }
  .ibn-mobile-ready .ibn-card-actions { gap: 12px; }
  .ibn-mobile-ready .ibn-card-action { min-width: 44px; min-height: 44px; font-size: var(--ibn-type-body); line-height: 1.5; }
  .ibn-mobile-ready .ibn-card-actions > .ibn-card-action:not(.ibn-earnings-toggle) { position: relative; z-index: 2; }
  .ibn-mobile-ready .ibn-earnings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "performance cumulative"; align-items: start; gap: 16px; }
  .ibn-mobile-ready .ibn-earnings-grid > .ibn-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready .ibn-earnings-grid > .ibn-performance-card { display: flex; flex-direction: column; gap: var(--ibn-content-gap); }
  .ibn-mobile-ready .ibn-performance-head { display: block; font-size: var(--ibn-type-body); font-weight: 500; line-height: 1.5; }
  .ibn-mobile-ready .ibn-performance-value { min-height: 0; margin: 0; gap: 5px; align-content: flex-end; }
  .ibn-mobile-ready .ibn-performance-value strong { font-size: var(--ibn-type-hero); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
  /* 手机端统一标注币种；保留每个金额的单位供辅助技术读取。 */
  .ibn-mobile-ready .ibn-commission-summary-card :is(.ibn-performance-value, .ibn-cumulative-value, .ibn-today-commission) > small { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ibn-mobile-ready .ibn-period-compare { align-self: flex-start; justify-content: flex-start; pointer-events: none; gap: 4px; font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-ready .ibn-period-compare small { font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-ready .ibn-earnings-grid > .ibn-cumulative-commission { padding-left: 0; border-left: 0; }
  .ibn-mobile-ready .ibn-cumulative-commission { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--ibn-content-gap); font-size: var(--ibn-type-body); font-weight: 500; line-height: 1.5; text-align: left; }
  .ibn-mobile-ready .ibn-cumulative-commission > span { flex-shrink: 0; }
  .ibn-mobile-ready .ibn-cumulative-value { justify-content: flex-start; align-content: flex-end; min-height: 0; gap: 5px; }
  .ibn-mobile-ready .ibn-cumulative-value strong { font-size: var(--ibn-type-hero); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
  .ibn-mobile-ready .ibn-cumulative-value small { font-size: 11px; }
  .ibn-mobile-ready .ibn-econ-item span { font-size: var(--ibn-type-body); font-weight: 500; line-height: 1.5; }
  .ibn-mobile-ready .ibn-econ-item strong { font-size: 15px; font-weight: 750; }
  .ibn-mobile-ready .ibn-econ-item strong b { font-size: 10px; font-weight: 500; }
  .ibn-mobile-ready .ibn-commission-summary-card .ibn-econ-item:nth-child(n+3) { display: none; }
  .ibn-mobile-ready .ibn-earnings-toggle { position: static; width: auto; height: auto; padding: 0; border-radius: 4px; touch-action: manipulation; }
  .ibn-mobile-ready .ibn-earnings-toggle > :is(span, svg) { display: block; }
  .ibn-mobile-ready .ibn-earnings-toggle svg { width: 14px; height: 14px; }
  .ibn-mobile-ready .ibn-quicknav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: var(--ibn-content-gap) var(--ibn-card-inset) 0; margin: 0; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); overflow-anchor: none; }
  .ibn-mobile-ready .ibn-quicknav a { flex-direction: column; justify-content: center; gap: var(--ibn-content-gap); min-height: 64px; padding: 4px 0; border: 0; border-radius: 8px; background: transparent; transition: background .15s, transform .15s; }
  .ibn-mobile-ready .ibn-quicknav a:hover { transform: none; box-shadow: none; background: var(--surface-muted); }
  .ibn-mobile-ready .ibn-quicknav a:active { transform: scale(.96); background: var(--blue-soft); }
  .ibn-mobile-ready .ibn-quicknav-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; background: var(--blue-soft); }
  .ibn-mobile-ready .ibn-quicknav-icon svg { width: 20px; height: 20px; }
  .ibn-mobile-ready .ibn-quicknav-label b { font-size: var(--ibn-type-body); font-weight: 600; line-height: 1.5; }
  .ibn-mobile-ready .ibn-quicknav .ibn-quicknav-mobile-only { display: flex; }
  .ibn-mobile-ready .ibn-quicknav-more:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: 1 / -1; padding-top: var(--ibn-content-gap); overflow: hidden; }
  .ibn-mobile-ready .ibn-mobile-quicknav-toggle { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; margin: 0; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
  .ibn-mobile-quicknav-toggle span { display: none; }
  .ibn-mobile-quicknav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
  .ibn-mobile-ready .ibn-mobile-quicknav-toggle:active,
  .ibn-mobile-ready .ibn-mobile-quicknav-toggle[aria-expanded="true"] { color: var(--blue); }
  .ibn-mobile-quicknav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .ibn-mobile-ready .ibn-quicknav :is(a, button):focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

  .ibn-mobile-ready .ibn-earnings-section { order: 0; }
  .ibn-mobile-ready .ibn-level-section { display: none; }
  .ibn-mobile-ready .ibm-overview { order: 2; }
  .ibn-mobile-ready .ibn-funds-section { order: 3; margin-top: 0; }
  .ibn-mobile-ready .ibn-trading-section { order: 4; }
  .ibn-mobile-ready .ibn-mobile-level-summary { display: block; overflow: hidden; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); }
  .ibn-mobile-level-header { display: flex; align-items: center; }
  .ibn-mobile-ready .ibn-mobile-level-header .ibn-mobile-level-toggle { flex: 1; min-width: 0; width: auto; padding-right: 6px; }
  .ibn-mobile-ready .ibn-mobile-level-header .ibn-level-dismiss { flex: 0 0 44px; margin-right: 6px; }
  .ibn-mobile-ready .ibn-mobile-level-toggle { display: flex; align-items: center; gap: var(--ibn-content-gap); width: 100%; min-height: 58px; padding: var(--ibn-content-gap) var(--ibn-card-inset); border: 0; border-radius: 0; background: transparent; color: var(--text-strong); font: inherit; text-align: left; cursor: pointer; }
  .ibn-mobile-level-toggle > svg:first-child { width: 22px; height: 22px; color: #b77916; }
  .ibn-mobile-level-toggle > span { flex: 1; min-width: 0; }
  .ibn-mobile-level-toggle strong { display: block; font-size: var(--ibn-type-title); font-weight: 650; line-height: 1.4; }
  .ibn-mobile-level-toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-level-toggle b { color: var(--muted); font-size: var(--ibn-type-caption); font-weight: 500; line-height: 1.5; }
  .ibn-mobile-level-toggle > svg:last-child { width: 16px; height: 16px; color: var(--muted); }
  .ibn-mobile-level-toggle[aria-expanded="true"] > svg:last-child { transform: rotate(90deg); }
  .ibn-mobile-level-body { padding: 0 var(--ibn-card-inset) var(--ibn-card-inset); }
  .ibn-mobile-level-body > .ibn-progress-rail { height: 4px; margin: 0; }
  .ibn-mobile-level-reward { display: grid; gap: 4px; margin: var(--ibn-group-gap) 0; }
  .ibn-mobile-level-reward strong { color: var(--text-strong); font-size: var(--ibn-type-body); font-weight: 650; line-height: 1.5; }
  .ibn-mobile-level-reward small { color: var(--muted); font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-level-priorities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ibn-content-gap); }
  .ibn-mobile-level-priority { display: grid; gap: var(--ibn-content-gap); min-width: 0; min-height: 64px; padding: var(--ibn-group-gap); border: 0; border-radius: 8px; background: var(--surface-muted); color: var(--text-strong); font: inherit; text-align: left; cursor: pointer; }
  .ibn-mobile-level-priority > span { color: var(--muted); font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-level-priority > strong { font-size: var(--ibn-type-body); font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .ibn-mobile-level-priority > .ibn-progress-rail { height: 3px; margin: 0; }
  .ibn-mobile-level-priority:focus-visible, .ibn-mobile-level-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
  .ibn-mobile-ready .is-mobile-collapsed .ibn-level-grid { display: none; }
  .ibn-mobile-ready .ibn-level-grid { margin-top: 10px; gap: 10px; }
  .ibn-mobile-ready .ibn-level-dismiss { width: 44px; height: 44px; }
  .ibn-mobile-ready .ibn-task-grid { gap: 0; }
  .ibn-mobile-ready .ibn-task { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
  .ibn-mobile-ready .ibn-task:last-child { border-bottom: 0; }
  .ibn-mobile-ready .ibn-task header span { font-size: 13px; }
  .ibn-mobile-ready .ibn-funds-heading { align-items: center; margin-bottom: var(--ibn-content-gap); min-height: 44px; }
  .ibn-mobile-ready .ibn-funds-heading h2 { font-size: var(--ibn-type-title); font-weight: 650; line-height: 1.4; }
  .ibn-mobile-ready .ibn-funds-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ibn-group-gap) var(--ibn-content-gap); }
  .ibn-mobile-ready .ibn-funds-chart { margin-top: 20px; padding: 0; }
  .ibn-mobile-ready .ibn-funds-trend-head { display: block; }
  .ibn-mobile-ready .ibn-funds-trend-head > div:first-child { width: 100%; }
  .ibn-mobile-ready .ibn-funds-trend-head > .ibn-funds-segment { width: 100%; }
  .ibn-mobile-ready .ibn-funds-trend-head button { flex: 1; }
  .ibn-mobile-ready .ibn-funds-segment button { min-height: 36px; }
  .ibn-mobile-ready .ibn-funds-basis select { min-height: 40px; max-width: 120px; }
  .ibn-mobile-ready .ibn-funds-trend-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ibn-mobile-ready .ibn-funds-mobile-control-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ibn-mobile-ready .ibn-funds-mobile-control-row .ibn-funds-segment { display: flex; min-width: 0; width: 100%; }
  .ibn-mobile-ready .ibn-funds-mobile-control-row .ibn-funds-segment button { flex: 1; min-width: 0; min-height: 36px; padding: 4px 2px; font-size: 12px; line-height: 20px; }
  .ibn-mobile-ready .ibn-funds-trend-toolbar .ibn-funds-basis { display: flex; min-width: 0; width: 100%; gap: 8px; padding: 3px 10px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface-muted); font-size: 12px; }
  .ibn-mobile-ready .ibn-funds-basis > span { flex-shrink: 0; }
  .ibn-mobile-ready .ibn-funds-basis select { flex: 1; min-width: 0; max-width: none; min-height: 44px; padding: 4px 20px 4px 8px; border: 0; background: transparent; font-size: 12px; }
  .ibn-mobile-ready .ibn-funds-trend-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
  .ibn-mobile-ready .ibn-funds-trend-totals > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .ibn-mobile-ready .ibn-funds-total-label { display: flex; align-items: center; gap: 5px; font-size: 11px; }
  .ibn-mobile-ready .ibn-funds-total-label small { font-size: 10px; }
  .ibn-mobile-ready .ibn-funds-trend-totals strong { font-size: clamp(13px, 3.7vw, 16px); line-height: 1.3; white-space: nowrap; }
  .ibn-mobile-ready .ibn-funds-plot { height: 220px; }
  .ibn-mobile-ready .ibn-funds-axis { font-size: 11px; }
  .ibn-mobile-ready .ibn-funds-day-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 10px; }
  .ibn-mobile-ready .ibn-funds-day-date { grid-column: 1; font-size: 12px; }
  .ibn-mobile-ready .ibn-funds-day-unit { grid-column: 2; justify-self: end; align-self: center; font-size: 10px; }
  .ibn-mobile-ready .ibn-funds-day-amount { display: grid; gap: 5px; min-width: 0; }
  .ibn-mobile-ready .ibn-funds-day-label { font-size: 11px; }
  .ibn-mobile-ready .ibn-funds-day-detail b { margin: 0; font-size: clamp(14px, 3.8vw, 16px); line-height: 1.3; }
  .ibn-mobile-ready .ibn-funds-card { align-items: flex-start; justify-content: flex-start; gap: var(--ibn-content-gap); padding: var(--ibn-group-gap); min-height: 80px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-muted); }
  .ibn-mobile-ready .ibn-funds-card span { font-size: var(--ibn-type-body); font-weight: 550; line-height: 1.5; }
  .ibn-mobile-ready .ibn-funds-card strong { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .ibn-mobile-ready .ibn-funds-net { display: grid; grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; order: -1; gap: var(--ibn-content-gap); min-height: 0; padding: 0; margin-bottom: 0; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready .ibn-funds-net > span { grid-column: 1; grid-row: 1; }
  .ibn-mobile-ready .ibn-funds-net strong { grid-column: 1 / -1; grid-row: 2; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
  .ibn-mobile-ready .ibn-funds-title-group { gap: 2px; }
  .ibn-mobile-ready .ibn-funds-help { min-width: 32px; min-height: 44px; }
  .ibn-mobile-ready .ibn-funds-main .ibn-funds-net:is(:hover, :active) { background: transparent; box-shadow: none; border-radius: 0; }
  .ibn-funds-drawer { inset: auto 0 0; width: 100%; height: 88dvh; max-height: 88dvh; border-radius: 20px 20px 0 0; }
  .ibn-funds-drawer-handle { display: grid; place-items: center; flex: 0 0 24px; }
  .ibn-funds-drawer :is(.ibn-funds-drawer-handle, .ibn-detail-header) { touch-action: none; }
  .ibn-funds-drawer-handle span { width: 32px; height: 4px; border-radius: 999px; background: var(--border); }
  .ibn-funds-drawer .ibn-detail-header { padding: 0 16px 14px; gap: 10px; }
  .ibn-funds-drawer .ibn-detail-header button { width: 44px; height: 44px; }
  .ibn-funds-drawer .ibn-detail-heading h2 { font-size: 18px; }
  .ibn-funds-drawer .ibn-detail-heading small { font-size: 10px; }
  .ibn-funds-drawer .ibn-detail-body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .ibn-mobile-ready .ibn-funds-drawer .ibn-funds-chart { margin-top: 0; }
  .ibn-funds-drawer .ibn-funds-trend-toolbar > .ibn-funds-segment { margin-left: auto; }
  .ibn-funds-drawer .ibn-funds-segment button { min-height: 44px; }
  .ibn-funds-drawer .ibn-funds-basis select { min-height: 44px; }
  body.ibn-mobile-ready .ibn-funds-drawer .ibn-funds-table tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; padding: 12px; }
  body.ibn-mobile-ready .ibn-funds-drawer .ibn-funds-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; font-size: 12px; }
  body.ibn-mobile-ready .ibn-funds-drawer .ibn-funds-table td { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 0; font-size: 12px; }
  body.ibn-mobile-ready .ibn-funds-drawer .ibn-funds-table td::before { font-size: 10px; }

  .ibn-mobile-ready .ibm-overview { padding: var(--ibn-content-gap) var(--ibn-card-inset) var(--ibn-card-inset); margin-bottom: 12px; border-radius: 12px; box-shadow: none; }
  .ibn-mobile-ready .ibm-heading { gap: var(--ibn-content-gap); margin-bottom: var(--ibn-group-gap); }
  .ibn-mobile-ready .ibm-title-group { width: 100%; justify-content: space-between; gap: 4px; min-height: 44px; }
  .ibn-mobile-ready .ibm-period-control { gap: 0; }
  .ibn-mobile-ready .ibm-period-toggle { min-height: 36px; padding-inline: 4px; font-size: var(--ibn-type-title); font-weight: 650; line-height: 1.4; }
  .ibn-mobile-ready :is(.ibm-period-step, .ibm-help-trigger) { min-width: 36px; min-height: 36px; }
  .ibn-mobile-ready .ibn-trading-help { min-width: 44px; min-height: 44px; }
  .ibn-mobile-ready .ibm-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready .ibm-client-picker { grid-column: 1 / -1; }
  .ibn-mobile-ready .ibm-client-picker summary { width: 100%; min-height: 44px; }
  .ibn-mobile-ready .ibm-client-popup { box-sizing: border-box; width: 100%; }
  .ibn-mobile-ready .ibm-client-popup input { min-height: 44px; font-size: 16px; }
  .ibn-mobile-ready .ibm-client-options button { min-height: 44px; align-content: center; }
  .ibn-mobile-ready .ibm-mode-control { position: relative; display: flex; justify-content: flex-start; grid-column: auto; min-width: 0; width: auto; gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready :is(.ibm-scope-label, .ibm-scope-control) { display: none; }
  .ibn-mobile-ready .ibm-mode-control button { position: relative; flex: 0 0 auto; min-width: 0; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--ibn-type-body); font-weight: 550; line-height: 1.5; box-shadow: none; }
  .ibn-mobile-ready .ibm-mode-control button::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 24px; height: 3px; border-radius: 999px; background: transparent; transform: translateX(-50%); }
  .ibn-mobile-ready .ibm-mode-control button.is-active { background: transparent; color: var(--blue); font-weight: 650; box-shadow: none; }
  .ibn-mobile-ready .ibm-mode-control button.is-active::after { background: var(--blue); }
  .ibn-mobile-ready .ibm-mode-control.has-mobile-indicator button::after { display: none; }
  .ibn-mobile-ready .ibm-mode-control.has-mobile-indicator::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 24px; height: 3px; border-radius: 999px; background: var(--blue); transform: translate3d(var(--mode-indicator-x, 0px), 0, 0); transition: transform .2s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
  .ibn-mobile-ready .ibm-scope-filter { position: relative; display: flex; align-items: center; width: 98px; min-height: 44px; }
  .ibn-mobile-ready .ibm-scope-filter select { appearance: none; width: 100%; min-height: 36px; padding: 7px 27px 7px 10px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--surface-muted); color: var(--text-strong); font: inherit; font-size: var(--ibn-type-body); font-weight: 550; cursor: pointer; line-height: 1.5; }
  .ibn-mobile-ready .ibm-scope-filter select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .ibn-mobile-ready .ibm-scope-filter svg { position: absolute; right: 10px; width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  .ibn-mobile-ready .ibm-metric-grid { gap: var(--ibn-content-gap); }
  .ibn-mobile-ready .ibm-metric { min-height: 0; gap: var(--ibn-content-gap); padding: var(--ibn-group-gap); background: var(--surface); border-radius: 8px; justify-content: flex-start; }
  .ibn-mobile-ready .ibm-metric-label { padding-right: 16px; font-size: var(--ibn-type-body); font-weight: 600; line-height: 1.5; }
  .ibn-mobile-ready .ibm-metric-value { font-size: var(--ibn-type-metric); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
  .ibn-mobile-ready .ibm-metric-value small { display: inline-block; white-space: nowrap; }
  .ibn-mobile-ready .ibm-metric-foot { display: none; }
  .ibn-mobile-ready .ibm-metric-source { top: 12px; right: 12px; width: 14px; height: 14px; }
  .ibn-mobile-ready :is(.ibm-close, .ibm-export, .ibm-segment button) { min-height: 44px; }
  .ibn-mobile-ready .ibm-detail-search input { min-height: 44px; font-size: 16px; }
  .ibm-detail-panel.ibm-detail-drawer { inset: auto 0 0; width: 100%; height: 88dvh; max-height: 88dvh; border-radius: 20px 20px 0 0; }
  .ibm-detail-drawer-handle { display: grid; place-items: center; flex: 0 0 24px; }
  .ibm-detail-drawer-handle span { width: 32px; height: 4px; border-radius: 999px; background: var(--border); }
  .ibm-detail-drawer :is(.ibm-detail-drawer-handle, .ibm-detail-head) { touch-action: none; }
  .ibm-detail-drawer .ibm-detail-head { padding: 0 16px 14px; gap: 10px; }
  .ibm-detail-drawer .ibm-detail-head h3 { font-size: 18px; }
  .ibm-detail-drawer .ibm-detail-heading small { font-size: 10px; }
  .ibm-detail-drawer .ibm-detail-body { padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--surface-muted); }
  .ibm-detail-drawer .ibm-detail-tools { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; margin: 0 0 12px; padding-bottom: 12px; background: var(--surface-muted); border-bottom: 1px solid var(--border-light); }
  .ibm-detail-drawer .ibm-detail-tools .ibm-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .ibm-detail-drawer .ibm-detail-tools .ibm-segment button { min-width: 0; padding: 6px 8px; font-size: 13px; }
  .ibm-detail-drawer .ibm-detail-utilities { display: contents; }
  .ibm-detail-drawer .ibm-detail-search { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .ibm-detail-drawer .ibm-detail-search input { padding-left: 36px; border-color: var(--border-light); border-radius: 10px; background: var(--surface); }
  .ibm-detail-drawer .ibm-detail-search svg { width: 17px; height: 17px; }
  .ibm-detail-drawer .ibm-detail-tools .ibm-export { grid-row: 1; grid-column: 2; display: grid; place-items: center; align-self: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface); color: var(--text-soft); }
  .ibm-detail-drawer .ibm-export svg { width: 19px; height: 19px; }
  .ibm-detail-drawer .ibm-export span { display: none; }
  .ibm-detail-drawer .ibm-desktop-breakdown { display: none; }
  .ibm-detail-drawer .ibm-mobile-record-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .ibm-detail-drawer .ibm-record-card { display: grid; gap: 10px; width: 100%; min-width: 0; padding: 14px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); color: var(--text-strong); font: inherit; text-align: left; cursor: pointer; }
  .ibm-detail-drawer .ibm-record-identity { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: center; gap: 10px; }
  .ibm-detail-drawer .ibm-record-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 650; }
  .ibm-detail-drawer .ibm-record-avatar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .ibm-detail-drawer .ibm-record-person { display: grid; min-width: 0; gap: 3px; }
  .ibm-detail-drawer .ibm-record-person strong { font-size: 15px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
  .ibm-detail-drawer .ibm-record-person small { color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  .ibm-detail-drawer .ibm-record-arrow { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ibm-detail-drawer .ibm-client-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); }
  .ibm-detail-drawer .ibm-client-card-meta > span { display: grid; align-content: start; gap: 3px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  .ibm-detail-drawer .ibm-client-card-meta small { color: var(--muted); font-size: 11px; line-height: 1.5; }
  .ibm-detail-drawer .ibm-record-value { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 9px 10px; border-radius: 8px; background: var(--surface-muted); font-size: 11px; color: var(--muted); }
  .ibm-detail-drawer .ibm-record-value strong { color: var(--blue); font-size: 16px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
  .ibm-detail-drawer .ibm-record-value strong small { margin-left: 4px; font-size: 11px; font-weight: 550; }
  .ibm-detail-drawer .ibm-mobile-sort { display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .ibm-detail-drawer .ibm-mobile-sort button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
  .ibm-detail-drawer :is(.ibm-record-card, .ibm-mobile-sort button, .ibm-export):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .ibn-mobile-ready .ibm-period-panel,
  .ibn-mobile-ready .ibm-period-panel.is-above { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 80px); margin: 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 48px rgba(0, 0, 0, .16); }
  .ibm-period-handle { display: grid; place-items: center; flex: 0 0 24px; touch-action: none; cursor: grab; }
  .ibm-period-handle span { width: 32px; height: 4px; border-radius: 999px; background: var(--border); }
  .ibm-period-header { margin: 0; padding: 0 16px 12px 20px; touch-action: none; }
  .ibm-period-panel-title { font-size: 18px; font-weight: 650; }
  .ibm-period-close { width: 44px; height: 44px; }
  .ibm-period-scroll { padding: 0 20px 20px; }
  .ibm-period-panel :is(input, select, button) { min-height: 44px; }
  .ibm-period-panel :is(input, select) { min-height: 48px; font-size: 16px; border-radius: 10px; }
  .ibm-period-panel .ibm-month-control { gap: 8px; font-size: 13px; font-weight: 550; }
  .ibm-period-panel .ibm-period-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .ibm-period-presets button { justify-content: center; padding: 8px; border-radius: 9px; font-size: 13px; }
  .ibm-period-error { margin-top: 12px; font-size: 12px; color: var(--danger); }
  .ibm-period-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin: 0; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
  .ibm-period-actions .ibm-period-error { grid-column: 1 / -1; }
  .ibm-period-actions button { min-height: 48px; border-radius: 10px; font-size: 15px; }
  .ibn-mobile-ready .ibn-trading-heading { align-items: center; gap: var(--ibn-content-gap); margin-bottom: var(--ibn-group-gap); }
  .ibn-mobile-ready .ibn-trading-title-group { gap: 2px; }
  .ibn-mobile-ready .ibn-trading-title-group h2 { font-size: var(--ibn-type-title); line-height: 1.4; font-weight: 650; }
  .ibn-mobile-ready .ibn-trading-help { width: 32px; min-width: 32px; flex-shrink: 0; }
  .ibn-mobile-ready .ibn-trading-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: var(--ibn-content-gap); padding: 0; background: transparent; }
  .ibn-mobile-ready .ibn-trading-controls > .ibn-select { display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; }
  .ibn-mobile-ready .ibn-trading-controls .ibn-select span { flex-shrink: 0; font-size: var(--ibn-type-caption); font-weight: 400; white-space: nowrap; line-height: 1.5; }
  .ibn-mobile-ready .ibn-trading-controls select { flex: 1; width: 100%; min-width: 0; min-height: 44px; max-width: none; padding: 0; font-size: var(--ibn-type-body); font-weight: 550; line-height: 1.5; }
  .ibn-mobile-ready .ibn-trading-client-trigger { display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--text-strong); font: inherit; text-align: left; cursor: pointer; }
  .ibn-trading-client-trigger > span { color: var(--muted); font-size: var(--ibn-type-caption); font-weight: 400; line-height: 1.5; }
  .ibn-trading-client-trigger > strong { min-width: 0; overflow: hidden; font-size: var(--ibn-type-body); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
  .ibn-trading-client-trigger > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ibn-mobile-ready .ibn-trading-report-link { display: inline-flex; align-items: center; justify-self: end; gap: 3px; min-height: 44px; font-size: var(--ibn-type-body); line-height: 1.5; }
  .ibn-mobile-ready .ibn-trading-controls > :is(.ibn-trading-client, .ibn-trading-apply) { display: none; }
  .ibn-detail-drawer:has(.ibn-trading-client-sheet) { height: auto; }
  .ibn-mobile-ready .ibn-trading-filter-status { margin-top: 0; font-size: var(--ibn-type-caption); line-height: 1.5; }
  .ibn-mobile-ready .ibn-trading-metric { padding: var(--ibn-group-gap); gap: var(--ibn-content-gap); justify-content: flex-start; min-height: 80px; }
  .ibn-mobile-ready .ibn-trading-grid { gap: var(--ibn-content-gap); }
  .ibn-mobile-ready .ibn-trading-metric-status { position: static; align-self: flex-end; }
  .ibn-mobile-ready .ibn-trading-metric-label { font-size: var(--ibn-type-body); font-weight: 550; line-height: 1.5; }
  .ibn-mobile-ready :is(.ibn-trading-note, .ibn-trading-metric-status, .ibm-metric-value small) { font-size: var(--ibn-type-caption); font-weight: 500; line-height: 1.5; }
  .ibn-mobile-ready .ibn-trading-metric:has(.ibn-trading-metric-status) { padding-bottom: var(--ibn-group-gap); }
  .ibn-mobile-ready .ibn-trading-metric strong { font-size: var(--ibn-type-metric); overflow-wrap: anywhere; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }

  .ibn-mobile-ready .ibn-network-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ibn-mobile-ready .ibn-stat-card { min-height: 88px; }
  .ibn-mobile-ready .ibn-stat-card strong { font-size: 23px; overflow-wrap: anywhere; }
  .ibn-mobile-ready .ibn-funnel-stage { min-height: 60px; }
  .ibn-mobile-ready .ibn-funnel-label { font-size: 12px; }
  .ibn-mobile-ready :is(.ibn-rank-row, .ibn-symbol-row) { padding-block: 14px; }
  .ibn-mobile-ready .ibn-source-card .ibn-segment button,
  .ibn-mobile-ready .ibn-contrib-grid .ibn-segment button { min-height: 44px; }
  .ibn-mobile-ready .ibn-contrib-grid .ibn-card-head { align-items: flex-start; flex-wrap: wrap; gap: 6px; }
  .ibn-mobile-ready .ibn-tag-config-trigger { min-height: 44px; font-size: 11px; padding: 7px; }
  .ibn-mobile-ready .ibn-action-section > .ibn-section-head { margin-bottom: 10px; align-items: center; }
  .ibn-mobile-ready .ibn-action-section > .ibn-section-head::after { content: "点击查看客户"; color: var(--muted); font-size: 11px; }
  .ibn-mobile-ready .ibn-todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ibn-content-gap); margin-bottom: 12px; }
  .ibn-mobile-ready .ibn-todo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-content: start; gap: var(--ibn-content-gap); min-width: 0; min-height: 100px; padding: var(--ibn-group-gap); border-left-width: 2px; border-radius: 12px; }
  .ibn-mobile-ready .ibn-todo::after { content: ""; position: absolute; top: 16px; right: 12px; width: 5px; height: 5px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
  .ibn-mobile-ready .ibn-todo > span { padding-right: 12px; font-size: 12px; font-weight: 600; line-height: 1.4; }
  .ibn-mobile-ready .ibn-todo strong { grid-column: auto; grid-row: auto; margin: 0; font-size: 26px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .ibn-mobile-ready .ibn-todo strong b { font-size: 11px; font-weight: 500; }
  .ibn-mobile-ready .ibn-todo small { grid-column: auto; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  .ibn-mobile-ready .ibn-todo:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

  /* 每条记录完整显示字段与操作，取消窄屏上的横向表格。 */
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table { width: 100%; min-width: 0; border-collapse: separate; display: block; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table tbody { display: grid; gap: 10px; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table tbody tr { display: grid; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td { display: grid; grid-template-columns: minmax(76px, 30%) minmax(0, 1fr); align-items: baseline; gap: 4px 10px; padding: 6px 0; border: 0; font-size: 12px; line-height: 1.6; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td::before { content: attr(data-mobile-label); color: var(--muted); font-size: 11px; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td > small { grid-column: 2; display: block; margin: 0; font-size: 10px; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td[colspan] { display: block; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td[colspan]::before { display: none; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table tbody th { display: block; padding: 4px 0 8px; border: 0; color: var(--text-strong); font-size: 13px; text-align: left; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td :is(button, a) { white-space: normal; line-height: 1.6; text-align: left; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table td:first-child button { min-height: 44px; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table .ibn-mini-bar { display: none; }
  .ibn-mobile-ready :is(.ibn-table-wrap, .ibm-table-wrap) { max-height: none; overflow: visible; }
  .ibn-mobile-ready .ibn-funds-detail { max-height: none; overflow: visible; }
  .ibn-detail-drawer .ibn-detail-table-wrap { overflow: visible; border: 0; background: transparent; }
  body[data-layout-page="ib-dashboard-new"] .ibn-mobile-table-sort { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }

  /* 外层只保留标题，每条链接独立成卡，漏斗直接展示四段转化。 */
  .ibn-mobile-ready .ibn-promo-section > .ibn-card-head { margin-bottom: var(--ibn-content-gap); min-height: 44px; }
  .ibn-mobile-ready .ibn-promo-section .ibn-card-head h3 { font-size: var(--ibn-type-title); }
  .ibn-mobile-ready .ibn-promo-list { grid-template-columns: minmax(0, 1fr); gap: var(--ibn-content-gap); }
  .ibn-mobile-ready .ibn-promo-list.is-promo-collapsed .ibn-promo-link-card:nth-child(n + 3) { display: none; }
  .ibn-mobile-ready .ibn-promo-link-card { padding: 10px var(--ibn-card-inset) var(--ibn-card-inset); border-radius: 12px; }
  .ibn-mobile-ready .ibn-promo-name { min-height: 44px; padding: 0; font-size: var(--ibn-type-body); line-height: 1.4; text-align: left; white-space: normal; }
  .ibn-mobile-ready .ibn-promo-copy { min-height: 44px; white-space: nowrap; line-height: 1.2; }
  .ibn-mobile-ready .ibn-promo-url { margin-top: 0; font-size: 11px; font-weight: 400; }
  .ibn-mobile-ready .ibn-promo-funnel-head { margin-top: var(--ibn-content-gap); }

  .ibn-mobile-ready .ibn-promo-list-toggle:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--blue); font: inherit; font-size: 12px; cursor: pointer; }
  .ibn-mobile-ready .ibn-promo-list-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .ibn-mobile-ready .ibn-promo-list-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }

  /* 待办页的更新提示随页面滚动，不覆盖链接数据和操作。 */
  body.ibn-mobile-ready[data-mobile-view="tasks"] .xb-pwa { position: static; width: auto; max-width: none; margin: 12px 16px; justify-items: stretch; }
  body.ibn-mobile-ready[data-mobile-view="tasks"] .xb-pwa-notice:not([data-pwa-update-notice]) { position: static; width: 100%; }
  body.ibn-mobile-ready[data-mobile-view="tasks"] .xb-pwa-install { justify-self: end; }
  body.ibn-mobile-ready[data-mobile-view="tasks"] .xb-pwa-actions button { min-height: 44px; }
  .ibn-mobile-table-sort label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
  .ibn-mobile-table-sort select { min-width: 0; max-width: 180px; min-height: 44px; padding: 8px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface); color: var(--text-strong); font-size: 14px; }
  .ibn-mobile-table-sort button { min-height: 44px; padding: 8px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--surface); color: var(--blue); font: inherit; font-size: 12px; }
  .ibn-detail-drawer .ibn-detail-header { padding: 12px 16px; gap: 10px; }
  .ibn-detail-drawer .ibn-detail-header button { width: 44px; height: 44px; }
  .ibn-detail-drawer .ibn-detail-heading { gap: 8px; }
  .ibn-detail-drawer .ibn-detail-heading h2 { font-size: 18px; }
  .ibn-detail-drawer .ibn-detail-body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: contain; }
  .ibn-detail-drawer .ibn-detail-toolbar { flex-wrap: wrap; gap: 8px; }
  .ibn-detail-drawer .ibn-detail-toolbar input { min-height: 46px; font-size: 16px; }
  .ibn-detail-drawer .ibn-detail-toolbar button { margin-left: auto; min-height: 44px; }
  .ibn-detail-drawer .ibn-detail-actions :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; }
  .ibn-detail-drawer .ibn-wallet-config-name input { font-size: 16px; min-height: 46px; }

  .ibn-analysis-drawer .ibn-source-card .ibn-segment.is-mini { padding: 2px; border-radius: 8px; }
  .ibn-analysis-drawer .ibn-source-card .ibn-segment.is-mini button { min-height: 32px; padding: 4px 10px; border-radius: 6px; font-size: 12px; line-height: 20px; }

  /* 订单明细用接近全屏的底部抽屉，摘要和工具保持紧凑。 */
  .ibn-detail-drawer.is-order-list { bottom: var(--detail-bottom-offset, 0px); height: min(900px, var(--detail-sheet-height, 94dvh)); max-height: calc(var(--detail-viewport-height, 100dvh) - max(24px, env(safe-area-inset-top, 0px))); }
  .ibn-detail-drawer.is-order-list .ibn-detail-sheet-handle { flex-basis: 20px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-header { padding: 0 16px 12px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-heading > div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
  .ibn-detail-drawer.is-order-list .ibn-detail-heading h2 { margin: 0; font-size: 18px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-heading small { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  .ibn-detail-drawer.is-order-list .ibn-detail-body { padding-top: 12px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 12px 4px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface); }
  .ibn-detail-drawer.is-order-list .ibn-detail-summary > div { min-width: 0; padding: 0 10px; border: 0; border-radius: 0; background: transparent; }
  .ibn-detail-drawer.is-order-list .ibn-detail-summary > div + div { border-left: 1px solid var(--border-light); }
  .ibn-detail-drawer.is-order-list .ibn-detail-summary span { margin-bottom: 5px; font-size: 10px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-summary strong { display: block; font-size: 16px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
  .ibn-detail-drawer.is-order-list .ibn-detail-note-disclosure > summary { display: list-item; min-height: 36px; line-height: 36px; list-style-position: inside; color: var(--muted); font-size: 11px; cursor: pointer; }
  .ibn-detail-drawer.is-order-list .ibn-detail-note { margin: 0 0 10px; font-size: 11px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-toolbar { position: sticky; top: -12px; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; background: var(--page-bg); }
  .ibn-detail-drawer.is-order-list .ibn-detail-toolbar input { min-width: 0; min-height: 44px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-toolbar button { min-height: 44px; padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .ibn-detail-drawer.is-order-list .ibn-detail-results-header { position: sticky; top: 52px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 8px; background: var(--page-bg); }
  .ibn-detail-drawer.is-order-list .ibn-detail-count { margin: 0; font-size: 11px; }
  .ibn-detail-drawer.is-order-list .ibn-detail-mobile-sort { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .ibn-detail-mobile-sort :is(select, button) { min-width: 0; min-height: 44px; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; }
  .ibn-detail-mobile-sort select { max-width: 108px; }
  .ibn-detail-mobile-sort button { min-width: 44px; color: var(--blue); cursor: pointer; }
  .ibn-detail-mobile-sort :is(select, button):focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  .ibn-detail-drawer.is-order-list .ibn-mobile-table tbody tr { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "order amount" "client account" "symbol lots" "currency time"; gap: 10px 16px; min-width: 0; padding: 10px 12px 12px; }
  .ibn-detail-drawer.is-order-list .ibn-mobile-table tr[data-detail-row]:hover { background: var(--surface); }
  .ibn-detail-drawer.is-order-list .ibn-mobile-table tr[data-detail-row]:active { background: var(--blue-soft); }
  .ibn-detail-drawer.is-order-list .ibn-mobile-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 0; font-size: 12px; line-height: 1.5; }
  .ibn-detail-drawer.is-order-list .ibn-mobile-table td::before { font-size: 10px; }
  .ibn-detail-drawer.is-order-list td[data-detail-key="id"] { grid-area: order; justify-content: center; border-bottom: 1px solid var(--border-light); padding-bottom: 6px; }
  .ibn-detail-drawer.is-order-list [data-detail-key="id"]::before { display: none; }
  .ibn-detail-drawer.is-order-list [data-detail-key="id"] button { font-size: 12px; }
  .ibn-detail-drawer.is-order-list [data-detail-key="name"] { grid-area: client; }
  .ibn-detail-drawer.is-order-list [data-detail-key="accountId"] { grid-area: account; }
  .ibn-detail-drawer.is-order-list [data-detail-key="symbol"] { grid-area: symbol; }
  .ibn-detail-drawer.is-order-list [data-detail-key="lots"] { grid-area: lots; }
  .ibn-detail-drawer.is-order-list [data-detail-key="currency"] { grid-area: currency; }
  .ibn-detail-drawer.is-order-list td[data-detail-key="closeTime"] { grid-area: time; font-size: 11px; }
  .ibn-detail-drawer.is-order-list td:is([data-detail-key="value"], [data-detail-key="trading"], [data-detail-key="fee"]) { grid-area: amount; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--border-light); padding-bottom: 6px; color: var(--blue); font-size: 18px; font-weight: 700; }
  .ibn-detail-drawer.is-order-list td:is([data-detail-key="value"], [data-detail-key="trading"], [data-detail-key="fee"])::before { font-weight: 400; }

  .ibn-mobile-ready .ibn-mobile-nav-anchor { display: block; flex: 0 0 0; height: 0; pointer-events: none; }
  .ibn-mobile-ready .ibn-mobile-nav { --mobile-tab-index: 0; position: sticky; top: 56px; z-index: 40; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 10px; padding: 0; border: 0; border-bottom: 1px solid var(--border-light); border-radius: 0; background: transparent; }
  .ibn-mobile-nav::before { content: ""; position: absolute; z-index: -1; inset: -1px -16px -1px; border-bottom: 1px solid var(--border-light); background: var(--surface); box-shadow: 0 4px 10px rgba(15, 23, 42, .035); opacity: 0; pointer-events: none; }
  .ibn-mobile-nav.is-stuck::before { opacity: 1; }
  .ibn-mobile-nav-indicator { position: absolute; z-index: 0; bottom: -1px; left: 0; width: calc(100% / 3); height: 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: translateX(calc(var(--mobile-tab-index) * 100%)); transition: transform .24s cubic-bezier(.22, .75, .25, 1); pointer-events: none; }
  .ibn-mobile-nav-indicator::after { content: ""; display: block; width: 24px; height: 2px; margin: auto; border-radius: 999px; background: var(--blue); }
  .ibn-mobile-nav.is-dragging .ibn-mobile-nav-indicator { transition: none; }
  .ibn-mobile-nav button { position: relative; z-index: 1; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: color .12s ease; }
  .ibn-mobile-nav button::before { content: ""; position: absolute; inset: 4px 8px; border-radius: 8px; background: var(--blue-soft); opacity: 0; transform: scale(.96); transition: opacity .14s ease, transform .14s ease; pointer-events: none; }
  .ibn-mobile-nav button:active::before { opacity: .65; transform: scale(1); transition-duration: 0s; }
  .ibn-mobile-ready :is(.ibn-range-control, .ibm-mode-control, .ibn-segment.is-mini) button { -webkit-tap-highlight-color: transparent; transition: color .12s ease, background-color .12s ease, border-color .12s ease, transform .12s ease; }
  .ibn-mobile-ready :is(.ibn-range-control, .ibm-mode-control, .ibn-segment.is-mini) button:active { transform: scale(.97); transition-duration: 0s; }
  .ibn-mobile-nav { -webkit-tap-highlight-color: transparent; }
  .ibn-mobile-nav button[aria-selected="true"] { color: var(--blue); font-weight: 650; }
  .ibn-mobile-ready .ibn-mobile-nav button:focus-visible { outline-offset: -2px; }
  .ibn-mobile-ready :is(.ibn-mobile-content, .ibm-detail-panel) { scroll-margin-top: 110px; }
  body[data-layout-page="ib-dashboard-new"] .xb-pwa { position: static; justify-items: center; width: fit-content; margin: 0 auto calc(16px + env(safe-area-inset-bottom, 0px)); }
  body[data-layout-page="ib-dashboard-new"] .xb-pwa-install { border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: var(--muted); font-size: 11px; }
  body[data-layout-page="ib-dashboard-new"] .xb-pwa-notice:not([data-pwa-update-notice]) { position: fixed; bottom: 16px; right: 16px; width: min(380px, calc(100vw - 32px)); }
  :is(.ibn-mobile-nav, .ibn-mobile-filter-trigger, .ibn-mobile-level-toggle) svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ibn-mobile-ready .ibn-feedback { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .ibn-detail-drawer .ibn-feedback { bottom: 24px; }
  body.ibn-mobile-filter-open { overflow: hidden; }
  .ibn-mobile-filter-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 88dvh; margin: 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; color: var(--text-strong); background: var(--surface); box-shadow: 0 -16px 60px rgba(0,0,0,.16); }
  .ibn-mobile-filter-sheet[open] { display: flex; flex-direction: column; }
  .ibn-mobile-filter-sheet::backdrop { background: rgba(15, 23, 42, .4); }
  .ibn-mobile-filter-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 20px 18px; }
  .ibn-mobile-filter-sheet h2 { margin: 0; font-size: 20px; }
  .ibn-mobile-filter-sheet header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
  .ibn-mobile-filter-sheet button { min-height: 48px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-muted); color: var(--text-strong); font: inherit; font-size: 14px; cursor: pointer; }
  .ibn-mobile-filter-sheet header button { flex-shrink: 0; width: 44px; min-height: 44px; font-size: 25px; border: 0; }
  .ibn-mobile-filter-body { min-height: 0; padding: 0 20px 24px; overflow-y: auto; overscroll-behavior-y: contain; }
  .ibn-mobile-filter-sheet fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
  .ibn-mobile-filter-sheet legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
  .ibn-mobile-filter-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ibn-mobile-filter-sheet button[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); font-weight: 750; }
  .ibn-mobile-currency { display: grid; gap: 12px; font-size: 13px; font-weight: 700; }
  .ibn-mobile-currency select { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-strong); font: inherit; font-size: 16px; }
  .ibn-mobile-currency small { color: var(--muted); font-size: 11px; font-weight: 400; }
  .ibn-mobile-filter-sheet footer { display: grid; grid-template-columns: 1fr 2fr; flex-shrink: 0; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-light); background: var(--surface); }
  .ibn-mobile-filter-sheet [data-mobile-filter-apply] { color: #fff; background: var(--blue); border-color: var(--blue); font-weight: 700; }
  .ibn-mobile-ready :is(.ibn-mobile-nav, .ibn-mobile-filter-sheet, .ibn-mobile-level-toggle) button:focus-visible,
  .ibn-mobile-filter-sheet :is(button, select):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
  .ibn-mobile-ready :is(button, a, summary, [role="button"]) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .ibn-mobile-ready :is(.ibn-mobile-content, .ibn-mobile-nav), .ibn-mobile-ready .ibn-mobile-nav button,
  .ibn-mobile-ready .ibn-mobile-content :is(a, button, [role="button"]) { touch-action: pan-y pinch-zoom; }
  .ibn-mobile-ready :is(button, a, [role="button"]):active { opacity: .75; }
  [data-theme="dark"] .ibn-mobile-level-toggle > svg:first-child { color: #fbbf24; }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-mobile-nav button { background: transparent; color: var(--muted); }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-range-control button { background: var(--surface-muted); color: var(--muted); }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-mobile-nav button[aria-selected="true"] { color: var(--blue); }
  :root[data-theme="dark"] .ibn-mobile-nav-indicator { background: transparent; border: 0; box-shadow: none; }
  :root[data-theme="dark"] body.ibn-mobile-ready[data-layout-page="ib-dashboard-new"] .sidebar:not(.is-mobile-nav-open) :is(.mobile-client-notification, .mobile-nav-toggle) { background: transparent; border: 0; box-shadow: none; }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-range-control button.is-active { background: var(--blue-soft); color: var(--blue); }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-mobile-quicknav-toggle { background: transparent; border: 0; color: var(--muted); }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-mobile-quicknav-toggle[aria-expanded="true"] { color: var(--blue); }
  :root[data-theme="dark"] .ibn-mobile-ready .ibn-card-action { background: transparent; color: var(--blue); }
  :root[data-theme="dark"] .ibn-mobile-filter-sheet button[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
  :root[data-theme="dark"] .ibn-mobile-filter-sheet [data-mobile-filter-apply] { background: var(--blue); border-color: var(--blue); color: var(--neutral-ink, #101827); }
}

/* 窄屏给长金额完整的一行，不逐个缩小数字或拆开小数。 */
@media (max-width: 420px) {
  .ibn-mobile-ready .ibn-trading-grid { grid-template-columns: minmax(0, 1fr); }
  .ibn-mobile-ready .ibn-trading-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 72px; gap: var(--ibn-content-gap) var(--ibn-group-gap); }
  .ibn-mobile-ready .ibn-trading-metric strong { text-align: right; }
  .ibn-mobile-ready .ibn-trading-metric:has(.ibn-trading-metric-status) { padding-bottom: var(--ibn-group-gap); }
  .ibn-mobile-ready .ibn-trading-metric-status { position: static; grid-column: 2; text-align: right; }
}

@media (max-width: 360px) {
  body.ibn-mobile-ready { --ibn-type-metric: 20px; --ibn-type-hero: 26px; --ibn-card-inset: 12px; }
  .ibn-mobile-ready .ibn-funds-main { grid-template-columns: minmax(0, 1fr); }
  .ibn-mobile-ready .ibn-funds-card:not(.ibn-funds-net) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 64px; }
  .ibn-mobile-ready .ibn-funds-card:not(.ibn-funds-net) strong { font-size: 16px; text-align: right; }
  .ibn-mobile-ready .ibn-funds-net strong { font-size: 24px; }
  body[data-layout-page="ib-dashboard-new"] .ibn-page { padding-inline: 12px; }
  .ibn-mobile-ready .ibn-title h1 { font-size: 18px; }
  .ibn-mobile-nav::before { inset-inline: -12px; }
  .ibn-mobile-ready .ibn-mobile-controls { gap: 6px; }
  .ibn-mobile-ready .ibn-mobile-filter-trigger { min-width: 60px; padding-inline: 8px; }
  .ibn-mobile-ready .ibn-mobile-level-toggle { gap: 8px; padding-inline: var(--ibn-card-inset); }
  .ibn-mobile-ready .ibm-controls { gap: 8px; }
  .ibn-mobile-ready .ibm-mode-control { gap: 8px; }
  .ibm-detail-drawer .ibm-detail-body { padding-inline: 12px; }
  .ibm-detail-drawer .ibm-record-card { padding: 12px; }
  .ibn-mobile-ready .ibn-client-tags-heading { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ibn-mobile-nav::before, .ibn-mobile-nav-indicator, .ibn-mobile-nav button, .ibn-mobile-quicknav-toggle svg { transition: none; }
  .ibn-mobile-ready .ibm-mode-control.has-mobile-indicator::after,
  .ibn-mobile-nav button::before,
  .ibn-mobile-ready :is(.ibn-range-control, .ibm-mode-control, .ibn-segment.is-mini) button { transition: none; }
  .ibn-mobile-ready :is(.ibn-range-control, .ibm-mode-control, .ibn-segment.is-mini) button:active { transform: none; }
}
