/* Mobile APP shell — loaded only for app; rules scoped under html.is-mobile where needed */

/* ===== Base shell ===== */
html.is-mobile {
  --safe-t: env(safe-area-inset-top, 0px);
  --header-main-h: 48px;
  --header-h: calc(var(--header-main-h) + var(--safe-t));
  --announcement-h: 0px;
  --m-tabbar-h: 56px;
}

@supports (padding-top: constant(safe-area-inset-top)) {
  html.is-mobile {
    --safe-t: constant(safe-area-inset-top);
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  html.is-mobile {
    --safe-t: env(safe-area-inset-top, 0px);
  }
}

html.is-mobile .th-full { display: none; }
html.is-mobile .th-short { display: inline; }

html.is-mobile .header {
  height: auto;
  min-height: var(--header-h);
  padding: var(--safe-t) 0 0;
  gap: 0;
  overflow: visible;
  box-sizing: border-box;
}

html.is-mobile .header-main {
  height: var(--header-main-h);
  padding: 0 10px 0 12px;
  gap: 8px;
}

html.is-mobile .header .tabs { display: none; }

html.is-mobile .header-controls {
  gap: 4px;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

html.is-mobile .header-controls::before {
  content: "量化复盘";
  margin-right: auto;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

html.is-mobile .btn-buy-member {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

html.is-mobile .theme-picker,
html.is-mobile #btnRedeem,
html.is-mobile #btnAdmin,
html.is-mobile #btnLogout,
html.is-mobile .user-bar-status,
html.is-mobile .date-picker-label,
html.is-mobile .theme-picker-label,
html.is-mobile .user-menu-toggle,
html.is-mobile .user-menu {
  display: none !important;
}

html.is-mobile .user-bar {
  display: none !important;
}

html.is-mobile .date-picker {
  flex: 0 0 auto;
  gap: 4px;
  min-width: 0;
}

html.is-mobile .date-picker-control {
  flex-wrap: nowrap;
}

html.is-mobile .date-picker-day-nav {
  width: 22px;
  height: 26px;
}

html.is-mobile .date-picker-trigger {
  min-width: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 4px 6px;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}

html.is-mobile #datePickerDisplay {
  white-space: nowrap;
}

html.is-mobile .panel {
  padding: 0 8px;
}

html.is-mobile .auth-card {
  max-width: 100%;
  border-radius: 16px;
  padding: 28px 20px;
}

html.is-mobile .kline-stock-list {
  display: none !important;
}

html.is-mobile .rank-dock,
html.is-mobile .rank-dock-split {
  display: none !important;
}

/* ===== Legacy toolbar hosts (filters live in .m-filter-sheet) ===== */
html.is-mobile .m-panel-tools {
  display: none !important;
}

html.is-mobile .m-tool-btn {
  flex: 1 1 calc(50% - 8px);
  height: 34px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
}

html.is-mobile .m-tool-btn.is-on {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(82, 65, 159, 0.18);
}

html.is-mobile .m-tool-btn.js-refresh-data-btn.is-busy,
html.is-mobile .m-tool-btn.js-refresh-data-btn:disabled {
  opacity: 0.5;
}

html.is-mobile #stockToolbarToggle,
html.is-mobile #intradayToolbarToggle { display: none; }

html.is-mobile #priceViewHost,
html.is-mobile #specialFactorHost,
html.is-mobile #colTogglesHost,
html.is-mobile #intradayPriceViewHost,
html.is-mobile #intradaySpecialFactorHost,
html.is-mobile #intradayColTogglesHost {
  display: none;
}

html.is-mobile .th-filter-trigger {
  display: none;
}

html.is-mobile #stockToolbarBody,
html.is-mobile #intradayToolbarBody {
  display: none;
}

html.is-mobile .m-sub-panel,
html.is-mobile .m-cols-panel {
  display: none;
}

/* ===== Toolbar / filters inside sheets ===== */
html.is-mobile .toolbar {
  padding: 0 0 8px;
  gap: 8px;
}

html.is-mobile #panel-environment .toolbar,
html.is-mobile #panel-direction .toolbar,
html.is-mobile #panel-mode .toolbar {
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 10px;
  margin: 0;
  gap: 8px;
}

html.is-mobile .dataset-chips {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

html.is-mobile .dataset-chips::-webkit-scrollbar {
  display: none;
}

html.is-mobile .dataset-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 8px 12px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  text-align: center;
}

html.is-mobile .dataset-chip.is-active {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(82, 65, 159, 0.28);
  font-weight: 600;
}

html.is-mobile #envSearch,
html.is-mobile #directionSearch,
html.is-mobile #modeSearch {
  width: 100%;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 8px 4px;
  box-shadow: none;
}

html.is-mobile .toolbar-row,
html.is-mobile .toolbar-row-content,
html.is-mobile .board-filters {
  flex-wrap: wrap;
  overflow: visible;
  width: 100%;
}

html.is-mobile .toolbar-row-content {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

html.is-mobile #stockSearch.input,
html.is-mobile #intradaySearch.input {
  width: 100%;
  min-width: 0;
  flex: none;
}

html.is-mobile .board-filters {
  gap: 8px 12px;
}

html.is-mobile .toolbar-menu-wrap {
  display: none;
}

html.is-mobile .board-toggle-divider {
  padding-left: 0;
  border-left: none;
}

html.is-mobile .price-view-filter {
  padding: 8px;
}

html.is-mobile .price-view-filter-line,
html.is-mobile .special-factor-filter .price-view-filter-line {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

html.is-mobile .price-view-filter-head-row {
  flex-wrap: wrap;
}

html.is-mobile .filter-current-hint {
  flex: 1 1 100%;
  order: 3;
  white-space: normal;
}

html.is-mobile .price-view-filter-groups {
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  gap: 8px;
}

html.is-mobile .special-factor-filter .price-view-filter-line .price-view-filter-groups,
html.is-mobile .special-factor-filter .price-view-filter-line.is-n-main-row .price-view-filter-groups,
html.is-mobile .special-factor-filter .price-view-filter-line.is-xpc-limit-row .price-view-filter-groups,
html.is-mobile .special-factor-filter .price-view-filter-line.is-break-other-row .price-view-filter-groups {
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: visible;
  align-items: stretch;
}

html.is-mobile .price-view-filter-group,
html.is-mobile .special-factor-filter .price-view-filter-group {
  flex-wrap: wrap;
  flex-shrink: 1;
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}

html.is-mobile .price-view-filter-label {
  width: 100%;
}

html.is-mobile .price-view-filter-tags,
html.is-mobile .special-factor-filter .price-view-filter-tags {
  flex-wrap: wrap;
  flex-shrink: 1;
  max-width: 100%;
  gap: 6px;
}

html.is-mobile .price-view-filter-sep {
  display: none;
}

html.is-mobile .price-view-reset {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 32px;
}

html.is-mobile .fill-filter-line,
html.is-mobile .fill-filter-line-single {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 8px;
}

html.is-mobile .fill-filter-line-single .price-view-filter-title {
  font-size: 14px;
}

html.is-mobile .fill-filter-line-single .filter-current-hint {
  flex: none;
  order: 0;
  width: 100%;
  max-width: none;
  white-space: normal;
}

html.is-mobile .fill-filter-row {
  width: 100%;
  min-height: 36px;
  font-size: 14px;
  gap: 8px;
}

html.is-mobile .fill-filter-row > span:first-child {
  width: 40px;
  flex-basis: 40px;
  font-size: 13px;
}

html.is-mobile .fill-tilde,
html.is-mobile .fill-unit {
  flex: 0 0 auto;
}

html.is-mobile .fill-filter-row input[type="text"],
html.is-mobile .fill-filter-dir input[type="text"],
html.is-mobile .fill-filter-guling select {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 36px;
  font-size: 16px;
  padding: 0 8px;
}

html.is-mobile .fill-filter-line-single .price-view-reset {
  margin-left: 0;
  align-self: flex-end;
}

html.is-mobile .col-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

html.is-mobile .col-toggles-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

html.is-mobile .col-toggles-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 2px;
}

html.is-mobile .col-toggle {
  font-size: 13px;
  min-height: 32px;
  padding: 2px 4px 2px 8px;
  touch-action: pan-y;
  flex-wrap: nowrap;
  gap: 4px;
}
html.is-mobile .col-toggle-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.is-mobile .col-toggle-grip {
  display: none;
}
html.is-mobile .col-nudge-group {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0;
}
.col-nudge,
.col-toggles-hint-nudge {
  display: none;
}
html.is-mobile .col-toggles-hint-drag {
  display: none;
}
html.is-mobile .col-toggles-hint-nudge {
  display: block;
}
html.is-mobile .col-nudge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  touch-action: manipulation;
}
html.is-mobile .col-nudge-edge {
  flex-basis: 26px;
  width: 26px;
  min-width: 26px;
  padding: 0;
}
html.is-mobile .col-nudge-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 12px;
  height: 14px;
}
html.is-mobile .col-nudge-mark::before,
html.is-mobile .col-nudge-mark::after {
  content: "";
  display: block;
}
html.is-mobile .col-nudge-top::before,
html.is-mobile .col-nudge-bottom::after {
  width: 10px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
html.is-mobile .col-nudge-top::after {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}
html.is-mobile .col-nudge-bottom::before {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
}
html.is-mobile .col-nudge:disabled {
  opacity: 0.28;
}
html.is-mobile .col-toggle.is-dragging,
html.is-mobile .col-toggle.is-drag-over {
  touch-action: none;
}

/* ===== Selection / intraday layout ===== */
/* 锁定视口：只让 table-wrap 纵向滚动，表头才能 sticky */
html.is-mobile body:has(#mainApp:not(.hidden)) {
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
}

html.is-mobile main {
  display: flex;
  flex-direction: column;
  height: calc(var(--vh, 100dvh) - var(--header-h) - var(--m-tabbar-h) - env(safe-area-inset-bottom, 0px));
  max-height: calc(var(--vh, 100dvh) - var(--header-h) - var(--m-tabbar-h) - env(safe-area-inset-bottom, 0px));
  padding: 6px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

html.is-mobile #mMarketChrome,
html.is-mobile #mRankChrome {
  flex-shrink: 0;
  padding-left: 8px;
  padding-right: 8px;
}

/* 非行情页：在 main 内滚动 */
html.is-mobile #panel-jingsuan.active,
html.is-mobile #panel-environment.active,
html.is-mobile #panel-direction.active,
html.is-mobile #panel-mode.active,
html.is-mobile #panel-greentrack.active,
html.is-mobile #panel-jwtrack.active,
html.is-mobile #panel-hpqbtrack.active,
html.is-mobile #panel-yxtrack.active,
html.is-mobile #panel-livechannel.active,
html.is-mobile #panel-feedchannel.active,
html.is-mobile #panel-monthlytrack.active,
html.is-mobile #panel-m-track.active,
html.is-mobile #panel-m-mine.active,
html.is-mobile #panel-watchlist.active {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
html.is-mobile #panel-watchlist .watchlist-title {
  display: none;
}
html.is-mobile #panel-watchlist {
  padding-left: 0;
  padding-right: 0;
}
html.is-mobile #panel-watchlist .watchlist-shell {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}
html.is-mobile #panel-watchlist .watchlist-toolbar {
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}
html.is-mobile #panel-watchlist .watchlist-main-row,
html.is-mobile #panel-watchlist .watchlist-list-col {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
html.is-mobile #panel-watchlist .watchlist-table-wrap {
  width: 100%;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--border);
  background: transparent;
}

html.is-mobile #panel-livechannel.active,
html.is-mobile #panel-feedchannel.active {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}

html.is-mobile .live-page {
  padding: 8px 10px 24px;
}

html.is-mobile .live-channel-panel,
html.is-mobile .feed-channel-panel {
  max-width: 100%;
  padding: 0 0 8px;
}

html.is-mobile .live-channel-card {
  padding: 12px;
}

html.is-mobile .live-channel-card-head,
html.is-mobile .live-channel-way-head {
  align-items: flex-start;
}

html.is-mobile .live-channel-way-head {
  flex-direction: column;
  gap: 4px;
}

html.is-mobile .live-channel-card-time {
  text-align: left;
}

html.is-mobile .live-channel-card-actions {
  flex-direction: column;
}

html.is-mobile .live-channel-card-actions .btn-primary,
html.is-mobile .live-channel-card-actions .btn-secondary {
  width: 100%;
  min-width: 0;
}

html.is-mobile .live-channel-password-row {
  align-items: stretch;
}

html.is-mobile .live-channel-copy-pw-btn {
  margin-left: 0;
  width: 100%;
}

html.is-mobile .live-channel-hist-row {
  flex-direction: column;
  gap: 6px;
}

html.is-mobile .live-channel-hist-row > span:last-child {
  justify-content: flex-start;
}

html.is-mobile #panel-selection.active,
html.is-mobile #panel-intraday.active {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 8px;
}

html.is-mobile #panel-selection .selection-layout {
  flex: 1 1 0%;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: none;
  gap: 6px;
  overflow: hidden;
}

html.is-mobile #panel-selection .sidebar.selection-sidebar {
  display: none;
}

html.is-mobile #panel-selection .content,
html.is-mobile #panel-intraday .content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

html.is-mobile #panel-selection .toolbar,
html.is-mobile #panel-intraday .toolbar,
html.is-mobile #blockFilterBar,
html.is-mobile #tagFilterBar,
html.is-mobile #intradayBlockFilterBar,
html.is-mobile #intradayTagFilterBar,
html.is-mobile #stockScrollStatus,
html.is-mobile #intradayScrollStatus {
  flex-shrink: 0;
}

/* 筛选已进 Sheet，空工具栏不要留圆角黑框 */
html.is-mobile #stockToolbar,
html.is-mobile #intradayToolbar {
  display: none !important;
}

html.is-mobile #panel-selection .table-wrap,
html.is-mobile #panel-intraday .table-wrap {
  flex: 1 1 0%;
  height: auto;
  max-height: none;
  min-height: 160px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

html.is-mobile #panel-intraday .pz-warning-table-wrap.table-wrap,
html.is-mobile #panel-intraday .pz-warning-table-wrap {
  flex: 0 0 auto;
  max-height: min(110px, 16vh);
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2, #1a1a1a);
}

html.is-mobile .pz-warning-panel {
  max-height: min(180px, 26vh);
  margin: 4px 8px;
  padding: 4px 8px 6px;
}

html.is-mobile .table-wrap {
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

/* ===== Compact tables + sticky name column ===== */
html.is-mobile #stockTable,
html.is-mobile #intradayTable {
  font-size: 13px;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

/* 避免 thead + th 双 sticky 冲突，只让 th 吸顶 */
html.is-mobile #stockTable thead,
html.is-mobile #intradayTable thead {
  position: static;
}

html.is-mobile #stockTable thead th,
html.is-mobile #intradayTable thead th {
  padding: 8px 8px;
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: var(--table-head-bg);
}

html.is-mobile #stockTable tbody td,
html.is-mobile #intradayTable tbody td {
  padding: 10px 8px;
  height: 56px;
}

/* 隐藏排序/独立代码列，名称列 left:0，避免原先 left:26px 留空 */
html.is-mobile #stockTable [data-col="idx"],
html.is-mobile #intradayTable [data-col="idx"],
html.is-mobile #stockTable [data-col="stock_code"],
html.is-mobile #intradayTable [data-col="stock_code"] {
  display: none !important;
}

/* 表体名称列：仅左右吸边 */
html.is-mobile #stockTable tbody .cell-name,
html.is-mobile #intradayTable tbody .cell-name {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  padding: 10px 6px;
  overflow: hidden;
  background-color: var(--table-row-bg);
  background-clip: padding-box;
  box-shadow:
    1px 0 0 0 var(--table-row-bg),
    8px 0 10px -4px rgba(0, 0, 0, 0.35);
}

html.is-mobile #stockTable tbody tr:nth-child(even) .cell-name,
html.is-mobile #intradayTable tbody tr:nth-child(even) .cell-name {
  background-color: var(--table-row-alt);
  box-shadow:
    1px 0 0 0 var(--table-row-alt),
    8px 0 10px -4px rgba(0, 0, 0, 0.35);
}

/* 表头名称列：左上角双 sticky，上拉不丢列名 */
html.is-mobile #stockTable thead th[data-col="stock_name"],
html.is-mobile #intradayTable thead th[data-col="stock_name"] {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 10;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  padding: 8px 6px;
  overflow: hidden;
  background-color: var(--table-head-bg);
  box-shadow:
    1px 0 0 0 var(--table-head-bg),
    8px 0 10px -4px rgba(0, 0, 0, 0.35);
}

html.is-mobile #stockTable .xc-stock-cell,
html.is-mobile #intradayTable .xc-stock-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
html.is-mobile #stockTable .xc-stock-cell .gl-chips,
html.is-mobile #intradayTable .xc-stock-cell .gl-chips {
  width: 100%;
  flex: 0 0 auto;
}

html.is-mobile #stockTable .xc-stock-name,
html.is-mobile #intradayTable .xc-stock-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-mobile #stockTable .xc-stock-name .score-wr,
html.is-mobile #intradayTable .xc-stock-name .score-wr {
  display: none !important;
}

html.is-mobile #stockTable .xc-stock-code,
html.is-mobile #intradayTable .xc-stock-code {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  font-size: 10px;
  color: var(--muted, #8a8784);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

html.is-mobile #stockTable .xc-stock-code-text,
html.is-mobile #intradayTable .xc-stock-code-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.is-mobile.show-score-wr #stockTable .xc-stock-code .score-wr,
html.is-mobile.show-score-wr #intradayTable .xc-stock-code .score-wr {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 0;
  padding: 0 2px;
  font-size: 9px;
  line-height: 12px;
  height: 12px;
  vertical-align: 0;
}

html.is-mobile #stockTable .cell-metric,
html.is-mobile #stockTable .cell-pct,
html.is-mobile #intradayTable .cell-metric,
html.is-mobile #intradayTable .cell-pct {
  min-width: 72px;
  font-size: 14px;
}

html.is-mobile #panel-selection .table-wrap,
html.is-mobile #panel-intraday .table-wrap {
  display: block;
  flex: 1 1 0%;
  min-height: 0;
}

html.is-mobile .m-stock-cards {
  display: none !important;
}

/* ===== Bottom tabbar (5 tabs) + safe area ===== */
html.is-mobile .m-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: calc(var(--m-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 2px env(safe-area-inset-bottom, 0px);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

html.is-mobile .m-tabbar-item {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.15;
  padding: 4px 0;
  position: relative;
}

html.is-mobile .m-tabbar-item .live-tab-update-badge {
  left: auto;
  right: 0;
  top: 1px;
  transform: none;
  font-size: 8px;
  font-weight: 600;
  padding: 0 3px;
  line-height: 1.35;
}

html.is-mobile .m-tabbar-item.active .live-tab-update-badge {
  background: #dc2626;
  color: #fff;
}

html.is-mobile .m-tabbar-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-mobile .m-tabbar-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

html.is-mobile .m-tabbar-item.active {
  color: var(--accent2);
}

html.is-mobile #authGate:not(.hidden) ~ .m-tabbar,
html.is-mobile #authGate:not(.hidden) ~ .m-sheet,
html.is-mobile #authGate:not(.hidden) ~ .m-filter-sheet {
  display: none !important;
}

/* ===== Legacy more sheet (kept for compatibility) ===== */
html.is-mobile .m-sheet {
  display: block;
}

html.is-mobile .m-sheet.hidden { display: none; }

html.is-mobile .m-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.45);
}

html.is-mobile .m-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 141;
  background: var(--bg2);
  border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

html.is-mobile .m-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 6px auto 12px;
}

html.is-mobile .m-sheet-title {
  font-size: 16px;
  margin-bottom: 12px;
}

html.is-mobile .m-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

html.is-mobile .m-sheet-item {
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 10px;
  padding: 14px 10px;
  font-size: 14px;
}

html.is-mobile .m-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

html.is-mobile .m-sheet-link {
  color: var(--accent2);
  background: none;
  border: none;
  font-size: 14px;
  text-decoration: none;
}

/* ===== Shared segment / chrome controls ===== */
html.is-mobile .m-seg {
  display: flex;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

html.is-mobile .m-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  min-height: 32px;
}

html.is-mobile .m-seg-btn.active {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

html.is-mobile .m-chrome-btn {
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  min-height: 34px;
  white-space: nowrap;
}

html.is-mobile .m-chrome-btn.m-chrome-clear {
  background: rgba(236, 128, 141, 0.16);
  border-color: rgba(236, 128, 141, 0.45);
  color: #f0a8b0;
}

html.is-mobile .m-chrome-btn.m-chrome-clear.hidden {
  display: none !important;
}

html.is-mobile .m-active-pool-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(82, 65, 159, 0.2);
  border: 1px solid rgba(82, 65, 159, 0.4);
}

html.is-mobile .m-active-pool-filter.hidden {
  display: none !important;
}

html.is-mobile .m-active-pool-filter .block-filter-label {
  font-size: 12px;
  color: var(--muted);
}

html.is-mobile .m-active-pool-filter .block-filter-chip {
  font-size: 13px;
}

html.is-mobile .m-active-pool-filter .block-filter-clear {
  margin-left: auto;
  min-height: 32px;
  padding: 4px 12px;
}

html.is-mobile .m-chrome-btn.is-on,
html.is-mobile .m-chrome-btn.active {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(82, 65, 159, 0.18);
}

/* ===== Market chrome: 竞价/盘中 + filter + TOP5 ===== */
html.is-mobile .m-market-chrome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 2px 8px;
}

html.is-mobile .m-market-chrome-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

html.is-mobile .m-market-chrome .m-seg {
  flex: 1 1 auto;
  min-width: 148px;
}

html.is-mobile .m-snapshot-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 100%;
  order: 10;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

html.is-mobile .m-snapshot-chrome.hidden {
  display: none !important;
}

html.is-mobile .m-snapshot-chrome-label {
  white-space: nowrap;
}

html.is-mobile .m-snapshot-chrome .snapshot-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 2px;
  min-height: 30px;
}

html.is-mobile .m-snapshot-chrome .snapshot-latest {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 4px;
  font-size: 11px;
  color: #ea580c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.is-mobile .m-view-toggle {
  display: none !important;
}

html.is-mobile .m-top5-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

html.is-mobile .m-top5-strip::-webkit-scrollbar {
  display: none;
}

html.is-mobile .m-top5-strip.hidden,
html.is-mobile.m-top5-off .m-top5-strip {
  display: none !important;
}

html.is-mobile .m-top5-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  width: max-content;
  min-width: 132px;
  max-width: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  text-align: left;
  line-height: 1.35;
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
}

html.is-mobile .m-top5-chip-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

html.is-mobile .m-top5-chip-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 14em;
}

html.is-mobile .m-top5-chip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

html.is-mobile .m-top5-chip-pct {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== Rank chrome: 环境/方向/模式 fullscreen ===== */
html.is-mobile .m-rank-chrome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 2px;
}

html.is-mobile #panel-environment,
html.is-mobile #panel-direction,
html.is-mobile #panel-mode {
  min-height: calc(var(--vh, 100dvh) - var(--header-h) - var(--m-tabbar-h) - env(safe-area-inset-bottom, 0px) - 16px);
  padding: 0 0 12px;
}

html.is-mobile .mode-view-bar {
  flex-wrap: nowrap;
  gap: 4px;
  padding: 2px 8px 0;
}
html.is-mobile #modeSessionSwitch .mode-view-btn {
  padding-left: 5px;
  padding-right: 5px;
}
html.is-mobile .mode-view-switch {
  flex: 0 1 auto;
  min-width: 0;
}
html.is-mobile .mode-view-btn,
html.is-mobile #modeMyBtn {
  min-height: 22px;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 16px;
}
html.is-mobile #panel-mode .toolbar {
  gap: 4px;
  padding: 2px 8px 4px;
}
html.is-mobile #panel-mode .dataset-chips,
html.is-mobile #panel-environment .dataset-chips,
html.is-mobile #panel-direction .dataset-chips {
  gap: 4px;
  padding: 0;
}
html.is-mobile #panel-mode .dataset-chip,
html.is-mobile #panel-environment .dataset-chip,
html.is-mobile #panel-direction .dataset-chip {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
}
html.is-mobile #panel-mode #modeSearch {
  padding: 4px 2px;
}

html.is-mobile.is-land #panel-mode .toolbar {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
html.is-mobile.is-land #panel-mode .dataset-chips {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
html.is-mobile.is-land #panel-mode #modeSearch {
  width: 108px;
  flex: 0 0 108px;
}
html.is-mobile.is-land #panel-mode.active {
  display: grid;
  grid-template-columns: auto auto minmax(0, max-content) auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  column-gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 2px 8px 0;
}
html.is-mobile.is-land #panel-mode .mode-view-bar,
html.is-mobile.is-land #panel-mode .toolbar {
  display: contents;
}
html.is-mobile.is-land #panel-mode #modeViewSwitch {
  grid-column: 1;
  grid-row: 1;
}
html.is-mobile.is-land #panel-mode #modeSessionSwitch {
  grid-column: 2;
  grid-row: 1;
}
html.is-mobile.is-land #panel-mode #modeDatasetChips {
  grid-column: 3;
  grid-row: 1;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}
html.is-mobile.is-land #panel-mode #modeDatasetChips .dataset-chip {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}
html.is-mobile.is-land #panel-mode #modeSearch {
  grid-column: 4;
  grid-row: 1;
  width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  justify-self: start;
  align-self: center;
  padding: 2px 6px;
}
html.is-mobile.is-land #panel-mode #modeTableWrap {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
}
html.is-mobile.is-land #panel-mode #modeTablesContainer,
html.is-mobile.is-land #panel-mode .dataset-block,
html.is-mobile.is-land #panel-mode .dataset-block-table,
html.is-mobile.is-land #panel-mode .dataset-block table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
html.is-mobile.is-land #panel-direction.active {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  column-gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 2px 8px 0;
}
html.is-mobile.is-land #panel-direction .toolbar {
  display: contents;
}
html.is-mobile.is-land #panel-direction #directionDatasetChips {
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}
html.is-mobile.is-land #panel-direction #directionDatasetChips .dataset-chip {
  flex: 0 0 auto;
  width: auto;
}
html.is-mobile.is-land #panel-direction #directionSearch {
  grid-column: 2;
  grid-row: 1;
  width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  justify-self: start;
  align-self: center;
  padding: 2px 6px;
}
html.is-mobile.is-land #panel-direction #directionTableWrap {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
}
html.is-mobile.is-land #panel-direction #directionTablesContainer,
html.is-mobile.is-land #panel-direction .dataset-block,
html.is-mobile.is-land #panel-direction .dataset-block-table,
html.is-mobile.is-land #panel-direction .dataset-block table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
html.is-mobile.is-land #panel-environment.active {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  column-gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 2px 8px 0;
}
html.is-mobile.is-land #panel-environment .toolbar {
  display: contents;
}
html.is-mobile.is-land #panel-environment #envDatasetChips {
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}
html.is-mobile.is-land #panel-environment #envDatasetChips .dataset-chip {
  flex: 0 0 auto;
  width: auto;
}
html.is-mobile.is-land #panel-environment #envSearch {
  grid-column: 2;
  grid-row: 1;
  width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  justify-self: start;
  align-self: center;
  padding: 2px 6px;
}
html.is-mobile.is-land #panel-environment #envTableWrap {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
}
html.is-mobile.is-land #panel-environment #envTablesContainer,
html.is-mobile.is-land #panel-environment .dataset-block,
html.is-mobile.is-land #panel-environment .dataset-block-table,
html.is-mobile.is-land #panel-environment .dataset-block table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
html.is-mobile .mode-fav-btn {
  min-height: 0;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 14px;
}

html.is-mobile #panel-environment .table-wrap,
html.is-mobile #panel-direction .table-wrap,
html.is-mobile #panel-mode .table-wrap,
html.is-mobile #panel-environment .dataset-tables,
html.is-mobile #panel-direction .dataset-tables,
html.is-mobile #panel-mode .dataset-tables,
html.is-mobile #envTableWrap,
html.is-mobile #directionTableWrap,
html.is-mobile #modeTableWrap {
  max-height: none;
  height: auto;
  min-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  cursor: default;
  border: none;
  border-radius: 0;
  background: transparent;
  /* 隐藏粗滚动条，右侧不挤一坨灰条 */
  scrollbar-width: none;
}

html.is-mobile #envTableWrap::-webkit-scrollbar,
html.is-mobile #directionTableWrap::-webkit-scrollbar,
html.is-mobile #modeTableWrap::-webkit-scrollbar,
html.is-mobile .dataset-block-table::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* 手机排名：一标签只显示一列，占满宽度 */
html.is-mobile #envTablesContainer,
html.is-mobile #directionTablesContainer,
html.is-mobile #modeTablesContainer {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  padding-bottom: 0;
}

html.is-mobile .dataset-block {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.is-mobile .dataset-block-label {
  display: none;
}

html.is-mobile .dataset-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: none;
}

html.is-mobile .dataset-block table {
  width: 100%;
  min-width: 0;
}

html.is-mobile .dataset-block th,
html.is-mobile .dataset-block td {
  padding-left: 8px;
  padding-right: 8px;
}

html.is-mobile .dataset-block th:last-child,
html.is-mobile .dataset-block td:last-child {
  padding-right: 14px;
}

/* ===== Mobile-only panels ===== */
html.is-mobile #panel-m-track.active,
html.is-mobile #panel-m-mine.active {
  display: block;
}

/* ===== Track hub ===== */
html.is-mobile .m-track-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 16px;
}

html.is-mobile .m-track-hub.hidden { display: none; }

html.is-mobile .m-track-hub-title {
  margin: 4px 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

html.is-mobile .m-track-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg3);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

html.is-mobile .m-track-entry::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  transform: rotate(45deg);
  opacity: 0.7;
}

html.is-mobile .m-track-entry-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ===== Mine panel ===== */
html.is-mobile .m-mine-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 4px 24px;
}

html.is-mobile .m-mine-panel.hidden { display: none; }

html.is-mobile .m-mine-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
}

html.is-mobile .m-mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

html.is-mobile .m-mine-row:hover {
  background: color-mix(in srgb, var(--bg3) 80%, transparent);
}

html.is-mobile .m-mine-row-static {
  cursor: default;
}

html.is-mobile .m-mine-row-static:hover {
  background: transparent;
}

html.is-mobile .m-mine-row:last-child {
  border-bottom: none;
}

html.is-mobile .m-mine-row-label {
  font-weight: 600;
}

html.is-mobile .m-mine-row-value,
html.is-mobile .m-mine-row-hint {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

html.is-mobile .m-mine-switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  border: none;
  background: var(--bg3);
  flex-shrink: 0;
  padding: 0;
}

html.is-mobile .m-mine-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.15s ease;
}

html.is-mobile .m-mine-switch.is-on {
  background: var(--accent);
}

html.is-mobile .m-mine-switch.is-on::after {
  transform: translateX(18px);
  background: #fff;
}

html.is-mobile .m-mine-danger {
  color: #f07178;
}

/* ===== Filter fullscreen sheet ===== */
html.is-mobile .m-filter-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 145;
}

html.is-mobile .m-filter-sheet:not(.hidden) {
  display: flex;
  flex-direction: column;
}

html.is-mobile .m-filter-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

html.is-mobile .m-filter-sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  padding: calc(10px + var(--safe-t)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html.is-mobile .m-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

html.is-mobile .m-filter-tabs {
  display: flex;
  flex: 1 0 100%;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile .m-filter-tab {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

html.is-mobile .m-filter-tab.is-on {
  border-color: var(--accent2);
  background: rgba(96, 165, 250, 0.16);
  color: var(--text);
  font-weight: 650;
}

html.is-mobile .m-filter-pane-off {
  display: none !important;
}

html.is-mobile .m-filter-sheet-body .toolbar-menu-btn,
html.is-mobile .m-filter-sheet-body .toolbar-row-toggle {
  display: none;
}

html.is-mobile .m-filter-sheet-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

html.is-mobile .m-filter-sheet-close {
  border: none;
  background: none;
  color: var(--accent2);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 4px;
  min-height: 36px;
}

html.is-mobile .m-filter-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

html.is-mobile .m-filter-sheet-body .price-view-filter,
html.is-mobile .m-filter-sheet-body .special-factor-filter,
html.is-mobile .m-filter-sheet-body .col-toggles,
html.is-mobile .m-filter-sheet-body .board-filters,
html.is-mobile .m-filter-sheet-body #stockToolbarBody,
html.is-mobile .m-filter-sheet-body #intradayToolbarBody,
html.is-mobile .m-filter-sheet-body .m-sub-panel,
html.is-mobile .m-filter-sheet-body .m-cols-panel {
  display: block;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}

html.is-mobile .m-filter-sheet-body .col-toggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
}

html.is-mobile .m-filter-sheet-body .m-sub-panel,
html.is-mobile .m-filter-sheet-body .m-cols-panel {
  display: block !important;
}

html.is-mobile .m-filter-sheet-body #stockToolbarBody,
html.is-mobile .m-filter-sheet-body #intradayToolbarBody {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

html.is-mobile .m-filter-sheet-body #stockToolbarBody.m-filter-pane-off,
html.is-mobile .m-filter-sheet-body #intradayToolbarBody.m-filter-pane-off {
  display: none !important;
}

html.is-mobile .m-filter-sheet-body #stockToolbarBody,
html.is-mobile .m-filter-sheet-body #intradayToolbarBody {
  padding: 0;
  border: none;
  background: transparent;
  gap: 12px;
}

html.is-mobile .m-filter-sheet-body .toolbar-row,
html.is-mobile .m-filter-sheet-body .toolbar-meta-row,
html.is-mobile .m-filter-sheet-body .toolbar-row-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

html.is-mobile .m-filter-sheet-body .toolbar-extra,
html.is-mobile .m-filter-sheet-body .toolbar-active-filters:not(:has(:not(.hidden))) {
  display: none;
}

html.is-mobile .m-filter-sheet-body .toolbar-search-input {
  width: 100%;
  max-width: none;
  flex: none;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 16px;
}

html.is-mobile .m-filter-sheet-body .board-filters {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 12px;
}

html.is-mobile .m-filter-sheet-body .board-filters-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

html.is-mobile .m-filter-sheet-body .board-toggle {
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 15px;
}

html.is-mobile .m-filter-sheet-body .board-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

html.is-mobile .m-filter-sheet-body .board-toggle:has(input:checked) {
  border-color: var(--accent2);
  background: rgba(96, 165, 250, 0.16);
  font-weight: 650;
}

html.is-mobile .m-filter-sheet-body .board-toggle-divider {
  grid-column: 1 / -1;
  padding-left: 8px;
  border-left: none;
}

html.is-mobile .m-filter-sheet-body .board-toggle-select {
  grid-column: 1 / -1;
  display: block;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
}

html.is-mobile .m-filter-sheet-body .board-toggle-select select.input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 16px;
}

html.is-mobile .m-filter-sheet-body #gulingFilters,
html.is-mobile .m-filter-sheet-body #intradayGulingFilters {
  display: none !important;
}

/* ===== Track / compare tables ===== */
html.is-mobile .green-track-table,
html.is-mobile .monthly-compare-table,
html.is-mobile .sim-day-table,
html.is-mobile #positionTable {
  min-width: 720px;
}

html.is-mobile .green-track-summary {
  overflow-x: auto;
  flex-wrap: nowrap;
}

html.is-mobile .green-track-stat {
  min-width: 150px;
  flex: 0 0 160px;
}

html.is-mobile .sim-track-months {
  overflow-x: visible;
}

html.is-mobile .sim-month-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

html.is-mobile .sim-month-table th,
html.is-mobile .sim-month-table td {
  padding: 8px 4px;
  white-space: nowrap;
}

html.is-mobile .sim-month-table th:nth-child(1),
html.is-mobile .sim-month-table td:nth-child(1) {
  width: 22%;
  text-align: left;
}

html.is-mobile .sim-month-table th:nth-child(2),
html.is-mobile .sim-month-table td:nth-child(2),
html.is-mobile .sim-month-table th:nth-child(3),
html.is-mobile .sim-month-table td:nth-child(3) {
  width: 16%;
}

html.is-mobile .sim-month-table .sim-month-wide {
  display: none;
}

html.is-mobile .sim-month-sub {
  display: table-row;
}

html.is-mobile .sim-month-sub td {
  text-align: left;
  white-space: normal;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 8px;
  border-top: none;
  line-height: 1.45;
}

html.is-mobile .sim-month-table .monthly-total-row td {
  border-top: 1px solid var(--border);
}

/* ===== K-line / date picker ===== */
html.is-mobile #klineModal.modal {
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

html.is-mobile .kline-panel .modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: calc(2px + var(--safe-t)) 40px 4px 8px;
}

html.is-mobile .kline-title-wrap {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 58%;
  overflow: visible;
  gap: 0;
}

html.is-mobile .kline-code-line {
  display: block;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.is-mobile .kline-panel .modal-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb !important;
  word-break: keep-all;
  max-width: 100%;
}

html.is-mobile .kline-subtitle {
  order: 1;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}

html.is-mobile .kline-subtitle:empty {
  display: none;
}

html.is-mobile .kline-gl-meta {
  order: 2;
  justify-self: stretch;
  flex: 1 1 40%;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  display: block;
  writing-mode: horizontal-tb !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  font-size: 11px;
  line-height: 1.2;
}

html.is-mobile .kline-gl-meta[hidden] {
  display: none !important;
}

html.is-mobile .kline-gl-meta .gl-subj-text {
  display: inline;
  white-space: nowrap;
  writing-mode: horizontal-tb !important;
}

html.is-mobile .kline-mobile-tool-row {
  order: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  width: calc(100% + 32px);
  margin-right: -32px;
  min-width: 0;
  overflow: hidden;
}

html.is-mobile .kline-mobile-tool-row[hidden] {
  display: none !important;
}

html.is-mobile .kline-panel.m-view-fs .kline-header-actions {
  display: contents;
}

html.is-mobile .kline-mobile-view-toggle {
  order: 0;
  display: inline-flex;
  width: auto;
  flex: 0 0 112px;
  border: 1px solid var(--border, #444);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 0;
}

html.is-mobile .kline-mobile-view-btn {
  flex: 1 1 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #999);
  font-size: 13px;
  line-height: 1;
  min-height: 28px;
  padding: 4px 6px;
  cursor: pointer;
}

html.is-mobile .kline-mobile-view-btn + .kline-mobile-view-btn {
  border-left: 1px solid var(--border, #444);
}

html.is-mobile .kline-mobile-view-btn.is-active {
  color: var(--text, #e8e6e3);
  background: rgba(236, 128, 141, 0.22);
}

html.is-mobile .kline-controls {
  order: 4;
  margin-left: 0;
  width: auto;
  flex: 1 1 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

html.is-mobile .kline-controls[hidden] {
  display: none !important;
}

html.is-mobile .kline-controls label {
  font-size: 11px;
  gap: 3px;
  white-space: nowrap;
}

html.is-mobile .kline-controls select {
  min-height: 28px;
  font-size: 12px;
  max-width: 76px;
  padding: 2px 4px;
}

html.is-mobile .kline-header-actions {
  display: contents;
}

html.is-mobile .kline-header-actions .modal-close {
  position: absolute;
  top: calc(2px + var(--safe-t));
  right: 4px;
  font-size: 24px;
  padding: 0 4px;
  min-width: 28px;
  min-height: 28px;
  margin-left: 0;
}

html.is-mobile .kline-icon-btn {
  display: none;
}

/* 手机端保留：自选 + 主力监控 / 主力成本 / 波段决策 + 分时高抛低吸 */
html.is-mobile #klineWatchlistBtn:not([hidden]),
html.is-mobile #klinePanganBtn,
html.is-mobile #klineCostBtn,
html.is-mobile #klineBdjcBtn,
html.is-mobile #klineMaBtn,
html.is-mobile #klineTdxBtn,
html.is-mobile .day-fs-popover .js-tdx-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 3px 7px;
  font-size: 11px;
}

html.is-mobile #klineWatchlistBtn:not([hidden]) {
  order: 1;
  margin-left: 4px;
  align-self: center;
}

html.is-mobile .kline-panel .modal-header > .kline-mobile-view-toggle {
  order: 1;
  flex: 0 0 108px;
  margin-left: auto;
  align-self: center;
}

html.is-mobile .kline-panel .modal-header > .kline-mobile-view-toggle .kline-mobile-view-btn {
  min-height: 24px;
  padding: 2px 2px;
  font-size: 12px;
}

html.is-mobile .kline-panel.m-view-k .kline-mobile-view-toggle,
html.is-mobile .kline-panel.m-view-both .kline-mobile-view-toggle {
  flex-basis: 108px;
}

html.is-mobile .kline-panel.m-view-k .kline-mobile-view-btn {
  font-size: 11px;
  min-height: 24px;
  padding: 2px 1px;
}

html.is-mobile .kline-mobile-tool-row #klinePanganBtn,
html.is-mobile .kline-mobile-tool-row #klineCostBtn,
html.is-mobile .kline-mobile-tool-row #klineBdjcBtn,
html.is-mobile .kline-mobile-tool-row #klineMaBtn,
html.is-mobile .kline-mobile-tool-row #klineTdxBtn {
  min-height: 24px;
  padding: 1px 3px;
  font-size: 10px;
  flex: 0 1 auto;
}

html.is-mobile .kline-mobile-tool-row label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  white-space: nowrap;
}

html.is-mobile .kline-mobile-tool-row select {
  min-height: 24px;
  width: auto;
  max-width: none;
  padding: 1px 2px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text, #e8e6e3);
}

html.is-mobile .kline-panel.m-view-fs .kline-mobile-tool-row label {
  display: none !important;
}

html.is-mobile .kline-chart {
  min-height: 260px;
  flex: 1 1 auto;
  touch-action: none;
}

html.is-mobile .kline-panel {
  max-height: var(--vh, 100dvh);
  height: var(--vh, 100dvh);
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
}

html.is-mobile .kline-body {
  min-height: 0;
  flex: 1 1 auto;
}

html.is-mobile .kline-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

html.is-mobile .kline-status {
  padding: 0 8px;
  min-height: 0;
  font-size: 11px;
  line-height: 1.3;
}

html.is-mobile .kline-status:empty {
  display: none;
}

html.is-mobile .kline-status-row {
  gap: 6px;
  min-height: 0;
  padding-right: 8px;
}

html.is-mobile .kline-ma-legend,
html.is-mobile .kline-range-hint {
  display: none;
}

/* 手机端分时 / 日K 可单看；双图时上下各占一半 */
html.is-mobile .kline-panel.m-view-fs .kline-chart,
html.is-mobile .kline-panel.m-view-fs #klineStatus,
html.is-mobile .kline-panel.m-view-fs .kline-status-row {
  display: none !important;
}

html.is-mobile .kline-panel.m-view-k .kline-intraday-section {
  display: none !important;
}

html.is-mobile .kline-panel.m-view-both .kline-main {
  overflow: hidden;
}

html.is-mobile .kline-panel.m-view-both .kline-status-row {
  display: none;
}

html.is-mobile .kline-panel.m-view-both .kline-chart {
  order: 2;
  flex: 1.22 1 0;
  min-height: 0;
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-section {
  order: 1;
  display: flex;
  flex: 0.88 1 0;
  min-height: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-head {
  min-height: 22px;
  height: 22px;
  padding: 0 8px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-title {
  display: inline;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #999);
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-head .honghu-check {
  display: none;
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-head #klineTdxBtn {
  margin-left: auto;
  min-height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-chart {
  min-height: 0;
  flex: 1 1 auto;
}

html.is-mobile .kline-panel.has-intraday .kline-chart {
  flex: 1 1 auto;
  min-height: 0;
}

html.is-mobile .kline-panel.m-view-both.has-intraday .kline-chart,
html.is-mobile .kline-panel.m-view-both .kline-intraday-section {
  height: 0;
  min-height: 0;
}

html.is-mobile .kline-panel.m-view-both.has-intraday .kline-chart {
  order: 2;
  flex: 1.22 1 0;
}

html.is-mobile .kline-panel.m-view-both .kline-intraday-section {
  order: 1;
  flex: 0.88 1 0;
}

html.is-mobile .kline-intraday-section {
  order: 0;
  flex: 1 1 auto;
  min-height: 0;
  border-top: none;
  border-bottom: none;
}

html.is-mobile .kline-panel.m-view-fs #klinePanganBtn,
html.is-mobile .kline-panel.m-view-fs #klineCostBtn,
html.is-mobile .kline-panel.m-view-fs #klineBdjcBtn,
html.is-mobile .kline-panel.m-view-fs #klineMaBtn {
  display: none;
}

html.is-mobile .kline-panel.m-view-k #klineTdxBtn {
  display: none;
}

html.is-mobile .kline-intraday-head {
  padding: 0 8px;
  gap: 6px;
  min-height: 28px;
}

html.is-mobile .kline-intraday-title {
  display: none;
}

html.is-mobile .kline-intraday-head .honghu-check {
  flex: 0 0 auto;
  font-size: 11px;
  white-space: nowrap;
}

html.is-mobile .kline-intraday-status {
  padding: 0 8px;
  font-size: 11px;
  line-height: 1.3;
  min-height: 0;
}

html.is-mobile .kline-intraday-status:empty {
  display: none;
}

html.is-mobile .kline-intraday-chart {
  min-height: 0;
  flex: 1 1 auto;
  touch-action: none;
}

html.is-mobile .kline-intraday-close {
  display: none; /* 用顶部「分时/日K」切换代替 */
}

html.is-mobile .date-picker-popover {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 12px;
  left: 12px;
  width: auto;
  z-index: 140;
}

/* 桌面端隐藏手机切换条 */
.kline-mobile-view-toggle[hidden] {
  display: none !important;
}

/* ===== 侧栏分时/K线：手机单图 + 粘性底部 ===== */
html.is-mobile .pz-chart-view-toggle [data-pz-view="both"] {
  display: none;
}

html.is-mobile .pz-chart-view-btn {
  min-height: 34px;
  padding: 8px 14px;
  font-size: 13px;
}

html.is-mobile .pz-chart-expand-btn {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 13px;
  margin-left: 4px;
}

html.is-mobile .intraday-jingsuan-sidebar,
html.is-mobile .intraday-chart-dock,
html.is-mobile .intraday-split-handle,
html.is-mobile #panel-selection .intraday-split-handle,
html.is-mobile #panel-intraday .intraday-split-handle,
html.is-mobile #panel-jingsuan .intraday-split-handle,
html.is-mobile #panel-watchlist .intraday-split-handle,
html.is-mobile #panel-watchlist .intraday-chart-dock {
  display: none !important;
}

/* 手机端不再内嵌侧栏分时/K线，点股票走全屏弹窗 */
html.is-mobile .intraday-chart-dock.is-mobile-chart {
  display: none !important;
}

/* ===== Jingsuan APP padding / sticky titles ===== */
html.is-mobile #panel-jingsuan.active {
  padding: 14px 14px 88px;
  height: auto;
  overflow: auto;
}

html.is-mobile .jingsuan-layout {
  flex-direction: column;
  height: auto;
}

html.is-mobile .jingsuan-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

html.is-mobile #panel-jingsuan .intraday-split-handle {
  display: none;
}

html.is-mobile #panel-jingsuan .intraday-chart-dock {
  display: none !important;
}

html.is-mobile .jingsuan-wrap {
  gap: 22px;
}

html.is-mobile .jingsuan-cards {
  grid-template-columns: 1fr !important;
}
html.is-mobile .jingsuan-card.is-multi-stock .jingsuan-card-body,
html.is-mobile .jingsuan-card.is-dense-stock .jingsuan-card-body {
  display: block;
}
html.is-mobile .jingsuan-card.is-multi-stock .jingsuan-stock-block + .jingsuan-stock-block {
  border-top: 1px dotted rgba(255, 255, 255, 0.14);
}

/* 开幅 / 涨幅 / 盈亏 强制同一行 */
html.is-mobile .jingsuan-metrics {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 6px;
  width: 100%;
  overflow: hidden;
}
html.is-mobile .jingsuan-metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
}
html.is-mobile .jingsuan-tag {
  flex-shrink: 0;
  min-width: 0;
  padding: 1px 3px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0;
}
html.is-mobile .jingsuan-val {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.is-mobile .jingsuan-stock-block {
  gap: 8px 10px;
  padding: 8px 2px;
}

html.is-mobile .jingsuan-section-title {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 0 12px;
  padding: 8px 0 6px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
}

html.is-mobile .theme-replay-panel {
  padding: 8px 10px calc(24px + var(--m-tabbar-h) + env(safe-area-inset-bottom, 0px));
}
html.is-mobile #panel-themereplay.active {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
html.is-mobile .tr-dash { gap: 12px; }
html.is-mobile .tr-group { padding: 8px 6px 6px; }
html.is-mobile .tr-group-grid { grid-template-columns: 1fr; gap: 8px; }
html.is-mobile .tr-hist-plot { height: 160px; gap: 2px; }
html.is-mobile .tr-hist-lab { font-size: 9px; transform: scale(0.82); }
html.is-mobile .tr-limit-chart { height: 248px; }
html.is-mobile .tr-mt table { min-width: 640px; font-size: 11px; }
html.is-mobile .tr-mt th { width: 64px; min-width: 64px; }
html.is-mobile .tr-wx-score b { font-size: 28px; }
html.is-mobile .tr-wx-phase { flex-wrap: wrap; }
html.is-mobile .tr-wv { grid-template-columns: 1fr; }
html.is-mobile .tr-wv-side + .tr-wv-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
html.is-mobile .tr-wv-head, html.is-mobile .tr-wv-row, html.is-mobile .tr-wv-theme {
  grid-template-columns: minmax(0, 1.4fr) 52px 64px 64px;
  font-size: 12px;
}
html.is-mobile .tr-span-4,
html.is-mobile .tr-span-5,
html.is-mobile .tr-span-6,
html.is-mobile .tr-span-7,
html.is-mobile .tr-span-8,
html.is-mobile .tr-span-12 { grid-column: span 1; }
html.is-mobile .tr-rowspan-2 { grid-row: auto; }
html.is-mobile .tr-pair,
html.is-mobile .tr-pair-75,
html.is-mobile .tr-pair-dt { grid-template-columns: 1fr; }
html.is-mobile .tr-pair > .tr-stack,
html.is-mobile .tr-pair > .tr-cell { height: auto; }
html.is-mobile .tr-stack-fill > .tr-cell:last-child { flex: none; }
html.is-mobile .tr-stack-fill .tr-hist-plot { height: 160px; flex: none; }
html.is-mobile .tr-cell-fill { align-self: start; height: auto; }
html.is-mobile .tr-pair-dt .tr-dt-chart { height: 240px; flex: none; }
html.is-mobile .tr-pair-dt .tr-dtlist-wrap { max-height: 420px; }
html.is-mobile .tr-pair-75 {
  --tr-ths-h: auto;
}
html.is-mobile .tr-pair-75 > .tr-stack-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
  max-height: none;
}
html.is-mobile .tr-pair-75 .tr-stack-scroll > .tr-cell {
  flex: none;
  min-height: 0;
  overflow: visible;
}
html.is-mobile .tr-pair-75 .tr-stack-scroll > .tr-cell .tr-cell-body {
  overflow: visible;
}
html.is-mobile .tr-pair-75 > .tr-cell-ths { height: auto; min-height: 0; overflow: visible; }
html.is-mobile .tr-cell-ths .tr-cell-body { overflow: visible; }
html.is-mobile .tr-cell-ths .tr-ths { position: static; height: auto; display: block; }
html.is-mobile .tr-cell-ths .tr-ths img { height: auto; pointer-events: auto; }
html.is-mobile .tr-cell-fill .tr-mt table { height: auto; }
html.is-mobile .tr-cell-fill .tr-mt tr { height: auto; }
html.is-mobile .tr-fund { grid-template-columns: 1fr; }
html.is-mobile .tr-turn { grid-template-columns: 1fr; }
html.is-mobile .tr-dpool-wrap { max-height: 70vh; }
html.is-mobile .tr-dpool-tools { width: 100%; }
html.is-mobile .tr-dt-kpis { grid-template-columns: 1fr; }
html.is-mobile .tr-dt-chart { height: 240px; }
html.is-mobile .tr-mkpis, html.is-mobile .tr-mboards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.is-mobile .tr-metrics-chart { height: 220px; }
html.is-mobile .tr-ths { overflow: auto; -webkit-overflow-scrolling: touch; }
html.is-mobile .tr-ths img { width: 100%; max-width: none; min-width: 100%; height: auto; }
html.is-mobile .tr-flow-chart {
  min-height: 320px;
  overflow: hidden;
}
html.is-mobile .tr-flow-bar { gap: 8px; }
html.is-mobile .tr-flow-toggles { flex-wrap: wrap; }
html.is-mobile .tr-flow-asof { white-space: nowrap; }
html.is-mobile .tr-hero { padding: 12px; gap: 12px; }
html.is-mobile .tr-desc { font-size: 14px; }
html.is-mobile .tr-kpis { grid-template-columns: repeat(3, 1fr); }
html.is-mobile .tr-kpi .v { font-size: 15px; }
html.is-mobile .tr-ladder-row { grid-template-columns: 44px 1fr; gap: 6px; }
html.is-mobile .tr-tl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}
html.is-mobile .tr-tl-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
html.is-mobile .tr-tl-table th,
html.is-mobile .tr-tl-table td {
  min-width: 132px;
  max-width: 168px;
  padding: 8px 8px;
  vertical-align: top;
}
html.is-mobile .tr-tl-lv,
html.is-mobile thead .tr-tl-lv,
html.is-mobile .tr-tl-table thead th:first-child,
html.is-mobile .tr-tl-table tbody td.tr-tl-lv {
  min-width: 40px;
  max-width: 40px;
  width: 40px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}
html.is-mobile .tr-tl-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 6px;
  align-items: center;
}
html.is-mobile .tr-tl-name { font-size: 12px; }
html.is-mobile .tr-tl-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
html.is-mobile .tr-tl-legend { flex-wrap: wrap; }
html.is-mobile .tr-height-name { font-size: 12px; }
html.is-mobile .tr-cards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
html.is-mobile .tr-dragon-grid { grid-template-columns: 1fr; }
html.is-mobile .tr-alert-list { grid-template-columns: 1fr; }
html.is-mobile .tr-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }

/* ===== 盯盘：手机单列分段，不再挤桌面三栏 ===== */
html.is-mobile #panel-kpdesk.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  padding: 0 8px 6px;
}

html.is-mobile .kpdesk-m-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

html.is-mobile #kpdeskMSeg {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

html.is-mobile #kpdeskMColsBtn {
  flex: 0 0 auto;
  min-width: 40px;
  padding: 0 10px;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] #kpdeskMColsBtn {
  display: none;
}

html.is-mobile .kpdesk-m-cols-sheet:not(.hidden) {
  align-items: flex-end;
}

html.is-mobile .kpdesk-m-cols-sheet .m-filter-sheet-panel {
  height: auto;
  max-height: 78%;
  border-radius: 16px 16px 0 0;
  padding-top: 12px;
}

html.is-mobile .kpdesk-m-cols-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

html.is-mobile #kpdeskMColToggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.is-mobile #kpdeskMColToggles .col-toggle {
  flex: 1 1 100%;
  min-height: 32px;
  padding: 2px 4px 2px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
}

html.is-mobile #kpdeskMSeg .m-seg-btn {
  padding: 7px 4px;
  font-size: 13px;
}

html.is-mobile .kpdesk-m-n {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

html.is-mobile #kpdeskMSeg .m-seg-btn.active .kpdesk-m-n {
  color: var(--accent2, #c4b5fd);
}

html.is-mobile .kpdesk-page {
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  gap: 8px;
}

html.is-mobile .kpdesk-col-handle,
html.is-mobile .kpdesk-row-handle,
html.is-mobile .kpdesk-cols-wrap,
html.is-mobile .kpdesk-right {
  display: none !important;
}

html.is-mobile .kpdesk-left,
html.is-mobile .kpdesk-mid {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="kanpan"] .kpdesk-mid,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="gwpool"] .kpdesk-mid,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="zwpool"] .kpdesk-mid,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="xdqbpool"] .kpdesk-mid,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left {
  display: flex;
}

html.is-mobile .kpdesk-mid > .kpdesk-card {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="kanpan"] .kpdesk-pool[data-kpdesk-pool="kanpan"],
html.is-mobile .kpdesk-page[data-kpdesk-m-view="gwpool"] .kpdesk-pool[data-kpdesk-pool="gwpool"],
html.is-mobile .kpdesk-page[data-kpdesk-m-view="zwpool"] .kpdesk-pool[data-kpdesk-pool="zwpool"],
html.is-mobile .kpdesk-page[data-kpdesk-m-view="xdqbpool"] .kpdesk-pool[data-kpdesk-pool="xdqbpool"] {
  display: flex;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 6px;
  overflow: auto;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-breadth,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-sentiment-card,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-sectors-card,
html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-themes-card {
  grid-column: 1 / -1;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-sentiment-card {
  grid-row: 2;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-sectors-card {
  grid-row: 3;
  min-height: 0;
}

html.is-mobile .kpdesk-page[data-kpdesk-m-view="market"] .kpdesk-left > .kpdesk-themes-card {
  grid-row: 4;
  max-height: none;
}

html.is-mobile .kpdesk-left > .kpdesk-breadth,
html.is-mobile .kpdesk-left > section.kpdesk-card:nth-of-type(1),
html.is-mobile .kpdesk-left > section.kpdesk-card:nth-of-type(2),
html.is-mobile .kpdesk-left > section.kpdesk-card:nth-of-type(3) {
  flex: unset;
}

html.is-mobile .kpdesk-left > section.kpdesk-card:not(.kpdesk-sectors-card) {
  min-height: 0;
}

html.is-mobile .kpdesk-left .kpdesk-card-head {
  padding: 4px 8px 2px;
}

html.is-mobile .kpdesk-left .kpdesk-chart {
  min-height: 0;
}

html.is-mobile #panel-kpdesk .kpdesk-breadth {
  padding: 8px 10px 7px;
}

html.is-mobile #panel-kpdesk .kpdesk-breadth .ij-indices {
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
}

html.is-mobile #panel-kpdesk .kpdesk-breadth .ij-index {
  font-size: 12px;
}

html.is-mobile .kpdesk-card-head {
  padding: 8px 10px 6px;
}

html.is-mobile .kpdesk-card-head h3 {
  font-size: 14px;
}

html.is-mobile .kpdesk-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile .kpdesk-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-size: 13px;
}

html.is-mobile .kpdesk-table th,
html.is-mobile .kpdesk-table td {
  padding: 10px 8px;
  white-space: nowrap;
}

html.is-mobile .kpdesk-table th.col-hidden,
html.is-mobile .kpdesk-table td.col-hidden {
  display: none !important;
}

html.is-mobile .kpdesk-table th[data-col="stock_name"],
html.is-mobile .kpdesk-table td[data-col="stock_name"] {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 72px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--table-head-bg, #3d3d3d);
}

html.is-mobile .kpdesk-table tbody td[data-col="stock_name"] {
  z-index: 1;
  background: var(--bg2, #1a1a1a);
}

html.is-mobile .kpdesk-table tbody tr:hover td[data-col="stock_name"],
html.is-mobile .kpdesk-table tbody tr.is-chart-active td[data-col="stock_name"] {
  background: var(--row-highlight, #2a2218);
}

html.is-mobile .kpdesk-table tbody tr {
  min-height: 44px;
}

html.is-mobile .kpdesk-sectors {
  padding: 4px 6px 8px;
  gap: 6px;
}

html.is-mobile .kpl-sec-card {
  padding: 8px 8px 9px;
}

html.is-mobile .kpl-sec-name {
  font-size: 14px;
}

html.is-mobile .kpl-sec-members-table th,
html.is-mobile .kpl-sec-members-table td {
  padding: 8px 6px;
  font-size: 13px;
}

html.is-mobile #panel-guling.active {
  display: flex;
  padding: 0;
}
html.is-mobile .guling-frame {
  min-height: calc(var(--vh, 100vh) - var(--header-h) - var(--m-tabbar-h) - env(safe-area-inset-bottom, 0px));
}
html.is-mobile #panel-btplaza.active {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
html.is-mobile .bt-m-frame {
  min-height: calc(var(--vh, 100vh) - var(--header-h) - var(--m-tabbar-h) - env(safe-area-inset-bottom, 0px));
}

/* 股池子页：横滑单行标签，避免挤成圆圈换行 */
html.is-mobile #panel-guchi .watchlist-toolbar-left {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
html.is-mobile #panel-guchi .guchi-subtabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: 2px 0 8px;
}
html.is-mobile #panel-guchi .guchi-subtabs::-webkit-scrollbar {
  display: none;
}
html.is-mobile #panel-guchi .guchi-subtab {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 8px;
  padding: 7px 12px;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.2;
}
html.is-mobile #panel-guchi .guchi-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas:
    "title refresh rest"
    "tabs tabs tabs";
  align-items: center;
  justify-content: start;
  gap: 6px 8px;
}
html.is-mobile #panel-guchi .watchlist-toolbar-left,
html.is-mobile #panel-guchi .watchlist-toolbar-right {
  display: contents;
}
html.is-mobile #panel-guchi .watchlist-title {
  grid-area: title;
}
html.is-mobile #panel-guchi #guchiRefreshBtn {
  grid-area: refresh;
  justify-self: start;
  min-height: 28px;
  padding: 2px 10px;
  font-size: 13px;
}
html.is-mobile #panel-guchi .guchi-subtabs {
  grid-area: tabs;
}
html.is-mobile #panel-guchi .watchlist-toolbar-right .toolbar-menu-wrap {
  grid-area: rest;
  justify-self: end;
}

/* 浏览器里横屏：系统转不了方向时，把页面转 90 度铺满 */
.m-land-btn {
  display: none;
}

html.is-mobile .m-land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border, #444);
  background: transparent;
  color: var(--text, #e8e6e3);
  font-size: 13px;
  line-height: 1;
}

html.is-mobile .m-land-btn.is-on {
  color: var(--text, #e8e6e3);
  background: rgba(236, 128, 141, 0.22);
}

html.is-mobile.is-land-css {
  --vh: 100vw;
  overflow: hidden;
  height: 100%;
}

html.is-mobile.is-land-css body,
html.is-mobile.is-land-css body:has(#mainApp),
html.is-mobile.is-land-css body:has(#mainApp:not(.hidden)) {
  position: fixed !important;
  top: 0 !important;
  left: 100vw !important;
  width: 100vh !important;
  height: 100vw !important;
  min-height: 0 !important;
  max-width: 100vh !important;
  max-height: 100vw !important;
  margin: 0 !important;
  transform: rotate(90deg) !important;
  transform-origin: top left !important;
  overflow: hidden !important;
}

/* 横屏高度短，顶栏收成一条 */
html.is-mobile.is-land {
  --header-main-h: 32px;
}
html.is-mobile.is-land-css {
  --safe-t: 0px !important;
}
html.is-mobile.is-land .header {
  padding-top: 0;
  min-height: var(--header-main-h);
}
html.is-mobile.is-land .header-main {
  height: 32px;
  padding: 0 8px;
}
html.is-mobile.is-land .header-controls {
  gap: 4px;
}
html.is-mobile.is-land .header-controls::before {
  font-size: 14px;
  letter-spacing: 0;
}
html.is-mobile.is-land .m-land-btn,
html.is-mobile.is-land .btn-buy-member,
html.is-mobile.is-land .date-picker-trigger,
html.is-mobile.is-land .date-picker-day-nav {
  min-height: 22px;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1;
}

/* 横屏：底栏按钮并进顶栏，底部不再留菜单高度 */
html.is-mobile.is-land {
  --m-tabbar-h: 0px;
}

html.is-mobile.is-land .header-main::before {
  content: "量化复盘";
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

html.is-mobile.is-land .header-controls {
  width: auto;
  flex: 0 0 auto;
}

html.is-mobile.is-land .header-controls::before {
  content: none;
}

html.is-mobile.is-land .m-tabbar {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  flex: 1 1 auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 2px;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

html.is-mobile.is-land .m-tabbar::-webkit-scrollbar {
  display: none;
}

html.is-mobile.is-land .m-tabbar-item {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 0;
  min-height: 22px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 6px;
}

html.is-mobile.is-land .m-tabbar-item svg {
  display: none;
}

html.is-mobile.is-land .m-tabbar-item.active {
  color: var(--text, #e8e6e3);
  background: rgba(236, 128, 141, 0.22);
}

html.is-mobile:has(#authGate:not(.hidden)) #mTabbar {
  display: none !important;
}

html.is-mobile #panel-blei.active {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
html.is-mobile .blei-page { padding: 8px 10px 24px; }
html.is-mobile .blei-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
html.is-mobile .blei-meta { margin-left: 0; }
html.is-mobile .blei-day-cols,
html.is-mobile .blei-groups,
html.is-mobile .blei-split { grid-template-columns: 1fr; }
html.is-mobile .blei-dayline { grid-template-columns: 1fr; gap: 4px; }
html.is-mobile .sev-recent-head { flex-direction: column; gap: 4px; }
html.is-mobile .sev-recent-pager { margin-left: 0; }
html.is-mobile .sev-page { gap: 8px; }
html.is-mobile .sev-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-bottom: 6px;
}
html.is-mobile .sev-toolbar .blei-subtab {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 2px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}
html.is-mobile .sev-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
html.is-mobile .sev-stat {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 3px;
  font-size: 12px;
}
html.is-mobile .sev-stat b { font-size: 13px; }
html.is-mobile .sev-panel,
html.is-mobile .sev-recent { padding: 8px; }
html.is-mobile .sev-hint { margin: 0 0 4px; color: #7e8794; font-size: 12px; line-height: 1.35; }
html.is-mobile .sev-table { table-layout: auto; min-width: 0; }
html.is-mobile .sev-table colgroup,
html.is-mobile .sev-table thead { display: none; }
html.is-mobile .sev-table,
html.is-mobile .sev-table tbody { display: block; width: 100%; }
html.is-mobile .sev-table tr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
html.is-mobile .sev-table tr:last-child { margin-bottom: 0; }
html.is-mobile .sev-table tr:hover,
html.is-mobile .sev-table tr:active {
  background: rgba(255, 255, 255, 0.08);
}
html.is-mobile .sev-table tr.is-live { box-shadow: inset 2px 0 0 #e23b3b; }
html.is-mobile .sev-table tr.is-live td:first-child { box-shadow: none; }
html.is-mobile .blei-table.sev-table td,
html.is-mobile .blei-table.sev-table tbody tr:hover td,
html.is-mobile .blei-table.sev-table tbody tr:active td {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
html.is-mobile .sev-table td::before {
  content: attr(data-k);
  color: #6e7886;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
html.is-mobile .sev-table td > .sev-val {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  color: #ece8e3;
  line-height: 1.25;
}
html.is-mobile .sev-table .sev-metric { font-size: 15px; line-height: 1.2; }
html.is-mobile .sev-table .sev-mix small,
html.is-mobile .sev-table .sev-state small,
html.is-mobile .sev-table .sev-reason small {
  display: block;
  margin-top: 1px;
  color: #8b939e;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}
html.is-mobile .sev-table td[data-k="股票"]::before { content: none; }
html.is-mobile .sev-table td[data-k="股票"] .blei-stock {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  width: auto;
  padding: 0;
}
html.is-mobile .sev-table td[data-k="股票"] .blei-stock b { font-size: 15px; color: #f4f1ec; }
html.is-mobile .sev-table td[data-k="股票"] .blei-stock small { margin: 0; color: #8d96a3; font-size: 12px; }
html.is-mobile .sev-table.is-sev td[data-k="股票"] { grid-column: 1 / 3; grid-row: 1; }
html.is-mobile .sev-table.is-sev td[data-k="状态"] {
  grid-column: 3;
  grid-row: 1;
  align-items: flex-end;
  justify-content: center;
}
html.is-mobile .sev-table.is-sev td[data-k="状态"]::before { content: none; }
html.is-mobile .sev-table.is-sev td[data-k="状态"] > .sev-val { text-align: right; }
html.is-mobile .sev-table.is-sev td[data-k="时点"] { grid-column: 1; grid-row: 2; }
html.is-mobile .sev-table.is-sev td[data-k="当前涨幅"] { grid-column: 2; grid-row: 2; }
html.is-mobile .sev-table.is-sev td[data-k="触发涨幅"] { grid-column: 3; grid-row: 2; }
html.is-mobile .sev-table.is-sev td[data-k="规则"] {
  grid-column: 1 / -1;
  grid-row: 3;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
html.is-mobile .sev-table.is-sev td[data-k="规则"]::before { flex: 0 0 auto; }
html.is-mobile .sev-table.is-sev td[data-k="规则"] > .sev-val { color: #c8c3bb; font-size: 12px; font-weight: 500; }
html.is-mobile .sev-table.is-hot tr { grid-template-columns: 1fr 1fr; }
html.is-mobile .sev-table.is-hot td[data-k="股票"] { grid-column: 1 / -1; }
html.is-mobile .sev-table.is-hot small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.is-mobile .sev-table.is-watch td[data-k="股票"] { grid-column: 1 / 3; grid-row: 1; }
html.is-mobile .sev-table.is-watch td[data-k="状态"] {
  grid-column: 3;
  grid-row: 1;
  align-items: flex-end;
  justify-content: center;
}
html.is-mobile .sev-table.is-watch td[data-k="状态"]::before { content: none; }
html.is-mobile .sev-table.is-watch td[data-k="类别"] { grid-column: 1; grid-row: 2; }
html.is-mobile .sev-table.is-watch td[data-k="开始"] { grid-column: 2; grid-row: 2; }
html.is-mobile .sev-table.is-watch td[data-k="结束"] { grid-column: 3; grid-row: 2; }
html.is-mobile .sev-table.is-recent td[data-k="股票"] { grid-column: 1 / 3; grid-row: 1; }
html.is-mobile .sev-table.is-recent td[data-k="日期"] {
  grid-column: 3;
  grid-row: 1;
  align-items: flex-end;
  justify-content: center;
}
html.is-mobile .sev-table.is-recent td[data-k="日期"]::before { content: none; }
html.is-mobile .sev-table.is-recent td[data-k="日期"] > .sev-val { text-align: right; color: #8d96a3; font-size: 12px; }
html.is-mobile .sev-table.is-recent td[data-k="次日涨幅"] { grid-column: 1; grid-row: 2; }
html.is-mobile .sev-table.is-recent td[data-k="当日涨幅"] { grid-column: 2; grid-row: 2; }
html.is-mobile .sev-table.is-recent td[data-k="触发涨幅"] { grid-column: 3; grid-row: 2; }
html.is-mobile .sev-table.is-recent td[data-k="状态"],
html.is-mobile .sev-table.is-recent td[data-k="板块"] {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
html.is-mobile .sev-table.is-recent td[data-k="状态"] { grid-row: 3; }
html.is-mobile .sev-table.is-recent td[data-k="板块"] { grid-row: 4; }
html.is-mobile .sev-table.is-recent td[data-k="状态"]::before,
html.is-mobile .sev-table.is-recent td[data-k="板块"]::before { flex: 0 0 auto; }
html.is-mobile .sev-table.is-recent td[data-k="状态"] > .sev-val,
html.is-mobile .sev-table.is-recent td[data-k="板块"] > .sev-val {
  color: #c8c3bb;
  font-size: 12px;
  font-weight: 500;
}
html.is-mobile .blei-table-wrap { overflow-x: visible; }
