.regions-page {
  color: #27272a;
  max-width: 1600px;
  margin: 0 auto;
}
.rg-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.rg-heading h1 {
  margin: 7px 0 10px;
  letter-spacing: -0.7px;
}
.rg-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #71717a;
}
.rg-heading p,
.rg-panel-title > span,
.rg-panel-title div > span {
  color: #71717a;
  font-size: 12px;
  line-height: 1.7;
}
.rg-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: white;
}
.rg-filters label {
  font-size: 11px;
  color: #71717a;
  min-width: 140px;
}
.rg-shop-select {
  flex: 1;
  max-width: 360px;
}
.rg-shortcuts {
  display: flex;
  gap: 5px;
  align-items: center;
}
.rg-shortcuts button {
  font-size: 12px;
  padding: 7px 10px;
}
.rg-context {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 18px 2px;
}
.rg-context span {
  color: #71717a;
  font-size: 12px;
}
.rg-notice {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #34547b;
  font-size: 12px;
  line-height: 1.8;
  padding: 12px 16px;
  margin: 12px 0;
}
.rg-notice summary {
  cursor: pointer;
  margin-top: 3px;
}
.rg-notice details p {
  overflow-wrap: anywhere;
}
.rg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 27px;
}
.rg-metrics article {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: white;
  padding: 21px 22px;
  min-width: 0;
}
.rg-metrics article > span {
  font-size: 12px;
  color: #71717a;
}
.rg-metrics strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 12px 0;
}
.rg-metrics em {
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: #71717a;
}
.rg-metrics small {
  display: block;
  color: #8b8b95;
  font-size: 11px;
  line-height: 1.6;
}
.rg-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.rg-tabs {
  display: flex;
  padding: 4px;
  background: #eaecef;
  border-radius: 8px;
  gap: 3px;
}
.rg-tabs button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #71717a;
  min-height: 32px;
  font-size: 12px;
  padding: 5px 14px;
}
.rg-tabs button.active {
  background: white;
  color: #18181b;
  box-shadow: 0 1px 3px #18181b14;
}
.rg-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  color: #71717a;
}
.rg-crumbs button {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 5px 2px;
  min-height: 28px;
  font-size: 12px;
}
.rg-crumbs strong {
  font-weight: 500;
  color: #27272a;
}
.rg-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 22px;
}
.rg-panel {
  border: 1px solid #e4e4e7;
  background: white;
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.rg-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #ededf0;
}
.rg-panel-title h2 {
  font-size: 14px;
  letter-spacing: 0;
}
.rg-panel-title div > span {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.rg-panel-title > span {
  font-size: 11px;
}
.rg-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 25px 22px;
  gap: 25px;
}
.rg-donut {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rg-donut > div {
  width: 151px;
  height: 151px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.rg-donut strong {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.rg-donut span {
  font-size: 12px;
  color: #71717a;
}
.rg-legend {
  width: 100%;
  max-width: 350px;
  display: grid;
  gap: 12px;
}
.rg-legend > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.rg-legend i {
  height: 8px;
  width: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.rg-legend span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #52525b;
}
.rg-legend strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rg-ranking {
  padding: 13px 21px 16px;
}
.rg-rank {
  display: flex;
  width: 100%;
  border: 0;
  box-shadow: none;
  background: white;
  padding: 9px 0;
  gap: 11px;
  text-align: left;
  min-height: 45px;
  white-space: normal;
}
.rg-rank:disabled {
  opacity: 1;
  cursor: default;
}
.rg-rank:hover:not(:disabled) {
  background: #fafafa;
  border: 0;
}
.rg-rank-order {
  color: #a1a1aa;
  font-size: 11px;
  align-self: flex-start;
  min-width: 16px;
  line-height: 19px;
}
.rg-rank-body {
  flex: 1;
  min-width: 0;
}
.rg-rank-top {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 7px;
}
.rg-rank-top strong {
  font-weight: 500;
  text-align: left;
  overflow-wrap: anywhere;
}
.rg-rank-top > span {
  white-space: nowrap;
  color: #71717a;
}
.rg-rank-top b {
  display: inline-block;
  color: #27272a;
  font-weight: 500;
  min-width: 64px;
  text-align: right;
}
.rg-track {
  display: block;
  height: 6px;
  border-radius: 5px;
  background: #f1f3f5;
  overflow: hidden;
  min-width: 60px;
}
.rg-track > span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #2563eb;
  max-width: 100%;
}
.rg-detail,
.rg-shops {
  margin-bottom: 22px;
}
.rg-panel-title form {
  display: flex;
  gap: 7px;
  min-width: 0;
}
.rg-panel-title input {
  font-size: 12px;
  width: 205px;
  min-width: 0;
}
.rg-panel-title form button {
  font-size: 12px;
}
.rg-table-scroll {
  overflow: auto;
}
.regions-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.regions-page th {
  font-size: 11px;
  background: #fafafa;
  font-weight: 500;
  height: 43px;
  white-space: nowrap;
}
.regions-page td,
.regions-page th {
  padding: 14px 22px;
  border-bottom: 1px solid #ededf0;
}
.regions-page td {
  height: auto;
}
.regions-page td > strong {
  font-weight: 500;
}
.regions-page td small {
  display: block;
  font-size: 10px;
  color: #8b8b95;
  line-height: 1.7;
  margin-top: 5px;
}
.regions-page .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rg-detail td:first-child {
  min-width: 190px;
}
.rg-detail td:nth-child(4) {
  width: 24%;
  min-width: 130px;
}
.rg-detail td button {
  font-size: 11px;
  min-height: 30px;
  padding: 4px 9px;
}
.rg-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  color: #71717a;
  font-size: 11px;
}
.rg-pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-pagination button {
  font-size: 11px;
  min-height: 30px;
  padding: 4px 9px;
}
.rg-empty {
  padding: 55px 20px;
  text-align: center;
  color: #a1a1aa;
  font-size: 13px;
}
.rg-shops th:first-child {
  min-width: 180px;
}
.rg-shops td:nth-child(3),
.rg-shops td:nth-child(4) {
  min-width: 200px;
}
.rg-shop-link {
  padding: 0;
  min-height: 26px;
  border: 0 !important;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
  color: #18181b;
  font-weight: 550;
  text-align: left;
  white-space: normal;
}
.rg-shop-link span {
  color: #a1a1aa;
}
.rg-shop-region {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 11px;
  line-height: 2.1;
  color: #52525b;
}
.rg-shop-region span {
  overflow-wrap: anywhere;
}
.rg-shop-region strong {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rg-selected-shop {
  background: #f3f6ff;
}
.rg-method {
  font-size: 11px;
  color: #8b8b95;
  line-height: 1.9;
  margin: 22px 2px 4px;
}
.rg-method strong {
  color: #71717a;
  font-weight: 500;
}
.rg-method p {
  margin-top: 5px;
}
@media (min-width: 1700px) {
  .rg-overview {
    flex-direction: row;
    gap: 25px;
    padding: 40px 27px;
    min-height: 370px;
  }
  .rg-donut {
    width: 220px;
    height: 220px;
  }
  .rg-donut > div {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 1100px) {
  .rg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rg-panel-title {
    padding: 17px;
  }
  .rg-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rg-overview {
    flex-direction: row;
    justify-content: center;
    gap: 35px;
  }
  .rg-legend {
    max-width: 320px;
  }
  .rg-context {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .rg-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .rg-heading h1 {
    font-size: 25px;
  }
  .rg-heading p {
    max-width: 250px;
  }
  .rg-heading > button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .rg-filters {
    padding: 14px;
    gap: 10px;
  }
  .rg-filters label {
    flex: 1;
    min-width: calc(50% - 6px);
    max-width: 100%;
  }
  .rg-filters .rg-shop-select {
    min-width: calc(100% - 95px);
  }
  .rg-shortcuts {
    width: 100%;
    padding-top: 2px;
  }
  .rg-context span {
    font-size: 11px;
    line-height: 1.7;
  }
  .rg-metrics {
    gap: 10px;
    margin-top: 16px;
  }
  .rg-metrics article {
    padding: 17px 14px;
  }
  .rg-metrics strong {
    font-size: 25px;
  }
  .rg-metrics small {
    font-size: 10px;
  }
  .rg-tabs {
    width: 100%;
  }
  .rg-tabs button {
    flex: 1;
    padding: 5px 8px;
  }
  .rg-navigation {
    gap: 7px;
  }
  .rg-chart-grid {
    gap: 15px;
  }
  .rg-overview {
    flex-direction: column;
    padding: 24px 20px;
    gap: 24px;
  }
  .rg-donut {
    width: 192px;
    height: 192px;
  }
  .rg-donut > div {
    width: 138px;
    height: 138px;
  }
  .rg-legend {
    max-width: 320px;
  }
  .rg-panel-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .rg-panel-title > span {
    font-size: 10px;
  }
  .rg-panel-title form,
  .rg-panel-title > input {
    width: 100%;
  }
  .rg-panel-title form input {
    flex: 1;
    min-width: 0;
  }
  .rg-ranking {
    padding: 12px 16px;
  }
  .rg-rank-top {
    gap: 10px;
  }
  .rg-rank-top > span {
    font-size: 10px;
  }
  .rg-rank-top b {
    min-width: 54px;
  }
  .regions-page td,
  .regions-page th {
    padding: 13px 16px;
  }
  .rg-pagination {
    padding: 13px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .rg-pagination > div {
    gap: 9px;
  }
  .rg-shops {
    margin-top: 18px;
  }
}
.rg-style-select {
  min-width: 220px;
  max-width: 330px;
}
.rg-style-select select {
  max-width: 100%;
}
.rg-heat-panel {
  margin: 16px 0;
}
.rg-heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 16px 0;
}
.regions-page .rg-heat-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 16px;
  min-height: 145px;
  text-align: left;
}
.rg-heat-cell strong {
  font-size: 16px;
}
.rg-heat-cell span {
  font-size: 18px;
  font-weight: 700;
}
.rg-heat-cell small {
  color: inherit;
  opacity: 0.88;
}
.rg-heat-legend {
  display: inline-block;
  width: 95px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, #edf5fd, #1d6fbf);
}
.rg-weather-note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted, #64748b);
  padding: 8px 0;
}
@media (max-width: 600px) {
  .rg-heat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rg-style-select {
    min-width: 0;
    max-width: none;
  }
  .regions-page .rg-heat-cell {
    padding: 12px;
  }
  .rg-heat-cell span {
    font-size: 16px;
  }
}
.regions-page .rg-heat-grid {
  padding: 16px 22px;
}
.regions-page .rg-weather-note {
  padding: 8px 22px 18px;
}
.regions-page .rg-map-wrap {
  margin-top: 14px;
}
.regions-page .rg-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.regions-page .rg-map-toolbar > div {
  display: flex;
  gap: 7px;
}
.regions-page .rg-map-toolbar button {
  padding: 6px 12px;
  border: 1px solid #d7e2ec;
  border-radius: 7px;
  background: white;
  color: #24517a;
  cursor: pointer;
}
.regions-page .rg-map-canvas {
  position: relative;
  background: radial-gradient(ellipse at center, #fff, #edf4fa);
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.regions-page .rg-map-canvas svg {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.regions-page .rg-map-canvas svg:active {
  cursor: grabbing;
}
.regions-page .rg-map-canvas path:hover,
.regions-page .rg-map-canvas path:focus {
  stroke: #123e6b;
  stroke-width: 2;
  outline: none;
}
.regions-page .rg-map-tooltip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 17px;
  background: #ffffffed;
  border: 1px solid #d7e4ef;
  border-radius: 10px;
  box-shadow: 0 5px 18px #233c5517;
  pointer-events: none;
  font-size: 12px;
}
.regions-page .rg-map-tooltip b {
  font-size: 20px;
  color: #1260a0;
}
.regions-page .rg-map-scale {
  position: absolute;
  bottom: 12px;
  left: 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  pointer-events: none;
}
.regions-page .rg-map-scale span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.regions-page .rg-map-scale i {
  display: inline-block;
  width: 16px;
  height: 10px;
}
.regions-page .rg-map-scale .rg-heat-legend {
  width: 80px;
}
.regions-page .rg-map-caption {
  color: #697f91;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}
.regions-page .rg-map-unmatched {
  margin-top: 8px;
  color: #697f91;
  font-size: 12px;
}
.regions-page .rg-map-loading {
  position: absolute;
  top: 45%;
  width: 100%;
  text-align: center;
  color: #64748b;
}
@media (max-width: 600px) {
  .regions-page .rg-map-canvas svg {
    aspect-ratio: 1;
    min-height: 310px;
  }
  .regions-page .rg-map-tooltip {
    top: 8px;
    left: 8px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .regions-page .rg-map-tooltip b {
    font-size: 16px;
  }
  .regions-page .rg-map-scale {
    gap: 8px;
    left: 8px;
    font-size: 9px;
  }
  .regions-page .rg-map-scale .rg-heat-legend {
    width: 45px;
  }
}
