.mf-mobile-page {
  display: none;
}

/* M18/M19 finalized detail-page visual contracts.
   These overrides are intentionally page-scoped and keep overflow data scrollable. */
@media (max-width: 767px) {
  .mf-mobile-page.mf-mobile-constituent-page {
    position: relative;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mf-mobile-constituent-page .mf-mobile-detail-header {
    min-height: 54px;
    height: 54px;
    margin-bottom: 0;
  }

  .mf-mobile-constituent-page .mf-mobile-detail-header h1 {
    font-size: 21px;
  }

  .mf-mobile-constituent-page .mf-mobile-detail-header > a:last-child {
    position: absolute;
    z-index: 2;
    top: 59px;
    right: 14px;
    color: var(--mf-mobile-primary);
    font-size: 13px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-title {
    min-height: 69px;
    height: 69px;
    align-items: center;
    margin: 0 0 9px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-title h2 {
    font-size: 27px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-title p {
    margin-top: 4px;
    font-size: 11px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-title > span {
    align-self: end;
    margin-bottom: 5px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-summary {
    height: 105px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-summary > div {
    min-height: 69px;
    height: 69px;
    padding: 5px 3px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-summary > div span {
    font-size: 10px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-summary > div strong {
    margin-top: 6px;
    font-size: 16px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-summary footer {
    min-height: 36px;
    height: 36px;
    font-size: 12px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-tabs {
    min-height: 33px;
    height: 33px;
    margin-bottom: 13px;
    overflow: visible;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-tabs button {
    min-height: 44px;
    height: 44px;
    margin-top: -6px;
    padding-bottom: 2px;
    font-size: 15px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-search {
    min-height: 30px;
    height: 30px;
    margin-bottom: 11px;
    border-radius: 6px;
    padding: 0 10px;
    overflow: visible;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-search svg {
    width: 17px;
    height: 17px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-search input {
    height: 44px;
    font-size: 13px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-sort {
    height: 27px;
    gap: 12px;
    margin-bottom: 10px;
    overflow: visible;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-sort button {
    position: relative;
    min-height: 44px;
    height: 44px;
    margin-top: 0;
    border: 0;
    padding: 0 2px 17px;
    overflow: visible;
    color: var(--mf-mobile-muted);
    background: transparent;
    font-size: 11px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-sort button::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: 27px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 5px;
    transform: none;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-sort button.active {
    border: 0;
    color: var(--mf-mobile-primary);
    background: transparent;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-sort button.active::before {
    border-color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-head,
  .mf-mobile-constituent-page .mf-mobile-constituent-list > a {
    grid-template-columns: 28px minmax(66px, 1fr) 48px 54px 48px 50px 40px 12px;
    gap: 0;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-head {
    height: 28px;
    display: grid;
    align-items: center;
    margin: 0 -5px;
    padding: 0 5px;
    font-size: 9px;
    text-align: center;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-head > span {
    display: block;
    min-width: 0;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list {
    height: 296px;
    margin: 0 -5px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 6px;
    scrollbar-width: none;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list::-webkit-scrollbar {
    display: none;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a {
    min-height: 49px;
    height: 49px;
    grid-template-rows: 1fr;
    padding: 3px 5px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > b {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(1) strong {
    font-size: 13px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(1) small {
    margin-top: 3px;
    font-size: 8px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(2) strong {
    font-size: 12px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(2) small {
    margin-top: 3px;
    font-size: 8px;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > strong:nth-of-type(1) {
    grid-column: 4;
    grid-row: 1;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(3) {
    grid-column: 5;
    grid-row: 1;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > strong:nth-of-type(2) {
    grid-column: 6;
    grid-row: 1;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > strong:nth-of-type(3) {
    grid-column: 7;
    grid-row: 1;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > strong:nth-of-type(n + 1),
  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > span:nth-of-type(3) {
    font-size: 10px;
    text-align: center;
  }

  .mf-mobile-constituent-page .mf-mobile-constituent-list > a > svg {
    grid-column: 8;
    grid-row: 1;
    width: 13px;
    height: 13px;
  }

  .mf-mobile-constituent-page .mf-mobile-return-action {
    position: relative;
    min-height: 35px;
    height: 35px;
    width: min(58%, 212px);
    margin: 20px auto 4px;
    border-radius: 6px;
    overflow: visible;
    font-size: 13px;
  }

  .mf-mobile-constituent-page .mf-mobile-return-action::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 44px;
    transform: translateY(-50%);
  }

  body:has(.mf-mobile-constituent-page) .mf-mobile-nav {
    min-height: calc(68px + env(safe-area-inset-bottom));
    height: calc(68px + env(safe-area-inset-bottom));
  }

  .mf-mobile-page.mf-mobile-evidence-page {
    padding-right: 16px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    padding-left: 16px;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-header {
    min-height: 51px;
    height: 51px;
    margin-bottom: 0;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-header h1 {
    font-size: 21px;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-header > a:last-child {
    font-size: 13px;
  }

  .mf-mobile-evidence-page .mf-mobile-origin-chip {
    min-height: 19px;
    height: 19px;
    margin: 1px 0 12px;
    border-radius: 5px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-tabs {
    min-height: 25px;
    height: 25px;
    margin: 0 0 11px;
    overflow: visible;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 6px;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-tabs button,
  .mf-mobile-evidence-page .mf-mobile-detail-tabs a {
    position: relative;
    min-height: 44px;
    height: 44px;
    margin-top: -10px;
    border: 0;
    color: var(--mf-mobile-muted);
    background: transparent;
    font-size: 14px;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-tabs button::before,
  .mf-mobile-evidence-page .mf-mobile-detail-tabs a::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    z-index: -1;
    height: 25px;
    border-radius: 6px;
    transform: translateY(-50%);
  }

  .mf-mobile-evidence-page .mf-mobile-detail-tabs .active {
    border: 0;
    color: var(--mf-mobile-primary);
    background: transparent;
  }

  .mf-mobile-evidence-page .mf-mobile-detail-tabs .active::before {
    border: 1px solid var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-card {
    height: 334px;
    padding: 10px 9px 11px;
    border-radius: 6px;
    overflow: hidden;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-title > span {
    font-size: 13px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-title > div {
    gap: 7px;
    margin-top: 5px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-title h2 {
    font-size: 25px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-title strong {
    min-height: 24px;
    border-radius: 5px;
    padding: 0 7px;
    font-size: 12px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-card > p {
    min-height: 39px;
    display: block;
    margin: 2px 0;
    overflow: visible;
    font-size: 10px;
    line-height: 1.3;
    -webkit-line-clamp: unset;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-grid {
    height: 134px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 62px 67px;
    gap: 5px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric {
    min-height: 0;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 5px;
    border-radius: 5px;
    padding: 5px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric::before {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    align-self: center;
    border-radius: 50%;
    color: var(--mf-mobile-primary);
    background: rgba(54, 215, 192, .16);
    font: 700 14px/1 var(--mf-mobile-number);
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(1)::before { content: "¥"; }
  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(2)::before { content: "¥"; color: #78a9ff; background: rgba(90, 130, 230, .16); }
  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(3)::before { content: "↗"; color: #78a9ff; background: rgba(90, 130, 230, .16); }
  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(4)::before { content: "≈"; }
  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(5)::before { content: "●"; color: #f5d452; background: rgba(245, 212, 82, .16); }
  .mf-mobile-evidence-page .mf-mobile-evidence-metric:nth-child(6)::before { content: "↕"; color: #78a9ff; background: rgba(90, 130, 230, .16); }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric > span,
  .mf-mobile-evidence-page .mf-mobile-evidence-metric > strong,
  .mf-mobile-evidence-page .mf-mobile-evidence-metric > small {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric > span {
    font-size: 10px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric > strong {
    margin-top: 2px;
    font-size: 17px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric > small {
    margin-top: 2px;
    font-size: 8px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-timeline {
    height: 70px;
    margin-top: 10px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-timeline h3 {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-timeline strong {
    margin-top: 4px;
    font-size: 11px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-timeline small {
    margin-top: 2px;
    font-size: 8px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-timeline i {
    width: 11px;
    height: 11px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-members {
    height: 240px;
    margin-top: 12px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-members h2 {
    height: 19px;
    margin: 0;
    font-size: 15px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-head,
  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a {
    grid-template-columns: 26px minmax(105px, 1fr) 62px 57px 68px 14px;
    gap: 0;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-head {
    height: 19px;
    padding: 0 5px;
    font-size: 9px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list {
    height: 202px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 6px;
    scrollbar-width: none;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list::-webkit-scrollbar {
    display: none;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a {
    position: relative;
    min-height: 34px;
    height: 34px;
    padding: 2px 5px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a > b {
    font-size: 14px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a > span strong {
    font-size: 12px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a > span small {
    margin-top: 2px;
    font-size: 7px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a > strong,
  .mf-mobile-evidence-page .mf-mobile-evidence-member-list > a > span:not(:first-of-type) {
    font-size: 11px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-member-list svg {
    width: 13px;
    height: 13px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-actions {
    height: 35px;
    gap: 6px;
    margin: 15px 0 4px;
    overflow: visible;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-actions a {
    position: relative;
    min-height: 35px;
    height: 35px;
    border-radius: 6px;
    overflow: visible;
    font-size: 13px;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-actions a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 44px;
    transform: translateY(-50%);
  }

  body:has(.mf-mobile-evidence-page) .mf-mobile-nav {
    min-height: calc(62px + env(safe-area-inset-bottom));
    height: calc(62px + env(safe-area-inset-bottom));
    padding-top: 2px;
  }

  body:has(.mf-mobile-evidence-page) .mf-mobile-nav a {
    min-height: 56px;
  }
}

@media (max-width: 380px) {
  .mf-mobile-evidence-page .mf-mobile-evidence-metric > span {
    font-size: 9px;
    line-height: 1.05;
    overflow: visible;
    white-space: normal;
  }

  .mf-mobile-evidence-page .mf-mobile-evidence-metric > strong {
    font-size: 16px;
  }
}

/* Finalized mobile visual contract: M01-M03 at the 390 x 844 acceptance viewport. */
@media (max-width: 767px) {
  /* Shared compact control: the visible control stays faithful to the design while
     its transparent pseudo-element preserves a minimum 44px touch target. */
  .mf-mobile-holdings-page .mf-mobile-segments button,
  .mf-mobile-rank-page .mf-mobile-scope-tabs button,
  .mf-mobile-rank-page .mf-mobile-market-tabs button,
  .mf-mobile-rank-page .mf-mobile-rank-types button,
  .mf-mobile-anomaly-page > .mf-mobile-tabline button,
  .mf-mobile-anomaly-direction button {
    position: relative;
  }

  .mf-mobile-holdings-page .mf-mobile-segments button::before,
  .mf-mobile-rank-page .mf-mobile-scope-tabs button::before,
  .mf-mobile-rank-page .mf-mobile-market-tabs button::before,
  .mf-mobile-rank-page .mf-mobile-rank-types button::before,
  .mf-mobile-anomaly-page > .mf-mobile-tabline button::before,
  .mf-mobile-anomaly-direction button::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -6px 0;
    background: transparent;
  }

  /* M01 我的持仓 */
  .mf-mobile-holdings-page .mf-mobile-header {
    min-height: 114px;
    padding: 20px 2px 10px;
  }

  .mf-mobile-holdings-page .mf-mobile-header h1 {
    font-size: 24px;
    letter-spacing: -.03em;
  }

  .mf-mobile-holdings-page .mf-mobile-header p {
    margin-top: 6px;
    font-size: 13px;
  }

  .mf-mobile-holdings-page .mf-mobile-header-actions {
    gap: 4px;
  }
  .mf-mobile-holdings-page .mf-mobile-header-buttons { display: flex; justify-content: flex-end; gap: 8px; }

  .mf-mobile-holdings-page .mf-mobile-header-action {
    font-size: 14px;
  }

  .mf-mobile-holdings-page .mf-mobile-time {
    padding: 6px 8px;
    font-size: 11px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-summary {
    gap: 5px;
    margin-bottom: 15px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-stat {
    min-height: 71px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
    padding: 8px 7px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-stat svg {
    width: 24px;
    height: 24px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-stat strong {
    font-size: 22px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-stat span {
    margin-top: 4px;
    font-size: 10px;
  }

  .mf-mobile-holdings-page > .mf-mobile-segments {
    height: 40px;
    padding: 3px;
  }

  .mf-mobile-holdings-page > .mf-mobile-segments button {
    min-height: 32px;
    font-size: 14px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-list {
    gap: 6px;
    margin-top: 13px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row,
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) {
    min-height: 67px;
    grid-template-columns: minmax(70px, 1fr) 45px 48px 48px 64px 45px;
    grid-template-rows: 1fr;
    gap: 4px;
    padding: 8px 9px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) .mf-mobile-stock-name {
    grid-column: auto;
    grid-row: auto;
    display: block;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric {
    grid-column: auto;
    grid-row: auto;
    padding-left: 3px;
    border-left: 1px solid rgba(33, 54, 76, .62);
    text-align: center;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured {
    min-height: 133px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 4px;
    margin-bottom: 7px;
    padding: 39px 10px 8px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured .mf-mobile-stock-name {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    top: 18px;
    left: 76px;
    right: 102px;
    display: block;
    margin: 0;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric {
    grid-row: 1;
    padding-left: 3px;
    border-left: 1px solid rgba(33, 54, 76, .62);
    text-align: center;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(1) { grid-column: 1; border-left: 0; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(2) { grid-column: 2; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(3) { grid-column: 3; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(4) { grid-column: 4; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(5) { grid-column: 5; }

  .mf-mobile-holdings-page .mf-mobile-holding-row .mf-mobile-holding-badge {
    top: 10px;
    left: 10px;
    min-height: 25px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-evidence {
    top: 9px;
    right: 10px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-evidence::before {
    content: "";
    position: absolute;
    inset: -5px 0;
  }

  .mf-mobile-holdings-page .mf-mobile-stock-name strong {
    font-size: 14px;
  }

  .mf-mobile-holdings-page .mf-mobile-stock-name small {
    margin-top: 4px;
    font-size: 9px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric span {
    font-size: 8px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric strong {
    margin-top: 5px;
    font-size: 11px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.industry strong,
  .mf-mobile-holdings-page .mf-mobile-holding-metric.status strong {
    font-size: 10px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status strong {
    min-height: 23px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status strong.pending {
    border-color: rgba(255, 176, 32, .52);
    color: #d8b56d;
    background: rgba(255, 176, 32, .08);
  }

  .mf-mobile-holdings-page .mf-mobile-add-holding {
    min-height: 54px;
    margin-top: 10px;
    font-size: 15px;
  }

  .mf-mobile-holdings-page .mf-mobile-boundary {
    min-height: 38px;
    margin-top: 48px;
    margin-bottom: -4px;
    font-size: 11px;
  }

  /* M02 行业排名 */
  .mf-mobile-rank-page .mf-mobile-header {
    min-height: 87px;
    padding: 15px 1px 8px;
  }

  .mf-mobile-rank-page .mf-mobile-header h1 {
    font-size: 24px;
  }

  .mf-mobile-rank-page .mf-mobile-header p {
    margin-top: 5px;
    font-size: 13px;
  }

  .mf-mobile-rank-page .mf-mobile-header-actions {
    gap: 7px;
  }

  .mf-mobile-rank-page .mf-mobile-live {
    font-size: 13px;
  }

  .mf-mobile-rank-page .mf-mobile-time-pill {
    padding: 6px 9px;
    font-size: 11px;
  }

  .mf-mobile-rank-page .mf-mobile-scope-tabs {
    height: 30px;
  }

  .mf-mobile-rank-page .mf-mobile-scope-tabs button {
    min-height: 30px;
    font-size: 16px;
  }

  .mf-mobile-rank-page .mf-mobile-scope-tabs button::before {
    inset: -7px 0;
  }

  .mf-mobile-rank-page .mf-mobile-market-tabs {
    gap: 10px;
    margin: 11px 0;
    overflow: visible;
  }

  .mf-mobile-rank-page .mf-mobile-market-tabs button {
    min-width: 54px;
    min-height: 24px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-rank-page .mf-mobile-market-tabs button::before {
    inset: -10px 0;
  }

  .mf-mobile-rank-page .mf-mobile-market-overview {
    min-height: 107px;
    grid-template-columns: minmax(130px, .9fr) minmax(150px, 1.1fr);
    padding: 11px 13px;
  }

  .mf-mobile-rank-page .mf-mobile-market-overview .label {
    font-size: 12px;
  }

  .mf-mobile-rank-page .mf-mobile-market-overview .amount {
    margin-top: 5px;
    font-size: 23px;
  }

  .mf-mobile-rank-page .mf-mobile-breadth {
    margin-top: 8px;
    font-size: 11px;
  }

  .mf-mobile-rank-page .mf-mobile-market-spark {
    height: 66px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-types {
    height: 43px;
    margin: 9px 0 10px;
    padding: 3px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-types button {
    min-height: 35px;
    font-size: 13px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-types button::before {
    inset: -5px 0;
  }

  .mf-mobile-rank-page .mf-mobile-rank-head {
    min-height: 31px;
    font-size: 8px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-row {
    min-height: 63px;
    margin-bottom: 1px;
    padding: 7px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-name small {
    display: none;
  }

  .mf-mobile-rank-page .mf-mobile-rank-name strong {
    font-size: 13px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-index.top {
    min-height: 25px;
  }

  .mf-mobile-rank-page .mf-mobile-row-spark {
    height: 28px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-hint {
    margin: 17px 0 18px;
    font-size: 11px;
  }

  /* M03 异动监控 */
  .mf-mobile-anomaly-page .mf-mobile-anomaly-header {
    min-height: 93px;
    padding: 18px 2px 7px;
  }

  .mf-mobile-anomaly-page .mf-mobile-header h1 {
    font-size: 24px;
  }

  .mf-mobile-anomaly-page .mf-mobile-header p {
    margin-top: 6px;
    font-size: 13px;
  }

  .mf-mobile-anomaly-header .mf-mobile-header-actions {
    top: 15px;
    right: 2px;
    gap: 1px;
  }

  .mf-mobile-anomaly-header .mf-mobile-time-pill {
    padding: 6px 9px;
    font-size: 11px;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline {
    min-height: 27px;
    height: 27px;
    overflow: visible;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline button {
    min-height: 27px;
    padding-bottom: 3px;
    font-size: 16px;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline button::before {
    inset: -9px 0;
  }

  .mf-mobile-anomaly-status {
    min-height: 31px;
    gap: 8px;
    margin: 10px 0 9px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-anomaly-status strong {
    font-size: 12px;
  }

  .mf-mobile-anomaly-chart {
    height: 372px;
    margin-bottom: 13px;
    padding: 11px 10px 7px;
  }

  .mf-mobile-anomaly-chart h2 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .mf-mobile-anomaly-chart .anomaly-chart-legend {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .mf-mobile-anomaly-chart canvas {
    height: 300px !important;
    min-height: 300px;
  }

  .mf-mobile-anomaly-direction {
    gap: 9px;
    margin-bottom: 11px;
  }

  .mf-mobile-anomaly-direction button {
    min-width: 78px;
    min-height: 26px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-anomaly-direction button::before {
    inset: -9px 0;
  }

  .mf-mobile-anomaly-list {
    gap: 9px;
  }

  .mf-mobile-anomaly-row {
    min-height: 71px;
    grid-template-rows: 24px 29px;
    gap: 2px 5px;
    padding: 7px 8px;
  }

  .mf-mobile-anomaly-name small {
    display: none;
  }

  .mf-mobile-anomaly-name strong {
    font-size: 14px;
  }

  .mf-mobile-anomaly-time {
    font-size: 12px;
  }

  .mf-mobile-anomaly-metric {
    min-height: 29px;
    padding: 0 6px;
  }

  .mf-mobile-anomaly-metric span {
    font-size: 8px;
  }

  .mf-mobile-anomaly-metric strong {
    font-size: 11px;
  }

  .mf-mobile-anomaly-note {
    margin: 18px 0 6px;
    font-size: 10px;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  :root {
    --mf-mobile-bg: #07111e;
    --mf-mobile-card: #0d1b2a;
    --mf-mobile-card-2: #0a1725;
    --mf-mobile-border: #21364c;
    --mf-mobile-primary: #36d7c0;
    --mf-mobile-primary-soft: rgba(54, 215, 192, 0.14);
    --mf-mobile-amber: #ffb020;
    --mf-mobile-up: #ff5a67;
    --mf-mobile-down: #30d48a;
    --mf-mobile-text: #f4f7fb;
    --mf-mobile-muted: #93a3b8;
    --mf-mobile-muted-2: #667b92;
    --mf-mobile-radius: 14px;
    --mf-mobile-font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
    --mf-mobile-number: "Segoe UI", "DIN Alternate", "Roboto Mono", ui-monospace, monospace;
  }

  html,
  body {
    min-width: 0 !important;
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    background: var(--mf-mobile-bg);
  }

  body {
    color: var(--mf-mobile-text);
    background:
      radial-gradient(circle at 92% 2%, rgba(25, 77, 109, 0.23), transparent 32%),
      radial-gradient(circle at 8% 38%, rgba(18, 66, 90, 0.12), transparent 34%),
      var(--mf-mobile-bg);
    font-family: var(--mf-mobile-font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  button,
  input,
  textarea,
  select {
    font-family: inherit;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  .app-root {
    min-height: 100dvh;
  }

  .mf-mobile-page {
    display: block;
    width: 100%;
    min-height: 100dvh;
    padding: 0 14px calc(80px + env(safe-area-inset-bottom));
    color: var(--mf-mobile-text);
    background: transparent;
  }

  .mf-mobile-page *,
  .mf-mobile-nav * {
    box-sizing: border-box;
  }

  .mf-mobile-header {
    min-height: 116px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 25px 2px 15px;
  }

  .mf-mobile-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 8vw, 34px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.04em;
  }

  .mf-mobile-header p {
    margin: 8px 0 0;
    color: var(--mf-mobile-muted);
    font-size: 15px;
    line-height: 1.4;
  }

  .mf-mobile-header-actions {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
  }

  .mf-mobile-header-action,
  .mf-mobile-icon-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--mf-mobile-primary);
    background: transparent;
    padding: 0;
    text-decoration: none;
    font-size: 16px;
  }

  .mf-mobile-icon-button {
    width: 44px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 50%;
  }

  .mf-mobile-header-action svg,
  .mf-mobile-icon-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-time,
  .mf-mobile-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 10px;
    color: var(--mf-mobile-muted);
    background: rgba(13, 27, 42, 0.76);
    padding: 8px 10px;
    font: 500 12px/1.2 var(--mf-mobile-number);
    white-space: nowrap;
  }

  .mf-mobile-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mf-mobile-primary);
    font-size: 14px;
    white-space: nowrap;
  }

  .mf-mobile-live i,
  .mf-mobile-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--mf-mobile-primary);
    box-shadow: 0 0 12px rgba(54, 215, 192, 0.42);
  }

  .mf-mobile-live.historical {
    color: var(--mf-mobile-muted);
  }

  .mf-mobile-live.historical i {
    background: var(--mf-mobile-muted-2);
    box-shadow: none;
  }

  .mf-mobile-nav {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    height: calc(68px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    border-top: 1px solid var(--mf-mobile-border);
    background: rgba(8, 21, 34, 0.985);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.28);
    padding: 4px 4px env(safe-area-inset-bottom);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .mf-mobile-nav a {
    min-width: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9aa8b9;
    text-decoration: none;
  }

  .mf-mobile-nav a span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
  }

  .mf-mobile-nav svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-nav strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-nav a.active {
    color: var(--mf-mobile-primary);
  }

  /* Keep page-specific bottom navigation compact without changing icon sizes. */
  #mobileBottomNav .mf-mobile-nav {
    min-height: calc(64px + env(safe-area-inset-bottom));
    height: calc(64px + env(safe-area-inset-bottom));
    padding-top: 2px;
  }

  #mobileBottomNav .mf-mobile-nav a {
    min-height: 56px;
  }

  body.mobile-stock-detail #mobileBottomNav .mf-mobile-nav {
    min-height: calc(60px + env(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom));
  }

  body.mobile-stock-detail #mobileBottomNav .mf-mobile-nav a {
    min-height: 54px;
  }

  .mf-mobile-card {
    border: 1px solid var(--mf-mobile-border);
    border-radius: var(--mf-mobile-radius);
    background: linear-gradient(145deg, rgba(15, 34, 52, 0.98), rgba(10, 24, 38, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  }

  .mf-mobile-segments {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 12px;
    background: rgba(9, 22, 35, 0.82);
    padding: 4px;
  }

  .mf-mobile-segments button {
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    color: var(--mf-mobile-muted);
    background: transparent;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
  }

  .mf-mobile-segments button.active {
    color: #f8ffff;
    background: linear-gradient(135deg, rgba(54, 215, 192, 0.44), rgba(44, 143, 151, 0.36));
    box-shadow: inset 0 0 0 1px rgba(54, 215, 192, 0.18);
  }

  .mf-mobile-tabline {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(33, 54, 76, 0.78);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mf-mobile-tabline::-webkit-scrollbar {
    display: none;
  }

  .mf-mobile-tabline button {
    position: relative;
    min-height: 50px;
    flex: 0 0 auto;
    border: 0;
    color: var(--mf-mobile-muted);
    background: transparent;
    padding: 0 0 6px;
    font-size: 17px;
    font-weight: 650;
  }

  .mf-mobile-tabline button.active {
    color: var(--mf-mobile-text);
  }

  .mf-mobile-tabline button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--mf-mobile-primary);
  }

  .mf-mobile-empty,
  .mf-mobile-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--mf-mobile-muted);
    text-align: center;
    padding: 28px;
  }

  .mf-mobile-empty strong,
  .mf-mobile-loading strong {
    color: var(--mf-mobile-text);
    font-size: 17px;
  }

  .mf-mobile-empty button,
  .mf-mobile-loading button {
    min-height: 44px;
    margin-top: 8px;
    border: 1px solid var(--mf-mobile-primary);
    border-radius: 10px;
    color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
    padding: 0 18px;
    font-weight: 700;
  }

  .mf-mobile-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(54, 215, 192, 0.18);
    border-top-color: var(--mf-mobile-primary);
    border-radius: 50%;
    animation: mf-mobile-spin 0.8s linear infinite;
  }

  .mf-mobile-data-warning {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    border: 1px solid rgba(255, 176, 32, 0.55);
    border-radius: 10px;
    padding: 9px 10px 9px 12px;
    color: var(--mf-mobile-amber);
    background: rgba(255, 176, 32, 0.08);
  }

  .mf-mobile-data-warning strong,
  .mf-mobile-data-warning span { display: block; }
  .mf-mobile-data-warning strong { font-size: 13px; }
  .mf-mobile-data-warning span { max-width: 230px; margin-top: 4px; overflow: hidden; color: var(--mf-mobile-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mf-mobile-data-warning button { min-height: 40px; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 8px; padding: 0 10px; color: inherit; background: transparent; font-size: 11px; }

  @keyframes mf-mobile-spin {
    to { transform: rotate(360deg); }
  }

  /* M01 我的持仓 */
  .mf-mobile-holding-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 13px;
  }

  .mf-mobile-holding-stat {
    min-width: 0;
    min-height: 88px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 11px 8px;
  }

  .mf-mobile-holding-stat svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--mf-mobile-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-holding-stat.warn svg {
    stroke: var(--mf-mobile-amber);
  }

  .mf-mobile-holding-stat strong,
  .mf-mobile-holding-stat span {
    display: block;
  }

  .mf-mobile-holding-stat strong {
    font: 750 24px/1 var(--mf-mobile-number);
  }

  .mf-mobile-holding-stat span {
    margin-top: 5px;
    overflow: hidden;
    color: #c7d1de;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-holding-list {
    display: grid;
    gap: 9px;
    margin-top: 13px;
  }

  .mf-mobile-holding-row {
    position: relative;
    min-height: 110px;
    display: grid;
    grid-template-columns: minmax(74px, 1.18fr) repeat(5, minmax(0, 0.68fr));
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding: 14px 12px;
    color: inherit;
    text-decoration: none;
  }

  .mf-mobile-holding-row.featured {
    min-height: 148px;
    border-color: var(--mf-mobile-primary);
    box-shadow: inset 0 0 0 1px rgba(54, 215, 192, 0.32), 0 0 24px rgba(54, 215, 192, 0.08);
    padding-top: 46px;
  }

  .mf-mobile-holding-row .mf-mobile-holding-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    color: var(--mf-mobile-primary);
    background: rgba(3, 19, 31, 0.78);
    padding: 0 9px;
    font-size: 12px;
    font-weight: 750;
  }

  .mf-mobile-holding-evidence {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mf-mobile-primary);
    border-radius: 9px;
    color: var(--mf-mobile-primary);
    background: rgba(54, 215, 192, 0.05);
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
  }

  .mf-mobile-stock-name strong,
  .mf-mobile-stock-name small,
  .mf-mobile-holding-metric span,
  .mf-mobile-holding-metric strong {
    display: block;
  }

  .mf-mobile-stock-name,
  .mf-mobile-holding-metric,
  .mf-mobile-holding-metric > a {
    min-width: 0;
    max-width: 100%;
  }

  .mf-mobile-stock-name strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-stock-name small {
    margin-top: 6px;
    color: var(--mf-mobile-muted);
    font: 500 11px/1 var(--mf-mobile-number);
  }

  .mf-mobile-holding-metric {
    min-width: 0;
    text-align: right;
  }

  .mf-mobile-holding-metric span {
    overflow: hidden;
    color: var(--mf-mobile-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-holding-metric strong {
    margin-top: 8px;
    overflow: hidden;
    font: 700 13px/1.15 var(--mf-mobile-number);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-holding-metric.industry strong,
  .mf-mobile-holding-metric.status strong {
    font-family: var(--mf-mobile-font);
    font-size: 12px;
  }

  .mf-mobile-holding-metric.status > strong,
  .mf-mobile-holding-status {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 7px;
    padding: 0 4px;
    font-size: 10px;
  }

  .mf-mobile-holding-status {
    gap: 2px;
    color: var(--mf-mobile-text);
    text-decoration: none;
  }

  .mf-mobile-holding-status > strong {
    min-height: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    white-space: normal;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status .mf-mobile-holding-status > strong {
    min-height: 0;
    margin: 0;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
  }

  .mf-mobile-holding-status svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: rotate(180deg);
  }

  .mf-mobile-holding-status.up,
  .mf-mobile-holding-badge.up {
    border-color: rgba(255, 90, 103, .65);
    color: var(--mf-mobile-up);
    background: rgba(255, 90, 103, .10);
  }

  .mf-mobile-holding-status.down,
  .mf-mobile-holding-badge.down {
    border-color: rgba(48, 212, 138, .65);
    color: var(--mf-mobile-down);
    background: rgba(48, 212, 138, .10);
  }

  .mf-mobile-holding-status.pending,
  .mf-mobile-holding-badge.pending {
    border-color: rgba(255, 176, 32, .58);
    color: var(--mf-mobile-amber);
    background: rgba(255, 176, 32, .09);
  }

  .mf-mobile-holding-status.normal,
  .mf-mobile-holding-badge.normal {
    border-color: var(--mf-mobile-border);
    color: var(--mf-mobile-text);
    background: rgba(147, 163, 184, .05);
  }

  .mf-mobile-holding-delete {
    position: absolute;
    top: 11px;
    right: 11px;
    min-width: 76px;
    min-height: 36px;
    border: 1px solid var(--mf-mobile-up);
    border-radius: 8px;
    color: var(--mf-mobile-up);
    background: rgba(255, 90, 103, 0.08);
    font-weight: 700;
  }

  .mf-mobile-add-holding {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 12px;
    border: 1px dashed #39536c;
    border-radius: 13px;
    color: var(--mf-mobile-primary);
    background: rgba(9, 22, 35, 0.54);
    font-size: 16px;
    font-weight: 700;
  }

  .mf-mobile-add-holding svg,
  .mf-mobile-boundary svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-boundary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px -14px -4px;
    border-top: 1px solid rgba(33, 54, 76, 0.56);
    color: var(--mf-mobile-muted);
    font-size: 12px;
  }

  .mf-mobile-sheet-mask {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 7, 13, 0.72);
    backdrop-filter: blur(5px);
  }

  .mf-mobile-sheet {
    width: 100%;
    border: 1px solid var(--mf-mobile-border);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #0b1927;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .mf-mobile-sheet h2 {
    margin: 0;
    font-size: 20px;
  }

  .mf-mobile-sheet p {
    margin: 7px 0 14px;
    color: var(--mf-mobile-muted);
    font-size: 13px;
    line-height: 1.55;
  }

  .mf-mobile-sheet textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 11px;
    outline: 0;
    color: var(--mf-mobile-text);
    background: #07131f;
    padding: 12px;
    resize: vertical;
  }

  .mf-mobile-sheet-actions {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 10px;
    margin-top: 13px;
  }

  .mf-mobile-sheet-actions button {
    min-height: 48px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 10px;
    color: var(--mf-mobile-text);
    background: transparent;
    font-weight: 750;
  }

  .mf-mobile-sheet-actions button.primary {
    border-color: var(--mf-mobile-primary);
    color: #05221f;
    background: var(--mf-mobile-primary);
  }

  /* M02 行业排名 */
  .mf-mobile-scope-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid rgba(33, 54, 76, 0.72);
  }

  .mf-mobile-scope-tabs button {
    position: relative;
    min-height: 52px;
    border: 0;
    color: var(--mf-mobile-muted);
    background: transparent;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
  }

  .mf-mobile-scope-tabs button.active {
    color: var(--mf-mobile-text);
  }

  .mf-mobile-scope-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--mf-mobile-primary);
  }

  .mf-mobile-market-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mf-mobile-market-tabs::-webkit-scrollbar {
    display: none;
  }

  .mf-mobile-market-tabs button {
    min-width: 70px;
    min-height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 9px;
    color: var(--mf-mobile-muted);
    background: rgba(9, 22, 35, 0.7);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
  }

  .mf-mobile-market-tabs button.active {
    border-color: var(--mf-mobile-primary);
    color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
  }

  .mf-mobile-market-overview {
    min-height: 128px;
    display: grid;
    grid-template-columns: minmax(130px, 0.82fr) minmax(150px, 1.18fr);
    align-items: center;
    gap: 8px;
    padding: 14px;
  }

  .mf-mobile-market-overview span,
  .mf-mobile-market-overview strong {
    display: block;
  }

  .mf-mobile-market-overview .label {
    color: var(--mf-mobile-muted);
    font-size: 13px;
  }

  .mf-mobile-market-overview .amount {
    margin-top: 8px;
    font: 760 25px/1.1 var(--mf-mobile-number);
  }

  .mf-mobile-breadth {
    display: flex;
    gap: 13px;
    margin-top: 12px;
    color: var(--mf-mobile-muted);
    font-size: 12px;
  }

  .mf-mobile-breadth b {
    margin-left: 3px;
    font-family: var(--mf-mobile-number);
  }

  .mf-mobile-market-spark {
    width: 100%;
    height: 78px;
  }

  .mf-mobile-market-spark .grid {
    stroke: rgba(116, 139, 163, 0.24);
    stroke-dasharray: 4 4;
  }

  .mf-mobile-market-spark .area {
    fill: url(#mfMarketArea);
  }

  .mf-mobile-market-spark .line {
    fill: none;
    stroke: var(--mf-mobile-primary);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-rank-types {
    margin: 10px 0 14px;
  }

  .mf-mobile-rank-window {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 84px;
    align-items: center;
    gap: 7px;
    margin: -4px 0 10px;
  }

  .mf-mobile-rank-page .mf-mobile-rank-window,
  .mf-mobile-constituent-window {
    grid-template-columns: minmax(0, 1fr) repeat(3, 68px);
  }

  .mf-mobile-rank-window > span {
    color: var(--mf-mobile-muted);
    font-size: 11px;
  }

  .mf-mobile-rank-window button {
    min-height: 34px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 8px;
    background: rgba(10, 27, 43, .72);
    color: var(--mf-mobile-muted);
    font: 650 12px/1 var(--mf-mobile-number);
  }

  .mf-mobile-rank-window button.active {
    border-color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
    color: var(--mf-mobile-primary);
  }

  .mf-mobile-rank-head,
  .mf-mobile-rank-row {
    display: grid;
    grid-template-columns: 23px minmax(70px, 1fr) 49px 49px 49px 39px 43px;
    align-items: center;
    gap: 3px;
  }

  .mf-mobile-rank-head.is-all-day,
  .mf-mobile-rank-row.is-all-day {
    grid-template-columns: 23px minmax(70px, 1fr) 49px 49px 43px 47px 42px;
  }

  .mf-mobile-rank-head {
    min-height: 45px;
    color: var(--mf-mobile-muted);
    /* Match the card's 1px border + 7px inner padding so every heading
       shares the exact same track origin as its row value. */
    padding: 0 8px;
    font-size: 9px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .mf-mobile-rank-head > span:first-child { text-align: center; }
  .mf-mobile-rank-head > span:nth-child(n + 3) { text-align: right; }

  .mf-mobile-rank-row {
    min-height: 76px;
    margin-bottom: 7px;
    padding: 9px 7px;
    color: inherit;
    text-decoration: none;
  }

  .mf-mobile-rank-row > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-rank-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mf-mobile-muted);
    font: 700 14px/1 var(--mf-mobile-number);
  }

  .mf-mobile-rank-index.top {
    min-height: 28px;
    border: 1px solid rgba(255, 176, 32, 0.52);
    border-radius: 7px;
    color: var(--mf-mobile-amber);
    background: rgba(255, 176, 32, 0.08);
  }

  .mf-mobile-rank-name strong,
  .mf-mobile-rank-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-rank-name strong {
    font-size: 14px;
    font-weight: 750;
  }

  .mf-mobile-rank-name small {
    margin-top: 5px;
    color: var(--mf-mobile-muted-2);
    font: 500 9px/1 var(--mf-mobile-number);
  }

  .mf-mobile-rank-number {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: clip;
    white-space: nowrap;
    font: 650 clamp(8px, 2.35vw, 9.5px)/1.15 var(--mf-mobile-number);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.25px;
  }

  .mf-mobile-rank-breadth {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    text-align: right;
    font: 700 9px/1 var(--mf-mobile-number);
  }

  .mf-mobile-rank-breadth b { font: inherit; }
  .mf-mobile-rank-breadth i { color: var(--mf-mobile-muted-2); font-style: normal; }

  .mf-mobile-rank-index,
  .mf-mobile-rank-name,
  .mf-mobile-rank-name strong {
    overflow: visible;
    text-overflow: clip;
  }

  .mf-mobile-rank-name,
  .mf-mobile-rank-name strong {
    white-space: normal;
  }

  .mf-mobile-rank-name strong {
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .mf-mobile-row-spark {
    width: 43px;
    height: 34px;
  }

  .mf-mobile-row-spark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-rank-move {
    text-align: right;
    font: 700 11px/1 var(--mf-mobile-number);
  }

  .mf-mobile-rank-hint {
    margin: 20px 0 28px;
    color: var(--mf-mobile-muted);
    text-align: center;
    font-size: 12px;
  }

  /* M03 异动监控 */
  .mf-mobile-anomaly-header {
    position: relative;
    min-height: 86px;
    padding-bottom: 0;
  }

  .mf-mobile-anomaly-header .mf-mobile-header-actions {
    position: absolute;
    top: 2px;
    right: 2px;
    gap: 0;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline {
    min-height: 44px;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline button {
    min-height: 44px;
  }

  .mf-mobile-anomaly-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0 8px;
    padding: 8px 13px;
    color: var(--mf-mobile-muted);
    font-size: 12px;
  }

  .mf-mobile-anomaly-status strong {
    color: var(--mf-mobile-primary);
    font-size: 14px;
  }

  .mf-mobile-anomaly-chart {
    position: relative;
    margin-bottom: 12px;
    padding: 14px 10px 8px;
  }

  .mf-mobile-anomaly-chart h2 {
    margin: 0 3px 8px;
    font-size: 16px;
  }

  .mf-mobile-anomaly-chart .anomaly-chart-legend {
    justify-content: flex-start;
    margin: 0 3px 6px;
    font-size: 10px;
  }

  .mf-mobile-anomaly-chart canvas {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px;
  }

  .mf-mobile-anomaly-chart .industry-chart-label-layer {
    z-index: 8;
  }

  .mf-mobile-anomaly-chart .industry-chart-event-label {
    max-width: 88px;
    padding: 0;
    font: 800 10px/18px var(--mf-mobile-font);
  }

  .mf-mobile-anomaly-chart .industry-chart-tooltip {
    width: max-content;
    max-width: min(230px, calc(100% - 20px));
    border-color: rgba(120, 145, 173, 0.55);
    border-radius: 5px;
    padding: 7px 9px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  }

  .mf-mobile-anomaly-chart .industry-chart-tooltip strong,
  .mf-mobile-anomaly-chart .industry-chart-tooltip span {
    font-size: 11px;
  }

  .mf-mobile-anomaly-chart .industry-chart-tooltip small {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.45;
  }

  .mf-mobile-anomaly-direction {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
  }

  .mf-mobile-anomaly-direction button {
    min-width: 88px;
    min-height: 42px;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 9px;
    color: var(--mf-mobile-muted);
    background: rgba(9, 22, 35, 0.7);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
  }

  .mf-mobile-anomaly-direction button.active {
    border-color: var(--mf-mobile-primary);
    color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
  }

  .mf-mobile-anomaly-list {
    display: grid;
    gap: 9px;
  }

  .mf-mobile-anomaly-row {
    position: relative;
    min-height: 104px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 18px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 9px 6px;
    overflow: hidden;
    border-left: 4px solid var(--mf-mobile-up);
    padding: 12px 9px;
    color: inherit;
    text-decoration: none;
  }

  .mf-mobile-anomaly-row.down-event {
    border-left-color: var(--mf-mobile-down);
  }

  .mf-mobile-anomaly-row > * {
    min-width: 0;
  }

  .mf-mobile-anomaly-time {
    grid-column: 1;
    grid-row: 1;
    color: var(--mf-mobile-muted);
    font: 650 13px/1 var(--mf-mobile-number);
  }

  .mf-mobile-anomaly-name {
    grid-column: 2;
    grid-row: 1;
  }

  .mf-mobile-anomaly-name strong,
  .mf-mobile-anomaly-name small,
  .mf-mobile-anomaly-metric span,
  .mf-mobile-anomaly-metric strong {
    display: block;
  }

  .mf-mobile-anomaly-name strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-anomaly-name small {
    margin-top: 6px;
    overflow: hidden;
    color: var(--mf-mobile-muted-2);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mf-mobile-anomaly-metric {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    border: 1px solid rgba(33, 54, 76, 0.72);
    border-radius: 7px;
    padding: 0 7px;
    text-align: right;
  }

  .mf-mobile-anomaly-metric.ratio {
    grid-column: 1;
    grid-row: 2;
  }

  .mf-mobile-anomaly-metric.change {
    grid-column: 2;
    grid-row: 2;
  }

  .mf-mobile-anomaly-metric.breadth {
    grid-column: 3;
    grid-row: 2;
  }

  .mf-mobile-anomaly-metric span {
    color: var(--mf-mobile-muted);
    font-size: 9px;
    white-space: nowrap;
  }

  .mf-mobile-anomaly-metric strong {
    margin-top: 0;
    font: 700 12px/1 var(--mf-mobile-number);
    white-space: nowrap;
  }

  .mf-mobile-anomaly-duration {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    color: var(--mf-mobile-up);
    font-size: 10px;
    white-space: nowrap;
  }

  .down-event .mf-mobile-anomaly-duration {
    color: var(--mf-mobile-down);
  }

  .mf-mobile-anomaly-chevron svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--mf-mobile-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mf-mobile-anomaly-chevron {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .mf-mobile-anomaly-note {
    margin: 22px 0 8px;
    color: var(--mf-mobile-muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
  }

  /* M18 / M19 共享详情 */
  .mf-mobile-detail-header {
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .mf-mobile-detail-header h1 {
    margin: 0;
    text-align: center;
    font-size: 22px;
    line-height: 1.2;
  }

  .mf-mobile-detail-header > a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mf-mobile-primary);
    text-decoration: none;
    font-size: 14px;
  }

  .mf-mobile-detail-header > a:first-child {
    justify-content: flex-start;
    color: var(--mf-mobile-text);
  }

  .mf-mobile-detail-header > a:first-child svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: rotate(180deg);
  }

  .mf-mobile-origin-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    border-radius: 8px;
    padding: 0 10px;
    color: var(--mf-mobile-muted);
    background: rgba(33, 54, 76, 0.5);
    font-size: 12px;
  }

  .mf-mobile-origin-chip strong { color: var(--mf-mobile-primary); }

  .mf-mobile-detail-tabs {
    min-height: 52px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 10px;
  }

  .mf-mobile-detail-tabs button,
  .mf-mobile-detail-tabs a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--mf-mobile-muted);
    background: transparent;
    text-decoration: none;
    font-size: 15px;
  }

  .mf-mobile-detail-tabs .active {
    border: 1px solid var(--mf-mobile-primary);
    border-radius: 9px;
    color: var(--mf-mobile-primary);
    background: var(--mf-mobile-primary-soft);
  }

  /* M19 异动证据详情 */
  .mf-mobile-evidence-card { padding: 18px 14px; }

  .mf-mobile-evidence-title > span {
    color: #d1d8e2;
    font: 650 14px/1.2 var(--mf-mobile-number);
  }

  .mf-mobile-evidence-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .mf-mobile-evidence-title h2 {
    margin: 0;
    font-size: 27px;
  }

  .mf-mobile-evidence-title strong {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 7px;
    padding: 0 9px;
    font-size: 14px;
  }

  .mf-mobile-evidence-card > p {
    margin: 13px 0;
    color: #b9c5d4;
    font-size: 13px;
    line-height: 1.75;
  }

  .mf-mobile-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mf-mobile-evidence-metric {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--mf-mobile-border);
    border-radius: 8px;
    padding: 10px 12px;
  }

  .mf-mobile-evidence-metric > span,
  .mf-mobile-evidence-metric > small { color: var(--mf-mobile-muted); }
  .mf-mobile-evidence-metric > span { font-size: 12px; }
  .mf-mobile-evidence-metric > strong { margin-top: 5px; font: 750 22px/1.1 var(--mf-mobile-number); }
  .mf-mobile-evidence-metric > small { margin-top: 4px; font-size: 10px; }

  .mf-mobile-evidence-timeline { margin-top: 17px; }
  .mf-mobile-evidence-timeline h3 { margin: 0 0 13px; font-size: 15px; }
  .mf-mobile-evidence-timeline > div { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
  .mf-mobile-evidence-timeline > div::before { content: ""; position: absolute; top: 7px; left: 15%; right: 15%; height: 1px; background: var(--mf-mobile-border); }
  .mf-mobile-evidence-timeline span { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .mf-mobile-evidence-timeline i { z-index: 1; width: 14px; height: 14px; border: 2px solid #18354d; border-radius: 50%; background: var(--mf-mobile-primary); }
  .mf-mobile-evidence-timeline .active i { border-color: currentColor; background: var(--mf-mobile-bg); box-shadow: 0 0 0 2px rgba(255, 90, 103, 0.2); }
  .mf-mobile-evidence-timeline strong { margin-top: 7px; font: 650 13px/1 var(--mf-mobile-number); }
  .mf-mobile-evidence-timeline small { margin-top: 5px; color: var(--mf-mobile-muted); font-size: 10px; line-height: 1.4; }

  .mf-mobile-evidence-members { margin-top: 18px; }
  .mf-mobile-evidence-members h2 { margin: 0 0 10px; font-size: 18px; }
  .mf-mobile-evidence-member-head,
  .mf-mobile-evidence-member-list > a {
    display: grid;
    grid-template-columns: 22px minmax(76px, 1fr) 58px 50px 62px 16px;
    align-items: center;
    gap: 4px;
  }

  .mf-mobile-evidence-member-head {
    padding: 0 9px 8px 35px;
    color: var(--mf-mobile-muted);
    font-size: 9px;
  }

  .mf-mobile-evidence-member-head span:first-child { grid-column: 1 / span 2; }
  .mf-mobile-evidence-member-list { overflow: hidden; }
  .mf-mobile-evidence-member-list > a {
    min-height: 62px;
    border-bottom: 1px solid rgba(33, 54, 76, 0.72);
    padding: 8px 9px;
    color: inherit;
    text-decoration: none;
  }
  .mf-mobile-evidence-member-list > a:last-child { border-bottom: 0; }
  .mf-mobile-evidence-member-list > a > b { color: var(--mf-mobile-amber); font: 750 18px/1 var(--mf-mobile-number); }
  .mf-mobile-evidence-member-list > a > span strong,
  .mf-mobile-evidence-member-list > a > span small { display: block; }
  .mf-mobile-evidence-member-list > a > span strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .mf-mobile-evidence-member-list > a > span small { margin-top: 4px; color: var(--mf-mobile-muted); font: 500 9px/1 var(--mf-mobile-number); }
  .mf-mobile-evidence-member-list > a > strong,
  .mf-mobile-evidence-member-list > a > span:not(:first-of-type) { text-align: right; font: 650 11px/1 var(--mf-mobile-number); }
  .mf-mobile-evidence-member-list svg { width: 16px; height: 16px; fill: none; stroke: var(--mf-mobile-muted); stroke-width: 2; }

  .mf-mobile-evidence-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 5px;
  }
  .mf-mobile-evidence-actions a,
  .mf-mobile-return-action {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mf-mobile-primary);
    border-radius: 10px;
    color: var(--mf-mobile-primary);
    background: rgba(54, 215, 192, 0.04);
    text-decoration: none;
    font-size: 14px;
  }

  /* M18 行业成分详情 */
  .mf-mobile-constituent-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 16px;
  }
  .mf-mobile-constituent-title h2 { margin: 0; font-size: 28px; }
  .mf-mobile-constituent-title p { margin: 8px 0 0; color: var(--mf-mobile-muted); font-size: 12px; }
  .mf-mobile-constituent-title p i { display: inline-block; margin-left: 4px; }
  .mf-mobile-constituent-title > span { border-radius: 999px; padding: 7px 9px; color: var(--mf-mobile-muted); background: rgba(33, 54, 76, 0.5); font-size: 10px; white-space: nowrap; }

  .mf-mobile-constituent-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 15px;
    overflow: hidden;
  }
  .mf-mobile-constituent-summary > div { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(33, 54, 76, 0.72); padding: 8px 4px; }
  .mf-mobile-constituent-summary > div:nth-child(4) { border-right: 0; }
  .mf-mobile-constituent-summary > div span { color: var(--mf-mobile-muted); font-size: 10px; }
  .mf-mobile-constituent-summary > div strong { margin-top: 9px; font: 750 16px/1 var(--mf-mobile-number); white-space: nowrap; }
  .mf-mobile-constituent-summary footer { grid-column: 1 / -1; min-height: 48px; display: flex; align-items: center; justify-content: space-evenly; border-top: 1px solid var(--mf-mobile-border); color: var(--mf-mobile-muted); font-size: 12px; }

  .mf-mobile-constituent-tabs { margin-bottom: 12px; }
  .mf-mobile-constituent-tabs button { flex: 1; }
  .mf-mobile-constituent-window { margin: 0 0 10px; }
  .mf-mobile-board-minute-panel { margin-bottom: 12px; overflow: hidden; padding: 0; }
  .mf-mobile-board-minute-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--mf-mobile-border); padding: 0 12px; }
  .mf-mobile-board-minute-panel > header div { min-width: 0; }
  .mf-mobile-board-minute-panel > header strong,
  .mf-mobile-board-minute-panel > header span { display: block; }
  .mf-mobile-board-minute-panel > header strong { font-size: 14px; }
  .mf-mobile-board-minute-panel > header span { margin-top: 5px; color: var(--mf-mobile-muted); font-size: 9px; }
  .mf-mobile-board-minute-scroll { overflow: hidden; }
  .mf-mobile-board-minute-row { min-height: 112px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 0; border-bottom: 1px solid rgba(33, 54, 76, .56); padding: 8px; box-sizing: border-box; color: var(--mf-mobile-text); font: 650 10px/1.2 var(--mf-mobile-number); }
  .mf-mobile-board-minute-row:last-child { border-bottom: 0; }
  .mf-mobile-board-minute-row > span { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid rgba(33, 54, 76, .42); padding: 6px 3px; text-align: center; }
  .mf-mobile-board-minute-row > span:nth-child(4n) { border-right: 0; }
  .mf-mobile-board-minute-row > span:nth-child(n + 5) { border-top: 1px solid rgba(33, 54, 76, .42); }
  .mf-mobile-board-minute-row small { color: var(--mf-mobile-muted-2); font-size: 8px; font-weight: 600; white-space: nowrap; }
  .mf-mobile-board-minute-row strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mf-mobile-constituent-search { min-height: 48px; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; border: 1px solid var(--mf-mobile-border); border-radius: 9px; padding: 0 12px; background: var(--mf-mobile-card); }
  .mf-mobile-constituent-search svg { width: 21px; height: 21px; fill: none; stroke: var(--mf-mobile-muted); stroke-width: 2; }
  .mf-mobile-constituent-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--mf-mobile-text); background: transparent; font-size: 14px; }
  .mf-mobile-constituent-search input::placeholder { color: var(--mf-mobile-muted-2); }

  .mf-mobile-constituent-sort {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }
  .mf-mobile-constituent-sort button { min-height: 42px; border: 1px solid var(--mf-mobile-border); border-radius: 8px; padding: 0 3px; color: var(--mf-mobile-muted); background: transparent; font-size: 11px; }
  .mf-mobile-constituent-sort button.active { border-color: var(--mf-mobile-primary); color: var(--mf-mobile-primary); background: var(--mf-mobile-primary-soft); }

  .mf-mobile-constituent-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0 26px 6px 38px;
    color: var(--mf-mobile-muted-2);
    font-size: 8px;
    text-align: center;
  }
  .mf-mobile-constituent-head > span { display: none; }
  .mf-mobile-constituent-head > span:nth-child(4),
  .mf-mobile-constituent-head > span:nth-child(5),
  .mf-mobile-constituent-head > span:nth-child(6),
  .mf-mobile-constituent-head > span:nth-child(7) { display: block; }
  .mf-mobile-constituent-list { overflow: hidden; }
  .mf-mobile-constituent-list > a {
    min-height: 92px;
    display: grid;
    grid-template-columns: 30px repeat(4, minmax(0, 1fr)) 18px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 7px 5px;
    border-bottom: 1px solid rgba(33, 54, 76, 0.72);
    padding: 10px 8px;
    color: inherit;
    text-decoration: none;
  }
  .mf-mobile-constituent-list > a:last-child { border-bottom: 0; }
  .mf-mobile-constituent-list > a > b { grid-column: 1; grid-row: 1 / span 2; color: var(--mf-mobile-muted); font: 750 15px/1 var(--mf-mobile-number); }
  .mf-mobile-constituent-list > a > span:nth-of-type(1) { grid-column: 2 / span 3; grid-row: 1; min-width: 0; }
  .mf-mobile-constituent-list > a > span:nth-of-type(1) strong,
  .mf-mobile-constituent-list > a > span:nth-of-type(1) small { display: block; }
  .mf-mobile-constituent-list > a > span:nth-of-type(1) strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .mf-mobile-constituent-list > a > span:nth-of-type(1) small { margin-top: 4px; color: var(--mf-mobile-muted); font: 500 9px/1 var(--mf-mobile-number); }
  .mf-mobile-constituent-list > a > span:nth-of-type(2) { grid-column: 5; grid-row: 1; text-align: right; }
  .mf-mobile-constituent-list > a > span:nth-of-type(2) strong,
  .mf-mobile-constituent-list > a > span:nth-of-type(2) small { display: block; font: 700 11px/1.2 var(--mf-mobile-number); }
  .mf-mobile-constituent-list > a > strong:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .mf-mobile-constituent-list > a > span:nth-of-type(3) { grid-column: 3; grid-row: 2; }
  .mf-mobile-constituent-list > a > strong:nth-of-type(2) { grid-column: 4; grid-row: 2; }
  .mf-mobile-constituent-list > a > strong:nth-of-type(3) { grid-column: 5; grid-row: 2; }
  .mf-mobile-constituent-list > a > strong:nth-of-type(n+1),
  .mf-mobile-constituent-list > a > span:nth-of-type(3) { overflow: hidden; text-align: right; font: 650 10px/1 var(--mf-mobile-number); text-overflow: ellipsis; white-space: nowrap; }
  .mf-mobile-constituent-list > a > svg { grid-column: 6; grid-row: 1 / span 2; width: 18px; height: 18px; fill: none; stroke: var(--mf-mobile-muted); stroke-width: 2; }
  .mf-mobile-return-action { width: min(72%, 300px); margin: 18px auto 4px; }

  @media (max-width: 400px) {
    .mf-mobile-holding-row {
      min-height: 126px;
      grid-template-columns:
        minmax(0, .9fr)
        minmax(0, .9fr)
        minmax(0, .95fr)
        minmax(0, 1.35fr)
        minmax(0, 1.15fr);
      grid-template-rows: auto auto;
      gap: 10px 4px;
      padding: 12px 10px;
    }

    .mf-mobile-holding-row.featured {
      min-height: 164px;
      padding-top: 47px;
    }

    .mf-mobile-holding-row .mf-mobile-stock-name {
      grid-column: 1 / -1;
      grid-row: 1;
      display: flex;
      align-items: baseline;
      gap: 8px;
    }

    .mf-mobile-holding-row .mf-mobile-stock-name small { margin-top: 0; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric { grid-row: 2; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric:nth-of-type(1) { grid-column: 1; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric:nth-of-type(2) { grid-column: 2; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric:nth-of-type(3) { grid-column: 3; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric:nth-of-type(4) { grid-column: 4; }
    .mf-mobile-holding-row > .mf-mobile-holding-metric:nth-of-type(5) { grid-column: 5; }
    .mf-mobile-holding-metric { text-align: center; }

    .mf-mobile-holding-evidence {
      line-height: 1;
    }

    .mf-mobile-holdings-page .mf-mobile-holding-metric strong {
      font-size: 10px;
    }

    .mf-mobile-holding-metric.industry strong,
    .mf-mobile-holding-metric.status strong {
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
      overflow-wrap: anywhere;
    }
  }

  .up { color: var(--mf-mobile-up) !important; }
  .down { color: var(--mf-mobile-down) !important; }
  .ratio-up { color: var(--mf-mobile-up) !important; }
  .ratio-down { color: var(--mf-mobile-down) !important; }

  @media (max-width: 380px) {
    .mf-mobile-page {
      padding-left: 10px;
      padding-right: 10px;
    }

    .mf-mobile-boundary { margin-left: -10px; margin-right: -10px; }

    .mf-mobile-holding-row {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 9px 3px;
      padding-left: 9px;
      padding-right: 9px;
    }

    .mf-mobile-rank-head,
    .mf-mobile-rank-row {
      grid-template-columns: 22px minmax(56px, 1fr) 44px 44px 44px 36px 40px;
      gap: 3px;
    }

    .mf-mobile-rank-head.is-all-day,
    .mf-mobile-rank-row.is-all-day {
      grid-template-columns: 22px minmax(56px, 1fr) 44px 44px 40px 44px 38px;
    }

    .mf-mobile-anomaly-row { gap: 8px 4px; }

    .mf-mobile-anomaly-metric { padding: 0 5px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mf-mobile-loading-spinner {
      animation: none;
    }
  }
}

/* Strict 5/10-minute detail tables and clickable status cells must remain after
   every legacy mobile rule. The following M03-only block does not override them. */
@media (max-width: 767px) {
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured .mf-mobile-stock-name { right: 12px; }
  .mf-mobile-holding-status { cursor: pointer; }
  .mf-mobile-holding-status:hover,
  .mf-mobile-holding-status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .mf-mobile-holding-status svg { transform: none; }

  .mf-mobile-inline-evidence { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin: 2px 0 12px; border-bottom: 1px solid var(--mf-mobile-border); padding: 5px 1px 13px; }
  .mf-mobile-inline-evidence > div { min-width: 0; }
  .mf-mobile-inline-evidence > div > span { color: var(--mf-mobile-muted); font: 650 11px/1.2 var(--mf-mobile-number); }
  .mf-mobile-inline-evidence h2 { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 22px; }
  .mf-mobile-inline-evidence > strong { min-height: 29px; display: inline-flex; align-items: center; border: 1px solid currentColor; border-radius: 7px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .mf-mobile-inline-evidence > strong.up { color: var(--mf-mobile-up); background: rgba(255, 90, 103, .10); }
  .mf-mobile-inline-evidence > strong.down { color: var(--mf-mobile-down); background: rgba(48, 212, 138, .10); }
  .mf-mobile-inline-evidence > strong.pending { color: var(--mf-mobile-amber); background: rgba(255, 176, 32, .09); }
  .mf-mobile-inline-evidence > strong.normal { color: var(--mf-mobile-text); background: rgba(147, 163, 184, .05); }
  .mf-mobile-inline-evidence > p { grid-column: 1 / -1; margin: 0; color: #b9c5d4; font-size: 11px; line-height: 1.55; }
  .mf-mobile-evidence-window { margin: 0 0 9px; }

  .mf-mobile-window-caption { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--mf-mobile-border); padding: 0 2px; }
  .mf-mobile-window-caption strong { font-size: 13px; }
  .mf-mobile-window-caption span { color: var(--mf-mobile-muted); font-size: 9px; }
  .mf-mobile-board-minute-panel,
  .mf-mobile-continuous-table { width: 100%; margin-bottom: 12px; overflow: hidden; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .mf-mobile-continuous-table .window-record-head,
  .mf-mobile-continuous-table .window-record-row { display: grid; grid-template-columns: 32px repeat(4, minmax(42px, 1fr)) 34px 40px 40px; align-items: center; gap: 2px; padding: 0 2px; }
  .mf-mobile-continuous-table .window-record-head { min-height: 31px; color: var(--mf-mobile-muted); font-size: 7.5px; font-weight: 700; line-height: 1.15; }
  .mf-mobile-continuous-table .window-record-head > span,
  .mf-mobile-continuous-table .window-record-row > * { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .mf-mobile-continuous-table .window-record-head > span:not(:first-child),
  .mf-mobile-continuous-table .window-record-row > :not(:first-child) { text-align: right; }
  .mf-mobile-continuous-table .window-record-row { min-height: 31px; border-top: 1px solid rgba(33, 54, 76, .62); color: var(--mf-mobile-text); font: 700 8px/1 var(--mf-mobile-number); font-variant-numeric: tabular-nums; letter-spacing: -.22px; }
  .mf-mobile-continuous-table .window-record-row > span:first-child { color: var(--mf-mobile-muted); font-size: 8px; }
  .mf-mobile-continuous-table .window-record-row strong { font: inherit; }
  .mf-mobile-window-empty { min-height: 76px; display: grid; place-items: center; border-top: 1px solid rgba(33, 54, 76, .62); color: var(--mf-mobile-muted); font-size: 11px; }
  .mf-mobile-rank-number { overflow: hidden; text-overflow: clip; }
}

@media (max-width: 380px) {
  .mf-mobile-continuous-table .window-record-head,
  .mf-mobile-continuous-table .window-record-row { grid-template-columns: 29px repeat(4, minmax(37px, 1fr)) 31px 36px 36px; gap: 1px; }
  .mf-mobile-continuous-table .window-record-row { font-size: 7.5px; }
}

/* M03 is repeated after the legacy mobile block so its compact one-screen rhythm
   wins over the historical single-class declarations above. */
@media (max-width: 767px) {
  .mf-mobile-anomaly-header .mf-mobile-header-actions {
    top: 15px;
    right: 2px;
    gap: 1px;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline {
    min-height: 27px;
    height: 27px;
  }

  .mf-mobile-anomaly-page > .mf-mobile-tabline button {
    min-height: 27px;
    padding-bottom: 3px;
    font-size: 16px;
  }

  .mf-mobile-anomaly-status {
    min-height: 31px;
    gap: 8px;
    margin: 10px 0 9px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-anomaly-status strong { font-size: 12px; }

  .mf-mobile-anomaly-chart {
    height: 372px;
    margin-bottom: 13px;
    padding: 11px 10px 7px;
  }

  .mf-mobile-anomaly-chart h2 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .mf-mobile-anomaly-chart .anomaly-chart-legend {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .mf-mobile-anomaly-chart canvas {
    height: 300px !important;
    min-height: 300px;
  }

  .mf-mobile-anomaly-direction {
    gap: 9px;
    margin-bottom: 11px;
  }

  .mf-mobile-anomaly-direction button {
    min-width: 78px;
    min-height: 26px;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mf-mobile-anomaly-list { gap: 9px; }

  .mf-mobile-anomaly-row {
    min-height: 71px;
    grid-template-rows: 24px 29px;
    gap: 2px 5px;
    padding: 7px 8px;
  }

  .mf-mobile-anomaly-name small { display: none; }
  .mf-mobile-anomaly-name strong { font-size: 14px; }
  .mf-mobile-anomaly-time { font-size: 12px; }

  .mf-mobile-anomaly-metric {
    min-height: 29px;
    padding: 0 6px;
  }

  .mf-mobile-anomaly-metric span { font-size: 8px; }
  .mf-mobile-anomaly-metric strong { font-size: 11px; }

  .mf-mobile-anomaly-note {
    margin: 18px 0 6px;
    font-size: 10px;
    line-height: 1.2;
  }
}

/* Holdings rows share one fixed compact rhythm at every supported phone width.
   The status is a horizontal link; it must never turn four Chinese characters
   into a vertical stack and change only the affected card's height. */
@media (max-width: 767px) {
  .mf-mobile-holdings-page .mf-mobile-holding-row,
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured),
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured {
    min-height: 72px;
    height: 72px;
    max-height: 72px;
    grid-template-columns: minmax(68px, 1fr) 40px 43px 43px 54px 58px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
    padding: 8px 7px;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured .mf-mobile-holding-badge {
    display: none;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured .mf-mobile-stock-name,
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) .mf-mobile-stock-name {
    position: static;
    grid-column: 1;
    grid-row: auto;
    display: block;
    margin: 0;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric,
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    padding-left: 2px;
    border-left: 1px solid rgba(33, 54, 76, .62);
    text-align: center;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(1),
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric:nth-of-type(1) { grid-column: 2; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(2),
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric:nth-of-type(2) { grid-column: 3; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(3),
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric:nth-of-type(3) { grid-column: 4; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(4),
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric:nth-of-type(4) { grid-column: 5; }
  .mf-mobile-holdings-page .mf-mobile-holding-row.featured > .mf-mobile-holding-metric:nth-of-type(5),
  .mf-mobile-holdings-page .mf-mobile-holding-row:not(.featured) > .mf-mobile-holding-metric:nth-of-type(5) { grid-column: 6; }

  .mf-mobile-holdings-page .mf-mobile-stock-name strong.up {
    color: var(--mf-mobile-up);
  }

  .mf-mobile-holdings-page .mf-mobile-stock-name strong.down {
    color: var(--mf-mobile-down);
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status {
    overflow: visible;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status .mf-mobile-holding-status {
    width: 100%;
    min-width: 0;
    min-height: 25px;
    max-width: 100%;
    gap: 1px;
    margin-top: 4px;
    padding: 0 2px;
    white-space: nowrap;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status .mf-mobile-holding-status > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mf-mobile-holdings-page .mf-mobile-holding-metric.status .mf-mobile-holding-status svg {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
  }
}
