/* Mobile safe bottom sheet V5 - 20260730 */
@media (max-width: 1100px) {
  .mobile-entry-subtitle,
  .mobile-panorama-title,
  .mobile-panorama-sub,
  .mobile-drawer-toggle,
  .mobile-integrated-drawer-handle {
    display: none !important;
  }

  .mobile-panorama-kicker {
    margin: 0 !important;
  }

  body.mobile-scene-entered .tabs,
  body.mobile-scene-entered.mobile-has-bottom-drawer .tabs {
    background: rgba(14, 53, 44, .16) !important;
    border: 1px solid rgba(227, 218, 183, .16) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: 0 5px 18px rgba(8, 28, 23, .08) !important;
    backdrop-filter: blur(5px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(5px) saturate(1.05) !important;
    padding: 7px 8px !important;
    gap: 6px !important;
  }

  body.mobile-scene-entered .tabs .tab-btn,
  body.mobile-scene-entered.mobile-has-bottom-drawer .tabs .tab-btn {
    color: rgba(255, 250, 232, .86) !important;
    background: rgba(244, 239, 218, .08) !important;
    border: 1px solid rgba(235, 220, 170, .17) !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }

  body.mobile-scene-entered .tabs .tab-btn.active,
  body.mobile-scene-entered.mobile-has-bottom-drawer .tabs .tab-btn.active {
    color: #fff8dd !important;
    background: rgba(228, 207, 143, .17) !important;
    border-color: rgba(239, 220, 160, .44) !important;
    box-shadow:
      inset 0 -2px 0 rgba(222, 180, 80, .84),
      inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  }

  .mobile-safe-sheet-grip {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    display: none;
    align-items: center;
    justify-content: center;
    width: 94px;
    min-width: 94px;
    height: 40px;
    padding: 0 20px;
    margin: 0;
    appearance: none;
    border: 1px solid rgba(244, 222, 153, .62);
    border-radius: 999px;
    background: rgba(19, 62, 51, .82);
    box-shadow:
      0 9px 24px rgba(4, 24, 19, .28),
      inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: blur(11px) saturate(1.08);
    -webkit-backdrop-filter: blur(11px) saturate(1.08);
    transform: translateX(-50%);
    transition:
      top .28s ease,
      bottom .28s ease,
      background .18s ease,
      box-shadow .18s ease;
    touch-action: none;
    cursor: ns-resize;
  }

  .mobile-safe-sheet-grip.is-visible {
    display: flex;
  }

  .mobile-safe-sheet-grip[hidden] {
    display: none !important;
  }

  .mobile-safe-sheet-grip.is-dragging {
    transition: none;
    background: rgba(24, 76, 62, .92);
    box-shadow:
      0 12px 28px rgba(4, 24, 19, .34),
      inset 0 1px 0 rgba(255, 255, 255, .18);
  }

  .mobile-safe-sheet-grip-line {
    display: block;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: #f2d98c;
    box-shadow:
      0 0 0 1px rgba(255, 250, 224, .18),
      0 2px 7px rgba(0, 0, 0, .22);
    pointer-events: none;
  }

  body.mobile-scene-entered.mobile-sheet-available
  .tab-panel.active > .mobile-safe-sheet-card {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 178 !important;
    margin: 0 !important;
    border: 1px solid rgba(239, 219, 160, .30) !important;
    border-radius: 24px 24px 18px 18px !important;
    background: linear-gradient(
      180deg,
      rgba(239, 239, 220, .34),
      rgba(217, 232, 217, .20)
    ) !important;
    box-shadow: 0 -14px 38px rgba(5, 24, 21, .20) !important;
    backdrop-filter: blur(8px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
    transition:
      bottom .30s ease,
      opacity .24s ease,
      visibility .24s ease !important;
  }

  body.mobile-scene-entered.mobile-sheet-collapsed
  .tab-panel.active > .mobile-safe-sheet-card {
    bottom: -120vh !important;
    max-height: 72vh !important;
    padding: 54px 16px 18px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-scene-entered.mobile-sheet-expanded
  .tab-panel.active > .mobile-safe-sheet-card {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: 72vh !important;
    max-height: min(74dvh, 700px) !important;
    padding: 54px 16px 18px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    pointer-events: auto !important;
  }

  body.mobile-scene-entered.mobile-sheet-available .wrap {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.mobile-sheet-locked .mobile-safe-sheet-grip {
    display: none !important;
  }
}

#tab-naming .naming-results-card:not(.has-generated-names) {
  display: none !important;
}
