/* Enterprise heatmap overlay controls and selection cards. */
#root .gr-address-heatmap {
  --address-paper: #fcfdff;
  --address-ground: #eff3f6;
  --address-map: #edf3f5;
  --address-ink: #293745;
  --address-muted: #566271;
  --address-accent: #215b9c;
  --address-accent-soft: #eaf2fb;
  --address-line: rgb(40 56 73 / 16%);
  --address-shadow: 0 3px 12px rgb(40 56 73 / 15%);
  --address-gutter: clamp(10px, 3vw, 16px);
  --address-control-space: max(68px, calc(1.625rem + 30px));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(236px, 1fr) auto auto;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--address-ground);
  color: var(--address-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

#root .gr-address-heatmap[hidden] { display: none; }

.gr-address-heatmap :is(button, input) {
  min-height: 44px;
  font: inherit;
}

.gr-address-heatmap :is(button, a):focus-visible,
.gr-address-heatmap-search input:focus-visible {
  outline: 2px solid var(--address-accent);
  outline-offset: 2px;
}

.gr-address-heatmap button:disabled { cursor: default; opacity: .55; }

.gr-address-heatmap-tools {
  z-index: 2;
  grid-area: 1 / 1;
  min-width: 0;
  padding: calc(9px + env(safe-area-inset-top, 0px))
    max(var(--address-gutter), env(safe-area-inset-right, 0px)) 6px
    max(var(--address-gutter), env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.gr-address-heatmap-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.gr-address-heatmap-head h1 {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--address-line);
  border-radius: 13px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
}

.gr-address-heatmap-back,
.gr-address-heatmap-directory {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid var(--address-line);
  border-radius: 10px;
  background: var(--address-paper);
  color: var(--address-ink);
  box-shadow: var(--address-shadow);
  cursor: pointer;
  pointer-events: auto;
}

.gr-address-heatmap .gr-address-heatmap-back {
  padding: 4px;
  font-size: 1.25rem;
  line-height: 1;
}

.gr-address-heatmap-directory {
  color: var(--address-accent);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.gr-address-heatmap-dock {
  z-index: 2;
  grid-area: 4 / 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0 max(var(--address-gutter), env(safe-area-inset-right, 0px)) 10px
    max(var(--address-gutter), env(safe-area-inset-left, 0px));
  padding: 10px;
  border: 1px solid var(--address-line);
  border-radius: 18px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
}

.gr-address-heatmap[data-context="detail"] .gr-address-heatmap-dock { display: contents; }

.gr-address-heatmap-search {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-ground);
}

.gr-address-heatmap[data-context="detail"] .gr-address-heatmap-search {
  z-index: 2;
  grid-area: 2 / 1;
  margin: 0 max(var(--address-gutter), env(safe-area-inset-right, 0px)) 7px
    max(var(--address-gutter), env(safe-area-inset-left, 0px));
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
}

.gr-address-heatmap-search:focus-within { border-color: var(--address-accent); }

.gr-address-heatmap-search-icon {
  position: relative;
  display: inline-grid;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  place-items: center;
  margin-inline-start: 7px;
  color: var(--address-muted);
}

.gr-address-heatmap-search-icon:not(:has(svg))::before {
  width: .65em;
  height: .65em;
  margin: 0 .17em .17em 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.gr-address-heatmap-search-icon:not(:has(svg))::after {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: .15em;
  width: .36em;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  content: "";
}

.gr-address-heatmap-search input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding-inline: 3px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--address-ink);
  font-size: max(16px, .875rem);
  outline-offset: -2px;
}

.gr-address-heatmap-search input::-webkit-search-cancel-button { display: none; }

.gr-address-heatmap-search input::placeholder {
  color: var(--address-muted);
  opacity: 1;
}

.gr-address-heatmap-search button,
.gr-address-heatmap-message button,
.gr-address-heatmap-list > button {
  flex: none;
  min-width: 44px;
  padding: 3px 11px;
  border: 0;
  border-radius: 10px;
  background: var(--address-accent-soft);
  color: var(--address-accent);
  font-weight: 660;
  white-space: nowrap;
  cursor: pointer;
}

.gr-address-heatmap .gr-address-heatmap-search button {
  padding-inline: 10px;
  font-size: .875rem;
}

.gr-address-heatmap .gr-address-heatmap-search button[type="button"] {
  background: transparent;
  color: var(--address-muted);
}

.gr-address-heatmap .gr-address-heatmap-search button[type="submit"] {
  padding-inline: 14px;
  background: var(--address-accent);
  color: var(--address-paper);
}

.gr-address-heatmap-scopes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.gr-address-heatmap-scopes button {
  min-width: 44px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--address-paper);
  color: var(--address-ink);
  font-size: 0.8125rem;
  font-weight: 640;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}

.gr-address-heatmap-scopes button:focus-visible { outline-offset: -2px; }

.gr-address-heatmap-scopes :is([aria-pressed="true"], [aria-current="true"]) {
  border-color: rgb(33 91 156 / 42%);
  background: var(--address-accent-soft);
  color: var(--address-accent);
}

.gr-address-heatmap-map {
  position: relative;
  isolation: isolate;
  grid-area: 1 / 1 / 6 / 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--address-map);
}

.gr-address-heatmap-map-actions {
  position: relative;
  z-index: 1;
  grid-area: 3 / 1;
  min-width: 0;
  pointer-events: none;
}

.gr-address-heatmap-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.gr-address-heatmap-canvas:active { cursor: grabbing; }

.gr-address-heatmap-canvas .leaflet-tile-pane { filter: saturate(.68); }

.gr-address-heatmap-canvas .gr-address-heatmap-dot:focus-visible {
  outline: none;
  stroke: #26394a;
  stroke-width: 2.5;
}

.gr-address-heatmap-canvas .leaflet-bottom {
  bottom: max(8px, var(--address-map-attribution-bottom, 8px));
}

.gr-address-heatmap-canvas .leaflet-control-attribution {
  margin-inline-end: var(--address-gutter);
  padding-block: 1px;
  border-radius: 4px;
  background: var(--address-paper);
  color: var(--address-muted);
  font-size: 0.6875rem;
}

.gr-address-heatmap-canvas .leaflet-control-scale {
  margin-inline-start: var(--address-gutter);
  margin-block-end: 0;
}

.gr-address-heatmap-canvas .leaflet-control-scale-line {
  border-color: var(--address-muted);
  background: var(--address-paper);
  color: var(--address-ink);
}

.gr-address-heatmap-canvas .leaflet-tooltip {
  border-color: var(--address-line);
  background: var(--address-paper);
  color: var(--address-ink);
  font-size: 0.8125rem;
}

.gr-address-heatmap-canvas .gr-address-heatmap-origin-label {
  color: #922f35;
  font-weight: 650;
}

.gr-address-heatmap-range {
  --address-range-start: max(var(--address-gutter), env(safe-area-inset-left, 0px));
  position: absolute;
  inset-block-start: 10px;
  inset-block-end: 28px;
  inset-inline-start: var(--address-range-start);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: min(8rem, calc(100% - var(--address-range-start) - var(--address-control-space)));
  pointer-events: none;
}

.gr-address-heatmap .gr-address-heatmap-range-trigger {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
  color: var(--address-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
  pointer-events: auto;
}

.gr-address-heatmap-range-trigger span { min-width: 0; }

.gr-address-heatmap-range-icon {
  display: grid;
  width: 1.05em;
  height: 1.05em;
  flex: none;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--address-accent);
}

.gr-address-heatmap-range-icon::after {
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.gr-address-heatmap .gr-address-heatmap-range-trigger:is([data-limited="true"], [aria-expanded="true"]) {
  border-color: rgb(33 91 156 / 50%);
  background: var(--address-accent-soft);
  color: var(--address-accent);
}

.gr-address-heatmap-range-panel {
  width: 100%;
  min-height: 0;
  padding: 5px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5px;
  touch-action: pan-y;
  pointer-events: auto;
}

.gr-address-heatmap-range-panel p {
  margin: 0 0 3px;
  padding: 5px 8px 6px;
  border-bottom: 1px solid var(--address-line);
  color: var(--address-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-controls {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
  pointer-events: auto;
}

.gr-address-heatmap-controls button {
  display: grid;
  min-width: 44px;
  place-items: center;
  padding: 3px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--address-ink);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.gr-address-heatmap-controls button:is(:hover, :focus-visible) {
  background: var(--address-accent-soft);
  color: var(--address-accent);
}

.gr-address-heatmap-controls button:nth-child(-n + 2) { font-size: 1.125rem; }

.gr-address-heatmap-address-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, var(--gr-pro-shell-width, 430px));
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin: 0 auto;
  padding: 12px var(--address-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--address-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--address-paper);
  box-shadow: 0 -5px 24px rgb(40 56 73 / 16%);
  color: var(--address-ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gr-address-heatmap-address-sheet[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.gr-address-heatmap-address-sheet::backdrop { background: rgb(28 38 50 / 34%); }

.gr-address-heatmap-address-sheet-head {
  position: sticky;
  z-index: 1;
  top: -12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-block-start: -12px;
  padding-block: 12px 7px;
  border-bottom: 1px solid var(--address-line);
  background: var(--address-paper);
}

.gr-address-heatmap-address-sheet-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 730;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-address-sheet-head button {
  min-width: 44px;
  padding: 4px 8px;
  border: 1px solid var(--address-line);
  border-radius: 10px;
  background: var(--address-ground);
  color: var(--address-ink);
  white-space: nowrap;
  cursor: pointer;
}

.gr-address-heatmap-address-sheet p {
  margin: 0;
  color: var(--address-muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-nearby-sheet {
  --nearby-accent: #a52b39;
  --nearby-accent-soft: #fbeef0;
}

.gr-address-heatmap-nearby-origin,
.gr-address-heatmap-nearby-results {
  display: grid;
  gap: 6px;
}

.gr-address-heatmap-nearby-origin {
  padding: 10px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-ground);
}

.gr-address-heatmap-nearby-origin :empty { margin: 0; }
.gr-address-heatmap-nearby-origin p[role="status"]:empty { display: none; }

.gr-address-heatmap-nearby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gr-address-heatmap-nearby-actions > :is(a, button),
.gr-address-heatmap-nearby-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--address-line);
  border-radius: 10px;
  background: var(--address-paper);
  color: var(--address-ink);
  font-size: .8125rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.gr-address-heatmap-nearby-actions a + a {
  border-color: transparent;
  background: var(--nearby-accent-soft);
  color: var(--nearby-accent);
}

.gr-address-heatmap-nearby-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-address-heatmap-nearby-list > li {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
}

.gr-address-heatmap-nearby-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.gr-address-heatmap-nearby-item strong { overflow-wrap: anywhere; }

.gr-address-heatmap-nearby-item span {
  color: var(--nearby-accent);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gr-address-heatmap-nearby-more { justify-self: start; }

.gr-address-heatmap-point-card {
  z-index: 2;
  grid-area: 5 / 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: 0 var(--address-gutter) 9px;
  padding: 2px 12px 9px;
  border: 1px solid var(--address-line);
  border-radius: 15px;
  background: var(--address-paper);
  box-shadow: 0 4px 16px rgb(40 56 73 / 14%);
}

.gr-address-heatmap-point-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gr-address-heatmap-point-head h2 {
  margin: 0;
  color: var(--address-muted);
  font-size: .8125rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.gr-address-heatmap .gr-address-heatmap-point-close {
  flex: none;
  min-inline-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--address-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gr-address-heatmap-summary {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.gr-address-heatmap-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-inline: 2px;
}

.gr-address-heatmap-stats {
  flex: 1 1 10rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 4rem), 1fr));
  align-items: start;
  gap: 4px 10px;
  min-width: 0;
}

.gr-address-heatmap-stats > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-stats span {
  color: var(--address-muted);
  font-size: .75rem;
}

.gr-address-heatmap-stats strong {
  color: var(--address-ink);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.gr-address-heatmap-stats > div:first-child strong {
  color: var(--address-accent);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.gr-address-heatmap-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-inline-start: auto;
}

.gr-address-heatmap-summary-actions button {
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--address-accent-soft);
  color: var(--address-accent);
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
}

.gr-address-heatmap-summary-actions .gr-address-heatmap-nearby-trigger {
  background: #fbeef0;
  color: #a52b39;
}

.gr-address-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--address-ground);
  color: var(--address-muted);
  font-size: .75rem;
}

.gr-address-heatmap-legend::before {
  flex: none;
  inline-size: .625em;
  block-size: .625em;
  border-radius: 50%;
  background: var(--member-dot-color);
  content: "";
}

.gr-address-heatmap-note {
  margin: 0;
  color: var(--address-muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.gr-map-contact-details {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.gr-map-contact-list,
.gr-map-contact-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-map-contact-list {
  max-block-size: min(27dvh, 11.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.gr-map-contact-list > li + li {
  border-block-start: 1px solid #e2e7e8;
  margin-block-start: 7px;
  padding-block-start: 7px;
}

.gr-map-contact-people {
  display: grid;
  gap: 7px;
}

.gr-map-contact-people li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.gr-map-contact-avatar {
  display: grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #f8e9d9;
  color: #8c4719;
  font-size: 1rem;
  font-weight: 730;
}

.gr-map-contact-person {
  display: grid;
  gap: 3px;
}

.gr-map-contact-person strong,
.gr-map-contact-company {
  font-size: .975rem;
  font-weight: 740;
}

.gr-map-contact-person > span,
.gr-map-contact-address,
.gr-map-contact-status {
  margin: 3px 0 0;
  color: #526272;
  font-size: .8125rem;
  line-height: 1.45;
}

.gr-map-contact-person > span { margin: 0; }

.gr-map-contact-retry {
  min-height: 44px;
  padding-inline: 8px;
  color: #215b9c;
  font: inherit;
  cursor: pointer;
}

.gr-map-contact-list:focus-visible,
.gr-map-contact-retry:focus-visible {
  outline: 2px solid #215b9c;
  outline-offset: -2px;
}

.gr-address-heatmap-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gr-address-heatmap-list h2 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-list ul {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-address-heatmap-list li { min-width: 0; }

.gr-address-heatmap-list li button {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--address-ground);
  color: var(--address-ink);
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-address-heatmap-list li button[aria-pressed="true"] {
  border-color: rgb(33 91 156 / 42%);
  background: var(--address-accent-soft);
}

.gr-address-heatmap-list small {
  color: var(--address-muted);
  font-size: 0.75rem;
}

.gr-address-heatmap-message {
  position: absolute;
  inset: 40% var(--address-gutter) auto;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--address-line);
  border-radius: 12px;
  background: var(--address-paper);
  box-shadow: var(--address-shadow);
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-address-heatmap-message button { pointer-events: auto; }
.gr-address-heatmap-message p { margin: 0; }

.gr-map-contact-open {
  position: relative;
  display: block;
  min-block-size: 44px;
  padding: 5px 23px 5px 3px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.gr-map-contact-open::after {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  inline-size: 8px;
  block-size: 8px;
  border-block-start: 2px solid #215b9c;
  border-inline-end: 2px solid #215b9c;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) {
  .gr-map-contact-open:hover { background: #eef4fa; }
}

.gr-map-contact-open:active { background: #e5eff8; }

#root .gr-map-profile {
  --map-card-blue: #39469e;
  --map-card-header: #535dc5;
  --map-card-ink: #22273e;
  --map-card-muted: #525971;
  --map-card-paper: #fcfdff;
  --map-card-line: #e1e5f1;
  --map-card-soft: #f1f3fc;
  --map-card-gutter: var(--gr-page-gutter, 16px);
  min-block-size: 100dvh;
  min-inline-size: 0;
  padding-block-end: max(18px, env(safe-area-inset-bottom, 0px));
  background: #f1f3f9;
  color: var(--map-card-ink);
  overflow-wrap: anywhere;
}

.gr-map-profile-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  padding: max(5px, env(safe-area-inset-top, 0px)) var(--map-card-gutter) 5px;
  background: linear-gradient(160deg, #424ab4, var(--map-card-header));
  color: #fafbff;
}

.gr-map-profile-header a {
  display: grid;
  min-block-size: 44px;
  place-items: center;
  border-radius: 9px;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.gr-map-profile-header a:focus-visible {
  outline: 2px solid #fafbff;
  outline-offset: -2px;
}

.gr-map-profile-header h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 720;
  text-align: center;
}

.gr-map-profile-header h1:focus { outline: none; }

.gr-map-profile-emblem {
  justify-self: center;
  inline-size: 26px;
  block-size: 26px;
  border: 1px solid #eef1ff;
  border-radius: 50%;
  object-fit: cover;
}

.gr-map-profile-body {
  min-inline-size: 0;
  background: var(--map-card-paper);
}

.gr-map-business-cards,
.gr-map-business-card {
  display: grid;
  min-inline-size: 0;
}

.gr-map-business-cards { gap: 12px; }

.gr-map-business-masthead {
  padding: 0 var(--map-card-gutter) 13px;
  background: #edf0ff;
}

.gr-map-business-card:first-child .gr-map-business-masthead {
  background: linear-gradient(180deg, var(--map-card-header), #babff0);
}

.gr-map-business-face {
  display: grid;
  align-content: start;
  min-block-size: 145px;
  min-inline-size: 0;
  padding: 15px clamp(12px, 5vw, 20px) 18px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 12px;
  background: linear-gradient(153deg, #eef2ff, #fbfcff 76%);
  box-shadow: 0 3px 10px rgb(39 46 104 / 13%);
}

.gr-map-business-identity {
  display: grid;
  grid-template-columns: clamp(66px, 22vw, 90px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 3.6vw, 15px);
}

.gr-map-business-identity + .gr-map-business-identity {
  margin-block-start: 13px;
  padding-block-start: 13px;
  border-block-start: 1px solid var(--map-card-line);
}

.gr-map-business-portrait {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  align-self: start;
  border: 1px solid hsl(var(--map-portrait-hue, 231) 40% 78%);
  border-radius: 10px;
  background: hsl(var(--map-portrait-hue, 231) 52% 90%);
  color: hsl(var(--map-portrait-hue, 231) 62% 28%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 60%);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.gr-map-business-identity-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-inline-size: 0;
}

.gr-map-business-identity-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 740;
  line-height: 1.2;
}

.gr-map-business-affiliation,
.gr-map-business-company {
  margin: 0;
  color: var(--map-card-muted);
  font-size: .875rem;
  line-height: 1.45;
}

.gr-map-business-affiliation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
}

.gr-map-business-affiliation > span {
  padding: 2px 7px;
  border-radius: 5px;
  background: #e6eafe;
  color: var(--map-card-blue);
  font-size: .8125rem;
  font-weight: 680;
}

.gr-map-business-company {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  align-items: baseline;
}

.gr-map-business-company > strong { color: inherit; }

.gr-map-business-contact {
  min-inline-size: 0;
  padding: 13px var(--map-card-gutter) 15px;
  background: #f6f7fc;
}

.gr-map-business-contact-person + .gr-map-business-contact-person {
  margin-block-start: 7px;
  padding-block-start: 7px;
  border-block-start: 1px solid var(--map-card-line);
}

.gr-map-business-contact-name {
  margin: 0 6px 3px;
  color: var(--map-card-muted);
  font-size: .8125rem;
  font-weight: 650;
}

.gr-map-business-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr));
  gap: 5px 9px;
}

.gr-map-business-actions > :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-inline-size: 0;
  min-block-size: 54px;
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--map-card-ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.gr-map-business-actions > :is(a, button):focus-visible,
.gr-map-business-wechat button:focus-visible {
  outline: 2px solid var(--map-card-blue);
  outline-offset: -2px;
}

@media (hover: hover) {
  .gr-map-business-actions > :is(a, button):hover { background: #eaedfa; }
}

.gr-map-business-actions > :is(a, button):active { background: #e1e6fb; }

.gr-map-business-action-copy {
  display: grid;
  min-inline-size: 0;
  gap: 2px;
}

.gr-map-business-action-copy small {
  color: var(--map-card-muted);
  font-size: .75rem;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}

.gr-map-business-action-icon {
  display: grid;
  flex: none;
  inline-size: 42px;
  block-size: 42px;
  place-items: center;
  border: 1px solid #9fa9e6;
  border-radius: 8px;
  background: #edf0ff;
  color: var(--map-card-blue);
}

.gr-map-business-address {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin-block-start: 9px;
  padding: 11px 7px 0;
  border-block-start: 1px solid var(--map-card-line);
  color: var(--map-card-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.gr-map-business-address svg { color: var(--map-card-blue); }

.gr-map-business-address:first-child {
  margin-block-start: 0;
  padding-block-start: 2px;
  border-block-start: 0;
}

.gr-map-business-address strong {
  color: var(--map-card-ink);
  font-weight: 670;
}

.gr-map-business-address > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 7px;
}

.gr-map-business-address p {
  flex: 1 1 12em;
  min-inline-size: 0;
  margin: 0;
}

.gr-map-business-copy-notice { margin: 3px 0 0; }

.gr-map-business-copy-notice {
  padding-inline: 6px;
  color: var(--map-card-blue);
  font-size: .8125rem;
}

.gr-map-business-wechat {
  position: fixed;
  inset: auto 0 0;
  inline-size: min(100%, var(--gr-pro-shell-width, 430px));
  max-inline-size: 100%;
  max-block-size: 88dvh;
  margin: 0 auto;
  padding: 13px 16px max(17px, env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--map-card-line);
  border-block-end: 0;
  border-radius: 17px 17px 0 0;
  background: var(--map-card-paper);
  color: var(--map-card-ink);
}

.gr-map-business-wechat[open] {
  display: grid;
  gap: 9px;
}

.gr-map-business-wechat::backdrop { background: rgb(26 28 56 / 46%); }

.gr-map-business-wechat header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.gr-map-business-wechat header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 720;
}

.gr-map-business-wechat button {
  min-block-size: 44px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--map-card-ink);
  font: inherit;
  cursor: pointer;
}

.gr-map-business-wechat header button { font-size: 1.25rem; }

.gr-map-business-wechat .gr-map-business-wechat-copy {
  background: var(--map-card-blue);
  color: #fafbff;
  font-weight: 680;
}

.gr-map-business-wechat p {
  margin: 0;
  color: var(--map-card-muted);
  font-size: .875rem;
}

.gr-map-business-wechat-account {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--map-card-line);
  border-radius: 9px;
  background: var(--map-card-soft);
}

.gr-map-business-wechat-account strong {
  color: var(--map-card-ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
  user-select: text;
}

.gr-map-business-about {
  min-inline-size: 0;
  padding: 0 var(--map-card-gutter) 19px;
  border-block-start: 1px solid var(--map-card-line);
  background: var(--map-card-paper);
}

.gr-map-business-about > h2 {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 calc(-1 * var(--map-card-gutter)) 14px;
  padding: 12px var(--map-card-gutter) 9px;
  border-block-end: 1px solid var(--map-card-line);
  background: linear-gradient(180deg, #eff2ff, var(--map-card-paper));
  font-size: 1.0625rem;
  font-weight: 720;
  text-align: center;
}

.gr-map-business-about > h2::after {
  inline-size: 24px;
  block-size: 2px;
  border-radius: 99px;
  background: var(--map-card-blue);
  content: "";
}

.gr-map-business-about h3 {
  margin: 0 0 4px;
  font-size: .9375rem;
  font-weight: 670;
}

.gr-map-business-about div + div { margin-block-start: 10px; }

.gr-map-business-about p {
  margin: 0;
  color: var(--map-card-muted);
  font-size: .9375rem;
  line-height: 1.7;
  white-space: pre-line;
}

.gr-map-profile-message,
.gr-map-business-cards > .gr-map-contact-status {
  margin: 12px var(--map-card-gutter);
  padding: 14px;
  border: 1px solid var(--map-card-line);
  border-radius: 12px;
  background: var(--map-card-paper);
  color: var(--map-card-muted);
  font-size: .9375rem;
  text-align: center;
}
