/* reference-initial-map-layout */
@media (min-width:1100px) {
  .topline>.top-actions {
    flex:none;
    margin:0
  }
  .topline>.map-legend {
    margin-left:auto
  }
  .map-column .leaflet-top.leaflet-right:not(:has(.layer-control-detail-mode)) {
    top:auto!important;
    right:auto!important;
    bottom:104px!important;
    left:50%!important;
    width:min(470px,calc(100vw - 20px));
    transform:translateX(-50%);
  }
  .map-column .leaflet-top.leaflet-right:has(.layer-control-detail-mode) {
    top:112px!important;
    right:8px!important;
    bottom:auto!important;
    left:auto!important;
    transform:none;
  }
}

/* city-mode-density-opacity */
#cityModePanel:not([hidden]) {
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(20,31,43,.85) 72%)!important;
}
.city-mode-heading:active {
  cursor:grabbing
}
.city-mode-search input {
  background:rgba(17,29,41,.85)
}
.city-mode-tier-filters button,.city-mode-minority-filters button {
  background:rgba(23,41,55,.85);
}
.city-mode-tier-filters button[aria-pressed=true],.city-mode-minority-filters button[aria-pressed=true] {
  background:linear-gradient(125deg,rgba(32,81,106,.85),rgba(38,86,122,.85));
}
.city-mode-option {
  min-height:38px;
  padding:4px 6px;
  gap:2px 5px;
  border-radius:6px;
  background:linear-gradient(135deg,rgba(27,44,57,.85),rgba(20,35,47,.85));
}
.city-mode-option:hover,.city-mode-option:focus-visible {
  background:linear-gradient(135deg,rgba(33,63,80,.85),rgba(25,46,60,.85));
}
.city-mode-option {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:28px;
  padding:3px 5px;
  overflow:hidden;
  white-space:nowrap
}
.city-mode-option-name {
  flex:1 1 auto;
  min-width:0;
  font-size:9px;
  line-height:1.1
}
.city-mode-option-tier {
  flex:0 0 auto;
  padding:1px 3px;
  font-size:7px
}
.city-mode-option-meta {
  display:contents;
  font-size:8px
}
.city-mode-option-meta>span {
  flex:0 0 auto;
  max-width:32px;
  overflow:hidden;
  color:#b7dff0;
  text-overflow:clip;
  white-space:nowrap
}
.city-mode-option-share {
  font-size:8px
}
.city-mode-drag-grip {
  display:inline-grid;
  flex:0 0 20px;
  place-items:center;
  width:20px;
  height:30px;
  border:1px solid #527184;
  border-radius:6px;
  background:rgba(28,51,66,.85);
  color:#d8edf5;
  font-size:16px;
  line-height:1;
  cursor:grab
}
.city-mode-heading:active .city-mode-drag-grip {
  cursor:grabbing
}
.city-mode-heading {
  user-select:none
}
@media(min-width:681px) {
  #cityModePanel:not([hidden]) {
    width:min(744px,calc(100vw - 32px))!important;
    max-height:min(calc(100dvh - 24px),680px)!important;
    overflow:hidden!important;
    top:calc(50dvh - 252px)!important;
    transform:translateX(-50%)!important
  }
  #cityModePanel:not([hidden]) {
    display:flex;
    flex-direction:column
  }
  .city-mode-filter-block {
    grid-template-columns:112px minmax(0,1fr);
    column-gap:8px
  }
  .city-mode-filter-note {
    margin-left:120px
  }
  .city-mode-tier-filters,.city-mode-minority-filters {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(70px,82px));
    gap:5px
  }
  .city-mode-tier-filters button,.city-mode-minority-filters button {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    text-align:center
  }
  .city-mode-list {
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
    grid-auto-rows:36px;
    gap:4px;
    max-height:none;
    overflow-y:auto;
    padding:0;
  }
  .city-mode-option {
    display:grid;
    grid-template-columns:52px max-content minmax(0,1fr);
    align-items:center;
    min-height:36px;
    height:36px;
    padding:3px 7px;
    gap:6px;
    border-radius:5px;
    border-left:2px solid rgba(105,190,204,.48);
    box-shadow:inset 0 1px rgba(219,244,255,.035),0 2px 6px rgba(0,0,0,.12);
  }
  .city-mode-option-name {
    grid-column:1;
    min-width:0;
    max-width:52px;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:12px;
    letter-spacing:-.02em
  }
  .city-mode-option-tier {
    grid-column:2;
    justify-self:start;
    width:max-content;
    height:25px;
    padding:2px 4px;
    font-size:9px;
    text-align:center
  }
  .city-mode-option-meta {
    display:contents
  }
  .city-mode-option-meta>span:first-child {
    display:none
  }
  .city-mode-option-share {
    grid-column:3;
    max-width:none!important;
    font-size:9px;
    line-height:1;
    text-align:right;
    letter-spacing:-.02em
  }
  .city-mode-list {
    flex:1 1 196px;
    min-height:96px
  }
}
@media(min-width:681px) and (max-height:540px) {
  #cityModePanel:not([hidden]) {
    top:12px!important
  }
  .city-mode-list {
    max-height:calc(100dvh - 333px)
  }
}
@media(min-width:681px) and (max-width:1000px) {
  .city-mode-list {
    grid-template-columns:repeat(auto-fill,minmax(184px,1fr))!important
  }
  .city-mode-option {
    grid-template-columns:48px max-content minmax(0,1fr)
  }
}
@media(max-width:680px) {
  .city-mode-panel:not([hidden]) {
    top:12px!important;
    transform:translateX(-50%)!important;
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;
    overflow:auto!important
  }
  .city-mode-list {
    grid-auto-rows:44px;
    max-height:236px
  }
  .city-mode-option {
    display:grid;
    grid-template-columns:40px max-content minmax(0,1fr);
    gap:5px
  }
  .city-mode-option-meta {
    display:contents
  }
  .city-mode-option-meta>span:first-child {
    display:none
  }
  .city-mode-option-name {
    max-width:40px
  }
  .city-mode-option-tier {
    grid-column:2;
    justify-self:start;
    text-align:center
  }
  .city-mode-option-share {
    grid-column:3;
    max-width:none!important;
    text-align:right
  }
}
.city-mode-option-tier.city-rank-tag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:0 0 auto;
  width:max-content;
  min-width:0;
  height:25px;
  padding:2px 4px;
  border-radius:4px;
  font:600 9px/1.15 'Yu Gothic UI',sans-serif
}
.city-mode-option-tier.city-rank-tag b {
  padding:2px 3px;
  border-radius:3px;
  font:700 8px/1 'DM Sans','Yu Gothic UI',sans-serif
}
@media(min-width:681px) and (max-width:1000px) {
  .city-mode-option-tier.city-rank-tag {
    height:24px;
    font-size:8px
  }
}
@media(max-width:680px) {
  .city-mode-option-tier.city-rank-tag {
    height:23px;
    font-size:8px
  }
  .city-mode-option-tier.city-rank-tag b {
    font-size:7px
  }
}
.city-mode-resize-handle {
  position:absolute;
  right:4px;
  bottom:3px;
  z-index:3;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  width:19px;
  height:19px;
  padding:0;
  border:0;
  border-radius:2px;
  background:transparent;
  color:#b6d9e8;
  font:14px/1 'Yu Gothic UI',sans-serif;
  opacity:.9;
  cursor:nwse-resize;
  touch-action:none;
  user-select:none
}
.city-mode-resize-handle:hover,.city-mode-resize-handle:focus-visible {
  color:#fff;
  opacity:1
}
.city-mode-resize-handle:focus-visible {
  outline:2px solid #a9e0ff;
  outline-offset:1px
}
.city-mode-note {
  padding-right:20px
}

/* city-mode-card-polish */
.city-mode-option {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  border:1px solid rgba(87,128,149,.48);
  border-left:2px solid rgba(105,190,204,.72);
  background:linear-gradient(110deg,rgba(28,48,62,.9),rgba(19,34,46,.85));
  box-shadow:inset 0 1px rgba(225,246,255,.055),0 2px 7px rgba(0,0,0,.16);
  transition:border-color .14s ease,background .14s ease,box-shadow .14s ease,transform .14s ease;
}
.city-mode-option:hover,.city-mode-option:focus-visible {
  border-color:rgba(147,215,245,.82);
  border-left-color:#70d8d1;
  background:linear-gradient(110deg,rgba(37,70,88,.94),rgba(23,45,59,.9));
  box-shadow:inset 0 1px rgba(225,246,255,.1),0 4px 12px rgba(0,0,0,.22),0 0 12px rgba(94,205,211,.14);
  transform:translateY(-1px);
}
.city-mode-option-name {
  flex:0 0 38px;
  width:38px;
  max-width:38px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  letter-spacing:-.03em
}
.city-mode-option-tier {
  grid-column:auto;
  justify-self:auto;
  flex:0 0 auto;
  margin:0
}
.city-mode-option-tier.city-rank-tag {
  width:max-content;
  max-width:100%;
  height:25px;
  padding:2px 5px;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 1px 4px rgba(0,0,0,.24)
}
.city-mode-option-meta {
  display:contents
}
.city-mode-option-meta>span:first-child {
  display:none
}
.city-mode-option-share {
  grid-column:auto;
  flex:0 1 auto;
  min-width:0;
  max-width:none!important;
  margin-left:auto;
  padding-left:7px;
  border-left:1px solid rgba(125,167,184,.25);
  font-size:9px;
  line-height:1;
  text-align:right;
  letter-spacing:-.02em
}
@media(min-width:681px) and (max-width:1000px) {
  .city-mode-option-name {
    flex-basis:38px;
    width:38px;
    max-width:38px
  }
  .city-mode-option-tier.city-rank-tag {
    height:24px
  }
}
@media(max-width:680px) {
  .city-mode-option {
    gap:4px
  }
  .city-mode-option-name {
    flex-basis:32px;
    width:32px;
    max-width:32px
  }
  .city-mode-option-tier.city-rank-tag {
    height:23px
  }
  .city-mode-option-share {
    padding-left:5px;
    font-size:8px
  }
}
/* City mode density: expose up to five compact rows, with rank chips matching map labels. */
#cityModePanel:not([hidden]) {
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(20,31,43,.85) 72%)!important
}
.city-mode-icon {
  background:linear-gradient(145deg,rgba(31,84,115,.85),rgba(23,53,77,.85))
}
.city-mode-heading button {
  background:rgba(20,38,50,.85)
}
.city-mode-heading button:hover {
  background:rgba(26,54,75,.85)
}
.city-mode-search input {
  background:rgba(17,29,41,.85)
}
.city-mode-help {
  margin-bottom:5px
}
.city-mode-search {
  margin-bottom:6px
}
.city-mode-filter-block {
  margin:5px 0
}
.city-mode-filter-note {
  margin-top:0;
  margin-bottom:5px
}
.city-mode-results-heading {
  margin-top:6px;
  margin-bottom:4px;
  padding-top:5px
}
.city-mode-note {
  margin-top:5px
}
.city-mode-tier-filters,.city-mode-minority-filters {
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  gap:5px
}
.city-mode-tier-filters button.city-rank-tag {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  width:max-content!important;
  min-width:max-content!important;
  min-height:25px;
  height:25px;
  padding:2px 5px;
  border-radius:4px;
  font:600 9px/1.15 'Yu Gothic UI',sans-serif;
  white-space:nowrap
}
.city-mode-tier-filters button.city-rank-tag:before {
  display:none
}
.city-mode-tier-filters button:focus-visible,.city-mode-minority-filters button:focus-visible {
  outline:2px solid #d8f1ff;
  outline-offset:2px
}
.city-mode-tier-filters button.city-rank-tag b {
  padding:2px 3px;
  border-radius:3px;
  font:700 8px/1 'DM Sans','Yu Gothic UI',sans-serif
}
.city-mode-tier-filters button.city-tier-all {
  border-color:#8ba6b1;
  background:linear-gradient(135deg,rgba(22,35,44,.85),rgba(39,49,60,.85));
  color:#edf6f8
}
.city-mode-tier-filters button.city-tier-all b {
  background:rgba(139,166,177,.85);
  color:#14232c
}
.city-mode-tier-filters button.tier-1 {
  border-color:#e7c45e;
  background:linear-gradient(120deg,rgba(77,23,27,.85),rgba(36,23,26,.85));
  color:#fff0bd
}
.city-mode-tier-filters button.tier-1 b {
  border:1px solid rgba(244,220,143,.85);
  background:linear-gradient(135deg,rgba(196,147,46,.85),rgba(255,234,160,.85) 48%,rgba(173,116,25,.85));
  color:#571b22;
  text-shadow:0 1px rgba(255,243,197,.85)
}
.city-mode-tier-filters button.tier-new {
  border-color:#b786ed;
  background:rgba(39,28,54,.85);
  color:#f0dfff
}
.city-mode-tier-filters button.tier-new b {
  background:rgba(117,68,165,.85);
  color:#fff
}
.city-mode-tier-filters button.tier-2 {
  border-color:#4ab59a;
  background:rgba(21,49,46,.85);
  color:#d4fff0
}
.city-mode-tier-filters button.tier-2 b {
  background:rgba(38,116,94,.85);
  color:#fff
}
.city-mode-tier-filters button.tier-3 {
  border-color:#66a4ed;
  background:rgba(23,40,63,.85);
  color:#dbeaff
}
.city-mode-tier-filters button.tier-3 b {
  background:rgba(53,109,168,.85);
  color:#fff
}
.city-mode-tier-filters button.tier-4 {
  border-color:#f0a263;
  background:rgba(56,37,28,.85);
  color:#ffe0c2
}
.city-mode-tier-filters button.tier-4 b {
  background:rgba(169,93,42,.85);
  color:#fff
}
.city-mode-tier-filters button.tier-5 {
  border-color:#91a4b8;
  background:rgba(37,44,53,.85);
  color:#e2eaf1
}
.city-mode-tier-filters button.tier-5 b {
  background:rgba(83,107,122,.85);
  color:#fff
}
.city-mode-tier-filters button.tier-unranked {
  border-color:#d1cdbd;
  border-style:dashed;
  background:rgba(41,42,39,.85);
  color:#f0eee4
}
.city-mode-tier-filters button.tier-unranked b {
  background:rgba(215,210,192,.85);
  color:#34363a
}
.city-mode-tier-filters button[aria-pressed="true"] {
  filter:brightness(1.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.34),0 0 0 1px rgba(224,244,255,.52),0 0 9px rgba(154,222,255,.24)
}
.city-mode-minority-filters button {
  width:max-content!important;
  min-width:max-content!important;
  min-height:28px;
  padding:4px 5px;
  border-radius:6px;
  background:rgba(23,41,55,.85);
  font-size:9px
}
.city-mode-minority-filters button[aria-pressed="true"] {
  background:linear-gradient(125deg,rgba(32,81,106,.85),rgba(38,86,122,.85))
}
.city-mode-option {
  background:linear-gradient(110deg,rgba(28,48,62,.85),rgba(19,34,46,.85))!important
}
.city-mode-option:hover,.city-mode-option:focus-visible {
  background:linear-gradient(110deg,rgba(37,70,88,.85),rgba(23,45,59,.85))!important
}
.city-mode-drag-grip {
  background:rgba(28,51,66,.85)
}
.city-mode-restore {
  background:rgba(16,24,32,.85)
}
@media(min-width:681px) {
  .city-mode-list {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:36px;
    gap:4px;
    max-height:196px;
    min-height:0;
    flex:0 1 196px;
    overflow-y:auto;
    overflow-x:hidden
  }
}
@media(max-width:680px) {
  .city-mode-tier-filters button.city-rank-tag {
    min-height:23px;
    height:23px;
    padding:2px 4px;
    font-size:8px
  }
  .city-mode-tier-filters button.city-rank-tag b {
    font-size:7px
  }
  .city-mode-minority-filters button {
    min-height:28px;
    padding:4px 5px;
    font-size:9px
  }
}

/* airport-mode-opacity-and-drag */
.airport-mode-panel:not([hidden]) {
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(20,29,39,.85) 70%)!important
}
.airport-mode-heading {
  cursor:grab;
  touch-action:none
}
.airport-mode-drag-grip {
  display:inline-grid;
  flex:0 0 20px;
  place-items:center;
  width:20px;
  height:30px;
  border:1px solid rgba(255,220,19,.85);
  border-radius:6px;
  background:rgba(59,50,25,.85);
  color:#ffe77a;
  font-size:16px;
  line-height:1;
  cursor:grab;
  user-select:none
}
.airport-mode-heading:active .airport-mode-drag-grip {
  cursor:grabbing
}
.airport-mode-icon {
  background:rgba(255,220,19,.85)
}
.airport-mode-heading button {
  background:rgba(32,40,50,.85)
}
.airport-mode-heading button:hover {
  background:rgba(51,46,28,.85)
}
.airport-mode-heading #airportModeClose:hover {
  background:rgba(59,41,46,.85)
}
.airport-mode-search input {
  background:rgba(17,25,35,.85)
}
.airport-mode-filters button {
  background:rgba(32,40,50,.85)
}
.airport-mode-filters button[aria-pressed=true] {
  background:linear-gradient(125deg,rgba(102,87,25,.85),rgba(133,99,41,.85))
}
.airport-mode-region {
  background:rgba(7,12,18,.85)
}
.airport-mode-option {
  background:linear-gradient(135deg,rgba(32,40,50,.85),rgba(23,31,41,.85))
}
.airport-mode-option:hover {
  background:linear-gradient(135deg,rgba(56,53,33,.85),rgba(34,42,49,.85))
}
.airport-mode-option.is-active {
  background:linear-gradient(135deg,rgba(60,56,37,.85),rgba(34,42,49,.85))
}
.airport-mode-option-code {
  background:rgba(255,220,19,.85)
}
@media(max-width:680px) {
  .airport-mode-panel:not([hidden]) {
    background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(20,29,39,.85) 70%)!important
  }
}

/* visual-theme-overrides */
:root[data-visual-theme="current"] {
  color-scheme:dark;
  --paper:#101820;
  --ink:#f4f1e7;
  --muted:#a4afb8;
  --line:#46535e;
  --white:#111b27;
  --ui-navy:#111b27;
  --ui-raised:#172330;
  --ui-border:#46535e;
  --ui-yellow:#ffdc13;
  --ui-olive:#77751f;
  --ui-olive-hover:#898629;
  --ui-ivory:#f4f1e7;
  --ui-muted:#a4afb8;
  --theme-page:#101820;
  --theme-panel:rgba(17,27,39,.85);
  --theme-raised:rgba(23,35,48,.85);
  --theme-input:rgba(13,24,36,.85);
  --theme-border:#465d6c;
  --theme-text:#f4f1e7;
  --theme-muted:#a4afb8;
  --theme-accent:#ffdc13;
  --theme-action:#77751f;
  --theme-action-hover:#898629;
  --theme-action-text:#fff8d8;
  --theme-panel-gradient:linear-gradient(145deg,rgba(17,27,39,.85),rgba(20,31,43,.85) 72%);
  --theme-launcher:linear-gradient(125deg,#284e7a,#277e91);
  --theme-map-filter:none;
  --theme-map-surface:#101820;
  --theme-station-cluster-bg:radial-gradient(circle at 35% 28%,#ff826e,#d83f36 72%);
  --theme-station-cluster-edge:#fff1bd;
  --theme-station-cluster-ink:#fff;
  --theme-station-cluster-glow:#f04e3544;
  --theme-station-focus-bg:radial-gradient(circle at 35% 28%,#fff184,#edaa31 72%);
  --theme-station-focus-edge:#fff4a8;
  --theme-station-focus-ink:#211b11;
  --theme-station-focus-glow:#ffd64a77;
  --theme-city-marker:#ffd52a;
  --theme-city-marker-edge:#fff1a8;
  --theme-city-marker-halo:#ffd52a99;
  --theme-heritage-marker:#8a5d20;
  --theme-heritage-marker-hover:#bd8737;
  --theme-heritage-marker-edge:#ffedb8;
  --theme-heritage-marker-ink:#ffdf8e;
  --theme-airport-marker:#ffdc13;
  --theme-airport-marker-edge:#f6e25b;
  --theme-airport-marker-ink:#30343b;
  --theme-airport-plane:#343a43;
  --theme-airport-plane-ink:#fff8da;
  --theme-visit-stay:#ed7652;
  --theme-visit-daytrip:#319792;
  --theme-visit-sightseeing:#a97727;
  --theme-visit-edge:#fffef8;
  --theme-map-label:#111b27e8;
  --theme-map-label-edge:#465d6c;
  --theme-map-label-ink:#f4f1e7;
}
:root[data-visual-theme="china"] {
  color-scheme:dark;
  --paper:#790013;
  --ink:#fffbed;
  --muted:#ffe88b;
  --line:#ffdf00;
  --white:#b5001c;
  --ui-navy:#790013;
  --ui-raised:#d90022;
  --ui-border:#ffe000;
  --ui-yellow:#fff000;
  --ui-olive:#e00020;
  --ui-olive-hover:#ff291c;
  --ui-ivory:#fffbed;
  --ui-muted:#ffe88b;
  --theme-page:#790013;
  --theme-panel:rgba(164,0,24,.85);
  --theme-raised:rgba(207,0,29,.85);
  --theme-input:rgba(91,0,20,.85);
  --theme-border:#ffdf00;
  --theme-text:#fffbed;
  --theme-muted:#ffe88b;
  --theme-accent:#fff000;
  --theme-action:linear-gradient(120deg,#fff98a 0%,#ffeb00 32%,#ffc400 68%,#f68a00 100%);
  --theme-action-hover:linear-gradient(120deg,#fffcc4 0%,#fff34a 38%,#ffd11a 72%,#ff9c12 100%);
  --theme-action-text:#700015;
  --theme-panel-gradient:linear-gradient(128deg,rgba(255,18,31,.85) 0%,rgba(239,0,29,.85) 36%,rgba(194,0,30,.85) 69%,rgba(112,0,21,.85) 100%);
  --theme-launcher:linear-gradient(125deg,#ff351c 0%,#f00022 38%,#c50020 68%,#ffbf00 100%);
  --theme-map-filter:none;
  --theme-map-surface:#07162b;
  --theme-station-cluster-bg:radial-gradient(circle at 27% 22%,#fff35a 0%,#ff351d 42%,#c90020 100%);
  --theme-station-cluster-edge:#fff59a;
  --theme-station-cluster-ink:#fffdf3;
  --theme-station-cluster-glow:#ffdc00aa;
  --theme-station-focus-bg:radial-gradient(circle at 28% 20%,#fffbd0 0%,#fff000 48%,#ff8b00 100%);
  --theme-station-focus-edge:#fffbd2;
  --theme-station-focus-ink:#760016;
  --theme-station-focus-glow:#ffe22ecc;
  --theme-city-marker:#fff000;
  --theme-city-marker-edge:#fffbd0;
  --theme-city-marker-halo:#ffda00ee;
  --theme-heritage-marker:linear-gradient(135deg,#ffef67 0%,#ffcb08 42%,#ef071f 43%,#ac001c 100%);
  --theme-heritage-marker-hover:linear-gradient(135deg,#fff7a6 0%,#ffdb26 42%,#ff321b 43%,#d00021 100%);
  --theme-heritage-marker-edge:#fff184;
  --theme-heritage-marker-ink:#fff3a6;
  --theme-airport-marker:#fff000;
  --theme-airport-marker-edge:#fff9b0;
  --theme-airport-marker-ink:#780016;
  --theme-airport-plane:#c90025;
  --theme-airport-plane-ink:#fff300;
  --theme-visit-stay:#f01834;
  --theme-visit-daytrip:#ffdc00;
  --theme-visit-sightseeing:#c90024;
  --theme-visit-edge:#fff3a3;
  --theme-map-label:#a4001ad9;
  --theme-map-label-edge:#ffe100;
  --theme-map-label-ink:#fffbed;
}
:root[data-visual-theme="light"] {
  color-scheme:light;
  --paper:#eaf7fa;
  --ink:#19394b;
  --muted:#58798a;
  --line:#9bc8d0;
  --white:#f4fcff;
  --ui-navy:#effaff;
  --ui-raised:#dff2f6;
  --ui-border:#83bac7;
  --ui-yellow:#e6a935;
  --ui-olive:#138da4;
  --ui-olive-hover:#08758f;
  --ui-ivory:#19394b;
  --ui-muted:#58798a;
  --theme-page:#eaf7fa;
  --theme-panel:rgba(244,252,255,.85);
  --theme-raised:rgba(222,243,248,.85);
  --theme-input:rgba(255,255,255,.85);
  --theme-border:#83bac7;
  --theme-text:#19394b;
  --theme-muted:#58798a;
  --theme-accent:#087f9e;
  --theme-action:#138da4;
  --theme-action-hover:#08758f;
  --theme-action-text:#f5feff;
  --theme-panel-gradient:linear-gradient(135deg,rgba(241,252,255,.85),rgba(207,239,244,.85) 54%,rgba(226,240,255,.85));
  --theme-launcher:linear-gradient(120deg,#74d9d0,#75c8ed 58%,#8caef2);
  --theme-map-filter:brightness(1.55) saturate(.8) hue-rotate(330deg) contrast(.74);
  --theme-map-surface:#eaf7fa;
  --theme-station-cluster-bg:radial-gradient(circle at 35% 28%,#8fe9e0,#087f9e 72%);
  --theme-station-cluster-edge:#e6fbff;
  --theme-station-cluster-ink:#f5feff;
  --theme-station-cluster-glow:#30bdd866;
  --theme-station-focus-bg:radial-gradient(circle at 35% 28%,#d5ffff,#22a9bf 72%);
  --theme-station-focus-edge:#f1ffff;
  --theme-station-focus-ink:#12495d;
  --theme-station-focus-glow:#38bccc88;
  --theme-city-marker:#087f9e;
  --theme-city-marker-edge:#e6fbff;
  --theme-city-marker-halo:#30bdd899;
  --theme-heritage-marker:#117f91;
  --theme-heritage-marker-hover:#10a4b0;
  --theme-heritage-marker-edge:#efffff;
  --theme-heritage-marker-ink:#f1ffff;
  --theme-airport-marker:#20b6ca;
  --theme-airport-marker-edge:#e7ffff;
  --theme-airport-marker-ink:#103d55;
  --theme-airport-plane:#e9fbff;
  --theme-airport-plane-ink:#126080;
  --theme-visit-stay:#df7059;
  --theme-visit-daytrip:#138da4;
  --theme-visit-sightseeing:#be8842;
  --theme-visit-edge:#f7ffff;
  --theme-map-label:#effaffed;
  --theme-map-label-edge:#83bac7;
  --theme-map-label-ink:#19394b;
}
html[data-visual-theme="light"] {
  background:var(--theme-page)
}
:root[data-visual-theme="china"] .brand,
:root[data-visual-theme="china"] .map-legend,
:root[data-visual-theme="china"] .map-head .caption,
:root[data-visual-theme="china"] .map-footer,
:root[data-visual-theme="china"] .map-status,
:root[data-visual-theme="china"] .map-hint,
:root[data-visual-theme="china"] .toast,
:root[data-visual-theme="china"] .leaflet-control-layers,
:root[data-visual-theme="china"] .leaflet-control-layers-expanded,
:root[data-visual-theme="china"] .leaflet-control-zoom a,
:root[data-visual-theme="china"] .modal,
:root[data-visual-theme="china"] .share-dialog,
:root[data-visual-theme="china"] .flight-focus-card,
:root[data-visual-theme="china"] .city-info-card,
:root[data-visual-theme="china"] .heritage-info-card,
:root[data-visual-theme="china"] #airportModePanel:not([hidden]),
:root[data-visual-theme="china"] #cityModePanel:not([hidden]),
:root[data-visual-theme="china"] #railwayRoutePanel:not([hidden]),
:root[data-visual-theme="china"] .layer-control-game-menu:not(.layer-control-minimized),
:root[data-visual-theme="china"] .intro,
:root[data-visual-theme="china"] .workspace .side {
  background:var(--theme-panel-gradient)!important;
}
:root[data-visual-theme="china"] .place-item,
:root[data-visual-theme="china"] .city-mode-option,
:root[data-visual-theme="china"] .airport-mode-option,
:root[data-visual-theme="china"] .railway-route-stop-slot,
:root[data-visual-theme="china"] .railway-route-via-row,
:root[data-visual-theme="china"] .layer-control-game-menu .map-explore-preset,
:root[data-visual-theme="china"] .map-explore-preset {
  background:linear-gradient(132deg,rgba(255,27,27,.85) 0%,rgba(224,0,27,.85) 48%,rgba(132,0,25,.85) 100%)!important;
  box-shadow:inset 0 1px #fff4b477,inset 0 -1px #6f001666,0 3px 14px #69000d77;
}
body {
  background:var(--theme-page)!important;
  color:var(--theme-text)!important
}
.brand,.intro,.workspace .side,.map-legend,.map-head .caption,.map-footer,.map-status,
.map-hint,.toast,.leaflet-control-layers,.leaflet-control-layers-expanded,.leaflet-control-zoom a,
.modal,.share-dialog,.flight-focus-card,.city-info-card,.heritage-info-card,.airport-mode-panel:not([hidden]),
.city-mode-panel:not([hidden]),.railway-route-panel:not([hidden]),.layer-control-game-menu:not(.layer-control-minimized) {
  border-color:var(--theme-border)!important;
  color:var(--theme-text)!important;
}
.brand,.map-legend,.map-head .caption,.map-footer,.map-status,.map-hint,.toast,
.leaflet-control-layers,.leaflet-control-layers-expanded,.leaflet-control-zoom a,.modal,.share-dialog,
.flight-focus-card,.city-info-card,.heritage-info-card,.airport-mode-panel:not([hidden]),
.city-mode-panel:not([hidden]),.railway-route-panel:not([hidden]),.layer-control-game-menu:not(.layer-control-minimized) {
  background:var(--theme-panel)!important;
  backdrop-filter:blur(12px);
}
.intro,.workspace .side {
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important
}
.brand {
  color:var(--theme-accent)!important
}
.brand-mark,.brand-stat b,.intro h1,.side-title,.place-city,.stat strong,.city-info-header strong,
.flight-focus-card header strong,.heritage-info-card h3,.layer-control-heading,.popup-title {
  color:var(--theme-text)!important
}
.brand-caption,.intro h1 span,.eyebrow,.item-tools button:hover,.flight-focus-card header small,
.city-info-card a,.heritage-info-card a {
  color:var(--theme-accent)!important
}
.brand-stats,.brand-stats>i,.stat-sep,.city-mode-results-heading {
  border-color:var(--theme-border)!important
}
.intro-copy,.stat small,.side-count,.memory-caption,.place-meta,.place-note,.side-note,.empty,.credit,
.city-mode-help,.city-mode-note,.airport-mode-help,.airport-mode-note,.flight-focus-note,.flight-focus-card>p,
.popup-meta,.popup-note,.field span,.coords {
  color:var(--theme-muted)!important
}
.quiet-button,.solid-button,.add-place,.layer-control-button,.map-layer-detail-toggle,
.plan-actions .quiet-button,.plan-actions .solid-button,.airport-mode-heading button,.city-mode-heading button,
.city-mode-restore,.airport-mode-filters button[aria-pressed="true"],.city-mode-minority-filters button[aria-pressed="true"] {
  border-color:var(--theme-accent)!important;
  background:var(--theme-action)!important;
  color:var(--theme-action-text)!important;
}
.quiet-button:hover,.solid-button:hover,.add-place:hover,.layer-control-button:hover,
.plan-actions .quiet-button:hover,.plan-actions .solid-button:hover,.airport-mode-heading button:hover,
.city-mode-heading button:hover,.city-mode-restore:hover {
  border-color:var(--theme-accent)!important;
  background:var(--theme-action-hover)!important;
  color:var(--theme-action-text)!important
}
.top-actions .share-button,.share-actions .solid-button,.heritage-info-record {
  border-color:var(--theme-accent)!important;
  background:var(--theme-accent)!important;
  color:var(--theme-page)!important
}
.place-item,.city-mode-option,.airport-mode-option,.railway-route-stop-slot,.railway-route-via-row,
.city-mode-search input,.airport-mode-search input,.field input,.field textarea,.field select,
.layer-control-game-menu .map-explore-preset,.map-explore-preset,.railway-route-panel input,.railway-route-panel select {
  border-color:var(--theme-border)!important;
  background:var(--theme-raised)!important;
  color:var(--theme-text)!important;
}
.city-mode-option:hover,.airport-mode-option:hover,.railway-route-stop-slot:hover,.map-explore-preset:hover {
  border-color:var(--theme-accent)!important;
  background:var(--theme-panel-gradient)!important;
}
.airport-mode-option.is-active,.map-explore-preset.is-active,.city-mode-option.is-active {
  border-color:var(--theme-accent)!important;
  background:var(--theme-panel-gradient)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 38%,transparent),0 0 12px color-mix(in srgb,var(--theme-accent) 20%,transparent)!important;
}
.airport-mode-option-code,.airport-mode-option-count,.airport-mode-region,.city-mode-filter-label,
.layer-control-heading>strong {
  color:var(--theme-accent)!important
}
.airport-mode-option-code {
  background:var(--theme-action)!important
}
.airport-mode-option-copy small,.city-mode-filter-note {
  color:var(--theme-muted)!important
}
.railway-route-stop-name,.railway-route-stop-role,.railway-route-stop-area,
.railway-route-heading,.railway-route-mode-name,.railway-route-station-detail-title,
.railway-route-itinerary-list,.city-info-header small,.airport-mode-option-copy strong {
  color:var(--theme-text)!important
}
.airport-mode-region {
  background:var(--theme-raised)!important;
  color:var(--theme-accent)!important
}
.map-explore-menu,.map-visited-toggle,.map-legend-drag-handle,.layer-control-game-menu .layer-control-heading {
  color:var(--theme-text)!important
}
.map-explore-menu .layer-control-heading>strong,.layer-control-game-menu .layer-control-heading>strong {
  color:var(--theme-muted)!important
}
.leaflet-popup-content-wrapper,.leaflet-popup-tip {
  border-color:var(--theme-border)!important;
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important
}
.popup-title,.city-info-card h3,.city-info-card h4,.city-info-card strong,.flight-focus-card strong {
  color:var(--theme-text)!important
}
.city-info-card section p,.flight-focus-card p,.heritage-info-card p {
  color:var(--theme-muted)!important
}
.field input,.field textarea,.city-mode-search input,.airport-mode-search input {
  background:var(--theme-input)!important
}
.leaflet-control-attribution {
  border-color:var(--theme-border)!important;
  background:var(--theme-panel)!important;
  color:var(--theme-muted)!important
}
.leaflet-control-attribution a {
  color:var(--theme-accent)!important
}
.leaflet-control-zoom a {
  color:var(--theme-text)!important
}
.layer-control-game-menu.layer-control-detail-mode .layer-control-heading {
  background:var(--theme-panel)!important
}
#concentrationModeLaunchers #railwayRouteReopen,
#concentrationModeLaunchers #cityModeReopen,
#concentrationModeLaunchers #airportModeReopen,
#concentrationModeLaunchers #tripModeReopen {
  border-color:var(--theme-accent)!important;
  background:var(--theme-launcher)!important;
  color:var(--theme-text)!important;
}
#concentrationModeLaunchers .railway-route-reopen-copy strong,
#concentrationModeLaunchers .railway-route-reopen-copy small,
#concentrationModeLaunchers .railway-route-reopen-cta {
  color:var(--theme-text)!important;
  text-shadow:none
}
#concentrationModeLaunchers .railway-route-reopen-icon,
#concentrationModeLaunchers .railway-route-reopen-cta b {
  border-color:var(--theme-accent)!important;
  background:var(--theme-action)!important;
  color:var(--theme-action-text)!important
}
.map-status.error {
  color:#c9433b!important
}
#map {
  background:var(--theme-map-surface)!important
}
#map .leaflet-tile-pane:not(:has(canvas.maplibregl-canvas)),#map .leaflet-gl-layer canvas.maplibregl-canvas {
  filter:var(--theme-map-filter);
  transition:filter .28s ease
}
#map .leaflet-overlay-pane,#map .leaflet-context-pane,#map .leaflet-cityHover-pane,
#map .leaflet-provinceOutline-pane,#map .leaflet-cityFocus-pane {
  filter:var(--theme-map-filter);
  transition:filter .28s ease
}
.railway-station-cluster-count {
  border-color:var(--theme-station-cluster-edge)!important;
  background:var(--theme-station-cluster-bg)!important;
  color:var(--theme-station-cluster-ink)!important;
  box-shadow:0 0 0 3px var(--theme-station-cluster-glow),0 2px 8px #000a!important
}
.railway-station-cluster-icon-focused .railway-station-cluster-count {
  border-color:var(--theme-station-focus-edge)!important;
  background:var(--theme-station-focus-bg)!important;
  color:var(--theme-station-focus-ink)!important;
  box-shadow:0 0 0 5px var(--theme-station-focus-glow),0 0 20px 7px var(--theme-station-focus-glow),0 2px 8px #000a!important
}
.city-point-dot {
  border-color:var(--theme-city-marker-edge)!important;
  background:var(--theme-city-marker)!important;
  box-shadow:0 0 0 2px var(--theme-map-surface),0 0 8px var(--theme-city-marker-halo),0 1px 4px #061018cc!important
}
.leaflet-marker-icon.city-marker:hover .city-point-dot {
  background:var(--theme-city-marker-edge)!important;
  box-shadow:0 0 0 2px var(--theme-map-surface),0 0 12px var(--theme-city-marker-halo)!important
}
.legend-city-dot {
  border-color:var(--theme-city-marker-edge)!important;
  background:var(--theme-city-marker)!important;
  box-shadow:0 0 0 2px var(--theme-map-surface),0 0 7px var(--theme-city-marker-halo)!important
}
.heritage-marker-symbol,.legend-heritage {
  border-color:var(--theme-heritage-marker-edge)!important;
  background:var(--theme-heritage-marker)!important;
  color:var(--theme-heritage-marker-ink)!important
}
.leaflet-marker-icon.heritage-marker-icon:hover .heritage-marker-symbol {
  background:var(--theme-heritage-marker-hover)!important
}
.airport-code-tag,.legend-airport {
  border-color:var(--theme-airport-marker-edge)!important;
  background:var(--theme-airport-marker)!important;
  color:var(--theme-airport-marker-ink)!important
}
.airport-code-tag b,.legend-airport::before {
  color:var(--theme-airport-marker-ink)!important
}
.airport-plane-box {
  background:var(--theme-airport-plane)!important;
  color:var(--theme-airport-plane-ink)!important
}
.airport-code-tag.visited {
  border-color:var(--theme-airport-marker-edge)!important;
  background:var(--theme-map-label)!important;
  color:var(--theme-airport-marker-edge)!important
}
.airport-code-tag.visited b {
  color:var(--theme-airport-marker-edge)!important
}
.airport-code-tag.visited .airport-plane-box {
  background:var(--theme-airport-marker-edge)!important;
  color:var(--theme-map-label)!important
}
.visited-pin:not(.daytrip):not(.sightseeing) {
  background:var(--theme-visit-stay)!important;
  border-color:var(--theme-visit-edge)!important
}
.visited-pin.daytrip {
  background:var(--theme-visit-daytrip)!important
}
.visited-pin.daytrip.selected {
  background:var(--theme-visit-daytrip)!important
}
.visited-pin.sightseeing,.visited-pin.sightseeing.selected {
  background:var(--theme-visit-sightseeing)!important
}
.visited-tooltip .type-chip {
  background:var(--theme-visit-stay)!important
}
.visited-tooltip .type-chip.daytrip {
  background:var(--theme-visit-daytrip)!important
}
.visited-tooltip .type-chip.sightseeing {
  background:var(--theme-visit-sightseeing)!important
}
.leaflet-marker-icon.province-marker .province-tag,.province-tag.municipality-tag {
  border-color:var(--theme-map-label-edge)!important;
  background:var(--theme-map-label)!important;
  color:var(--theme-map-label-ink)!important;
  text-shadow:none!important
}
:root[data-visual-theme="china"] .city-mode-minority-filters button,
:root[data-visual-theme="china"] .airport-mode-filters button:not([aria-pressed="true"]) {
  border-color:#ffd943!important;
  background:linear-gradient(128deg,rgba(171,0,0,.85),rgba(240,12,0,.85) 54%,rgba(164,0,0,.85))!important;
  color:#fff8de!important;
}
:root[data-visual-theme="china"] .city-mode-minority-filters button[aria-pressed="true"],
:root[data-visual-theme="china"] .airport-mode-filters button[aria-pressed="true"] {
  border-color:#fff8a8!important;
  background:linear-gradient(125deg,#fff66a 0%,#ffd400 52%,#ffad00 100%)!important;
  color:#780017!important;
  box-shadow:inset 0 0 0 1px #fffbd766,0 0 9px #ffd52f66!important;
}
.visual-theme-picker {
  position:relative;
  z-index:1500;
  flex:none;
  color:var(--theme-text);
  font:600 11px/1 'DM Sans','Noto Sans JP','Yu Gothic UI',sans-serif
}
.visual-theme-picker>summary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:35px;
  padding:0 11px;
  border:1px solid var(--theme-border);
  border-radius:7px;
  background:var(--theme-panel);
  color:var(--theme-text);
  box-shadow:0 4px 18px #02070d55;
  backdrop-filter:blur(12px);
  cursor:pointer;
  list-style:none;
  user-select:none
}
.visual-theme-picker>summary::-webkit-details-marker {
  display:none
}
.visual-theme-picker>summary:hover,.visual-theme-picker[open]>summary {
  border-color:var(--theme-accent);
  background:var(--theme-raised)
}
.visual-theme-summary-icon {
  color:var(--theme-accent);
  font-size:16px
}
.visual-theme-menu {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:1600;
  display:grid;
  gap:5px;
  width:min(244px,calc(100vw - 24px));
  padding:7px;
  border:1px solid var(--theme-border);
  border-radius:11px;
  background:var(--theme-panel);
  box-shadow:0 12px 30px #02070d77;
  backdrop-filter:blur(14px)
}
.visual-theme-menu button {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:47px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:8px;
  background:var(--theme-raised);
  color:var(--theme-text);
  text-align:left;
  cursor:pointer
}
.visual-theme-menu button:hover,.visual-theme-menu button[aria-pressed="true"] {
  border-color:var(--theme-accent);
  background:var(--theme-panel-gradient)
}
.visual-theme-menu button>span {
  display:grid;
  gap:4px;
  min-width:0
}
.visual-theme-menu strong {
  font-size:11px;
  line-height:1.2
}
.visual-theme-menu small {
  color:var(--theme-muted);
  font-size:9px;
  line-height:1.2
}
.visual-theme-swatch {
  flex:0 0 28px;
  width:28px;
  height:28px;
  border:1px solid #ffffff55;
  border-radius:8px;
  box-shadow:inset 0 1px #ffffff45,0 2px 5px #0002
}
.swatch-current {
  background:linear-gradient(135deg,#101820 0 48%,#ffdc13 50% 100%)
}
.swatch-china {
  background:linear-gradient(125deg,#ff351c 0 32%,#c50020 33% 56%,#fff000 57% 78%,#ffbf00 79% 100%);
  background-image:url('../images/theme-china-five-claw-dragon.png'),linear-gradient(125deg,#ff351c 0 32%,#c50020 33% 56%,#fff000 57% 78%,#ffbf00 79% 100%);
  background-size:24px 24px,cover;
  background-position:center;
  background-repeat:no-repeat
}
.swatch-light {
  background:linear-gradient(135deg,#71ded2,#79bff1 55%,#e8faff)
}
:root[data-visual-theme="china"] #map::before,
:root[data-visual-theme="china"] #map::after {
  content:"";
  position:absolute;
  bottom:clamp(34px,4vh,52px);
  z-index:420;
  width:clamp(100px,12vw,180px);
  aspect-ratio:1;
  background:url('../images/theme-china-five-claw-dragon.png') center/contain no-repeat;
  opacity:.2;
  filter:sepia(.55) saturate(1.4) brightness(1.3) drop-shadow(0 0 12px #ffc83e66);
  mix-blend-mode:screen;
  pointer-events:none
}
:root[data-visual-theme="china"] #map::before {
  left:max(12px,env(safe-area-inset-left));
  transform:scaleX(-1);
  opacity:.32
}
:root[data-visual-theme="china"] #map::after {
  right:max(12px,env(safe-area-inset-right))
}
@media(max-width:680px) {
  :root[data-visual-theme="china"] #map::before,:root[data-visual-theme="china"] #map::after {
    bottom:calc(28px + env(safe-area-inset-bottom));
    width:clamp(64px,18vw,104px)
  }
  :root[data-visual-theme="china"] #map::before {
    opacity:.24
  }
  :root[data-visual-theme="china"] #map::after {
    opacity:.16
  }
}
@media(max-width:680px) {
  .visual-theme-picker>summary {
    min-height:31px;
    padding:0 8px;
    font-size:9px
  }
  .visual-theme-menu {
    top:calc(100% + 6px);
    right:0
  }
}
.railway-route-ticket-search {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(112px,.72fr) minmax(0,1.28fr);
  align-items:end;
  gap:6px 8px;
  padding-top:7px;
  border-top:1px solid color-mix(in srgb,var(--theme-border,#536474) 75%,transparent)
}
.railway-route-ticket-date {
  display:grid;
  gap:4px;
  min-width:0;
  color:var(--theme-muted,#a6b3b8);
  font-size:10px;
  font-weight:700
}
.railway-route-ticket-date input {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:42px;
  padding:6px 8px;
  border:1px solid var(--theme-border,#536474);
  border-radius:7px;
  background:var(--theme-input,#111b25);
  color:var(--theme-text,#edf2f4);
  font:600 12px 'DM Sans','Yu Gothic UI',sans-serif;
  color-scheme:dark
}
.railway-route-actions .railway-route-12306 {
  box-sizing:border-box;
  min-width:0;
  min-height:42px;
  padding:7px 10px;
  border-color:var(--theme-accent,#f0d34b);
  background:var(--theme-action,var(--theme-accent,#f0d34b));
  color:var(--theme-action-text,#172330);
  font-size:11px;
  font-weight:800;
  line-height:1.3
}
.railway-route-actions .railway-route-12306:hover {
  filter:brightness(1.08)
}
.railway-route-ticket-date[hidden] {
  display:none
}
.railway-route-ticket-search[data-booking-provider="thsr"],.railway-route-ticket-search[data-booking-provider="tra"],.railway-route-ticket-search[data-booking-provider="separate"] {
  grid-template-columns:minmax(0,1fr)
}
.railway-route-ticket-note {
  grid-column:1/-1;
  color:var(--theme-muted,#94a2aa);
  font-size:9px;
  line-height:1.35
}
@media(max-width:680px) {
  .railway-route-ticket-search {
    grid-template-columns:minmax(100px,.72fr) minmax(0,1.28fr);
    gap:5px 7px
  }
  .railway-route-ticket-date {
    font-size:9px
  }
  .railway-route-ticket-date input {
    min-height:40px;
    font-size:11px
  }
  .railway-route-actions .railway-route-12306 {
    min-height:40px;
    padding:6px;
    font-size:10px
  }
  .railway-route-ticket-note {
    font-size:8px
  }
}
:root[data-visual-theme="china"] .modal,
:root[data-visual-theme="china"] .share-dialog,
:root[data-visual-theme="china"] .flight-focus-card,
:root[data-visual-theme="china"] .city-info-card,
:root[data-visual-theme="china"] .heritage-info-card,
:root[data-visual-theme="china"] #airportModePanel:not([hidden]),
:root[data-visual-theme="china"] #cityModePanel:not([hidden]),
:root[data-visual-theme="china"] #railwayRoutePanel:not([hidden]),
:root[data-visual-theme="china"] .intro,
:root[data-visual-theme="china"] .workspace .side {
  background:linear-gradient(145deg,rgba(17,39,56,.96),rgba(8,23,39,.96) 76%)!important;
  border-color:rgba(211,170,73,.78)!important;
  box-shadow:inset 0 1px rgba(255,228,157,.12),0 12px 32px rgba(1,8,17,.42)!important;
}
:root[data-visual-theme="china"] #cityModePanel .city-mode-option,
:root[data-visual-theme="china"] #airportModePanel .airport-mode-option,
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot,
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-via-row,
:root[data-visual-theme="china"] .workspace .side .place-item,
:root[data-visual-theme="china"] .modal .place-item {
  background:linear-gradient(135deg,rgba(29,52,68,.94),rgba(15,33,49,.96))!important;
  border-color:rgba(170,78,66,.62)!important;
  box-shadow:inset 0 1px rgba(255,239,204,.08),0 3px 10px rgba(0,7,15,.24)!important;
}
:root[data-visual-theme="china"] #cityModePanel .city-mode-option:hover,
:root[data-visual-theme="china"] #airportModePanel .airport-mode-option:hover,
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot:hover,
:root[data-visual-theme="china"] .workspace .side .place-item:hover,
:root[data-visual-theme="china"] .modal .place-item:hover {
  background:linear-gradient(135deg,rgba(39,63,78,.97),rgba(20,39,55,.98))!important;
  border-color:rgba(224,174,79,.9)!important;
}
:root[data-visual-theme="china"] #cityModePanel .city-mode-option.is-active,
:root[data-visual-theme="china"] #airportModePanel .airport-mode-option.is-active {
  background:linear-gradient(135deg,rgba(48,63,63,.97),rgba(21,40,52,.98))!important;
  border-color:#e0b54b!important;
  box-shadow:inset 0 0 0 1px rgba(224,181,75,.28),0 0 10px rgba(175,91,47,.16)!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot.active[data-stop-role="departure"] {
  background:linear-gradient(135deg,#153e3b,#173347)!important;
  border-color:#58b9a9!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot.active[data-stop-role="via"] {
  background:linear-gradient(135deg,#342844,#1b2d43)!important;
  border-color:#ad8bd0!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot.active[data-stop-role="arrival"] {
  background:linear-gradient(135deg,#46282d,#242d3b)!important;
  border-color:#d77968!important;
}
:root[data-visual-theme="china"] #cityModePanel input,
:root[data-visual-theme="china"] #cityModePanel select,
:root[data-visual-theme="china"] #airportModePanel input,
:root[data-visual-theme="china"] #airportModePanel select,
:root[data-visual-theme="china"] #railwayRoutePanel input,
:root[data-visual-theme="china"] #railwayRoutePanel select,
:root[data-visual-theme="china"] .modal input,
:root[data-visual-theme="china"] .modal textarea,
:root[data-visual-theme="china"] .modal select {
  background:rgba(7,22,38,.94)!important;
  border-color:rgba(174,91,73,.62)!important;
}
:root[data-visual-theme="china"] #cityModePanel .city-mode-minority-filters button:not([aria-pressed="true"]),
:root[data-visual-theme="china"] #airportModePanel .airport-mode-filters button:not([aria-pressed="true"]) {
  background:linear-gradient(135deg,rgba(25,47,64,.96),rgba(13,31,47,.96))!important;
  border-color:rgba(171,80,68,.58)!important;
  color:#f5e8c7!important;
}
:root[data-visual-theme="china"] #cityModePanel .city-mode-minority-filters button[aria-pressed="true"],
:root[data-visual-theme="china"] #airportModePanel .airport-mode-filters button[aria-pressed="true"] {
  box-shadow:inset 0 0 0 1px rgba(255,248,205,.36),0 0 8px rgba(255,204,76,.24)!important;
}
:root[data-visual-theme="china"] #airportModePanel .airport-mode-region {
  background:linear-gradient(135deg,rgba(24,46,62,.96),rgba(12,29,44,.96))!important;
  border-color:rgba(174,91,73,.55)!important;
}
:root[data-visual-theme="china"] #map .highspeed-rail-line {
  stroke:#38fff1!important;
  filter:drop-shadow(0 0 2px #07172b) drop-shadow(0 0 3px #f4ffff) drop-shadow(0 0 11px #00f5e6)!important;
}
:root[data-visual-theme="china"] .railway-selected-route-core.is-highspeed {
  stroke:#38fff1!important;
  filter:drop-shadow(0 0 5px #f6ffff) drop-shadow(0 0 13px #00f5e6)!important;
}
:root[data-visual-theme="china"] .railway-selected-route-halo.is-highspeed {
  filter:drop-shadow(0 0 7px #f6ffff) drop-shadow(0 0 17px #00f5e6)!important;
}
:root[data-visual-theme="china"] .railway-train-dot.is-highspeed {
  --railway-flow-color:#50fff2;
  --railway-flow-glow:#00f5e6;
}
:root[data-visual-theme="china"] .legend-rail-highspeed {
  --legend-rail-color:#38fff1
}
:root[data-visual-theme="china"] .rail-key-highspeed {
  border-top-color:#38fff1
}
:root[data-visual-theme="china"] .railway-route-itinerary-stop[data-next-mode="highspeed"]:not(:last-child)::before,
:root[data-visual-theme="china"] .railway-route-itinerary-leg[data-mode="highspeed"] .railway-route-itinerary-rail::before {
  border-left-color:#38fff1
}
:root[data-visual-theme="china"] .railway-route-itinerary-stop[data-next-mode="mixed"]:not(:last-child)::before,
:root[data-visual-theme="china"] .railway-route-itinerary-leg[data-mode="mixed"] .railway-route-itinerary-rail::before {
  background:linear-gradient(to bottom,#38fff1 0 50%,#ffd24a 50% 100%)
}
:root[data-visual-theme="china"] .railway-route-mode[data-railway-mode="highspeed"] {
  border-color:#e76847!important;
  background:linear-gradient(135deg,#7e1824,#c32624 55%,#661326)!important;
  color:#fff3db!important;
  box-shadow:inset 0 1px rgba(255,231,170,.24),0 5px 16px rgba(224,34,34,.3)!important;
}
:root[data-visual-theme="china"] .railway-route-mode[data-railway-mode="highspeed"].active {
  border-color:#fff0a0!important;
  background:linear-gradient(130deg,#ffcf4c,#ff542e 39%,#d00728 76%,#9a001e)!important;
  color:#fff9e9!important;
  box-shadow:inset 0 1px #fff5cc,0 0 0 2px rgba(255,202,64,.5),0 0 24px rgba(239,37,28,.76)!important;
}
:root[data-visual-theme="china"] .railway-route-mode[data-railway-mode="highspeed"] .railway-route-mode-emoji {
  border-color:#fff0a5!important;
  background:linear-gradient(145deg,#fff2a4,#f3bd43 60%,#c37a23)!important;
  color:#67131b!important;
}
:root[data-visual-theme="china"] .railway-route-mode[data-railway-mode="highspeed"].active .railway-route-mode-emoji {
  border-color:#fff8d3!important;
  background:linear-gradient(145deg,#fff8d1,#ffd45f 58%,#f39b2c)!important;
  color:#68121c!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-tab[aria-pressed="true"] {
  border-color:#ffe59a!important;
  background:linear-gradient(125deg,#a71627,#e52a24 52%,#9a0923)!important;
  color:#fff6df!important;
  box-shadow:inset 0 1px rgba(255,242,194,.45),0 0 12px rgba(235,39,36,.38)!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-tab:not([aria-pressed="true"]):hover {
  border-color:#d9634b!important;
  color:#ffe8c5!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot {
  border-color:rgba(210,74,57,.88)!important;
  box-shadow:inset 0 1px rgba(255,229,184,.07),0 3px 10px rgba(0,7,15,.24)!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-role {
  border:1px solid rgba(255,222,133,.86)!important;
  background:linear-gradient(135deg,#bd2431,#801526)!important;
  color:#fff0b3!important;
  box-shadow:inset 0 1px rgba(255,247,206,.28),0 0 7px rgba(205,42,39,.3)!important;
}
:root[data-visual-theme="china"] #railwayRoutePanel .railway-route-stop-slot.active {
  border-color:#ffe08a!important;
  outline-color:#e64131!important;
  background:linear-gradient(135deg,#57202a,#33212d)!important;
  box-shadow:0 0 0 2px rgba(255,218,115,.44),0 0 16px rgba(228,42,36,.34)!important;
}
