html body[data-map-page="japan"] #live-map .dashboard-cluster>span{
  width:100px!important;
  min-width:100px!important;
  max-width:none!important;
}
html body[data-map-page="japan"] #live-map .dashboard-cluster>span small{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend{
  margin:0 0 4px!important;
  padding:5px 8px!important;
  background:#0b1a2a!important;
  border:1px solid #38536a;
  border-radius:8px;
}
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend[hidden]{display:none!important}
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend>[data-legend-category]{
  font-size:15px!important;
  line-height:1.3!important;
}
html body[data-map-page="japan"] #panel-regions #japan-pin-legend-title{font-size:15px!important;font-weight:700;display:block}
html body[data-map-page="japan"] #panel-regions #japan-pin-availability{
  color:#b4c9dd;
  font-size:14px!important;
  margin:0;
  line-height:1.45;
}
html body[data-map-page="japan"] #panel-regions .explorer-picker .filter-apply-hint{font-size:14px!important;line-height:1.4}
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend>[data-no-pin],
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend[data-pins-pending]>[data-legend-category]{display:none!important}
html body[data-map-page="japan"] #panel-regions .dashboard-category-legend i,
html body[data-map-page="japan"] #live-map .dashboard-marker i{
  display:inline-grid!important;
  place-items:center;
  width:24px!important;
  height:24px!important;
  box-sizing:border-box;
  flex:none;
  font-size:16px!important;
  font-style:normal;
  font-weight:800;
  line-height:1;
}
html body[data-map-page="japan"] #panel-regions :is(.dashboard-category-legend,#live-map .dashboard-marker) i.pin-investment{
  border:2px solid #fff;
  border-radius:50%;
}
html body[data-map-page="japan"] #panel-regions :is(.dashboard-category-legend,#live-map .dashboard-marker) i.pin-sales{
  border:2px double #03111e;
  border-radius:4px;
}
html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight{
  position:absolute!important;
  inset:calc(var(--tokyo-y,0px) + 32px) auto auto calc(var(--tokyo-x,0px) + 14px)!important;
  z-index:610!important;
  display:inline-flex!important;
  align-items:center;
  width:max-content!important;
  min-height:38px!important;
  max-width:none!important;
  margin:0!important;
  padding:4px 9px!important;
  background:#173c68!important;
  border:2px solid #9ccaff!important;
  color:#fff!important;
  gap:4px;
  font-size:15px!important;
  font-weight:700;
  white-space:nowrap;
}
html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight strong{font-size:21px!important;line-height:1.2;color:#fff}
html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight:has(.tokyo-count-scope){display:grid!important;grid-template-columns:repeat(3,auto);grid-template-rows:auto auto;row-gap:1px}
html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight .tokyo-count-scope{grid-column:1/-1;grid-row:2;padding:0;font-size:14px!important;color:#d9e8f9;line-height:1.25}
html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-label-left{
  inset-inline-start:calc(var(--tokyo-x,0px) - 14px)!important;
  transform:translateX(-100%);
}
html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-label-above{top:calc(var(--tokyo-y) - 68px)!important}
html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight:is([hidden],:not([data-map-anchor])){display:none!important}
#map-tokyo-highlight::before,#map-tokyo-highlight::after{content:"";position:absolute;pointer-events:none}
#map-tokyo-highlight::before{top:-34px;left:-16px;width:18px;height:34px;border-left:2px solid #8cb8ff;transform:skewX(24deg);transform-origin:left top}
#map-tokyo-highlight::after{top:-38px;left:-20px;width:8px;height:8px;border-radius:50%;border:1px solid #0b1a2a;background:#fff}
#map-tokyo-highlight.tokyo-label-left::before{left:auto;right:-16px;border-left:0;border-right:2px solid #8cb8ff;transform:skewX(-24deg);transform-origin:right top}
#map-tokyo-highlight.tokyo-label-left::after{left:auto;right:-20px}
#map-tokyo-highlight.tokyo-label-above::before{top:auto;bottom:-34px;transform:skewX(-24deg);transform-origin:left bottom}
#map-tokyo-highlight.tokyo-label-above::after{top:auto;bottom:-38px}
#map-tokyo-highlight.tokyo-label-left.tokyo-label-above::before{transform:skewX(24deg);transform-origin:right bottom}
html body[data-map-page="japan"] .japan-map-key{
  padding:6px;
  background:#0b1a2a;
  color:#eef5f7;
  border:1px solid #38536a;
  border-radius:8px;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend{
  margin:0!important;
  padding:0!important;
  border:0;
  justify-content:flex-start!important;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key #japan-map-operation{
  margin:4px 0 0!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1.4!important;
}
html body[data-map-page="japan"] #panel-regions .map-toolbar #map-show-national{
  background:#0b1a2a!important;
  color:#eef5f7!important;
  border:1px solid #8cb8ff!important;
  font-size:14px!important;
}
html body[data-map-page="japan"] #panel-regions .map-toolbar #map-show-national[hidden]{display:none!important}
html body[data-map-page="japan"] #panel-regions .explorer-picker .dashboard-pin-toggle{
  display:flex!important;
  flex-wrap:wrap;
  gap:3px 8px!important;
  background:#0b1a2a!important;
  color:#eef5f7!important;
  border:1px solid #587494!important;
  min-height:40px!important;
  flex:none;
  padding:8px!important;
  margin:4px 0 8px!important;
}
html body[data-map-page="japan"] #panel-regions .dashboard-pin-toggle small{font-size:14px!important;color:#b4c9dd;line-height:1.4}
html body[data-map-page="japan"] #panel-regions .dashboard-pin-toggle span{font-size:14px!important;line-height:1.4}
html body[data-map-page="japan"] #live-map .leaflet-tooltip.dashboard-cluster-tooltip{
  white-space:normal;
  width:max-content;
  max-width:min(280px,70vw);
  padding:8px 10px;
  border:1px solid #8cb8ff;
  background:#0b1a2a;
  color:#eef5f7;
  font-size:14px;
  line-height:1.4;
}
.dashboard-cluster-preview ul{display:grid;gap:2px;list-style:none;margin:4px 0 0;padding:0}
.dashboard-cluster-preview li{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.dashboard-cluster-preview li b{white-space:nowrap;font-variant-numeric:tabular-nums}
html body[data-map-page="japan"] #panel-regions #map-data-breakdown{white-space:pre-line;font-size:14px!important;line-height:1.5}
@media(min-width:1001px){
  html body[data-map-page="japan"] #live-map .dashboard-cluster>span .dashboard-cluster-categories{gap:3px;line-height:1}
  html body[data-map-page="japan"] #live-map .dashboard-cluster>span .dashboard-cluster-categories i{
    width:21px!important;
    height:21px!important;
    font-size:16px!important;
  }
  html body[data-map-page="japan"] #live-map .dashboard-cluster>span .dashboard-cluster-categories .pin-mlm{
    border-color:#e9d8ff!important;
    box-shadow:0 0 0 1px #9f73ee;
  }
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-count-anchor{
    position:absolute;
    z-index:611;
    top:var(--tokyo-y);
    left:var(--tokyo-x);
    width:var(--tokyo-count-diameter);
    height:var(--tokyo-count-diameter);
    transform:translate(-50%,-50%);
    box-sizing:border-box;
    display:block;
    pointer-events:none;
    border:1px solid #d8eaff;
    border-radius:50%;
    background:#1467df;
  }
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-count-anchor[hidden]{display:none}
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-count-inside{
    inset:var(--tokyo-y) auto auto var(--tokyo-x)!important;
    z-index:612!important;
    transform:translate(-50%,-50%);
    display:grid!important;
    place-items:center;
    grid-template:none;
    width:var(--tokyo-count-diameter)!important;
    height:var(--tokyo-count-diameter);
    min-height:0!important;
    padding:0!important;
    border:0!important;
    border-radius:50%;
    background:transparent!important;
    box-shadow:none!important;
    box-sizing:border-box;
  }
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-count-inside:is([hidden],:not([data-map-anchor])){display:none!important}
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-count-inside::before{display:none}
  html body[data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight.tokyo-count-inside strong{
    font-size:20px!important;
    font-variant-numeric:tabular-nums;
  }
  #map-tokyo-connector{
    position:absolute;
    z-index:609;
    top:var(--tokyo-origin-y);
    left:var(--tokyo-origin-x);
    width:var(--tokyo-line-length);
    border-top:2px solid #bce4ff;
    transform:rotate(var(--tokyo-line-angle));
    transform-origin:0 50%;
    pointer-events:none;
  }
  #map-tokyo-connector::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#bce4ff;
    box-shadow:0 0 0 1px #051526;
    transform:translate(-50%,-60%);
  }
  html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight .tokyo-count-city,
  html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight.tokyo-count-inside .tokyo-count-scope{
    position:absolute;
    inset:auto auto -28px 50%;
    transform:translateX(-50%);
    padding:2px 6px;
    color:#fff;
    background:#0b1a2a;
    border:1px solid #6d9dd8;
    border-radius:4px;
    font-size:14px!important;
    line-height:1.3;
  }
  html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight.tokyo-count-inside .tokyo-count-scope{bottom:-49px}
  html body[data-map-page="japan"] #panel-regions #map-tokyo-highlight::after{display:none}
  html body[data-map-page="japan"] .japan-tokyo-count-scale:not([hidden]){
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:0 9px;
    margin-top:3px;
    padding-top:3px;
    border-top:1px solid #38536a;
    color:#eef5f7;
    font-size:16px;
    line-height:1.35;
  }
  html body[data-map-page="japan"] .japan-tokyo-count-scale>span{display:flex;align-items:center;gap:7px;min-height:19px}
  html body[data-map-page="japan"] .japan-tokyo-count-scale i{
    width:var(--count-sample-diameter);
    height:var(--count-sample-diameter);
    box-sizing:border-box;
    flex:none;
    border-radius:50%;
    background:#bce4ff;
  }
  html body[data-design][data-map-page="japan"] #live-map .leaflet-control-attribution,
  html body[data-design][data-map-page="japan"] #live-map .leaflet-control-attribution a{font-size:17px!important}
  html body[data-map-page="japan"] #panel-regions .japan-map-key{
    margin:0 0 6px;
    padding:4px 9px;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend{
    display:flex!important;
    flex-wrap:wrap;
    align-items:center;
    gap:4px 12px!important;
    min-height:0!important;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend>[data-legend-category]{
    flex:none;
    white-space:nowrap;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key #japan-pin-availability{flex-basis:100%}
  html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend[hidden]{display:none!important}
}
html body[data-map-page="japan"] #desktop-filter-apply-slot:empty{display:none}
@media(min-width:1001px){
  html body[data-design][data-workspace="map"][data-map-page="japan"] #panel-regions .explorer-grid{
    grid-template-columns:clamp(205px,17vw,320px) minmax(0,1fr) clamp(205px,17vw,320px)!important;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key:has(#japan-tokyo-count-scale:not([hidden])){
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    gap:12px;
    align-items:center;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key:has(.dashboard-category-legend[hidden]){display:block}
  html body[data-map-page="japan"] #panel-regions .japan-tokyo-count-scale:not([hidden]){
    margin:0;
    padding:0 0 0 9px;
    border:0;
    border-left:1px solid #38536a;
  }
  html body[data-map-page="japan"] #live-map .dashboard-cluster-compact>span{
    display:flex!important;
    flex-direction:row!important;
    align-items:center;
    justify-content:center;
    gap:5px;
    box-sizing:border-box;
    width:100%!important;
    min-width:0!important;
    height:30px!important;
    min-height:0!important;
    padding:2px 5px!important;
    border-radius:15px!important;
  }
  html body[data-map-page="japan"] #live-map .dashboard-cluster-compact>span small{font-size:14px!important}
  html body[data-map-page="japan"] #live-map .dashboard-cluster-compact>span .dashboard-cluster-categories{gap:2px}
  html body[data-map-page="japan"] #live-map .dashboard-cluster-compact>span .dashboard-cluster-categories i{
    width:16px!important;
    height:16px!important;
    font-size:12px!important;
    border-width:1px!important;
  }
  html body[data-map-page="japan"] #panel-regions #desktop-filter-apply-slot #apply-map-filters{
    width:100%;
    min-height:40px!important;
    margin:0!important;
    font-size:16px!important;
    font-weight:700;
  }
  html body[data-map-page="japan"] #panel-regions #desktop-filter-apply-slot #apply-map-filters:disabled{
    background:#24435f!important;
    color:#dae9fb!important;
    opacity:1!important;
  }
  html body[data-map-page="japan"] #panel-regions #desktop-filter-apply-slot .filter-apply-hint{margin:5px 0 0}
  html body[data-map-page="japan"] #panel-regions .map-details{margin-block:4px 0!important}
  html body[data-map-page="japan"] #panel-regions .map-stage #japan-map-operation{
    position:absolute!important;
    inset:58px auto auto 10px!important;
    z-index:600;
    max-width:190px!important;
    margin:0!important;
    padding:5px 7px!important;
    border:1px solid #314861;
    border-radius:6px;
    background:#0b1a2a;
    color:#dbe9f8;
    font-size:14px!important;
    line-height:1.4!important;
  }
}
html body[data-map-page="japan"] #panel-regions .japan-tokyo-count-scale small{font-size:14px!important;line-height:1.4}
.prefecture-count-marker{display:grid!important;place-items:center;cursor:pointer}
.prefecture-count-dot{
  width:var(--prefecture-count-diameter);
  height:var(--prefecture-count-diameter);
  border-radius:50%;
  background:#bce4ff;
  box-shadow:0 0 0 1px #051526;
}
.prefecture-count-number{
  position:absolute;
  left:calc(50% + var(--count-number-x));
  top:calc(50% + var(--count-number-y));
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  box-sizing:border-box;
  width:var(--count-number-width);
  height:25px;
  border:0;
  border-radius:3px;
  background:#0b1a2a;
  color:#eef5f7;
  font-size:18px!important;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  line-height:1;
}
.prefecture-count-marker.has-small-count::before{
  content:"";
  position:absolute;
  width:14px;
  height:14px;
  box-sizing:border-box;
  border:1px dashed #83a7ca;
  border-radius:3px;
  box-shadow:0 0 0 1px #051526;
}
.prefecture-count-marker:focus-visible{outline:2px solid #fff!important;outline-offset:0;border-radius:50%}
html body[data-map-page="japan"] #live-map .leaflet-tooltip.prefecture-count-tooltip{
  padding:5px 8px;
  border:1px solid #8cb8ff;
  background:#0b1a2a;
  color:#eef5f7;
  font-size:14px;
  line-height:1.4;
}
html body[data-map-page="japan"] #panel-regions #japan-okinawa-inset{
  position:absolute;
  inset:auto 10px 41px auto;
  z-index:615;
  display:grid!important;
  gap:4px;
  width:164px;
  padding:5px 7px!important;
  background:#0b1a2a!important;
  color:#eef5f7!important;
  border:1px solid #5d7896!important;
  border-radius:6px;
  font-size:14px!important;
  line-height:1.35;
}
html body[data-map-page="japan"] #panel-regions #japan-okinawa-inset[hidden]{display:none!important}
#japan-okinawa-direction{display:none}
@media(min-width:1001px){
  html body[data-map-page="japan"] #panel-regions #japan-okinawa-direction:not([hidden]){
    position:absolute;
    z-index:616;
    top:var(--okinawa-y);
    left:var(--okinawa-x);
    transform:translate(-50%,-50%);
    display:flex!important;
    align-items:center;
    gap:5px;
    min-height:30px;
    padding:3px 7px!important;
    border:1px solid #83a7ca!important;
    border-radius:5px;
    background:#0b1a2a!important;
    color:#eef5f7!important;
    font-size:15px!important;
    white-space:nowrap;
  }
  #japan-okinawa-direction>span[aria-hidden]{display:inline-block;transform:rotate(var(--okinawa-bearing));color:#bce4ff}
}
#japan-okinawa-count{display:block;width:max-content;max-width:100%;margin-inline:auto;color:#bce4ff;font-size:15px;font-weight:700}
#japan-okinawa-count[hidden]{display:none}
#japan-okinawa-map{display:block;width:100%;height:80px;pointer-events:none}
html body[data-map-page="japan"] #panel-regions #japan-okinawa-map.leaflet-container{background:#051526!important}
.japan-map-loading-preview{display:grid;gap:6px;width:min(100%,220px);margin:0 auto 12px;padding:10px;border:1px solid #314861;border-radius:7px}
.japan-map-loading-preview i{display:block;height:8px;border-radius:4px;background:#29435e}
.japan-map-loading-preview i:nth-child(2){width:78%}
.japan-map-loading-preview i:nth-child(3){width:60%}
@media(max-width:1000px){
  #japan-okinawa-inset{display:none!important}
  html body[data-map-page="japan"] .japan-map-views{position:relative}
  html body[data-map-page="japan"] .japan-map-key{position:absolute;z-index:620;inset:auto auto 35px 8px;max-width:calc(100% - 16px);pointer-events:none}
}
html body[data-map-page="japan"] #panel-regions #map-region-title{font-size:16px!important}
html body[data-map-page="japan"] #panel-regions :is(.map-details p,.map-details a,.regional-empty){font-size:14px!important;line-height:1.5}
html body[data-map-page="japan"] #panel-regions .redesign-map-hint{padding-block:2px!important}
html body[data-map-page="japan"] #live-map .leaflet-control-zoom a{
  background:#1467df!important;
  color:#fff!important;
  border-color:#8cb8ff!important;
}
html body[data-map-page="japan"] #live-map .leaflet-control-zoom a.leaflet-disabled{
  background:#1a2a3e!important;
  color:#a9bbcb!important;
  opacity:1!important;
}
body[data-home-dashboard] .japan-map-wheel-help{display:none}
@media(pointer:coarse){.japan-map-wheel-help{display:none}}
@media(min-width:1001px){
  html body[data-map-page="japan"] main[data-active-tab="regions"] .explorer-heading{margin-block:0 6px!important;padding:0!important;min-height:0!important}
  html body[data-map-page="japan"] main[data-active-tab="regions"] .explorer-heading .work-label{display:none}
  html body[data-map-page="japan"] main[data-active-tab="regions"] .japan-navigation{margin-block:0 4px!important}
  html body[data-map-page="japan"] #panel-regions>.section-heading{margin-block:4px!important;padding:0!important;min-height:26px!important}
  html body[data-map-page="japan"] #panel-regions .map-canvas .map-toolbar{margin:0 0 4px!important;padding:0!important;min-height:34px!important}
  html body[data-map-page="japan"] #panel-regions .map-canvas #map-region-title{flex:none!important;max-width:none!important}
}
@media(min-width:1150px){
  html body[data-map-page="japan"] #panel-regions .dashboard-category-legend{gap:4px 10px!important}
  html body[data-map-page="japan"] main[data-active-tab="regions"] .explorer-heading{
    width:34%;
    float:left;
  }
  html body[data-map-page="japan"] main[data-active-tab="regions"] .japan-navigation{
    width:66%;
    margin-inline:auto 0!important;
  }
  html body[data-map-page="japan"] main[data-active-tab="regions"] #panel-regions{clear:both}
}

/* On wide screens the islands are limited by map height. Place the controls
   and legends in the northwest sea, and reserve the taller canvas for land. */
.map-overview-controls{
  display:contents;
}
@media(min-width:1500px){
  html body[data-map-page="japan"] main[data-active-tab="regions"]{
    padding-top:8px!important;
  }
  html body[data-design][data-workspace="map"][data-map-page="japan"] #panel-regions .explorer-grid:has(.map-canvas[data-mainlands-overview]){
    grid-template-columns:clamp(280px,18.5vw,356px) minmax(0,1fr) clamp(280px,18.5vw,356px)!important;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview]{
    position:relative;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .map-overview-controls{
    position:absolute;
    top:16px;
    left:116px;
    width:min(448px,45%);
    box-sizing:border-box;
    display:grid;
    z-index:610;
    border:1px solid #314861;
    border-radius:6px;
    background:#0b1a2a;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .map-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px 8px;
    min-height:0!important;
    margin:0!important;
    padding:6px 8px!important;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] #map-region-title{
    grid-column:1/-1;
    line-height:1.2;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .map-toolbar button{
    min-width:0;
    padding-inline:7px!important;
    white-space:normal;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-map-key{
    display:grid;
    gap:4px;
    margin:0!important;
    border-top:1px solid #38536a;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-map-key:has(#japan-tokyo-count-scale:not([hidden])){
    grid-template-columns:1fr;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-tokyo-count-scale:not([hidden]){
    border:0;
    border-top:1px solid #38536a;
    padding:4px 0 0;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] #japan-map-operation{
    inset:330px auto auto 10px!important;
  }
}

@media (min-width:1500px){
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"]{
    --japan-map-column:clamp(730px,45vw,856px);
    --japan-side-column:calc((100% - var(--japan-map-column) - 44px) / 2);
    position:relative;
    padding-top:8px!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] :is(.explorer-heading,.japan-navigation,.japan-reading-caution,#panel-regions>.section-heading){
    position:absolute;
    inset-inline-start:12px;
    width:var(--japan-side-column);
    max-width:none!important;
    margin:0!important;
    float:none;
    z-index:2;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] .explorer-heading{
    top:9px;
    width:var(--japan-side-column)!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] .japan-navigation{
    top:77px;
    width:var(--japan-side-column)!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] .japan-reading-caution{
    top:140px;
    text-align:left;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions{
    padding-top:0!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions>.section-heading{
    top:188px;
    flex-wrap:wrap;
    gap:3px 8px;
  }
  html body[data-design][data-workspace="map"][data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions .explorer-grid{
    grid-template-columns:minmax(0,1fr) var(--japan-map-column) minmax(0,1fr)!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions .explorer-picker{
    margin-top:237px!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions .map-canvas[data-mainlands-overview] .map-overview-controls{
    width:min(336px,42%);
  }
}

/* Keep the default Japan map focused on the map and its controls. */
html body[data-map-page="japan"] main:is([data-active-tab="regions"],:not([data-active-tab])) .explorer-heading p{
  display:none;
}
html body[data-map-page="japan"] #panel-regions #japan-map-operation[hidden]{
  display:none!important;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key{
  width:max-content;
  max-width:100%;
  box-sizing:border-box;
  margin:0;
  padding:3px 6px;
  background:#0b1a2a;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key:has(.dashboard-category-legend[hidden]),
html body[data-map-page="japan"] #panel-regions .japan-map-key:not(:has([data-legend-category]:not([data-no-pin]))){
  display:none;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start!important;
  gap:4px 8px!important;
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend[hidden]{
  display:none!important;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend>[data-legend-category]{
  gap:4px;
  font-size:14px!important;
  line-height:20px!important;
  white-space:nowrap;
}
html body[data-map-page="japan"] #panel-regions .japan-map-key .dashboard-category-legend i{
  width:19px!important;
  height:19px!important;
  font-size:14px!important;
}
html body[data-map-page="japan"] #panel-public-reports .japan-records-count-details{
  margin-block:8px 12px;
}
html body[data-map-page="japan"] #panel-public-reports .japan-records-count-details summary{
  cursor:pointer;
  font-size:14px;
}
@media (min-width:1500px){
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions>.section-heading{
    top:142px;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions .explorer-picker{
    margin-top:185px!important;
  }
  html body[data-map-page="japan"]:not([data-dashboard-embed]) main[data-active-tab="regions"] #panel-regions .map-canvas[data-mainlands-overview] .map-overview-controls{
    width:max-content;
    max-width:min(336px,42%);
    gap:4px;
    border:0;
    background:transparent;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .map-overview-controls .map-toolbar{
    width:100%;
    min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:4px 6px!important;
    border:1px solid #38536a;
    border-radius:6px;
    background:#0b1a2a;
  }
  html body[data-map-page="japan"] #panel-regions .map-canvas[data-mainlands-overview] .japan-map-key{
    width:fit-content;
    max-width:100%;
  }
}

/* In the desktop layout where the legend sits above the map, its row must
   have the same height before and after the independent pin request. */
@media (min-width:1001px) and (max-width:1499px){
  html body[data-map-page="japan"] #panel-regions .japan-map-key{
    min-height:28px;
  }
  html body[data-map-page="japan"] #panel-regions .japan-map-key:is(:has(.dashboard-category-legend[data-pins-pending]),:has(.dashboard-category-legend[hidden]),:not(:has([data-legend-category]:not([data-no-pin])))){
    display:block;
    background:transparent;
    border-color:transparent;
  }
}

@media (max-width: 500px) {
  html body[data-home-dashboard] #panel-regions .map-stage {
    --home-japan-map-height: 64svh;
    height: var(--home-japan-map-height) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  html body[data-home-dashboard][data-map-page="japan"] #panel-regions .map-stage #map-tokyo-highlight {
    inset: var(--tokyo-label-y, 8px) auto auto var(--tokyo-label-x, 8px) !important;
    transform: none;
    min-height: 44px !important;
  }
  html body[data-home-dashboard] #map-tokyo-highlight::before,
  html body[data-home-dashboard] #map-tokyo-highlight::after {
    display: none;
  }
  html body[data-home-dashboard] #map-tokyo-connector:not([hidden]) {
    position: absolute;
    z-index: 609;
    top: var(--tokyo-origin-y);
    left: var(--tokyo-origin-x);
    width: var(--tokyo-line-length);
    border-top: 2px solid #bce4ff;
    transform: rotate(var(--tokyo-line-angle));
    transform-origin: 0 50%;
    pointer-events: none;
  }
  html body[data-home-dashboard] #map-tokyo-connector:not([hidden])::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bce4ff;
    box-shadow: 0 0 0 1px #051526;
  }
  html body[data-home-dashboard][data-map-page="japan"] #panel-regions #japan-okinawa-inset:not([hidden]) {
    inset: 113px auto auto 10px;
    width: 105px;
    min-height: 44px;
  }
  html body[data-home-dashboard] #japan-okinawa-map {
    height: 34px;
  }
  html body[data-home-dashboard][data-map-page="japan"] #live-map .dashboard-cluster-mobile > span {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    gap: 4px;
    padding: 2px 4px !important;
  }
  html body[data-home-dashboard] #live-map .dashboard-cluster-mobile .dashboard-cluster-categories {
    gap: 1px;
  }
  html body[data-home-dashboard][data-map-page="japan"] #live-map .dashboard-cluster-mobile .dashboard-cluster-categories i {
    width: 16px !important;
    height: 16px !important;
    font-size: 14px !important;
  }

}
