.map-intro {
  position: absolute;
  z-index: 16;
  top: 0;
  left: 0;
  right: 0;
  min-height: 52px;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #8f8679;
  border-left: 4px solid var(--teal);
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 5px 16px rgba(23, 20, 15, .08);
}
.map-intro-copy { min-width: 0; }
.map-intro-copy b { display: block; font: 800 12px/1.3 var(--sans); }
.map-intro-copy span { display: block; margin-top: 3px; color: var(--muted); font: 8px/1.4 var(--mono); }
.map-intro-actions { display: flex; align-items: center; gap: 5px; }
.map-intro-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  font: 800 8px/1 var(--mono);
  white-space: nowrap;
}
.map-intro-action:hover, .map-intro-action:focus-visible { border-color: var(--teal); color: var(--teal); }
.map-meta { top: 68px; max-width: 260px; }
.map-meta .map-meaning { margin: 5px 0 0; color: #5e574e; font: 7px/1.45 var(--mono); text-transform: none; }
.node .score-row { clear: both; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 5px; }
.node .score-owner { min-width: 0; overflow: hidden; color: var(--muted); font: 6px/1.2 var(--mono); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.node .best { clear: none; flex: 0 0 auto; min-height: 18px; margin-top: 0; }
.node.expanded-landmark .score-owner { display: none; }
.node.expanded-landmark .score-row { justify-content: flex-end; margin-top: 2px; }
.node.expanded-landmark .best { margin-top: 0; }
.map-viewport.guide-attention .node:not(.lod-hidden):not(.hidden) { animation: nodeGuidePulse .7s ease-out 2; }
@keyframes nodeGuidePulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(39,31,21,.11); }
  45% { box-shadow: 0 0 0 4px rgba(15,118,110,.22), 0 14px 30px rgba(39,31,21,.18); }
}
.tour-anchor { position: relative; z-index: 45 !important; outline: 4px solid rgba(15,118,110,.28) !important; outline-offset: 5px; }
.product-tour {
  position: fixed;
  z-index: 70;
  width: 300px;
  padding: 14px;
  border: 1px solid #675f54;
  border-top: 4px solid var(--teal);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(23,20,15,.28);
}
.product-tour[hidden] { display: none; }
.tour-progress { color: var(--teal); font: 800 8px var(--mono); text-transform: uppercase; }
.product-tour h2 { margin: 7px 0 5px; font: 800 20px/1.1 var(--serif); }
.product-tour p { margin: 0; color: var(--muted); font: 11px/1.5 var(--sans); }
.tour-actions { margin-top: 13px; display: flex; align-items: center; gap: 6px; }
.tour-actions button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); font: 800 8px var(--mono); }
.tour-actions .tour-next { margin-left: auto; border-color: var(--teal); background: var(--teal); color: white; }
.tour-actions button:hover { border-color: var(--ink); }
.tour-actions button[hidden] { display: none; }
.tour-replay { display: inline-flex; margin-top: 18px; padding: 10px 14px; border: 1px solid #8f8679; border-radius: 4px; color: var(--ink); font: 800 11px var(--mono); text-decoration: none; }
.tour-replay:hover { border-color: var(--teal); color: var(--teal); }
@media(max-width:1180px) {
  .map-intro-copy span { display: none; }
}
@media(max-width:820px) {
  .map-intro { display: none; }
  .map-meta { top: 10px; }
  .map-meta .map-meaning { display: none; }
  .product-tour { display: none; }
}
@media(prefers-reduced-motion:reduce) {
  .map-viewport.guide-attention .node { animation: none; }
}
