/* ===== AIComing 主站手机端层(Hallmark + Apple Minimalism · Mobile & WeChat Overhaul)=====
   由 mobile.js 注入 <link>,所有引了 mobile.js 的页面(公开页 / console / supplier / provider / dist / admin)共用。
   规则:断点 ≤600 / ≤900;可点目标 ≥44px;输入 ≥16px(iOS/微信聚焦不放大);底部固定件留 safe-area。
   桌面(>900)不受影响。页内样式多为内联/高特异性,必要处用 !important。 */
:root {
  --m-tap: 44px;
  --m-safe-b: env(safe-area-inset-bottom, 0px);
  --m-safe-t: env(safe-area-inset-top, 0px);
  --m-accent: #0071e3;
  --m-accent-press: #0066cc;
  --m-glass: rgba(255, 255, 255, 0.88);
  --m-glass-border: rgba(0, 0, 0, 0.08);
}

/* ── 全局 WebView / 微信加固 & ≤900 基础约束 ──────────────────────────────── */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
  }
  a, button, summary, [role="button"], input, select, textarea, label {
    touch-action: manipulation;
  }
  img, svg, video, canvas, iframe { max-width: 100%; }
  pre, .code, code[class*="lang"] { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 顶部导航小件 */
  .nav .brand { min-height: 36px; display: inline-flex; align-items: center; }
  .lang-toggle, .aic-ann-bell, .nav-bell, .icon-btn, .console-mobile-menu-btn { width: 38px !important; height: 38px !important; }
  .btn-nav, .nav-cta .btn { min-height: 32px; }
  .nav-cta .link-btn { min-height: 34px; display: inline-flex; align-items: center; }
  /* 公告条关闭 × / 复制小按钮 */
  .aicu-banner-x, .ha-copy { min-width: 40px; min-height: 40px; }
  /* 登录弹窗(login-modal.js) */
  .lm-input, .lm-modal input, .lm-modal select { font-size: 16px !important; min-height: 46px; }
  .lm-close { width: 40px !important; height: 40px !important; }
  .lm-modal .btn, .lm-btn { min-height: var(--m-tap); }
  /* 表单控件兜底:iOS / 微信聚焦不缩放 */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]), select, textarea { font-size: 16px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .input, .select, input.input, select.select { min-height: 44px; }
  button, .btn, a.btn { min-height: 40px; }
  /* 悬浮件 & Sheet / Modal 下拉阻尼与滚动隔离 */
  .mobile-panel-mask, .console-mobile-mask, .lm-backdrop, .aic-sqr-mask, .wxn-mask, .draft-modal-mask, .submit-modal-mask {
    overscroll-behavior: contain;
  }
  .mobile-panel, .console-mobile-panel, .drawer, .dlg {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* 单一悬浮入口收敛:手机端由抽屉收口客服群入口;仅保留单一 .float-contact(或在无 .float-contact 时显示 .aic-sqr-fab) */
  .float-contact { bottom: calc(18px + var(--m-safe-b)) !important; right: 14px !important; }
  .aic-sqr-fab { bottom: calc(18px + var(--m-safe-b)) !important; right: 14px !important; height: 44px !important; }
  body:has(.float-contact) .aic-sqr-fab { display: none !important; }
  /* 软键盘弹起 / 任意弹窗、抽屉打开时自动退让底部栏与悬浮胶囊 */
  html.m-kbd-open .m-tabbar,
  html.m-kbd-open .sup-tabbar,
  html.m-kbd-open .float-contact,
  html.m-kbd-open .aic-sqr-fab,
  html.m-kbd-open .aic-campaign-badge,
  html.m-kbd-open .act-rebate-float { display: none !important; }
  body:has(.lm-backdrop.open) .float-contact,
  body:has(.lm-backdrop.open) .aic-sqr-fab,
  body:has(.aic-sqr-mask.show) .float-contact,
  body:has(.aic-sqr-mask.show) .aic-sqr-fab,
  body:has(.mobile-panel-mask.on) .float-contact,
  body:has(.mobile-panel-mask.on) .aic-sqr-fab,
  body:has(.console-mobile-mask.on) .float-contact,
  body:has(.console-mobile-mask.on) .aic-sqr-fab,
  body:has(.wxn-dialog[open]) .float-contact,
  body:has(.wxn-dialog[open]) .aic-sqr-fab,
  body:has(.mp-mask.open) .float-contact,
  body:has(.mp-mask.open) .aic-sqr-fab,
  body:has(.drw.on) .float-contact,
  body:has(.dlg.on) .float-contact,
  body:has(.modal.on) .float-contact,
  body:has(.modal.open) .float-contact,
  body:has(.modal-mask.on) .float-contact,
  body:has(.draft-modal-mask[style*="flex"]) .float-contact,
  body:has(.submit-modal-mask[style*="flex"]) .float-contact,
  body:has(.m-msheet-mask.open) .float-contact,
  body:has(.m-msheet-mask.open) .aic-sqr-fab,
  body:has(.mlx-modal) .float-contact,
  body:has(.mlx-modal) .aic-sqr-fab,
  body:has(.mlx-ck) .float-contact,
  body:has(.mlx-ck) .aic-sqr-fab,
  body:has(.aicu-overlay.show) .float-contact,
  body:has(.aicu-overlay.show) .aic-sqr-fab,
  body:has(.ww-poster-modal.on) .float-contact { display: none !important; }
  body.m-has-tabbar .aic-campaign-badge,
  body.m-has-tabbar [data-aic-legacy-badge="1"] { bottom: calc(74px + var(--m-safe-b)) !important; right: 12px !important; }
  /* Admin 页操作按钮在右下角,直接隐藏左下/右下悬浮干扰 */
  body[data-role] .float-contact,
  body[data-role] .aic-sqr-fab { display: none !important; }
  .aic-notify-root { bottom: auto !important; top: calc(12px + var(--m-safe-t)) !important; left: 12px !important; right: 12px !important; }
  /* 通用两栏/多栏 */
  .two-col, .grid-2, .grid-3, .grid-4, .cols-2, .cols-3 { grid-template-columns: 1fr !important; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 10px 10px; }
}

/* ── 文档页 docs.html / docs-video.html ─────────────────────────────────────── */
@media (max-width: 900px) {
  .docs-bar-inner { flex-wrap: wrap; gap: 10px 12px !important; padding: 10px 16px !important; }
  .docs-bar .crumbs { flex: 1 1 100%; font-size: 13px; }
  .docs-bar-inner > div[style*="margin-left:16px"] { margin-left: 0 !important; }
  .docs-bar-inner > div a { min-height: 36px; display: inline-flex !important; align-items: center; }
  .docs-bar .docs-search { margin-left: 0 !important; flex: 1 1 160px; }
  .docs-bar .docs-search input { width: 100% !important; min-height: 42px; font-size: 16px !important; }
  .docs-bar .docs-search kbd { display: none; }
  .docs-layout { padding: 16px 16px 80px !important; gap: 16px !important; }
  /* 目录默认收起,靠 mobile.js 加的「目录」按钮展开(手机上 50 条链接排在正文前面等于没有正文) */
  .rail { display: none !important; }
  .rail.m-open { display: block !important; position: static; max-height: none; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: var(--bg-card, #fff); }
  .rail a { display: block; min-height: 40px; padding: 8px 10px !important; font-size: 15px !important; }
  .m-rail-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule, #e5e5e4); background: var(--bg-card, #fff); font: inherit; font-size: 13.5px; cursor: pointer; }
  .m-rail-toggle[aria-expanded="true"] { background: var(--ink, #1d1d1f); color: #fff; border-color: var(--ink, #1d1d1f); }
  .toc { display: none !important; }
}

/* ── 法务页 legal.html ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-layout { flex-direction: column !important; gap: 18px !important; padding: 0 16px 60px !important; }
  .legal-sidebar { position: static !important; flex: none !important; width: 100%; padding-top: 16px !important; }
  .legal-sidebar .sidebar-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .legal-sidebar .sidebar-nav::-webkit-scrollbar { display: none; }
  .legal-sidebar .sidebar-nav a { flex: 0 0 auto; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; padding: 8px 14px !important; border-radius: 999px; border: 1px solid var(--rule, #e5e5e4); }
  .legal-sidebar .sidebar-nav a.active { background: var(--ink, #1d1d1f); color: #fff; border-color: var(--ink, #1d1d1f); }
  .legal-sidebar .sidebar-title { display: none; }
  .sidebar-back { min-height: 40px; display: inline-flex; align-items: center; }
  .legal-main { max-width: none !important; padding-top: 0 !important; }
  .legal-main h1 { font-size: clamp(24px, 6.5vw, 32px) !important; }
  .legal-main h2 { font-size: clamp(18px, 5vw, 22px) !important; }
}

/* ── 商家详情 merchant-detail.html ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-metrics { flex-wrap: wrap !important; gap: 10px 0 !important; }
  .hero-metric { flex: 1 1 33%; min-width: 0; padding: 0 10px !important; border-right: 1px solid var(--rule); }
  .hero-metric:nth-child(3n) { border-right: none !important; }
  .hero-metric .k { white-space: nowrap; }
  .hero-metric .v { white-space: nowrap; height: auto !important; }
  .hero-actions { flex-direction: row !important; flex-wrap: wrap; align-items: stretch !important; width: 100%; }
  .hero-actions .btn-row { flex-wrap: wrap; }
  .cta-icon { min-width: 44px; min-height: 44px; }
  .cta-primary, .cta-ghost { min-height: 44px; }
  .body { grid-template-columns: 1fr !important; gap: 16px !important; }
  .body > aside.side { grid-template-columns: 1fr !important; }
  .filter-side { position: static !important; gap: 12px !important; }
  .filter-side .fgroup, .filter-side > * { max-width: 100%; min-width: 0; }
  .filter-side .fgroup { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px 8px !important; }
  .filter-side .fgroup .fgroup-head { flex: 1 1 100%; }
  .filter-side .fgroup > *:not(.fgroup-head) { flex: 0 0 auto; min-height: 40px; white-space: nowrap; }
  /* 筛选组在手机上变横向 chip 条 */
  .filter-side .fgroup-list, .filter-side .flist, .filter-side ul { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .filter-side .fgroup-list::-webkit-scrollbar, .filter-side .flist::-webkit-scrollbar { display: none; }
  .filter-side .fgroup-list > *, .filter-side .flist > * { flex: 0 0 auto; white-space: nowrap; min-height: 40px; }
  .sort-select { min-height: 44px; font-size: 16px !important; }
}

/* ── 排行榜 rankings.html ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rank-cards { grid-template-columns: 1fr !important; }
  .section-head { flex-direction: column; align-items: stretch !important; gap: 10px; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters .input, .filters .select { flex: 1 1 100%; min-width: 0; width: 100% !important; min-height: 44px; font-size: 16px !important; }
  .view-toggle { width: 100%; display: flex; }
  .view-toggle .vt-btn { flex: 1; min-height: 40px; }
  .screen-link { min-height: 40px; }
  .arena-table { min-width: 560px; }
}

/* ── 分站介绍 station.html(自带简单导航)────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-right { flex-wrap: wrap; justify-content: flex-end; gap: 6px 8px !important; }
  .nav-link { white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
}

/* ── 控制台外壳(console / provider / dist / admin 共用 .app/.side/.main)───────── */
@media (max-width: 900px) {
  .app { height: auto !important; min-height: 100vh; overflow: visible !important; }
  .main { height: auto !important; min-height: 100vh; padding-bottom: calc(24px + var(--m-safe-b)); }
  .topbar { padding: 8px 12px !important; gap: 6px !important; min-height: 52px; }
  .topbar .crumbs { font-size: 15px; }
  .topbar-actions { gap: 6px !important; }
  .topbar .btn-primary, .topbar .btn { min-height: 40px; padding: 8px 12px !important; }
  .page-head { flex-direction: column; align-items: flex-start !important; gap: 10px !important; margin-bottom: 16px !important; }
  .page-head h1 { font-size: clamp(22px, 6vw, 26px) !important; }
  .page-head > div:first-child:not(.crumbs) { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; }
  .page-head .actions, .page-head > div:last-child:not(:first-child) { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-grid:has(> :nth-child(3):last-child) > .stat-card:first-child,
  .stat-grid:has(> :nth-child(3):last-child) > .card:first-child,
  .stat-grid:has(> :nth-child(5):last-child) > .stat-card:first-child,
  .stat-grid:has(> :nth-child(5):last-child) > .card:first-child { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr !important; }
  .filter-bar { flex-wrap: wrap; gap: 8px !important; }
  .filter-bar .input, .filter-bar select, .filter-bar .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filter-bar .right { margin-left: 0 !important; width: 100%; justify-content: flex-start; }
  .console-quick-tab { min-height: 36px; padding: 6px 14px !important; font-size: 13px !important; }
  .side-link { min-height: 44px; }
  /* 带底部 Tab 栏的控制台(console.html):正文给 Tab 栏留位;横滑页签条隐藏(Tab 栏已是常驻导航) */
  body.m-has-tabbar .main { padding-bottom: calc(76px + var(--m-safe-b)); }
  body.m-has-tabbar .console-quick-tabs { display: none !important; }
  body.m-has-tabbar .aic-sqr-fab { display: none !important; }
  body.m-has-tabbar .float-contact { bottom: calc(76px + var(--m-safe-b)) !important; }
  body.m-has-tabbar .aic-notify-root { bottom: auto !important; top: calc(12px + var(--m-safe-t)) !important; }
}
.m-tabbar { display: none; }
@media (max-width: 900px) {
  .m-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    padding-bottom: var(--m-safe-b);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .m-tabbar button {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 54px; border: 0; background: transparent;
    color: var(--ink-dim, #6e6e73);
    font: 500 11px/1.15 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.005em; cursor: pointer; padding: 4px 2px 2px;
    transition: color .15s ease, transform .12s ease;
  }
  .m-tabbar button:active { transform: scale(0.94); }
  .m-tabbar button .ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; line-height: 1; }
  .m-tabbar button .ico svg { width: 21px; height: 21px; display: block; }
  .m-tabbar button.on { color: var(--m-accent, #0071e3); font-weight: 600; }
  .m-tabbar button:focus-visible { outline: 2px solid var(--m-accent, #0071e3); outline-offset: -4px; border-radius: 10px; }
  [data-theme="dark"] .m-tabbar {
    background: rgba(28, 28, 30, 0.88);
    border-top-color: rgba(255, 255, 255, 0.10);
  }
  [data-theme="dark"] .m-tabbar button { color: #a1a1a6; }
  [data-theme="dark"] .m-tabbar button.on { color: #2997ff; }
}
@media (prefers-reduced-motion: reduce) {
  .m-tabbar button:active { transform: none; }
}

/* ── 控制台弹窗:≤600 变底部 sheet(console.html 的 draft/submit/route 弹窗)──── */
@media (max-width: 600px) {
  .draft-modal-mask, .submit-modal-mask { align-items: flex-end !important; padding: 0 !important; }
  .draft-modal, .submit-modal { width: 100% !important; max-width: none !important; max-height: 92dvh; overflow-y: auto; border-radius: 18px 18px 0 0 !important; padding-bottom: calc(16px + var(--m-safe-b)); }
  .draft-modal-close { width: 40px; height: 40px; }
  .route-modal-shell, .route-drawer-shell, .mdl-edit-drawer { width: 100vw !important; max-width: 100vw !important; left: 0 !important; right: 0 !important; }
  .submit-modal-actions { display: flex; gap: 10px; }
  .submit-modal-actions .btn, .submit-modal-actions button { flex: 1 1 40%; min-height: 46px; }
  /* 公开页 */
  .hero h1 { font-size: clamp(30px, 9vw, 44px) !important; }
  .mobile-panel-link { min-height: 48px; }
  .docs-bar-inner > div[style*="margin-left:16px"] a { font-size: 13.5px !important; padding: 8px 14px !important; }
}

/* ── 分站长后台 dist.html ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  body:has(#dist-topbar-balance) .topbar { flex-wrap: nowrap !important; }
  #dash-station-bar > div:first-child > div { min-width: 0; flex: 1; }
  #dash-station-bar a#dash-station-link { overflow-wrap: anywhere; word-break: break-word !important; }
  #dash-station-bar > div:first-child > div > div:last-child { flex-wrap: wrap; }
  .kpi-grid, .stats-grid, .cards-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── 超管后台 admin.html(可用级:不溢出、能点到、表格横滑;不重排宽表)─────────── */
@media (max-width: 900px) {
  body[data-role] .topbar { height: auto !important; min-height: 52px; flex-wrap: wrap; padding: 6px 12px !important; row-gap: 6px; }
  body[data-role] .topbar .crumbs { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
  body[data-role] .topbar .crumbs span:not(.cur) { display: none; }
  body[data-role] .topbar .crumbs .cur { font-size: 15px; font-weight: 600; color: var(--ink); }
  body[data-role] .topbar-actions { margin-left: auto; }
  body[data-role] .topbar-lang { min-width: 40px; }
  body[data-role] .page-head { align-items: flex-start !important; }
  body[data-role] .page-head h1, body[data-role] .page-head .h1 { font-size: 22px !important; }
  body[data-role] .card-head { flex-wrap: wrap; gap: 10px !important; align-items: flex-start !important; }
  body[data-role] .card-head > * { min-width: 0; max-width: 100%; }
  body[data-role] .card-head .pill, body[data-role] .card-head .badge, body[data-role] .card-head [class*="pill"] { white-space: nowrap; }
  body[data-role] .card-head-actions { flex-wrap: wrap; gap: 8px; width: 100%; }
  body[data-role] .card-head-actions .input, body[data-role] .card-head-actions select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  body[data-role] table th, body[data-role] table td { white-space: nowrap; }
  body[data-role] .drawer { width: 100vw !important; }
}

/* ── 内联小字兜底:11px / 11.5px 的说明文字在手机上抬到 12.5px(桌面不动)────────── */
@media (max-width: 600px) {
  [style*="font-size: 11px"], [style*="font-size:11px"], [style*="font-size: 11.5px"], [style*="font-size:11.5px"],
  [style*="font-size: 10.5px"], [style*="font-size:10.5px"], [style*="font-size: 10px"], [style*="font-size:10px"] { font-size: 12.5px !important; }
}
/* ── 宽表(>5 列)首列冻结:横滑时第一列(名称/时间)钉住 ───────────────────────── */
@media (min-width: 601px) and (max-width: 900px) {
  table.m-freeze th:first-child, table.m-freeze td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-card, var(--bg, #fff)); box-shadow: 1px 0 0 var(--rule, #e5e5e4); }
  table.m-freeze thead th:first-child { z-index: 2; }
}

/* 控制台指标卡两列:mobile.js 注入的 <style> 里 .stat-grid{1fr !important} 排在 link 后面,同特异性会赢,这里加一层选择器 */
@media (max-width: 900px) {
  .app .stat-grid, .main .stat-grid, .page .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .app .stat-grid:has(> :nth-child(3):last-child) > :first-child,
  .app .stat-grid:has(> :nth-child(5):last-child) > :first-child,
  .app .stat-grid.cols-5 > :first-child { grid-column: 1 / -1; }
  .app .stat-grid.cols-5 { grid-template-columns: 1fr 1fr !important; }
}
/* 主站控制台调试台核心:同店面 */
@media (max-width: 600px) {
  .aicpg-head { flex-wrap: wrap; }
  .aicpg-modes { width: 100%; display: flex !important; }
  .aicpg-mode { flex: 1 1 0; text-align: center; min-height: 40px !important; }
  .aicpg-params { grid-template-columns: 1fr 1fr !important; }
  .aicpg-field { min-width: 0 !important; }
  .aicpg-num { width: 100% !important; }
  .aicpg-body { padding: 14px !important; }
  .aicpg-out { max-height: 60vh !important; font-size: 14px !important; }
  .aicpg-copy { min-height: 38px !important; }
  [class*="aicpg"] select, [class*="aicpg"] input:not([type=checkbox]):not([type=radio]):not([type=range]), [class*="aicpg"] textarea { font-size: 16px !important; min-height: 44px; }
  .aicpg-submit { position: sticky; bottom: calc(66px + var(--m-safe-b)); z-index: 3; box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
}

/* 内联写了 font-size 的输入控件同样抬到 16px */
@media (max-width: 900px) {
  input[style*="font-size"]:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select[style*="font-size"], textarea[style*="font-size"] { font-size: 16px !important; min-height: 44px; }
}

/* ── 第四轮:体检脚本扫出的剩余可点/小字/输入项统一收口(主站公开页+控制台) ── */
@media (max-width: 900px) {
  .lm-close { width: 44px !important; height: 44px !important; min-width: 44px; }
  .mobile-panel-close, .console-mobile-close { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; }
  .lm-tabs button, .lm-modal .tabs button, .lm-modal button.active { min-height: 44px; }
  .lm-modal a[href], .lm-modal a.link { display: inline-block; padding: 12px 0; margin: -12px 0; }
  input[type=checkbox], input[type=radio] { width: 22px !important; height: 22px !important; }
  .filter-input, .filter-select, .textarea, .input, .select, .search input, .filter-side input, .topbar input, .filters input, .filters select { min-height: 44px; font-size: 16px !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]), select { min-height: 44px; }
  .key-switch, .freset, .icon-btn, .me-logout { min-width: 44px !important; min-height: 44px !important; }
  .btn-ghost, .btn-sm, .btn-mini, .link-btn { min-height: 40px; min-width: 40px; }
  .ha-doc, .pv-poster-cta, .apply-merchant-btn, .feat-cta, .cta, .screen-link, .nav-right a, .rail a, .doc-tabs a, .tabs a, .fgroup a, .card-head a, .section-head a, .crumbs a, .breadcrumb a, footer a, .footer a, .plan a, .price-card a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .ent-prod-more { display: flex; align-items: center; justify-content: center; min-height: 44px; }
}
@media (max-width: 600px) {
  table th { font-size: 12px !important; }
  .delta, .sub, .hint, .url, .pv-chip, .ent-prod-tag, .ent-prod-flag, .ent-sol-tag, .sb-section-tit, .gallery-kicker, .badge-pill, .pill, .vendor, .hero .label, .kpi .label, .stat .label, .stats .label { font-size: 12.5px !important; }
}

/* 主站顶部导航:≤900 一律收进汉堡(pricing/merchants 等页的 nav 不在 header 里,原先只对 .site-nav/header 生效,768 出现竖排挤压的链接) */
@media (max-width: 900px) {
  .nav .nav-links, .nav-links, .nav .links { display: none !important; }
}

/* 登录弹窗(login-modal.js)剩余小件:忘记密码链接、社交登录、tab、记住我勾选 */
@media (max-width: 900px) {
  .lm-card a[href], .lm-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .lm-social, .lm-tabs button, .lm-submit { min-height: 44px; }
  .lm-check input { width: 22px !important; height: 22px !important; }
}

/* 超管 topbar:保持首行紧凑、仅搜索条独占第二行 */
@media (max-width: 900px) {
  body[data-role] .topbar-actions { flex: 0 0 auto; margin-left: auto; flex-wrap: nowrap; gap: 6px !important; }
  body[data-role] .topbar .search { flex: 1 1 100%; order: 9; min-height: 36px; height: 36px; display: flex; align-items: center; }
  body[data-role] .topbar .search kbd { display: none; }
}

/* ── 决策 5:vanilla 页 ≤5 列的表在手机塌成卡片(mobile.js 打 m-stack + data-label) ── */
@media (max-width: 600px) {
  table.m-stack { display: block; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; }
  table.m-stack thead { display: none; }
  table.m-stack tbody, table.m-stack tr, table.m-stack td { display: block; width: 100%; box-sizing: border-box; }
  table.m-stack tbody tr { border: 1px solid var(--rule, #e5e5e4); border-radius: 12px; padding: 6px 14px; margin: 0 0 10px; background: var(--bg-card, var(--bg, #fff)); }
  table.m-stack tbody tr:hover { background: var(--bg-card, var(--bg, #fff)); }
  table.m-stack td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0 !important; border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--rule, #e5e5e4) 60%, transparent) !important; text-align: right !important; white-space: normal !important; min-width: 0; max-width: none !important; }
  table.m-stack td:last-child { border-bottom: 0 !important; }
  table.m-stack td[data-label]::before { content: attr(data-label); flex: 0 0 34%; color: var(--ink-dim, #86868b); font-size: 12.5px; font-weight: 500; text-align: left; }
  table.m-stack td[data-span] { display: block; text-align: left !important; }
  table.m-stack td:not([data-label]):not([data-span]) { justify-content: flex-end; }
  table.m-stack td > input:not([type=checkbox]):not([type=radio]), table.m-stack td > select { max-width: 60%; }
  table.m-stack td .btn, table.m-stack td button { flex: none; }
  table.m-stack tbody tr.empty td, table.m-stack td.empty { display: block; text-align: center !important; }
}

/* 宽表(m-freeze)单元格不换行:否则表格被压进 390 宽、表头一字一行,横滑失去意义 */
@media (min-width: 601px) and (max-width: 900px) {
  table.m-freeze th, table.m-freeze td { white-space: nowrap; }
  table.m-freeze { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* 旧版分站页 station.html:手机上只留品牌 + 语言 + 登录/注册,公告/API 文档在页脚已有 */
@media (max-width: 600px) {
  .nav .nav-right .nav-link { display: none; }
  .nav .brand { white-space: nowrap; }
}

/* 控制台密钥页「一键安装」命令:窄屏可断行,不再溢出卡片 */
@media (max-width: 600px) {
  #skill-install-cmd { min-width: 0 !important; flex: 1 1 100% !important; overflow-wrap: anywhere; word-break: break-all; }
}

/* ── 第五轮:全站复拍后剩余项 ── */
@media (max-width: 900px) {
  .console-quick-tab { min-height: 40px; padding: 8px 14px !important; font-size: 13px !important; }
  .ent-float-close, .reset, .sb-toggle, .view-toggle button, .gallery-toggle button, .mode-toggle button, button[title="网格视图"], button[title="列表视图"], button[title="海报"], button[title="列表"] { min-width: 40px !important; min-height: 40px !important; }
  .site-nav .brand, .nav .brand, a.brand { min-height: 40px; display: inline-flex; align-items: center; }
  .side-logout, .favorite-provider-link { min-height: 44px; }
  select:not([multiple]), textarea, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]) { font-size: 16px !important; }
}
@media (max-width: 600px) {
  .row-meta, .lbl, .model-tag, .when, .suffix, .safety-eyebrow, div.label, .console-mobile-section-title, .console-mobile-group-title, .console-mobile-label, .kpi label, .stat label, .filters label, label.small { font-size: 12.5px !important; }
}

/* dist/admin 顶栏:页内写死 height:54px,动作组换行后会压到正文标题上 → 一律自适应高度 */
@media (max-width: 900px) {
  .topbar { height: auto !important; flex-wrap: wrap; row-gap: 6px; }
}

/* 控制台充值支付方式三个并排:文字不折行 */
@media (max-width: 600px) {
  .topup-preset[id^="method-"] { white-space: nowrap; padding: 10px 6px !important; font-size: 13.5px; min-height: 44px; }
}

/* 第六轮:内联 4/5/6 列等分网格(供应商文档「快速入门」等)手机两列;无 thead 的表其表头行在卡片态隐藏 */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4,1fr)"], [style*="grid-template-columns: repeat(4, 1fr)"], [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"], [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="grid-template-columns:repeat(6,1fr)"], [style*="grid-template-columns: repeat(6, 1fr)"] { grid-template-columns: 1fr 1fr !important; }
  table.m-stack tr:has(> th) { display: none; } /* 只认本行直属 th:行里嵌套子表(子站「按模型」面板)不能连带隐藏 */
}

/* 筛选区 select 不许比屏幕宽(admin 调用日志「全部模型」下拉带很长的 option 文案) */
@media (max-width: 900px) {
  select, .filters > *, .filter-bar > * { max-width: 100%; box-sizing: border-box; }
}

/* 供应商侧 pp-grid 双栏/三栏面板(商家认证/评分)手机单列;admin 模型列表的内联列头行(flex 等宽 span)在手机隐藏 */
@media (max-width: 600px) {
  .pp-grid-2, .pp-grid-3 { grid-template-columns: 1fr !important; }
  body[data-role] div[style*="padding:10px 18px 6px"] { display: none !important; }
}


/* ── 2026-09-06 / Apple UI 统一重构:公开页手机导航精简胶囊 + 登录直出 + 无框汉堡 ── */
@media (max-width: 900px) {
  .nav .brand, .site-nav .brand { flex: 0 0 auto; white-space: nowrap; }
  .nav .nav-cta, .site-nav .nav-cta { gap: 6px !important; align-items: center; min-width: 0; flex-wrap: nowrap; }
  .mobile-menu-btn { order: 99; border-radius: 999px !important; width: 34px !important; height: 34px !important; min-height: 34px !important; padding: 0 !important; border: none !important; background: transparent !important; color: var(--ink, #1d1d1f) !important; transition: background 0.15s ease; }
  .mobile-menu-btn:active { background: rgba(0, 0, 0, 0.06) !important; }
  .lang-toggle { border-radius: 999px !important; width: 34px !important; height: 34px !important; min-height: 34px !important; font-size: 12px !important; border: 1px solid rgba(0, 0, 0, 0.08) !important; background: rgba(245, 245, 247, 0.9) !important; }
  .nav-bell, .aic-ann-bell { border-radius: 999px !important; width: 34px !important; height: 34px !important; min-height: 34px !important; }
  /* 保留登录直出(不用 display:!important, 确保登录后 JS 写 style.display='none' 能正常隐藏) */
  .nav-cta .link-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px !important; min-height: 34px !important; padding: 0 8px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 500 !important; color: var(--ink, #1d1d1f) !important; background: transparent !important; line-height: 1 !important; white-space: nowrap; flex: 0 0 auto; transition: background 0.15s ease; }
  .nav-cta .link-btn:active { background: rgba(0, 0, 0, 0.06) !important; }
  .btn-nav, .nav-cta .btn-nav { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px !important; min-height: 32px !important; height: 32px !important; padding: 0 13px !important; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: -0.01em; line-height: 1 !important; white-space: nowrap; flex: 0 0 auto; box-sizing: border-box; }
  .nav-account-trigger { height: 34px !important; min-height: 34px !important; }
  /* 调试台核心 select 与店面同一副箭头 */
  [class*="aicpg"] select { appearance: none; -webkit-appearance: none; padding-right: 34px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
}
@media (max-width: 600px) {
  .nav-cta .nav-bal-badge,
  .nav-cta a[id^="nav-balance-"],
  .nav-cta .aic-ann-bell,
  .nav-cta .nav-bell { display: none !important; }
  .nav-account-name { max-width: 84px !important; }
}
@media (max-width: 360px) {
  body:not(.app):not(.docs-page) .nav,
  header.site-nav,
  nav.nav { padding: 10px 12px !important; }
  .nav .brand, .site-nav .brand { font-size: 15px !important; gap: 6px !important; }
  .nav .nav-cta, .site-nav .nav-cta { gap: 4px !important; }
  .nav-cta .link-btn { padding: 0 5px !important; font-size: 12.5px !important; }
  .btn-nav, .nav-cta .btn-nav { padding: 0 10px !important; font-size: 12px !important; height: 30px !important; min-height: 30px !important; }
  .mobile-menu-btn { width: 32px !important; height: 32px !important; min-height: 32px !important; }
}

/* 文档页正文里的行内 code(长 URL / JSON 片段)不拆成单字母孤字;调试台 select 箭头图钉住 */
@media (max-width: 900px) {
  .docs code:not(pre code), .doc code:not(pre code), article code:not(pre code), .md code:not(pre code) { overflow-wrap: anywhere; word-break: normal; white-space: normal; }
  [class*="aicpg"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px !important; }
}

/* 商家详情筛选列:横排 chip 组不换行会把 aside 撑到 797px;分站介绍页 tier 卡片 1fr 最小值取内在宽度撑破 5~12px */
@media (max-width: 900px) {
  .merchant-detail .body, .body:has(> .filter-side) { grid-template-columns: minmax(0, 1fr) !important; }
  .filter-side { min-width: 0; max-width: 100%; }
  .filter-side .fgroup { flex-wrap: wrap; min-width: 0; }
  .filter-side .fgroup > * { min-width: 0; }
  .tiers, .tiers > * { max-width: 100%; }
  .tiers > div[style*="grid"], .tiers .grid, .tiers-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .tier { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}


/* ── 复审批 1(2026-09-06) + 首页上新横幅归位(非悬浮遮挡) ── */
.m-more-btn { display: block; width: 100%; margin: 8px 0 4px; min-height: 44px; border: 1px dashed var(--rule-2, var(--rule, #d2d2d7)); border-radius: 12px; background: var(--bg-soft, #f5f5f7); color: var(--ink-2, var(--ink, #1d1d1f)); font: inherit; font-size: 14px; cursor: pointer; }
@media (min-width: 601px) { .m-more-btn { display: none; } table.m-collapsed tbody tr { display: table-row; } }
.m-scrollx { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.m-scrollx.at-end { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 600px) {
  table.m-collapsed tbody tr:nth-child(n+13) { display: none; }
  table.m-stack.m-freeze th, table.m-stack.m-freeze td { white-space: normal !important; position: static !important; }
  table.m-stack td[data-label] { flex-wrap: wrap; word-break: break-word; }
  table.m-stack td[data-label]::before { min-width: 84px; }
  /* 窄屏顶栏精简:语言切换入口收进汉堡抽屉,只在抽屉未托管或桌面保留 */
  body:has(.mobile-panel-mask) .nav .lang-toggle,
  body:has(.console-mobile-mask) .topbar .lang-toggle,
  body:has(.console-mobile-mask) .topbar .topbar-lang { display: none !important; }
  body:not(.m-has-tabbar) { padding-bottom: max(68px, env(safe-area-inset-bottom)); }
  /* D1 首页 hero 瘦身:4 步条隐藏,调用地址框收紧;今日上新条归位到文档流顶部(不再 position:fixed 撞 FAB) */
  .hero-steps { display: none !important; }
  .hero-api { flex-wrap: wrap; }
  .hero-api .ha-doc { flex: 1 1 100%; justify-content: center; }
  .aicu-banner.show { position: static !important; left: auto; right: auto; bottom: auto; margin: 10px 16px 0 !important; padding: 0 !important; max-width: none; }
  .aicu-banner-inner { height: auto !important; min-height: 40px; border-radius: 12px; background: #f5f5f7 !important; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: none !important; }
  /* D2 分站介绍页:价格 CTA 保留,信任条 + 4 项清单下移(隐藏首屏) */
  .sub-hero .hero-cta-hint, .sub-hero .hero-bullets { display: none !important; }
  /* D3 企业页:hero 只留一个主 CTA */
  .ent-hero .btn-outline-light, [class*="hero"] .btn-outline-light { display: none !important; }
  /* F1 首页编号徽章收敛 */
  .safety-pillar-num { display: none !important; }
  .safety-pillar { grid-template-columns: 1fr !important; gap: 0 !important; }
  /* F3 模型页:热门模型轮播两侧渐隐、卡片内 logo 不出卡 */
  .gallery { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
  .gallery-track > * { overflow: hidden; }
  /* F8 排行榜:hero 仪表盘装饰图在手机不可读,收掉 */
  section.screen { display: none !important; }
  /* F12 视频文档鉴权状态条可换行 */
  .meta-row { flex-wrap: wrap; row-gap: 6px; }
  .meta-row .mono { overflow-wrap: anywhere; }
  .meta-row .dot { display: none; }
  /* I3 config-export 行尾按钮不被截 */
  #cfg-file-copy, #cfg-file-download { font-size: 12.5px !important; padding: 6px 10px !important; white-space: nowrap; min-height: 32px; }
  /* I5 上游端点 URL 在卡片里断行 */
  table.m-stack td { overflow-wrap: anywhere; }
  /* I8 收款表单双列改单列 */
  #payout-form-body [style*="grid-template-columns"], .pp-form-grid, .form-grid-2 { grid-template-columns: 1fr !important; }
  /* L10 admin 工具条按钮不贴边 */
  body[data-role] .card-head .btn, body[data-role] .toolbar .btn { margin-right: 0; }
}

/* ── 复审批 2:上架向导步骤条换行、KPI 卡迷你折线在两列下不再压标签 ── */
@media (max-width: 600px) {
  .pub2-stepper { flex-wrap: wrap; gap: 6px 10px; }
  .pub2-stepper .line { display: none; }
  .stat .spark { display: none; }
}

/* ── 复审批 2b:商家市场 Top1 金卡手机上与 Top2/3 同一副样式(只留金色徽章);企业页编号收敛;平台动态弹窗可点尺寸 ── */
@media (max-width: 600px) {
  .feat-card.top1 { background: var(--bg, #fff) !important; color: var(--ink, #1d1d1f) !important; border-color: rgba(255, 193, 7, .55) !important; }
  .feat-card.top1::before { display: none !important; }
  .feat-card.top1 .feat-name, .feat-card.top1 .feat-meta-item, .feat-card.top1 .feat-meta-item strong, .feat-card.top1 .feat-score, .feat-card.top1 .feat-tagline, .feat-card.top1 .feat-logo { color: var(--ink, #1d1d1f) !important; }
  .feat-card.top1 .feat-score .total, .feat-card.top1 .feat-tagline, .feat-card.top1 .feat-meta-item { color: var(--ink-dim, #6e6e73) !important; }
  .feat-card.top1 .feat-tag { background: var(--bg-soft, #f5f5f7) !important; color: var(--ink-2, #6e6e73) !important; border-color: var(--rule, #e5e5e4) !important; }
  .feat-card.top1 .feat-cta { background: var(--ink, #1d1d1f) !important; color: #fff !important; box-shadow: none !important; }
  .ent-prob-num { display: none !important; }
  .aicu-name { display: inline-flex; align-items: center; min-height: 40px; }
  .aicu-close { width: 44px !important; height: 44px !important; }
}

/* ── 复审批 2c:卡片态字段行更紧凑(结算流水一屏能看更多);上架向导字段标签换行不再逐字断开 ── */
@media (max-width: 600px) {
  table.m-stack td { padding: 7px 0 !important; }
  table.m-stack tbody tr { padding: 4px 12px; margin-bottom: 8px; }
  .pub2-sec .field > label, .pub2-row .field > label { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; white-space: normal; }
  .pub2-sec .field > label > span:first-child { white-space: nowrap; }
}

/* 卡片态表头行一律隐藏(部分页面自带 thead 显示规则特异性更高,会把表头当成一张只有标签的卡) */
@media (max-width: 600px) {
  table.m-stack thead, table.m-stack thead tr, table.m-stack thead th { display: none !important; }
}


/* ── 供应商 / 超管手机可用性(2026-09-06 用户反馈「还是不方便」)── */
@media (max-width: 600px) {
  /* 卡片态的值:原表格里带 overflow:hidden/nowrap 的内层 div 在 flex 里会被压成 0 宽、整张卡只剩字段名 */
  table.m-stack td[data-label] > * { flex: 1 1 auto; min-width: 0; max-width: 100%; text-align: right; }
  table.m-stack td[data-label] > input[type=checkbox], table.m-stack td[data-label] > input[type=radio] { flex: none; }
  table.m-stack td [style*="white-space:nowrap"], table.m-stack td [style*="white-space: nowrap"] { white-space: normal !important; }
  table.m-stack td [style*="text-overflow"], table.m-stack td [style*="overflow:hidden"], table.m-stack td [style*="overflow: hidden"] { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
  table.m-stack td [style*="max-width"] { max-width: none !important; }
  /* 无表头的表:每格一行,左对齐 */
  table.m-stack.m-nolabel td { display: block; text-align: left !important; padding: 5px 0 !important; }
  table.m-stack.m-nolabel td:has(> input[type=checkbox]) { float: right; padding: 0 !important; }
  /* admin 模型列表的内联列头行(flex 等宽 span)手机隐藏(样式串是 padding:6px 18px 6px) */
  body[data-role] div[style*="padding:6px 18px 6px"], body[data-role] div[style*="padding:10px 18px 6px"] { display: none !important; }
  /* 卡片里的操作:文字链改成看得出能点的小按钮 */
  table.m-stack td[data-label="操作"] a, table.m-stack td[data-label="操作"] button:not(.btn), table.m-stack td[data-label="Actions"] a, table.m-stack td[data-label="Actions"] button:not(.btn),
  table.m-stack td:last-child > a:not(.btn):not(.pill), table.m-stack td:last-child > button:not(.btn):not(.pill), table.m-stack td:last-child > span > a:not(.btn), table.m-stack td:last-child > div > a:not(.btn), table.m-stack td:last-child > div > button:not(.btn) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; margin: 2px 0 2px 6px; border: 1px solid var(--rule-2, var(--rule, #d2d2d7)); border-radius: 9px; background: var(--bg, #fff); color: var(--ink, #1d1d1f); font-size: 13px; text-decoration: none; white-space: nowrap;
  }
  table.m-stack td[data-label="操作"] { flex-wrap: wrap; justify-content: flex-end; }
  table.m-stack td[data-label="操作"]::before { flex: 1 1 100%; }
  /* 顶部 chrome 压缩:两行操作条 + 页内 H1 重复,少占一点首屏 */
  .topbar { padding: 4px 12px !important; row-gap: 4px !important; min-height: 0 !important; }
  .topbar .crumbs { font-size: 14px; }
  .topbar-actions { row-gap: 6px !important; }
  .console-quick-tabs { padding: 4px 0 6px; }
  .page > h1:first-child, .main > .page > h1, .page-head h1 { font-size: 22px !important; margin-top: 8px !important; }
}

/* 卡片态的表不许再有 min-width(admin .data-table 写了 min-width:1000px,卡片被拉到 1074px,值全跑到屏幕外只剩字段名) */
@media (max-width: 600px) {
  table.m-stack, table.m-stack tbody, table.m-stack tbody tr { min-width: 0 !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .table-wrap:has(> table.m-stack), .table-scroll:has(> table.m-stack), div:has(> table.m-stack) { overflow-x: visible !important; }
}

/* 卡片态:只有块级 div 才撑满右侧;pill / 徽章 / 按钮 / 链接保持自身宽度,别被拉成整行色条 */
@media (max-width: 600px) {
  table.m-stack td[data-label] > span, table.m-stack td[data-label] > a, table.m-stack td[data-label] > button, table.m-stack td[data-label] > b, table.m-stack td[data-label] > code, table.m-stack td[data-label] > label, table.m-stack td[data-label] > .pill, table.m-stack td[data-label] > .badge { flex: 0 0 auto; }
  table.m-stack td[data-label] { justify-content: flex-end; gap: 8px 12px; }
  table.m-stack td[data-label]::before { margin-right: auto; }
}


/* 超管快捷页签:浅色主区里用浅色 pill(原样式是给深色侧栏头设计的白字) */
@media (max-width: 900px) {
  .console-quick-tabs.light { display: flex !important; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 14px 10px; margin: 0; scrollbar-width: none; background: var(--bg, #fff); border-bottom: 1px solid var(--rule, rgba(0, 0, 0, 0.08)); position: relative; top: auto; z-index: 3; }
  .console-quick-tabs.light::-webkit-scrollbar { display: none; }
  .console-quick-tabs.light .console-quick-tab { flex: none; min-height: 34px; padding: 6px 14px !important; border-radius: 100px; border: 1px solid rgba(0, 0, 0, 0.08); background: var(--bg-soft, #f5f5f7); color: var(--ink, #1d1d1f); font-size: 13px !important; font-weight: 500; white-space: nowrap; cursor: pointer; }
  .console-quick-tabs.light .console-quick-tab.on { background: var(--ink, #1d1d1f); color: #fff; border-color: var(--ink, #1d1d1f); font-weight: 600; }
  [data-theme="dark"] .console-quick-tabs.light { background: #1c1c1e; border-bottom-color: rgba(255, 255, 255, 0.1); }
  [data-theme="dark"] .console-quick-tabs.light .console-quick-tab { background: #2c2c2e; border-color: rgba(255, 255, 255, 0.1); color: #f5f5f7; }
  [data-theme="dark"] .console-quick-tabs.light .console-quick-tab.on { background: #f5f5f7; color: #1d1d1f; border-color: #f5f5f7; }
}


/* 分站长「内容管理」:四个计数一行小指标;说明块可展开 */
.content-guide { margin-top: 16px; }
.content-guide > summary { cursor: pointer; padding: 12px 14px; border: 1px dashed var(--rule-2, #d2d2d7); border-radius: 12px; color: var(--ink-2, #6e6e73); font-size: 14px; list-style: none; }
.content-guide > summary::-webkit-details-marker { display: none; }
.content-guide > summary::after { content: ' ▾'; }
.content-guide[open] > summary::after { content: ' ▴'; }
.content-guide > .grid-3 { margin-top: 12px; }
@media (max-width: 900px) {
  .app .stat-grid.compact, .main .stat-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
  .app .stat-grid.compact > :first-child { grid-column: auto; }
  .stat-grid.compact .stat, .stat-grid.compact > div { padding: 10px 8px !important; }
  .stat-grid.compact .val, .stat-grid.compact .metric-val, .stat-grid.compact .num { font-size: 20px !important; }
  .stat-grid.compact .lbl, .stat-grid.compact .metric-lbl, .stat-grid.compact .sub, .stat-grid.compact .delta { font-size: 11.5px !important; }
  .stat-grid.compact .unit { font-size: 12px; }
}

/* ── 设计走查批(2026-09-06)主站/后台 ── */
@media (max-width: 600px) {
  /* 指标卡:4 张 → 2×2 等分;2 张 → 并排;3/5 张才让第一张占满 */
  .app .stat-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) > :first-child,
  .app .stat-grid:has(> :nth-child(2)):not(:has(> :nth-child(3))) > :first-child,
  .app .stat-grid:has(> :nth-child(6)):not(:has(> :nth-child(7))) > :first-child { grid-column: auto; }
  /* 卡片态表:宽度跟随容器内容区,不再比卡片宽而被裁右边 */
  table.m-stack { width: auto !important; max-width: 100% !important; margin: 0 !important; }
  .card:has(> table.m-stack), .card-body:has(> table.m-stack), .card-body.tight:has(> table.m-stack) { padding-left: 12px !important; padding-right: 12px !important; overflow: visible !important; }
  /* 筛选下拉别窄到把「最近 24 小时」截成「最近 24 小」 */
  .card select, .filters select, .page select { min-width: 150px; }
}

/* ── 顶栏控件统一尺寸(2026-09-06 用户反馈:导航栏里每个按钮大小都不一样)── */
@media (max-width: 900px) {
  /* 控制台 / 供应商 / 分站长 / 超管 共用 .topbar-actions */
  .topbar-actions .lang-toggle, .topbar-actions .topbar-lang, .topbar-actions .icon-btn, .topbar-actions .nav-bell, .topbar-actions .aic-ann-bell, .topbar-actions button[class*="bell"], .topbar-actions a[class*="bell"],
  .topbar-actions .btn-primary, .topbar-actions .btn-secondary, .topbar-actions .btn, .topbar-actions .role-pill, .topbar-actions #topbar-balance, .topbar-actions #dist-topbar-balance, .topbar-actions #topbar-topup, .topbar-actions .search {
    height: 40px !important; min-height: 40px !important; max-height: 40px !important; box-sizing: border-box; display: inline-flex !important; align-items: center !important; justify-content: center; gap: 6px;
    border-radius: 10px !important; padding: 0 12px !important; font-size: 14px !important; line-height: 1 !important; margin: 0 !important;
  }
  .topbar-actions .lang-toggle, .topbar-actions .topbar-lang, .topbar-actions .icon-btn, .topbar-actions .nav-bell, .topbar-actions .aic-ann-bell, .topbar-actions button[class*="bell"], .topbar-actions a[class*="bell"] { width: 40px !important; padding: 0 !important; font-size: 12px !important; font-weight: 600; }
  .topbar-actions .icon-btn svg, .topbar-actions button[class*="bell"] svg, .topbar-actions a[class*="bell"] svg { width: 18px !important; height: 18px !important; }
  .topbar-actions .search { flex: 1 1 100% !important; order: 9; justify-content: flex-start; }
  .topbar-actions .search kbd { display: none; }
  .topbar-actions .role-switcher, .topbar-actions #topbar-role-switcher-wrap { display: inline-flex; }
  .topbar-actions { gap: 8px !important; row-gap: 8px !important; align-items: center; }
  /* 公开页导航图标保持紧凑圆形(避免覆写 .btn-nav 全圆角胶囊与无框汉堡钮) */
  .nav-cta .lang-toggle, .nav-cta .nav-bell, .nav-cta .aic-ann-bell { height: 34px !important; min-height: 34px !important; box-sizing: border-box; border-radius: 999px !important; line-height: 1; }
  /* 页内动作行(预览站点 / 发布公告 / 导出 …)同一高度 */
  .page-head .btn-primary, .page-head .btn-secondary, .page-actions .btn-primary, .page-actions .btn-secondary, .page-actions .btn, .actions .btn-primary, .actions .btn-secondary { height: 40px; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; border-radius: 10px; padding: 0 14px; }
}

/* ── 走查第二轮:主站公开页 hero 标题折行/顶部留白/价格页副文对齐与空档 ── */
@media (max-width: 600px) {
  .hero-title, .sub-hero .hero-title, .ent-hero h1, .hero h1 { text-wrap: balance; font-size: clamp(30px, 8.6vw, 40px) !important; line-height: 1.15 !important; letter-spacing: -0.02em; }
  .hero, .sub-hero, .ent-hero { padding-top: 44px !important; }
  .hero .hero-sub, .hero-lead { text-wrap: balance; }
  header .lede, .pricing-head .lede, .page-head .lede { text-align: left !important; }
  .plans { margin-top: 12px !important; padding-top: 0 !important; }
  .billing-pills { margin-bottom: 6px; }
}

/* ── 走查第二轮:控制台账单卡、上架向导双栏、评分雷达、首页标题 ── */
@media (max-width: 600px) {
  .balance-card { max-width: 100% !important; width: auto !important; box-sizing: border-box; margin-left: 0 !important; margin-right: 0 !important; }
  .balance-card .actions { margin-top: 14px; }
  .balance-card .btn-primary { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; background: #fff !important; color: #1d1d1f !important; border-radius: 12px !important; font-weight: 600; }
  .pub2-grid { display: block !important; overflow: visible !important; height: auto !important; }
  .pub2-left, .pub2-right { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .pub2-right { margin-top: 16px; }
  .card svg:not(.spark):not(.icon), .card-body svg:not(.spark):not(.icon) { max-width: 100%; height: auto; }
  .hero .hero-title { font-size: clamp(26px, 7.4vw, 40px) !important; text-wrap: initial; }
}

/* ── 走查第二轮:卡片态表贴卡边、活动池梯形刻度、空状态 ── */
@media (max-width: 600px) {
  .card > div:has(> table.m-stack), .card > .card-body:has(> table.m-stack) { padding-left: 12px !important; padding-right: 12px !important; }
  .card > table.m-stack { margin: 0 12px !important; width: auto !important; }
  .pa-pool { flex-direction: column; }
  .pa-gauge { display: none; } /* 左侧 12 格刻度梯在手机上只是一列灰方块 */
  .pa-tank { width: 100% !important; height: 220px !important; min-height: 220px; }
}
/* 筛选区搜索框:手机上独占一行,不再只占七成 */
@media (max-width: 600px) {
  .page input[type="search"], .page input[placeholder*="搜索"], .card input[placeholder*="搜索"] { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; box-sizing: border-box; }
}

/* ── 供应商「上架新模型」向导手机版(2026-09-06 用户反馈:非常不方便)── */
@media (max-width: 600px) {
  .pub2-left { padding: 10px !important; overflow: visible !important; display: block !important; }
  .pub2-sec { overflow: visible !important; min-width: 0 !important; max-width: 100%; }
  .pub2-row { grid-template-columns: 1fr !important; padding: 12px !important; gap: 12px !important; }
  .pub2-row > .field, .pub2-row > .field.full, .pub2-row > div { grid-column: 1 / -1 !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .pub2-row .field input, .pub2-row .field select, .pub2-row .field textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .pub2-sec-head { padding: 12px !important; }
  .pub2-title { font-size: 22px !important; }
  .pub2-stepper { gap: 6px 12px; padding: 10px 12px !important; }
  .pub2-stepper .st { font-size: 13px; }
  /* 调试预览面板手机上收进「调试预览」折叠块,表单填完再展开看 */
  details.pub2-preview-fold { margin-top: 14px; }
  details.pub2-preview-fold > summary { cursor: pointer; padding: 12px 14px; border: 1px dashed var(--rule-2, #d2d2d7); border-radius: 12px; color: var(--ink-2, #6e6e73); font-size: 14px; list-style: none; }
  details.pub2-preview-fold > summary::-webkit-details-marker { display: none; }
  details.pub2-preview-fold > summary::after { content: ' ▾'; }
  details.pub2-preview-fold[open] > summary::after { content: ' ▴'; }
  .pub2-right { margin-top: 10px !important; }
}

/* ── 弹窗/表单排查批(2026-09-06 傍晚)后台抽屉 ── */
@media (max-width: 600px) {
  /* 分站长抽屉:铺满整屏(原 480px/90vw 左边留一条页面);表单双列改单列;底部按钮各占一半 */
  .drawer, body[data-role] .drawer { width: 100vw !important; max-width: 100vw !important; }
  .drawer .form-row, .drawer .row-2, .drawer .grid-2, .drawer [style*="grid-template-columns"], .drawer .two-col { grid-template-columns: 1fr !important; display: grid; gap: 12px; }
  .drawer .field, .drawer .form-group { width: 100% !important; min-width: 0 !important; }
  .drawer input:not([type=checkbox]):not([type=radio]), .drawer select, .drawer textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .drawer-foot, .drawer .drawer-actions, .drawer .actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; justify-content: stretch; }
  .drawer-foot > *, .drawer .drawer-actions > *, .drawer .actions > * { flex: 1 1 calc(50% - 4px); min-height: 44px; white-space: nowrap; margin: 0 !important; }
  .drawer-foot > .btn-primary, .drawer .drawer-actions > .btn-primary { order: 9; flex-basis: 100%; }
  .drawer-head .close, .drawer-head button { min-width: 44px; min-height: 44px; }
}
/* 超管「创建分站」等内联 fixed 面板(#stationDrawer 写死 width:440px,左边 50px 被切) */
@media (max-width: 600px) {
  #stationDrawer, body[data-role] [id$="Drawer"][style*="position: fixed"], body[data-role] [id$="Panel"][style*="position: fixed"] { width: 100vw !important; max-width: 100vw !important; left: 0 !important; right: 0 !important; }
  #stationDrawer > div, #stationDrawerBody { padding-left: 16px !important; padding-right: 16px !important; }
}
/* 后台抽屉底部:幽灵按钮也要有边框像个按钮;主按钮文字居中 */
@media (max-width: 600px) {
  .drawer-foot .btn-ghost, .drawer .drawer-actions .btn-ghost { border: 1px solid var(--rule-2, #d2d2d7) !important; border-radius: 10px !important; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
  .drawer-foot .btn-primary, .drawer-foot .btn-secondary, .drawer-foot .btn-danger { display: inline-flex !important; align-items: center; justify-content: center; text-align: center; }
}

/* 控制台「创建 API Key」四步弹窗:改成底部 Sheet;下一步/关闭与「已选 N」钉在底部,不用翻完 5000px 模型列表才找到按钮 */
@media (max-width: 600px) {
  .route-create-card { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: 100vw !important; max-width: 100vw !important; height: auto !important; max-height: 92dvh !important; border-radius: 18px 18px 0 0 !important; }
  .route-create-head { padding: 14px 16px 8px !important; }
  .route-create-body { display: flex !important; flex-direction: column; padding: 8px 14px 0 !important; }
  .route-create-body > :last-child { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg, #fff); border-top: 1px solid var(--rule, #e5e5e4); display: flex !important; gap: 8px; justify-content: stretch; }
  .route-create-body > :last-child > * { flex: 1 1 0; min-height: 44px; margin: 0 !important; }
  .route-create-body > :nth-last-child(3) { position: sticky; bottom: 66px; z-index: 2; background: var(--bg, #fff); padding: 8px 0; }
  .simple-model-group { gap: 6px; }
  .simple-model-group button, .simple-model-group .chip, .simple-model-group label { padding: 7px 10px !important; font-size: 13px !important; min-height: 36px; border-radius: 10px !important; }
}

/* ── 供应商专项(2026-09-06 晚,「供应商一定要方便」)── */
@media (max-width: 600px) {
  /* 弹窗层级压过底部 Tab 栏:申请提现 / 上架草稿等弹窗的提交按钮原来被 Tab 栏盖住 */
  .draft-modal-mask, .route-modal-shell, .route-drawer-shell, .submit-modal-mask, .mdl-edit-drawer, .lm-backdrop { z-index: 9992 !important; }
  .draft-modal { max-height: 92dvh !important; }
  /* 宽表(≥8 列)卡片:字段两列网格、字段名在上值在下,一张卡矮一半;名称/URL/错误/操作占整行 */
  table.m-stack.m-dense tbody tr { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 6px 12px 10px !important; }
  table.m-stack.m-dense td[data-label] { display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; text-align: left !important; padding: 7px 0 !important; border-bottom: 0 !important; min-width: 0; }
  table.m-stack.m-dense td[data-label]::before { flex: none; margin: 0; font-size: 11.5px; line-height: 1.2; }
  table.m-stack.m-dense td[data-label] > * { text-align: left; flex: none; max-width: 100%; }
  table.m-stack.m-dense td:first-child, table.m-stack.m-dense td[data-label*="操作"], table.m-stack.m-dense td[data-label*="URL"], table.m-stack.m-dense td[data-label*="错误"], table.m-stack.m-dense td[data-label*="Request"], table.m-stack.m-dense td[data-label*="模型"], table.m-stack.m-dense td[data-label*="商家"], table.m-stack.m-dense td[data-label*="端点"], table.m-stack.m-dense td[data-label*="标题"], table.m-stack.m-dense td[data-span] { grid-column: 1 / -1; }
  table.m-stack.m-dense td:first-child { border-bottom: 1px solid var(--rule, #e5e5e4) !important; padding-bottom: 9px !important; margin-bottom: 2px; }
  table.m-stack.m-dense td[data-label*="操作"] { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px; border-top: 1px solid var(--rule, #e5e5e4); padding-top: 10px !important; margin-top: 4px; }
  table.m-stack.m-dense td[data-label*="操作"]::before { display: none; }
  table.m-stack.m-dense td[data-label*="操作"] a, table.m-stack.m-dense td[data-label*="操作"] button { margin: 0 !important; flex: 1 1 auto; }
  table.m-stack.m-dense td > input[type=checkbox] { align-self: flex-end; }
}
@media (max-width: 600px) { table.m-stack.m-dense.m-collapsed tbody tr:nth-child(n+13) { display: none !important; } }

/* 统一导航:生图平台 NEW 徽标(原只在首页有样式,2026-09-07 全站导航统一后放公共处) */
.nav-drawsite { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.nav-drawsite-badge { font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: #fff; background: linear-gradient(135deg,#7b5cff,#5b3fd6); padding: 2px 5px; border-radius: 5px; transform: translateY(-1px); }
/* 首页信任条 3 项 + 支付合作印章(手机) */
@media (max-width: 600px) {
  .trust { grid-template-columns: repeat(3, 1fr) !important; }
  .trust-item { border-right: 1px solid var(--rule, #e5e5ea) !important; border-bottom: none !important; padding: 0 4px !important; margin: 0 !important; }
  .trust-item:last-child { border-right: none !important; }
  .trust-num { font-size: 24px !important; }
  .trust-label { font-size: 11.5px !important; }
  .cobrand-orbit { height: 160px !important; }
  .cobrand-seal { width: 108px !important; height: 108px !important; }
  .cobrand-seal .t1 { font-size: 10.5px !important; white-space: nowrap; letter-spacing: 0 !important; }
  .cobrand-seal .t2 { font-size: 16px !important; }
  .cobrand-node.l { left: 2px !important; }
  .cobrand-node.r { right: 2px !important; }
  .cobrand-beam { left: 52px !important; right: 52px !important; }
}

/* 卡片态表格的行里嵌了 .no-stack 子表(子站「按模型」面板):子表还原成普通表,外层容器横滑。
 * 外层 table.m-stack 的后代选择器会一路命中子表的 tr/td,这里逐项改回去。 */
@media (max-width: 600px) {
  table.m-stack table.no-stack { display: table !important; width: 100%; border-collapse: collapse; }
  table.m-stack table.no-stack thead { display: table-header-group !important; }
  table.m-stack table.no-stack tbody { display: table-row-group !important; }
  table.m-stack table.no-stack tr { display: table-row !important; border: 0 !important; border-top: 1px solid var(--rule, #e5e5e4) !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; background: none !important; }
  table.m-stack table.no-stack tr[hidden] { display: none !important; }
  table.m-stack table.no-stack th, table.m-stack table.no-stack td { display: table-cell !important; width: auto !important; text-align: left !important; white-space: nowrap !important; padding: 8px 10px !important; border: 0 !important; min-width: 0 !important; max-width: none !important; position: static !important; left: auto !important; box-shadow: none !important; }
  table.m-stack table.no-stack td::before { content: none !important; }
  table.m-stack table.no-stack td:first-child, table.m-stack table.no-stack th:first-child { min-width: 110px !important; max-width: 130px !important; white-space: normal !important; word-break: break-word; }
  table.m-stack td[data-span] > div[style*="overflow-x"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Public Pages Apple Mobile Polish (Stage 3 · <=900 / <=600) ───────────────── */
@media (max-width: 900px) {
  body:not(.app):not(.docs-page) .nav,
  header.site-nav,
  nav.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 16px !important;
    background: var(--m-glass, rgba(255, 255, 255, 0.88));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .aic-topbar-inner, .docs-bar {
    background: var(--m-glass, rgba(255, 255, 255, 0.90)) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }
  /* Models page: keep sticky ancestors working & 2-row sticky filter bar */
  body:has(.cat-bar),
  body:has(.m-models-catalog) {
    overflow-x: clip !important;
  }
  body:has(.cat-bar) .cat-bar {
    position: sticky;
    top: 60px;
    z-index: 80;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 8px !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 14px 8px !important;
    margin: 0 -14px 14px !important;
  }
  body:has(.cat-bar) .cat-bar .cat-search {
    order: 1;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  body:has(.cat-bar) .cat-bar .cat-search input {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px;
    background: #f5f5f7;
    border-color: transparent;
    font-size: 16px !important;
  }
  body:has(.cat-bar) .cat-bar .cat-search input:focus {
    background: #fff;
    border-color: var(--ink, #1d1d1f);
  }
  body:has(.cat-bar) .cat-bar .view-toggle {
    order: 2;
    flex: 0 0 auto;
    width: auto !important;
    margin-bottom: 0 !important;
    height: 38px;
    align-items: center;
  }
  body:has(.cat-bar) .cat-bar .view-toggle button {
    min-height: 32px !important;
    min-width: 32px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  body:has(.cat-bar) .cat-bar .cat-tabs-scroll {
    order: 3;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  body:has(.cat-bar) .cat-bar .cat-tabs-scroll::-webkit-scrollbar {
    display: none;
  }
  body:has(.cat-bar) .cat-bar .cat-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 12px !important;
    border-radius: 999px;
    background: #f5f5f7;
    font-size: 13px !important;
    line-height: 1.25;
    min-height: 32px;
    color: var(--ink-2, #424245);
  }
  body:has(.cat-bar) .cat-bar .cat-tab.on {
    background: var(--ink, #1d1d1f);
    color: #fff;
    font-weight: 600;
  }
  body:has(.cat-bar) .cat-bar .cat-tab.on .count {
    color: rgba(255, 255, 255, 0.72);
  }
  body:has(.cat-bar) .cat-bar .cat-tab.on::after {
    display: none !important;
  }
  body.state-split .split-body .detail {
    order: 1;
  }
  body.state-split .split-body .model-list {
    order: 2;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--rule, rgba(0, 0, 0, 0.08));
  }
  /* WeChat long-press allow for posters & contact QR images */
  #wwPoster img, .ww-poster-modal img, .ent-float-panel img {
    -webkit-touch-callout: default;
    pointer-events: auto;
  }
  /* 首页 Showcase 预览卡片(≤900 通用保护):防 Grid 1fr 撑破右裁、内嵌装饰按钮与轮播圆点畸变 */
  .pv-slides { grid-template-columns: minmax(0, 1fr) !important; }
  .pv-slide { min-width: 0 !important; max-width: 100% !important; }
  .preview-body { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
  .pv-code, .pv-site, .pv-poster-text, .pv-upd-feed { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
  .pv-code > div { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
  .pv-site-card { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden; }
  .pv-site-links .cta { min-height: 0 !important; height: auto !important; padding: 4px 10px !important; font-size: 11px !important; line-height: 1.2 !important; border-radius: 999px !important; }
  .pv-dots { align-items: center; }
  .pv-dots button { min-height: 8px !important; height: 8px !important; min-width: 0 !important; padding: 0 !important; }
}

@media (max-width: 600px) {
  /* Index / Index-EN */
  .hero { padding: 28px 16px 36px !important; }
  .hero-api { gap: 6px !important; padding: 10px 12px !important; }
  .hero-api .ha-url { font-size: 12px !important; }
  .hero-api .ha-copy { min-width: 34px !important; min-height: 34px !important; width: 34px !important; height: 34px !important; }
  /* 首页 Showcase 预览卡片(aicoming.top)移动端紧凑排版 */
  .preview-wrap { padding: 0 14px !important; }
  .preview { border-radius: 16px !important; }
  .preview-bar { height: 38px !important; padding: 0 12px !important; }
  .preview-bar .d { display: none !important; }
  .preview-url { margin-left: 0 !important; font-size: 11.5px !important; padding: 4px 11px !important; }
  .pv-code { border-right: none !important; border-bottom: 1px solid var(--rule, rgba(0, 0, 0, 0.08)) !important; padding: 18px 16px !important; font-size: 11.5px !important; line-height: 1.7 !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pv-code .label, .pv-site .label, .pv-poster-text .label { margin-bottom: 12px !important; font-size: 10.5px !important; }
  .pv-site { padding: 18px 16px !important; }
  .pv-site-card { padding: 16px !important; }
  .pv-site-nav { gap: 8px !important; margin-bottom: 14px !important; min-width: 0; }
  .pv-site-brand { font-size: 13px !important; gap: 6px !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pv-site-logo { width: 20px !important; height: 20px !important; flex: 0 0 auto; }
  .pv-site-links { gap: 8px !important; font-size: 11px !important; flex: 0 0 auto; }
  .pv-site-links .cta { padding: 4px 9px !important; font-size: 10.5px !important; }
  .pv-site-h1 { font-size: 20px !important; margin: 4px 0 6px !important; }
  .pv-site-sub { font-size: 12px !important; line-height: 1.5 !important; margin-bottom: 12px !important; overflow-wrap: break-word; }
  .pv-chips { gap: 5px !important; }
  .pv-chip { font-size: 10.5px !important; padding: 3px 8px !important; }
  .pv-poster-text { border-right: none !important; border-bottom: 1px solid var(--rule, rgba(0, 0, 0, 0.08)) !important; padding: 20px 16px !important; }
  .pv-poster-h1 { font-size: 24px !important; }
  .pv-upd-feed { padding: 18px 16px !important; }
  .pv-dots { padding: 12px 0 14px !important; gap: 8px !important; }
  .aic-ref-joinbar { margin: 10px auto 0 !important; padding: 0 16px !important; }
  .aic-ref-joinbar-inner { border-radius: 12px !important; padding: 10px 14px !important; }
  .ww-poster-card, .ww-poster-modal .ww-card {
    max-height: 90dvh;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: calc(16px + var(--m-safe-b));
  }

  /* Models page: compact mobile catalog, 2-col vendor cards & split-view hero */
  body:has(.cat-bar) .page-head {
    margin-top: 16px !important;
    padding-inline: 14px !important;
  }
  body:has(.cat-bar) .page-title-row {
    margin-top: 8px !important;
    gap: 10px !important;
  }
  body:has(.cat-bar) .page-title-row h1 {
    font-size: 28px !important;
  }
  body:has(.cat-bar) .stage {
    margin-top: 16px !important;
    padding-inline: 14px !important;
  }
  body:has(.cat-bar) .gallery-head {
    margin-bottom: 10px !important;
  }
  body:has(.cat-bar) .gallery-copy h2 {
    font-size: 21px !important;
  }
  .gallery.is-marquee {
    margin: 0 -14px !important;
    padding: 6px 14px 12px !important;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent) !important;
    mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent) !important;
  }
  .gallery.is-marquee .poster {
    flex: 0 0 210px !important;
    width: 210px !important;
    height: 134px !important;
    min-height: 134px !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
  body:has(.cat-bar) .vendor-section {
    margin-top: 20px !important;
  }
  body:has(.cat-bar) .vendor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    border: 0 !important;
    background: transparent !important;
  }
  body:has(.cat-bar) .vendor-card {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    min-height: 90px !important;
    padding: 13px 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  body:has(.cat-bar) .vendor-name {
    font-size: 15px !important;
  }
  body:has(.cat-bar) .vendor-models {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-top: 5px !important;
    font-size: 11.5px !important;
    padding-right: 18px;
  }
  .vendor-card[data-logo]::after {
    width: 42px !important;
    height: 28px !important;
    opacity: 0.10 !important;
    right: 8px !important;
    bottom: 6px !important;
  }
  body.state-split .detail-app-row {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    align-items: center;
  }
  body.state-split .detail-app-logo {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }
  body.state-split .detail-app-title h2 {
    font-size: 20px !important;
    line-height: 1.25;
  }
  body.state-split .detail-app-actions {
    grid-column: 1 / -1;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px !important;
  }
  body.state-split .detail-app-actions button {
    flex: 1 1 0;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.state-split .detail-app-actions .mlx-vpanel[hidden] {
    display: none !important;
  }
  body.state-split .detail-app-head {
    padding-bottom: 12px !important;
    border-bottom: 0 !important;
  }
  body.state-split .detail-app-head .detail-statrow {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
    margin: 12px -14px 0 !important;
    padding: 9px 14px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  body.state-split .detail-app-head .detail-statrow::-webkit-scrollbar {
    display: none;
  }
  body.state-split .detail-app-head .detail-statrow > div {
    flex: 0 0 auto;
    border-top: 0 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0 14px !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-width: max-content;
  }
  body.state-split .detail-app-head .detail-statrow > div:first-child {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
  body.state-split .detail-app-head .detail-statrow > div:last-child {
    padding-right: 0 !important;
  }
  body.state-split .detail-app-head .detail-statrow .s-k {
    font-size: 10.5px !important;
    color: #86868b !important;
    margin-bottom: 2px !important;
    white-space: nowrap;
  }
  body.state-split .detail-app-head .detail-statrow .s-v {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: visible;
    text-overflow: clip;
  }
  body.state-split #detail .app-section-head.mlx-shead {
    align-items: flex-start !important;
    text-align: left;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  body.state-split #detail .app-section-head.mlx-shead > div:first-child {
    width: 100%;
    order: 0;
  }
  body.state-split #detail .mlx-shead h2 {
    justify-content: flex-start;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.015em;
  }
  body.state-split #detail .mlx-shead-n {
    font-size: 12.5px !important;
    color: #86868b !important;
  }
  body.state-split #detail .mlx-segwrap {
    width: 100%;
    order: 1 !important;
  }
  body.state-split #detail .mlx-seg {
    display: grid !important;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100%;
  }
  body.state-split #detail .mlx-seg-i {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 3px !important;
    padding: 9px 8px !important;
    min-height: 0 !important;
    border-radius: 11px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    box-shadow: none;
  }
  body.state-split #detail .mlx-seg-i.on {
    border-color: var(--tc) !important;
    background: var(--tb) !important;
    box-shadow: 0 0 0 1px var(--tc) !important;
  }
  body.state-split #detail .mlx-seg-ico,
  body.state-split #detail .mlx-seg-chk,
  body.state-split #detail .mlx-seg-desc {
    display: none !important;
  }
  body.state-split #detail .mlx-seg-i:only-child .mlx-seg-desc {
    display: block !important;
    font-size: 11.5px !important;
    color: #6e6e73 !important;
  }
  body.state-split #detail .mlx-seg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    min-width: 0;
  }
  body.state-split #detail .mlx-seg-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--tc) !important;
  }
  body.state-split #detail .mlx-seg-save {
    font-size: 9.5px !important;
    line-height: 1.25;
    padding: 1px 4px !important;
    border-radius: 4px;
  }
  body.state-split #detail .mlx-seg-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.state-split #detail .mlx-seg-n {
    font-size: 10.5px !important;
    color: #6e6e73 !important;
    line-height: 1.25;
    white-space: nowrap;
  }
  body.state-split #detail .mlx-filt {
    width: 100%;
    order: 2 !important;
  }
  body.state-split #detail .mlx-ctabs {
    justify-content: flex-start !important;
    padding: 2px 0 8px !important;
    gap: 6px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  body.state-split #detail .mlx-ctabs-k {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6e6e73 !important;
    margin-right: 2px !important;
  }
  body.state-split #detail .mlx-ctab {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 5px 0 11px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
  body.state-split #detail .mlx-ctab.on {
    background: #1d1d1f !important;
    border-color: #1d1d1f !important;
    color: #fff !important;
  }
  body.state-split #detail .mlx-ctab-n {
    min-width: 18px !important;
    padding: 0 5px !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }
  body.state-split #detail .mlx-ctabs-hint {
    display: none !important;
  }
  body.state-split #detail .mlx-shead-r {
    order: 3 !important;
    margin-left: 0 !important;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  body.state-split #detail .app-section-head .sort {
    display: inline-flex !important;
    align-items: center;
    gap: 2px !important;
    padding: 2px !important;
    border-radius: 9px !important;
    background: #f2f2f7 !important;
    border: 0 !important;
  }
  body.state-split #detail .app-section-head .sort button {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6e6e73 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: nowrap;
  }
  body.state-split #detail .app-section-head .sort button.on {
    background: #fff !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  }
  body.state-split #detail .mlx-favall {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    background: #fff !important;
    color: #424245 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
  }
  body.state-split #detail .mlx-shead .sub.mlx-qc-wrap {
    order: 4 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
  }
  body.state-split #detail .mlx-qc {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
  }
  body.state-split #detail .mlx-qc-i {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px !important;
    width: 100%;
    margin: 0 !important;
    padding: 7px 10px 7px 12px !important;
    min-height: 36px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  body.state-split #detail .mlx-qc-k {
    font-size: 11.5px !important;
    color: #86868b !important;
    font-weight: 500;
  }
  body.state-split #detail .mlx-qc-i code {
    font-size: 12px !important;
    color: #1d1d1f !important;
    max-width: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.state-split #detail .mlx-qc-copy {
    justify-self: end;
    margin-left: 0 !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 6px !important;
    background: #f2f2f7 !important;
    color: #6e6e73 !important;
  }
  body.state-split #detail .mlx-qc-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7f7f9 !important;
    color: #1d1d1f !important;
    font-size: 12px !important;
    font-weight: 500;
  }
  body.state-split #detail .mlx-qc-hint {
    margin: 0 !important;
    padding: 7px 12px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #fbfbfd;
    font-size: 11.5px !important;
  }
  body.state-split #detail .app-provider-grid {
    border: 0 !important;
    background: transparent !important;
    gap: 10px !important;
  }
  body.state-split #detail .app-provider-card.mlx-card {
    padding: 12px 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 13px !important;
    background: #fff !important;
    gap: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  body.state-split #detail .mlx-card .app-provider-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }
  body.state-split #detail .mlx-card .app-provider-name {
    font-size: 14.5px !important;
    color: #1d1d1f !important;
  }
  body.state-split #detail .mlx-card .mlx-rank {
    width: 14px !important;
    font-size: 11.5px !important;
  }
  body.state-split #detail .mlx-card .app-provider-price-group.is-token {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 14px !important;
  }
  body.state-split #detail .mlx-card .app-provider-price-group.is-token .app-provider-metric {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 5px !important;
    width: auto !important;
  }
  body.state-split #detail .mlx-card .app-provider-price-group.is-token .app-provider-metric .k {
    font-size: 10.5px !important;
    color: #86868b !important;
    margin: 0 !important;
  }
  body.state-split #detail .mlx-card .app-provider-price-group.is-token .app-provider-metric .v {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
  }
  body.state-split #detail .mlx-card .mlx-qrow {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 5px !important;
    padding: 6px 6px !important;
    border-radius: 8px;
    background: #f7f7f9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.state-split #detail .mlx-card .mlx-qrow::-webkit-scrollbar {
    display: none;
  }
  body.state-split #detail .mlx-card .mlx-q {
    flex: 0 0 auto;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    border-left: 0 !important;
    white-space: nowrap;
  }
  body.state-split #detail .mlx-card .mlx-q:first-child {
    padding: 0 2px 0 0 !important;
  }
  body.state-split #detail .mlx-card .mlx-q:first-child .mlx-bars {
    width: 15px !important;
    flex: 0 0 15px !important;
  }
  body.state-split #detail .mlx-card .mlx-chip {
    font-size: 10px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    line-height: 1.3 !important;
  }
  body.state-split #detail .mlx-card .mlx-cc-v,
  body.state-split #detail .mlx-card .mlx-score {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  body.state-split #detail .mlx-card .mlx-tps {
    font-size: 9.5px !important;
    margin-left: 1px !important;
  }
  body.state-split #detail .mlx-card .mlx-q.is-empty .mlx-score {
    font-size: 10.5px !important;
  }
  body.state-split #detail .mlx-card .app-provider-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: stretch !important;
    gap: 6px !important;
    width: 100%;
  }
  body.state-split #detail .mlx-card .app-provider-actions .btn-try {
    flex: 1 1 0;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    justify-content: center;
    white-space: nowrap;
  }
  body.state-split #detail .mlx-card .app-provider-actions .btn-try.fav-slot:not(:disabled) {
    background: #fff !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    font-weight: 500 !important;
  }
  body.state-split #detail .mlx-card .app-provider-actions .btn-dislike {
    flex: 0 0 auto;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    font-size: 12px !important;
    color: #6e6e73 !important;
    background: #fff !important;
    white-space: nowrap;
  }
  .mp-card {
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Pricing page cards (payment modal intentionally untouched) */
  .pricing-head { padding: 28px 16px 10px !important; }
  .billing-pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 14px !important;
  }
  .billing-pills button { width: 100%; min-height: 38px; padding: 7px 10px !important; }
  .plans { grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 16px !important; padding: 0 16px !important; }
  .plan, .plan + .plan {
    padding: 22px 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    background: #fff;
  }
  .plan.featured { border-color: rgba(0, 113, 227, 0.35) !important; box-shadow: 0 8px 24px -14px rgba(0, 113, 227, 0.22); }
  .plan .cta { display: flex !important; width: 100%; min-height: 46px; border-radius: 999px !important; }

  /* Merchants & Merchant Detail */
  .pd-card { padding: 20px 16px 18px !important; }
  .pd-meta {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 10px 8px !important;
    border-top: 0 !important;
  }
  .pd-actions { gap: 8px; margin-top: 2px; }
  .pd-actions > * { min-height: 44px !important; border-radius: 999px !important; }
  .feat-card { padding: 20px 16px !important; border-radius: 16px !important; }
  .feat-meta {
    background: rgba(118, 118, 128, 0.08);
    border-radius: 12px;
    padding: 10px 8px !important;
    margin-bottom: 16px !important;
  }
  .feat-card.top1 .feat-meta { background: rgba(255, 255, 255, 0.08); }
  .feat-foot { flex-wrap: wrap; gap: 10px; }
  .feat-cta { min-height: 42px; padding: 8px 16px !important; justify-content: center; }

  /* Rankings / Invite-board / Relay-channels / Docs / Enterprise / Merchant-apply / Subsite / Legal */
  #ib-p3-strip { padding: 12px 14px !important; border-radius: 14px !important; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .doc article, .doc .md, .prose { font-size: 15px; line-height: 1.65; }
  .ent-contact-form { padding: 20px 16px !important; border-radius: 16px !important; }
  .ent-contact-form input, .ent-contact-form select, .ent-contact-form textarea,
  form input[type="text"], form input[type="email"], form input[type="tel"], form select, form textarea { font-size: 16px !important; }
  .ent-float-contact { bottom: calc(18px + var(--m-safe-b)) !important; right: 14px !important; }
  .ent-float-panel { right: 0 !important; max-width: calc(100vw - 28px); }
  body:has(.float-contact) .ent-float-contact { display: none !important; }
  .sub-hero, .ent-hero { padding: 28px 16px 36px !important; }
  .how-grid, .tiers-grid, .feat-grid { grid-template-columns: 1fr !important; }
  .guarantee-card { padding: 22px 18px !important; border-radius: 16px !important; }
}

/* ── Stage 4/5 shared helpers (kept clean so page-specific polish at EOF wins) ── */
@media (max-width: 900px) {
  /* Mobile balance breakdown sheet fits viewport cleanly without horizontal clipping */
  .tb-bal-wrap.is-open .tb-bal-pop,
  .tb-bal-wrap:focus-within .tb-bal-pop {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(68px + var(--m-safe-b)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70dvh;
    overflow-y: auto;
    border-radius: 16px !important;
    z-index: 980 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
  }
}

@media (max-width: 600px) {
  /* Keys page: skill install command & copy button stay side-by-side */
  .kl-access-foot { padding: 12px 14px !important; gap: 8px !important; }
  .kl-access-foot .sp { display: none !important; }
  #skill-install-cmd {
    flex: 1 1 calc(100% - 50px) !important;
    width: 0;
    min-width: 0 !important;
    max-width: calc(100% - 48px);
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    text-overflow: initial !important;
    padding: 8px 10px !important;
  }
  #copy-skill-install {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
  }
  /* Activity poster & WeChat images allow long-press saving */
  .act-hero img, .act-wm-card img, .act-poster img {
    -webkit-touch-callout: default;
    pointer-events: auto;
  }
}

/* ── B2B Consoles /distributor & /admin shared helpers ───────────────────────── */
@media (max-width: 900px) {
  body[data-role] .card-head .meta {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--ink-dim, #6e6e73) !important;
    line-height: 1.45;
  }
  body[data-role] .card-head h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
  }
  body[data-role] .topbar-lang {
    height: 34px !important;
    min-height: 34px !important;
    width: auto !important;
    min-width: 38px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 600px) {
  /* Distributor station overview card (#dash-station-bar) clean hierarchy & full buttons */
  #dash-station-bar {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }
  #dash-station-bar > div:first-child { width: 100%; }
  #dash-station-bar button {
    min-height: 34px !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
  }
  #dash-range-tabs { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  #dash-range-tabs::-webkit-scrollbar { display: none; }
  /* Admin bottom clearance & crisp 2-col stat grid */
  body[data-role] .main,
  body[data-role] .page { padding-bottom: calc(36px + var(--m-safe-b)) !important; }
  body[data-role] .stat-grid { gap: 10px !important; }
}

/* ── Dedicated Mobile Model Catalog (<=900px only; desktop untouched) ───────── */
.m-models-catalog { display: none; }
.mlx-vswitch-m { display: none; }
.m-msheet-mask { display: none; }

@media (max-width: 900px) {
  body:has(.m-models-catalog):not(.state-split) {
    background: #f5f5f7;
  }
  body:has(.m-models-catalog):not(.state-split) .page-head .crumbs {
    display: none !important;
  }
  body:has(.m-models-catalog):not(.state-split) .gallery-head,
  body:has(.m-models-catalog):not(.state-split) .gallery,
  body:has(.m-models-catalog):not(.state-split) .vendor-section {
    display: none !important;
  }
  .m-models-catalog {
    display: block;
  }
  body.state-split .m-models-catalog {
    display: none !important;
  }
  body.state-split #model-list {
    display: none !important;
  }
  body.state-split .mlx-vswitch-d {
    display: none !important;
  }
  body.state-split .mlx-vswitch-m {
    display: inline !important;
  }
  body:has(.m-models-catalog) .page-head {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 12px 14px 8px !important;
    background: #fff;
  }
  body:has(.m-models-catalog).state-split .page-head {
    padding-top: 8px !important;
  }
  body:has(.m-models-catalog) .page-title-row {
    margin-top: 0 !important;
    align-items: center !important;
  }
  body:has(.m-models-catalog) .page-title-row h1 {
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: -0.025em;
  }
  body:has(.m-models-catalog) .ml-ent-entry {
    min-height: 32px !important;
    height: 32px;
    padding: 0 11px !important;
    font-size: 12px !important;
    margin-bottom: 0 !important;
  }
  body:has(.m-models-catalog) .stage {
    margin-top: 0 !important;
    padding: 0 14px 84px !important;
  }
  .m-cat-dock {
    position: sticky;
    top: 60px;
    z-index: 80;
    margin: 0 -14px 10px;
    padding: 8px 14px 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-cat-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .m-cat-search-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: block;
  }
  .m-cat-search-wrap > svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #86868b;
    pointer-events: none;
  }
  #m-cat-search {
    width: 100%;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f2f2f7;
    color: #1d1d1f;
    font: inherit;
    font-size: 16px !important;
    padding: 0 32px 0 32px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  #m-cat-search::-webkit-search-cancel-button,
  #m-cat-search::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }
  #m-cat-search:focus {
    background: #fff;
    border-color: #1d1d1f;
  }
  #m-cat-search::placeholder {
    color: #8e8e93;
    font-size: 13.5px;
  }
  .m-cat-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    min-height: 22px !important;
    min-width: 22px !important;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  .m-cat-clear[hidden] {
    display: none !important;
  }
  .m-sort-wrap {
    position: relative;
    flex: 0 0 auto;
  }
  .m-cat-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #424245;
    font-family: var(--sans);
    font-size: 12.5px !important;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
  }
  .m-cat-sort[aria-expanded="true"] {
    border-color: #1d1d1f;
    color: #1d1d1f;
  }
  .m-sort-chev {
    width: 13px;
    height: 13px;
    color: #8e8e93;
    transition: transform 0.16s ease;
    flex: 0 0 auto;
  }
  .m-cat-sort[aria-expanded="true"] .m-sort-chev {
    transform: rotate(180deg);
    color: #1d1d1f;
  }
  .m-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 120;
    min-width: 132px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .m-sort-menu[hidden] {
    display: none !important;
  }
  .m-sort-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 36px;
    min-height: 36px !important;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #424245;
    font-family: var(--sans);
    font-size: 12.5px !important;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-sort-opt.on {
    background: #f2f2f7;
    color: #1d1d1f;
    font-weight: 600;
  }
  .m-sort-chk {
    width: 13px;
    height: 13px;
    color: #1d1d1f;
    opacity: 0;
    flex: 0 0 auto;
  }
  .m-sort-opt.on .m-sort-chk {
    opacity: 1;
  }
  .m-cat-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -14px;
    padding: 0 14px;
  }
  .m-cat-scroll::-webkit-scrollbar {
    display: none;
  }
  .m-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    min-height: 30px !important;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: #f2f2f7;
    color: #424245;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-pill.on {
    background: #1d1d1f;
    color: #fff;
    font-weight: 600;
  }
  .m-pill-n,
  .m-vchip-n {
    font-family: var(--mono);
    font-size: 11px;
    opacity: 0.68;
  }
  .m-vchip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #424245;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-vchip.on {
    border-color: #1d1d1f;
    background: #1d1d1f;
    color: #fff;
  }
  .m-vdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
  }
  .m-vchip.on .m-vdot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  }
  .m-tier-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 2px 14px 8px;
    margin: 0 -14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .m-tier-bar::-webkit-scrollbar {
    display: none;
  }
  .m-tier-bar[hidden] {
    display: none !important;
  }
  .m-tpill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #424245;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-tpill.on {
    border-color: #1d1d1f;
    background: #1d1d1f;
    color: #fff;
    font-weight: 600;
  }
  .m-tdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 6px;
  }
  .m-tpill.m-tier-deal .m-tdot { background: #2a7e3b; }
  .m-tpill.m-tier-stable .m-tdot { background: #0d74ce; }
  .m-tpill.m-tier-premium .m-tdot { background: #6550b9; }
  .m-tpill.m-tier-deal.on {
    background: #eef8f0;
    border-color: #2a7e3b;
    color: #2a7e3b;
  }
  .m-tpill.m-tier-stable.on {
    background: #ebf4fd;
    border-color: #0d74ce;
    color: #0d74ce;
  }
  .m-tpill.m-tier-premium.on {
    background: #f3f0fc;
    border-color: #6550b9;
    color: #6550b9;
  }
  .m-cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 2px 8px;
    font-size: 12px;
    color: #6e6e73;
  }
  .m-cat-reset {
    border: 0;
    background: none;
    color: var(--blue, #0066cc);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 4px;
    min-height: 24px !important;
    cursor: pointer;
    white-space: nowrap;
  }
  .m-model-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .m-model-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 13px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.12s ease;
  }
  .m-model-card:active {
    transform: scale(0.992);
  }
  .m-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .m-card-top.m-card-top-start {
    align-items: flex-start;
  }
  .m-card-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
  }
  .m-card-logo img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1 !important;
  }
  .m-card-head {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .m-card-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .m-card-name {
    font-family: var(--mono);
    font-size: 14.5px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
  }
  .m-card-tag {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .m-card-tag.hot {
    background: #fff1e6;
    color: #c2410c;
  }
  .m-card-tag.stream {
    background: #e8f3ff;
    color: #0a6ed1;
  }
  .m-card-sub {
    font-size: 12px;
    color: #6e6e73;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-copy-id {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f8fa;
    color: #6e6e73;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .m-copy-id.is-copied {
    background: #e8f7ee;
    border-color: #86efac;
    color: #15803d;
  }
  .m-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f7f7f9;
    min-width: 0;
  }
  .m-card-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1px 2px;
    font-family: var(--mono);
    font-size: 12px;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
  }
  .m-card-price .m-pitem {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
  }
  .m-card-price strong {
    font-weight: 700;
    font-size: 12.5px;
  }
  .m-card-price span {
    font-family: var(--sans);
    font-size: 11px;
    color: #6e6e73;
  }
  .m-card-price .m-sep {
    font-style: normal;
    color: #c7c7cc;
    margin: 0 1px;
  }
  .m-card-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 11.5px;
    color: #6e6e73;
    white-space: nowrap;
  }
  .m-card-stats .status-dot {
    margin-right: 0 !important;
    width: 6px !important;
    height: 6px !important;
  }
  .m-card-stats .m-spd {
    font-family: var(--mono);
    font-size: 11px;
    color: #424245;
  }
  .m-card-inline-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 11px;
    color: #6e6e73;
    white-space: nowrap;
  }
  .m-card-inline-stats .status-dot {
    margin-right: 0 !important;
    width: 6px !important;
    height: 6px !important;
  }
  .m-card-inline-stats .m-spd {
    font-family: var(--mono);
    font-size: 10.5px;
    color: #424245;
  }
  .m-card-inline-stats .m-spd::before {
    content: "·";
    color: #c7c7cc;
    margin-right: 5px;
  }
  .m-tier-strip {
    display: grid;
    grid-template-columns: repeat(var(--tn, 3), minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
  }
  .m-tier-cell {
    --tc: #0d74ce;
    --tb: #f2f8fe;
    --tbd: rgba(13, 116, 206, 0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    height: auto;
    min-height: 0 !important;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid var(--tbd);
    background: var(--tb);
    font-family: var(--sans);
    text-align: left;
    min-width: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .m-tier-cell.m-tier-deal {
    --tc: #2a7e3b;
    --tb: #f2faf4;
    --tbd: rgba(42, 126, 59, 0.18);
  }
  .m-tier-cell.m-tier-stable {
    --tc: #0d74ce;
    --tb: #f2f8fe;
    --tbd: rgba(13, 116, 206, 0.18);
  }
  .m-tier-cell.m-tier-premium {
    --tc: #6550b9;
    --tb: #f6f3fd;
    --tbd: rgba(101, 80, 185, 0.18);
  }
  .m-tier-cell.is-hl {
    border-color: var(--tc);
    box-shadow: 0 0 0 1px var(--tc);
  }
  .m-tc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    line-height: 1.2;
    min-width: 0;
  }
  .m-tc-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tc);
    white-space: nowrap;
  }
  .m-tc-save {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    padding: 1px 3.5px;
    border-radius: 3.5px;
    background: #dff3e4;
    color: #2a7e3b;
    white-space: nowrap;
  }
  .m-tc-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px;
    min-width: 0;
    line-height: 1.2;
  }
  .m-tc-price {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-tc-prov {
    font-size: 9.5px;
    line-height: 1.2;
    flex: 0 0 auto;
    color: #6e6e73;
    white-space: nowrap;
  }
  .m-single-tier {
    --tc: #0d74ce;
    --tb: #eef6ff;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 4px;
    color: var(--tc);
    background: var(--tb);
    white-space: nowrap;
  }
  .m-single-tier.m-tier-deal { --tc: #2a7e3b; --tb: #eaf7ee; }
  .m-single-tier.m-tier-premium { --tc: #6550b9; --tb: #f3f0fc; }
  .m-model-empty {
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* ── Mobile Model Switcher Bottom Sheet (Option 1) ──────────────────────── */
  .m-msheet-mask {
    display: none;
  }
  .m-msheet-mask.open {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
  }
  .m-msheet {
    width: 100%;
    max-height: 78dvh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
  }
  .m-msheet-grab {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #d1d1d6;
    margin: 8px auto 4px;
    flex: 0 0 auto;
  }
  .m-msheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px 10px;
    gap: 10px;
  }
  .m-msheet-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }
  .m-msheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.015em;
  }
  .m-msheet-count {
    font-size: 12px;
    color: #86868b;
    font-weight: 400;
  }
  .m-msheet-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border: 0;
    border-radius: 999px;
    background: #f2f2f7;
    color: #424245;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .m-msheet-search-wrap {
    position: relative;
    display: block;
    margin: 0 16px 10px;
  }
  .m-msheet-search-wrap > svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #86868b;
    pointer-events: none;
  }
  #m-msheet-search {
    width: 100%;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f2f2f7;
    padding: 0 32px;
    font: inherit;
    font-size: 16px !important;
    color: #1d1d1f;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  #m-msheet-search::-webkit-search-cancel-button,
  #m-msheet-search::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }
  #m-msheet-search:focus {
    background: #fff;
    border-color: #1d1d1f;
  }
  #m-msheet-search::placeholder {
    font-size: 13px;
    color: #8e8e93;
  }
  .m-msheet-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  .m-msheet-clear[hidden] {
    display: none !important;
  }
  .m-msheet-vendors {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 0 16px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex: 0 0 auto;
  }
  .m-msheet-vendors::-webkit-scrollbar {
    display: none;
  }
  .m-msheet-vchip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #424245;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-msheet-vchip.on {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
    font-weight: 600;
  }
  .m-msheet-vchip.on .m-vdot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
  }
  .m-msheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 16px 18px;
  }
  .m-msheet-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 2px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
  }
  .m-msheet-sec-l {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .m-msheet-sec-l .mlx-sec-ic {
    width: 14px;
    height: 14px;
    color: #86868b;
  }
  .m-msheet-sec-n {
    font-family: var(--mono);
    font-size: 11px;
    color: #86868b;
  }
  .m-msheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px !important;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }
  .m-msheet-row + .m-msheet-row {
    margin-top: 2px;
  }
  .m-msheet-row.on {
    background: #f2f5ff;
  }
  .m-msheet-row-l {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 0;
  }
  .m-msheet-name {
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-msheet-cur {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0d74ce;
    white-space: nowrap;
  }
  .m-msheet-vtag {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f2f2f7;
    color: #6e6e73;
    white-space: nowrap;
  }
  .m-msheet-price {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 600;
    color: #424245;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .m-msheet-price small {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 400;
    color: #86868b;
    margin-left: 1px;
  }
  .m-msheet-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: #6e6e73;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* ── 商家详情页 merchant-detail.html Apple Mobile Redesign (<=900 / <=600) ── */
  body.merchant-detail-page {
    background: #f5f5f7;
  }
  body.merchant-detail-page .page {
    padding: 0 14px !important;
  }
  body.merchant-detail-page .crumbs {
    padding: 6px 0 10px !important;
    gap: 6px;
    font-size: 12.5px;
    min-height: 0 !important;
  }
  body.merchant-detail-page .crumbs a {
    min-height: 28px !important;
    padding: 0 2px;
  }

  /* Hero */
  body.merchant-detail-page .hero {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding: 15px 14px 14px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    background: #fff;
  }
  body.merchant-detail-page .hero-main {
    display: contents !important;
  }
  body.merchant-detail-page .hero-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px !important;
    height: 48px !important;
    border-radius: 13px !important;
    font-size: 20px !important;
    margin-top: 1px;
  }
  body.merchant-detail-page .hero-name-row {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px !important;
    min-width: 0;
  }
  body.merchant-detail-page .hero-name {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  body.merchant-detail-page #hero-honors,
  body.merchant-detail-page #hero-trust {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 5px !important;
  }
  body.merchant-detail-page .verified-badge,
  body.merchant-detail-page .hero-guard,
  body.merchant-detail-page .hero-status {
    height: 22px !important;
    font-size: 11px !important;
    padding: 0 7px !important;
  }
  body.merchant-detail-page .verified-badge {
    padding-left: 4px !important;
  }
  body.merchant-detail-page .hero-guard {
    padding-left: 5px !important;
  }
  body.merchant-detail-page .hero-sponsor {
    height: auto;
    padding: 3px 8px;
    font-size: 11px !important;
    white-space: normal;
    line-height: 1.3;
  }
  body.merchant-detail-page .hero-tagline {
    grid-column: 2;
    grid-row: 2;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-top: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.merchant-detail-page .hero-metrics {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
    margin-top: 12px !important;
    padding: 9px 4px !important;
    border-radius: 12px;
    background: #f5f5f7;
  }
  body.merchant-detail-page .hero-metrics::-webkit-scrollbar {
    display: none;
  }
  body.merchant-detail-page .hero-metric {
    flex: 0 0 auto !important;
    min-width: 72px;
    padding: 0 12px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 3px;
  }
  body.merchant-detail-page .hero-metric:first-child {
    padding-left: 10px !important;
  }
  body.merchant-detail-page .hero-metric:nth-child(3n) {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.merchant-detail-page .hero-metric:last-child {
    border-right: none !important;
  }
  body.merchant-detail-page .hero-metric .k {
    font-size: 10.5px !important;
    color: #86868b;
    text-transform: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  body.merchant-detail-page .hero-metric .v {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    height: auto !important;
    white-space: nowrap;
  }
  body.merchant-detail-page .hero-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  body.merchant-detail-page .hero-actions .btn-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: 100%;
  }
  body.merchant-detail-page .cta-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    flex: 0 0 auto;
  }
  body.merchant-detail-page .cta-ghost {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    flex: 0 0 auto;
    white-space: nowrap;
    justify-content: center;
  }
  body.merchant-detail-page .cta-primary {
    flex: 1 1 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    justify-content: center;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Body grid & Horizontal category/series filter strip */
  body.merchant-detail-page .body {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-top: 16px !important;
  }
  body.merchant-detail-page .cat-side {
    display: none !important;
    position: static !important;
  }
  body.merchant-detail-page .m-cat-wrap {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
  }
  body.merchant-detail-page .m-cat-bar,
  body.merchant-detail-page .m-fam-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  body.merchant-detail-page .m-cat-bar::-webkit-scrollbar,
  body.merchant-detail-page .m-fam-bar::-webkit-scrollbar {
    display: none;
  }
  body.merchant-detail-page .m-fam-bar[hidden] {
    display: none !important;
  }
  body.merchant-detail-page .m-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  body.merchant-detail-page .m-cat-pill .ci {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  body.merchant-detail-page .m-cat-pill .ci img {
    width: 14px;
    height: 14px;
    object-fit: contain;
  }
  body.merchant-detail-page .m-cat-pill .ci-t {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px currentColor;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.merchant-detail-page .m-cat-pill .mc-n {
    font-family: var(--mono);
    font-size: 11px;
    color: #86868b;
  }
  body.merchant-detail-page .m-cat-pill.on {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
    font-weight: 600;
  }
  body.merchant-detail-page .m-cat-pill.on .ci img {
    filter: invert(1);
  }
  body.merchant-detail-page .m-cat-pill.on .mc-n {
    color: rgba(255, 255, 255, 0.72);
  }
  body.merchant-detail-page .m-fam-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #e9e9ee;
    color: #424245;
    font: inherit;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  body.merchant-detail-page .m-fam-pill .mc-n {
    font-family: var(--mono);
    font-size: 10.5px;
    color: #86868b;
  }
  body.merchant-detail-page .m-fam-pill .fam-tag {
    font-style: normal;
    font-size: 9.5px;
    line-height: 1;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
  }
  body.merchant-detail-page .m-fam-pill .fam-tag.image {
    background: rgba(142, 47, 219, 0.12);
    color: #8e2fdb;
  }
  body.merchant-detail-page .m-fam-pill .fam-tag.video {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
  }
  body.merchant-detail-page .m-fam-pill .fam-tag.tts,
  body.merchant-detail-page .m-fam-pill .fam-tag.audio {
    background: rgba(52, 199, 89, 0.12);
    color: #0f8b3e;
  }
  body.merchant-detail-page .m-fam-pill.on {
    background: #e8f1ff;
    color: #0d74ce;
    border-color: rgba(13, 116, 206, 0.25);
    font-weight: 600;
  }
  body.merchant-detail-page .m-fam-pill.on .mc-n {
    color: #0d74ce;
    opacity: 0.78;
  }

  /* Catalog section heading, segmented sort & search */
  body.merchant-detail-page .sec-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  body.merchant-detail-page .sec-head h2 {
    font-size: 16px;
    font-weight: 700;
  }
  body.merchant-detail-page .sort-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    gap: 3px !important;
    background: #e9e9ee !important;
    border-radius: 10px !important;
    padding: 3px !important;
  }
  body.merchant-detail-page .sort-pills::-webkit-scrollbar {
    display: none !important;
  }
  body.merchant-detail-page .sort-pill {
    flex: 0 0 auto;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  body.merchant-detail-page .sort-pill[hidden] {
    display: none !important;
  }
  body.merchant-detail-page .catalog {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    background: #fff;
  }
  body.merchant-detail-page .catalog-tools {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  body.merchant-detail-page .ftools-top {
    align-items: center !important;
    gap: 8px !important;
  }
  body.merchant-detail-page .catalog-tools .fsearch {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: #f2f2f7 !important;
  }
  body.merchant-detail-page .catalog-tools .fsearch:focus-within {
    background: #fff !important;
    border-color: #1d1d1f !important;
  }
  body.merchant-detail-page #model-search {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 16px !important;
    padding: 0 !important;
  }
  body.merchant-detail-page #model-search::placeholder {
    font-size: 13px;
    color: #8e8e93;
  }
  body.merchant-detail-page .fam-toggle {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  /* Bespoke mobile endpoint cards (#model-table.no-stack) */
  body.merchant-detail-page .catalog-scroll {
    overflow-x: visible !important;
  }
  body.merchant-detail-page #model-table,
  body.merchant-detail-page #model-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  body.merchant-detail-page #model-table thead {
    display: none !important;
  }
  body.merchant-detail-page #model-table tr.vgroup {
    display: block !important;
    width: 100% !important;
  }
  body.merchant-detail-page #model-table tr.vgroup td {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: 100% !important;
    padding: 9px 12px !important;
    background: #f7f7fa !important;
    border-bottom: 1px solid #efeff2 !important;
    white-space: nowrap;
  }
  body.merchant-detail-page #model-table tr.vgroup .vg-chev {
    flex: none;
    margin-right: 2px;
  }
  body.merchant-detail-page #model-table tr.vgroup .vgroup-name {
    flex: none;
    font-size: 13px;
    font-weight: 700;
  }
  body.merchant-detail-page #model-table tr.vgroup .vgroup-n {
    flex: none;
    margin-left: 0;
    background: #e8e8ed;
    color: #424245;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
  }
  body.merchant-detail-page #model-table tr.vgroup .vg-sum {
    flex: 1 1 0;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.merchant-detail-page #model-table tr.vgroup .vg-sum i {
    margin: 0 4px;
  }
  body.merchant-detail-page #model-table tr.model-row {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 0;
    width: 100% !important;
    padding: 12px 12px 11px !important;
    border-bottom: 1px solid #efeff2 !important;
    background: #fff !important;
  }
  body.merchant-detail-page #model-table tr.model-row > td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
    max-width: 100%;
    text-align: left !important;
  }
  body.merchant-detail-page #model-table tr.model-row > td.model-col {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: 34px !important;
  }
  body.merchant-detail-page #model-table .model-row-name {
    align-items: flex-start;
    gap: 9px;
  }
  body.merchant-detail-page #model-table .model-provider-dot {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    margin-top: 1px;
  }
  body.merchant-detail-page #model-table .model-name-text .model {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 5px;
    line-height: 1.35;
  }
  body.merchant-detail-page #model-table .model-name-text .model .mono-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1d1f;
  }
  body.merchant-detail-page #model-table .tier-pill,
  body.merchant-detail-page #model-table .chan-tag,
  body.merchant-detail-page #model-table .badge-pill,
  body.merchant-detail-page #model-table .model-type-tag,
  body.merchant-detail-page #model-table .video-token-tag {
    font-size: 10.5px !important;
    line-height: 16px !important;
    padding: 1px 6px !important;
    margin-left: 0 !important;
    max-width: 100%;
  }
  body.merchant-detail-page #model-table .model-badges {
    margin-left: 0 !important;
    gap: 4px;
  }
  body.merchant-detail-page #model-table .model-meta {
    margin-top: 4px;
    white-space: normal;
  }
  body.merchant-detail-page #model-table .model-meta .meta-note {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11.5px;
  }
  body.merchant-detail-page #model-table tr.model-row > td.act-cell {
    position: absolute;
    top: 11px;
    right: 11px;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  body.merchant-detail-page #model-table .btn-dislike {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
  }
  body.merchant-detail-page #model-table tr.model-row > td.act-cell:empty::after {
    content: '›';
    font-size: 17px;
    color: #c7c7cc;
    line-height: 1;
    padding: 0 3px;
  }
  body.merchant-detail-page #model-table tr.model-row > td.price-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 9px !important;
    padding: 7px 10px !important;
    border-radius: 9px;
    background: #f7f7fa;
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px 8px;
    width: 100% !important;
  }
  body.merchant-detail-page #model-table .price-io .io-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  body.merchant-detail-page #model-table .price-cell .cell-sub {
    margin-top: 0 !important;
    font-size: 11px !important;
    color: #6e6e73;
  }
  body.merchant-detail-page #model-table .ratio-tag {
    margin-left: 0 !important;
    font-size: 10.5px !important;
  }
  body.merchant-detail-page #model-table tr.model-row > td.h3-cell,
  body.merchant-detail-page #model-table tr.model-row > td.score-cell,
  body.merchant-detail-page #model-table tr.model-row > td.latency-cell,
  body.merchant-detail-page #model-table tr.model-row > td.p50-cell {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start !important;
    align-content: flex-start !important;
    gap: 2px 5px;
    padding: 6px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.3;
  }
  body.merchant-detail-page #model-table tr.model-row > td.h3-cell {
    grid-column: 1;
    grid-row: 3;
  }
  body.merchant-detail-page #model-table tr.model-row > td.score-cell {
    grid-column: 2;
    grid-row: 3;
  }
  body.merchant-detail-page #model-table tr.model-row > td.latency-cell {
    grid-column: 1;
    grid-row: 4;
  }
  body.merchant-detail-page #model-table tr.model-row > td.p50-cell {
    grid-column: 2;
    grid-row: 4;
  }
  body.merchant-detail-page #model-table.is-media-only tr.model-row > td.latency-cell {
    display: none !important;
  }
  body.merchant-detail-page #model-table.is-media-only tr.model-row > td.p50-cell {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  body.merchant-detail-page #model-table td[data-mlabel]::before {
    content: attr(data-mlabel);
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    color: #86868b;
    flex: 0 0 auto;
  }
  body.merchant-detail-page #model-table .h3-wrap {
    gap: 5px;
  }
  body.merchant-detail-page #model-table .h3-bars {
    gap: 2px;
  }
  body.merchant-detail-page #model-table .h3-bar {
    width: 8px;
    height: 6px;
  }
  body.merchant-detail-page #model-table .h3-pct,
  body.merchant-detail-page #model-table .sc > b {
    font-size: 12px !important;
  }
  body.merchant-detail-page #model-table .sc-row {
    gap: 7px;
  }
  body.merchant-detail-page #model-table .sc > i {
    font-size: 10.5px;
  }
  body.merchant-detail-page #model-table td[data-mlabel] .cell-sub {
    flex: 1 0 100%;
    margin-top: 1px !important;
    font-size: 10.5px !important;
    color: #8e8e93;
  }
  body.merchant-detail-page #model-table tr.vtier-detail {
    display: block !important;
    width: 100% !important;
  }
  body.merchant-detail-page #model-table tr.vtier-detail > td {
    display: block !important;
    width: 100% !important;
    padding: 7px 12px 9px !important;
    background: #fafafc !important;
    border-bottom: 1px solid #efeff2 !important;
  }
  body.merchant-detail-page #model-table tbody tr[hidden] {
    display: none !important;
  }
  body.merchant-detail-page .catalog-foot {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }

  /* Reviews, Cost calculator, and Footer */
  body.merchant-detail-page .body > aside.side {
    gap: 14px !important;
  }
  body.merchant-detail-page .mod {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
  }
  body.merchant-detail-page .mod h3 {
    font-size: 15px !important;
    font-weight: 700;
    margin-bottom: 12px !important;
  }
  body.merchant-detail-page .reviews-summary {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }
  body.merchant-detail-page .reviews-big {
    font-size: 30px !important;
    font-weight: 500 !important;
  }
  body.merchant-detail-page .rv-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    padding: 0 !important;
  }
  body.merchant-detail-page .rv-dot.on {
    width: 16px !important;
  }
  body.merchant-detail-page .star-input button {
    min-height: 36px !important;
    font-size: 24px;
  }
  body.merchant-detail-page .review-submit-btn,
  body.merchant-detail-page .review-delete-btn,
  body.merchant-detail-page .rv-all-btn {
    min-height: 36px !important;
  }
  body.merchant-detail-page .review-login-hint a {
    min-height: 0 !important;
    display: inline !important;
  }
  body.merchant-detail-page .calc-mod {
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }
  body.merchant-detail-page .calc-header {
    padding: 12px 14px !important;
  }
  body.merchant-detail-page .calc {
    padding: 14px !important;
    gap: 11px !important;
  }
  body.merchant-detail-page #calc-model {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 34px 0 12px !important;
    font-size: 16px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 13px;
    text-overflow: ellipsis;
  }
  body.merchant-detail-page .calc-input-wrap {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
  }
  body.merchant-detail-page .calc-input-wrap input {
    min-height: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }
  body.merchant-detail-page .calc-result {
    padding: 12px 14px !important;
    font-family: var(--sans) !important;
  }
  body.merchant-detail-page .calc-result .row {
    font-family: var(--sans) !important;
  }
  body.merchant-detail-page .calc-result .row > span:last-child,
  body.merchant-detail-page .calc-result .row .v {
    font-family: var(--mono) !important;
  }
  body.merchant-detail-page .footer {
    margin-top: 32px !important;
  }
  body.merchant-detail-page .footer-inner {
    padding: 20px 14px !important;
    gap: 10px !important;
  }
  body.merchant-detail-page .footer-inner .legal a {
    min-height: 32px !important;
  }
}

@media (max-width: 600px) {
  body.merchant-detail-page #mdlg-mask,
  body.merchant-detail-page #connect-mask {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  body.merchant-detail-page #mdlg-card,
  body.merchant-detail-page #connect-card {
    max-width: none !important;
    max-height: 88dvh !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 0 !important;
    padding-bottom: var(--m-safe-b);
  }
  body.merchant-detail-page .mdlg-head,
  body.merchant-detail-page .cs-head {
    padding: 16px 16px 14px !important;
    gap: 11px !important;
  }
  body.merchant-detail-page .mdlg-body,
  body.merchant-detail-page #connect-body {
    padding: 0 16px calc(18px + var(--m-safe-b)) !important;
  }
  body.merchant-detail-page .mdlg-close,
  body.merchant-detail-page .cs-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 999px !important;
  }
  body.merchant-detail-page .mdlg-try {
    min-height: 32px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }
  body.merchant-detail-page .mdlg-est .c {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
  }
  body.merchant-detail-page #mdlg-card .tier-pill,
  body.merchant-detail-page #mdlg-card .chan-tag {
    font-size: 10.5px !important;
    line-height: 16px !important;
  }
  body.merchant-detail-page #mdlg-card .mdlg-grid {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.merchant-detail-page #mdlg-card .mcs-lang,
  body.merchant-detail-page #mdlg-card .mcs-task {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  body.merchant-detail-page #mdlg-card .mcs-copy {
    white-space: nowrap !important;
    width: auto !important;
    flex: 0 0 auto;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
}

/* ── 排行榜手机端重做(纯 scoped CSS · 桌面 >900 完全不动) ───────────────────── */
@media (max-width: 900px) {
  body:has(#rb) {
    background: #f5f5f7 !important;
  }
  body:has(#rb) .design-shell,
  body:has(#rb) .design {
    min-height: 0 !important;
    background: transparent !important;
    padding-bottom: 0 !important;
  }
  body:has(#rb) .page {
    padding: 0 14px calc(36px + var(--m-safe-b)) !important;
    max-width: 100% !important;
  }
  body:has(#rb) section.screen {
    display: none !important;
  }
  body:has(#rb) .hero-head {
    margin: 12px 0 8px !important;
    gap: 4px !important;
  }
  body:has(#rb) .hero-head .crumb {
    font-size: 11.5px !important;
    color: #86868b !important;
    margin-bottom: 2px !important;
  }
  body:has(#rb) .hero-head h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.02em !important;
  }
  body:has(#rb) .rb {
    margin-top: 6px !important;
    gap: 10px !important;
  }
  body:has(#rb) .rb-head h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.01em !important;
  }
  body:has(#rb) .rb-sub {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #86868b !important;
    margin-top: 3px !important;
  }
  body:has(#rb) .rb-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body:has(#rb) .view-toggle.rb-types {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(118, 118, 128, 0.1) !important;
    border-radius: 11px !important;
    padding: 3px !important;
    gap: 2px !important;
  }
  body:has(#rb) .view-toggle.rb-types::-webkit-scrollbar {
    display: none;
  }
  body:has(#rb) .view-toggle.rb-types .vt-btn {
    flex: 1 0 auto !important;
    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
    color: #6e6e73;
  }
  body:has(#rb) .view-toggle.rb-types .vt-btn i {
    font-size: 10.5px !important;
    margin-left: 1px !important;
  }
  body:has(#rb) .view-toggle.rb-types .vt-btn.active {
    background: #fff !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }
  body:has(#rb) .rb-bar .filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 134px !important;
    gap: 8px !important;
    width: 100% !important;
  }
  body:has(#rb) #rb-search.input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
  }
  body:has(#rb) #rb-sort.select {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 26px 0 10px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background-color: #fff !important;
    color: #1d1d1f !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
  }
  body:has(#rb) .rb-vendors {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    gap: 6px !important;
    padding: 0 0 2px !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body:has(#rb) .rb-vendors::-webkit-scrollbar {
    display: none;
  }
  body:has(#rb) .rb-vpill {
    flex: 0 0 auto !important;
    height: 28px !important;
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    color: #424245 !important;
  }
  body:has(#rb) .rb-vpill.active {
    background: #1d1d1f !important;
    border-color: #1d1d1f !important;
    color: #fff !important;
  }
  body:has(#rb) .rb-table-wrap {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  body:has(#rb) .rb-table-wrap .rb-table {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  body:has(#rb) .rb-table thead {
    display: none !important;
  }
  body:has(#rb) tbody#rb-tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  body:has(#rb) .rb-table tbody tr {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 68px !important;
    column-gap: 0 !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
    padding: 11px 12px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025) !important;
  }
  body:has(#rb) .rb-table tbody tr:hover {
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025) !important;
  }
  body:has(#rb) .rb-table tbody tr:has(.rb-empty) {
    display: block !important;
    padding: 28px 16px !important;
  }
  body:has(#rb) .rb-table tbody td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    background: transparent !important;
    white-space: normal !important;
  }
  body:has(#rb) .rb-table tbody td.rb-empty {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-rank {
    grid-column: 1 / 2;
    grid-row: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding-right: 6px !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-rank .rb-rank {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 8px !important;
    background: #f5f5f7 !important;
    font-family: var(--mono);
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #424245 !important;
  }
  body:has(#rb) .rb-table tbody tr:nth-child(1) td.rb-c-rank .rb-rank.top {
    background: #fef3c7 !important;
    color: #92400e !important;
  }
  body:has(#rb) .rb-table tbody tr:nth-child(2) td.rb-c-rank .rb-rank.top {
    background: #e8edf3 !important;
    color: #334155 !important;
  }
  body:has(#rb) .rb-table tbody tr:nth-child(3) td.rb-c-rank .rb-rank.top {
    background: #ffedd5 !important;
    color: #9a3412 !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-rank .rb-rank.none {
    color: #aeaeb2 !important;
    font-weight: 500 !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-rank .rank-change {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    height: 15px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    border-radius: 4px !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-rank .rank-change.flat {
    display: none !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-model {
    grid-column: 2 / 4;
    grid-row: 1;
    padding-right: 8px !important;
  }
  body:has(#rb) .rb-table .rb-mcell {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
  }
  body:has(#rb) .rb-table .rb-logo {
    width: 32px !important;
    height: 32px !important;
    padding: 5px !important;
    margin-top: 0 !important;
    border-radius: 9px !important;
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    flex: none !important;
  }
  body:has(#rb) .rb-table .rb-logo-txt {
    font-size: 13px !important;
  }
  body:has(#rb) .rb-table .rb-c-model a {
    display: block !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #1d1d1f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    min-height: 0 !important;
  }
  body:has(#rb) .rb-table .rb-c-model small {
    display: block !important;
    margin-top: 2px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    color: #86868b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-go {
    display: flex !important;
    grid-column: 4 / 5;
    grid-row: 1;
    justify-content: flex-end !important;
    padding-left: 4px !important;
  }
  body:has(#rb) .rb-table .rb-go {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    white-space: nowrap !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-tok,
  body:has(#rb) .rb-table tbody td.rb-c-price,
  body:has(#rb) .rb-table tbody td.rb-c-prov {
    margin-top: 9px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    align-self: stretch !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-tok {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-right: 8px !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-price {
    grid-column: 3 / 4;
    grid-row: 2;
    padding-right: 8px !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-prov {
    display: block !important;
    grid-column: 4 / 5;
    grid-row: 2;
    text-align: right !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-ratio {
    display: none !important;
  }
  body:has(#rb) .rb-table tbody td.rb-c-tok::before,
  body:has(#rb) .rb-table tbody td.rb-c-price::before,
  body:has(#rb) .rb-table tbody td.rb-c-prov::before {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    color: #86868b;
    margin-bottom: 3px;
  }
  body:has(#rb) .rb-table tbody td.rb-c-tok::before {
    content: "今日用量";
  }
  body:has(#rb) .rb-table tbody td.rb-c-price::before {
    content: "本站最低价";
  }
  body:has(#rb) .rb-table tbody td.rb-c-prov::before {
    content: "在售";
  }
  html[lang^="en"] body:has(#rb) .rb-table tbody td.rb-c-tok::before {
    content: "Today";
  }
  html[lang^="en"] body:has(#rb) .rb-table tbody td.rb-c-price::before {
    content: "Min price";
  }
  html[lang^="en"] body:has(#rb) .rb-table tbody td.rb-c-prov::before {
    content: "Providers";
  }
  body:has(#rb) .rb-table td.rb-c-tok strong,
  body:has(#rb) .rb-table td.rb-c-price strong,
  body:has(#rb) .rb-table td.rb-c-prov strong {
    display: block !important;
    font-family: var(--mono);
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1d1d1f !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
  }
  body:has(#rb) .rb-table td.rb-c-tok small {
    display: block !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    color: #86868b !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:has(#rb) .rb-table td.rb-c-price .rb-m-ratio {
    display: inline-block !important;
    width: fit-content !important;
    font-style: normal !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    margin-top: 3px !important;
    background: rgba(25, 195, 125, 0.12) !important;
    color: #0f9f63 !important;
  }
  body:has(#rb) .rb-table td.rb-c-price .rb-m-ratio.over {
    background: rgba(180, 86, 31, 0.11) !important;
    color: #b4561f !important;
  }
  body:has(#rb) .rb-table td.rb-c-price:not(:has(.rb-m-ratio)) small {
    display: block !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    color: #86868b !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:has(#rb) .rb-table td.rb-c-price:has(.rb-m-ratio) small {
    display: none !important;
  }
  body:has(#rb) .rb-foot {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body:has(#rb) .rb-note {
    text-align: center !important;
    font-size: 11.5px !important;
    color: #86868b !important;
  }
  body:has(#rb) .rb-more-btn {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
}

@supports (appearance: base-select) {
  @media (max-width: 900px) {
    body:has(#rb) #rb-sort.select {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 4px !important;
      padding: 0 10px !important;
    }
  }
}

/* ── 定价页手机端重做(纯 scoped CSS · 不动支付代码与弹窗) ─────────────────── */
@media (max-width: 900px) {
  body:has(#pay-modal) {
    background: #f5f5f7 !important;
  }
  body:has(#pay-modal) .page {
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding: 18px 14px 28px !important;
    max-width: 100% !important;
  }
  body:has(#pay-modal) .page-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin: 0 0 18px !important;
    padding: 2px 4px 0 !important;
  }
  body:has(#pay-modal) .page-head h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    color: #1d1d1f !important;
  }
  body:has(#pay-modal) .page-head .lede {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #6e6e73 !important;
    text-align: center !important;
    margin: 0 !important;
    max-width: 340px !important;
  }
  body:has(#pay-modal) .page-head > div:not(.billing-pills) {
    margin: 2px 0 8px !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  body:has(#pay-modal) .page-head > div:not(.billing-pills) a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: rgba(0, 102, 204, 0.08) !important;
    color: #0066cc !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
  }
  body:has(#pay-modal) .page-head > #billing.billing-pills {
    display: inline-grid !important;
    grid-template-columns: auto auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 3px !important;
    gap: 2px !important;
    background: rgba(118, 118, 128, 0.12) !important;
    border-radius: 999px !important;
  }
  body:has(#pay-modal) .page-head > #billing.billing-pills button {
    width: auto !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6e6e73 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }
  body:has(#pay-modal) .page-head > #billing.billing-pills button.on {
    background: #fff !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09), 0 0 0 0.5px rgba(0, 0, 0, 0.04) !important;
  }
  body:has(#pay-modal) .page-head > #billing.billing-pills .save {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 1.5px 6px !important;
    border-radius: 999px !important;
    margin-left: 0 !important;
    background: rgba(52, 199, 89, 0.16) !important;
    color: #1e7e34 !important;
  }
  body:has(#pay-modal) .plans {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
  body:has(#pay-modal) .plans .plan,
  body:has(#pay-modal) .plans .plan + .plan {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 16px !important;
    padding: 18px 16px 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body:has(#pay-modal) .plans .plan.featured {
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.035) 0%, #ffffff 44%) !important;
    border: 1.5px solid rgba(0, 113, 227, 0.45) !important;
    box-shadow: 0 10px 26px -14px rgba(0, 113, 227, 0.28) !important;
  }
  body:has(#pay-modal) .plans .plan .tier-row {
    align-items: center !important;
    margin-bottom: 8px !important;
  }
  body:has(#pay-modal) .plans .plan h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
  }
  body:has(#pay-modal) .plans .plan .badge-rec {
    background: #0071e3 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
  }
  body:has(#pay-modal) .plans .plan .price-row {
    margin: 0 0 14px !important;
  }
  body:has(#pay-modal) .plans .plan .currency {
    font-size: 17px !important;
  }
  body:has(#pay-modal) .plans .plan .price {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
  }
  body:has(#pay-modal) .plans .plan .price-unit {
    font-size: 13px !important;
    color: #6e6e73 !important;
  }
  body:has(#pay-modal) .plans .plan .cta {
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #f2f2f7 !important;
    color: #1d1d1f !important;
  }
  body:has(#pay-modal) .plans .plan.featured .cta {
    background: #1d1d1f !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(29, 29, 31, 0.16) !important;
  }
  body:has(#pay-modal) .plans .plan .features {
    margin: 14px 0 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    gap: 7px !important;
  }
  body:has(#pay-modal) .plans .plan .features li {
    font-size: 13px !important;
    line-height: 1.45 !important;
    gap: 8px !important;
    color: #424245 !important;
  }
  body:has(#pay-modal) .plans .plan .features li.features-head {
    font-size: 12px !important;
    color: #86868b !important;
    margin-bottom: 2px !important;
    gap: 0 !important;
  }
  body:has(#pay-modal) .plans .plan .features li.features-head::before {
    display: none !important;
  }
  body:has(#pay-modal) .plans .plan .features li.feat-guarantee {
    background: rgba(42, 142, 63, 0.08) !important;
    border-radius: 8px !important;
    padding: 6px 9px !important;
    margin-top: 2px !important;
    font-size: 12.5px !important;
    color: #2a8e3f !important;
  }
  body:has(#pay-modal) footer.foot {
    padding: 18px 14px calc(24px + var(--m-safe-b)) !important;
    background: transparent !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  body:has(#pay-modal) footer.foot .foot-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  body:has(#pay-modal) footer.foot .links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  body:has(#pay-modal) footer.foot a {
    min-height: 28px !important;
  }
}

/* ── Unified Apple Mobile Overhaul: /console, /distributor, /admin (<=900 / <=640) ── */
@media (max-width: 900px) {
  /* /console top shell: collapse .main internal scroll so .topbar sticks seamlessly at 44px */
  body.m-has-tabbar .app .main {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
  }
  /* /console top shell: crisp 44px dark bar + 46px frosted topbar with page title */
  body.m-has-tabbar:not([data-has-mobilenav]) .app .side {
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    background: #141416 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  body.m-has-tabbar:not([data-has-mobilenav]) .app .side .side-brand {
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    gap: 7px !important;
    flex: 0 1 auto !important;
  }
  body.m-has-tabbar .app .side .console-mobile-menu-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
  }
  body.m-has-tabbar .main .topbar {
    position: sticky !important;
    top: 44px !important;
    z-index: 40 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    background: var(--bg, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateZ(0);
  }
  [data-theme="dark"] body.m-has-tabbar .main .topbar {
    background: #18181a !important;
  }
  body.m-has-tabbar .main .topbar .crumbs {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  body.m-has-tabbar .main .topbar .crumbs > span:not(.cur) {
    display: none !important;
  }
  body.m-has-tabbar .main .topbar .crumbs .cur {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.m-has-tabbar .topbar .topbar-actions {
    flex: 0 0 auto !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow: visible !important;
  }
  body.m-has-tabbar .topbar #notifBell,
  body.m-has-tabbar .topbar #topbar-invite {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    justify-content: center !important;
  }
  body.m-has-tabbar[data-active-role="provider"] .topbar #topbar-invite,
  body.m-has-tabbar[data-active-role="provider"] .topbar #topbar-topup {
    display: none !important;
  }
  body.m-has-tabbar .topbar #topbar-invite .tb-inv-lbl {
    display: none !important;
  }
  body.m-has-tabbar .topbar #topbar-topup,
  body.m-has-tabbar .topbar .btn-primary.role-merchant {
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    gap: 3px !important;
  }
  body.m-has-tabbar .topbar #topbar-balance {
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
  }
  body.m-has-tabbar .topbar #topbar-balance-val {
    font-size: 11.5px !important;
  }
  body.m-has-tabbar .topbar .role-pill {
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 7px !important;
    font-size: 11.5px !important;
    border-radius: 999px !important;
  }
  body.m-has-tabbar #notifDropdown {
    position: fixed !important;
    top: 96px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 64dvh !important;
  }
  .m-tabbar {
    z-index: 980 !important;
    transform: translateZ(0);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04);
  }
  /* Console More drawer account card + dark theme support (beats #mobile-enhance-style) */
  body .console-mobile-panel .console-mobile-head {
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--rule, rgba(0, 0, 0, 0.08));
  }
  body .console-mobile-panel .console-mobile-body {
    padding: 10px 14px calc(22px + var(--m-safe-b));
  }
  body .m-console-account-card[hidden] {
    display: none !important;
  }
  body .m-console-account-card {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule, rgba(0, 0, 0, 0.08));
  }
  body .m-acc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-soft, #f5f5f7);
  }
  body .m-acc-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink, #1d1d1f);
    color: var(--bg, #fff);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
    flex: 0 0 auto;
  }
  body .m-acc-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  body .m-acc-meta b {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink, #1d1d1f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .m-acc-meta span {
    font-size: 11.5px;
    color: var(--ink-dim, #6e6e73);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .m-acc-logout {
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px !important;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, 0.28);
    background: rgba(255, 59, 48, 0.08);
    color: #d92d20;
    font: 600 12px/1 inherit;
    cursor: pointer;
    white-space: nowrap;
  }
  :root[data-theme="dark"] body .console-mobile-panel {
    background: #1c1c1e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f7 !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-head,
  :root[data-theme="dark"] body .mobile-panel .mobile-panel-head {
    background: #1c1c1e !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
  }
  :root[data-theme="dark"] body .mobile-panel {
    background: #1c1c1e !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f7 !important;
  }
  :root[data-theme="dark"] body .mobile-panel .mobile-panel-title {
    color: #f5f5f7 !important;
  }
  :root[data-theme="dark"] body .mobile-panel .mobile-panel-close {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-title {
    color: #f5f5f7 !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-close {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-section {
    color: #a1a1a6 !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-link {
    color: #f5f5f7 !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .console-mobile-link.on {
    background: rgba(41, 151, 255, 0.18) !important;
    color: #64b5ff !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .m-drawer-utils {
    border-top-color: rgba(255, 255, 255, 0.10) !important;
  }
  :root[data-theme="dark"] body .console-mobile-panel .m-drawer-util-btn {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  :root[data-theme="dark"] body .m-console-account-card {
    border-top-color: rgba(255, 255, 255, 0.10);
  }
  :root[data-theme="dark"] body .m-acc-row {
    background: #2c2c2e !important;
  }
  :root[data-theme="dark"] body .m-acc-av {
    background: #f5f5f7 !important;
    color: #1c1c1e !important;
  }
  :root[data-theme="dark"] body .m-acc-logout {
    color: #ff6961 !important;
    border-color: rgba(255, 105, 97, 0.34) !important;
    background: rgba(255, 105, 97, 0.14) !important;
  }

  /* /distributor topbar, hub tabs & metrics (scoped to dist.html) */
  body:has(#dist-topbar-balance) .topbar {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }
  body:has(#dist-topbar-balance) .topbar .nav-toggle,
  body:has(#dist-topbar-balance) .topbar .lang-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    font-size: 11.5px !important;
  }
  body:has(#dist-topbar-balance) .topbar .crumbs {
    min-width: 0;
    overflow: hidden;
  }
  body:has(#dist-topbar-balance) .topbar .crumbs .cur {
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body:has(#dist-topbar-balance) .topbar-actions {
    gap: 5px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  body:has(#dist-topbar-balance) .topbar .top-bell-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }
  body:has(#dist-topbar-balance) #dist-topbar-balance {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }
  body:has(#dist-topbar-balance) .topbar .btn-primary {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
  body:has(#dist-topbar-balance) .topbar .role-pill {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
  body:has(#dist-topbar-balance) .hub-nav-bar,
  body:has(#dist-topbar-balance) .v2-subtabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 2px !important;
  }
  body:has(#dist-topbar-balance) .hub-nav-bar::-webkit-scrollbar,
  body:has(#dist-topbar-balance) .v2-subtabs::-webkit-scrollbar {
    display: none;
  }
  body:has(#dist-topbar-balance) .hub-nav-tab,
  body:has(#dist-topbar-balance) .v2-subtab {
    flex: 0 0 auto;
    height: 36px !important;
    padding: 0 11px !important;
  }
  body:has(#dist-topbar-balance) #dash-range-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  body:has(#dist-topbar-balance) #dash-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body:has(#dist-topbar-balance) #dash-metrics > :first-child {
    grid-column: 1 / -1;
  }

  /* /admin shell, quick tabs & stat grid (scoped to body[data-role]) */
  body[data-role] .topbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }
  [data-theme="dark"] body[data-role] .topbar {
    background: rgba(24, 24, 26, 0.92) !important;
  }
  body[data-role] .topbar .nav-toggle,
  body[data-role] .topbar .icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    flex: 0 0 34px !important;
  }
  body[data-role] .topbar .crumbs {
    min-width: 0;
    flex: 0 1 auto !important;
    overflow: hidden;
  }
  body[data-role] .topbar .crumbs .cur {
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }
  body[data-role] .topbar .search {
    min-width: 0 !important;
    width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    order: 0 !important;
  }
  body[data-role] .topbar .search input {
    min-height: 32px !important;
    font-size: 13px !important;
  }
  body[data-role] .topbar .search kbd {
    display: none !important;
  }
  body[data-role] .console-quick-tabs.light {
    position: sticky !important;
    top: 48px !important;
    z-index: 4 !important;
    padding: 7px 12px 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
  }
  [data-theme="dark"] body[data-role] .console-quick-tabs.light {
    background: rgba(24, 24, 26, 0.92) !important;
  }
  body[data-role] .page {
    padding: 14px 12px calc(32px + var(--m-safe-b)) !important;
  }
  body[data-role] .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body[data-role] .card-head {
    padding: 12px 14px !important;
  }
  body[data-role] .card-body {
    padding: 12px 14px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  /* /distributor narrow screen: keep search as a compact 32x32 icon pill */
  body:has(#dist-topbar-balance) .topbar .search {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    order: 0 !important;
    flex: 0 0 32px !important;
    border-radius: 9px !important;
    justify-content: center !important;
  }
  body:has(#dist-topbar-balance) .topbar .search input {
    display: none !important;
  }

  /* /console narrow screens (<=640): compact topbar + every console page polish */
  body.m-has-tabbar .topbar .lang-toggle {
    display: none !important;
  }
  body.m-has-tabbar .page {
    padding: 14px 12px 24px !important;
  }
  body.m-has-tabbar .page-head h1 {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }
  body.m-has-tabbar .page-head .sub {
    font-size: 12.5px !important;
  }
  body.m-has-tabbar .stat {
    padding: 12px 13px !important;
    border-radius: 12px !important;
  }
  body.m-has-tabbar .stat .val {
    font-size: 21px !important;
  }
  body.m-has-tabbar .card {
    border-radius: 13px !important;
  }
  body.m-has-tabbar .card-head {
    padding: 12px 14px !important;
  }
  body.m-has-tabbar .card-body {
    padding: 14px !important;
  }
  body.m-has-tabbar .range-pills:has(> button:nth-child(4)) {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* #overview bento: 1 dark balance -> 2 KPIs -> 1 success rate + compact trend */
  body.m-has-tabbar .page[data-page="overview"] .ov-grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-grid4 > .ov-card-dark,
  body.m-has-tabbar .page[data-page="overview"] .ov-grid4 > .ov-card:nth-child(4) {
    grid-column: 1 / -1 !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-card {
    padding: 14px !important;
    border-radius: 13px !important;
    gap: 8px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-num-xl {
    font-size: 26px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-num-lg {
    font-size: 21px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-trend {
    height: 148px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-top-util {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-top-util .ov-link2 {
    min-height: 32px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }
  body.m-has-tabbar .page[data-page="overview"] .ov-new-actions .btn-primary,
  body.m-has-tabbar .page[data-page="overview"] .ov-new-actions .btn-secondary {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  /* #keys: keep master key & eye icon on one row + 2-col CTAs + scrollable filter tabs */
  body.m-has-tabbar .page[data-page="keys"] .kl-hero {
    padding: 14px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-hero-val {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-hero-val code {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 14px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-hero-val .kl-icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-hero-act {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-hero-act > button {
    justify-content: center;
    min-height: 36px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-split-right {
    padding: 11px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-mode button {
    font-size: 12px !important;
    padding: 7px 4px !important;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    max-width: 100%;
    scrollbar-width: none;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-tabs::-webkit-scrollbar {
    display: none;
  }
  body.m-has-tabbar .page[data-page="keys"] .kl-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* #usage */
  body.m-has-tabbar .page[data-page="usage"] .u-bars {
    height: 140px !important;
  }
  body.m-has-tabbar .page[data-page="usage"] .chart-wrap {
    height: 210px !important;
  }

  /* #logs */
  body.m-has-tabbar .page[data-page="logs"] .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 12px !important;
  }
  body.m-has-tabbar .page[data-page="logs"] .filter-bar #logs-search {
    grid-column: 1 / -1;
    min-height: 36px !important;
  }
  body.m-has-tabbar .page[data-page="logs"] .filter-bar select {
    min-width: 0;
    width: 100%;
    min-height: 36px !important;
  }
  body.m-has-tabbar .page[data-page="logs"] .filter-bar .range-pills {
    margin-left: 0 !important;
    justify-self: start;
    align-self: center;
  }
  body.m-has-tabbar .page[data-page="logs"] #logs-export-btn {
    grid-column: 1;
    justify-self: start;
    margin-left: 0 !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border: 1px solid var(--rule-2);
  }
  body.m-has-tabbar .page[data-page="logs"] #logs-filter-status.right {
    grid-column: 2;
    justify-self: end;
    text-align: right;
    width: auto !important;
    font-size: 11.5px;
  }
  body.m-has-tabbar #logs-prev,
  body.m-has-tabbar #logs-next {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  /* #tasks */
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-top {
    padding: 12px 12px 8px !important;
    gap: 8px !important;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-seg-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    max-width: 100%;
    scrollbar-width: none;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-seg-tabs::-webkit-scrollbar {
    display: none;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-seg-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 11px !important;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 0 12px 12px !important;
    align-items: center;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub > div:not(.right):not(.task-search-wrap) {
    width: 100%;
    min-width: 0;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub > div:not(.right):not(.task-search-wrap) > button,
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub > select,
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub > button:not([aria-label*="重置"]) {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: space-between;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub > button[aria-label*="重置"] {
    justify-self: start;
  }
  body.m-has-tabbar .page[data-page="tasks"] .task-search-wrap,
  body.m-has-tabbar .page[data-page="tasks"] .task-bar-sub .right {
    grid-column: 1 / -1;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
  .task-modal-shell {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .task-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88dvh !important;
    border-radius: 18px 18px 0 0 !important;
  }

  /* #billing (layout spacing only) */
  body.m-has-tabbar .billing-page .topup-presets {
    gap: 8px !important;
  }
  body.m-has-tabbar .billing-page #billing-tx-card .card-head {
    gap: 8px !important;
  }
  body.m-has-tabbar .billing-page #billing-tx-card .card-head .pill {
    font-size: 11.5px !important;
  }

  /* #settings */
  body.m-has-tabbar .page[data-page="settings"] .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.m-has-tabbar .page[data-page="settings"] .field-meta {
    position: static !important;
    right: auto !important;
    top: auto !important;
    padding: 0 !important;
    background: transparent !important;
    margin-top: 4px;
    font-size: 11.5px !important;
  }
  body.m-has-tabbar .page[data-page="settings"] .field.full:has(#profile-avatar) {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
  body.m-has-tabbar #profile-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
  body.m-has-tabbar .page[data-page="settings"] .set-row {
    padding: 12px 14px !important;
    gap: 12px !important;
    align-items: center !important;
  }
  body.m-has-tabbar .page[data-page="settings"] .set-row > .ios-switch {
    align-self: center !important;
  }
  body.m-has-tabbar #bl-email {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px;
    display: block;
  }
  body.m-has-tabbar .page[data-page="settings"] .card-foot {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  /* Provider pages in /console (#merchant-overview, #models, #publish) */
  body.m-has-tabbar .mdl-health-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    padding: 10px 12px 0 !important;
  }
  body.m-has-tabbar .mdl-health-chips::-webkit-scrollbar {
    display: none;
  }
  body.m-has-tabbar .mdl-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body.m-has-tabbar .pp-grid-4,
  body.m-has-tabbar .pp-grid-3 {
    gap: 10px !important;
  }
  body.m-has-tabbar .pub2-bar {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  body.m-has-tabbar .pub2-actions {
    margin-left: 0 !important;
    width: 100%;
  }
  body.m-has-tabbar .pub2-actions > * {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* ── /models & / Homepage Mobile Conflict Fixes (scoped <=900 / <=600; desktop untouched) ── */
@media (max-width: 900px) {
  /* /models: hide ghost split-view in catalog mode & clean stage bottom spacing */
  body:has(.m-models-catalog):not(.state-split) #split-view {
    display: none !important;
  }
  body:has(.m-models-catalog) .stage {
    padding: 0 14px 24px !important;
  }

  /* /models state-split: keep .crumbs horizontal on a single clean bar */
  body:has(.m-models-catalog).state-split .page-head {
    max-height: none !important;
    overflow: visible !important;
    padding: 8px 14px 10px !important;
    gap: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  body:has(.m-models-catalog).state-split .page-head > .page-title-row {
    display: none !important;
  }
  body:has(.m-models-catalog).state-split .page-head > .crumbs {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
    min-height: 32px;
  }
  body:has(.m-models-catalog).state-split .crumbs .back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px 0 6px !important;
    margin-right: 4px !important;
    border-radius: 999px;
    background: #f2f2f7;
    color: #1d1d1f;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  body:has(.m-models-catalog).state-split .crumbs a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 32px !important;
    height: 32px;
    white-space: nowrap;
    font-size: 12.5px;
    color: #6e6e73;
  }
  body:has(.m-models-catalog).state-split .crumbs .sep,
  body:has(.m-models-catalog).state-split .crumbs > span {
    white-space: nowrap;
    font-size: 12.5px;
  }

  /* /models: stack footer cleanly with nowrap links */
  body:has(.m-models-catalog) footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 16px 0 0 !important;
    padding: 20px 14px calc(24px + var(--m-safe-b)) !important;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  body:has(.m-models-catalog) footer > span:last-child {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 16px !important;
    align-items: center;
  }
  body:has(.m-models-catalog) footer a {
    min-height: 30px !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    color: #6e6e73;
  }

  /* /models: 调用示例 (.mlx-modal) & 创建 Key (.mlx-ck) compact mobile controls */
  body:has(.m-models-catalog) .mlx-modal,
  body:has(.m-models-catalog) .mlx-ck {
    padding: 12px !important;
    z-index: 1050 !important;
  }
  body:has(.m-models-catalog) .mlx-ex-head {
    padding: 14px 14px 0 16px !important;
  }
  body:has(.m-models-catalog) .mlx-ex-x,
  body:has(.m-models-catalog) .mlx-ck-x {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    background: #f2f2f7 !important;
    flex: 0 0 34px;
  }
  body:has(.m-models-catalog) .mlx-ex-body {
    padding: 12px 16px 16px !important;
    gap: 12px !important;
  }
  body:has(.m-models-catalog) .mlx-ex-grid {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
  }
  body:has(.m-models-catalog) .mlx-ex-v {
    align-items: center;
    gap: 6px !important;
  }
  body:has(.m-models-catalog) .mlx-ex-v code {
    flex: 1 1 auto;
    font-size: 12.5px !important;
    line-height: 1.45;
  }
  body:has(.m-models-catalog) .mlx-ex-v .mlx-qc-copy {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin-left: 0 !important;
    border-radius: 6px !important;
    background: #f2f2f7 !important;
  }
  body:has(.m-models-catalog) .mlx-ex-link {
    min-height: 32px !important;
    height: 32px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
  }
  body:has(.m-models-catalog) .mlx-ex-seg button {
    min-height: 32px !important;
    height: 32px;
    padding: 0 12px !important;
    font-size: 12.5px;
  }
  body:has(.m-models-catalog) .mlx-ex-foot {
    padding: 10px 16px !important;
  }
  body:has(.m-models-catalog) .mlx-ex-foot a,
  body:has(.m-models-catalog) .mlx-ex-foot button {
    min-height: 36px !important;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }

  /* / Homepage: keep top nav fixed across footer too (footer sits outside #homeHeroRoot) */
  body:has(#homeHeroRoot) #homeHeroRoot {
    padding-top: 61px;
  }
  body:has(#homeHeroRoot) .nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none !important;
    height: 61px;
    box-sizing: border-box;
    z-index: 90;
  }

  /* / Homepage: tablet/narrow cobrand ring insets & compact footer */
  body:has(#homeHeroRoot) .cobrand-orbit::before {
    inset: 10px 40px;
  }
  body:has(#homeHeroRoot) .cobrand-orbit::after {
    inset: 24px 90px;
  }
  body:has(#homeHeroRoot) footer.footer {
    margin-top: 24px !important;
  }
  body:has(#homeHeroRoot) .footer-inner {
    padding: 32px 16px calc(24px + var(--m-safe-b)) !important;
  }
  body:has(#homeHeroRoot) .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
  }
  body:has(#homeHeroRoot) .footer-brand {
    gap: 8px !important;
  }
  body:has(#homeHeroRoot) .footer-col h4 {
    margin-bottom: 8px !important;
    font-size: 13px !important;
  }
  body:has(#homeHeroRoot) .footer-col ul {
    gap: 2px !important;
  }
  body:has(#homeHeroRoot) .footer-col a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 30px !important;
    padding: 2px 0 !important;
    font-size: 13px !important;
  }
  body:has(#homeHeroRoot) .footer-bottom {
    margin-top: 24px !important;
    padding-top: 16px !important;
    gap: 8px !important;
  }
  body:has(#homeHeroRoot) .footer-bottom .legal {
    gap: 16px !important;
  }
  body:has(#homeHeroRoot) .footer-bottom .legal a {
    min-height: 30px !important;
    justify-content: flex-start !important;
  }
  body:has(#homeHeroRoot) .footer-entity {
    margin-top: 10px !important;
    line-height: 1.6 !important;
  }
  body:has(#homeHeroRoot) .footer-entity a {
    display: inline !important;
    min-height: 0 !important;
  }
}

@media (max-width: 600px) {
  /* / Homepage: compact hero API CTA, preview slides, fund safety orbit, providers */
  body:has(#homeHeroRoot) .hero-api .ha-doc {
    min-height: 36px !important;
    height: 36px;
    padding: 0 14px !important;
    margin-top: 2px;
  }
  body:has(#homeHeroRoot) .pv-poster-text {
    padding: 18px 16px !important;
  }
  body:has(#homeHeroRoot) .pv-poster-h1 {
    font-size: 21px !important;
  }
  body:has(#homeHeroRoot) .pv-poster-sub {
    font-size: 12.5px !important;
    margin-bottom: 12px !important;
  }
  body:has(#homeHeroRoot) .pv-poster-cta {
    margin-top: 12px !important;
    min-height: 36px !important;
    height: 36px;
    padding: 0 16px !important;
    font-size: 13px !important;
  }
  body:has(#homeHeroRoot) .pv-upd-feed {
    padding: 16px !important;
    justify-content: flex-start !important;
  }
  body:has(#homeHeroRoot) .pv-upd-empty {
    padding: 20px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.08);
  }
  body:has(#homeHeroRoot) .hero-many-in {
    min-height: 340px;
  }
  body:has(#homeHeroRoot) .hero-many-cta {
    min-height: 38px !important;
    padding: 8px 18px !important;
  }
  body:has(#homeHeroRoot) .safety {
    margin: 56px auto 40px !important;
    padding: 0 16px !important;
  }
  body:has(#homeHeroRoot) .safety-cobrand {
    margin-bottom: 24px !important;
  }
  body:has(#homeHeroRoot) .cobrand-orbit {
    height: 148px !important;
    overflow: hidden;
  }
  body:has(#homeHeroRoot) .cobrand-orbit::before {
    inset: 16px 24px !important;
    border-width: 1.5px;
    opacity: 0.65;
    transform: rotate(-4deg);
  }
  body:has(#homeHeroRoot) .cobrand-orbit::after {
    inset: 28px 44px !important;
    border-width: 1.5px;
    opacity: 0.55;
    transform: rotate(5deg);
  }
  body:has(#homeHeroRoot) .cobrand-beam {
    left: 48px !important;
    right: 48px !important;
    height: 4px !important;
  }
  body:has(#homeHeroRoot) .cobrand-node .ico {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }
  body:has(#homeHeroRoot) .cobrand-node .lbl {
    font-size: 13px !important;
  }
  body:has(#homeHeroRoot) .cobrand-seal {
    width: 100px !important;
    height: 100px !important;
  }
  body:has(#homeHeroRoot) .cobrand-seal .t1 {
    font-size: 10px !important;
  }
  body:has(#homeHeroRoot) .cobrand-seal .t2 {
    font-size: 15px !important;
  }
  body:has(#homeHeroRoot) .safety-head {
    padding-bottom: 20px !important;
    margin-bottom: 12px !important;
  }
  body:has(#homeHeroRoot) .safety-eyebrow {
    margin-bottom: 10px !important;
  }
  body:has(#homeHeroRoot) .safety-title {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }
  body:has(#homeHeroRoot) .safety-body {
    gap: 24px !important;
  }
  body:has(#homeHeroRoot) .safety-pillar {
    padding: 14px 0 !important;
  }
  body:has(#homeHeroRoot) .safety-aside {
    padding: 22px 20px !important;
  }
  body:has(#homeHeroRoot) .safety-aside-desc {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
  }
  body:has(#homeHeroRoot) .safety-stats {
    gap: 18px 16px !important;
  }
  body:has(#homeHeroRoot) .safety-stat .num {
    font-size: 28px !important;
  }
  body:has(#homeHeroRoot) .providers {
    margin: 48px auto 36px !important;
    padding: 0 16px !important;
  }
  body:has(#homeHeroRoot) .providers-title {
    margin-bottom: 18px !important;
  }
}

/* ── 2026-12-01 / 手机端顶栏防重叠、活动横幅防裁切、首页粘性导航与全局正圆关闭按钮 ──────── */
@media (max-width: 900px) {
  /* A. 公开页顶栏防重叠(.nav-cta 不设 overflow:hidden 以免裁切 .nav-account-menu) */
  .nav,
  .site-nav {
    gap: 8px !important;
  }
  .nav .brand,
  .site-nav .brand {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .nav .nav-cta,
  .site-nav .nav-cta {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }
  .nav .mobile-menu-btn,
  .site-nav .mobile-menu-btn {
    display: inline-flex !important;
  }
  .nav .mobile-menu-btn,
  .site-nav .mobile-menu-btn,
  .nav .lang-toggle,
  .site-nav .lang-toggle,
  .nav .nav-bell,
  .site-nav .nav-bell,
  .nav .aic-ann-bell,
  .site-nav .aic-ann-bell {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 34px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  /* 首页有顶部活动条时不用 fixed 压住 .aic-ticker,改为文档流内 sticky 吸顶 */
  body:has(#homeHeroRoot):has(.aic-ticker) #homeHeroRoot {
    padding-top: 0 !important;
  }
  body:has(#homeHeroRoot):has(.aic-ticker) .nav {
    position: sticky !important;
    top: 0 !important;
  }

  /* B. 全局弹窗/抽屉/气泡正圆关闭按钮归一化(覆盖全局 button min-height:40px 导致的椭圆拉伸) */
  #wwPoster .wwp-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .aic-annm-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .aic-annm-art .aic-annm-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .aic-sqr-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .lm-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .aicu-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .act-wm-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .act-bank-dclose:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .act-promo-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  #activity-promo-explain-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .invite-qr-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .invite-quick-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .bdd-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mdlg-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .cs-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mp-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .m-msheet-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mlx-ex-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mlx-ck-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mlx-qtip-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .ick-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .mobile-panel-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .console-mobile-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .m-rail-sheet-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .modal-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .draft-modal-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .account-modal-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .rv-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .drawer-head .close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .drawer-head .drawer-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .drawer-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .sr-modal-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .scpm-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .float-contact-pop-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .aic-dw-x:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .ent-float-close:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .usdt-qr-close[aria-label]:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .pay-qr-close[aria-label]:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  .wal-pay-qr-close[aria-label]:not([hidden]):not([style*="display:none"]):not([style*="display: none"]),
  button#sub-detail-close:not([hidden]),
  button#bank-detail-close:not([hidden]),
  button#probe-panel-close:not([hidden]),
  button#task-modal-close:not([hidden]),
  button[data-log-drawer-close]:not([hidden]),
  button[data-kl-pop-close]:not([hidden]),
  button[aria-label="关闭"][style*="border-radius:50%"]:not([hidden]),
  button[aria-label="关闭"][style*="border-radius: 50%"]:not([hidden]),
  button[aria-label="Close"][style*="border-radius:50%"]:not([hidden]),
  button[aria-label="Close"][style*="border-radius: 50%"]:not([hidden]) {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    flex: 0 0 34px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  /* 紧凑型横幅 / 通知 / 活动条关闭按钮 */
  .aic-ticker-close:not([hidden]) {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    flex: 0 0 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .aic-notify-close:not([hidden]),
  .aicu-banner-x:not([hidden]) {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    flex: 0 0 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .kw-x:not([hidden]),
  .act-rf-x:not([hidden]) {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    flex: 0 0 22px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  /* 首页轮播分页圆点与品牌分站预览卡内装饰胶囊，防止被全局 button/cta min-height 拉伸成竖条或大黑圆 */
  .pv-dots button {
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    min-width: 8px !important;
    padding: 0 !important;
    border-radius: 100px !important;
  }
  .pv-site-links .cta {
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 10px !important;
    line-height: 1.2 !important;
    border-radius: 100px !important;
  }
  /* 保护块级 .cta 卡片(如 relay-channels.html)不被 line 344 的 display:inline-flex 破坏 */
  section.cta,
  div.cta {
    display: grid !important;
    min-height: 0 !important;
  }
  /* 其余小型圆形/方形图标钮与分页钮防纵拉变形 */
  .featured-nav button,
  .aic-campaign-badge button[style*="border-radius:50%"] {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex: 0 0 34px !important;
    box-sizing: border-box !important;
  }
  .btn-dislike,
  button.icon-btn[style*="width:28px"] {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .pagination button,
  .pager button {
    height: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
  }
}

@media (max-width: 760px) {
  .nav-cta .nav-bal-badge,
  .nav-cta a[id^="nav-balance-"],
  .nav-cta .aic-ann-bell,
  .nav-cta .nav-bell {
    display: none !important;
  }
  .nav .nav-account-trigger,
  .site-nav .nav-account-trigger {
    max-width: 148px !important;
    padding: 3px 9px 3px 3px !important;
    gap: 5px !important;
  }
  .nav .nav-account-name,
  .site-nav .nav-account-name {
    max-width: 76px !important;
  }
}

@media (max-width: 720px) {
  .aic-ticker-tag {
    padding: 0 8px 0 10px !important;
    margin-right: 2px !important;
    border-right: 1px solid rgba(247, 201, 110, 0.22) !important;
  }
  .aic-ticker-view {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent) !important;
    mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent) !important;
  }
}

@media (max-width: 600px) {
  .nav:has(.mobile-menu-btn) .lang-toggle,
  .site-nav:has(.mobile-menu-btn) .lang-toggle {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .nav .nav-account-trigger,
  .site-nav .nav-account-trigger {
    max-width: 124px !important;
  }
  .nav .nav-account-name,
  .site-nav .nav-account-name {
    max-width: 58px !important;
  }
  .nav .mobile-menu-btn,
  .site-nav .mobile-menu-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
  }
}
