html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters {
  display: flex !important;
  position: static;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0 0 6px;
  padding: 0;
  overflow: visible;
}
html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 10px;
  background: #102238;
  white-space: normal;
  text-align: center;
}
html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters button[aria-pressed="true"] {
  border-color: #88baff;
  background: #193e69;
  box-shadow: inset 0 -2px #70acff;
}
.japan-map-quick-filters .map-quick-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #ddeafa;
  border-radius: 50%;
  color: #f5f8fd;
  line-height: 1;
}
.japan-map-quick-filters .map-quick-icon.pin-mlm { background: #6242b8; }
.japan-map-quick-filters .map-quick-icon.pin-investment { background: #e08e21; color: #03111e; }
.japan-map-quick-filters .map-quick-icon.pin-sales { background: #f1be6e; color: #03111e; }
.japan-map-quick-filters .map-quick-icon.pin-other { background: #2b65b4; }
.japan-map-quick-filters .map-quick-period {
  position: relative;
  display: flex;
  min-width: 0;
}
.japan-map-quick-filters .map-quick-period .map-quick-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  width: 15px;
  height: 15px;
  border-color: #a9c0d7;
  transform: translateY(-50%);
  pointer-events: none;
}
.japan-map-quick-filters .map-quick-period .map-quick-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 5px;
  border-left: 1px solid #dceafa;
  border-bottom: 1px solid #dceafa;
}
html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters #draft-period {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding-block: 3px;
  padding-inline-start: 25px;
  color: #eef5fc;
  background-color: #102238;
  border: 1px solid #567494;
  border-radius: 8px;
}
@media (min-width: 1500px) {
  /* When the overview toolbar is on the sea, anchor it to the map row. */
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-map-views {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-map-quick-filters {
    grid-area: 1 / 1;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] :is(.map-stage,.map-overview-controls) {
    grid-area: 2 / 1;
  }
}
#mobile-map-region-actions:empty { display: none; }
html body[data-map-page="japan"] #dashboard-filter-details .redesign-categories {
  grid-column: 1 / -1;
  min-inline-size: 0;
}
@media (max-width: 700px) {
  html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters {
    display: grid !important;
    gap: 5px;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, 1.26fr);
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-quick-filters button {
    gap: 3px;
    padding-inline: 3px !important;
  }
  .japan-map-quick-filters button .map-quick-icon { width: 18px; height: 18px; }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions > .section-heading {
    display: block !important;
  }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions > .section-heading > div {
    width: 100%;
    max-width: none !important;
  }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions > .section-heading :is(#skip-region-picker,#prefecture-more-mobile) {
    display: none !important;
  }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .japan-map-views {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .japan-map-views > .map-overview-controls { display: contents !important; }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .japan-map-quick-filters { grid-row: 1; }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .map-stage { grid-row: 2; }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .map-overview-controls .map-toolbar {
    grid-row: 3;
    height: auto !important;
    min-height: 0 !important;
    margin: 6px 0 0 !important;
    padding: 4px 0 !important;
  }
  html body[data-map-page="japan"]:not([data-home-map-embed]):not([data-dashboard-embed]) #panel-regions .map-overview-controls .japan-map-key {
    grid-row: 4;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    margin-inline: 0;
  }
  html body[data-map-page="japan"] #mobile-map-region-actions:not(:empty) {
    grid-row: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
  }
  html body[data-map-page="japan"] #mobile-map-region-actions button {
    min-height: 44px;
    flex: 1 1 140px;
  }
}
