#left-sidebar.place-mode-active .desk-clean-sec,
#left-sidebar.place-mode-active #desk-3d-menu-slot {
  display: none !important;
}
.desk-place-detail-slot {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.desk-place-detail-slot.hidden { display: none !important; }

.agm-pbox-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.agm-pbox-tab {
  padding: 8px 6px;
  border: 0;
  background: #ffffff;
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.agm-pbox-tab + .agm-pbox-tab { border-left: 1px solid #cbd5e1; }
.agm-pbox-tab.active {
  background: #eff6ff;
  color: #0f172a !important;
  font-weight: 800;
}

.agm-place-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agm-place-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a !important;
  line-height: 1.35;
}
.agm-place-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px 0 10px;
  border-bottom: 1px solid #e2e8f0;
}
.agm-place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.agm-prow-ico {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #0a4999;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agm-prow-txt {
  font-size: 12.5px;
  color: #1e293b !important;
  line-height: 1.35;
}
.agm-prow-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #1d4ed8 !important;
  text-decoration: none;
}
.agm-prow-link:hover { text-decoration: underline; }
.agm-prow-add {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  color: #475569 !important;
  cursor: pointer;
  text-align: left;
}
.agm-prow-add:hover { color: #1d72e8 !important; text-decoration: underline; }
.agm-prow-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af !important;
  font-size: 11.5px;
  font-weight: 700;
}

.agm-inline-route-panel { padding: 10px 4px 10px; background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.agm-rmode-circles { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; gap: 8px; }
.agm-rmode-circle {
  width: 42px; height: 42px; border-radius: 9999px; border: 0; background: #0a4fb3; color: #ffffff !important;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.86; flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.agm-rmode-circle:hover { opacity: 1; }
.agm-rmode-circle.active { opacity: 1; background: #0847a6; box-shadow: 0 0 0 3px #93c5fd, 0 4px 10px rgba(8, 71, 166, 0.28); transform: translateY(-1px); }
.agm-route-inline-line { display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 500; color: #0f172a !important; }
.agm-route-inline-line b { font-weight: 700; color: #0f172a !important; }
.agm-route-blue-dot { width: 7px; height: 7px; border-radius: 9999px; background: #0a4fb3; display: inline-block; flex-shrink: 0; }

.agm-place-actions-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 0 10px; border-bottom: 1px solid #e2e8f0; text-align: center; }
.agm-pact-circle { width: 36px; height: 36px; 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); }
.pact-blue { background: #1858b8; }
.pact-indigo { background: #312e81; }

.agm-min-modal-card.agm-friends-66-card,
.agm-unified-66-modal {
  width: max(66vw, 316px) !important; height: 66vh !important; max-width: 95vw !important; max-height: 66vh !important;
  display: flex !important; flex-direction: column !important; overflow: hidden !important; background: #ffffff !important; border-radius: 18px !important;
}
.agm-u66-hdr { padding: 13px 18px; border-bottom: 1px solid #e2e8f0; background: #ffffff; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.agm-u66-spacer { width: 28px; flex-shrink: 0; }
.agm-u66-title { margin: 0; flex: 1; text-align: center; font-size: 16px; font-weight: 800; color: #0f172a !important; letter-spacing: 0.02em; }
.agm-u66-tabs { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #e2e8f0; background: #ffffff; overflow-x: auto; flex-shrink: 0; }
.agm-u66-tab { padding: 10px 12px; border: 0; border-bottom: 2.5px solid transparent; background: transparent; color: #475569 !important; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.agm-u66-tab.active { color: #1d72e8 !important; border-bottom-color: #1d72e8 !important; font-weight: 800; }
.agm-u66-body { padding: 14px 18px 16px; flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; background: #ffffff; color: #0f172a !important; }
.agm-u66-ftr-row { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agm-u66-brand-red { margin-left: auto; color: #ef2323 !important; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.agm-friends-66-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.agm-friends-list-box { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.agm-radius-bar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.agm-radius-chip { padding: 7px 4px; border-radius: 10px; border: 1px solid #cbd5e1; background: #ffffff; color: #0f172a !important; font-size: 12.5px; font-weight: 800; cursor: pointer; text-align: center; }
.agm-radius-chip.active {
  background: #1d72e8;
  border-color: #1d72e8;
  color: #ffffff !important;
}
.agm-online-user-row {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.agm-online-user-row:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}
.agm-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.agm-omni-suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1600;
  max-height: 340px;
  overflow-y: auto;
  border-radius: 14px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
}
.agm-omni-hint {
  padding: 6px 12px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  font-size: 11px;
  color: #1d4ed8 !important;
  font-weight: 700;
}
.agm-omni-row {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.agm-omni-row:hover { background: #f8fafc; }
