#map { background: #e2e8f0 !important; }
body > header, #hotline-chat-dock, #btn-expand-left-sidebar { display: none !important; }

.agm-auth2213-card {
  width: min(416px, 95vw);
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.agm-auth2213-hdr {
  padding: 15px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agm-auth2213-title {
  margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: 0.02em;
  color: #0f172a !important; text-align: center;
}
.agm-auth2213-top-x {
  width: 30px; height: 30px; border-radius: 9999px;
  border: 1px solid #cbd5e1; background: #ffffff; color: #475569 !important;
  font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.agm-auth2213-top-x:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626 !important; }
.agm-auth2213-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.agm-auth2213-tab {
  padding: 12px 8px; border: 0; border-bottom: 2.5px solid transparent;
  background: transparent; color: #64748b !important; font-size: 14px; font-weight: 700; cursor: pointer;
}
.agm-auth2213-tab.active {
  background: #eff6ff; color: #1d72e8 !important; border-bottom-color: #1d72e8; font-weight: 800;
}
.agm-auth2213-body {
  padding: 18px 20px 20px; min-height: 334px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.agm-auth2213-body.hidden { display: none !important; }
.agm-auth2213-fields { display: flex; flex-direction: column; gap: 13px; }
.agm-auth2213-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agm-auth2213-lbl { display: block; font-size: 13.5px; font-weight: 800; color: #0f172a !important; margin-bottom: 6px; }
.agm-auth2213-inp {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #cbd5e1; background: #f8fafc !important; color: #0f172a !important;
  font-size: 13.5px; outline: none;
}
.agm-auth2213-inp:focus { background: #ffffff !important; border-color: #1d72e8; box-shadow: 0 0 0 3px rgba(29, 114, 232, 0.16); }
.agm-auth2213-inp::placeholder { color: #64748b; }
.agm-auth2213-cap-row { display: flex; align-items: center; gap: 8px; }
.agm-auth2213-cap-img { height: 44px; width: 168px; border-radius: 10px; border: 1.5px solid #93c5fd; background: #eff6ff; flex-shrink: 0; }
.agm-auth2213-cap-refresh, .agm-auth2213-cap-box-refresh {
  width: 42px; height: 44px; border-radius: 10px; border: 1px solid #cbd5e1;
  background: #ffffff; color: #1e293b !important; font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.agm-auth2213-cap-refresh:hover, .agm-auth2213-cap-box-refresh:hover { background: #eff6ff; border-color: #93c5fd; color: #1d72e8 !important; }
.agm-auth2213-cap-inp { text-align: center; text-transform: uppercase; letter-spacing: 0.14em; font-family: monospace; font-weight: 700; padding: 0 6px; }
.agm-auth2213-err { padding: 9px 11px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c !important; font-size: 12.5px; font-weight: 600; }
.agm-auth2213-ok { padding: 9px 11px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46 !important; font-size: 12.5px; font-weight: 600; }
.agm-auth2213-ftr-reg, .agm-auth2213-ftr-login {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0;
}
.agm-auth2213-btn-green {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 11px; border: 0;
  background: #1868db; color: #ffffff !important; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.agm-auth2213-btn-green:hover { background: #1456b8; }
.agm-auth2213-btn-close {
  height: 39px; padding: 0 13px; border-radius: 10px; border: 1px solid #cbd5e1;
  background: #f8fafc; color: #334155 !important; font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.agm-auth2213-btn-close:hover { background: #e2e8f0; }
.agm-auth2213-circle-cancel {
  width: 36px; height: 36px; border-radius: 9999px; border: 1px solid #cbd5e1;
  background: #f8fafc; color: #475569 !important; font-size: 15px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.agm-auth2213-circle-cancel:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626 !important; }

.agm-gmail-step-box {
  padding: 20px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px;
}
.agm-logo-dark-outline { height: 36px; width: auto; margin: 0 auto; display: block; }
.agm-gmail-step-sub { font-size: 13px; color: #334155 !important; line-height: 1.5; }
.agm-gmail-email-chip {
  width: 100%; padding: 9px 12px; border-radius: 9999px; background: #eff6ff; border: 1px solid #93c5fd;
  color: #1e3a8a !important; text-decoration: none; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.agm-gmail-chip-avatar {
  width: 24px; height: 24px; border-radius: 9999px; background: #1d72e8; color: #ffffff !important;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.agm-gmail-direct-cta {
  width: 100%; height: 46px; border-radius: 12px; background: #ffffff; border: 1.5px solid #93c5fd; color: #0f172a !important;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 12px rgba(29, 114, 232, 0.12);
}
.agm-gmail-direct-cta:hover { background: #eff6ff; border-color: #1d72e8; }
.agm-gmail-step-note { font-size: 12.5px; color: #475569 !important; line-height: 1.55; }
.agm-hl-yellow { color: #1d4ed8 !important; font-weight: 800; }

.desk-top-floating-bar, .desk-bottom-left-controls, .desk-scale-coords-pill, .desktop-right-rail, .desk-menu-brand-hdr, .desk-menu-bottom-wrap, .desk-3d-menu-slot { display: none; }

.desk-layers-thumb {
  position: absolute; right: 12px; bottom: 48px; z-index: 1140;
  width: 50px; height: 50px; border-radius: 10px; border: 2px solid #0f172a;
  background: linear-gradient(135deg, #fef9c3 0%, #dcfce7 52%, #bae6fd 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.desk-layers-thumb.open { border-color: #1d72e8; box-shadow: 0 0 0 3px rgba(29, 114, 232, 0.28); }
.desk-layers-count-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 9999px; background: #1d72e8; color: #ffffff !important; border: 2px solid #ffffff;
  font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.desk-layers-count-badge.hidden, .agm-layers-stack-popover.hidden { display: none !important; }

.agm-layers-stack-popover {
  position: absolute; right: 68px; bottom: 48px; z-index: 1150;
  display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 7px; max-width: calc(100vw - 84px);
}
.agm-stack-bm-tile {
  position: relative; width: 50px; height: 50px; padding: 0; border-radius: 10px;
  border: 1.5px solid #334155; background: #ffffff; overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); flex-shrink: 0;
}
.agm-stack-bm-tile:hover { transform: translateY(-2px); border-color: #1d72e8; }
.agm-stack-bm-tile.active { border: 2.5px solid #1d72e8; box-shadow: 0 0 0 3px rgba(29, 114, 232, 0.26); }
.agm-stack-tile-chk {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 9999px;
  background: #1d72e8; color: #ffffff !important; font-size: 10px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (min-width: 768px) {
  .agm-mob-only-ftr, .agm-mob-only-inline, .leaflet-control-scale { display: none !important; }
  main > div.flex-grow { order: 1; }
  #inspector-drawer { order: 2; }
  #left-sidebar.agm-light-menu {
    order: 3; position: relative !important; inset: auto !important;
    width: 318px !important; border-right: 0 !important; border-left: 1px solid #e2e8f0 !important;
    box-shadow: -6px 0 24px rgba(15, 23, 42, 0.08) !important;
    transform: none !important; display: flex; flex-direction: column;
  }
  #left-sidebar.agm-light-menu.-translate-x-full,
  #left-sidebar.agm-light-menu.sidebar-collapsed { display: none !important; }
  #desktop-right-rail { order: 4; }
  #left-sidebar.agm-light-menu:not(.sidebar-collapsed):not(.-translate-x-full) ~ #desktop-right-rail { display: none !important; }

  .desk-menu-brand-hdr {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
  }
  .desk-menu-close-x { position: absolute; right: 0; top: -2px; }
  .desk-3d-menu-slot { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 6px 0; }
  .desk-menu-bottom-wrap { margin-top: auto; padding-top: 10px; flex-shrink: 0; display: block; }
  .desk-menu-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
  .desk-menu-divider { height: 1px; background: #e2e8f0; margin: 10px 0; }
  .desk-tool-circle-nofly {
    width: 36px; height: 36px; border-radius: 9999px; border: 2.2px solid #ef4444; background: #ffffff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #btn-dmenu-nofly.active .desk-tool-circle-nofly { background: #fef2f2; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22); }
  .desk-tool-sq-3d {
    width: 36px; height: 34px; border-radius: 8px; border: 1.8px solid #1d4ed8; background: #ffffff;
    color: #1e3a8a !important; font-size: 13px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #btn-dmenu-3d.active .desk-tool-sq-3d { background: #1d4ed8; color: #ffffff !important; }
  .desk-tool-circle-vn2k, .desk-tool-circle-byok {
    width: 36px; height: 36px; border-radius: 9999px; border: 2px solid #dc2626; background: #ffffff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .desk-tool-circle-byok { border: 1.5px solid #e2e8f0; }

  .desk-top-floating-bar {
    position: absolute; top: 14px; right: 14px; left: 14px; z-index: 1120;
    display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: nowrap; pointer-events: none;
  }
  .desk-filter-pills {
    display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; max-width: calc(100% - 355px); pointer-events: auto;
  }
  .desk-filter-pills::-webkit-scrollbar { display: none; }
  .desk-capsule-pill {
    height: 33px; padding: 0 11px; border-radius: 9999px; white-space: nowrap; flex-shrink: 0;
    border: 1px solid #38bdf8; background: rgba(255, 255, 255, 0.96); color: #0f172a !important;
    font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }
  .desk-capsule-pill:hover, .desk-capsule-pill.active { background: #1d72e8; border-color: #1d72e8; color: #ffffff !important; }
  .desk-search-capsule {
    position: relative; width: min(350px, 34vw); height: 39px; padding: 0 5px 0 14px; flex-shrink: 0;
    border-radius: 9999px; background: #ffffff; border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); display: flex; align-items: center; gap: 6px; pointer-events: auto;
  }
  .desk-search-inp { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; color: #0f172a !important; font-size: 12.5px; }
  .desk-search-inp::placeholder { color: #475569; font-style: italic; }
  .desk-search-lens { width: 30px; height: 30px; border: 0; background: transparent; color: #475569 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .desk-avatar-btn {
    width: 32px; height: 32px; border-radius: 9999px; border: 1px solid #cbd5e1;
    background: #eff6ff; padding: 0; overflow: hidden; cursor: pointer; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }

  .leaflet-bottom.leaflet-left { left: 13px !important; bottom: 50px !important; margin: 0 !important; }
  .leaflet-control-zoom { margin: 0 !important; border: 0 !important; background: rgba(148, 163, 184, 0.58) !important; padding: 4px !important; border-radius: 9999px !important; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16) !important; }
  .leaflet-control-zoom a {
    width: 28px !important; height: 28px !important; line-height: 26px !important;
    border-radius: 9999px !important; background: #163a70 !important; color: #ffffff !important;
    border: 0 !important; font-size: 17px !important; font-weight: 700 !important;
  }
  .leaflet-control-zoom a + a { margin-top: 5px !important; }
  .desk-bottom-left-controls {
    position: absolute; left: 13px; bottom: 127px; width: 36px; z-index: 1120;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .desk-compass-btn {
    width: 36px; height: 36px; border-radius: 9999px; border: 0;
    background: #2563eb; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .desk-scale-coords-pill {
    position: absolute; left: 12px; bottom: 10px; height: 32px; z-index: 1130;
    border-radius: 9999px; border: 2px solid #0a58ca; background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14); display: inline-flex; align-items: center; overflow: hidden; cursor: pointer;
  }
  .desk-zoom-scale-lbl {
    padding: 0 11px; height: 100%; border-right: 1.5px solid #0a58ca;
    font-size: 12px; font-weight: 800; color: #0f172a !important;
    display: inline-flex; align-items: center; justify-content: center; min-width: 58px;
  }
  .desk-mouse-coords-lbl {
    padding: 0 12px; font-size: 11.5px; font-weight: 500; color: #0f172a !important;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }

  .desk-layers-thumb { right: 14px; bottom: 10px; width: 52px; height: 52px; }
  .agm-layers-stack-popover { right: 73px; bottom: 10px; max-width: calc(100% - 390px); }
  .agm-stack-bm-tile { width: 52px; height: 52px; }

  .desktop-right-rail {
    width: 72px; background: #ffffff; border-left: 1px solid #e2e8f0; z-index: 1180;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 14px 4px; flex-shrink: 0;
  }
  .desk-rail-group { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .desk-rail-item { background: transparent; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .desk-rail-circle {
    width: 38px; height: 38px; border-radius: 9999px; color: #ffffff !important;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
  }
  .rail-blue { background: #0a4999; }
  .rail-green { background: #18c964; }
  .rail-red { background: #ef5350; }
  .rail-gold { background: #f5b027; }
  .desk-rail-lbl { font-size: 11.5px; font-weight: 600; color: #0f172a !important; line-height: 1.15; }
}
