.hqa {
  --atlas-blue: #176cb0;
  --atlas-active: #184fb6;
  --atlas-amber: #ffd58c;
  height: 100%;
  min-height: 300px;
  width: 100%;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: #183c50;
  background: radial-gradient(ellipse at 50% 38%, #f3f8fa 0%, #e7f1f5 65%, #e1edf2 100%);
  font-family: inherit;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
.hqa[hidden], .hqa [hidden] { display: none !important; }
.hqa.is-dragging { cursor: grabbing; }
.hqa::before, .hqa::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hqa::before {
  z-index: 0;
  background-image:
    radial-gradient(circle, #51849a39 .8px, transparent 1.2px),
    linear-gradient(to right, #57859d13 1px, transparent 1px),
    linear-gradient(to bottom, #57859d13 1px, transparent 1px);
  background-size: 16px 16px, 80px 80px, 80px 80px;
}
.hqa::after { z-index: 2; box-shadow: inset 0 0 28px #829fa814; }
.hqa-art, .hqa-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.hqa-art { z-index: 1; display: block; overflow: hidden; pointer-events: none; }
.hqa-art defs pattern path { stroke: #4296af; stroke-opacity: .36; }
.hqa-context { pointer-events: none; }
.hqa-ctx-blocks { fill: #d9e7ee; stroke: #bbd0da; stroke-width: 1; }
.hqa-ctx-walks, .hqa-ctx-streets, .hqa-ctx-avenues {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hqa-ctx-walks { stroke: #eff7fa; stroke-width: 2.5; }
.hqa-ctx-streets { stroke: #f8fcfe; stroke-width: 5.5; }
.hqa-ctx-avenues { stroke: #fff; stroke-width: 13; }
.hqa-buildings { stroke: #a7c2cf; stroke-width: 1.35; stroke-linejoin: round; }
.hqa-bldg-0 { fill: #c9dee6; }
.hqa-bldg-1 { fill: #d5e5eb; }
.hqa-bldg-2 { fill: #c1d9e3; }
.hqa-bldg-3 { fill: #cfdee9; }
.hqa-bldg-4 { fill: #dbe9ed; }
.hqa-bldg.is-procurement { fill: #b4dbe2; }
.hqa-roads { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hqa-road-major { stroke: #fff; filter: drop-shadow(0 0 1px #98b7c3); }
.hqa-road-local { stroke: #fff; }
.hqa-road-walk { stroke: #f7fbfd; }
.hqa-avenue { stroke: #d1e9e8; }
.hqa-avenue-axis { stroke: #5f9eae; }
.hqa-outline { opacity: 0; stroke: #5498a8; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.hqa-outline.is-visible { opacity: .77; }
.hqa-outline.is-active { stroke: #276bb7; stroke-width: 2; opacity: 1; }
.hqa-linkline { stroke: #357b92; stroke-width: 1.25; opacity: .83; }
.hqa-anchor { fill: #367c94; }
.hqa-road-label {
  fill: #44677a;
  paint-order: stroke;
  stroke: #f7fcfd;
  stroke-width: 3.1px;
  stroke-linejoin: round;
  font: 600 11px/1 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: .06em;
}
.hqa-pins { z-index: 3; pointer-events: none; }
.hqa .hqa-pin {
  appearance: none; border: 0; padding: 0; position: absolute; display: grid; place-items: center;
  width: 30px; height: 30px; transform: translate(-50%, -50%); background: none;
  pointer-events: auto; cursor: pointer; z-index: 1; font-family: inherit; border-radius: 50%;
}
.hqa-bubble {
  position: relative; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%;
  background: var(--atlas-blue); color: #fff; border: 1.4px solid #fff;
  box-shadow: 0 0 0 .7px #2869927a, 0 1px 4px #2c526345;
  font: 700 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.hqa-pin.is-ai .hqa-bubble {
  background: var(--atlas-amber); color: #523512; border-color: #ffedc7; border-radius: 5px;
  box-shadow: 0 0 0 .8px #b1732f, 0 1px 4px #61452c30;
}
.hqa-pin.is-saved .hqa-bubble::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 6px; height: 6px;
  border-radius: 50%; background: #a24689; border: 1px solid #fff;
}
.hqa-pin.is-hover, .hqa-pin:focus-visible { z-index: 12; }
.hqa-pin.is-selected { z-index: 11; }
.hqa-pin.is-selected .hqa-bubble {
  width: 25px; height: 25px; border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--atlas-active), 0 0 0 5px #4b91dc38, 0 2px 6px #344c8133;
}
.hqa-pin.is-selected:not(.is-ai) .hqa-bubble { background: var(--atlas-active); }
.hqa-pin:focus-visible { outline: 2px dashed #17469b; outline-offset: 3px; }
.hqa-pop {
  position: absolute; display: block; pointer-events: none; text-align: left; white-space: nowrap;
  font-size: 11px; line-height: 20px; font-weight: 650; letter-spacing: .02em; color: #254658;
  background: #ffffffed; padding: 0 5px; border-radius: 3px;
  box-shadow: 0 0 0 .6px #91aebd80, 0 1px 3px #35596519;
}
.hqa-pop.is-primary {
  font-size: 12px; line-height: 23px; padding: 0 8px; color: #fff; background: #174783;
  box-shadow: 0 2px 6px #294f7c35;
}
.hqa-compass, .hqa-key, .hqa-tools, .hqa-foot { position: absolute; z-index: 4; cursor: default; }
.hqa-compass {
  top: 13px; right: 15px; display: flex; align-items: center; flex-direction: column;
  color: #31586b; pointer-events: none; font: 700 9px/1 ui-monospace, monospace;
}
.hqa-compass svg { width: 16px; height: 21px; display: block; }
.hqa-compass svg path:first-child { fill: #235f81; }
.hqa-compass svg path:last-child { fill: #9fbac7; }
.hqa-key {
  top: 14px; left: 14px; display: flex; gap: 13px; padding: 7px 9px; background: #fffffff2;
  border: 1px solid #c4d8e0; border-radius: 5px; color: #36586b; font-size: 11px;
  line-height: 1.1; pointer-events: none; box-shadow: 0 2px 4px #28516a0e;
}
.hqa-key-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hqa-key-item i { width: 8px; height: 8px; display: block; }
.hqa-dot-site { background: var(--atlas-blue); border-radius: 50%; }
.hqa-dot-ai { background: var(--atlas-amber); border: 1px solid #a36c32; border-radius: 2px; }
.hqa-tools {
  right: 13px; bottom: 38px; display: grid; padding: 2px; border-radius: 6px;
  border: 1px solid #bdd0d9; background: #fffffff0; box-shadow: 0 3px 10px #294e641a;
}
.hqa-tools button {
  width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 3px;
  background: transparent; color: #31556e; cursor: pointer;
}
.hqa-tools button:hover { background: #dfedf5; color: #145c9d; }
.hqa-tools button:focus-visible, .hqa-attr:focus-visible { outline: 2px solid #2065a5; outline-offset: 1px; }
.hqa-tools button:disabled { opacity: .4; cursor: default; }
.hqa-tools button svg { display: block; width: 17px; height: 17px; }
.hqa-foot {
  left: 14px; right: 14px; bottom: 10px; display: flex; align-items: flex-end;
  justify-content: space-between; pointer-events: none;
}
.hqa-ruler {
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: #315469;
  font: 600 10px/1.05 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .035em;
  text-shadow: 0 0 3px #fff;
}
.hqa-ruler i { height: 4px; border: 1px solid #537384; border-top: 0; }
.hqa .hqa-attr {
  pointer-events: auto; color: #435f6f; text-decoration: none; background: #ffffffdb;
  border-radius: 2px; padding: 2px 4px; font: 500 10px/1.15 system-ui, sans-serif;
}
.hqa-attr:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .hqa-pin.is-selected .hqa-bubble::before {
    content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
    border: 1px solid #3982c7; opacity: 0; animation: hqa-selection-ring 1s ease-out 2;
  }
  .hqa-pin .hqa-bubble { transition: background-color 140ms, box-shadow 140ms; }
  .hqa-tools button { transition: color 150ms, background-color 150ms; }
  @keyframes hqa-selection-ring {
    0% { transform: scale(.92); opacity: .56; }
    100% { transform: scale(1.5); opacity: 0; }
  }
}
@media (max-width: 550px) {
  .hqa-key { top: 10px; left: 10px; padding: 6px 8px; gap: 10px; }
  .hqa-tools { right: 9px; bottom: 32px; }
  .hqa-compass { top: 10px; right: 12px; }
  .hqa-foot { left: 11px; right: 9px; bottom: 8px; }
}
@media (pointer: coarse) {
  .hqa-tools button { width: 38px; height: 38px; }
}
