:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: rgba(255, 255, 255, .78);
  --solid: #fff;
  --line: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --high: #ff3b30;
  --medium: #ff9500;
  --pending: #0f766e;
  --other: #8e8e93;
  --green: #0f766e;
  --glass: saturate(180%) blur(22px);
  --shadow: 0 22px 56px rgba(0, 0, 0, .18);
  --soft: 0 10px 30px rgba(0, 0, 0, .10);
  --map-bg: #f5f5f7;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --paper: rgba(28, 28, 30, .76);
    --solid: #1c1c1e;
    --line: rgba(255, 255, 255, .12);
    --blue: #0a84ff;
    --high: #ff453a;
    --medium: #ff9f0a;
    --pending: #30d158;
    --other: #98989d;
    --green: #30d158;
    --shadow: 0 22px 56px rgba(0, 0, 0, .42);
    --soft: 0 10px 30px rgba(0, 0, 0, .30);
    --map-bg: #161618;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  height: -webkit-fill-available;
}

html, body, #app {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

body {
  background: var(--map-bg);
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--map-bg);
}

#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--map-bg);
}

.leaflet-container {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--map-bg);
}

.leaflet-tile-pane {
  filter: contrast(1.18) saturate(1.05) brightness(.98);
}

@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane {
    filter: contrast(1.08) saturate(.78) brightness(.64) invert(.92) hue-rotate(180deg);
  }
}

.leaflet-control-attribution {
  display: none;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--soft) !important;
}

.leaflet-control-zoom a {
  border-color: var(--line) !important;
  color: var(--ink) !important;
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.top-panel {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  z-index: 900;
  display: grid;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
  overflow: hidden;
}

.search-box {
  min-width: 0;
  max-width: 100%;
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 0 7px 0 14px;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  pointer-events: auto;
}

#searchInput {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
}

#searchInput::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

button {
  font-family: inherit;
}

#searchBtn, #syncBtn {
  border: 0;
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.search-results {
  min-width: 0;
  max-width: 100%;
  max-height: min(42dvh, 360px);
  overflow: auto;
  padding: 6px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  pointer-events: auto;
}

.result-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}

.result-item:active {
  background: rgba(0,0,0,.05);
}

.result-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.summary-pill,
.filter-toggle,
.panorama-filters button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  color: var(--muted);
  box-shadow: 0 7px 18px rgba(0,0,0,.10);
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.summary-pill {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--ink);
}

.summary-pill strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.summary-pill span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-legend {
  position: fixed;
  top: calc(max(8px, env(safe-area-inset-top)) + 88px);
  right: max(12px, env(safe-area-inset-right));
  z-index: 820;
  display: none;
  gap: 7px;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.field-controls {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 840;
  display: flex;
  gap: 8px;
  align-items: center;
}

.field-tool {
  width: 76px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--soft);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.field-tool span {
  font-size: 19px;
  line-height: 1;
}

.field-tool b {
  font-size: 12px;
  letter-spacing: 0;
}

.field-tool:active {
  transform: scale(.96);
}

.field-tool:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .32);
  outline-offset: 2px;
}

.field-tool:disabled {
  opacity: .55;
  cursor: wait;
}

.field-tool.loading span {
  animation: locate-pulse 1s ease-in-out infinite;
}

@keyframes locate-pulse {
  50% { opacity: .45; transform: scale(.82); }
}

body.map-exploring .top-panel .search-box,
body.map-exploring .top-panel .search-results {
  display: none;
}

body.map-exploring .top-panel {
  gap: 0;
}

.panorama-filters {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  top: calc(max(8px, env(safe-area-inset-top)) + 90px);
  z-index: 910;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  pointer-events: auto;
}

.panorama-filters[hidden] {
  display: none !important;
}

.map-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-toggle {
  min-width: 58px;
  padding: 0 12px;
  color: var(--ink);
}

.filter-toggle.active,
.panorama-filters button.active {
  border-color: transparent;
  background: var(--ink);
  color: var(--solid);
}

.reset-view-btn {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 840;
  min-width: 76px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 113, 227, .30);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.reset-view-btn[hidden] {
  display: none !important;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.dot.high { background: var(--high); }
.dot.medium { background: var(--medium); }
.dot.pending { background: var(--pending); }
.dot.other { background: var(--other); }

.sync-panel[hidden] {
  display: none !important;
}

.sync-panel {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 800;
  min-height: 38px;
  max-width: calc(100vw - 24px);
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 6px 7px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.sync-panel b,
.sync-panel span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-panel.button-only {
  left: auto;
  right: max(12px, env(safe-area-inset-right));
  grid-template-columns: auto;
  padding: 6px;
}

.sync-panel.button-only > div {
  display: none;
}

.sync-panel b {
  font-size: 12px;
  line-height: 1.25;
}

.sync-panel span {
  margin-top: 0;
  color: var(--muted);
  font-size: 10px;
}

.sync-panel span:empty {
  display: none;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 850;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  max-height: calc(100dvh - env(safe-area-inset-top) - 8px);
  padding: 6px 12px max(12px, env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: 0 -14px 42px rgba(0,0,0,.12);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transform: translateY(calc(100% - 62px - env(safe-area-inset-bottom)));
  transition: transform .22s ease;
  overflow: hidden;
  overflow-x: hidden;
}

.bottom-sheet.open {
  top: 0;
  z-index: 960;
  transform: translateY(0);
  height: 100dvh;
  max-height: 100dvh;
  padding-top: max(8px, env(safe-area-inset-top));
  border-radius: 0;
}

.grab {
  width: 38px;
  height: 4px;
  margin: 0 auto 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
}

.sheet-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

#bottomSheet > .sheet-toolbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sheet-toolbar button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-color-scheme: dark) {
  .sheet-toolbar button {
    background: rgba(44,44,46,.72);
  }
}

.sheet-toolbar button.active {
  background: var(--ink);
  color: #fff;
}

.list-memory-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.list-memory-tabs button,
.card-actions button,
.card-actions a,
.section-action {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-memory-tabs button.active,
.card-actions button.active {
  background: var(--ink);
  color: #fff;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.section-action {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  color: var(--blue);
}

#sheetContent {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: calc(100% - 55px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 10px;
}

.company-card,
.new-funds-card,
.empty-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .company-card,
  .new-funds-card,
  .empty-card {
    background: rgba(28,28,30,.74);
  }
}

.company-head {
  min-width: 0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.company-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
}

.badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.badge.high {
  color: var(--high);
  background: rgba(255, 59, 48, .1);
}

.badge.medium {
  color: #a85f00;
  background: rgba(255, 149, 0, .14);
}

.badge.pending {
  color: var(--pending);
  background: rgba(15, 118, 110, .12);
}

.badge.other {
  color: var(--muted);
  background: rgba(142,142,147,.12);
}

.info-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.info {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(245,245,247,.76);
}

@media (prefers-color-scheme: dark) {
  .info {
    background: rgba(44,44,46,.72);
  }
}

.info.wide {
  grid-column: 1 / -1;
}

.address-info {
  padding: 0;
  overflow: hidden;
}

.address-info > b {
  padding: 7px 8px 0;
}

.info b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.info span {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 4px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.address-link span {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.address-link em {
  font-style: normal;
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}

.address-link:active {
  background: rgba(0, 113, 227, .08);
}

.address-link:focus-visible {
  outline: 2px solid rgba(0, 113, 227, .42);
  outline-offset: -2px;
}

@media (prefers-color-scheme: dark) {
  .address-link span {
    color: var(--ink);
  }
}

.people-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(245,245,247,.74);
  border: 1px solid var(--line);
}

.people-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.people-title span {
  color: var(--muted);
  font-size: 11px;
}

.people-line {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 8px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.people-line b {
  color: var(--muted);
}

.people-line span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (prefers-color-scheme: dark) {
  .people-panel {
    background: rgba(44,44,46,.72);
  }
}

.evidence {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,247,237,.76);
  border: 1px solid rgba(255,149,0,.22);
}

.evidence:not([open]) {
  gap: 0;
}

.evidence summary {
  cursor: pointer;
  list-style: none;
}

.evidence summary::-webkit-details-marker {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .evidence {
    background: rgba(73, 45, 16, .42);
    border-color: rgba(255,159,10,.24);
  }

  .evidence-title,
  .evidence-line b {
    color: #ffd6a3;
  }

  .evidence-line {
    color: #f2d8bd;
  }
}

.evidence-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8a4b0f;
  font-size: 12px;
  font-weight: 900;
}

.evidence-line {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  color: #513b24;
  font-size: 11px;
  line-height: 1.35;
}

.evidence-line b {
  color: #8a4b0f;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.near-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.near-item,
.new-fund-item,
.memory-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(245,245,247,.92);
  color: var(--ink);
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .near-item,
  .new-fund-item,
  .memory-item {
    background: rgba(44,44,46,.72);
  }

  .list-memory-tabs button,
  .card-actions button,
  .card-actions a,
  .section-action {
    background: rgba(44,44,46,.72);
  }
}

.memory-item {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.memory-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.memory-section-title {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.near-name,
.new-fund-name {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.near-meta,
.new-fund-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-pill {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(142,142,147,.12);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-pill.high {
  color: var(--high);
  background: rgba(255,59,48,.1);
}

.mini-pill.medium {
  color: #a85f00;
  background: rgba(255,149,0,.14);
}

.mini-pill.pending {
  color: var(--pending);
  background: rgba(15,118,110,.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100vw - 28px);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(29,29,31,.88);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.marker-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.24);
}

.marker-dot.high { background: var(--high); }
.marker-dot.medium { background: var(--medium); }
.marker-dot.pending { background: var(--pending); }
.marker-dot.other { background: var(--other); }
.marker-dot.selected {
  width: 21px;
  height: 21px;
  outline: 7px solid rgba(0,113,227,.18);
}

.building-group-marker {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  border: 2px solid rgba(255, 255, 255, .92);
  transform: translateZ(0);
}

.building-group-marker.quant {
  background: linear-gradient(135deg, #6d28d9, #0f766e);
}

.building-group-marker.nonQuant {
  background: linear-gradient(135deg, #64748b, #334155);
}

.building-group-marker.pending {
  background: linear-gradient(135deg, #0f766e, #0369a1);
}

.building-group-marker.selected {
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, .24),
    0 14px 32px rgba(0, 0, 0, .32);
}

.building-group-marker strong {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.building-group-marker span {
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
}

.target-building-label,
.building-count-label {
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 7px 18px rgba(0,0,0,.12);
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.target-building-label.tappable,
.building-count-label.tappable {
  cursor: pointer;
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
}

.target-building-label.tappable:active,
.building-count-label.tappable:active {
  transform: scale(.96);
}

.target-building-label {
  background: color-mix(in srgb, var(--blue) 13%, rgba(255,255,255,.88));
}

.cluster-marker {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: color-mix(in srgb, var(--blue) 84%, white);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  font-size: 13px;
  font-weight: 950;
}

.cluster-marker.quant {
  background: color-mix(in srgb, var(--high) 82%, var(--medium));
}

.cluster-marker.nonQuant {
  background: color-mix(in srgb, var(--other) 86%, black);
}

.cluster-marker.pending {
  background: color-mix(in srgb, var(--pending) 84%, #0369a1);
}

.cluster-marker strong {
  display: block;
  line-height: 1;
}

.cluster-marker span {
  margin-top: 2px;
  display: block;
  font-size: 9px;
  opacity: .88;
}

@media (min-width: 760px) {
  .top-panel {
    width: 430px;
    right: auto;
  }

  .bottom-sheet {
    left: auto;
    width: 430px;
    max-width: 430px;
    height: 72dvh;
    max-height: none;
    border-radius: 24px 0 0 0;
    transform: translateX(0);
  }

  .bottom-sheet.compact {
    transform: translateX(calc(100% - 92px));
  }

  .bottom-sheet.open {
    top: auto;
    z-index: 850;
    height: 72dvh;
    max-height: none;
    padding-top: 6px;
    border-radius: 24px 0 0 0;
  }

  .sync-panel {
    width: 430px;
    left: 12px;
    right: auto;
  }

  .panorama-filters {
    width: 430px;
    right: auto;
  }
}

@media (max-width: 760px) {
  .panorama-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .building-group-marker {
    width: 54px;
    height: 54px;
  }

  .building-group-marker strong {
    font-size: 17px;
  }

  .building-group-marker span {
    font-size: 10px;
  }
}

@media (max-width: 759px) {
  .bottom-sheet.open {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    transform: none !important;
    transition: none;
  }
}
