.scene-container {
  position: absolute;
  top: 174px;
  left: 0;
  right: 0;
  bottom: 24px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background: radial-gradient(ellipse at 50% 45%, #26392e40 0%, #11191800 65%);
}
.scene-container > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s;
}
.scene-container.loaded > canvas {
  opacity: 1;
}
.scene-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.scene-labels button {
  pointer-events: auto;
}
.scene-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  z-index: 4;
}
.scene-loading p {
  font-size: 12px;
  line-height: 1.8;
}
.scene-loading small {
  display: block;
  font-size: 9px;
  color: var(--faint);
}
.loading-mark {
  height: 25px;
  width: 25px;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  animation: loading-turn 1.5s linear infinite;
  transform: rotate(30deg);
}
@keyframes loading-turn {
  to {
    transform: rotate(390deg);
  }
}
.district-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px #0002;
  padding: 5px 7px;
  border-radius: 2px;
  transition:
    background 0.16s,
    opacity 0.3s,
    color 0.16s;
  font-size: 9px;
  color: var(--text);
  letter-spacing: 0.3px;
  backdrop-filter: blur(3px);
}
.district-label:hover,
.district-label.selected {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}
.district-label-number {
  font-family: var(--number);
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0;
}
.district-label-kpi {
  font-family: var(--number);
  font-size: 7px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 6px;
  letter-spacing: 0;
}
.district-label.dimmed {
  opacity: 0.45;
}
.project-label {
  font-size: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  border-radius: 2px;
  white-space: nowrap;
  max-width: 160px;
}
.project-label:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 7px;
  width: 1px;
  background: var(--accent);
}
.project-label b {
  font-size: 8px;
  color: var(--accent);
  font-weight: 400;
  border-right: 1px solid var(--line);
  padding-right: 5px;
}
.project-label span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.followup-pin {
  width: 24px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px 3px 3px 0;
  color: var(--text);
}
.followup-pin .icon {
  height: 12px;
  width: 12px;
}
.followup-pin:after {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--accent);
  position: absolute;
  top: 100%;
  left: 0;
}
.milestone-marker {
  height: 13px;
  width: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--number);
  font-size: 6px;
  border-radius: 50%;
}
.milestone-marker.done {
  border-color: var(--line);
  color: var(--text);
}
.city-caption {
  position: absolute;
  top: 214px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.4px;
  pointer-events: none;
  z-index: 4;
}
.caption-line {
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.view-tools {
  position: absolute;
  right: 28px;
  top: 209px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: 4;
  box-shadow: 0 3px 10px #0001;
}
.view-tools > span {
  height: 15px;
  width: 1px;
  background: var(--line);
}
.view-tools .icon-button {
  height: 30px;
  width: 27px;
}
.view-tools .icon-button .icon {
  width: 13px;
  height: 13px;
}
.view-tools .view-button {
  font-size: 9px;
  padding: 7px 9px;
}
.scene-bottom {
  position: absolute;
  bottom: 19px;
  left: 31px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 4;
  color: var(--faint);
  pointer-events: none;
}
.scene-bottom p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  margin: auto;
}
.scene-bottom p > .icon,
.scene-bottom p > span .icon {
  width: 12px;
  height: 12px;
}
.scene-bottom p > span {
  color: var(--faint);
}
.scene-bottom .help-button {
  pointer-events: auto;
}
.compass {
  position: relative;
  height: 44px;
  width: 30px;
  color: var(--muted);
  font-family: var(--number);
  flex-shrink: 0;
}
.compass > span {
  position: absolute;
  top: 0;
  left: 12px;
  font-size: 7px;
}
.compass svg {
  height: 30px;
  width: 30px;
  position: absolute;
  top: 8px;
  transform: rotate(32deg);
  stroke: #849373;
  fill: #84937326;
  stroke-width: 1;
}
.focus-summary {
  position: absolute;
  top: 201px;
  left: 30px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 3px;
  box-shadow: 0 8px 22px #0002;
}
.focus-summary strong {
  font-weight: 500;
}
.focus-summary > span:not(.focus-summary-dot) {
  font-size: 8px;
  color: var(--muted);
}
.focus-summary button {
  padding: 0;
  color: var(--muted);
}
.focus-summary button .icon {
  width: 12px;
  height: 12px;
}
.focus-summary-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.city-tooltip {
  position: fixed;
  z-index: 50;
  min-width: 252px;
  max-width: 310px;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 35px #0006;
  padding: 14px 16px;
  border-radius: 4px;
}
.tooltip-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
.tooltip-eyebrow > span {
  font-family: var(--number);
  color: var(--accent);
}
.city-tooltip > strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 9px;
  line-height: 1.6;
  color: var(--text);
}
.tooltip-numbers {
  display: flex;
  gap: 30px;
  margin: 17px 0 14px;
}
.tooltip-numbers > span {
  font-size: 8px;
  color: var(--muted);
}
.tooltip-numbers b {
  display: block;
  font-family: var(--number);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin-top: 5px;
  color: var(--text);
}
.tooltip-foot {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tooltip-foot > span {
  font-size: 7px;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .district-label {
    font-size: 7px;
    gap: 4px;
    padding: 4px 5px;
  }
  .district-label-number,
  .district-label-kpi {
    display: none;
  }
  .scene-container {
    background: radial-gradient(
      ellipse at 50% 50%,
      #26392e40 0%,
      #11191800 75%
    );
  }
  .focus-summary strong {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .focus-summary > span:not(.focus-summary-dot) {
    font-size: 7px;
  }
}
@media (min-width: 1021px) and (min-height: 801px) {
  .city-panel .scene-container {
    top: 210px;
  }
}

.view-tools .orbit-button {
  width: 30px;
}
#overhead-view {
  border-left: 1px solid var(--line);
  border-radius: 0 3px 3px 0;
}
@media (max-width: 760px) {
  .view-tools .orbit-button {
    width: 32px;
    height: 32px;
  }
  .scene-bottom p {
    max-width: 220px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
}
