.sram-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;
}

.sram-map .sram-header {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.sram-map .sram-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

.sram-map .sram-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #777;
}

.sram-map .sram-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.sram-map .sram-map-wrap {
  width: 100%;
  height: 100%;
}

.sram-map .sram-map-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sram-map .sram-region {
  stroke: #fff;
  stroke-width: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sram-map .sram-region:hover {
  opacity: 0.85;
}

.sram-map .sram-region.active {
  stroke: #16324f;
  stroke-width: 2px;
}

.sram-map .sram-legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 200px;
  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);
}

.sram-map .sram-legend-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.sram-map .sram-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
}

.sram-map .sram-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.sram-map .sram-legend-note {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  font-size: 10px;
  color: #999;
  line-height: 1.4;
}

.sram-map .sram-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;
}

.sram-map .sram-panel.open {
  right: 8px;
}

.sram-map .sram-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.sram-map .sram-panel-close:hover {
  color: #333;
}

.sram-map .sram-panel-name {
  margin: 0 18px 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.sram-map .sram-panel-value {
  font-size: 26px;
  font-weight: 700;
  color: #16324f;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.sram-map .sram-panel-value span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #999;
}

.sram-map .sram-panel-compare {
  margin: 0 0 8px;
  font-size: 13px;
  color: #16324f;
  font-weight: 600;
}

.sram-map .sram-panel-rank {
  margin: 0 0 6px;
  font-size: 12px;
  color: #777;
}

.sram-map .sram-panel-raw {
  margin: 0 0 10px;
  font-size: 12px;
  color: #777;
}

.sram-map .sram-panel-source {
  font-size: 10px;
  color: #bbb;
  margin: 0;
  border-top: 1px solid #eee;
  padding-top: 8px;
}
