/* Mobile presentation hotfix only. Preserve canonical sync state and data writes. */
@media (max-width: 600px) {
  #mobile-view {
    border-radius: 0 !important;
    background: #080e11 !important;
    isolation: isolate;
  }
  #mob-hdr {
    background: #080e11 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    overflow: hidden;
    isolation: isolate;
  }
  #mob-seg-bar, #mob-seg-back-row {
    background: #0b1115 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }
  #mobile-view .c1v3-work-tabs, #mobile-view .c1v3-job-context {
    background: #0b1115 !important;
  }
  /* The floating legacy warning covers the scope editor. The canonical
     connection state remains in the mobile sync control and settings. */
  #offline-banner {display: none !important;}
}

/* iOS PWA status-bar clearance. The app uses viewport-fit=cover with a
   translucent native status bar; reserve a real header row below it. */
@media (max-width: 600px) and (display-mode: standalone) {
  #mobile-view {
    padding-top: env(safe-area-inset-top, 0px) !important;
    box-sizing: border-box !important;
  }
  #mob-hdr {
    padding-top: 12px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
}
/* Fallback for iOS standalone implementations returning zero for safe-area. */
@media (max-width: 600px) and (display-mode: standalone) {
  @supports (-webkit-touch-callout: none) {
    #mobile-view {
      padding-top: max(54px, env(safe-area-inset-top, 0px)) !important;
    }
  }
}
