/* 底栏贴底；日志抽屉默认隐藏 */
@media (max-width: 720px) {
  .cozy-sidebar {
    height: 56px !important;
    padding: 2px 4px 4px !important;
    align-items: center !important;
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .cozy-sidebar .nav-menu {
    height: 100%;
    align-items: center !important;
    padding-top: 0 !important;
  }

  .cozy-sidebar .nav-pill {
    min-height: 0 !important;
    height: 100% !important;
    justify-content: center !important;
    padding: 2px 0 0 !important;
  }

  /* 关闭时整块滑出屏幕：110% 会漏出拖条和「全部日志」 */
  .log-sidebar:not(.sheet-open) {
    transform: translateY(calc(100% + 120px)) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .log-sidebar:not(.sheet-open)::before {
    display: none !important;
  }

  .log-sidebar.sheet-open,
  .log-sidebar.sheet-open.land-wide,
  .log-sidebar.sheet-open.cfg-wide {
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    bottom: 56px !important;
    width: 100% !important;
    height: min(72dvh, calc(100dvh - 120px)) !important;
  }

  .insp-tabs button,
  .insp-tabs button.on {
    padding: 8px 0 !important;
    font-size: 13px !important;
    transform: none !important;
  }
}
