/**
 * Autonomous Tables map preview — scoped to search slide only.
 * Visual tokens mirror join table square tiles; scoped classes only.
 */
#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#f7-app-root .page-shell-swipe-host #tab-shell-search .f7-autonomous-section-tables .f7-autonomous-tables-map,
#f7-app-root .page-shell-section[data-name="shell-search"] .f7-autonomous-section-tables .f7-autonomous-tables-map {
  margin-top: 4px;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--f7-map-artboard-w, 1000) / var(--f7-map-artboard-h, 700);
  max-height: min(62vh, 520px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map-marker {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map-marker--speaker {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--inactive {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--inactive.f7-autonomous-map-table--mine {
  opacity: 0.55;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--pressed:not(.f7-autonomous-map-table--inactive),
#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table:active:not(.f7-autonomous-map-table--inactive) {
  background: rgba(255, 106, 0, 0.35);
  border-color: #ff6a00;
  color: #fff;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-tables-map-marker--area {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(170, 68, 238, 0.12);
  border: 1px solid rgba(170, 68, 238, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--rect {
  padding: 8px 10px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  hyphens: auto;
  -webkit-touch-callout: none;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table-count {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff6a00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  flex: 0 0 auto;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table-count[hidden] {
  display: none !important;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--inactive .f7-autonomous-map-table-count {
  display: none !important;
}

#f7-app-root .f7-autonomous-section-tables .f7-autonomous-map-table--mine {
  border-color: rgba(90, 200, 140, 0.65);
  background: rgba(60, 160, 110, 0.28);
  color: #fff;
}
