/* selfrun-mobile: 手机端两处修正（<=650px） */
@media (max-width: 650px) {
  /* 1) /matching/:id 帖子详情：正文底部留出 浮动评论条(54px)+其 bottom 偏移(124px)+间距 + 安全区，避免最后一行被盖住 */
  :root:not(#_v3) .match-detail.open:has(> .match-comment-slot:not(:empty)) > .match-detail-scroll {
    padding-bottom: calc(10px + 56px + 8px + 50px + var(--match-composer-height, 54px) + 20px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(10px + 56px + 8px + 50px + var(--match-composer-height, 54px) + 20px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* 2) /tools/model-check：顶栏滚走（translateY(-50px)）后收起其占位，避免页面顶部留白 */
  :root:not(#_v3) .directory-home-shell.directory-tools-shell:has(> .model-check-page):has(> .mobile-navigation.is-scrolled-away) > .directory-topbar {
    margin-bottom: -50px;
  }
  :root:not(#_v3) .directory-home-shell.directory-tools-shell:has(> .model-check-page) > .directory-topbar {
    transition: margin-bottom .34s cubic-bezier(.22,1,.36,1), margin-top .34s cubic-bezier(.22,1,.36,1), transform .34s cubic-bezier(.22,1,.36,1), opacity .24s ease;
  }
}
