/* ============================================================================
 * HAK NAV V46.29 — EVRENSEL MOBİL UYGULAMA (SAHİBİNDEN DÜZENİ + INSTAGRAM YATAY
 * KAYDIRMALI SAYFALAR VE ALT NOKTA GÖSTERGESİ ● ○ ○ ○ ○)
 * Masaüstü (> 900px) görünümüne %0 müdahale eder; yalnızca <= 900px telefon ve
 * dar mobil ekranlarda devreye girer.
 * ============================================================================ */

/* Masaüstünde tüm V46.29 mobil öğeleri kesinlikle gizlidir */
.hak-ig-dots-bar-v4629,
#hakVoyageIgDeckV4629,
#hakVoyageIgFooterV4629,
#hakVoyageMapTopBarMobV4629,
#hakVoyageMapRightSwipeEdgeV4629,
#hakMobileQuickAppHeaderV4629,
#hakSimIgDotsBarV4629,
#hakChessIgDotsBarV4629,
#hakFleetIgDotsBarV4629 {
  display: none;
}

@media (max-width: 900px) {
  /* Genel taşma koruması ve iOS otomatik odak büyümesini engelleme */
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  /* ==========================================================================
   * ORTAK INSTAGRAM NOKTA GÖSTERGESİ (● ○ ○ ○ ○ + Sayfa X / N)
   * ========================================================================== */
  .hak-ig-dots-bar-v4629 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    margin: 6px auto 10px;
    background: rgba(4, 15, 29, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.48);
    border-radius: 999px;
    width: fit-content;
    max-width: calc(100vw - 20px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
    user-select: none;
    -webkit-user-select: none;
    z-index: 40;
  }

  .hak-ig-dots-track-v4629 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hak-ig-dot-v4629 {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(148, 163, 184, 0.45);
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .hak-ig-dot-v4629.active {
    width: 22px;
    background: linear-gradient(90deg, #fde047, #38bdf8);
    box-shadow: 0 0 10px rgba(253, 224, 71, 0.75);
  }

  .hak-ig-page-pill-v4629 {
    font: 900 10.5px/1 "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #fde047;
    background: rgba(12, 37, 64, 0.95);
    border: 1px solid rgba(253, 224, 71, 0.45);
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .hak-ig-nav-arrow-v4629 {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: #0b253e;
    color: #f8fafc;
    font: 900 13px/1 system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .hak-ig-nav-arrow-v4629:active {
    background: #eab308;
    color: #04111f;
  }

  /* Yatay Instagram Karusel Konteyneri */
  .hak-ig-carousel-v4629 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 12px !important;
    padding: 6px 12px 10px !important;
    scroll-behavior: smooth;
  }
  .hak-ig-carousel-v4629::-webkit-scrollbar {
    display: none !important;
  }
  .hak-ig-carousel-v4629 > * {
    flex: 0 0 88vw !important;
    max-width: 88vw !important;
    min-width: 88vw !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    grid-column: auto !important;
  }

  /* ==========================================================================
   * 1. MARINE OUTER & SHELL (marine.html + index-ai-v2487.html) SIFIR ÇİFT BAR
   * ========================================================================== */
  body.v40-marine #hakMobileBottomNavV4597,
  body.v40-marine #haV44Link {
    display: none !important;
  }
  body.v40-marine {
    padding-bottom: 0 !important;
  }
  body.v40-marine #hakGlobalTopShellV4577 {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 8px !important;
  }
  body.v40-marine .v40-mapstage,
  body.v40-marine #marine-frame {
    position: fixed !important;
    top: 38px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100dvh - 38px) !important;
    max-height: calc(100dvh - 38px) !important;
  }

  /* ==========================================================================
   * 2. VOYAGE PLAN (V23_FARE_TEST.html) — 5 SAYFALI INSTAGRAM MİMARİSİ
   * Sayfa 1: 🗺️ Harita | Sayfa 2: 🧭 Voyage Plan | Sayfa 3: 📊 Seyir & AIS
   * Sayfa 4: ⛈️ 3B Fırtına | Sayfa 5: 🛠️ ECDIS & Menü   (● ○ ○ ○ ○)
   * ========================================================================== */
  body.hak-voyage-ig-mobile-v4629 {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #04111f !important;
  }

  /* Eski çakışan tüm yüzen mobil/masaüstü kutuları Harita üzerinde gizle */
  body.hak-voyage-ig-mobile-v4629 #hakCollapseVoyageSidebarBtnV4585,
  body.hak-voyage-ig-mobile-v4629 #hakMobileAppBottomDockV4542,
  body.hak-voyage-ig-mobile-v4629 #hakMobSidebarTopHeaderV4542,
  body.hak-voyage-ig-mobile-v4629 #hakMobileToolbar2475,
  body.hak-voyage-ig-mobile-v4629 #hakMobileDrawerClose2475,
  body.hak-voyage-ig-mobile-v4629 #hak-test-tools,
  body.hak-voyage-ig-mobile-v4629 #hakop-2485-rail,
  body.hak-voyage-ig-mobile-v4629 #hakDataSourceBottomCenterBannerV4611,
  body.hak-voyage-ig-mobile-v4629 #hakTopRightEcdisCornerWidget,
  body.hak-voyage-ig-mobile-v4629 #hakRightVoyageTelemetryV4623,
  body.hak-voyage-ig-mobile-v4629 #hakTopAisControlBarV4532,
  body.hak-voyage-ig-mobile-v4629 #hakWindyTopBarV4607,
  body.hak-voyage-ig-mobile-v4629 #hakWindyBottomBarV4607,
  body.hak-voyage-ig-mobile-v4629 #hakEcdisControlBar,
  body.hak-voyage-ig-mobile-v4629 .main-layout > .workarea > .ribbon,
  body.hak-voyage-ig-mobile-v4629 .main-layout > .workarea > .bottompanel,
  body.hak-voyage-ig-mobile-v4629 #mapLabel {
    display: none !important;
  }

  /* Harita sahnesi (Sayfa 1 için %100 tam ekran, üst üste binen tek bir kutu bile yok!) */
  body.hak-voyage-ig-mobile-v4629 .main-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 70px) !important;
    max-height: calc(100dvh - 70px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 70px !important;
    z-index: 10 !important;
  }

  body.hak-voyage-ig-mobile-v4629 .main-layout > .workarea,
  body.hak-voyage-ig-mobile-v4629 .main-layout > .workarea > #mapWrap {
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 70px) !important;
    min-height: calc(100dvh - 70px) !important;
    max-height: calc(100dvh - 70px) !important;
    position: relative !important;
    inset: 0 !important;
  }

  /* Harita üstünde tek satırlı temiz Sahibinden stili hızlı kontrol + kaydırma barı */
  #hakVoyageMapTopBarMobV4629 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    position: fixed;
    top: 6px;
    left: 6px;
    right: 6px;
    z-index: 2147482300;
    background: rgba(4, 15, 29, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid #38bdf8;
    border-radius: 11px;
    padding: 5px 7px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.72);
    overflow-x: auto;
    scrollbar-width: none;
  }
  #hakVoyageMapTopBarMobV4629::-webkit-scrollbar { display: none; }

  #hakVoyageMapTopBarMobV4629 .mob-map-pill {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid #38bdf8;
    background: #0b263e;
    color: #f8fafc;
    font: 800 11px/1 "Segoe UI", system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
  }
  #hakVoyageMapTopBarMobV4629 .mob-map-pill.gold {
    background: linear-gradient(135deg, #059669, #065f46);
    border-color: #fde047;
    color: #fde047;
  }
  #hakVoyageMapTopBarMobV4629 .mob-map-pill.active-storm {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-color: #fde047;
    color: #ffffff;
  }

  /* WP Çiz / Seç kutusunu haritanın sol-altına tek satır temiz yerleştir */
  body.hak-voyage-ig-mobile-v4629 #hakWpQuickTools {
    top: auto !important;
    bottom: 10px !important;
    left: 8px !important;
    right: auto !important;
    transform: none !important;
    padding: 4px !important;
    gap: 4px !important;
    background: rgba(4, 15, 29, 0.92) !important;
    border: 1px solid #38bdf8 !important;
    border-radius: 9px !important;
    z-index: 420 !important;
  }
  body.hak-voyage-ig-mobile-v4629 #hakWpQuickTools button {
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  /* Sağ alt Zoom butonları (Sayfa 1 Harita açıkken görünür, diğer sayfalarda gizlenir) */
  body.hak-voyage-ig-mobile-v4629 #hakMobZoomClusterV4542 {
    right: 8px !important;
    bottom: 80px !important;
    z-index: 2147482250 !important;
  }
  body.hak-voyage-ig-mobile-v4629:not([data-ig-page="0"]) #hakMobZoomClusterV4542,
  body.hak-voyage-ig-mobile-v4629:not([data-ig-page="0"]) #hakVoyageMapTopBarMobV4629,
  body.hak-voyage-ig-mobile-v4629:not([data-ig-page="0"]) #hakVoyageMapRightSwipeEdgeV4629 {
    display: none !important;
  }

  /* Sayfa 1 sağ kenarda Instagram yana kaydırma tutamacı (Harita sürüklemeyi bozmaz!) */
  #hakVoyageMapRightSwipeEdgeV4629 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 0;
    top: 42%;
    width: 24px;
    height: 86px;
    z-index: 2147482280;
    background: linear-gradient(180deg, rgba(2,132,199,0.88), rgba(6,95,70,0.92));
    border: 1.5px solid #fde047;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    color: #fde047;
    font: 900 13px/1 system-ui, sans-serif;
    box-shadow: -4px 0 14px rgba(0,0,0,0.65);
    touch-action: pan-y;
    cursor: pointer;
  }

  /* Sayfa 2..5 Tam Ekran Instagram Kaydırmalı Sahne */
  #hakVoyageIgDeckV4629 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    width: 100vw;
    height: calc(100dvh - 70px);
    z-index: 2147482600;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    pointer-events: auto;
  }
  #hakVoyageIgDeckV4629::-webkit-scrollbar { display: none; }

  /* Sayfa 0 (Harita) aktifken Deck haritaya dokunmayı engellemez! */
  body.hak-voyage-ig-mobile-v4629[data-ig-page="0"] #hakVoyageIgDeckV4629 {
    pointer-events: none !important;
  }

  .hak-voyage-ig-slide-v4629 {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 70px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .hak-voyage-ig-slide-v4629.slide-map-passthrough {
    background: transparent !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .hak-voyage-ig-slide-v4629.slide-solid-page {
    background: linear-gradient(180deg, #041220 0%, #071e32 100%);
    padding: 10px 12px 24px;
    pointer-events: auto !important;
  }

  /* Sayfa 2 (Voyage Plan & Rota) içine taşınan gerçek .sidebar tam genişlikte çalışır */
  #hakIgSlide2VoyageHost .sidebar,
  body.hak-voyage-ig-mobile-v4629 #hakIgSlide2VoyageHost > aside.sidebar {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 2 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.hak-voyage-ig-mobile-v4629 #hakIgSlide2VoyageHost .tab-body:not(.hidden) {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    padding: 8px 2px 28px !important;
  }

  /* Sayfa 4 (3B Fırtına & Köprüüstü) içine yerleştirilen #hakDronePanelV4607 tam kart olur */
  body.hak-voyage-ig-mobile-v4629 #hakIgSlide4StormHost #hakDronePanelV4607 {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: 5 !important;
    margin: 0 0 10px 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
  }

  /* Alt Sabit Instagram Nokta Çubuğu (● ○ ○ ○ ○) + 5 Sekme İkonu */
  #hakVoyageIgFooterV4629 {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    z-index: 2147483600;
    background: linear-gradient(180deg, #04101e 0%, #071c31 100%);
    border-top: 1.5px solid #38bdf8;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.88);
    padding: 3px 6px 4px;
    user-select: none;
    -webkit-user-select: none;
  }

  #hakVoyageIgFooterV4629 .ig-dots-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 22px;
  }

  #hakVoyageIgFooterV4629 .ig-tabs-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    height: 40px;
  }

  #hakVoyageIgFooterV4629 .ig-tab-btn {
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    background: #0a2238;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 1px;
    font: 800 9.8px/1.1 "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
  }

  #hakVoyageIgFooterV4629 .ig-tab-btn .ico {
    font-size: 13.5px;
    line-height: 1;
  }

  #hakVoyageIgFooterV4629 .ig-tab-btn.active {
    background: linear-gradient(135deg, #0284c7, #0f766e);
    border-color: #fde047;
    color: #fde047;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  }

  /* 12 Numara Fırtına Analizi Modalı Mobil Uyum (Alt 70px Nokta Çubuğuyla Çakışmaz) */
  body.hak-voyage-ig-mobile-v4629 #hakDetailedStormWindyModalV4589 {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 70px !important;
    width: 100vw !important;
    height: calc(100dvh - 70px) !important;
    max-height: calc(100dvh - 70px) !important;
    z-index: 2147483550 !important;
  }

  /* ==========================================================================
   * 3. ANASAYFA (index.html) — SAHİBİNDEN TEMİZ MOBİL BAŞLIK & INSTAGRAM SWIPE
   * ========================================================================== */
  body > header.header .headrow {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 12px !important;
  }
  body > header.header .navlinks {
    order: 3 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
    padding-top: 4px !important;
  }
  body > header.header .navlinks a {
    text-align: center !important;
    padding: 7px 4px !important;
    border-radius: 8px !important;
    background: #0b2740 !important;
    border: 1px solid #2b6cb0 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #fde047 !important;
  }
  main#top .hero .radar-panel {
    max-height: 210px !important;
    margin-top: 8px !important;
  }
  main#top .hero h1 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.15 !important;
  }

  /* ==========================================================================
   * 4. HAK AKADEMİ (hak-akademi.html) — KAYDIRMALI SEKME & 8 KART NOKTALI SWIPE
   * ========================================================================== */
  .ak-shell {
    padding-top: 44px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 66px !important;
  }
  .ak-hero {
    padding: 14px !important;
    gap: 10px !important;
  }
  .ak-hero h1 {
    font-size: 18px !important;
  }
  .ak-hero p {
    font-size: 12px !important;
  }
  .ak-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px !important;
    gap: 6px !important;
  }
  .ak-tabs::-webkit-scrollbar { display: none !important; }
  .ak-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }

  /* ==========================================================================
   * 5. HAK SATRANÇ (hak_ai_chess_and_english_v4546.js) — 2 SAYFA INSTAGRAM SWIPE
   *    Sayfa 1 (● ○): %92 Tam Kare Sabit Tahta | Sayfa 2 (○ ●): Puan & Sohbet
   * ========================================================================== */
  #hakAiHubModalV4546 .hak-chess-arena-v4629,
  #hakChessBoardGrid {
    max-width: 100% !important;
  }
  #hakChessBoardGrid {
    width: min(90vw, calc(100dvh - 230px)) !important;
    height: min(90vw, calc(100dvh - 230px)) !important;
  }

  /* ==========================================================================
   * 6. 3B GEMİ SİMÜLATÖRÜ (ship-simulator.html) — ÜST 3B KÖPRÜÜSTÜ + ALT 5 EKRAN
   *    INSTAGRAM YATAY KAYDIRMALI KONSOL VE 5 NOKTA (● ○ ○ ○ ○)
   * ========================================================================== */
  .top-command-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 6px !important;
  }
  .top-command-bar::-webkit-scrollbar { display: none !important; }
  .top-command-bar .bar-group {
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
  }

  .bridge-upper-panorama {
    flex: 1 1 45% !important;
    min-height: 175px !important;
  }

  .top-left-hud-stack {
    max-width: 54vw !important;
    top: 4px !important;
    left: 4px !important;
  }
  .force-vector-mini-ship-widget {
    width: 172px !important;
    padding: 3px 6px !important;
  }
  #miniForceShipCanvas {
    width: 156px !important;
    height: 98px !important;
  }
  .sog-cog-top-right-hud {
    min-width: 138px !important;
    padding: 3px 6px !important;
    top: 4px !important;
    right: 4px !important;
  }
  .sog-val, .cog-val {
    font-size: 13.5px !important;
  }

  .bridge-console-desk {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 5px 8px !important;
    flex: 0 0 46% !important;
    min-height: 220px !important;
  }
  .bridge-console-desk::-webkit-scrollbar { display: none !important; }
  .bridge-console-desk > .mfd-bezel {
    flex: 0 0 94vw !important;
    width: 94vw !important;
    min-width: 94vw !important;
    max-width: 94vw !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
  }

  #hakSimIgDotsBarV4629 {
    display: flex !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 4px 8px !important;
    flex: 0 0 auto !important;
  }

  /* ==========================================================================
   * 7. HAK FLEET & NAVLUN PAZARI (fleet.html) — 2 SAYFALI INSTAGRAM SWIPE (● ○)
   * ========================================================================== */
  #app > header.topbar {
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  #app > header.topbar .header-separator {
    display: none !important;
  }
  #app > header.topbar .topnav {
    order: 3 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  #app > header.topbar .topnav::-webkit-scrollbar { display: none !important; }

  #marketplaceWorkspace:not(.full-pane-mode) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100vw !important;
    height: calc(100dvh - 188px) !important;
    min-height: 400px !important;
  }
  #marketplaceWorkspace:not(.full-pane-mode)::-webkit-scrollbar { display: none !important; }
  #marketplaceWorkspace:not(.full-pane-mode) > #sidebar,
  #marketplaceWorkspace:not(.full-pane-mode) > #mapSection {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    transform: none !important;
    position: relative !important;
  }

  /* ==========================================================================
   * 8. CREW & MARKET (legacy/index.html, legacy/pazar.html) MOBİL UYUM
   * ========================================================================== */
  #hakCrewTopSiteNavV4623 {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 6px 10px !important;
  }
  #hakCrewTopSiteNavV4623 > div {
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
  }
  #hakCrewTopSiteNavV4623 > span {
    display: none !important;
  }
  main.page nav.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
  }
  main.page nav.tabs::-webkit-scrollbar { display: none !important; }
  main.page nav.tabs .tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* V46.30 Görsel Kalite Düzeltmeleri: Voyage Plan üst/alt çubuk tam hizalama & Simülatör/Fleet netliği */
  body.hak-voyage-ig-mobile-v4629 #hakMobileBottomNavV4597,
  body.hak-voyage-ig-mobile-v4629 #hakMobileQuickMenuDrawerV4597 {
    display: none !important;
  }
  body.hak-voyage-ig-mobile-v4629 {
    padding-bottom: 0 !important;
  }
  body.hak-voyage-ig-mobile-v4629 #hakGlobalTopShellV4577 {
    display: none !important;
  }

  /* 3B Simülatör (ship-simulator.html) 390px köprüüstü camı sadeleştirme */
  .mobile-console-mode-bar {
    display: none !important;
  }
  .bridge-upper-panorama .live-lines-top-left-hud {
    max-width: 172px !important;
    padding: 2px 5px !important;
    font-size: 8.5px !important;
  }
  .bridge-upper-panorama #hakSimCoachFloatingBanner,
  .bridge-upper-panorama [id*="Coach"],
  .bridge-upper-panorama [style*="Manevra başladı"] {
    max-width: 92vw !important;
    font-size: 10px !important;
  }
  .bridge-console-desk > .mfd-bezel {
    display: flex !important;
  }

  /* Fleet (fleet.html) sol ilan paneli ve sağ harita 2 sayfalı Instagram yatay geçişte her zaman görünür */
  #marketplaceWorkspace:not(.full-pane-mode) > #sidebar {
    display: flex !important;
    flex-direction: column !important;
  }
  #marketplaceWorkspace:not(.full-pane-mode) > #mapSection {
    display: block !important;
  }


  #hakAiLiveCoachBar, #hakAiLiveCoachHud, #hakLiveCoachBox, #liveCoachBanner {
    top: auto !important;
    bottom: 4px !important;
    left: 6px !important;
    right: 6px !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 12px) !important;
    padding: 3px 8px !important;
    font-size: 9.5px !important;
  }
  .bridge-upper-panorama .live-lines-top-left-hud {
    display: none !important;
  }

  #hakAiLiveCoachText { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 44vw !important; font-size: 9.5px !important; }
}

/* ============================================================================
 * V46.77 TELEFON VOYAGE PLAN TAM ONARIMI (SIFIR KARMAŞA · TÜM YAZILAR AÇILIR!)
 * ============================================================================ */
@media (max-width: 900px) {
  /* Üst üste binen ikincil yüzen rozetleri telefonda tamamen temizle */
  body.hak-voyage-ig-mobile-v4629 #hakGlobalLegalCopyrightBar,
  body.hak-voyage-ig-mobile-v4629 #hakMobileAppBottomDockV4542,
  body.hak-voyage-ig-mobile-v4629 #hakMobSidebarTopHeaderV4542,
  body.hak-voyage-ig-mobile-v4629 #hak-offline-link-v22,
  body.hak-voyage-ig-mobile-v4629 [style*="bottom:14px;right:14px"],
  body.v40-marine [style*="bottom:14px;right:14px"],
  body.v40-marine #hakGlobalLegalCopyrightBar {
    display: none !important;
  }

  /* marine.html ve index-ai-v2487.html dış kabuklarını telefonda tam ekran harita/voyage sahnesine aç */
  body.v40-marine #hakGlobalTopShellV4577 {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }
  body.v40-marine .v40-mapstage,
  body.v40-marine #marine-frame {
    top: 36px !important;
    height: calc(100dvh - 36px) !important;
    max-height: calc(100dvh - 36px) !important;
  }

  /* Sayfa 2..5 ayrık tam ekran panel (yatay kaydırma kilidi YOK, dikey kaydırma ve tıklama %100 AÇIK!) */
  body.hak-voyage-ig-mobile-v4629 #hakVoyageIgDeckV4629 {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 72px !important;
    width: 100vw !important;
    height: calc(100dvh - 72px) !important;
    z-index: 2147482600 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
    background: #041220 !important;
  }
  body.hak-voyage-ig-mobile-v4629:not([data-ig-page="0"]) #hakVoyageIgDeckV4629 {
    display: block !important;
    pointer-events: auto !important;
  }

  body.hak-voyage-ig-mobile-v4629 .hak-voyage-ig-slide-v4629.slide-solid-page {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(100dvh - 72px) !important;
    overflow: visible !important;
    padding: 12px 12px 44px !important;
    pointer-events: auto !important;
  }

  /* Sayfa 2 içine taşınan Voyage Plan (.sidebar) tüm sekme, yazı, özet ve kutularıyla net ve okunaklı! */
  #hakIgSlide2VoyageHost,
  #hakIgSlide2VoyageHost > aside.sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: auto !important;
  }

  #hakIgSlide2VoyageHost .tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
    padding: 5px !important;
    background: #071d31 !important;
    border: 1px solid #2b6cb0 !important;
    border-radius: 10px !important;
  }
  #hakIgSlide2VoyageHost .tabs .tab {
    padding: 9px 4px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-align: center !important;
    border-radius: 7px !important;
    color: #e2e8f0 !important;
    background: #0c2b45 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #hakIgSlide2VoyageHost .tabs .tab.active {
    background: linear-gradient(135deg, #eab308, #ca8a04) !important;
    color: #04111f !important;
  }

  #hakIgSlide2VoyageHost .tab-body:not(.hidden) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 0 32px !important;
  }
  #hakIgSlide2VoyageHost .tab-body.hidden {
    display: none !important;
  }

  #hakIgSlide2VoyageHost h2 {
    font-size: 16px !important;
    color: #fde047 !important;
    margin: 4px 0 10px !important;
  }

  /* Tüm Voyage Plan <details class="hak-fold"> kartları telefonda geniş, net ve tek dokunuşla açılır! */
  #hakIgSlide2VoyageHost details,
  #hakIgSlide2VoyageHost details.hak-fold {
    display: block !important;
    border: 1.5px solid #2b6cb0 !important;
    border-radius: 11px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    background: #082036 !important;
    overflow: visible !important;
  }
  #hakIgSlide2VoyageHost details > summary {
    list-style: none !important;
    cursor: pointer !important;
    padding: 12px 13px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #fde047 !important;
    background: linear-gradient(135deg, #0d3553, #082236) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 46px !important;
    pointer-events: auto !important;
  }
  #hakIgSlide2VoyageHost details > summary::-webkit-details-marker { display: none !important; }
  #hakIgSlide2VoyageHost details > summary::after {
    content: '▼ Aç';
    font-size: 11px !important;
    color: #7dd3fc !important;
    font-weight: 800 !important;
    flex: 0 0 auto !important;
  }
  #hakIgSlide2VoyageHost details[open] > summary {
    border-bottom: 1px solid #1e496d !important;
    border-radius: 10px 10px 0 0 !important;
  }
  #hakIgSlide2VoyageHost details[open] > summary::after {
    content: '▲ Kapat';
    color: #4ade80 !important;
  }
  #hakIgSlide2VoyageHost details > *:not(summary) {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  #hakIgSlide2VoyageHost details > *:last-child:not(summary) {
    margin-bottom: 12px !important;
  }

  /* Yan yana sıkışıp birbirine giren 2 sütunlu alanları telefonda temiz tek sütun yap! */
  #hakIgSlide2VoyageHost .two-fields,
  #hakIgSlide2VoyageHost .two-buttons,
  #hakIgSlide2VoyageHost .v6-summary {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: calc(100% - 20px) !important;
  }

  #hakIgSlide2VoyageHost label {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #bae6fd !important;
    margin-top: 8px !important;
    line-height: 1.4 !important;
  }
  #hakIgSlide2VoyageHost input,
  #hakIgSlide2VoyageHost select,
  #hakIgSlide2VoyageHost textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 10px 11px !important;
    margin-top: 4px !important;
    border-radius: 8px !important;
    background: #041322 !important;
    color: #f8fafc !important;
    border: 1.5px solid #38bdf8 !important;
    box-sizing: border-box !important;
  }
  #hakIgSlide2VoyageHost button {
    min-height: 44px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    padding: 9px 12px !important;
  }

  /* Voyage Plan durum / mesafe / bacak özet yazılarını net ve görünür yap! */
  #hakIgSlide2VoyageHost .v6-status,
  #hakIgSlide2VoyageHost .auto-state,
  #hakIgSlide2VoyageHost .auto-stats,
  #hakIgSlide2VoyageHost .revision-log,
  #hakIgSlide2VoyageHost .approvebox {
    display: block !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: #f1f5f9 !important;
    background: #051628 !important;
    border: 1px solid #285470 !important;
    border-radius: 8px !important;
    padding: 9px 10px !important;
    margin-top: 8px !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
  }

  /* OpenCPN Akademi sol rayı telefonda içeriği daraltmasın, üst kompakt menü yatay kaydırılsın */
  .ocpn-left-rail {
    display: none !important;
  }
  body.hak-ocpn-akademi-active .ak-shell {
    padding-left: 10px !important;
  }
}
