:root {
  --panel: rgba(255, 255, 255, 0.975);
  --panel-soft: rgba(248, 250, 252, 0.985);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --blue-soft: #eff6ff;
  --red: #ef4444;
  --red-strong: #dc2626;
  --green: #16a34a;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e8eef6;
}

button,
input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 20%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(145deg, #dce6f2 0%, #edf2f8 52%, #dfe7f0 100%);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 398px;
  right: 18px;
  min-height: 68px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.setup-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  background: #FFF;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255,255,255,.28);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-row h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .08em;
  font-weight: 900;
}

.brand-lockup p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-badge,
.format-pill,
.layer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  border: 1px solid rgba(37, 99, 235, 0.13);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.topbar-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.12);
}

.status-dot.ready {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.panel {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 382px;
  max-width: calc(100vw - 24px);
  padding: 14px 12px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  backdrop-filter: blur(20px) saturate(1.15);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, .42) rgba(148, 163, 184, .14);
}

.panel::-webkit-scrollbar { width: 10px; }
.panel::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(148,163,184,.10), rgba(148,163,184,.05));
  border-left: 1px solid rgba(15,23,42,.04);
}
.panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(37,99,235,.62), rgba(29,78,216,.72));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.85);
}
.panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(59,130,246,.78), rgba(29,78,216,.86));
}

.hero-card,
.section-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59,130,246,.18), transparent 36%),
    linear-gradient(150deg, #ffffff 0%, #f8fbff 62%, #eff6ff 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -48px;
  bottom: -66px;
  border-radius: 50%;
  border: 18px solid rgba(37,99,235,.05);
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--blue-strong);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .11em;
}

.hero-card h2 {
  max-width: 300px;
  margin: 8px 0 8px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 900;
}

.hero-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-card p strong { color: var(--text); }

.section-card {
  margin-bottom: 10px;
  padding: 12px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-title-row.compact { margin-bottom: 9px; }
.section-title-row h3 {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.dropzone {
  width: 100%;
  min-height: 132px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px dashed rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  cursor: pointer;
  transition: .16s ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: rgba(37, 99, 235, 0.58);
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,99,235,.09);
}

.dropzone strong {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 850;
}

.dropzone span:not(.upload-icon) {
  color: var(--muted);
  font-size: 11px;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue-strong);
  background: #fff;
  border: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 9px 20px rgba(37,99,235,.10);
}

.upload-icon svg { width: 23px; height: 23px; }

.file-summary {
  margin-top: 10px;
  min-height: 64px;
  padding: 9px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid rgba(22,163,74,.12);
  font-size: 11px;
  font-weight: 950;
}

.file-copy { min-width: 0; }
.file-copy strong,
.file-copy span { display: block; }
.file-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.file-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.icon-button:hover { color: var(--blue-strong); border-color: rgba(37,99,235,.22); }
.icon-button svg { width: 16px; height: 16px; }

.hint-box {
  margin-top: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.hint-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 900;
}

.hint-box strong,
.hint-box span { display: block; }
.hint-box strong { font-size: 11px; font-weight: 850; }
.hint-box span { margin-top: 2px; color: var(--muted); font-size: 11px; }

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

.stat-box {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.stat-box span,
.stat-box strong { display: block; }
.stat-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.stat-box strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}
.stat-box.success strong { color: var(--green); }
.stat-box.danger strong { color: var(--red-strong); }

.actions-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 102px;
  gap: 8px;
}

.btn {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.015); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 9px 20px rgba(37,99,235,.20), inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-secondary {
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--line);
}

.btn.full { width: 100%; margin-top: 12px; }

.dataset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  min-height: 160px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,.35);
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 28px;
  line-height: 1;
}

.empty-state strong { font-size: 12px; font-weight: 850; }
.empty-state span {
  max-width: 280px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dataset-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.dataset-item-top {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 32px;
  gap: 9px;
  align-items: center;
}

.dataset-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.96);
  box-shadow: 0 0 0 1px rgba(15,23,42,.10), 0 6px 12px rgba(15,23,42,.10);
}

.dataset-copy { min-width: 0; }
.dataset-copy strong,
.dataset-copy span { display: block; }
.dataset-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dataset-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dataset-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dataset-tag {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.10);
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.dataset-tag.muted {
  border-color: rgba(148,163,184,.20);
  background: #f8fafc;
  color: var(--muted);
}

.dataset-meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dataset-item-actions {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(148,163,184,.12);
}

.dataset-link {
  padding: 0;
  border: 0;
  color: var(--blue-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.dataset-action {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.dataset-action svg { width: 15px; height: 15px; }
.dataset-action.danger:hover {
  color: var(--red-strong);
  border-color: rgba(220,38,38,.22);
}

.panel-footer {
  min-height: 42px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.footer-spacer { flex: 1; }

.red-dot-legend {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(220,38,38,.20), 0 2px 5px rgba(15,23,42,.18);
}

.map-tools {
  position: fixed;
  z-index: 22;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.map-tool-button,
.compass-control {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 16px 34px rgba(15,23,42,.12);
}

.map-tool-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--text);
  border-radius: 16px;
  cursor: pointer;
}
.map-tool-button:hover {
  color: var(--blue-strong);
  transform: translateY(-1px);
}
.map-tool-button svg { width: 22px; height: 22px; }

.compass-control {
  width: 92px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 22px;
  color: var(--text);
  cursor: pointer;
}

.compass-shell {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
}

.compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f8fafc 58%, #e2e8f0 100%);
  border: 1px solid rgba(148,163,184,.26);
  box-shadow: inset 0 2px 8px rgba(255,255,255,.65), 0 10px 18px rgba(15,23,42,.08);
}

.compass-needle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: transform .22s ease;
}
.compass-needle svg { width: 44px; height: 44px; }

.compass-n {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  font-weight: 950;
  color: var(--blue-strong);
}

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

.compass-control.north .compass-label { color: var(--blue-strong); }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  max-width: min(720px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,23,42,.94);
  box-shadow: 0 14px 34px rgba(15,23,42,.24);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(185,28,28,.96); }
.toast.success { background: rgba(21,128,61,.96); }

.setup-overlay,
.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.42);
  backdrop-filter: blur(12px);
}
.setup-overlay[hidden],
.modal-overlay[hidden] { display: none; }

.setup-card,
.modal-card {
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 32px 80px rgba(15,23,42,.28);
}

.setup-card .setup-logo { margin-bottom: 16px; }
.setup-card h2,
.modal-head h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.03em; }
.setup-card p,
.modal-copy { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.setup-card label,
.modal-field-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
}
.setup-card input,
.modal-field-group input[type="text"] {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  outline: none;
  color: var(--text);
  background: #f8fafc;
}
.setup-card input:focus,
.modal-field-group input[type="text"]:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.setup-card small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.setup-card code { color: var(--blue-strong); }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-copy { margin-bottom: 14px; }

.modal-field-group + .modal-field-group { margin-top: 12px; }

.color-picker-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
}

#datasetColorInput {
  width: 84px;
  height: 44px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.preset-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(15,23,42,.10), 0 6px 12px rgba(15,23,42,.08);
  cursor: pointer;
}

.modal-file-caption {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.gm-style .gm-style-mtc button,
.gm-style .gm-control-active {
  border-radius: 14px !important;
}

@media (max-width: 900px) {
  .topbar {
    left: 16px;
    right: 16px;
    top: 14px;
  }

  .panel {
    top: 96px;
    bottom: 12px;
    left: 12px;
    width: min(360px, calc(100vw - 24px));
    height: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .map-tools {
    top: auto;
    bottom: 92px;
    right: 14px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .topbar-status { display: none; }
  .brand-lockup p { max-width: 210px; }
  .panel { right: 12px; width: auto; }
  .hero-card h2 { font-size: 20px; }
  .map-tools {
    right: 10px;
    bottom: 80px;
    gap: 10px;
  }
  .map-tool-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .compass-control {
    width: 82px;
    padding: 8px 6px 7px;
  }
  .compass-shell {
    width: 54px;
    height: 54px;
  }
}

/* v1.4 · seleção de campos e detalhe tabular dos pontos */
.modal-card {
  width: min(580px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,.45) rgba(148,163,184,.10);
}

.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-track { background: rgba(148,163,184,.08); }
.modal-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59,130,246,.62), rgba(29,78,216,.76));
  border-radius: 999px;
  border: 2px solid #fff;
}

.details-field-group {
  padding-top: 2px;
}

.column-select-shell {
  position: relative;
}

.column-select-shell select {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.column-select-shell select:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.column-select-shell select:disabled {
  cursor: default;
  color: var(--muted);
  background: #f8fafc;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.select-chevron svg { width: 16px; height: 16px; }

.selected-columns {
  min-height: 48px;
  margin-top: 9px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
}

.selected-columns-empty {
  padding: 3px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.column-tag {
  min-height: 30px;
  max-width: 100%;
  padding: 0 4px 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: var(--tag-text, #fff);
  background: var(--tag-color, #2563eb);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--tag-color, #2563eb) 24%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.column-tag > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.column-tag button {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255,255,255,.18);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.column-tag button:hover { background: rgba(255,255,255,.30); }

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.point-details {
  position: fixed;
  z-index: 26;
  left: 400px;
  right: 86px;
  bottom: 18px;
  max-height: 230px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 22px 52px rgba(15,23,42,.18);
  animation: pointDetailsIn .18s ease-out;
}

.point-details[hidden] { display: none; }

@keyframes pointDetailsIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.point-details-head {
  min-height: 63px;
  padding: 10px 12px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.point-details-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.point-details-swatch {
  width: 13px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 7px 16px rgba(15,23,42,.12);
}

.point-details-copy { min-width: 0; }
.point-details-copy strong,
.point-details-copy > span:not(.section-kicker) { display: block; }
.point-details-copy strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-details-copy > span:not(.section-kicker) {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.point-details-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-details-maps {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(37,99,235,.20);
  border-radius: 11px;
  color: var(--blue-strong);
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.point-details-maps[hidden] { display: none; }
.point-details-maps:hover {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.36);
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 18px rgba(37,99,235,.12);
}
.point-details-maps:focus-visible {
  outline: 3px solid rgba(37,99,235,.22);
  outline-offset: 2px;
}
.point-details-maps i { font-size: 13px; }

.point-details-correction {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.96);
  color: #9a3412;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.point-details-correction[hidden] { display: none; }
.point-details-correction:hover {
  transform: translateY(-1px);
  border-color: rgba(194, 65, 12, 0.48);
  background: #fff7ed;
}
.point-details-correction:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .24);
  outline-offset: 2px;
}
.point-details-correction i { font-size: 13px; }

.point-details-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.point-details-close:hover {
  color: var(--red-strong);
  border-color: rgba(220,38,38,.20);
}
.point-details-close svg { width: 16px; height: 16px; }

.point-details-table-wrap {
  max-height: 166px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,.42) rgba(148,163,184,.10);
}

.point-details-table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.point-details-table-wrap::-webkit-scrollbar-track { background: rgba(148,163,184,.08); }
.point-details-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(59,130,246,.56), rgba(29,78,216,.74));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.90);
}

.point-details-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.point-details-table th,
.point-details-table td {
  min-width: 150px;
  max-width: 320px;
  padding: 9px 12px;
  text-align: left;
  border-right: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.10);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point-details-table th:last-child,
.point-details-table td:last-child { border-right: 0; }

.point-details-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #334155;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.point-details-table td {
  color: var(--text);
  background: #fff;
  font-size: 11px;
  font-weight: 720;
}

@media (max-width: 900px) {
  .point-details {
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 36;
    max-height: 210px;
  }

  .point-details-table-wrap { max-height: 146px; }
}

@media (max-width: 560px) {
  .modal-card {
    padding: 18px;
    max-height: 92vh;
  }

  .color-picker-row {
    grid-template-columns: 72px 1fr;
  }

  #datasetColorInput { width: 72px; }

  .point-details-head { align-items: flex-start; }
  .point-details-head-actions { gap: 6px; }
  .point-details-maps {
    width: 34px;
    padding: 0;
  }
  .point-details-maps span,
  .point-details-correction span { display: none; }
  .point-details-table th,
  .point-details-table td { min-width: 130px; }
}

/* =========================================================
   SIMETRIA · Gestão de camadas e relacionamento espacial
   ========================================================= */
.dataset-item-top {
  grid-template-columns: 34px 14px minmax(0, 1fr) 32px;
}

.dataset-item.is-hidden {
  opacity: .68;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.dataset-item.is-hidden .dataset-swatch {
  filter: grayscale(.55);
  opacity: .65;
}

.dataset-visibility {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: .16s ease;
}

.dataset-visibility:hover,
.dataset-visibility.is-visible {
  color: var(--blue-strong);
  border-color: rgba(37,99,235,.22);
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}

.dataset-visibility i,
.dataset-action i {
  font-size: 13px;
}

.dataset-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dataset-link i { font-size: 11px; }
.dataset-link:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.dataset-tag.relation-tag {
  gap: 5px;
  color: #6d28d9;
  border-color: rgba(124,58,237,.14);
  background: #f5f3ff;
}

.dataset-tag.relation-tag i { font-size: 11px; }

.map-tool-button i {
  font-size: 20px;
  line-height: 1;
}

.relation-modal-card {
  width: min(570px, 100%);
}

.relation-origin-card {
  margin: 4px 0 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(37,99,235,.11);
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}

.relation-origin-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.relation-origin-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.relation-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.number-field-shell {
  position: relative;
}

.number-field-shell input {
  width: 100%;
  height: 43px;
  padding: 0 62px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #f8fafc;
  color: var(--text);
  font-weight: 800;
}

.number-field-shell input:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.number-field-shell span {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.relation-option {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
  cursor: pointer;
}

.relation-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.relation-option-box {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: transparent;
  transition: .15s ease;
}

.relation-option-box i { font-size: 11px; }
.relation-option input:checked + .relation-option-box {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.relation-info {
  margin-top: 14px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgba(37,99,235,.09);
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f8fbff);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.relation-info i {
  margin-top: 2px;
  color: var(--blue-strong);
}

#relationResultTitleInput {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  outline: none;
  color: var(--text);
  background: #f8fafc;
}

#relationResultTitleInput:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

@media (max-width: 560px) {
  .relation-grid { grid-template-columns: 1fr; }
  .dataset-item-actions { flex-wrap: wrap; }
}

/* =========================================================
   Toolbar flutuante de relacionamentos
   ========================================================= */
.relation-toolbar {
  position: fixed;
  z-index: 25;
  left: calc(50% + 190px);
  bottom: 22px;
  transform: translateX(-50%);
  min-height: 58px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(245,248,252,.94) 100%);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow:
    0 20px 48px rgba(15,23,42,.19),
    inset 0 1px 0 rgba(255,255,255,.94);
  user-select: none;
  transition: width .18s ease, padding .18s ease, box-shadow .18s ease, bottom .18s ease;
}

.relation-toolbar[hidden] { display: none; }

.relation-toolbar.is-dragging {
  cursor: grabbing;
  box-shadow:
    0 26px 60px rgba(15,23,42,.25),
    0 0 0 3px rgba(37,99,235,.09),
    inset 0 1px 0 rgba(255,255,255,.94);
}

.relation-toolbar-handle,
.relation-toolbar-collapse {
  width: 34px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #94a3b8;
  background: transparent;
}

.relation-toolbar-handle {
  cursor: grab;
  touch-action: none;
}
.relation-toolbar-handle:active { cursor: grabbing; }
.relation-toolbar-handle:hover,
.relation-toolbar-collapse:hover {
  color: #334155;
  background: rgba(148,163,184,.10);
}

.relation-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 390px;
  opacity: 1;
  overflow: visible;
  transition: max-width .18s ease, opacity .12s ease;
}

.relation-tool-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 13px;
  color: #475569;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 7px 16px rgba(15,23,42,.07);
  cursor: pointer;
  transition: transform .14s ease, color .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.relation-tool-button i { font-size: 16px; }
.relation-tool-button:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #dc2626;
  border-color: rgba(220,38,38,.22);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

.relation-tool-button.is-active {
  color: #fff;
  border-color: rgba(185,28,28,.78);
  background: linear-gradient(145deg, #ef4444 0%, #dc2626 58%, #b91c1c 100%);
  box-shadow: 0 11px 24px rgba(220,38,38,.25), inset 0 1px 0 rgba(255,255,255,.24);
}

.relation-tool-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.relation-tool-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 5px 12px rgba(185,28,28,.24);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.02em;
}

.relation-toolbar-collapse {
  cursor: pointer;
}
.relation-toolbar-collapse i {
  font-size: 11px;
  transition: transform .16s ease;
}

.relation-toolbar.is-collapsed {
  padding-inline: 5px;
}
.relation-toolbar.is-collapsed .relation-toolbar-tools {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.relation-toolbar.is-collapsed .relation-toolbar-handle {
  width: 30px;
}
.relation-toolbar.is-collapsed .relation-toolbar-collapse {
  color: #2563eb;
  background: #eff6ff;
}

.relation-reference-value {
  letter-spacing: .01em;
}

/* Quando a tabela inferior abre, a toolbar dockada sobe automaticamente.
   Uma toolbar arrastada manualmente mantém a posição escolhida pelo usuário. */
body:has(#pointDetails:not([hidden])) .relation-toolbar:not(.is-positioned) {
  bottom: 260px;
}

@media (max-width: 900px) {
  .relation-toolbar {
    left: 50%;
    bottom: 18px;
    z-index: 35;
  }
  body:has(#pointDetails:not([hidden])) .relation-toolbar:not(.is-positioned) {
    bottom: 232px;
  }
}

/* =========================================================
   Relacionamento manual
   ========================================================= */
.relation-tool-button.manual-tool:hover:not(:disabled) {
  color: #2563eb;
  border-color: rgba(37,99,235,.25);
}

.relation-tool-button.manual-tool.is-active {
  color: #fff;
  border-color: rgba(29,78,216,.78);
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 58%, #1d4ed8 100%);
  box-shadow: 0 11px 24px rgba(37,99,235,.27), inset 0 1px 0 rgba(255,255,255,.24);
}

.relation-tool-button.manual-tool.is-processing i {
  animation: simetria-link-pulse .72s ease-in-out infinite alternate;
}

@keyframes simetria-link-pulse {
  from { transform: scale(.88); opacity: .62; }
  to { transform: scale(1.08); opacity: 1; }
}

body.manual-relation-mode #map,
body.manual-relation-mode #map * {
  cursor: crosshair !important;
}

body.manual-relation-mode .relation-toolbar {
  box-shadow:
    0 20px 48px rgba(15,23,42,.19),
    0 0 0 3px rgba(37,99,235,.10),
    inset 0 1px 0 rgba(255,255,255,.94);
}

/* ===== SIMETRIA PROJECT / BASE WORKFLOW ===== */
.project-card {
  background: linear-gradient(155deg, rgba(15,23,42,.985) 0%, rgba(30,41,59,.975) 55%, rgba(30,64,175,.93) 145%);
  border-color: rgba(148,163,184,.14);
  color: #f8fafc;
  box-shadow: 0 16px 34px rgba(15,23,42,.16);
}
.project-card .section-kicker { color: #93c5fd; }
.project-card h3 { color: #fff; }
.project-status {
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
}
.project-status.is-saving { color: #fde68a; }
.project-status.is-saved { color: #bbf7d0; }
.project-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.project-action {
  min-height: 66px;
  padding: 10px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  cursor: pointer;
  transition: .15s ease;
}
.project-action:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(147,197,253,.28);
  background: linear-gradient(180deg, rgba(59,130,246,.20), rgba(255,255,255,.05));
}
.project-action:disabled { opacity: .38; cursor: not-allowed; }
.project-action > i { font-size: 17px; color: #93c5fd; text-align: center; }
.project-action span, .project-action strong, .project-action small { display: block; }
.project-action strong { font-size: 11px; font-weight: 900; }
.project-action small { margin-top: 3px; color: #94a3b8; font-size: 11px; font-weight: 700; }
.project-action-wide { grid-column: 1 / -1; }
.project-note {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.import-structure-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.10);
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}
.import-structure-title {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1e40af;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.import-coordinate-grid { margin-top: 2px; }
.reference-required-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(37,99,235,.12);
}
.reference-required-fields .import-structure-title {
  margin-bottom: 8px;
}
#idColumnField.is-optional label::after {
  content: " · opcional";
  color: var(--muted);
  font-weight: 700;
}

.dataset-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}
.dataset-type-badge.base { background: #dbeafe; color: #1d4ed8; }
.dataset-type-badge.reference { background: #ecfdf5; color: #047857; }
.dataset-type-badge.auxiliary { background: #f1f5f9; color: #475569; }
.dataset-id-meta {
  margin-top: 8px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  background: rgba(248,250,252,.88);
  border: 1px solid rgba(148,163,184,.12);
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.point-operation {
  border-top: 1px solid rgba(148,163,184,.14);
  padding: 12px 14px 13px;
  background: linear-gradient(180deg, rgba(248,250,252,.94), rgba(241,245,249,.97));
}
.point-operation[hidden] { display: none; }
.point-operation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.point-operation-head strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 950; }
.operation-save-state {
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 850;
}
.decision-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.decision-buttons button {
  min-height: 36px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.20);
  color: #64748b;
  background: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.decision-buttons button:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.2); }
.decision-buttons button.is-active[data-decision="SEM RELACIONAMENTO"] { background:#fff7ed; border-color:#fdba74; color:#c2410c; }
.decision-buttons button.is-active[data-decision="GERAR O.S LOG"] { background:#ecfdf5; border-color:#86efac; color:#15803d; }
.decision-buttons button.is-active[data-decision="NÃO FISCALIZAR"] { background: #c57b7bab; border-color: #d52969; color: #8b2020; }
.operation-observation { display:block; margin-top:10px; }
.operation-observation > span { display:block; margin-bottom:5px; font-size:12px; font-weight:850; color:#475569; }
.operation-observation textarea {
  width:100%;
  min-height:58px;
  resize:vertical;
  padding:9px 10px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.24);
  outline:none;
  color:#0f172a;
  background:#fff;
  font-size:12px;
  line-height:1.45;
}
.operation-observation textarea:focus { border-color:rgba(37,99,235,.45); box-shadow:0 0 0 3px rgba(37,99,235,.07); }
.operation-actions {
  margin-top:9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.operation-actions > span { max-width:64%; color:#64748b; font-size: 11px; line-height:1.45; }
.operation-actions .btn { min-height:34px; }

.point-details { max-height: 52vh; overflow-y: auto; }
.point-details-table-wrap { flex: 0 0 auto; }

body.has-project .brand-mark { box-shadow: 0 10px 24px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.28); }

@media (max-width: 560px) {
  .project-actions-grid { grid-template-columns: 1fr; }
  .project-action-wide { grid-column: auto; }
  .decision-buttons { grid-template-columns: 1fr; }
  .operation-actions { align-items: stretch; flex-direction: column; }
  .operation-actions > span { max-width: none; }
}

/* ===== v2 · palette control, relationship visibility and batch brush ===== */
.color-picker-row.preset-only {
  display: block;
}
.color-picker-row.preset-only .preset-swatches {
  gap: 10px;
}
.swatch-btn {
  position: relative;
  transition: transform .14s ease, box-shadow .14s ease;
}
.swatch-btn:hover { transform: translateY(-1px) scale(1.04); }
.swatch-btn.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37,99,235,.48), 0 8px 16px rgba(15,23,42,.12);
}

.relation-tool-button.batch-tool:hover:not(:disabled) {
  color: #7c3aed;
  border-color: rgba(124,58,237,.25);
}
.relation-tool-button.batch-tool.is-active {
  color: #fff;
  border-color: rgba(109,40,217,.8);
  background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 58%, #6d28d9 100%);
  box-shadow: 0 11px 24px rgba(124,58,237,.27), inset 0 1px 0 rgba(255,255,255,.24);
}

.relation-tool-button.lot-card-tool:hover:not(:disabled) {
  color: #1d4ed8;
  border-color: rgba(37,99,235,.28);
}

.relation-tool-button.lot-card-tool.is-active {
  color: #fff;
  border-color: rgba(29,78,216,.82);
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 58%, #1e40af 100%);
  box-shadow: 0 11px 24px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.24);
}

/* =========================================================
   Card do lote selecionado
   ========================================================= */
.lot-card {
  position: fixed;
  z-index: 29;
  right: 22px;
  top: 94px;
  width: min(360px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 20px;
  color: #0f172a;
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,249,253,.97) 100%);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 24px 58px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.lot-card[hidden] { display: none; }

.lot-card-accent {
  height: 5px;
  background: linear-gradient(90deg, #173b73 0%, #2563eb 58%, #60a5fa 100%);
}

.lot-card-head {
  padding: 16px 16px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lot-card-heading {
  min-width: 0;
}

.lot-card-heading strong,
.lot-card-heading > span:not(.section-kicker) {
  display: block;
}

.lot-card-heading strong {
  margin-top: 4px;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-card-heading > span:not(.section-kicker) {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.lot-card-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 11px;
  color: #64748b;
  background: rgba(255,255,255,.78);
  cursor: pointer;
}

.lot-card-close:hover {
  color: #dc2626;
  border-color: rgba(220,38,38,.20);
  background: #fff;
}

.lot-card-primary {
  margin: 0 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 12px;
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(96,165,250,.34), transparent 44%),
    linear-gradient(145deg, #173b73 0%, #1e4e91 55%, #2563eb 100%);
  box-shadow: 0 12px 26px rgba(23,59,115,.22);
}

.lot-card-primary span {
  grid-column: 1;
  color: #bfdbfe;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .13em;
}

.lot-card-primary strong {
  grid-column: 1;
  margin-top: 6px;
  font-size: 34px;
  line-height: .95;
  font-weight: 1000;
  letter-spacing: .02em;
}

.lot-card-primary small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #eff6ff;
  background: rgba(255,255,255,.10);
  font-size: 11px;
  font-weight: 850;
}

.lot-card-grid {
  padding: 14px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.lot-card-field {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
}

.lot-card-field-wide {
  grid-column: 1 / -1;
}

.lot-card-field span,
.lot-card-reference span {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lot-card-field strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.lot-card-reference {
  margin: 9px 16px 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 12px;
  color: #2563eb;
  background: #eff6ff;
}

.lot-card-reference[hidden],
.lot-card-handle[hidden] {
  display: none;
}

.lot-card-reference > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #2563eb;
}

.lot-card-reference strong {
  display: block;
  margin-top: 3px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 950;
}

.lot-card-handle {
  margin: 9px 16px 16px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 11px;
  color: #475569;
  background: #edf1f6;
  font-size: 11px;
}

.lot-card-handle span {
  font-weight: 950;
  letter-spacing: .04em;
}

.lot-card-handle span.is-negative { color: #b91c1c; }
.lot-card-handle span.is-positive { color: #1d4ed8; }
.lot-card-handle strong {
  font-weight: 850;
  text-align: right;
}

.lot-card-reference[hidden] + .lot-card-handle {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .lot-card {
    top: auto;
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.batch-selection-brush {
  position: fixed;
  z-index: 70;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border: 2px solid rgba(14,165,233,.95);
  border-radius: 50%;
  background: rgba(14,165,233,.10);
  box-shadow: 0 0 0 5px rgba(14,165,233,.07), inset 0 0 0 1px rgba(255,255,255,.85);
  pointer-events: none;
  transform: translateZ(0);
}
.batch-selection-brush[hidden] { display:none; }

body.batch-selection-mode #map,
body.batch-selection-mode #map * {
  cursor: crosshair !important;
}
body.batch-selection-mode.ctrl-map-pan #map,
body.batch-selection-mode.ctrl-map-pan #map * {
  cursor: grab !important;
}
body.manual-relation-mode.ctrl-map-pan #map,
body.manual-relation-mode.ctrl-map-pan #map * {
  cursor: grab !important;
}

.batch-analysis-card { width: min(560px, 100%); }
.batch-toggle-row {
  margin-top: 12px;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: #334155;
  font-size: 11px;
  cursor: pointer;
}
.batch-toggle-row input { accent-color: #2563eb; }
.batch-observation-grid {
  grid-template-columns: 170px minmax(0,1fr);
  margin-top: 10px;
}
.batch-observation-field textarea {
  width: 100%;
  min-height: 94px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 11px;
  outline: none;
  color: #0f172a;
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
}
.batch-observation-field textarea:focus {
  border-color: rgba(37,99,235,.48);
  box-shadow: 0 0 0 3px rgba(37,99,235,.07);
}
.batch-help-box {
  margin-top: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(14,165,233,.15);
  border-radius: 12px;
  color: #475569;
  background: #f0f9ff;
  font-size: 11px;
  line-height: 1.5;
}
.batch-help-box i { margin-top: 2px; color:#0284c7; }

@media (max-width: 560px) {
  .batch-observation-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   v3 · desfazer relação, matrícula base e pontos manuais
   ========================================================= */
.relation-toolbar-tools {
  max-width: 470px;
}

.relation-tool-button.undo-manual-tool:hover:not(:disabled) {
  color: #e11d48;
  border-color: rgba(225,29,72,.28);
}
.relation-tool-button.undo-manual-tool.is-active {
  color: #fff;
  border-color: rgba(190,18,60,.82);
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 58%, #be123c 100%);
  box-shadow: 0 11px 24px rgba(225,29,72,.27), inset 0 1px 0 rgba(255,255,255,.24);
}

.relation-tool-button.base-registration-tool:hover:not(:disabled) {
  color: #5b6f00;
  border-color: rgba(151,188,0,.42);
  background: linear-gradient(180deg, #fbffe8 0%, #f5ffd0 100%);
}
.relation-tool-button.base-registration-tool.is-active {
  color: #172000;
  border-color: rgba(122,153,0,.78);
  background: linear-gradient(145deg, #e8ff63 0%, #d7ff00 58%, #b8df00 100%);
  box-shadow: 0 11px 24px rgba(179,221,0,.30), inset 0 1px 0 rgba(255,255,255,.55);
}
.relation-tool-button .reserved-count {
  background: #6f8700;
  color: #fff;
}

.relation-tool-button.manual-point-tool:hover:not(:disabled) {
  color: #0891b2;
  border-color: rgba(8,145,178,.28);
}
.relation-tool-button.manual-point-tool.is-active {
  color: #fff;
  border-color: rgba(8,145,178,.82);
  background: linear-gradient(145deg, #22d3ee 0%, #0891b2 58%, #0e7490 100%);
  box-shadow: 0 11px 24px rgba(8,145,178,.27), inset 0 1px 0 rgba(255,255,255,.24);
}
.tool-mini-plus {
  position: absolute;
  right: 7px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: #0891b2;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}
.relation-tool-button.manual-point-tool.is-active .tool-mini-plus {
  background: rgba(255,255,255,.96);
  color: #0e7490;
}

body.undo-manual-relation-mode #map,
body.undo-manual-relation-mode #map *,
body.base-registration-mode #map,
body.base-registration-mode #map *,
body.manual-point-mode #map,
body.manual-point-mode #map * {
  cursor: crosshair !important;
}

body.undo-manual-relation-mode.ctrl-map-pan #map,
body.undo-manual-relation-mode.ctrl-map-pan #map *,
body.base-registration-mode.ctrl-map-pan #map,
body.base-registration-mode.ctrl-map-pan #map *,
body.manual-point-mode.ctrl-map-pan #map,
body.manual-point-mode.ctrl-map-pan #map * {
  cursor: grab !important;
}

.base-template-action {
  border-color: rgba(96,165,250,.2);
  background: linear-gradient(145deg, rgba(255,255,255,.10) 0%, rgba(59,130,246,.12) 100%);
}
.base-template-action i {
  color: #93c5fd;
}

@media (max-width: 980px) {
  .relation-toolbar-tools {
    max-width: 390px;
  }
}

/* =========================================================
   v6 · painel recolhível, modo Standalone e pontos de atenção
   ========================================================= */
.panel,
.topbar,
.point-details,
.relation-toolbar {
  transition:
    width .22s ease,
    left .22s ease,
    right .22s ease,
    transform .22s ease,
    opacity .18s ease;
}

.panel-toggle {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 11px;
  color: #1d4ed8;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
  cursor: pointer;
  transition: transform .18s ease, color .15s ease, background .15s ease;
}
.panel-toggle:hover {
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  transform: translateY(-1px);
}
.panel-toggle i { font-size: 11px; }

.hero-card {
  padding-right: 58px;
}
.hero-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(37,99,235,.25), inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-brand-icon i { font-size: 18px; }
.brand-mark img,
.hero-brand-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.hero-identity-copy { min-width: 0; }
.hero-identity-copy h2 {
  max-width: none;
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .09em;
}
.hero-card > p { margin-top: 11px; }

.panel-mini-actions {
  display: none;
}

body.sidebar-collapsed .panel {
  width: 76px;
  padding-inline: 10px;
  overflow: hidden;
}
body.sidebar-collapsed .panel > :not(.panel-toggle):not(.hero-card):not(.panel-mini-actions) {
  display: none !important;
}
body.sidebar-collapsed .panel-toggle {
  top: 74px;
  right: 20px;
  transform: rotate(180deg);
}
body.sidebar-collapsed .panel-toggle:hover {
  transform: rotate(180deg) translateY(1px);
}
body.sidebar-collapsed .hero-card {
  width: 54px;
  min-height: 54px;
  margin: 0;
  padding: 6px;
  overflow: visible;
  border-radius: 16px;
  box-shadow: 0 11px 24px rgba(37,99,235,.16);
}
body.sidebar-collapsed .hero-card::after,
body.sidebar-collapsed .hero-identity-copy,
body.sidebar-collapsed .hero-card > p {
  display: none;
}
body.sidebar-collapsed .hero-brand-icon {
  width: 40px;
  height: 40px;
}
body.sidebar-collapsed .panel-mini-actions {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.panel-mini-actions button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 13px;
  color: #475569;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  cursor: pointer;
}
.panel-mini-actions button:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}
.panel-mini-actions button:disabled {
  opacity: .36;
  cursor: not-allowed;
}
body.sidebar-collapsed .topbar { left: 94px; }
body.sidebar-collapsed .point-details { left: 96px; }
body.sidebar-collapsed .relation-toolbar:not(.is-positioned) {
  left: calc(50% + 38px);
}

.point-locator-card {
  position: relative;
  z-index: 14;
  overflow: visible;
  border-color: rgba(37,99,235,.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.09), transparent 38%),
    linear-gradient(155deg, #fff 0%, #f8fbff 100%);
}
.point-locator-card kbd {
  min-height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148,163,184,.22);
  border-bottom-color: rgba(100,116,139,.34);
  border-radius: 7px;
  color: #64748b;
  background: rgba(255,255,255,.88);
  box-shadow: 0 2px 0 rgba(148,163,184,.14);
  font: 800 8px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .035em;
}
.point-search-shell {
  position: relative;
}
.point-search-control {
  min-height: 45px;
  padding: 4px 4px 4px 11px;
  display: grid;
  grid-template-columns: 20px minmax(0,1fr) 42px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 13px;
  color: #64748b;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.point-search-shell.is-open .point-search-control,
.point-search-control:focus-within {
  border-color: rgba(37,99,235,.52);
  box-shadow:
    0 0 0 3px rgba(37,99,235,.08),
    0 9px 20px rgba(37,99,235,.07);
}
.point-search-control > i {
  color: #2563eb;
  font-size: 13px;
}
.point-search-control input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 11px;
  font-weight: 780;
}
.point-search-control input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}
.point-search-control input::-webkit-search-cancel-button {
  display: none;
}
.point-search-control button {
  align-self: stretch;
  min-height: 35px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 7px 15px rgba(37,99,235,.20);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .035em;
  cursor: pointer;
}
.point-search-control button:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.point-search-control button:disabled {
  color: #94a3b8;
  background: #e8edf4;
  box-shadow: none;
  cursor: not-allowed;
}
.point-search-suggestions {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 326px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.985);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 22px 44px rgba(15,23,42,.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,.42) rgba(148,163,184,.10);
}
.point-search-suggestions[hidden] {
  display: none;
}
.point-search-suggestions::-webkit-scrollbar { width: 8px; }
.point-search-suggestions::-webkit-scrollbar-track { background: rgba(148,163,184,.08); }
.point-search-suggestions::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: rgba(37,99,235,.62);
}
.point-search-suggestion {
  width: 100%;
  padding: 9px 10px;
  display: block;
  border: 0;
  border-radius: 10px;
  color: #0f172a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.point-search-suggestion + .point-search-suggestion {
  margin-top: 2px;
  border-top: 1px solid rgba(148,163,184,.08);
}
.point-search-suggestion:hover,
.point-search-suggestion.is-active {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.11);
}
.point-search-suggestion-main,
.point-search-suggestion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.point-search-suggestion-main strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-search-status {
  min-height: 21px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.point-search-status.is-matched {
  color: #166534;
  background: #dcfce7;
}
.point-search-status.is-unmatched {
  color: #b91c1c;
  background: #fee2e2;
}
.point-search-status.is-ignored {
  color: #475569;
  background: #e2e8f0;
}
.point-search-status.is-attention {
  color: #526600;
  background: #efffb0;
}
.point-search-status.is-reference {
  color: #1d4ed8;
  background: #dbeafe;
}
.point-search-suggestion-meta {
  justify-content: flex-start;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 720;
}
.point-search-suggestion-meta > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-search-suggestion-meta i {
  color: #94a3b8;
  font-size: 11px;
}
.point-search-reference {
  color: #1d4ed8;
}
.point-search-empty {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 780;
  text-align: center;
}
.point-search-empty i {
  color: #cbd5e1;
  font-size: 17px;
}
.point-search-feedback {
  min-height: 13px;
  margin: 8px 2px 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.45;
}

.project-mode-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(139,92,246,.10), transparent 34%),
    linear-gradient(155deg, #fff 0%, #f8fafc 100%);
}
.mode-status-pill {
  min-height: 23px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mode-status-pill.is-active {
  border-color: rgba(37,99,235,.14);
  color: #1d4ed8;
  background: #eff6ff;
}
.project-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.project-mode-option {
  min-height: 86px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 13px;
  color: #0f172a;
  background: linear-gradient(155deg, #fff 0%, #eff6ff 120%);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.project-mode-option.standalone {
  border-color: rgba(124,58,237,.13);
  background: linear-gradient(155deg, #fff 0%, #f5f3ff 120%);
}
.project-mode-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.30);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.project-mode-option:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.project-mode-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
}
.project-mode-option.standalone .project-mode-icon {
  color: #6d28d9;
  background: #ede9fe;
}
.project-mode-option span:last-child,
.project-mode-option strong,
.project-mode-option small { display: block; }
.project-mode-option strong {
  font-size: 11px;
  font-weight: 900;
}
.project-mode-option small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}
.project-mode-help {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.standalone-card {
  width: min(560px, 100%);
}
.standalone-swatches {
  min-height: 43px;
  align-items: center;
}
.standalone-location-grid,
.standalone-coordinate-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.standalone-location-grid .modal-field-group,
.standalone-coordinate-grid .modal-field-group {
  margin-top: 0;
}
.standalone-location-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}
.modal-field-group select {
  width: 100%;
  height: 43px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #f8fafc);
  font-size: 11px;
  font-weight: 760;
}
.modal-field-group select:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.modal-field-group select:disabled {
  color: #94a3b8;
  cursor: wait;
  background: #f1f5f9;
}
.standalone-municipality-status {
  min-height: 31px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.standalone-municipality-status[data-level="ok"] { color:#166534; background:#ecfdf3; }
.standalone-municipality-status[data-level="error"] { color:#b91c1c; background:#fef2f2; }
.standalone-municipality-status[data-level="loading"] { color:#1d4ed8; background:#eff6ff; }
.coordinate-search-marker {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-8px);
  filter: drop-shadow(0 8px 12px rgba(15,23,42,.32));
}
.coordinate-search-marker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  color: #fff;
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px rgba(185,28,28,.25);
}
.coordinate-search-marker i {
  font-size: 14px;
  transform: rotate(45deg);
}
.dataset-type-badge.municipal-boundary {
  color: #1d4ed8;
  background: #dbeafe;
}
.dataset-system-lock {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 11px;
}

.standalone-info {
  margin-top: 14px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 9px;
  border: 1px solid rgba(124,58,237,.12);
  border-radius: 12px;
  color: #475569;
  background: #faf8ff;
  font-size: 11px;
  line-height: 1.5;
}
.standalone-info i {
  margin-top: 2px;
  color: #7c3aed;
}

.point-details-table-wrap[hidden],
.attention-reference-form[hidden],
.reference-handle-panel[hidden] {
  display: none;
}

body.reference-handle-dragging #map,
body.reference-handle-dragging #map * {
  cursor: grabbing !important;
}

.reference-handle-map-control {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #173b73;
  color: #ffffff;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, .34),
    0 0 0 3px rgba(23, 59, 115, .2);
  cursor: grab;
  user-select: none;
  touch-action: none;
  font: 900 20px/1 Arial, sans-serif;
  transform: translateY(50%);
}

.reference-handle-map-control.is-positive {
  background: #1e4e91;
}

.reference-handle-map-control:hover,
.reference-handle-map-control.is-dragging {
  transform: translateY(50%) scale(1.12);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, .4),
    0 0 0 5px rgba(37, 99, 235, .24);
}

.reference-handle-map-control.is-dragging {
  cursor: grabbing;
}

.point-details.is-attention {
  border-color: rgba(215,255,0,.46);
  box-shadow:
    0 22px 52px rgba(15,23,42,.18),
    0 0 0 3px rgba(215,255,0,.10);
}
.attention-reference-form {
  padding: 13px 14px 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,255,0,.09), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.attention-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.attention-reference-head strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 950;
}
.attention-state {
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #526600;
  background: #f3ffc2;
  border: 1px solid rgba(164,199,0,.20);
  font-size: 11px;
  font-weight: 900;
}
.reference-mode-switch {
  margin-top: 11px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  background: #e8edf4;
}
.reference-mode-switch button {
  min-height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.reference-mode-switch button.is-active {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 5px 13px rgba(15,23,42,.09);
}
.attention-reference-fields {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 9px;
}
.attention-reference-fields[hidden] {
  display: none !important;
}
.attention-reference-fields.structure-fields {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.attention-field {
  min-width: 0;
}
.attention-field-wide {
  grid-column: 1 / -1;
}
.attention-field-route {
  grid-column: span 2;
}
.attention-field > span {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}
.attention-field input,
.attention-field select {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 10px;
  outline: none;
  color: #0f172a;
  background: #fff;
  font-size: 11px;
  font-weight: 780;
}
.attention-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 16px,
    calc(100% - 10px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.attention-field input:focus,
.attention-field select:focus {
  border-color: rgba(37,99,235,.48);
  box-shadow: 0 0 0 3px rgba(37,99,235,.07);
}
.attention-reference-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.attention-reference-actions > span {
  max-width: 48%;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}
.attention-reference-actions > span i {
  margin-top: 2px;
  color: #7c3aed;
}
.attention-reference-actions .btn {
  min-height: 36px;
}

.reference-handle-panel {
  padding: 14px;
  border-top: 1px solid rgba(23,59,115,.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}
.reference-handle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reference-handle-head strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}
.reference-handle-status {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(23,59,115,.16);
  border-radius: 999px;
  color: #173b73;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
}
.reference-handle-panel.is-unavailable .reference-handle-status {
  color: #92400e;
  border-color: rgba(217,119,6,.20);
  background: #fffbeb;
}
.reference-handle-help {
  margin: 10px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}
.reference-handle-help b {
  color: #173b73;
  font-size: 15px;
}
.reference-reading-fields {
  margin-top: 11px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  align-items: end;
  gap: 9px;
}
.reference-reading-fields label {
  min-width: 0;
}
.reference-reading-fields label > span {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}
.reference-reading-fields input {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 10px;
  outline: none;
  color: #0f172a;
  background: #fff;
  font-size: 11px;
  font-weight: 780;
}
.reference-reading-fields input:focus {
  border-color: rgba(37,99,235,.58);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.reference-reading-fields .btn {
  min-height: 39px;
  white-space: nowrap;
}
.reference-handle-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(138px,.8fr) 1fr 1fr;
  gap: 9px;
}
.reference-handle-tolerance {
  min-height: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(23,59,115,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.reference-handle-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reference-handle-input input {
  width: 56px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid rgba(148,163,184,.34);
  border-radius: 8px;
  outline: none;
  color: #0f172a;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.reference-handle-input input:focus {
  border-color: rgba(37,99,235,.48);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.reference-handle-input small {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.reference-handle-reset {
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(23,59,115,.14);
  border-radius: 11px;
  color: #173b73;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.reference-handle-reset:hover:not(:disabled) {
  border-color: rgba(23,59,115,.30);
  background: #fff;
}
.reference-handle-reset > span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #173b73;
  font-size: 16px;
  font-weight: 950;
}
.reference-handle-reset:disabled,
.reference-handle-tolerance:has(input:disabled),
.reference-reading-fields:has(input:disabled) {
  opacity: .48;
}
.reference-handle-summary {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reference-handle-summary > span {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  color: #475569;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}
.reference-handle-summary b {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #173b73;
  font-size: 13px;
}
.reference-handle-summary strong {
  color: #0f172a;
  font-weight: 950;
}
.reference-handle-recalculate {
  width: 100%;
  min-height: 39px;
  margin-top: 11px;
}

.dataset-type-badge.reference-registry {
  color: #1d4ed8;
  background: #dbeafe;
}

/* Legibilidade operacional: textos informativos nunca ficam abaixo de 12 px. */
body {
  font-size: 14px;
}

.module-badge,
.format-pill,
.layer-count,
.topbar-status,
.eyebrow,
.section-kicker,
.dropzone span:not(.upload-icon),
.file-copy span,
.hint-box strong,
.hint-box span,
.stat-box span,
.empty-state span,
.dataset-copy span,
.dataset-tag,
.dataset-meta-row,
.dataset-link,
.panel-footer,
.compass-n,
.compass-label,
.toast,
.setup-card label,
.modal-field-group label,
.setup-card small,
.modal-file-caption,
.selected-columns-empty,
.column-tag,
.field-help,
.point-details-copy > span:not(.section-kicker),
.relation-origin-card span,
.number-field-shell span,
.relation-option,
.relation-info,
.project-status,
.project-action strong,
.project-action small,
.project-note,
.import-structure-title,
.dataset-type-badge,
.dataset-id-meta,
.operation-save-state,
.decision-buttons button,
.operation-actions > span,
.batch-toggle-row,
.batch-help-box,
.point-search-suggestion-main strong,
.point-search-suggestion-meta,
.point-search-empty,
.point-search-feedback,
.point-search-status,
.point-search-reference,
.mode-status-pill,
.project-mode-option strong,
.project-mode-option small,
.project-mode-help,
.standalone-info,
.attention-state,
.reference-mode-switch button,
.attention-field > span,
.attention-reference-actions > span,
.reference-handle-status,
.reference-handle-help,
.reference-reading-fields label > span,
.reference-handle-tolerance,
.reference-handle-reset,
.reference-handle-summary > span {
  font-size: 12px;
}

.btn,
.column-select-shell select,
.setup-card input,
.modal-field-group input,
.modal-field-group select,
.point-search-control input,
.point-search-control button,
.batch-observation-field textarea,
.attention-field input,
.attention-field select,
.reference-reading-fields input {
  font-size: 13px;
}

.point-details-table th {
  font-size: 12px;
}

.point-details-table td {
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  body.sidebar-collapsed .panel {
    width: 76px;
    right: auto;
  }
  body.sidebar-collapsed .topbar { left: 16px; }
  body.sidebar-collapsed .point-details { left: 12px; }
  body.sidebar-collapsed .relation-toolbar:not(.is-positioned) { left: 50%; }
}

@media (max-width: 620px) {
  .project-mode-grid,
  .standalone-location-grid,
  .standalone-coordinate-grid,
  .reference-mode-switch,
  .attention-reference-fields,
  .attention-reference-fields.structure-fields {
    grid-template-columns: 1fr;
  }
  .attention-field-route {
    grid-column: auto;
  }
  .project-mode-option {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
  }
  .attention-reference-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .attention-reference-actions > span { max-width: none; }
  .reference-handle-controls {
    grid-template-columns: 1fr;
  }
  .reference-reading-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Inspetor de ponto por abas · dados agrupados
   A estrutura legada permanece no DOM para compatibilidade.
   ========================================================= */
.point-details {
  max-height: min(680px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,99,235,.36) rgba(148,163,184,.08);
}

.point-details-head {
  position: sticky;
  top: 0;
  z-index: 8;
}

.point-details-tabs {
  position: sticky;
  top: 63px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148,163,184,.16);
  background: rgba(241,245,249,.96);
  backdrop-filter: blur(16px);
}

.point-details-tabs[hidden],
.point-details-tools[hidden],
.point-details-inspector[hidden] { display: none !important; }

.point-details-tabs button {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.point-details-tabs button:hover {
  color: #1d4ed8;
  background: rgba(255,255,255,.76);
}

.point-details-tabs button.is-active {
  color: #1d4ed8;
  border-color: rgba(37,99,235,.16);
  background: #fff;
  box-shadow: 0 4px 13px rgba(15,23,42,.08);
}

.point-details-tabs button i { font-size: 11px; }
.point-details-tabs button span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-details-tabs button b {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #64748b;
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
}
.point-details-tabs button.is-active b {
  color: #1d4ed8;
  background: #dbeafe;
}

.point-details-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 0;
  background: rgba(255,255,255,.94);
}

.point-details-search {
  min-width: 180px;
  flex: 1 1 auto;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(148,163,184,.23);
  border-radius: 10px;
  color: #94a3b8;
  background: #fff;
}
.point-details-search:focus-within {
  color: #2563eb;
  border-color: rgba(37,99,235,.42);
  box-shadow: 0 0 0 3px rgba(37,99,235,.07);
}
.point-details-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.point-details-search input::placeholder { color: #94a3b8; }

.point-details-empty-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.point-details-empty-toggle input { accent-color: #2563eb; }

.point-details-filled-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.point-details-inspector {
  padding: 10px 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}
.point-details-panel[hidden] { display: none !important; }
.point-details-panel.is-active { animation: pointDetailsPanelIn .15s ease-out; }
@keyframes pointDetailsPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.point-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 7px;
}

.point-detail-card {
  min-width: 0;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(148,163,184,.17);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.035);
}
.point-detail-card:hover {
  border-color: rgba(37,99,235,.20);
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.point-detail-card.is-wide { grid-column: span 2; }
.point-detail-card[hidden] { display: none !important; }
.point-detail-card.is-empty-card { background: rgba(248,250,252,.78); }

.point-detail-label {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-detail-value {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.38;
  text-decoration: none;
}
.point-detail-value.is-empty {
  color: #94a3b8;
  font-style: italic;
  font-weight: 650;
}
.point-detail-value.is-status {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .01em;
}
.point-detail-value.is-reference {
  color: var(--detail-value-accent, #2563eb);
  font-weight: 900;
}
a.point-detail-value:hover { color: #1d4ed8; text-decoration: underline; }

.point-details-empty {
  grid-column: 1 / -1;
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(148,163,184,.32);
  border-radius: 12px;
  color: #94a3b8;
  text-align: center;
  background: rgba(248,250,252,.7);
}
.point-details-empty i { font-size: 19px; }
.point-details-empty strong { color: #475569; font-size: 11px; }
.point-details-empty span { max-width: 360px; font-size: 11px; line-height: 1.4; }

.point-details-table-legacy { display: none !important; }

.point-details .reference-handle-panel,
.point-details .point-operation {
  margin: 0 12px 14px;
}
.point-details:not([data-active-tab="relationship"]) .reference-handle-panel {
  display: none !important;
}
.point-details:not([data-active-tab="analysis"]) .point-operation {
  display: none !important;
}

body:has(#pointDetails:not([hidden])) .relation-toolbar:not(.is-positioned) {
  bottom: calc(min(72vh, 680px) + 30px);
}

@media (max-width: 980px) {
  .point-details {
    left: 14px;
    right: 14px;
    max-height: 74vh;
  }
  .point-details-tabs {
    grid-template-columns: repeat(5, minmax(108px, 1fr));
    overflow-x: auto;
    justify-content: start;
  }
  .point-details-tools { flex-wrap: wrap; }
  .point-details-search { flex-basis: 100%; }
  body:has(#pointDetails:not([hidden])) .relation-toolbar:not(.is-positioned) {
    bottom: calc(min(74vh, 680px) + 22px);
  }
}

@media (max-width: 560px) {
  .point-details { max-height: 78vh; }
  .point-details-tabs { top: 67px; }
  .point-details-tabs button { justify-content: flex-start; }
  .point-details-filled-count { margin-left: auto; }
  .point-details-grid { grid-template-columns: 1fr; }
  .point-detail-card.is-wide { grid-column: auto; }
  .point-details-empty-toggle { padding-left: 2px; }
}


/* Malha de redes KMZ — camada somente visual */
.network-mesh-card .network-format-pill {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.network-mesh-import {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.network-mesh-import:hover:not(:disabled) {
  border-color: #38bdf8;
  box-shadow: 0 8px 20px rgba(14, 165, 233, .12);
  transform: translateY(-1px);
}

.network-mesh-import:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.network-mesh-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 17px;
}

.network-mesh-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.network-mesh-copy strong {
  font-size: 12px;
}

.network-mesh-copy small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.network-mesh-arrow {
  color: #0284c7;
}

.network-mesh-hint {
  margin-top: 10px;
}

.dataset-type-badge.network-mesh {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}


/* =========================================================
   CAMADAS DE INFORMAÇÕES — ANOTAÇÕES VETORIAIS EDITÁVEIS
   ========================================================= */
.information-layer-card .information-format-pill {
  color: #6d28d9;
  background: #f3e8ff;
  border-color: #ddd6fe;
}

.information-layer-create {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #d8dee9;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #faf7ff);
  color: #172033;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.information-layer-create:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #8b5cf6;
  box-shadow: 0 9px 22px rgba(91, 33, 182, .10);
}

.information-layer-create:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.information-layer-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #6d28d9;
  background: #ede9fe;
  font-size: 18px;
}

.information-layer-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.information-layer-copy strong,
.information-layer-copy small,
.information-layer-hint,
.information-layer-arrow {
  font-size: 11px;
}

.information-layer-copy strong { font-size: 12px; }
.information-layer-copy small { color: #64748b; line-height: 1.4; }
.information-layer-arrow { color: #7c3aed; }
.information-layer-hint { margin-top: 10px; }

.dataset-type-badge.information-layer {
  color: #6d28d9;
  background: #f3e8ff;
  border-color: #ddd6fe;
}

.dataset-item.is-information-active {
  border-color: rgba(124, 58, 237, .56);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .10);
}

.dataset-tag.information-editing {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.dataset-tag.information-locked {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.information-toolbar {
  position: fixed;
  z-index: 1150;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(124, 58, 237, .25);
  border-radius: 17px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .23);
  backdrop-filter: blur(14px);
}

.information-toolbar[hidden] { display: none; }

.information-toolbar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 9px;
  border-bottom: 1px solid #e9e2f7;
}

.information-toolbar-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.information-toolbar-head > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.information-toolbar-head strong { font-size: 12px; color: #1e1b4b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.information-toolbar-head small { font-size: 11px; color: #64748b; }

.information-toolbar-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #475569;
  background: #f1f5f9;
  cursor: pointer;
}
.information-toolbar-close:hover { color: #7f1d1d; background: #fee2e2; }

.information-toolbar-tools {
  display: grid;
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  gap: 7px;
  padding: 10px 0;
}

.information-toolbar-tools button {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.information-toolbar-tools button i { font-size: 15px; }
.information-toolbar-tools button:hover:not(:disabled) { color: #6d28d9; border-color: #c4b5fd; background: #faf5ff; }
.information-toolbar-tools button.is-active { color: #fff; border-color: #6d28d9; background: #6d28d9; }
.information-toolbar-tools button:disabled { opacity: .38; cursor: not-allowed; }

.information-toolbar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.information-toolbar-actions .btn { min-height: 36px; font-size: 11px; }
.information-toolbar-hint { margin: 8px 2px 0; color: #64748b; font-size: 11px; line-height: 1.35; }

.information-layer-modal-card { width: min(670px, calc(100vw - 28px)); }
.information-feature-modal-card { width: min(780px, calc(100vw - 28px)); max-height: calc(100vh - 30px); overflow: auto; }
.information-layer-config-grid { grid-template-columns: minmax(190px, 1.5fr) .7fr .7fr 1fr; }
.information-color-input { width: 100%; min-height: 42px; padding: 4px !important; }


/* Campos textuais e de data das Camadas de Informações. */
#informationLayerDescriptionInput,
#informationFeatureObservationInput,
#informationFeatureDescriptionInput {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  resize: vertical;
  color: var(--text);
  background: #f8fafc;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

#informationFeatureStartDateInput,
#informationFeatureEndDateInput {
  display: block;
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #f8fafc;
  font: inherit;
  font-size: 13px;
  color-scheme: light;
}

#informationLayerDescriptionInput:focus,
#informationFeatureObservationInput:focus,
#informationFeatureStartDateInput:focus,
#informationFeatureEndDateInput:focus {
  border-color: rgba(109, 40, 217, .52);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .09);
  background: #fff;
}

#informationLayerDescriptionInput::placeholder,
#informationFeatureObservationInput::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.information-feature-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.information-feature-summary span,
.information-feature-summary strong { font-size: 11px; }
.information-feature-summary span { color: #6d28d9; font-weight: 850; }
.information-feature-summary strong { color: #334155; }
.information-feature-grid { grid-template-columns: 1.5fr 1fr 1fr; }
.information-feature-title-field { grid-column: span 2; }

.information-style-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd6fe;
  border-radius: 13px;
  background: #faf5ff;
}
.information-style-panel > strong { display: block; margin-bottom: 9px; color: #4c1d95; font-size: 11px; }
.information-style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.information-style-grid label { display: grid; gap: 5px; color: #475569; font-size: 11px; font-weight: 750; }
.information-style-grid input,
.information-style-grid select { width: 100%; min-height: 38px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; padding: 6px 8px; font-size: 11px; }
.information-style-grid input[type="color"] { padding: 3px; }
.information-style-grid input[type="range"] { padding: 0; }

.information-feature-lock-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
}
.information-feature-lock-message[hidden] { display: none; }
.information-feature-actions { display: flex; align-items: center; gap: 8px; }
.modal-action-spacer { flex: 1; }
.btn-danger-soft { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.btn-danger-soft:hover:not(:disabled) { background: #fecaca; }

body.information-drawing-mode #map { cursor: crosshair; }
body.information-delete-mode #map { cursor: not-allowed; }

@media (max-width: 780px) {
  .information-toolbar { bottom: 10px; width: calc(100vw - 20px); }
  .information-toolbar-tools { grid-template-columns: repeat(3, 1fr); }
  .information-layer-config-grid,
  .information-feature-grid,
  .information-style-grid { grid-template-columns: 1fr 1fr; }
  .information-feature-title-field { grid-column: span 2; }
}

@media (max-width: 500px) {
  .information-toolbar-tools { grid-template-columns: repeat(2, 1fr); }
  .information-layer-config-grid,
  .information-feature-grid,
  .information-style-grid { grid-template-columns: 1fr; }
  .information-feature-title-field { grid-column: auto; }
  .information-feature-actions { flex-wrap: wrap; }
  .modal-action-spacer { display: none; }
  .information-feature-actions .btn { flex: 1 1 44%; }
}

.information-feature-summary button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c4b5fd;
  border-radius: 9px;
  background: #f5f3ff;
  color: #5b21b6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.information-feature-summary button:hover { background: #ede9fe; }
.information-feature-summary button[hidden],
.information-feature-summary small[hidden] { display: none; }
.information-feature-summary small { color: #475569; font-size: 11px; }

/* O editor de informação é acoplado, não bloqueia o mapa. */
#informationFeatureOverlay {
  pointer-events: none;
  place-items: center end;
  padding: 76px 22px 104px;
  background: transparent;
  backdrop-filter: none;
}

#informationFeatureOverlay .information-feature-modal-card {
  pointer-events: auto;
  width: min(480px, calc(100vw - 44px));
  max-height: calc(100vh - 190px);
  overflow: auto;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .30);
}

@media (max-width: 760px) {
  #informationFeatureOverlay {
    place-items: end center;
    padding: 70px 10px 118px;
  }
  #informationFeatureOverlay .information-feature-modal-card {
    width: 100%;
    max-height: min(62vh, 620px);
  }
}


/* =========================================================
   Correção assistida de relacionamento manual
   ========================================================= */
.manual-correction-card {
  width: min(760px, 100%);
}
.manual-correction-warning {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(217,119,6,.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  color: #92400e;
}
.manual-correction-warning > i {
  margin-top: 2px;
  font-size: 17px;
}
.manual-correction-warning strong,
.manual-correction-warning span {
  display: block;
}
.manual-correction-warning strong {
  font-size: 12px;
  font-weight: 950;
}
.manual-correction-warning span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}
.manual-correction-identities {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}
.manual-correction-identities > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 12px;
  background: #f8fbff;
}
.manual-correction-identities > i {
  align-self: center;
  color: #64748b;
}
.manual-correction-identities span,
.manual-correction-identities strong {
  display: block;
}
.manual-correction-identities span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.manual-correction-identities strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}
.manual-correction-columns {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.manual-correction-side {
  padding: 13px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 15px;
  background: #fff;
}
.manual-correction-side.reference-side {
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.manual-correction-side.origin-side {
  background: linear-gradient(180deg, #f5f3ff, #fff);
}
.manual-correction-side-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.manual-correction-side-head > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #1d4ed8;
  background: #dbeafe;
}
.manual-correction-side.origin-side .manual-correction-side-head > i {
  color: #6d28d9;
  background: #ede9fe;
}
.manual-correction-side-head span,
.manual-correction-side-head strong {
  display: block;
}
.manual-correction-side-head span {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.manual-correction-side-head strong {
  margin-top: 2px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}
.manual-correction-input-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 9px;
}
.manual-correction-input-grid .modal-field-group {
  margin-top: 0;
}
.manual-correction-input-grid input[type="text"] {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums;
}
.manual-correction-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 11px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}
.manual-correction-feedback[hidden] {
  display: none;
}
.manual-correction-feedback[data-level="error"] {
  border-color: rgba(220,38,38,.18);
  color: #991b1b;
  background: #fef2f2;
}
.manual-correction-feedback[data-level="success"] {
  border-color: rgba(22,163,74,.18);
  color: #166534;
  background: #f0fdf4;
}
.manual-correction-note {
  margin-top: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  border-radius: 11px;
  color: #475569;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.5;
}
.manual-correction-note i {
  margin-top: 2px;
  color: #2563eb;
}
@media (max-width: 680px) {
  .manual-correction-columns,
  .manual-correction-input-grid {
    grid-template-columns: 1fr;
  }
  .manual-correction-identities {
    grid-template-columns: 1fr;
  }
  .manual-correction-identities > i {
    transform: rotate(90deg);
    justify-self: center;
  }
  .manual-correction-card .modal-actions {
    flex-wrap: wrap;
  }
  .manual-correction-card .modal-actions .btn {
    flex: 1 1 100%;
  }
}


/* =========================================================
   APLICAR RELACIONAMENTOS — LAÇO LOCAL
   ========================================================= */
.relationship-lasso-canvas {
  position: fixed;
  z-index: 72;
  pointer-events: none;
  touch-action: none;
}
.relationship-lasso-canvas[hidden] { display: none; }
body.relationship-lasso-mode #map,
body.relationship-lasso-mode #map * { cursor: crosshair !important; }
body.relationship-lasso-mode.ctrl-map-pan #map,
body.relationship-lasso-mode.ctrl-map-pan #map * { cursor: grab !important; }
.local-relationship-plan-card { width: min(680px, 100%); }
.local-relationship-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.local-relationship-metrics > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: #f8fafc;
}
.local-relationship-metrics span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.local-relationship-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}
.local-relationship-diagnostics {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: #fff;
}
.local-relationship-diagnostics:empty::before {
  content: 'Nenhum diagnóstico adicional.';
  color: #64748b;
  font-size: 12px;
}
.local-relationship-diagnostic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}
.local-relationship-diagnostic + .local-relationship-diagnostic { border-top: 1px solid #eef2f7; }
.local-relationship-diagnostic i { margin-top: 2px; color: #f59e0b; }
.local-relationship-diagnostic.is-success i { color: #16a34a; }
.local-relationship-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 680px) {
  .local-relationship-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.local-relationship-diagnostic.is-info i { color: #2563eb; }

/* =========================================================
   CAMADAS DE INFORMAÇÕES — CONTROLE INDIVIDUAL DOS OBJETOS
   ========================================================= */
.information-object-list {
  margin-top: 10px;
  padding: 7px;
  display: grid;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

.information-object-empty {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  font-size: 10.5px;
  line-height: 1.4;
}

.information-object-item {
  min-height: 42px;
  padding: 5px 6px;
  display: grid;
  grid-template-columns: 27px 8px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  transition: opacity .14s ease, border-color .14s ease, background .14s ease;
}

.information-object-item:hover {
  border-color: #cbd5e1;
  background: #fcfcfd;
}

.information-object-item.is-hidden {
  opacity: .48;
  background: #f8fafc;
}

.information-object-visibility,
.information-object-focus,
.information-object-copy {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.information-object-visibility,
.information-object-focus {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
}

.information-object-visibility:hover,
.information-object-focus:hover {
  color: #334155;
  background: #f1f5f9;
}

.information-object-visibility.is-visible { color: #475569; }
.information-object-focus { color: #6d28d9; }

.information-object-swatch {
  width: 8px;
  height: 26px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.information-object-copy {
  min-width: 0;
  padding: 2px 0;
  text-align: left;
  color: #1f2937;
}

.information-object-copy strong,
.information-object-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.information-object-copy strong {
  font-size: 10.8px;
  font-weight: 820;
}

.information-object-copy small {
  margin-top: 3px;
  color: #64748b;
  font-size: 9.6px;
  font-weight: 650;
}

/* =========================================================
   CAMADA INFORMATIVA — CARTÃO DE CONSULTA NO MAPA
   ========================================================= */
.information-read-card {
  position: fixed;
  z-index: 1140;
  top: 92px;
  right: 22px;
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100vh - 122px);
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
  backdrop-filter: blur(12px);
  animation: informationReadIn .16s ease-out;
}

.information-read-card[hidden] { display: none; }

@keyframes informationReadIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.information-read-accent {
  height: 4px;
  background: #64748b;
}

.information-read-head {
  padding: 13px 13px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.information-read-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.information-read-heading .section-kicker {
  color: #64748b;
  font-size: 9px;
  letter-spacing: .12em;
}

.information-read-heading strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
}

.information-read-heading > span:last-child {
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.information-read-close {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  background: #fff;
  cursor: pointer;
}

.information-read-close:hover {
  color: #111827;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.information-read-status-grid {
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.information-read-status-grid > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.information-read-status-grid span,
.information-read-field > span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.information-read-status-grid strong {
  overflow: hidden;
  color: #334155;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.information-read-fields {
  padding: 2px 13px 13px;
}

.information-read-field {
  padding: 10px 0;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #eef2f7;
}

.information-read-field:last-child { border-bottom: 0; }

.information-read-field strong,
.information-read-field p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.information-read-field p { font-weight: 500; }

@media (max-width: 780px) {
  .information-read-card {
    top: 76px;
    right: 10px;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 96px);
  }
}


/* TOPBAR · LOCALIZADOR SEMPRE DISPONÍVEL */
.topbar-search-area { flex: 0 1 430px; width: min(430px, 46vw); min-width: 280px; position: relative; }
.topbar-search-area .point-search-control { min-height: 42px; border-radius: 12px; box-shadow: 0 6px 18px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.92); }
.topbar-search-area .point-search-feedback { margin: 4px 4px 0; min-height: 12px; overflow: hidden; color: #64748b; font-size: 9.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.topbar-search-area .point-search-suggestions { top: calc(100% + 4px); }
.topbar-status[hidden] { display: none !important; }
@media (max-width: 760px) { .topbar { gap: 10px; padding: 10px 12px; } .topbar-search-area { flex-basis: 340px; width: min(340px, 54vw); min-width: 210px; } .topbar-search-area .point-search-feedback { display: none; } .brand-lockup p { display: none; } }
@media (max-width: 560px) { .topbar { align-items: center; } .brand-lockup { flex: 0 0 auto; } .brand-lockup > div:last-child { display: none; } .brand-mark { width: 38px; height: 38px; } .topbar-search-area { flex: 1 1 auto; width: auto; min-width: 0; } .topbar-search-area .point-search-control { grid-template-columns: 18px minmax(0,1fr) 38px; min-height: 40px; } }
