.pms-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #eef1f4;
  box-sizing: border-box;
  padding: 12px 16px;
  font: 14px/1.4 sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pms-map .pms-header { flex: 0 0 auto; margin-bottom: 8px; }
.pms-map .pms-title { margin: 0; font-size: 20px; font-weight: 500; color: #333; }
.pms-map .pms-subtitle { margin: 2px 0 0; font-size: 13px; color: #777; }
.pms-map .pms-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.pms-map .pms-map-wrap { width: 100%; height: 100%; }
.pms-map .pms-map-wrap svg { width: 100%; height: 100%; display: block; }

.pms-map .pms-region {
  stroke: #fff;
  stroke-width: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pms-map .pms-region:hover { opacity: 0.85; }
.pms-map .pms-region.active { stroke: #16324f; stroke-width: 2px; }

.pms-map .pms-legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.pms-map .pms-legend-title { font-weight: 600; color: #333; margin-bottom: 4px; }
.pms-map .pms-legend-row { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.pms-map .pms-legend-swatch { width: 12px; height: 12px; border-radius: 2px; flex: 0 0 auto; }
.pms-map .pms-legend-note {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid #eee;
  font-size: 10px; color: #999; line-height: 1.4;
}

.pms-map .pms-panel {
  position: absolute;
  top: 0;
  right: -340px;
  width: 280px;
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: right 0.25s ease;
}
.pms-map .pms-panel.open { right: 8px; }
.pms-map .pms-panel-close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 18px; line-height: 1; color: #999; cursor: pointer;
}
.pms-map .pms-panel-close:hover { color: #333; }
.pms-map .pms-panel-name { margin: 0 18px 6px 0; font-size: 16px; font-weight: 600; color: #333; }
.pms-map .pms-panel-value {
  font-size: 24px; font-weight: 700; color: #16324f;
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.pms-map .pms-panel-value span { display: block; font-size: 12px; font-weight: 400; color: #999; }
.pms-map .pms-panel-rank { margin: 0 0 10px; font-size: 12px; color: #777; }
.pms-map .pms-panel-mix {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
  font-size: 12px; color: #555; margin-bottom: 10px;
}
.pms-map .pms-panel-missing { font-size: 13px; color: #b5791a; font-weight: 600; }
.pms-map .pms-panel-source { font-size: 10px; color: #bbb; margin: 0; border-top: 1px solid #eee; padding-top: 8px; }
