@media (max-width: 767px) {
  header:has([data-sidebar="trigger"]) {
    height: auto; min-height: calc(3.5rem + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(.5rem, env(safe-area-inset-right)) 0 max(.5rem, env(safe-area-inset-left));
  }
  header:has([data-sidebar="trigger"]) > div { gap: .25rem; min-width: 0; }
  header [data-sidebar="trigger"] { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; touch-action: manipulation; }
  header:has([data-sidebar="trigger"]) button:has(kbd) { width: 44px; height: 44px; padding: 0; justify-content: center; flex-shrink: 0; }
  header:has([data-sidebar="trigger"]) button:has(kbd) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  header:has([data-sidebar="trigger"]) button:has(kbd) svg { margin: 0; }
  [data-sidebar="sidebar"][data-mobile="true"] { max-width: calc(100vw - 1rem); height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  [data-sidebar="sidebar"][data-mobile="true"] > button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; top: env(safe-area-inset-top); right: 0; background: var(--sidebar); }
  [data-sidebar="sidebar"][data-mobile="true"] [data-sidebar="header"] { padding-right: 44px; }
  body:has([data-mobile="true"][data-state="open"]) :is(#nd-v14-launch, #nd-v14-panel, .nd-pwa-install) { visibility: hidden; pointer-events: none; }
  html #nd-v14-panel {
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 78px - 3.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-width: calc(100% - 14px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
}
