/* Original stylesheet 1 */
:root {
  --paper:#f5f2e9;
  --ink:#20392f;
  --muted:#758078;
  --line:#dcded3;
  --green:#53755d;
  --orange:#d7613d;
  --white:#fffef9;
  --shadow:0 24px 70px #263b2e14
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'DM Sans','Yu Gothic UI',sans-serif;
  min-height:100vh
}
button,input,textarea {
  font:inherit
}
button {
  cursor:pointer
}
.page {
  max-width:1540px;
  margin:0 auto;
  padding:32px 46px 34px
}
.topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:25px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--green);
  font:500 11px 'DM Mono',monospace;
  letter-spacing:.14em
}
.brand-mark {
  width:29px;
  height:29px;
  border:1px solid #839483;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:14px
}
.top-actions {
  display:flex;
  gap:9px
}
.quiet-button,.solid-button {
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:10px 14px;
  border-radius:5px;
  font-size:12px;
  transition:.18s
}
.quiet-button:hover {
  background:#ebe9de
}
.solid-button {
  background:var(--ink);
  color:#fffef9;
  border-color:var(--ink)
}
.solid-button:hover {
  background:#355244
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:0 0 21px;
  gap:20px
}
.eyebrow {
  font:500 10px 'DM Mono',monospace;
  letter-spacing:.16em;
  color:var(--orange);
  margin-bottom:9px
}
.intro h1 {
  font-size:clamp(30px,4vw,50px);
  line-height:1.1;
  letter-spacing:-.055em;
  margin:0;
  font-weight:600
}
.intro h1 span {
  color:var(--green);
  font-family:'Yu Gothic UI',sans-serif;
  font-weight:500
}
.intro-copy {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin:10px 0 0
}
.stats {
  display:flex;
  align-items:center;
  gap:25px;
  padding-bottom:3px
}
.stat {
  min-width:64px
}
.stat strong {
  font-size:25px;
  letter-spacing:-.05em;
  font-weight:500;
  display:block
}
.stat small {
  display:block;
  color:var(--muted);
  font:10px 'DM Mono',monospace;
  letter-spacing:.12em;
  margin-top:3px
}
.stat-sep {
  height:34px;
  width:1px;
  background:var(--line)
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  min-height:620px;
  background:var(--white);
  border:1px solid #e2e2d8;
  border-radius:8px;
  box-shadow:var(--shadow);
  overflow:hidden
}
.map-column {
  min-width:0;
  min-height:620px;
  position:relative;
  background:#e7eadf
}
.map-head {
  position:absolute;
  z-index:700;
  top:18px;
  left:19px;
  display:flex;
  align-items:center;
  gap:11px;
  pointer-events:none
}
.map-head .caption {
  font:500 10px 'DM Mono',monospace;
  letter-spacing:.1em;
  color:#40574b;
  background:#fffef0d9;
  padding:6px 8px;
  border-radius:3px
}
.map-head .rule {
  display:none
}
.map-legend {
  position:absolute;
  z-index:700;
  top:19px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:7px;
  color:#465c4d;
  font-size:10px;
  background:#fffef0db;
  padding:7px 10px;
  border-radius:3px;
  pointer-events:none;
  white-space:nowrap
}
.legend-dot {
  width:9px;
  height:9px;
  background:var(--orange);
  border-radius:50%;
  box-shadow:0 0 0 3px #d7613d25
}
.leaflet-map {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-height:620px;
  background:#e5e7df
}
.map-hint {
  position:absolute;
  left:50%;
  top:57px;
  transform:translateX(-50%);
  background:var(--ink);
  color:#fffef9;
  padding:9px 13px;
  border-radius:4px;
  font-size:11px;
  white-space:nowrap;
  z-index:700;
  box-shadow:0 5px 18px #20392f25;
  display:none;
  pointer-events:none
}
.map-column.adding .map-hint {
  display:block
}
.map-footer {
  position:absolute;
  bottom:12px;
  left:14px;
  z-index:700;
  display:flex;
  gap:9px;
  align-items:center;
  color:#54675a;
  background:#fffef0dc;
  border-radius:3px;
  padding:6px 8px;
  font:9px 'DM Mono',monospace;
  letter-spacing:.04em;
  pointer-events:none
}
.map-status {
  position:absolute;
  top:58px;
  left:13px;
  z-index:700;
  border-radius:3px;
  padding:6px 8px;
  font:9px 'DM Mono',monospace;
  background:#fffef0e0;
  color:#54675a;
  pointer-events:none
}
.map-status.error {
  color:#a6422b
}
.leaflet-container {
  font-family:'DM Sans','Yu Gothic UI',sans-serif
}
.leaflet-control-layers {
  border:1px solid #d6dbd0!important;
  border-radius:5px!important;
  box-shadow:0 3px 14px #263b2e20!important
}
.leaflet-control-layers-expanded {
  font-size:11px;
  color:#354c3f
}
.leaflet-control-zoom a {
  color:#40574b!important
}
.leaflet-control-attribution {
  font:9px/1.4 'DM Sans',sans-serif!important;
  background:#fffef0d9!important;
  color:#3e5145!important
}
.leaflet-control-attribution a {
  color:#405f50!important
}
.visited-pin {
  width:26px;
  height:26px;
  border:2px solid #fffef8;
  border-radius:50%;
  background:var(--orange);
  display:grid;
  place-items:center;
  box-shadow:0 2px 7px #1f302f77;
  transition:transform .15s
}
.visited-pin:after {
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fffef8;
  box-shadow:0 0 0 1px #263b2e35
}
.visited-pin.selected {
  transform:scale(1.2);
  background:#b84428;
  box-shadow:0 0 0 5px #d7613d3b,0 2px 7px #1f302f77
}
.leaflet-popup-content-wrapper {
  border-radius:6px!important
}
.popup-title {
  font:600 13px 'Yu Gothic UI',sans-serif;
  color:#20392f;
  margin-bottom:3px
}
.popup-meta {
  font:10px 'DM Mono',monospace;
  color:#738177
}
.popup-note {
  font-size:11px;
  color:#56655a;
  margin-top:5px;
  max-width:220px
}
.side {
  border-left:1px solid #e7e7df;
  padding:27px 22px 20px;
  display:flex;
  flex-direction:column;
  min-width:0
}
.side-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px
}
.side-title {
  font-size:14px;
  font-weight:600
}
.side-count {
  font:10px 'DM Mono',monospace;
  color:#8a9388
}
.memory-caption {
  font-size:11px;
  color:#849087;
  margin-top:-12px;
  margin-bottom:19px
}
.place-list {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column
}
.place-item {
  display:grid;
  grid-template-columns:18px minmax(0,1fr) 34px;
  gap:9px;
  position:relative;
  padding:0 0 17px;
  min-height:67px
}
.place-symbol {
  z-index:1;
  margin:5px 0 0 3px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#ed7652;
  box-shadow:0 0 0 3px #ed76521f
}
.place-item.active .place-symbol {
  box-shadow:0 0 0 4px #ed76523d
}
.place-item.is-daytrip .place-symbol {
  border-radius:3px;
  background:#42aaa3;
  box-shadow:0 0 0 3px #42aaa326
}
.place-item.is-daytrip.active .place-symbol {
  box-shadow:0 0 0 4px #42aaa344
}
.place-main {
  min-width:0;
  padding-top:1px;
  cursor:pointer
}
.place-city {
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.place-meta {
  font:9px 'DM Mono',monospace;
  color:#929b91;
  margin-top:4px
}
.place-note {
  font-size:10px;
  line-height:1.5;
  color:#7f8980;
  margin-top:5px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical
}
.item-tools {
  display:flex;
  flex-direction:row;
  align-items:start;
  justify-content:end;
  gap:3px;
  opacity:.65
}
.item-tools button {
  border:0;
  background:transparent;
  color:#788276;
  padding:1px 4px;
  font-size:10px;
  line-height:1.3
}
.item-tools button:hover {
  color:var(--orange)
}
.item-tools button:disabled {
  opacity:.3;
  cursor:default
}
.empty {
  color:#849087;
  font-size:11px;
  line-height:1.7;
  padding:15px 0
}
.side-spacer {
  flex:1;
  min-height:18px
}
.add-place {
  width:100%;
  text-align:left;
  padding:11px 12px;
  background:transparent;
  border:1px dashed #b8c2b6;
  border-radius:5px;
  color:#526c59;
  font-size:11px
}
.add-place:hover {
  background:#f4f6ef;
  border-color:#7e9980
}
.add-place b {
  font-size:16px;
  font-weight:400;
  margin-right:8px;
  vertical-align:-1px
}
.side-note {
  font-size:9px;
  line-height:1.6;
  color:#929b91;
  margin:12px 0 0
}
.credit {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#a3a79d;
  font:9px 'DM Mono',monospace;
  letter-spacing:.06em;
  padding:13px 2px 0
}
.modal-backdrop {
  position:fixed;
  inset:0;
  background:#1c2b2388;
  z-index:1100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px
}
.modal-backdrop.open {
  display:flex
}
.modal {
  width:min(400px,100%);
  background:var(--white);
  border-radius:8px;
  padding:23px;
  box-shadow:0 25px 80px #14241c55
}
.modal-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px
}
.modal-head h2 {
  font-size:17px;
  margin:0
}
.close {
  border:0;
  background:transparent;
  color:#778078;
  font-size:20px;
  line-height:1
}
.field {
  display:block;
  margin:12px 0
}
.field span {
  display:block;
  color:#778078;
  font:10px 'DM Mono',monospace;
  letter-spacing:.08em;
  margin:0 0 6px
}
.field input,.field textarea {
  width:100%;
  border:1px solid #dfe3d9;
  border-radius:4px;
  padding:10px;
  color:var(--ink);
  background:#fffefa;
  font-size:12px;
  outline:0
}
.field input:focus,.field textarea:focus {
  border-color:#809782
}
.field textarea {
  resize:vertical;
  min-height:68px
}
.coords {
  color:#939b91;
  font:9px 'DM Mono',monospace;
  margin-top:3px
}
.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:17px
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,12px);
  background:var(--ink);
  color:white;
  padding:10px 15px;
  border-radius:4px;
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:1200
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
@media(max-width:900px) {
  .page {
    padding:23px 22px
  }
  .workspace {
    grid-template-columns:minmax(0,1fr) 265px
  }
  .map-column,.leaflet-map {
    min-height:590px
  }
}
@media(max-width:680px) {
  .page {
    padding:17px 13px
  }
  .topline {
    margin-bottom:21px
  }
  .top-actions .quiet-button {
    display:none
  }
  .intro {
    align-items:flex-start
  }
  .intro h1 {
    font-size:32px
  }
  .intro-copy {
    font-size:10px
  }
  .stats {
    gap:11px;
    padding-top:4px
  }
  .stat strong {
    font-size:20px
  }
  .stat small {
    font-size:8px
  }
  .workspace {
    display:flex;
    flex-direction:column;
    min-height:0
  }
  .map-column {
    height:430px;
    min-height:430px;
    flex:none;
    border-bottom:1px solid #e7e7df
  }
  .leaflet-map {
    min-height:430px
  }
  .side {
    border-left:0;
    padding:18px
  }
  .place-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:12px
  }
  .place-item {
    min-height:61px
  }
  .place-item:not(:last-child):before {
    display:none
  }
  .side-spacer {
    display:none
  }
  .side-note {
    margin-top:8px
  }
  .map-head {
    top:12px;
    left:10px
  }
  .map-head .caption {
    font-size:9px
  }
  .map-legend {
    font-size:9px;
    top:12px;
    left:auto;
    right:10px;
    transform:none;
    padding:6px 8px
  }
  .map-hint {
    top:48px;
    font-size:10px
  }
  .map-status {
    top:49px;
    left:10px
  }
  .leaflet-control-layers {
    max-width:175px
  }
  .leaflet-control-layers-expanded {
    padding:7px 9px!important
  }
  .leaflet-bottom.leaflet-right {
    bottom:0
  }
  .leaflet-control-attribution {
    font-size:8px!important
  }
  .map-footer {
    display:none
  }
}

/* Original stylesheet 2 */
.province-tag {
  display:block;
  width:max-content;
  padding:1px 3px;
  border:1px solid #f5f2e9a6;
  border-radius:2px;
  background:#f8f6edc9;
  color:#394b3e;
  font:600 9px/1.25 'Yu Gothic UI',sans-serif;
  white-space:nowrap;
  text-shadow:0 1px #fff9
}
.leaflet-marker-icon.province-marker {
  pointer-events:auto!important;
  cursor:default!important
}
.leaflet-tooltip.visited-tooltip {
  background:#fffef0e8;
  border:1px solid #e1ddcf;
  border-radius:3px;
  color:#20392f;
  box-shadow:0 2px 6px #20392f22;
  font:600 10px 'Yu Gothic UI',sans-serif;
  padding:2px 5px;
  white-space:nowrap
}
.leaflet-tooltip.visited-tooltip:before {
  border-right-color:#e1ddcf
}
.leaflet-tooltip.railway-station-tooltip {
  width:max-content;
  max-width:min(320px,calc(100vw - 32px));
  padding:6px 9px;
  border:1px solid #f0c65f;
  border-radius:7px;
  background:#101923ed;
  color:#f4f1e9;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
  text-align:center;
  box-shadow:0 5px 20px #0008
}
.leaflet-tooltip.railway-station-focus-tooltip {
  border-color:#fff2a6;
  background:#2c2819f5;
  box-shadow:0 0 0 3px #ffd64a66,0 5px 22px #000b;
  color:#fff8d5
}
.leaflet-tooltip.railway-station-tooltip.leaflet-tooltip-top:before {
  border-top-color:#f0c65f
}
.leaflet-tooltip.railway-station-tooltip.leaflet-tooltip-bottom:before {
  border-bottom-color:#f0c65f
}
.leaflet-marker-icon.railway-station-cluster-icon {
  display:grid!important;
  place-items:center;
  width:38px!important;
  height:38px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  cursor:pointer!important
}
.railway-station-cluster-count {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:2px solid #fff1bd;
  border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#ff826e,#d83f36 72%);
  color:#fff;
  font:800 12px/1 'DM Sans',sans-serif;
  box-shadow:0 0 0 3px #f04e3544,0 2px 8px #000a;
  transition:transform .14s
}
.railway-station-cluster-icon-overview .railway-station-cluster-count {
  box-sizing:border-box;
  width:24px;
  height:24px;
  border-width:1.5px;
  font-size:10px;
  box-shadow:0 0 0 2px #f04e3533,0 1px 5px #0009
}
.railway-station-cluster-icon-focused .railway-station-cluster-count {
  border-color:#fff4a8;
  background:radial-gradient(circle at 35% 28%,#fff184,#edaa31 72%);
  color:#211b11;
  box-shadow:0 0 0 5px #ffd64a77,0 0 20px 7px #ffd64a99,0 2px 8px #000a
}
.railway-station-cluster-icon:hover .railway-station-cluster-count {
  transform:scale(1.12)
}
.railway-station-cluster-picker {
  position:absolute;
  z-index:1700;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  box-sizing:border-box;
  width:min(320px,calc(100% - 16px));
  max-height:min(42vh,340px);
  margin:0;
  padding:9px;
  border:1px solid #f0c65f;
  border-radius:8px;
  background:linear-gradient(145deg,#292719,#17232e 76%);
  box-shadow:0 0 0 2px #f0c65f22,0 10px 28px #0008
}
@media(max-width:680px) {
  .railway-station-cluster-picker {
    max-height:min(40vh,260px)
  }
}
.railway-station-cluster-picker[hidden] {
  display:none!important
}
.railway-station-cluster-heading-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.railway-station-cluster-heading {
  margin:0;
  color:#fff1bd;
  font-size:12px;
  font-weight:800
}
.railway-station-cluster-close {
  width:30px;
  height:30px;
  border:1px solid #576875;
  border-radius:6px;
  background:#101923;
  color:#dce4e8;
  font-size:18px;
  line-height:1
}
.railway-station-cluster-list {
  display:grid;
  gap:5px;
  min-height:0;
  overflow:auto;
  padding-right:3px;
  overscroll-behavior:contain
}
.railway-station-cluster-option {
  display:flex;
  width:100%;
  min-height:42px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  padding:6px 8px;
  border:1px solid #435563;
  border-radius:6px;
  background:#1a2834;
  color:#f1f4f4;
  text-align:left
}
.railway-station-cluster-option:hover,.railway-station-cluster-option:focus-visible {
  border-color:#f0c65f;
  background:#283744;
  outline:none
}
.railway-station-cluster-option strong {
  font-size:12px;
  line-height:1.25
}
.railway-station-cluster-option span {
  color:#9eafb8;
  font-size:9px;
  line-height:1.3
}
.city-tag {
  display:block;
  width:max-content;
  padding:2px 4px;
  border:1px solid #ffffffa6;
  border-radius:2px;
  background:#fffef0d9;
  color:#31473a;
  font:600 9px/1.25 'Yu Gothic UI',sans-serif;
  white-space:nowrap;
  box-shadow:0 1px 3px #263b2e20
}
.leaflet-marker-icon.city-marker {
  pointer-events:none!important
}
.workspace {
  min-height:760px
}
.map-column,.leaflet-map {
  min-height:760px
}
.map-head {
  left:66px
}
.map-status {
  left:66px;
  top:54px
}
.map-footer {
  bottom:34px
}
@media(max-width:900px) {
  .workspace {
    min-height:620px
  }
  .map-column,.leaflet-map {
    min-height:620px
  }
}
@media(max-width:680px) {
  .workspace {
    min-height:0
  }
  .map-column {
    height:430px;
    min-height:430px
  }
  .leaflet-map {
    min-height:430px
  }
  .map-head {
    left:60px;
    top:12px
  }
  .map-status {
    left:60px;
    top:48px
  }
}
.map-hint {
  bottom:auto
}
@media(max-width:680px) {
  .map-legend {
    top:51px
  }
  .map-hint {
    top:92px
  }
}

/* Original stylesheet 3 */
:root {
  --orange:#ed7652;
  --paper:#11181c
}
html,body {
  width:100%;
  height:100%;
  margin:0;
  overflow:hidden
}
body {
  font-family:'DM Sans','Yu Gothic UI',sans-serif
}
.page {
  position:relative;
  width:100vw;
  height:100%;
  height:100dvh;
  max-width:none;
  margin:0;
  padding:0;
  overflow:hidden
}
.workspace {
  position:fixed;
  inset:0;
  z-index:1;
  display:block;
  min-height:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden
}
.map-column {
  position:absolute;
  inset:0;
  min-height:0;
  background:#11181c
}
.map-column {
  height:100%!important
}
.leaflet-map {
  inset:0;
  width:100%;
  height:100%;
  min-height:0
}
.topline,.intro,.credit {
  position:fixed;
  z-index:810
}
.topline {
  top:14px;
  left:18px;
  right:18px;
  margin:0;
  pointer-events:none
}
.brand {
  pointer-events:auto;
  border:1px solid #e2e2d8;
  background:#fffef0e8;
  border-radius:24px;
  padding:5px 12px 5px 6px;
  box-shadow:0 3px 16px #263b2e14;
  backdrop-filter:blur(12px)
}
.brand-mark {
  background:#fffef9
}
.top-actions {
  pointer-events:auto;
  gap:7px
}
.quiet-button,.solid-button {
  background:#fffef0e8;
  border-color:#dcded3;
  backdrop-filter:blur(12px);
  box-shadow:0 3px 16px #263b2e14
}
.quiet-button:hover {
  background:#fffef9
}
.solid-button {
  background:var(--ink);
  color:#fffef9
}
.intro {
  display:block;
  top:73px;
  left:18px;
  width:340px;
  margin:0;
  padding:18px 20px;
  background:#fffef0ed;
  border:1px solid #e2e2d8;
  border-radius:8px;
  box-shadow:0 8px 28px #20392f1b;
  backdrop-filter:blur(14px)
}
.eyebrow {
  font-size:9px;
  margin-bottom:8px;
  letter-spacing:.12em
}
.intro h1,.intro h1 span,.side-title,.place-city,.popup-title,.modal-head h2 {
  font-family:'Yu Gothic UI',sans-serif;
  font-weight:500
}
.intro h1 {
  font-size:29px;
  line-height:1.25;
  letter-spacing:.01em
}
.intro h1 span {
  color:var(--green)
}
.intro-copy {
  font-size:11px;
  line-height:1.8;
  margin-top:7px
}
.stats {
  justify-content:flex-start;
  gap:13px;
  margin-top:14px;
  padding:0
}
.stat strong {
  font-family:'DM Sans',sans-serif;
  font-size:21px
}
.stat small {
  font-size:9px
}
.workspace .side {
  position:absolute;
  z-index:820;
  top:74px;
  right:18px;
  bottom:18px;
  width:318px;
  max-width:calc(100vw - 36px);
  overflow-y:auto;
  border:1px solid #e2e2d8;
  border-radius:8px;
  background:#fffef0ed;
  box-shadow:0 8px 28px #20392f1b;
  backdrop-filter:blur(14px);
  padding:21px 19px 16px
}
.side-title {
  font-size:17px
}
.place-city {
  font-size:14px
}
.place-note {
  font-family:'DM Sans','Yu Gothic UI',sans-serif
}
.map-head,.map-footer {
  display:none
}
.map-legend {
  top:18px;
  z-index:700
}
.map-status {
  top:352px;
  left:18px
}
.map-hint {
  top:72px
}
.credit {
  display:none
}
.leaflet-top.leaflet-left {
  top:272px;
  left:18px
}
.leaflet-top.leaflet-right {
  top:62px;
  right:350px
}
.leaflet-bottom.leaflet-left {
  left:16px;
  bottom:10px
}
.leaflet-control-attribution {
  background:#fffef0e8!important
}
.leaflet-control-zoom,.leaflet-control-layers {
  box-shadow:0 3px 14px #263b2e20!important
}
.province-tag,.city-tag {
  background:#fffdf3f5;
  color:#18231e;
  border-color:#fff;
  box-shadow:0 1px 6px #07101499;
  text-shadow:none
}
.map-credit {
  border-top:1px solid #dcded3;
  padding-top:9px;
  margin-top:12px;
  color:#59675f;
  font:8px/1.6 'DM Sans','Yu Gothic UI',sans-serif
}
.map-credit .leaflet-control-attribution {
  float:none!important;
  margin:0!important;
  background:transparent!important;
  font:inherit!important;
  line-height:1.6!important
}
.map-credit .leaflet-control-attribution a {
  color:#405f50!important
}
.map-legend {
  gap:10px;
  max-width:calc(100vw - 24px);
  flex-wrap:wrap;
  color:#354353
}
.map-legend>span {
  display:inline-flex;
  align-items:center;
  gap:5px
}
.legend-area {
  width:10px;
  height:10px;
  display:inline-block;
  border:1px solid #a34d35;
  background:#ed7652a8;
  border-radius:2px
}
.province-tag.municipality-tag {
  display:flex;
  align-items:center;
  gap:3px;
  padding:2px 5px;
  border:1px solid #ffd28e;
  border-radius:4px;
  background:#172c38f2;
  color:#fff4d9;
  box-shadow:0 1px 7px #07101499
}
.province-tag .admin-type {
  color:#ffd28e;
  font:600 8px/1 'DM Sans','Yu Gothic UI',sans-serif;
  letter-spacing:.02em
}
.rank-marker {
  background:transparent;
  border:0
}
.city-rank-tag {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:2px 4px;
  border:1px solid #b6cad0;
  border-radius:4px;
  background:#16232cf2;
  color:#f6f8f4;
  font:600 9px/1.15 'Yu Gothic UI',sans-serif;
  white-space:nowrap;
  box-shadow:0 1px 7px #07101499
}
.city-rank-tag b {
  padding:2px 3px;
  border-radius:3px;
  font:700 8px/1 'DM Sans','Yu Gothic UI',sans-serif
}
.city-rank-tag.tier-1 {
  border-color:#e7c45e;
  background:linear-gradient(120deg,#4d171b,#24171a);
  color:#fff0bd;
  box-shadow:0 1px 7px #071014bb,0 0 7px #d7ad4b66
}
.city-rank-tag.tier-1 b {
  border:1px solid #f4dc8f;
  background:linear-gradient(135deg,#c4932e,#ffeaa0 48%,#ad7419);
  color:#571b22;
  text-shadow:0 1px #fff3c5
}
.city-rank-tag.tier-new {
  border-color:#b786ed;
  background:#271c36;
  color:#f0dfff
}
.city-rank-tag.tier-new b {
  background:#7544a5;
  color:#fff
}
.city-rank-tag.tier-2 {
  border-color:#4ab59a;
  background:#15312e;
  color:#d4fff0
}
.city-rank-tag.tier-2 b {
  background:#26745e;
  color:#fff
}
.city-rank-tag.tier-3 {
  border-color:#66a4ed;
  background:#17283f;
  color:#dbeaff
}
.city-rank-tag.tier-3 b {
  background:#356da8;
  color:#fff
}
.city-rank-tag.tier-4 {
  border-color:#f0a263;
  background:#38251c;
  color:#ffe0c2
}
.city-rank-tag.tier-4 b {
  background:#a95d2a;
  color:#fff
}
.city-rank-tag.tier-5 {
  border-color:#91a4b8;
  background:#252c35;
  color:#e2eaf1
}
.city-rank-tag.tier-5 b {
  background:#536b7a;
  color:#fff
}
.city-rank-tag.tier-unranked {
  border-color:#d1cdbd;
  border-style:dashed;
  background:#292a27;
  color:#f0eee4
}
.city-rank-tag.tier-unranked b {
  background:#d7d2c0;
  color:#34363a
}
.visited-tooltip .rank-chip {
  display:inline-block;
  margin-right:4px;
  padding:1px 3px;
  border-radius:2px;
  background:#9f2936;
  color:#fff0bd;
  font:700 8px 'DM Sans',sans-serif
}
.visited-tooltip .rank-chip.tier-new {
  background:#7544a5
}
.visited-tooltip .rank-chip.tier-2 {
  background:#26745e
}
.visited-tooltip .rank-chip.tier-3 {
  background:#356da8
}
.visited-tooltip .rank-chip.tier-4 {
  background:#a95d2a
}
.visited-tooltip .rank-chip.tier-5 {
  background:#536b7a
}
.visited-tooltip .rank-chip.tier-unranked {
  background:#d7d2c0;
  color:#34363a
}
.boundary-credit {
  margin-bottom:6px;
  color:#59675f
}
.boundary-credit a {
  color:#405f50
}
.map-fill-control {
  min-width:176px;
  margin:0 0 6px;
  padding:2px 0 9px;
  border-bottom:1px solid #dce1db;
  color:#33483d
}
.map-fill-control>label {
  display:block;
  margin:0 0 5px;
  font-size:10px;
  font-weight:600
}
.map-fill-control select {
  width:100%;
  padding:5px 7px;
  border:1px solid #cbd3cb;
  border-radius:4px;
  background:#fffef9;
  color:#263d32;
  font:11px 'DM Sans','Yu Gothic UI',sans-serif
}
.map-fill-control select:focus-visible {
  outline:2px solid #4e8c84;
  outline-offset:1px
}
.map-fill-status {
  margin-top:5px;
  color:#728076;
  font-size:9px;
  line-height:1.4
}
.map-fill-status.error {
  color:#ae4f36
}
.leaflet-control-layers-expanded .leaflet-control-layers-overlays label {
  display:flex;
  align-items:flex-start;
  gap:5px;
  margin:5px 0;
  line-height:1.35
}
.leaflet-control-layers-expanded .leaflet-control-layers-overlays input {
  flex:none;
  margin:1px 0 0
}
@media(max-width:900px) {
  .intro {
    width:270px
  }
  .workspace .side {
    right:12px;
    width:292px
  }
  .leaflet-top.leaflet-right {
    right:316px
  }
}
@media(max-width:680px) {
  .topline {
    top:8px;
    left:8px;
    right:8px;
    align-items:center
  }
  .brand {
    gap:7px;
    padding:4px 8px 4px 4px;
    font-size:8px;
    letter-spacing:.1em
  }
  .brand-mark {
    width:24px;
    height:24px;
    font-size:12px
  }
  .top-actions {
    gap:4px
  }
  .quiet-button,.solid-button {
    padding:7px 8px;
    font-size:9px
  }
  .intro {
    top:59px;
    left:8px;
    width:min(264px,calc(100vw - 16px));
    padding:13px 14px
  }
  .eyebrow {
    font-size:8px;
    margin-bottom:5px
  }
  .intro h1 {
    font-size:23px;
    line-height:1.2
  }
  .intro-copy {
    font-size:10px;
    line-height:1.55;
    margin-top:4px
  }
  .stats {
    gap:10px;
    margin-top:8px
  }
  .stat strong {
    font-size:18px
  }
  .stat small {
    font-size:8px;
    margin-top:1px
  }
  .stat-sep {
    height:25px
  }
  .workspace .side {
    left:8px;
    right:8px;
    top:auto;
    bottom:8px;
    width:auto;
    max-width:none;
    max-height:36dvh;
    padding:12px 13px 10px;
    border-radius:8px
  }
  .side-top {
    margin-bottom:7px
  }
  .side-title {
    font-size:14px
  }
  .side-count {
    font-size:9px
  }
  .memory-caption,.side-spacer,.side-note {
    display:none
  }
  .place-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:10px
  }
  .place-item {
    grid-template-columns:18px minmax(0,1fr) 30px;
    gap:6px;
    min-height:44px;
    padding:0 0 10px
  }
  .place-city {
    font-size:12px
  }
  .place-meta {
    font-size:8px;
    margin-top:1px
  }
  .place-note {
    font-size:9px;
    margin-top:2px;
    -webkit-line-clamp:1
  }
  .item-tools {
    gap:0;
    opacity:.78
  }
  .item-tools button {
    font-size:9px
  }
  .add-place {
    padding:8px 10px;
    font-size:10px
  }
  .map-legend {
    top:229px;
    left:8px;
    right:auto;
    transform:none;
    gap:7px;
    font-size:8px;
    padding:6px 8px
  }
  .map-status {
    top:264px;
    left:8px;
    font-size:8px
  }
  .map-hint {
    top:72px;
    max-width:calc(100vw - 24px);
    font-size:10px
  }
  .leaflet-top.leaflet-left {
    top:296px;
    left:8px
  }
  .leaflet-top.leaflet-right {
    top:51px;
    right:8px
  }
  .leaflet-control-layers {
    max-width:175px
  }
  .leaflet-control-layers-expanded {
    padding:7px 9px!important
  }
  .map-fill-control {
    min-width:0
  }
  .map-fill-control>label {
    font-size:9px
  }
  .map-fill-control select {
    font-size:10px
  }
  .map-fill-status {
    font-size:8px
  }
  .leaflet-bottom.leaflet-left {
    left:8px;
    bottom:calc(36dvh + 8px)
  }
}

/* Original stylesheet 4 */
.share-dialog {
  width:min(530px,100%);
  max-height:calc(100dvh - 32px);
  overflow:auto
}
.share-intro {
  margin:-7px 0 13px;
  color:#637168;
  font-size:11px;
  line-height:1.6
}
.share-dialog .field {
  margin:10px 0
}
#shareUrl {
  min-height:74px;
  max-height:130px;
  resize:vertical;
  overflow-wrap:anywhere;
  font:10px/1.5 'DM Mono',monospace
}
.share-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:9px
}
.share-actions button {
  min-height:34px
}
.share-divider {
  height:1px;
  margin:16px 0 12px;
  background:#e1e4db
}
.share-note {
  margin:10px 0 0;
  color:#78847b;
  font-size:9px;
  line-height:1.6
}
@media(max-width:680px) {
  .top-actions .quiet-button:not(.share-button) {
    display:none
  }
  .top-actions .share-button {
    display:inline-flex;
    padding:7px 9px;
    font-size:9px
  }
  .share-dialog {
    padding:18px
  }
  .share-actions button {
    flex:1
  }
}

/* Original stylesheet 5 */
.railway-route-panel {
  position:absolute;
  z-index:760;
  left:16px;
  bottom:74px;
  transform:none;
  width:min(420px,calc(100vw - 24px));
  max-height:min(68vh,580px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 14px;
  border:1px solid #546878;
  border-radius:12px;
  background:radial-gradient(circle at 100% 0%,#233344aa,transparent 42%),linear-gradient(155deg,#14212eF5,#101923F5 70%);
  color:#e8edf0;
  box-shadow:0 12px 30px #07101488,0 0 0 3px #10192377;
  backdrop-filter:blur(12px);
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.railway-route-panel::before {
  content:"";
  display:block;
  height:3px;
  margin:0 0 10px;
  border-radius:99px;
  background:repeating-linear-gradient(90deg,#ff675b 0 24px,transparent 24px 31px,#ffd15b 31px 55px,transparent 55px 62px)
}
.railway-route-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  color:#dce5e8;
  cursor:grab;
  touch-action:none
}
.railway-route-heading-copy {
  display:flex;
  align-items:center;
  gap:9px;
  flex:1;
  min-width:0;
  white-space:nowrap
}
.railway-route-heading-icon {
  display:grid;
  width:36px;
  height:36px;
  flex:0 0 36px;
  place-items:center;
  border:1px solid #536879;
  border-radius:9px;
  background:#1d2c39;
  font-size:21px
}
.railway-route-heading-text {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-heading:active {
  cursor:grabbing
}
.railway-route-heading strong {
  font-size:15px;
  font-weight:700;
  letter-spacing:.03em
}
.railway-route-reset {
  flex:0 0 auto;
  white-space:nowrap;
  min-height:34px;
  border:1px solid #536474;
  border-radius:7px;
  padding:5px 9px;
  background:#1c2b38;
  color:#dce5e8;
  font-size:10px
}
.railway-route-mode-buttons {
  display:flex;
  gap:7px
}
.railway-route-mode {
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  flex:1;
  min-height:58px;
  column-gap:8px;
  padding:7px 10px;
  border:1px solid #455766;
  border-radius:9px;
  background:linear-gradient(145deg,#1c2a37,#17232e);
  color:#d5dfe4;
  text-align:left;
  transition:transform .15s,background-color .15s,border-color .15s,box-shadow .15s
}
.railway-route-mode:hover {
  transform:translateY(-1px);
  border-color:#8497a1
}
.railway-route-mode:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-mode-emoji {
  grid-row:1/3;
  font-size:23px;
  line-height:1
}
.railway-route-mode-name {
  align-self:end;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em
}
.railway-route-mode-note {
  align-self:start;
  color:#9eacb4;
  font-size:9px;
  letter-spacing:.02em
}
.railway-route-mode[data-railway-mode=highspeed].active {
  border-color:#ff7869;
  background:linear-gradient(145deg,#663635,#41282d);
  color:#fff0e9;
  box-shadow:inset 0 0 0 1px #ff806277,0 4px 14px #f04e3533
}
.railway-route-mode[data-railway-mode=highspeed].active .railway-route-mode-note {
  color:#ffd0c6
}
.railway-route-mode[data-railway-mode=conventional].active {
  border-color:#f0c65f;
  background:linear-gradient(145deg,#594623,#382f26);
  color:#fff4c7;
  box-shadow:inset 0 0 0 1px #f0c65f66,0 4px 14px #d59b3733
}
.railway-route-mode[data-railway-mode=conventional].active .railway-route-mode-note {
  color:#f1dba0
}
.railway-route-stop-picker {
  margin-top:10px;
  padding:9px;
  border:1px solid #3e5361;
  border-radius:10px;
  background:linear-gradient(145deg,#192b38ed,#121d29ed);
  box-shadow:inset 0 1px #ffffff08
}
.railway-route-stop-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin:0 1px 7px;
  color:#e2eaec
}
.railway-route-stop-heading strong {
  font:700 8px 'DM Mono',monospace;
  letter-spacing:.14em;
  color:#74dfcf
}
.railway-route-stops {
  display:grid;
  grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);
  align-items:center;
  gap:6px
}
.railway-route-stop-wrap {
  position:relative;
  min-width:0
}
.railway-route-swap {
  display:grid;
  width:32px;
  height:38px;
  place-items:center;
  border:1px solid #536879;
  border-radius:9px;
  background:#243443;
  color:#f4d45a;
  font-size:20px;
  font-weight:800;
  line-height:1;
  transition:transform .2s,border-color .15s,background-color .15s
}
.railway-route-swap:hover {
  transform:rotate(180deg);
  border-color:#f4d45a;
  background:#39402f
}
.railway-route-swap:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-stop-slot {
  display:flex;
  width:100%;
  min-height:72px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  padding:8px 28px 8px 10px;
  border:1px solid #465866;
  border-radius:8px;
  background:linear-gradient(145deg,#1b2a36,#17232e);
  color:#dce6e9;
  text-align:left;
  transition:background-color .15s,border-color .15s,box-shadow .15s
}
.railway-route-stop-slot:hover {
  border-color:#8498a3
}
.railway-route-stop-slot:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-stop-role {
  font-size:9px;
  font-weight:800;
  letter-spacing:.04em;
  white-space:nowrap
}
.railway-route-stop-name {
  display:block;
  max-width:100%;
  overflow:hidden;
  color:#f4f1e9;
  font-size:11px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-stop-area {
  display:block;
  max-width:100%;
  overflow:hidden;
  color:#9daeb5;
  font-size:8px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-stop-area[hidden] {
  display:none
}
.railway-route-stop-slot[data-stop-role=departure] .railway-route-stop-role {
  color:#73dfcf
}
.railway-route-stop-slot[data-stop-role=via] .railway-route-stop-role {
  color:#d1a8ff
}
.railway-route-stop-slot[data-stop-role=arrival] .railway-route-stop-role {
  color:#ff9284
}
.railway-route-stop-slot.active[data-stop-role=departure] {
  border-color:#73dfcf;
  background:#17352f;
  box-shadow:0 0 0 1px #73dfcf55
}
.railway-route-stop-slot.active[data-stop-role=via] {
  border-color:#c49afa;
  background:#30233c;
  box-shadow:0 0 0 1px #c49afa55
}
.railway-route-stop-slot.active[data-stop-role=arrival] {
  border-color:#ff9284;
  background:#40272a;
  box-shadow:0 0 0 1px #ff928455
}
.railway-route-stop-wrap:has([data-stop-role=departure]) .railway-route-stop-slot {
  border-left:3px solid #49b9a5
}
.railway-route-stop-wrap:has([data-stop-role=arrival]) .railway-route-stop-slot {
  border-left:3px solid #e96759
}
.railway-route-via-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:stretch;
  gap:6px;
  margin-top:7px;
  padding-top:7px;
  border-top:1px dashed #425460
}
.railway-route-via-row .railway-route-stop-slot {
  min-height:52px;
  gap:2px;
  padding-top:6px;
  padding-bottom:6px;
  border-left:3px solid #a47cdb
}
.railway-route-stop-clear {
  position:absolute;
  top:3px;
  right:3px;
  width:22px;
  height:22px;
  border:1px solid #60717b;
  border-radius:6px;
  background:#101923;
  color:#b9c5c9;
  font-size:14px;
  line-height:1
}
.railway-route-stop-clear[hidden] {
  display:none
}
.railway-station-assignment {
  margin:8px 0 0;
  padding:7px 8px;
  border-radius:6px;
  background:#20313b;
  color:#bfe9df;
  font-size:10px;
  font-weight:700
}
.railway-station-assignment[hidden] {
  display:none
}
.railway-route-status {
  margin:9px 1px 0;
  padding:8px 9px;
  border-left:3px solid #61d8c5;
  border-radius:0 7px 7px 0;
  background:#172631;
  color:#bfd0d4;
  font-size:10px;
  line-height:1.5
}
.railway-route-status::before {
  content:"MISSION";
  display:block;
  margin-bottom:2px;
  color:#75ddce;
  font:700 8px 'DM Mono',monospace;
  letter-spacing:.13em
}
.railway-route-result {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:3px 8px;
  margin-top:9px;
  padding:10px;
  border:1px solid #52616a;
  border-radius:9px;
  background:linear-gradient(135deg,#1b2b35,#17232c)
}
.railway-route-result[hidden] {
  display:none
}
.railway-route-review {
  grid-column:1/-1;
  min-width:0;
  display:grid;
  gap:5px;
  margin-top:5px;
  padding:8px 9px;
  border:1px solid #bd9e54;
  border-radius:7px;
  background:#302b20;
  color:#fff0c8;
  overflow-wrap:anywhere
}
.railway-route-review[hidden] {
  display:none
}
.railway-route-review-title {
  font-size:11px;
  line-height:1.4
}
.railway-route-review p {
  margin:0;
  font-size:10px;
  line-height:1.5
}
.railway-route-review-note {
  opacity:.88
}
.railway-route-review-switch {
  min-height:40px;
  min-width:0;
  width:100%;
  padding:6px 8px;
  border:1px solid #d2b76b;
  border-radius:6px;
  background:#ffe59a;
  color:#282217;
  font-family:inherit;
  font-weight:700;
  font-size:11px;
  white-space:normal;
  line-height:1.4
}
.railway-route-kicker {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#84dfce;
  font:700 8px 'DM Mono',monospace;
  letter-spacing:.1em
}
.railway-route-stations {
  overflow:hidden;
  color:#f3f0e8;
  font-size:13px;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-distance {
  color:#ffd66e;
  font-size:20px;
  font-weight:800;
  white-space:nowrap;
  text-shadow:0 0 14px #ffd15b44
}
.railway-route-result small {
  grid-column:1/-1;
  color:#a6b3b8;
  font-size:9px
}
.railway-route-progress,.railway-route-message {
  grid-column:1/-1
}
.railway-route-detail-toggle {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:42px;
  padding:9px 11px;
  border:1px solid #5d746f;
  border-radius:7px;
  background:linear-gradient(110deg,#1a3d3a,#1b2f3b 72%);
  color:#d9fff3;
  font-size:11px;
  font-weight:800;
  text-align:left;
  cursor:pointer
}
.railway-route-detail-toggle[hidden],.railway-route-itinerary[hidden] {
  display:none
}
.railway-route-detail-toggle:hover {
  border-color:#8ee4ce;
  background:linear-gradient(110deg,#20514a,#213e4a 72%)
}
.railway-route-detail-toggle:focus-visible {
  outline:3px solid #ffe26b;
  outline-offset:2px
}
.railway-route-detail-count {
  flex:none;
  color:#ffe071;
  font:700 9px 'DM Mono',monospace
}
.railway-route-itinerary {
  margin:0;
  padding:10px 11px 5px;
  border:1px solid #354e5b;
  border-radius:7px;
  background:#111e29
}
.railway-route-itinerary[hidden] {
  display:none
}
.railway-route-itinerary-heading {
  margin:0 0 8px;
  color:#a9c2c5;
  font-size:10px;
  font-weight:700
}
.railway-route-itinerary-list {
  display:block;
  max-height:min(42vh,390px);
  margin:0;
  padding:0 5px 0 0;
  overflow:auto;
  list-style:none;
  overscroll-behavior:contain;
  scrollbar-color:#536d76 #15232e;
  scrollbar-width:thin
}
.railway-route-itinerary-stop {
  position:relative;
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:0 9px;
  padding:4px 0 0
}
.railway-route-itinerary-row,.railway-route-itinerary-leg {
  grid-column:1/-1
}
.railway-route-itinerary-row {
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:0 9px
}
.railway-route-itinerary-stop:not(:last-child)::before {
  position:absolute;
  top:18px;
  bottom:-5px;
  left:8px;
  border-left:2px solid #3c6565;
  content:""
}
.railway-route-itinerary-stop[data-next-mode="highspeed"]:not(:last-child)::before,.railway-route-itinerary-leg[data-mode="highspeed"] .railway-route-itinerary-rail::before {
  border-left-color:#ff574e
}
.railway-route-itinerary-stop[data-next-mode="conventional"]:not(:last-child)::before,.railway-route-itinerary-leg[data-mode="conventional"] .railway-route-itinerary-rail::before {
  border-left-color:#ffd24a
}
.railway-route-itinerary-stop[data-next-mode="mixed"]:not(:last-child)::before,.railway-route-itinerary-leg[data-mode="mixed"] .railway-route-itinerary-rail::before {
  width:2px;
  border-left:0;
  background:linear-gradient(to bottom,#ff574e 0 50%,#ffd24a 50% 100%)
}
.railway-route-itinerary-dot {
  z-index:1;
  width:12px;
  height:12px;
  margin:2px 0 0 3px;
  border:2px solid #6fe0c6;
  border-radius:50%;
  background:#162c34;
  box-shadow:0 0 8px #50d8bb44
}
.railway-route-itinerary-stop[data-role="departure"] .railway-route-itinerary-dot {
  border-color:#62e7c3;
  background:#1b856e
}
.railway-route-itinerary-stop[data-role="arrival"] .railway-route-itinerary-dot {
  border-color:#ff8878;
  background:#a5413c
}
.railway-route-itinerary-stop[data-role="via"] .railway-route-itinerary-dot {
  border-color:#c79aff;
  background:#69449a
}
.railway-route-itinerary-name {
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:#f0f4ef;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1.5;
  text-align:left;
  overflow-wrap:anywhere;
  cursor:pointer
}
.railway-route-itinerary-name:hover {
  color:#ffe071
}
.railway-route-itinerary-name:focus-visible {
  border-radius:3px;
  outline:2px solid #6fe0c6;
  outline-offset:3px
}
.railway-route-itinerary-role {
  display:inline-block;
  margin-right:5px;
  color:#9ddfd2;
  font-size:9px;
  font-weight:800
}
.railway-route-itinerary-stop[data-role="arrival"] .railway-route-itinerary-role {
  color:#ff9c8d
}
.railway-route-itinerary-stop[data-role="via"] .railway-route-itinerary-role {
  color:#d3b4ff
}
.railway-route-itinerary-area {
  display:block;
  color:#93a7b1;
  font-size:9px;
  font-weight:500
}
.railway-route-itinerary-leg {
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:0 9px;
  min-height:30px;
  align-items:center
}
.railway-route-itinerary-rail {
  position:relative;
  align-self:stretch
}
.railway-route-itinerary-rail::before {
  position:absolute;
  top:0;
  bottom:0;
  left:8px;
  border-left:2px solid #3c6565;
  content:""
}
.railway-route-itinerary-info {
  display:grid;
  justify-items:start;
  gap:3px;
  min-width:0;
  padding:4px 0
}
.railway-route-itinerary-km {
  justify-self:start;
  padding:3px 7px;
  border:1px solid #465c5f;
  border-radius:99px;
  background:#1b3035;
  color:#ffe071;
  font:700 9px 'DM Mono',monospace;
  white-space:nowrap
}
.railway-route-itinerary-km small {
  margin-left:4px;
  color:#aebdc1;
  font:500 9px sans-serif
}
.railway-route-itinerary-lines {
  color:#9eb5ba;
  font-size:9px;
  line-height:1.4;
  overflow-wrap:anywhere
}
.railway-route-itinerary-lines[hidden] {
  display:none
}
.railway-route-progress[hidden],.railway-route-message[hidden] {
  display:none
}
.railway-route-progress {
  padding:8px 9px;
  border:1px solid #4d625e;
  border-radius:7px;
  background:#172b2b;
  color:#c9e9df
}
.railway-route-progress-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  line-height:1.5
}
.railway-route-progress-step {
  flex:none;
  color:#ffd66e;
  font:700 9px 'DM Mono',monospace
}
.railway-route-progress-text {
  min-width:0;
  overflow-wrap:anywhere
}
.railway-route-progress-track {
  height:4px;
  margin-top:7px;
  overflow:hidden;
  border-radius:99px;
  background:#314440
}
.railway-route-progress-track span {
  display:block;
  width:34%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#57bea9,#f4d567,#57bea9);
  box-shadow:0 0 10px #69debe88;
  animation:railway-route-progress-sweep 1.3s ease-in-out infinite alternate
}
.railway-route-message {
  margin:0;
  padding:9px 10px;
  border-left:3px solid #ffd66e;
  border-radius:0 6px 6px 0;
  background:#332d20;
  color:#f0dfaa;
  font-size:10px;
  line-height:1.6
}
@keyframes railway-route-progress-sweep {
  from {
    transform:translateX(-105%)
  }
  to {
    transform:translateX(300%)
  }
}
@media(prefers-reduced-motion:reduce) {
  .railway-route-progress-track span {
    animation:none;
    transform:translateX(0)
  }
}
.railway-station-detail {
  margin-top:9px;
  padding:11px;
  border:1px solid #526575;
  border-radius:7px;
  background:#182431
}
.railway-station-detail[hidden],.railway-route-actions[hidden] {
  display:none
}
.railway-station-detail-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#ffd74a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em
}
.railway-station-detail-close {
  width:36px;
  height:36px;
  border:1px solid #455361;
  border-radius:6px;
  background:#111b27;
  color:#e8edf0;
  font-size:20px;
  line-height:1
}
.railway-station-detail-title {
  margin:2px 0 9px;
  color:#fff;
  font-size:17px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere
}
.railway-station-detail-title small {
  display:block;
  margin-top:3px;
  color:#9eacb4;
  font-size:11px;
  font-weight:400
}
.railway-station-specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:0
}
.railway-station-specs>div {
  min-width:0;
  padding:7px 8px;
  border-radius:5px;
  background:#111c27
}
.railway-station-specs>div:last-child {
  grid-column:1/-1
}
.railway-station-specs dt {
  color:#8f9da6;
  font-size:9px
}
.railway-station-specs dd {
  margin:3px 0 0;
  color:#e7edf0;
  font-size:11px;
  line-height:1.4;
  overflow-wrap:anywhere
}
.railway-station-line-list {
  margin:0;
  padding-left:16px
}
.railway-station-line-list li+li {
  margin-top:3px
}
.railway-station-choose,.railway-route-actions button {
  min-height:42px;
  border:1px solid #f0d34b;
  border-radius:5px;
  background:#f0d34b;
  color:#172330;
  font-size:12px;
  font-weight:700
}
.railway-station-choose {
  width:100%;
  margin-top:9px
}
.railway-route-lines {
  grid-column:1/-1;
  color:#c5d1d7;
  font-size:10px;
  line-height:1.5;
  overflow-wrap:anywhere
}
.railway-route-actions {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:3px
}
.railway-route-actions button {
  border-color:#536474;
  background:#1d2b37;
  color:#edf2f4
}
.railway-route-actions button:first-child {
  border-color:#f0d34b;
  background:#f0d34b;
  color:#172330
}
.railway-route-share-note {
  grid-column:1/-1;
  color:#94a2aa;
  font-size:9px;
  line-height:1.4
}
@keyframes railway-route-flow {
  to {
    stroke-dashoffset:-28
  }
}
.railway-selected-route-halo {
  filter:drop-shadow(0 0 7px #fff4b0) drop-shadow(0 0 15px #f04e35)
}
.railway-selected-route-core {
  stroke-dasharray:18 10;
  animation:railway-route-flow 1.15s linear infinite;
  filter:drop-shadow(0 0 5px #fff4aa) drop-shadow(0 0 9px #ff5e4b)
}
@media(prefers-reduced-motion:reduce) {
  .railway-selected-route-core {
    animation:none
  }
}
@media(max-width:420px) {
  .railway-route-stops {
    grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);
    gap:4px
  }
  .railway-route-stop-picker {
    padding:7px
  }
  .railway-route-stop-slot {
    min-height:62px;
    padding:6px 25px 6px 7px
  }
  .railway-route-via-row .railway-route-stop-slot {
    min-height:48px;
    padding:5px 25px 5px 7px
  }
  .railway-route-swap {
    width:28px;
    height:34px
  }
  .railway-route-stop-role {
    font-size:8px
  }
  .railway-route-stop-name {
    font-size:10px
  }
}
@media(max-width:680px) {
  .railway-route-panel {
    left:9px;
    bottom:52px;
    width:min(390px,calc(100vw - 18px));
    padding:9px 10px
  }
  .railway-route-mode {
    min-height:54px;
    padding:6px 8px
  }
  .railway-route-heading-icon {
    width:33px;
    height:33px;
    flex-basis:33px
  }
}

/* railway-quest-arcade-theme */
/* Compact arcade route console: tactile controls, checkpoint cards, and a clear mission hierarchy. */
.railway-route-panel {
  --quest-ink:#edf5f3;
  --quest-muted:#91a9b2;
  --quest-line:#3a5664;
  --quest-board:#101c29;
  --quest-card:#172838;
  width:min(680px,calc(100vw - 24px));
  max-height:min(70vh,620px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:11px;
  border:1px solid #587281;
  border-radius:13px 5px 13px 5px;
  background:#0d1824;
  color:var(--quest-ink);
  box-shadow:0 12px 32px #06111dcc,0 0 0 3px #142330aa;
  backdrop-filter:blur(10px);
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.railway-route-panel::before {
  content:"";
  display:block;
  height:4px;
  margin:-1px 0 9px;
  border-radius:3px;
  background:repeating-linear-gradient(90deg,#4fd1c2 0 28px,#163c43 28px 34px,#ffd15b 34px 42px,#183243 42px 48px)
}
.railway-route-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 1px 9px;
  padding:1px 2px 9px;
  border-bottom:1px solid #29414f;
  color:var(--quest-ink);
  cursor:grab;
  touch-action:none
}
.railway-route-heading-copy {
  display:flex;
  align-items:center;
  gap:9px;
  flex:1;
  min-width:0;
  white-space:nowrap
}
.railway-route-heading-icon {
  display:grid;
  width:39px;
  height:39px;
  flex:0 0 39px;
  place-items:center;
  border:1px solid #597485;
  border-radius:11px 4px 11px 4px;
  background:#1b3040;
  font-size:23px;
  box-shadow:inset 0 -3px #10212d
}
.railway-route-heading-text {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-heading:active {
  cursor:grabbing
}
.railway-route-heading strong {
  font-size:16px;
  font-weight:800;
  letter-spacing:.04em
}
.railway-route-close {
  display:grid;
  width:32px;
  height:32px;
  flex:0 0 32px;
  place-items:center;
  border:1px solid #526b76;
  border-radius:7px;
  background:#142330;
  color:#c6d4d8;
  font-size:20px;
  line-height:1;
  transition:border-color .15s,color .15s,background-color .15s
}
.railway-route-close:hover {
  border-color:#ff9284;
  background:#3d282e;
  color:#fff0e9
}
.railway-route-dismiss {
  display:grid;
  width:32px;
  height:32px;
  flex:0 0 32px;
  place-items:center;
  border:1px solid #526b76;
  border-radius:7px;
  background:#142330;
  color:#c6d4d8;
  font-size:20px;
  line-height:1;
  transition:border-color .15s,color .15s,background-color .15s
}
.railway-route-dismiss:hover {
  border-color:#ff9284;
  background:#3d282e;
  color:#fff0e9
}
.railway-route-dismiss:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-reopen {
  position:absolute;
  z-index:840;
  left:16px;
  bottom:74px;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 11px;
  border:1px solid #587281;
  border-radius:8px 4px 8px 4px;
  background:#0d1824;
  color:#eaf2ef;
  font:800 11px 'DM Sans','Yu Gothic UI',sans-serif;
  box-shadow:0 8px 20px #06111dcc
}
.railway-route-reopen:hover {
  border-color:#69d9c8;
  color:#8ce9da
}
.railway-route-panel[hidden],.railway-route-reopen[hidden] {
  display:none!important
}
.railway-route-reset {
  flex:0 0 auto;
  white-space:nowrap;
  min-height:36px;
  border:1px solid #465f6d;
  border-radius:6px;
  padding:5px 10px;
  background:#1a2c39;
  color:#d9e6e7;
  font-size:10px;
  font-weight:700
}
.railway-route-reset:hover {
  border-color:#ffd15b;
  color:#ffe18b
}
.railway-route-mode-buttons {
  display:flex;
  gap:8px
}
.railway-route-mode {
  position:relative;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  flex:1;
  min-height:62px;
  column-gap:8px;
  padding:7px 9px;
  border:1px solid #3c5664;
  border-radius:9px 4px 9px 4px;
  background:#152533;
  color:#d9e4e5;
  text-align:left;
  transition:transform .16s,border-color .16s,background-color .16s,box-shadow .16s
}
.railway-route-mode::before {
  content:none
}
.railway-route-mode:hover {
  transform:translateY(-2px);
  border-color:#9ab5bb
}
.railway-route-mode:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-mode-emoji {
  grid-column:1;
  grid-row:1/3;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border:1px solid #405d6b;
  border-radius:9px;
  background:#203849;
  font-size:23px;
  line-height:1
}
.railway-route-mode-name {
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  font-size:13px;
  font-weight:900;
  letter-spacing:.04em
}
.railway-route-mode-note {
  display:none
}
.railway-route-mode[data-railway-mode=highspeed].active {
  border-color:#ff7a69;
  background:#382b35;
  color:#fff0e9;
  box-shadow:inset 0 0 0 1px #ff806244,0 4px 15px #f04e3522
}
.railway-route-mode[data-railway-mode=highspeed].active::before {
  color:#ff9c8c
}
.railway-route-mode[data-railway-mode=highspeed].active .railway-route-mode-emoji {
  border-color:#ff8d79;
  background:#54323a
}
.railway-route-mode[data-railway-mode=conventional].active {
  border-color:#f0c65f;
  background:#352f25;
  color:#fff4c7;
  box-shadow:inset 0 0 0 1px #f0c65f33,0 4px 15px #d59b3722
}
.railway-route-mode[data-railway-mode=conventional].active::before {
  color:#f0c65f
}
.railway-route-mode[data-railway-mode=conventional].active .railway-route-mode-emoji {
  border-color:#d7b85e;
  background:#4a3b28
}
.railway-route-mode {
  min-height:72px;
  padding:9px 11px;
  border-width:1.5px;
  cursor:pointer;
  overflow:hidden;
  background:linear-gradient(120deg,#ffffff16,transparent 45%),linear-gradient(145deg,#243746,#172735);
  box-shadow:inset 0 1px 0 #ffffff2b,0 5px 12px #07131d88;
  transition:transform .18s,filter .18s,border-color .18s,box-shadow .18s
}
.railway-route-mode[data-railway-mode=highspeed] {
  border-color:#f2a184;
  background:linear-gradient(120deg,#ffffff24,transparent 52%),linear-gradient(140deg,#a94d57,#a64859 54%,#743752);
  color:#fff4e9;
  box-shadow:inset 0 1px 0 #fff7,0 6px 18px #dc54534a
}
.railway-route-mode[data-railway-mode=conventional] {
  border-color:#72d8ca;
  background:linear-gradient(120deg,#ffffff24,transparent 52%),linear-gradient(140deg,#278f86,#237f91 54%,#315f91);
  color:#effffc;
  box-shadow:inset 0 1px 0 #fff7,0 6px 18px #27a89b40
}
.railway-route-mode:hover {
  transform:translateY(-3px) scale(1.01);
  filter:brightness(1.12);
  box-shadow:inset 0 1px 0 #fff9,0 10px 24px #07131d99
}
.railway-route-mode:active {
  transform:translateY(1px) scale(.985);
  filter:brightness(.96);
  box-shadow:inset 0 3px 8px #08141b77,0 2px 5px #07131d88
}
.railway-route-mode[data-railway-mode=highspeed].active {
  transform:translateY(-2px);
  border-color:#ffe7a0;
  background:linear-gradient(120deg,#ffffff38,transparent 55%),linear-gradient(140deg,#ffc85d,#ff9050 53%,#ed5a68);
  color:#fffaf0;
  box-shadow:inset 0 1px 0 #fff,0 0 0 2px #ffc65b40,0 8px 24px #f05d4d77
}
.railway-route-mode[data-railway-mode=conventional].active {
  transform:translateY(-2px);
  border-color:#c3fff0;
  background:linear-gradient(120deg,#ffffff38,transparent 55%),linear-gradient(140deg,#62e0bd,#3ebbb3 53%,#3988b6);
  color:#f5fffc;
  box-shadow:inset 0 1px 0 #fff,0 0 0 2px #70e5d040,0 8px 24px #2bc6b077
}
.railway-route-mode[data-railway-mode=highspeed] .railway-route-mode-emoji {
  border-color:#ffc1a6;
  background:linear-gradient(145deg,#ffe1b1,#ff9a72);
  box-shadow:inset 0 1px 0 #fff9,0 3px 8px #551e3044
}
.railway-route-mode[data-railway-mode=conventional] .railway-route-mode-emoji {
  border-color:#a5fff0;
  background:linear-gradient(145deg,#a6ffdf,#53cfdb);
  box-shadow:inset 0 1px 0 #fff9,0 3px 8px #123b5944
}
.railway-route-mode[data-railway-mode=highspeed].active .railway-route-mode-emoji {
  border-color:#fff0bd;
  background:linear-gradient(145deg,#fff0bd,#ffad7d)
}
.railway-route-mode[data-railway-mode=conventional].active .railway-route-mode-emoji {
  border-color:#e4fff3;
  background:linear-gradient(145deg,#d1ffe8,#7be6e0)
}
.railway-route-mode-buttons {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px
}
.railway-route-mode {
  grid-template-columns:30px minmax(0,1fr);
  column-gap:6px;
  padding-inline:8px
}
.railway-route-mode-name {
  min-width:0;
  font-size:8px;
  letter-spacing:0;
  white-space:nowrap
}
@media(max-width:420px) {
  .railway-route-mode {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:1fr;
    min-height:42px;
    padding:4px 2px
  }
  .railway-route-mode-emoji {
    display:none
  }
  .railway-route-mode-name {
    grid-column:1;
    grid-row:1;
    align-self:center;
    text-align:center;
    white-space:normal;
    font-size:clamp(7px,2vw,9px);
    line-height:1.15
  }
}
.railway-route-mode[data-railway-mode=mixed] {
  border-color:#b69aff;
  background:linear-gradient(120deg,#ffffff24,transparent 52%),linear-gradient(140deg,#7250a5,#514d9f 54%,#277b86);
  color:#f8f2ff;
  box-shadow:inset 0 1px 0 #fff7,0 6px 18px #8b5cf644
}
.railway-route-mode[data-railway-mode=mixed] .railway-route-mode-emoji {
  border-color:#dfd0ff;
  background:linear-gradient(145deg,#f1dcff,#99e5e8);
  box-shadow:inset 0 1px 0 #fff9,0 3px 8px #31204a66
}
.railway-route-mode[data-railway-mode=mixed] .railway-route-mode-name {
  grid-row:1;
  align-self:center
}
.railway-route-mode[data-railway-mode=mixed].active {
  transform:translateY(-2px);
  border-color:#fff0a8;
  background:linear-gradient(120deg,#ffffff38,transparent 55%),linear-gradient(140deg,#d796ff,#8168de 53%,#39b7ac);
  color:#fffaff;
  box-shadow:inset 0 1px 0 #fff,0 0 0 2px #c59aff55,0 8px 24px #865de888
}
.railway-route-mode[data-railway-mode=mixed].active .railway-route-mode-emoji {
  border-color:#fff0bd;
  background:linear-gradient(145deg,#fff0bd,#c7a4ff)
}
.railway-route-heading {
  flex-wrap:nowrap;
  gap:8px
}
.railway-route-heading-copy {
  flex:0 1 auto;
  min-width:0;
  gap:7px
}
.railway-route-mode-buttons {
  flex:1 1 0;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px
}
.railway-route-mode {
  min-width:0;
  grid-template-columns:24px minmax(0,1fr);
  grid-template-rows:1fr;
  min-height:44px;
  column-gap:5px;
  padding:4px 5px
}
.railway-route-mode-emoji {
  grid-column:1;
  grid-row:1;
  width:24px;
  height:24px;
  font-size:16px
}
.railway-route-mode-name {
  grid-column:2;
  grid-row:1;
  align-self:center;
  font-size:clamp(8px,1.1vw,11px);
  white-space:nowrap
}
.railway-route-mode-note {
  display:none
}
@media(max-width:680px) {
  .railway-route-heading {
    gap:5px
  }
  .railway-route-heading-copy {
    gap:5px
  }
  .railway-route-heading-icon {
    width:29px;
    height:29px;
    flex-basis:29px;
    font-size:18px
  }
  .railway-route-heading strong {
    font-size:12px
  }
  .railway-route-mode-buttons {
    gap:3px
  }
  .railway-route-mode {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:1fr;
    min-height:36px;
    padding:3px 2px
  }
  .railway-route-mode-emoji {
    display:none
  }
  .railway-route-mode-name {
    grid-column:1;
    grid-row:1;
    align-self:center;
    font-size:clamp(8px,1.35vw,10px);
    text-align:center
  }
  .railway-route-close {
    width:34px;
    height:34px;
    flex-basis:34px
  }
  .railway-route-dismiss {
    width:30px;
    height:34px;
    flex-basis:30px
  }
}
@media(max-width:420px) {
  .railway-route-heading {
    gap:2px
  }
  .railway-route-heading-copy {
    flex:0 0 auto
  }
  .railway-route-mode-buttons {
    flex:1 1 auto;
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .railway-route-mode-buttons {
    gap:1px
  }
  .railway-route-heading-icon {
    display:none
  }
  .railway-route-heading strong {
    font-size:9px;
    letter-spacing:0
  }
  .railway-route-mode-name {
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.1
  }
}
.railway-route-mode:focus-visible {
  outline:3px solid #fff0a8;
  outline-offset:3px
}
.railway-route-stop-picker {
  margin-top:9px;
  padding:9px;
  border:1px solid #344d5c;
  border-radius:8px;
  background:#111e2a;
  box-shadow:inset 0 1px #ffffff08
}
.railway-route-stop-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 1px 8px;
  padding-bottom:7px;
  border-bottom:1px dashed #3b5664;
  color:var(--quest-ink)
}
.railway-route-stop-heading strong {
  color:#72dfd0;
  font:800 10px 'DM Sans','Yu Gothic UI',sans-serif;
  letter-spacing:.04em
}
.railway-route-stops {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);
  align-items:center;
  gap:6px
}
.railway-route-stops::before {
  content:"";
  position:absolute;
  z-index:0;
  left:calc(50% - 18px);
  top:50%;
  width:36px;
  border-top:2px dashed #4a6671;
  pointer-events:none
}
.railway-route-stop-wrap {
  position:relative;
  z-index:1;
  min-width:0
}
.railway-route-swap {
  position:relative;
  z-index:2;
  display:grid;
  width:36px;
  height:40px;
  place-items:center;
  border:1px solid #536d79;
  border-radius:50%;
  background:#182a37;
  color:#ffd15b;
  font-size:20px;
  font-weight:900;
  line-height:1;
  transition:transform .2s,border-color .15s,background-color .15s
}
.railway-route-swap:hover {
  transform:rotate(180deg);
  border-color:#ffd15b;
  background:#3a362a
}
.railway-route-swap:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-stop-slot {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-rows:auto auto;
  align-content:center;
  gap:3px 5px;
  width:100%;
  min-height:58px;
  padding:7px 27px 7px 10px;
  border:1px solid #3d5664;
  border-radius:7px;
  background:#192a38;
  color:#dce6e9;
  text-align:left;
  transition:background-color .15s,border-color .15s,box-shadow .15s
}
.railway-route-stop-slot:hover {
  border-color:#8aa4ad;
  background:#1d3342
}
.railway-route-stop-slot:focus-visible {
  outline:2px solid #fff0a8;
  outline-offset:2px
}
.railway-route-stop-role {
  grid-column:1;
  grid-row:1;
  width:max-content;
  max-width:100%;
  padding:2px 5px;
  border-radius:3px;
  background:#213c47;
  color:#86e5d7;
  font:800 9px 'DM Mono',monospace;
  letter-spacing:.035em;
  white-space:nowrap
}
.railway-route-stop-name {
  grid-column:2;
  grid-row:1;
  align-self:center;
  display:block;
  max-width:100%;
  overflow:hidden;
  color:#f4f1e9;
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-stop-area {
  grid-column:1/-1;
  grid-row:2;
  display:block;
  max-width:100%;
  overflow:hidden;
  color:#9daeb5;
  font-size:8px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap
}
.railway-route-stop-area[hidden] {
  display:none
}
.railway-route-stop-slot[data-stop-role=via] .railway-route-stop-role {
  background:#342b43;
  color:#d5b7ff
}
.railway-route-stop-slot[data-stop-role=arrival] .railway-route-stop-role {
  background:#442b31;
  color:#ff9b8e
}
.railway-route-stop-slot.active[data-stop-role=departure] {
  border-color:#69d9c8;
  background:#17362f;
  box-shadow:0 0 0 2px #69d9c833
}
.railway-route-stop-slot.active[data-stop-role=via] {
  border-color:#c49afa;
  background:#2d233b;
  box-shadow:0 0 0 2px #c49afa33
}
.railway-route-stop-slot.active[data-stop-role=arrival] {
  border-color:#ff9284;
  background:#40272a;
  box-shadow:0 0 0 2px #ff928433
}
.railway-route-panel .railway-route-stop-wrap:has(.railway-route-stop-slot[data-stop-role=departure]) .railway-route-stop-slot,.railway-route-panel .railway-route-stop-wrap:has(.railway-route-stop-slot[data-stop-role=arrival]) .railway-route-stop-slot,.railway-route-panel .railway-route-via-row .railway-route-stop-slot {
  border-left:1px solid #3d5664
}
.railway-route-active-state {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  border:1px solid #fff071;
  border-radius:999px;
  background:linear-gradient(110deg,#fff36b,#ffc928);
  color:#18221b;
  font-size:9px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  box-shadow:0 0 12px #ffdf3e99,0 0 24px #ffb52d66
}
.railway-route-active-state::before {
  content:"●";
  font-size:8px;
  animation:railway-route-active-led .8s steps(2,end) infinite
}
.railway-route-active-state[hidden] {
  display:none
}
.railway-route-stop-slot.active {
  position:relative;
  z-index:2;
  border:2px solid #fff4a0!important;
  border-left:4px solid #fff4a0!important;
  outline:2px solid #ffdb35;
  outline-offset:2px;
  animation:railway-route-stop-pulse 1.35s ease-in-out infinite
}
.railway-route-stop-slot.active[data-stop-role=departure] {
  background:linear-gradient(125deg,#087d6b,#13a987 54%,#147987);
  color:#fff
}
.railway-route-stop-slot.active[data-stop-role=arrival] {
  background:linear-gradient(125deg,#a8333f,#e84f48 54%,#ef7d35);
  color:#fff
}
.railway-route-stop-slot.active[data-stop-role=via] {
  background:linear-gradient(125deg,#5c36a9,#874cdd 54%,#505cc4);
  color:#fff
}
.railway-route-stop-slot.active .railway-route-stop-role {
  background:#fff071;
  color:#18221b;
  box-shadow:0 0 10px #ffdf3eaa
}
.railway-route-stop-slot.active .railway-route-stop-name,.railway-route-stop-slot.active .railway-route-stop-area {
  color:#fff
}
.railway-route-stop-slot.active .railway-route-stop-area {
  opacity:.9
}
@keyframes railway-route-stop-pulse {
  0%,100% {
    box-shadow:0 0 0 2px #fff5b3,0 0 13px 4px #ffdb3599,inset 0 0 12px #fff16d30
  }
  50% {
    box-shadow:0 0 0 5px #ffe84c,0 0 25px 9px #ffbd3fbb,inset 0 0 17px #fff16d66
  }
}
@keyframes railway-route-active-led {
  50% {
    opacity:.25
  }
}
.railway-route-via-row {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:7px;
  margin-top:9px;
  padding-top:9px;
  border-top:1px dashed #3b5664
}
.railway-route-via-row .railway-route-stop-slot {
  min-height:56px;
  gap:3px;
  padding-top:6px;
  padding-bottom:6px
}
.railway-route-stop-clear {
  position:absolute;
  z-index:2;
  top:4px;
  right:4px;
  width:22px;
  height:22px;
  border:1px solid #526b76;
  border-radius:50%;
  background:#101a24;
  color:#d6e0e1;
  font-size:14px;
  line-height:1
}
.railway-route-stop-clear[hidden] {
  display:none
}
.railway-station-assignment {
  margin:8px 0 0;
  padding:7px 8px;
  border:1px solid #3a736c;
  border-radius:6px;
  background:#17362f;
  color:#c6f5e8;
  font-size:10px;
  font-weight:700
}
.railway-station-assignment[hidden] {
  display:none
}
.railway-route-status {
  position:relative;
  margin:6px 1px 0;
  padding:6px 8px;
  border:1px solid #344c59;
  border-radius:6px;
  background:#162633;
  color:#c5d5d8;
  font-size:9px;
  line-height:1.4
}
.railway-route-status::before {
  content:none
}
.railway-route-result {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:10px;
  margin-top:12px;
  padding:14px 15px;
  border:1px solid #887646;
  border-radius:8px;
  background:#292a25
}
.railway-route-result[hidden] {
  display:none
}
.railway-route-kicker {
  grid-column:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:18px;
  color:#f3d16b;
  font:800 9px 'DM Mono',monospace;
  letter-spacing:.08em
}
.railway-route-stations {
  grid-column:1;
  overflow:visible;
  color:#f3f0e8;
  font-size:15px;
  font-weight:800;
  line-height:1.5;
  overflow-wrap:anywhere;
  white-space:normal
}
.railway-route-distance {
  grid-column:1;
  justify-self:end;
  color:#ffd66e;
  font-size:29px;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
  text-shadow:0 0 12px #ffd15b44
}
.railway-route-result small {
  grid-column:1;
  color:#a6b3b8;
  font-size:10px;
  line-height:1.55
}
.railway-route-progress,.railway-route-message {
  grid-column:1
}
.railway-route-detail-toggle {
  font-size:12px
}
.railway-route-itinerary {
  padding:12px
}
.railway-route-itinerary-list {
  max-height:min(48vh,460px)
}
.railway-route-itinerary-name {
  font-size:14px
}
.railway-route-itinerary-area {
  font-size:10px
}
.railway-route-itinerary-km {
  font-size:10px
}
.railway-route-progress {
  padding:9px 10px
}
.railway-route-progress-label {
  font-size:11px
}
.railway-route-message {
  font-size:11px
}
.railway-station-detail {
  margin-top:9px;
  padding:10px;
  border:1px solid #496272;
  border-radius:8px;
  background:#152533
}
.railway-station-detail[hidden],.railway-route-actions[hidden] {
  display:none
}
.railway-station-detail-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#ffd74a;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em
}
.railway-station-detail-close {
  width:36px;
  height:36px;
  border:1px solid #455c69;
  border-radius:7px;
  background:#101b27;
  color:#e8edf0;
  font-size:20px;
  line-height:1
}
.railway-station-detail-title {
  margin:2px 0 9px;
  color:#fff;
  font-size:17px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere
}
.railway-station-detail-title small {
  display:block;
  margin-top:3px;
  color:#9eacb4;
  font-size:11px;
  font-weight:400
}
.railway-station-specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:0
}
.railway-station-specs>div {
  min-width:0;
  padding:7px 8px;
  border:1px solid #293e4b;
  border-radius:6px;
  background:#101d28
}
.railway-station-specs>div:last-child {
  grid-column:1/-1
}
.railway-station-specs dt {
  color:#8f9da6;
  font-size:9px
}
.railway-station-specs dd {
  margin:3px 0 0;
  color:#e7edf0;
  font-size:11px;
  line-height:1.4;
  overflow-wrap:anywhere
}
.railway-station-line-list {
  margin:0;
  padding-left:16px
}
.railway-station-line-list li+li {
  margin-top:3px
}
.railway-station-choose,.railway-route-actions button {
  min-height:42px;
  border:1px solid #f0d34b;
  border-radius:7px;
  background:#f0d34b;
  color:#172330;
  font-size:12px;
  font-weight:800
}
.railway-station-choose {
  width:100%;
  margin-top:9px
}
.railway-route-lines {
  grid-column:1;
  padding-top:9px;
  border-top:1px solid #514a35;
  color:#c5d1d7;
  font-size:11px;
  line-height:1.65;
  overflow-wrap:anywhere
}
.railway-route-actions {
  grid-column:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:3px
}
.railway-route-actions button {
  border-color:#536474;
  background:#1d2b37;
  color:#edf2f4
}
.railway-route-actions button:first-child {
  border-color:#f0d34b;
  background:#f0d34b;
  color:#172330
}
.railway-route-share-note {
  grid-column:1;
  color:#94a2aa;
  font-size:10px;
  line-height:1.5
}
@media(max-width:420px) {
  .railway-route-panel {
    max-height:min(72vh,620px);
    padding:9px
  }
  .railway-route-stop-picker {
    padding:7px
  }
  .railway-route-stops {
    grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);
    gap:4px
  }
  .railway-route-stops::before {
    left:calc(50% - 15px);
    width:30px
  }
  .railway-route-stop-slot {
    min-height:56px;
    padding:6px 24px 6px 7px
  }
  .railway-route-via-row .railway-route-stop-slot {
    min-height:48px;
    padding:5px 24px 5px 7px
  }
  .railway-route-swap {
    width:30px;
    height:34px
  }
  .railway-route-stop-role {
    font-size:8px
  }
  .railway-route-stop-name {
    font-size:10px
  }
}
@media(max-width:680px) {
  .railway-route-panel {
    left:9px;
    bottom:52px;
    width:calc(100vw - 18px);
    padding:9px
  }
  .railway-route-mode {
    min-height:58px;
    padding:6px 8px
  }
  .railway-route-heading-icon {
    width:35px;
    height:35px;
    flex-basis:35px
  }
}
@media(max-width:680px) {
  .railway-route-reopen {
    left:9px;
    top:176px;
    bottom:auto
  }
}
@media(max-width:680px) {
  .map-column:has(.railway-route-panel:not([hidden])) .leaflet-control-scale {
    display:none
  }
}
.railway-route-panel:has(.railway-route-result:not([hidden])) {
  max-height:min(86vh,760px)
}
@media(max-width:680px) {
  .map-column .leaflet-control-container .leaflet-bottom.leaflet-left {
    left:auto;
    right:8px;
    top:100px;
    bottom:auto
  }
}
@media(prefers-reduced-motion:reduce) {
  .railway-route-panel * {
    scroll-behavior:auto!important;
    transition:none!important
  }
  .railway-route-stop-slot.active,.railway-route-active-state::before {
    animation:none!important
  }
  .railway-route-stop-slot.active {
    box-shadow:0 0 0 4px #ffe84c,0 0 20px 6px #ffbd3fa8,inset 0 0 14px #fff16d55
  }
}

/* Original stylesheet 7 */
.map-hint {
  display:block;
  top:auto;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  background:#101b21e8;
  color:#eef5f2;
  border:1px solid #6e898c;
  font-size:10px
}
.map-column.adding .map-hint {
  display:block
}
.legend-daytrip {
  width:9px;
  height:9px;
  border-radius:3px;
  background:#42aaa3;
  box-shadow:0 0 0 3px #42aaa326
}
.legend-city-dot {
  width:10px;
  height:10px;
  display:inline-block;
  border:2px solid #fff1a8;
  border-radius:50%;
  background:#ffd52a;
  box-shadow:0 0 0 2px #182433,0 0 6px #ffd52a88
}
.legend-heritage {
  width:14px;
  height:14px;
  display:inline-grid;
  place-items:center;
  border:1px solid #fff1bd;
  border-radius:4px;
  transform:rotate(45deg);
  background:#9b6a26;
  color:#ffe4a1;
  font:700 9px/1 'DM Sans',sans-serif
}
.legend-heritage::first-letter {
  transform:rotate(-45deg)
}
.legend-rank {
  width:14px;
  height:14px;
  display:inline-grid;
  place-items:center;
  border:1px solid #f4dc8f;
  border-radius:3px;
  background:linear-gradient(135deg,#c4932e,#ffeaa0 48%,#ad7419);
  color:#571b22;
  font:700 8px/1 'DM Sans',sans-serif
}
.legend-municipality {
  display:inline-grid;
  place-items:center;
  width:13px;
  height:13px;
  border:1px dashed #bb8644;
  border-radius:2px;
  background:#fff0d2;
  color:#815b27;
  font:700 8px/1 'DM Sans',sans-serif
}
.legend-dot {
  background:#ed7652
}
.visited-pin.daytrip {
  background:#319792;
  border-radius:4px
}
.visited-pin.daytrip.selected {
  background:#176f6a;
  box-shadow:0 0 0 5px #42aaa344,0 2px 7px #1f302f77
}
.visited-tooltip .type-chip {
  display:inline-block;
  margin-right:4px;
  padding:1px 3px;
  border-radius:2px;
  background:#ed7652;
  color:#fff;
  font:700 8px 'DM Sans',sans-serif
}
.visited-tooltip .type-chip.daytrip {
  background:#278b85
}
.visited-tooltip .type-chip.sightseeing {
  background:#8a5d20
}
.heritage-marker-icon {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:transparent;
  border:0;
  cursor:pointer!important;
  pointer-events:auto!important
}
.heritage-marker-symbol {
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  border:2px solid #ffedb8;
  border-radius:5px;
  background:#8a5d20;
  color:#ffdf8e;
  box-shadow:0 1px 6px #08151dcc,0 0 0 2px #60451d99;
  transform:rotate(45deg);
  font:700 12px/1 'DM Sans',sans-serif
}
.heritage-marker-symbol b {
  transform:rotate(-45deg);
  font:700 12px/1 'DM Sans',sans-serif
}
.leaflet-marker-icon.heritage-marker-icon:hover .heritage-marker-symbol {
  background:#bd8737;
  transform:rotate(45deg) scale(1.14)
}
.place-kind {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 15px;
  padding:0;
  border:0
}
.place-kind legend {
  width:100%;
  margin:0 0 7px;
  color:#778078;
  font:10px 'DM Mono',monospace;
  letter-spacing:.08em
}
.place-kind label {
  position:relative;
  cursor:pointer
}
.place-kind input {
  position:absolute;
  opacity:0;
  inset:0;
  width:100%;
  height:100%;
  cursor:pointer
}
.place-kind label span {
  display:block;
  min-width:88px;
  padding:9px 15px;
  text-align:center;
  border:1px solid #dfe3d9;
  border-radius:4px;
  color:#718078;
  background:#fffefa;
  font-size:12px
}
.place-kind input:checked+span {
  border-color:#ed7652;
  background:#f8e4dc;
  color:#a64d35;
  font-weight:600
}
.place-kind label:last-child input:checked+span {
  border-color:#42aaa3;
  background:#dff1ef;
  color:#176f6a
}
.place-kind input:focus-visible+span {
  outline:2px solid #587b75;
  outline-offset:2px
}
.leaflet-marker-icon.city-marker,.leaflet-marker-icon.rank-marker {
  pointer-events:auto!important;
  cursor:pointer!important
}
.city-point-dot {
  display:block;
  width:10px;
  height:10px;
  border:2px solid #fff1a8;
  border-radius:50%;
  background:#ffd52a;
  box-shadow:0 0 0 2px #182433,0 0 7px #ffd52a99,0 1px 4px #061018cc;
  transition:transform .12s
}
.leaflet-marker-icon.city-marker:hover .city-point-dot {
  transform:scale(1.55);
  background:#fff2a0;
  box-shadow:0 0 0 2px #182433,0 0 10px #ffd52a
}
.city-rank-tag {
  cursor:pointer
}
.city-rank-tag:hover {
  filter:brightness(1.18);
  transform:translateY(-1px)
}
.leaflet-marker-icon.city-marker {
  display:grid;
  place-items:center;
  background:transparent;
  border:0
}
.city-hover-hit {
  pointer-events:all!important
}
.city-focus-area {
  filter:drop-shadow(0 0 3px #fff5bd) drop-shadow(0 0 10px #f0a747);
  animation:city-area-focus-glow 1.7s ease-in-out infinite alternate
}
@keyframes city-area-focus-glow {
  from {
    opacity:.8
  }
  to {
    opacity:1
  }
}
@media(prefers-reduced-motion:reduce) {
  .city-focus-area {
    animation:none
  }
}
.city-rank-tag {
  position:relative
}
.city-rank-tag:before {
  content:"";
  position:absolute;
  inset:-8px
}
@media(max-width:680px) {
  .map-hint {
    bottom:calc(36dvh + 16px);
    top:auto;
    max-width:calc(100vw - 24px);
    text-align:center;
    font-size:9px;
    padding:7px 9px
  }
  .map-legend {
    top:224px;
    left:8px;
    right:8px;
    gap:6px;
    justify-content:flex-start
  }
  .map-status {
    top:278px
  }
  .leaflet-top.leaflet-left {
    top:316px
  }
}
@media(max-width:390px) {
  .map-legend {
    top:218px;
    gap:5px;
    font-size:7px
  }
  .map-status {
    top:276px
  }
  .leaflet-top.leaflet-left {
    top:314px
  }
}
.place-kind label[hidden] {
  display:none
}
#placeKind.sightseeing-only input:checked+span {
  border-color:#d5b56b;
  background:#f5edd7;
  color:#815b27;
  font-weight:600
}
.place-kind.sightseeing-only label span {
  cursor:default
}
.legend-sightseeing {
  width:9px;
  height:9px;
  display:inline-block;
  border:1px solid #fff1bd;
  border-radius:2px;
  transform:rotate(45deg);
  background:#bd8737;
  box-shadow:0 0 0 2px #bd873733
}
.visited-pin.sightseeing {
  background:#a97727;
  border-radius:4px;
  transform:rotate(45deg);
  box-shadow:0 2px 7px #1f302f88,0 0 0 1px #ffe5a0
}
.visited-pin.sightseeing.selected {
  background:#805619;
  transform:scale(1.18) rotate(45deg);
  box-shadow:0 0 0 5px #e1ae4c55,0 2px 7px #1f302f88
}
.place-item.is-sightseeing .place-symbol {
  border-radius:2px;
  background:#bd8737;
  transform:rotate(45deg);
  box-shadow:0 0 0 3px #bd873733
}
.place-item.is-sightseeing.active .place-symbol {
  box-shadow:0 0 0 4px #bd873755
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
  max-height:min(72vh,560px);
  overflow-x:hidden;
  overflow-y:auto
}
.rail-guide {
  max-width:295px;
  margin:0 0 8px;
  padding:7px 8px;
  border:1px solid #d8ddda;
  border-radius:5px;
  background:#f8f9f6
}
.rail-guide summary {
  cursor:pointer;
  font-weight:700;
  color:#354b4a
}
.rail-guide-copy {
  max-width:280px;
  white-space:normal;
  color:#4a5b5c;
  font-size:10px;
  line-height:1.55
}
.rail-guide-copy p {
  margin:7px 0 0
}
.rail-guide-copy code {
  font-size:9px;
  color:#65533c;
  background:#ece9e1;
  padding:1px 3px;
  border-radius:3px
}
.rail-guide-copy a {
  color:#276e81;
  text-decoration:underline
}
.rail-guide-copy .rail-source-links {
  font-size:9px
}
.rail-guide-copy .rail-color-key {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:9px
}
.rail-key-highspeed,.rail-key-conventional {
  width:17px;
  height:0;
  display:inline-block;
  border-top:3px solid #58d8ff;
  border-radius:2px
}
.rail-key-conventional {
  border-top:2px solid #ffc568
}
.transport-status {
  margin-top:6px;
  color:#8a6025;
  font-size:9px
}
.legend-rail-highspeed,.legend-rail-conventional {
  width:15px;
  height:0;
  display:inline-block;
  border-top:3px solid #119fc6;
  border-radius:2px
}
.legend-rail-conventional {
  border-top:2px solid #bf821b
}
.legend-airport {
  min-width:22px;
  height:14px;
  display:inline-grid;
  place-items:center;
  padding:0 2px;
  border:1px solid #8ac6d7;
  border-radius:4px;
  background:#122a3c;
  color:#cff5ff;
  font:700 7px/1 'DM Mono',monospace
}
.map-legend>span[hidden] {
  display:none
}
.airport-icon-wrap {
  background:none;
  border:0
}
.airport-code-tag {
  display:inline-grid;
  place-items:center;
  min-width:34px;
  height:20px;
  padding:0 4px;
  border:1px solid #9de8ff;
  border-radius:5px;
  background:#102b3ceF;
  color:#e2f8ff;
  box-shadow:0 2px 7px #07121b9e;
  font:700 9px/1 'DM Mono',monospace;
  letter-spacing:.04em;
  text-shadow:0 1px 2px #06111a
}
.airport-icon-wrap:hover .airport-code-tag,.airport-icon-wrap:focus .airport-code-tag {
  background:#1c6079;
  transform:scale(1.1)
}
@media(max-width:680px) {
  .leaflet-control-layers {
    max-width:min(280px,calc(100vw - 24px))
  }
  .leaflet-control-layers-expanded {
    width:min(280px,calc(100vw - 24px));
    max-width:calc(100vw - 24px)
  }
  .rail-guide {
    box-sizing:border-box;
    width:100%;
    max-width:100%
  }
}
.legend-airport {
  min-width:31px;
  height:17px;
  gap:2px;
  padding:0 3px;
  border-color:#f7dc20;
  background:#ffdd16;
  color:#2f3540;
  box-shadow:0 1px 4px #08131a88
}
.legend-airport::before {
  content:'✈';
  color:#343a43;
  font:700 8px/1 'DM Sans',sans-serif
}
.airport-icon-wrap {
  width:48px!important;
  height:24px!important;
  overflow:visible;
  cursor:pointer!important;
  pointer-events:auto!important
}
.airport-icon-wrap:focus-visible {
  outline:2px solid #f9f2d0;
  outline-offset:2px;
  border-radius:7px
}
.airport-code-tag {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  width:48px;
  min-width:48px;
  height:23px;
  padding:2px 5px 2px 3px;
  border:1px solid #f6e25b;
  border-radius:6px;
  background:#ffdc13;
  color:#30343b;
  box-shadow:0 2px 9px #071019c7;
  font:700 9px/1 'DM Sans',sans-serif;
  letter-spacing:.06em;
  text-shadow:none;
  transition:transform .14s,filter .14s
}
.airport-plane-box {
  display:grid;
  place-items:center;
  flex:0 0 16px;
  width:16px;
  height:16px;
  border-radius:3px;
  background:#343a43;
  color:#fff8da
}
.airport-plane-box svg {
  display:block;
  width:11px;
  height:11px;
  fill:currentColor;
  transform:rotate(37deg)
}
.airport-code-tag b {
  color:#30343b;
  font:800 9px/1 'DM Sans',sans-serif;
  letter-spacing:.07em
}
.airport-city-label {
  display:none;
  color:inherit;
  font:650 10px/1 'Noto Sans JP',sans-serif;
  letter-spacing:0;
  white-space:nowrap
}
.airport-code-tag.airport-name-visible {
  width:max-content;
  min-width:48px;
  padding-right:7px
}
.airport-code-tag.airport-name-visible .airport-city-label {
  display:inline-block
}
.airport-icon-wrap:hover .airport-code-tag,.airport-icon-wrap:focus .airport-code-tag {
  background:#ffe94b;
  filter:brightness(1.04);
  transform:scale(1.12)
}
.airport-code-tag.visited {
  border-color:#ffdc13;
  background:#30343b;
  color:#ffdc13;
  box-shadow:0 0 0 2px #ffdc1355,0 2px 9px #071019c7
}
.airport-code-tag.visited b {
  color:#ffdc13
}
.airport-code-tag.visited .airport-plane-box {
  background:#ffdc13;
  color:#30343b
}
.airport-icon-wrap:hover .airport-code-tag.visited,.airport-icon-wrap:focus .airport-code-tag.visited {
  background:#454b53;
  color:#ffeb72
}
.airport-icon-wrap:hover .airport-code-tag.visited b,.airport-icon-wrap:focus .airport-code-tag.visited b {
  color:#ffeb72
}
.flight-focus-card {
  position:absolute;
  z-index:625;
  top:58px;
  right:16px;
  box-sizing:border-box;
  width:min(360px,calc(100vw - 32px));
  max-height:min(48vh,390px);
  overflow:auto;
  padding:12px 13px;
  border:1px solid #8292a080;
  border-radius:4px;
  background:#101820f2;
  color:#f6f2e6;
  box-shadow:0 5px 18px #03080dc9
}
@media(min-width:681px) {
  .flight-focus-card {
    top:72px;
    left:calc((100% - 320px)/2);
    right:auto;
    transform:translateX(-50%)
  }
}
.flight-focus-card[hidden] {
  display:none
}
.flight-focus-card header {
  display:flex;
  align-items:center;
  gap:9px
}
.flight-focus-plane {
  display:grid;
  place-items:center;
  flex:0 0 30px;
  height:30px;
  border-radius:7px;
  background:#ffdc13;
  color:#30343b;
  font:700 19px/1 'DM Sans',sans-serif;
  transform:rotate(-12deg)
}
.flight-focus-card header>div {
  display:grid;
  min-width:0;
  gap:3px;
  flex:1
}
.flight-focus-card header strong {
  overflow:hidden;
  color:#fff9e9;
  font:650 12px/1.3 'DM Sans',sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap
}
.flight-focus-card header small {
  color:#eacb5c;
  font:600 9px/1.2 'DM Mono',monospace;
  letter-spacing:.04em
}
.flight-focus-card header .flight-focus-airport-zh {
  color:#f5f1dc;
  font:600 10px/1.3 'Noto Sans JP',sans-serif;
  letter-spacing:0
}
.flight-focus-card header button {
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border:1px solid #69747d;
  border-radius:6px;
  background:#212b34;
  color:#d5d9d9;
  font:20px/1 'DM Sans',sans-serif;
  cursor:pointer
}
.flight-focus-card header button:hover {
  border-color:#ffdc13;
  color:#ffdc13
}
.flight-focus-card>p {
  margin:10px 0 6px;
  color:#c5cbd0;
  font:600 9px/1.3 'DM Mono',monospace;
  letter-spacing:.06em
}
.flight-focus-codes {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));
  align-content:start;
  gap:5px;
  max-height:150px;
  overflow:auto
}
.flight-destination-chip {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  column-gap:6px;
  row-gap:3px;
  width:100%;
  min-width:0;
  padding:5px 6px;
  border:1px solid #77869280;
  border-radius:5px;
  background:#202c36;
  color:#f7e9af;
  font:600 9px/1.2 'DM Sans','Noto Sans JP',sans-serif;
  text-align:left;
  appearance:none;
  cursor:pointer;
  transition:background .15s,border-color .15s,transform .15s,box-shadow .15s
}
.flight-destination-chip:hover,.flight-destination-chip:focus-visible {
  border-color:#ffdc13;
  background:#2b3a48;
  outline:none;
  box-shadow:0 0 0 2px #ffdc1330;
  transform:translateY(-1px)
}
.flight-destination-chip:active {
  transform:translateY(0)
}
.flight-destination-chip>b {
  grid-row:1 / span 2;
  color:#ffe26a;
  font:700 9px/1.3 'DM Mono',monospace
}
.flight-destination-chip .flight-destination-city {
  min-width:0;
  color:#f7e9af;
  font:600 9px/1.25 'DM Sans','Noto Sans JP',sans-serif;
  overflow-wrap:anywhere
}
.flight-destination-chip .flight-destination-zh {
  grid-column:2;
  min-width:0;
  color:#e7edf0;
  font:500 9px/1.25 'Noto Sans JP',sans-serif;
  overflow-wrap:anywhere
}
.flight-focus-visited {
  margin-top:9px;
  padding:6px 9px;
  border:1px solid #ffdc13;
  border-radius:5px;
  background:#ffdc13;
  color:#30343b;
  font:700 10px/1.2 'DM Sans',sans-serif;
  cursor:pointer
}
.flight-focus-visited:hover,.airport-visit-control button:hover {
  background:#ffeb72
}
.flight-focus-visited.is-visited,.airport-visit-control button.is-visited {
  background:#30343b;
  color:#ffdc13;
  box-shadow:inset 0 0 0 1px #ffdc13
}
.airport-visit-control {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:4px;
  padding:9px 11px;
  border:1px solid #4b5962;
  border-radius:7px;
  background:#18232c;
  color:#dce1e2;
  font-size:12px
}
.airport-visit-control[hidden] {
  display:none
}
.airport-visit-control button {
  padding:6px 10px;
  border:1px solid #ffdc13;
  border-radius:5px;
  background:#ffdc13;
  color:#30343b;
  font:700 11px/1.2 'DM Sans',sans-serif;
  cursor:pointer
}
.flight-focus-fit {
  margin-top:8px;
  padding:6px 9px;
  border:1px solid #ecd04a;
  border-radius:5px;
  background:#ffdd16;
  color:#30343b;
  font:700 9px/1.2 'DM Sans',sans-serif;
  cursor:pointer
}
.flight-focus-fit:hover {
  background:#ffed69
}
.flight-focus-fit:disabled {
  opacity:.45;
  cursor:default
}
.flight-no-routes {
  padding:4px 2px;
  color:#c5cbd0;
  font-size:10px
}
.flight-focus-card .flight-focus-note {
  display:block;
  margin-top:8px;
  color:#a6b0b7;
  font-size:8px;
  line-height:1.4
}
.flight-source-links {
  font-size:9px!important
}
.flight-route-halo {
  stroke:#fff9e7!important;
  stroke-opacity:.55!important;
  stroke-width:8px!important;
  filter:blur(3px)
}
.flight-route-line {
  stroke-opacity:.98!important;
  stroke-width:3.25px!important;
  stroke-dasharray:13 8;
  stroke-linecap:round;
  filter:drop-shadow(0 0 4px #ffc9fbad);
  animation:flight-route-flow 1.6s linear infinite
}
@keyframes flight-route-flow {
  to {
    stroke-dashoffset:-42
  }
}
.airport-province-highlight,.province-scope-highlight,.airport-province-highlight-fill,.province-scope-highlight-fill {
  stroke-width:4.5px!important;
  fill-opacity:.46!important;
  filter:drop-shadow(0 0 3px #fff8d8) drop-shadow(0 0 9px #ffe47a) drop-shadow(0 0 18px #ffdc58)
}
.province-tag-centered {
  transform:translate(-50%,-50%);
  transform-origin:center
}
.leaflet-marker-icon.province-marker .province-tag {
  padding:2px 6px;
  border-color:#9caebbc9;
  border-radius:4px;
  background:#111b27e8;
  color:#f4f1e7;
  font-size:10px;
  font-weight:700;
  line-height:1.25;
  box-shadow:0 2px 8px #02070db3;
  text-shadow:0 1px 2px #02070d
}
.airport-province-caption {
  border-color:#fff0a5;
  background:#182638f2;
  color:#fff2bf;
  text-shadow:0 1px 3px #111b27;
  box-shadow:0 0 0 2px #ffe27a55,0 0 16px #ffe27acc,0 2px 8px #02070dcc
}
.airport-province-caption {
  padding:4px 8px;
  font-size:11px;
  font-weight:700
}
.leaflet-marker-icon.airport-province-caption-marker {
  pointer-events:none!important;
  background:transparent;
  border:0
}
#mapColumn.airport-focus-mode .leaflet-marker-pane>.leaflet-marker-icon:not(.airport-icon-wrap) {
  visibility:hidden!important;
  pointer-events:none!important
}
#mapColumn.airport-focus-mode .leaflet-tooltip-pane .leaflet-tooltip:not(.airport-tooltip) {
  visibility:hidden!important
}
#mapColumn.airport-focus-mode .airport-code-tag {
  width:max-content;
  min-width:48px;
  padding-right:7px
}
#mapColumn.airport-focus-mode .airport-city-label {
  display:inline-block
}
@media(prefers-reduced-motion:reduce) {
  .flight-route-line {
    animation:none
  }
}
@media(max-width:680px) {
  .flight-focus-card {
    top:58px;
    right:8px;
    width:min(310px,calc(100vw - 16px));
    max-height:35vh;
    padding:10px 11px
  }
  .flight-focus-codes {
    max-height:110px
  }
}
@media(max-width:680px) {
  .flight-focus-card {
    top:300px;
    left:50%;
    right:auto;
    transform:translateX(-50%)
  }
}
:root {
  --paper:#101820;
  --ink:#f4f1e7;
  --muted:#a4afb8;
  --line:#46535e;
  --white:#111b27;
  --shadow:0 18px 50px #02070dd9;
  --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
}
html {
  color-scheme:dark
}
body {
  background:#101820;
  color:var(--ui-ivory)
}
.brand {
  color:var(--ui-yellow);
  border-color:#46535e;
  background:#111b27ed;
  box-shadow:0 4px 18px #02070d88
}
.brand-mark {
  border-color:#8d8a36;
  background:#202833;
  color:var(--ui-yellow)
}
.top-actions .quiet-button,.top-actions .solid-button {
  border-color:#77751f;
  background:var(--ui-olive);
  color:#fff8d8;
  box-shadow:0 4px 18px #02070d88
}
.top-actions .quiet-button:hover,.top-actions .solid-button:hover {
  border-color:#a19d35;
  background:var(--ui-olive-hover);
  color:#fffce9
}
.top-actions .share-button {
  border-color:var(--ui-yellow);
  background:var(--ui-yellow);
  color:#30343b;
  font-weight:700
}
.top-actions .share-button:hover {
  border-color:#ffeb72;
  background:#ffeb72;
  color:#30343b
}
.intro,.workspace .side {
  border-color:#46535e;
  background:#111b27f2;
  color:var(--ui-ivory);
  box-shadow:none;
  backdrop-filter:none
}
.intro {
  padding:14px 18px 12px;
  border:0;
  border-radius:0;
  background:#111b27e8;
  text-shadow:none
}
.workspace .side {
  border-left:1px solid #46535e;
  border-radius:4px
}
.intro h1,.side-title,.place-city,.stat strong {
  color:var(--ui-ivory)
}
.intro h1 span {
  color:var(--ui-yellow)
}
.eyebrow {
  color:#e7ca43
}
.intro-copy,.stat small,.side-count,.memory-caption,.place-meta,.place-note,.side-note,.empty,.credit {
  color:var(--ui-muted)
}
.stat-sep {
  background:#46535e
}
.place-item {
  border-color:#354350
}
.item-tools {
  opacity:.9
}
.item-tools button {
  color:#a4afb8
}
.item-tools button:hover {
  color:var(--ui-yellow)
}
.add-place {
  border:1px solid #77751f;
  background:#77751f;
  color:#fff8d8
}
.add-place:hover {
  border-color:#898629;
  background:#898629;
  color:#fffce9
}
.map-legend,.map-head .caption,.map-footer,.map-status {
  border:1px solid #46535e;
  border-radius:6px;
  background:#111b27ed;
  color:#e3e8e9;
  box-shadow:0 4px 16px #02070d70;
  backdrop-filter:blur(10px)
}
.map-legend {
  color:#e3e8e9
}
.map-status.error {
  color:#ff9a81
}
.map-hint,.toast {
  border:1px solid #59646e;
  background:#111b27f5;
  color:var(--ui-ivory);
  box-shadow:0 5px 18px #02070db8
}
.leaflet-control-layers,.leaflet-control-layers-expanded,.leaflet-control-zoom a {
  border-color:#46535e!important;
  background:#111b27ed!important;
  color:#e4e8e8!important;
  box-shadow:0 4px 16px #02070d88!important
}
.layer-control-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 7px;
  padding:0 1px 8px;
  border-bottom:1px solid #46535e;
  color:#f4f1e7;
  font-size:11px;
  font-weight:700
}
.layer-control-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:4px 8px;
  border:1px solid #77751f;
  border-radius:5px;
  background:#77751f;
  color:#fff8d8;
  font:600 10px/1.2 'DM Sans','Noto Sans JP',sans-serif;
  white-space:nowrap;
  cursor:pointer
}
.layer-control-button:hover {
  border-color:#ffdc13;
  background:#898629;
  color:#fffce9
}
.layer-control-button:focus-visible {
  outline:2px solid #ffdc13;
  outline-offset:2px
}
.layer-control-expand {
  display:none
}
.leaflet-control-layers.layer-control-minimized {
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-width:none;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important
}
.layer-control-minimized .layer-control-heading,.layer-control-minimized .leaflet-control-layers-list {
  display:none!important
}
.layer-control-minimized .layer-control-expand {
  display:inline-flex;
  margin:0
}
.leaflet-control-layers-toggle {
  filter:invert(.9) hue-rotate(165deg) brightness(1.2)
}
.leaflet-control-layers-separator {
  border-top-color:#46535e!important
}
.leaflet-control-layers-expanded {
  color:#e4e8e8!important
}
.leaflet-control-zoom a {
  color:#f4f1e7!important
}
.leaflet-control-zoom a:hover {
  background:#263442!important;
  color:var(--ui-yellow)!important
}
.leaflet-control-zoom-level {
  display:grid;
  place-items:center;
  width:30px;
  height:24px;
  border-bottom:1px solid #46535e;
  background:#111b27ed;
  color:var(--ui-yellow);
  font:700 10px/1 'DM Mono',monospace;
  user-select:none
}
.leaflet-control-attribution {
  border:1px solid #46535e;
  border-radius:4px 4px 0 0;
  background:#111b27e8!important;
  color:#a4afb8!important
}
.leaflet-control-attribution a,.map-credit .leaflet-control-attribution a,.boundary-credit a {
  color:#ffdc58!important
}
.map-credit,.boundary-credit {
  color:#a4afb8
}
.record-mode-toggle {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:0 0 14px;
  padding:3px;
  border:1px solid #354350;
  border-radius:5px;
  background:#101923
}
.record-mode-toggle button {
  min-width:0;
  padding:7px 4px;
  border:1px solid transparent;
  border-radius:3px;
  background:transparent;
  color:#aeb8bd;
  font:600 10px/1.25 'DM Sans','Noto Sans JP',sans-serif;
  cursor:pointer
}
.record-mode-toggle button:hover {
  color:#f4f1e7;
  background:#263442
}
.record-mode-toggle button.active {
  border-color:#ffdc13;
  background:#ffdc13;
  color:#30343b
}
.record-mode-toggle button:focus-visible {
  outline:2px solid #fff1a8;
  outline-offset:2px
}
.plan-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin:0 0 14px;
  padding:9px;
  border:1px solid #354350;
  border-radius:5px;
  background:#101923
}
.plan-actions .quiet-button,.plan-actions .solid-button {
  min-width:0;
  min-height:34px;
  padding:7px 8px;
  border:1px solid #77751f;
  border-radius:4px;
  background:var(--ui-olive);
  color:#fff8d8;
  font:600 10px/1.3 'DM Sans','Noto Sans JP',sans-serif;
  white-space:normal
}
.plan-actions .quiet-button:hover,.plan-actions .solid-button:hover {
  border-color:#a19d35;
  background:var(--ui-olive-hover);
  color:#fffce9
}
.plan-actions .share-button {
  border-color:var(--ui-yellow);
  background:var(--ui-yellow);
  color:#30343b;
  font-weight:700
}
.plan-actions .share-button:hover {
  border-color:#ffeb72;
  background:#ffeb72;
  color:#30343b
}
.plan-actions #resetBtn {
  grid-column:1/-1
}
.legend-plan {
  width:12px;
  height:12px;
  display:inline-grid;
  place-items:center;
  border:1px dashed #ffe26b;
  border-radius:50%;
  background:#172330;
  color:#ffe26b;
  font:700 7px/1 'Noto Sans JP',sans-serif
}
.place-item.is-planned .place-symbol {
  width:12px;
  height:12px;
  border:1px dashed #ffe26b;
  border-radius:3px;
  background:#263442;
  box-shadow:0 0 0 2px #ffe26b22
}
.place-item.is-planned.active .place-symbol {
  box-shadow:0 0 0 4px #ffe26b44
}
.planned-marker-icon {
  display:grid;
  place-items:center;
  border:0;
  background:transparent
}
.planned-pin {
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border:2px dashed #ffe26b;
  border-radius:50%;
  background:#172330ee;
  color:#ffe26b;
  font:700 9px/1 'Noto Sans JP',sans-serif;
  box-shadow:0 1px 5px #02070dcc,0 0 0 2px #172330aa
}
.planned-marker-icon:hover .planned-pin,.planned-marker-icon:focus .planned-pin {
  background:#ffe26b;
  color:#30343b;
  transform:scale(1.12)
}
.leaflet-tooltip.planned-tooltip {
  border-color:#d6bd59;
  background:#172330ed;
  color:#f4f1e7;
  box-shadow:0 4px 12px #02070d88
}
.leaflet-tooltip.planned-tooltip:before {
  border-right-color:#d6bd59
}
.planned-tooltip .type-chip.planned {
  background:#d6bd59;
  color:#30343b
}
.place-kind[hidden] {
  display:none!important
}
.map-fill-control {
  border-color:#46535e;
  color:#edf0eb
}
.map-fill-control select,.field input,.field textarea,#shareUrl {
  border-color:#46535e;
  background:#172330;
  color:#f4f1e7;
  color-scheme:dark
}
.map-fill-control select:focus-visible,.field input:focus,.field textarea:focus,#shareUrl:focus {
  border-color:#ffdc13;
  outline-color:#ffdc13
}
.map-fill-status {
  color:#a4afb8
}
.rail-guide {
  border-color:#46535e;
  background:#172330;
  color:#e8eceb
}
.rail-guide summary {
  color:#f4f1e7
}
.rail-guide-copy {
  color:#c2cbd0
}
.rail-guide-copy code {
  background:#263442;
  color:#ffe574
}
.rail-guide-copy a {
  color:#ffdf4a
}
.modal-backdrop {
  background:#03080dc9
}
.modal,.share-dialog {
  border:1px solid #46535e;
  background:#111b27;
  color:var(--ui-ivory);
  box-shadow:0 12px 34px #02070dcc
}
.modal-head h2 {
  color:var(--ui-ivory)
}
.close {
  color:#a4afb8
}
.close:hover {
  color:var(--ui-yellow)
}
.field span,.coords {
  color:#a4afb8
}
.field input::placeholder,.field textarea::placeholder {
  color:#82909a
}
.field input:focus,.field textarea:focus {
  border-color:var(--ui-yellow)
}
.solid-button {
  border-color:var(--ui-yellow);
  background:var(--ui-yellow);
  color:#30343b;
  font-weight:700
}
.solid-button:hover {
  border-color:#ffeb72;
  background:#ffeb72;
  color:#30343b
}
.quiet-button {
  border-color:var(--ui-olive);
  background:var(--ui-olive);
  color:#fff8d8
}
.quiet-button:hover {
  border-color:var(--ui-olive-hover);
  background:var(--ui-olive-hover);
  color:#fffce9
}
.share-intro,.share-note {
  color:#a4afb8
}
.share-divider {
  background:#46535e
}
.leaflet-popup-content-wrapper,.leaflet-popup-tip {
  border:1px solid #46535e;
  background:#111b27;
  color:#f4f1e7;
  box-shadow:0 8px 24px #02070db8
}
.leaflet-popup-content {
  color:#f4f1e7
}
.popup-title {
  color:#f4f1e7
}
.popup-meta,.popup-note {
  color:#a4afb8
}
.leaflet-tooltip.visited-tooltip {
  border-color:#46535e;
  background:#111b27ed;
  color:#f4f1e7;
  box-shadow:0 4px 12px #02070d88
}
.leaflet-tooltip.visited-tooltip:before {
  border-right-color:#46535e
}
.province-tag,.city-tag {
  border-color:#687783;
  background:#111b27e8;
  color:#f4f1e7;
  text-shadow:none;
  box-shadow:0 2px 8px #02070d99
}
.province-tag.airport-province-caption {
  border-color:#fff0a5;
  background:#182638f2;
  color:#fff2bf;
  text-shadow:0 1px 3px #111b27;
  box-shadow:0 0 0 2px #ffe27a55,0 0 16px #ffe27acc,0 2px 8px #02070dcc
}
.highspeed-rail-line,.highspeed-construction-rail-line,.highspeed-planned-rail-line,.conventional-construction-rail-line {
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 2px #0b1422)
}
.railway-flow-pane {
  pointer-events:none;
  overflow:hidden
}
.railway-flow-pane.is-paused {
  visibility:hidden
}
.railway-train-dot {
  position:absolute;
  left:0;
  top:0;
  width:var(--railway-flow-size,8px);
  height:var(--railway-flow-size,8px);
  border-radius:50%;
  offset-path:var(--railway-flow-path);
  offset-distance:0%;
  offset-rotate:auto;
  animation:railway-travel var(--railway-flow-duration,12s) linear infinite;
  background:radial-gradient(circle,#fff9e8 0 16%,var(--railway-flow-color) 38%,transparent 78%);
  box-shadow:0 0 7px 2px var(--railway-flow-glow)
}
.railway-train-dot::before {
  content:'';
  position:absolute;
  top:calc((var(--railway-flow-size,8px) - 2px)/2);
  right:calc(var(--railway-flow-size,8px)/2);
  width:var(--railway-flow-tail,18px);
  height:2px;
  background:linear-gradient(90deg,transparent,var(--railway-flow-color));
  opacity:.9
}
.railway-train-dot.is-highspeed {
  --railway-flow-color:#ff5147;
  --railway-flow-glow:#ff3434
}
.railway-train-dot.is-construction {
  --railway-flow-color:#ffbf63;
  --railway-flow-glow:#ff9c24
}
.railway-train-dot.is-conventional-construction {
  --railway-flow-color:#ffdf8a;
  --railway-flow-glow:#e2ad45
}
.railway-train-dot.is-conventional {
  --railway-flow-color:#ffe18d;
  --railway-flow-glow:#ffc568
}
@keyframes railway-travel {
  to {
    offset-distance:100%
  }
}
.legend-rail-highspeed,.legend-rail-conventional {
  height:3px!important;
  border:0!important;
  border-radius:2px;
  background:linear-gradient(90deg,var(--legend-rail-color) 0 28%,#fff4 47%,var(--legend-rail-color) 68%);
  background-size:210% 100%;
  animation:railway-legend-flow 2.8s linear infinite
}
.legend-rail-highspeed {
  --legend-rail-color:#ff3434
}
.legend-rail-conventional {
  --legend-rail-color:#ffc568
}
.legend-rail-construction {
  height:5px!important;
  border:0!important;
  background:repeating-linear-gradient(90deg,#ff9c24 0 10px,transparent 10px 16px);
  background-size:30px 5px;
  animation:railway-legend-flow 1.9s linear infinite
}
.legend-rail-planned,.legend-rail-conventional-construction {
  height:4px!important;
  border:0!important;
  border-radius:2px;
  background:repeating-linear-gradient(90deg,var(--legend-rail-color) 0 3px,transparent 3px 9px);
  background-size:18px 4px;
  animation:railway-legend-flow 2.8s linear infinite
}
.legend-rail-planned {
  --legend-rail-color:#c47cff
}
.legend-rail-conventional-construction {
  --legend-rail-color:#e2ad45
}
@keyframes railway-legend-flow {
  to {
    background-position:210% 0
  }
}
@media(prefers-reduced-motion:reduce) {
  .railway-train-dot,.legend-rail-highspeed,.legend-rail-conventional,.legend-rail-construction,.legend-rail-planned,.legend-rail-conventional-construction {
    animation:none!important
  }
  .railway-train-dot {
    offset-distance:50%
  }
}
.rail-key-highspeed,.legend-rail-highspeed {
  border-top-color:#ff3434
}
.rail-key-highspeed,.legend-rail-highspeed {
  border-top-width:4px
}
.rail-key-construction,.legend-rail-construction {
  width:20px;
  height:0;
  display:inline-block;
  border-top:5px dashed #ff9c24;
  border-radius:2px
}
.rail-key-planned,.legend-rail-planned {
  width:20px;
  height:0;
  display:inline-block;
  border-top:4px dotted #c47cff;
  border-radius:2px
}
.rail-key-conventional-construction,.legend-rail-conventional-construction {
  width:20px;
  height:0;
  display:inline-block;
  border-top:4px dotted #e2ad45;
  border-radius:2px
}
.province-tag.municipality-tag {
  border-color:#ffd28e;
  background:#172c38f2;
  color:#fff4d9
}
.province-tag.is-focused,.province-focus-caption {
  border:1px solid #ffe16b!important;
  border-radius:5px;
  background:#3a2e16f5!important;
  color:#fff2a6!important;
  box-shadow:0 0 0 2px #ffd84a66,0 0 15px #ffd84acc,0 2px 8px #02070dcc!important;
  text-shadow:0 1px #211a0d!important;
  transform:translate(-50%,-50%) scale(1.13);
  transform-origin:center;
  z-index:1200
}
.province-focus-caption {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 7px;
  font:600 11px/1.2 'Yu Gothic UI',sans-serif;
  white-space:nowrap;
  transform:translate(-50%,-50%) scale(1.13);
  transform-origin:center
}
.province-focus-level {
  color:#ffe16b;
  font:700 9px/1 'DM Sans','Yu Gothic UI',sans-serif;
  letter-spacing:.04em
}
.province-focus-caption b {
  font-weight:700
}
.leaflet-marker-icon.province-focus-marker {
  pointer-events:none!important;
  background:transparent;
  border:0;
  z-index:1200!important
}
.province-tag.is-focused .admin-type {
  color:#ffe16b
}
.leaflet-marker-icon.city-marker.province-scope-focused .city-point-dot {
  transform:scale(1.7);
  border-color:#fff4a8;
  background:#ffdf58;
  box-shadow:0 0 0 3px #302817,0 0 18px 7px #ffd84ab8
}
.leaflet-marker-icon.rank-marker.province-scope-focused .city-rank-tag {
  border-color:#ffe16b;
  box-shadow:0 0 0 3px #ffd84a55,0 0 18px #ffd84acc;
  filter:brightness(1.16)
}
.share-actions .solid-button {
  background:var(--ui-yellow);
  color:#30343b
}
.share-actions .quiet-button {
  background:var(--ui-olive);
  color:#fff8d8
}
@media(max-width:680px) {
  .top-actions .share-button {
    background:var(--ui-yellow);
    color:#30343b
  }
  .workspace .side {
    border-left-width:1px
  }
}
@media(max-width:680px) {
  .leaflet-top.leaflet-right {
    top:310px;
    right:8px
  }
  .leaflet-control-layers-expanded {
    width:min(240px,calc(100vw - 20px));
    max-width:calc(100vw - 20px)
  }
  .leaflet-control-layers-expanded .leaflet-control-layers-list {
    max-height:max(80px,calc(36dvh - 170px))
  }
}
.brand-caption {
  font:600 12px/1 'Yu Gothic UI',sans-serif;
  letter-spacing:.08em;
  white-space:nowrap
}
.brand {
  gap:14px;
  padding:8px 15px
}
.brand-caption {
  font:600 12px/1 'Yu Gothic UI',sans-serif;
  letter-spacing:.08em;
  white-space:nowrap
}
.brand-stats {
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:12px;
  border-left:1px solid #46535e
}
.brand-stat {
  display:flex;
  align-items:baseline;
  gap:5px;
  white-space:nowrap
}
.brand-stat b {
  color:var(--ui-ivory);
  font:600 15px/1 'DM Sans',sans-serif
}
.brand-stat small {
  color:var(--ui-muted);
  font:8px/1 'DM Mono',monospace;
  letter-spacing:.12em
}
.brand-stats>i {
  width:1px;
  height:19px;
  background:#46535e
}
.map-status {
  top:62px;
  left:18px
}
.leaflet-top.leaflet-left {
  top:104px;
  left:18px
}
@media(min-width:681px) {
  .leaflet-top.leaflet-right {
    top:62px;
    right:350px
  }
}
@media(max-width:680px) {
  .topline {
    left:8px;
    right:8px
  }
  .brand {
    gap:8px;
    padding:6px 10px
  }
  .brand-caption {
    font-size:10px;
    letter-spacing:.04em
  }
  .brand-stats {
    gap:6px;
    padding-left:8px
  }
  .brand-stat {
    gap:3px
  }
  .brand-stat b {
    font-size:12px
  }
  .brand-stat small {
    font-size:7px;
    letter-spacing:.08em
  }
  .brand-stats>i {
    height:15px
  }
  .top-actions {
    gap:4px
  }
  .map-status {
    top:50px;
    left:8px
  }
  .leaflet-top.leaflet-left {
    top:91px;
    left:8px
  }
  .leaflet-top.leaflet-right {
    top:50px;
    right:8px
  }
}
@media(max-width:390px) {
  .brand {
    gap:6px;
    padding:5px 8px
  }
  .brand-caption {
    font-size:9px
  }
  .brand-stats {
    gap:5px;
    padding-left:6px
  }
  .brand-stat b {
    font-size:11px
  }
  .brand-stat small {
    font-size:6px
  }
}

/* Original stylesheet 8 */
.panel-drag-handle {
  cursor:grab!important;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none
}
.panel-drag-handle:active {
  cursor:grabbing!important
}
.panel-user-moved {
  z-index:1300!important
}
.rail-zoom-hint {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:4px 0 8px;
  padding:8px;
  border:1px solid #625c33;
  border-radius:4px;
  background:#262917;
  color:#fff3a4;
  font-size:10px;
  line-height:1.4
}
.rail-zoom-hint[hidden] {
  display:none!important
}
.rail-zoom-hint button {
  flex:0 0 auto;
  border:1px solid #ffdc13;
  border-radius:4px;
  background:#ffdc13;
  color:#30343b;
  padding:5px 8px;
  font-size:10px;
  font-weight:700
}
.side-top {
  gap:10px
}
.side-count {
  margin-left:auto;
  white-space:nowrap
}
.side-content {
  display:flex;
  flex:1 0 auto;
  flex-direction:column;
  min-width:0
}
.side-expand {
  display:none
}
.side-minimized .side-top,.side-minimized .side-content {
  display:none!important
}
.side-minimized>.side-expand {
  display:inline-flex
}
.workspace .side.side-minimized {
  bottom:auto!important;
  width:max-content!important;
  height:auto!important;
  min-width:0!important;
  max-width:calc(100vw - 16px)!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important
}
.leaflet-control-layers.ui-panel-height-limited {
  height:var(--ui-panel-auto-height)!important;
  max-height:var(--ui-panel-auto-height)!important;
  overflow:auto!important
}
@media(max-width:680px) {
  .workspace .side.side-minimized:not(.panel-user-moved) {
    left:auto;
    right:8px;
    top:auto;
    bottom:8px!important
  }
}
.city-info-card {
  position:absolute;
  z-index:625;
  right:16px;
  bottom:64px;
  box-sizing:border-box;
  width:min(420px,calc(100vw - 32px));
  max-height:min(82vh,680px);
  overflow:auto;
  scrollbar-width:none;
  padding:11px 12px;
  border:1px solid #8292a080;
  border-radius:5px;
  background:#101820f5;
  color:#f4f1e7;
  box-shadow:0 5px 18px #03080dc9
}
.city-info-card::-webkit-scrollbar {
  display:none
}
.city-info-card[hidden] {
  display:none
}
.city-info-card.is-poi-anchored {
  right:auto;
  bottom:auto;
  transform:none;
  translate:none;
  z-index:1200
}
.city-info-card.is-poi-anchored:before {
  position:absolute;
  width:0;
  height:0;
  border:8px solid transparent;
  content:'';
  pointer-events:none
}
.city-info-card.is-poi-anchored[data-anchor-side="right"]:before {
  top:calc(50% - 8px);
  left:-16px;
  border-right-color:#8292a0;
  border-left:0
}
.city-info-card.is-poi-anchored[data-anchor-side="left"]:before {
  top:calc(50% - 8px);
  right:-16px;
  border-left-color:#8292a0;
  border-right:0
}
.city-info-card.is-poi-anchored[data-anchor-side="below"]:before {
  top:-16px;
  left:calc(50% - 8px);
  border-bottom-color:#8292a0;
  border-top:0
}
.city-info-card.is-poi-anchored[data-anchor-side="above"]:before {
  bottom:-16px;
  left:calc(50% - 8px);
  border-top-color:#8292a0;
  border-bottom:0
}
.city-info-header {
  display:flex;
  align-items:center;
  gap:10px;
  padding-bottom:9px;
  border-bottom:1px solid #46535e
}
#cityInfoCard .city-info-header {
  padding-bottom:5px
}
.city-info-header>div {
  display:grid;
  min-width:0;
  gap:3px;
  flex:1
}
.city-info-header strong {
  overflow:hidden;
  color:#fff9e9;
  font:650 16px/1.25 'Yu Gothic UI','Noto Sans JP',sans-serif;
  text-overflow:ellipsis;
  white-space:nowrap
}
.city-info-header small {
  color:#aebbc3;
  font-size:9px;
  line-height:1.3
}
.city-info-header button {
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border:1px solid #69747d;
  border-radius:5px;
  background:#212b34;
  color:#d5d9d9;
  font:20px/1 'DM Sans',sans-serif;
  cursor:pointer
}
.city-info-header button:hover {
  border-color:#ffdc13;
  color:#ffdc13
}
.city-info-specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin:9px 0 10px
}
.city-info-specs>div {
  min-width:0;
  padding:6px 7px;
  border:1px solid #3a4853;
  border-radius:4px;
  background:#17232e
}
#cityInfoCard .city-info-specs {
  gap:5px;
  margin:4px 0 5px
}
#cityInfoCard .city-info-specs>div {
  padding:4px 7px
}
.city-info-specs dt {
  margin-bottom:3px;
  color:#9aa9b1;
  font-size:9px
}
.city-info-specs dd {
  margin:0;
  color:#f3e7bb;
  font-size:10px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere
}
.city-info-specs .city-info-ethnicity {
  grid-column:1/-1
}
.city-info-card section {
  margin:8px 0 0
}
.city-info-recommendations {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 6px
}
.city-info-recommendations>section {
  min-width:0;
  margin:0;
  padding:3px 5px;
  border:1px solid #344751;
  border-radius:4px;
  background:#14232b
}
.city-info-card h3 {
  margin:0 0 3px;
  color:#ffdc13;
  font-size:10px;
  font-weight:700
}
.city-info-card section p {
  margin:0;
  color:#e2e7e9;
  font-size:11px;
  line-height:1.55
}
#cityInfoCard h3 {
  margin:0 0 1px;
  line-height:1.3
}
#cityInfoCard section p {
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere
}
.city-info-card section p a {
  color:inherit;
  text-decoration:underline;
  text-decoration-color:#9fb9bc;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  cursor:pointer
}
.city-info-card section p a:hover,.city-info-card section p a:focus-visible {
  color:#ffdc13;
  text-decoration-color:currentColor
}
.city-info-card section p a:focus-visible {
  outline:2px solid #67d8c7;
  outline-offset:2px;
  border-radius:2px
}
.city-info-card .city-recommendation-entry {
  display:block;
  margin-top:1px
}
.city-info-card .city-recommendation-meta {
  display:block;
  color:#aeb9c0;
  font-size:.88em;
  line-height:1.3
}
.city-info-card .city-recommendation-sources {
  display:block;
  color:#90aab3;
  font-size:.8em;
  line-height:1.3
}
.city-info-card .city-recommendation-sources a {
  color:#79d8c8;
  text-decoration:underline;
  text-underline-offset:2px
}
.city-recommendation-bubble {
  position:fixed;
  z-index:20000;
  width:max-content;
  max-width:min(320px,calc(100vw - 24px));
  padding:11px 14px 12px;
  border:1px solid #70d9c8;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(20,67,67,.98),rgba(18,49,77,.98));
  box-shadow:0 10px 30px rgba(0,0,0,.42),0 0 18px rgba(72,219,198,.18);
  color:#f2f6ec;
  font-size:14px;
  line-height:1.55;
  pointer-events:none;
  opacity:0;
  transform:translateY(5px) scale(.98);
  transition:opacity .14s ease,transform .14s ease
}
.city-recommendation-bubble.is-visible {
  opacity:1;
  transform:translateY(0) scale(1)
}
.city-recommendation-bubble::after {
  content:"";
  position:absolute;
  left:var(--bubble-arrow-x,50%);
  width:12px;
  height:12px;
  background:#164548;
  border-right:1px solid #70d9c8;
  border-bottom:1px solid #70d9c8;
  transform:translateX(-50%) rotate(45deg)
}
.city-recommendation-bubble[data-placement="top"]::after {
  bottom:-7px
}
.city-recommendation-bubble[data-placement="bottom"]::after {
  top:-7px;
  transform:translateX(-50%) rotate(225deg)
}
.city-recommendation-bubble-label {
  display:block;
  margin-bottom:3px;
  color:#79e2cf;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em
}
.city-recommendation-bubble-text {
  display:block;
  overflow-wrap:anywhere
}
.city-info-note {
  display:block;
  margin-top:4px;
  padding-top:3px;
  border-top:1px solid #34424d;
  color:#a6b0b7;
  font-size:8px;
  line-height:1.3
}
.city-info-station-status {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:6px;
  margin-top:8px;
  padding:6px 0 0;
  border-top:1px solid #34424d
}
.city-info-station-status strong {
  color:#b7c8cf;
  font-size:9px;
  white-space:nowrap
}
.city-info-station-options {
  display:flex;
  justify-content:flex-end;
  gap:4px
}
.city-info-station-options button {
  min-height:28px;
  padding:4px 8px;
  border:1px solid #435663;
  border-radius:6px;
  background:#172632;
  color:#c8d4d9;
  font-size:9px;
  font-weight:700;
  white-space:nowrap
}
.city-info-station-options button[aria-pressed="true"] {
  border-color:#64d4c2;
  background:#1b514d;
  color:#eafffa;
  box-shadow:inset 0 0 0 1px #64d4c244
}
.city-info-station-options button[data-city-station-status="no"][aria-pressed="true"] {
  border-color:#dfa16e;
  background:#50382d;
  color:#fff0df
}
.city-info-station-status small {
  grid-column:1/-1;
  color:#8fa1a9;
  font-size:8px;
  line-height:1.3
}
.city-info-card.heritage-info-card {
  width:min(440px,calc(100vw - 32px));
  max-height:min(70vh,700px);
  padding:13px 15px
}
.heritage-info-card.is-poi-anchored:before {
  display:none
}
.heritage-info-visual {
  position:relative;
  height:148px;
  margin:10px 0 11px;
  overflow:hidden;
  border:1px solid #455967;
  border-radius:6px;
  background:#17232e
}
.heritage-info-visual img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 52%
}
.heritage-info-visual span {
  position:absolute;
  right:7px;
  bottom:7px;
  padding:4px 7px;
  border:1px solid #ffffff48;
  border-radius:4px;
  background:#0c1720d9;
  color:#e8eeee;
  font-size:8px;
  line-height:1.25
}
.heritage-classification {
  display:grid;
  gap:6px
}
.heritage-classification-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px
}
.heritage-classification-grid>div {
  display:grid;
  align-content:start;
  gap:3px;
  min-height:42px;
  padding:6px;
  border:1px solid #394c59;
  border-radius:4px;
  background:#15232e
}
.heritage-classification-grid>div.active {
  border-color:#67d8c7;
  background:#1b3b41;
  box-shadow:inset 0 0 0 1px #67d8c733
}
.heritage-classification-grid b {
  color:#f2dc8f;
  font-size:9px
}
.heritage-classification-grid small {
  margin-left:3px;
  color:#8fe1d3;
  font-size:8px;
  font-weight:600
}
.heritage-classification-grid span {
  color:#b8c4ca;
  font-size:8px;
  line-height:1.35
}
.heritage-category-current {
  color:#e2e7e9;
  font-size:10px!important
}
.heritage-classification-source {
  justify-self:start;
  color:#8ce1d2;
  font-size:8px;
  text-decoration:underline;
  text-underline-offset:2px
}
.heritage-criteria {
  margin-top:7px;
  padding:7px 9px;
  border:1px solid #394c59;
  border-radius:4px;
  background:#13212b;
  color:#d3dfe2;
  font-size:9px
}
.heritage-criteria summary {
  color:#8ce1d2;
  font-weight:700;
  cursor:pointer
}
.heritage-criteria p {
  margin:6px 0 0;
  color:#c8d2d5;
  font-size:9px;
  line-height:1.5
}
.heritage-criteria a {
  color:#8ce1d2;
  text-decoration:underline;
  text-underline-offset:2px
}
.city-info-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:9px
}
.heritage-info-actions {
  justify-content:space-between;
  gap:7px
}
.heritage-info-record {
  min-height:36px;
  padding:7px 12px;
  border:1px solid #f0d34b;
  border-radius:7px;
  background:#f0d34b;
  color:#172330;
  font-size:11px;
  font-weight:800
}
.city-info-ask,.railway-route-ask,.railway-station-route-ask,#flightFocusAsk {
  min-height:36px;
  padding:7px 12px;
  border:1px solid #75dfd0;
  border-radius:8px 4px 8px 4px;
  background:linear-gradient(125deg,#fff5b833,transparent 44%),linear-gradient(135deg,#227c76,#285aa0);
  color:#f5fffc;
  font-size:11px;
  font-weight:800;
  box-shadow:inset 0 1px #ffffff66,0 4px 12px #167f7655;
  transition:transform .15s,filter .15s,box-shadow .15s
}
.city-info-ask:hover,.railway-route-ask:hover,.railway-station-route-ask:hover:not(:disabled),#flightFocusAsk:hover {
  transform:translateY(-1px);
  filter:brightness(1.12);
  box-shadow:inset 0 1px #ffffff99,0 7px 18px #167f7677
}
.city-info-ask:focus-visible,.railway-route-ask:focus-visible,.railway-station-route-ask:focus-visible,#flightFocusAsk:focus-visible {
  outline:2px solid #fff2a6;
  outline-offset:2px
}
.railway-station-route-ask:disabled {
  cursor:not-allowed;
  filter:saturate(.35);
  opacity:.55
}
.openrouter-dialog {
  width:min(560px,calc(100vw - 24px));
  max-width:none;
  max-height:min(88dvh,760px);
  padding:0;
  overflow:hidden;
  border:1px solid #5b7482;
  border-radius:15px;
  background:radial-gradient(circle at 100% 0%,#24414caa,transparent 42%),linear-gradient(155deg,#14212e,#101923 72%);
  color:#e8edf0;
  box-shadow:0 25px 90px #06111dcc
}
.openrouter-dialog::backdrop {
  background:#07111ac9;
  backdrop-filter:blur(5px)
}
.openrouter-shell {
  display:flex;
  max-height:min(88dvh,760px);
  flex-direction:column;
  padding:17px
}
.openrouter-heading {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 0 12px;
  border-bottom:1px solid #3a5361
}
.openrouter-heading-copy {
  display:grid;
  flex:1;
  gap:2px;
  min-width:0
}
.openrouter-heading-copy small {
  color:#74dfcf;
  font:800 9px 'DM Mono',monospace;
  letter-spacing:.16em
}
.openrouter-heading-copy h2 {
  margin:0;
  color:#f4f1e9;
  font-size:19px;
  line-height:1.3
}
.openrouter-context {
  margin:10px 0;
  padding:8px 10px;
  border-left:3px solid #ffd15b;
  border-radius:0 6px 6px 0;
  background:#1a2d39;
  color:#c3d4d9;
  font-size:10px;
  line-height:1.45
}
.openrouter-context[hidden] {
  display:none
}
.openrouter-presets {
  margin:0 0 9px
}
.openrouter-presets[hidden] {
  display:none
}
.openrouter-presets-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 6px;
  color:#9fc1bf;
  font-size:10px;
  font-weight:800
}
.openrouter-presets-heading small {
  color:#879da5;
  font-size:9px;
  font-weight:500
}
.openrouter-preset-list {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.openrouter-preset {
  min-height:34px;
  padding:6px 10px;
  border:1px solid #527d78;
  border-radius:99px;
  background:linear-gradient(135deg,#1b403d,#1b3040);
  color:#dbfff4;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:filter .15s,transform .15s,border-color .15s
}
.openrouter-preset:hover {
  transform:translateY(-1px);
  border-color:#8fe7d0;
  filter:brightness(1.12)
}
.openrouter-preset:focus-visible {
  outline:2px solid #ffe071;
  outline-offset:2px
}
.openrouter-messages {
  display:flex;
  min-height:150px;
  max-height:38dvh;
  flex-direction:column;
  gap:8px;
  overflow:auto;
  padding:3px 2px 10px;
  overscroll-behavior:contain
}
.openrouter-message {
  max-width:92%;
  padding:9px 11px;
  border:1px solid #3a5361;
  border-radius:10px 10px 10px 3px;
  background:#182936;
  color:#e8edf0;
  font-size:12px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.openrouter-message.user {
  align-self:flex-end;
  border-color:#478b83;
  border-radius:10px 10px 3px 10px;
  background:#1d4944
}
.openrouter-message.error {
  border-color:#995e55;
  background:#422b30;
  color:#ffe0d7
}
.openrouter-message.pending {
  color:#9fb5ba;
  font-style:italic
}
.openrouter-empty {
  margin:auto;
  color:#9aadb4;
  font-size:11px;
  line-height:1.6;
  text-align:center
}
.openrouter-compose {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
  padding-top:9px;
  border-top:1px solid #344b58
}
.openrouter-compose textarea,.openrouter-field input,.openrouter-field select {
  width:100%;
  border:1px solid #425b69;
  border-radius:7px;
  background:#111e29;
  color:#edf4f4;
  font-size:12px;
  outline:none
}
.openrouter-compose textarea {
  min-height:44px;
  max-height:115px;
  resize:vertical;
  padding:9px 10px;
  line-height:1.45
}
.openrouter-field input,.openrouter-field select {
  min-height:38px;
  padding:8px 10px
}
.openrouter-field select {
  color-scheme:dark
}
.openrouter-compose textarea:focus,.openrouter-field input:focus,.openrouter-field select:focus {
  border-color:#75dfd0;
  box-shadow:0 0 0 2px #75dfd033
}
.openrouter-send,.openrouter-save {
  min-height:40px;
  padding:8px 13px;
  border:1px solid #ffe08b;
  border-radius:8px 4px 8px 4px;
  background:linear-gradient(135deg,#ffe77b,#ffb331 58%,#f07149);
  color:#2a2921;
  font-size:11px;
  font-weight:900;
  box-shadow:inset 0 1px #fff9,0 4px 13px #e58a3855
}
.openrouter-send:disabled {
  cursor:not-allowed;
  filter:grayscale(.7);
  opacity:.55
}
.openrouter-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:7px;
  color:#9eb0b6;
  font-size:9px
}
.openrouter-tool-button,.openrouter-close {
  min-height:32px;
  padding:6px 9px;
  border:1px solid #435c68;
  border-radius:6px;
  background:#162633;
  color:#d5e0e2;
  font-size:10px;
  font-weight:700
}
.openrouter-tool-button:hover,.openrouter-close:hover {
  border-color:#74dfcf;
  color:#9af2e2
}
.openrouter-settings {
  margin-top:10px;
  border:1px solid #354e5b;
  border-radius:8px;
  background:#13212d
}
.openrouter-settings summary {
  padding:9px 10px;
  color:#d6e4e5;
  font-size:11px;
  font-weight:800;
  cursor:pointer
}
.openrouter-settings-body {
  padding:0 10px 10px
}
.openrouter-settings-note {
  margin:0 0 8px;
  color:#a7b8bd;
  font-size:9px;
  line-height:1.55
}
.openrouter-settings-note a {
  color:#87e7d7;
  text-decoration:underline;
  text-underline-offset:2px
}
.openrouter-field {
  display:block;
  margin:8px 0
}
.openrouter-field span {
  display:block;
  margin:0 0 4px;
  color:#9eb0b6;
  font-size:9px;
  font-weight:700
}
.openrouter-settings-actions {
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:8px
}
.openrouter-status {
  min-height:14px;
  margin:7px 0 0;
  color:#78ddc9;
  font-size:9px;
  line-height:1.45
}
.openrouter-status.error {
  color:#ff9f8c
}
.openrouter-key-state {
  color:#a4b9ba;
  font-size:9px
}
.openrouter-key-state.ready {
  color:#83e5c4
}
.openrouter-close {
  width:34px;
  height:34px;
  padding:0;
  font-size:20px
}
@media(max-width:680px) {
  .city-info-card {
    right:8px;
    bottom:55px;
    width:min(330px,calc(100vw - 16px));
    max-height:min(42dvh,300px);
    padding:10px 11px
  }
  #cityInfoCard {
    right:8px;
    bottom:55px;
    width:min(400px,calc(100vw - 16px));
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    padding:9px 10px
  }
  .city-info-header strong {
    font-size:14px
  }
  .city-info-recommendations {
    gap:4px 6px
  }
  .city-info-recommendations>section {
    padding:4px 6px
  }
}
@media(max-width:680px) {
  .top-actions #openRouterSettingsBtn {
    display:inline-flex;
    padding:7px 9px;
    font-size:9px
  }
}
@media(max-width:520px) {
  .openrouter-shell {
    padding:13px;
    overflow-y:auto
  }
  .openrouter-messages {
    min-height:120px;
    max-height:34dvh
  }
  .openrouter-compose {
    grid-template-columns:minmax(0,1fr)
  }
  .openrouter-send {
    justify-self:end;
    min-width:100px
  }
  .openrouter-dialog,.openrouter-shell {
    max-height:90dvh
  }
  .openrouter-preset {
    min-height:38px;
    padding:7px 10px
  }
}
@media(min-width:901px) {
  .map-column .map-legend {
    top:66px
  }
  .map-column .leaflet-top.leaflet-right {
    top:120px;
    right:350px
  }
  .map-column .map-status {
    top:69px
  }
  .side .place-item {
    min-height:73px
  }
}

/* mobile-screen-optimization */
.layer-control-minimized .leaflet-control-layers-toggle {
  display:none!important
}
@media(max-width:680px) {
  .page {
    width:100%;
    height:100dvh;
    overflow:hidden
  }
  .topline {
    top:max(6px,env(safe-area-inset-top));
    left:8px;
    right:8px
  }
  .top-actions {
    translate:0 0!important
  }
  .map-legend {
    top:48px;
    left:8px;
    right:122px;
    transform:none;
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:7px;
    width:auto;
    max-width:none;
    height:32px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    padding:6px 8px;
    pointer-events:auto;
    touch-action:pan-x
  }
  .map-legend::-webkit-scrollbar {
    display:none
  }
  .map-legend>span {
    flex:0 0 auto
  }
  .leaflet-top.leaflet-right {
    top:48px;
    right:8px;
    z-index:805
  }
  .leaflet-top.leaflet-left {
    top:100px;
    left:8px
  }
  .layer-control-button {
    min-height:40px;
    padding-inline:9px
  }
  .map-column:has(.leaflet-control-layers-expanded) .map-legend {
    display:none
  }
  .map-column:has(.leaflet-control-layers-expanded):has(.railway-route-panel:not([hidden])) .leaflet-top.leaflet-left {
    display:none
  }
  .leaflet-control-zoom a {
    width:36px!important;
    height:36px!important;
    line-height:36px!important;
    font-size:20px!important
  }
  .leaflet-control-zoom-level {
    width:36px;
    height:24px;
    font-size:10px
  }
  .leaflet-control-layers-toggle {
    width:40px!important;
    height:40px!important;
    background-position:center!important
  }
  .map-status:not(.error) {
    display:none
  }
  .map-status.error {
    top:91px;
    left:52px;
    max-width:calc(100vw - 60px)
  }
  .map-hint {
    display:none;
    top:auto;
    bottom:calc(60dvh + env(safe-area-inset-bottom) + 16px);
    left:8px;
    max-width:calc(100vw - 16px);
    transform:none;
    white-space:normal;
    text-align:center
  }
  .map-column.adding .map-hint {
    display:block
  }
  .railway-route-panel,.railway-route-panel:has(.railway-route-result:not([hidden])) {
    position:fixed!important;
    box-sizing:border-box;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(env(safe-area-inset-bottom) + 8px)!important;
    width:auto!important;
    height:auto!important;
    max-height:min(60dvh,560px);
    padding:9px 10px;
    border-radius:15px 15px 9px 9px;
    transform:none!important;
    translate:none!important
  }
  .railway-route-heading {
    position:sticky;
    top:-9px;
    z-index:4;
    min-height:44px;
    padding:5px 0;
    background:#0d1824f5
  }
  .railway-route-panel {
    z-index:1300!important
  }
  .railway-route-close {
    box-sizing:border-box;
    flex:0 0 44px;
    width:44px;
    height:44px
  }
  .railway-route-dismiss {
    box-sizing:border-box;
    flex:0 0 44px;
    width:44px;
    height:44px
  }
  .railway-route-reset {
    min-height:44px
  }
  .railway-route-mode {
    min-height:48px
  }
  .railway-route-stop-slot {
    min-height:52px
  }
  .railway-route-via-row .railway-route-stop-slot {
    min-height:44px
  }
  .railway-route-result {
    gap:8px;
    padding:10px 11px
  }
  .railway-route-result .railway-route-stations {
    font-size:13px;
    line-height:1.4
  }
  .railway-route-result .railway-route-distance {
    font-size:clamp(22px,7vw,29px);
    line-height:1.1
  }
  .railway-route-result .railway-route-lines {
    font-size:10px;
    line-height:1.5
  }
  .railway-route-actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px
  }
  .railway-route-actions button {
    box-sizing:border-box;
    min-width:0;
    min-height:44px;
    padding:8px;
    font-size:11px
  }
  .railway-route-actions button:nth-child(3) {
    grid-column:1/-1
  }
  .railway-route-share-note {
    grid-column:1/-1;
    font-size:9px;
    line-height:1.4
  }
  .workspace>.side {
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(env(safe-area-inset-bottom) + 8px)!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    max-height:36dvh!important;
    overflow-y:auto!important;
    transform:none!important;
    translate:none!important
  }
  .workspace>.side[data-mobile-default-collapsed] {
    position:fixed!important;
    left:auto!important;
    right:8px!important;
    top:calc(env(safe-area-inset-top) + 138px)!important;
    bottom:auto!important;
    width:max-content!important;
    height:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    transform:none!important;
    translate:none!important
  }
  .workspace>.side[data-mobile-default-collapsed] .side-top,.workspace>.side[data-mobile-default-collapsed] .side-content {
    display:none!important
  }
  .workspace>.side[data-mobile-default-collapsed]>.side-expand {
    display:inline-flex
  }
  .workspace:has(.leaflet-control-layers:not(.layer-control-minimized))>.side[data-mobile-default-collapsed] {
    display:none
  }
  .workspace .side.side-minimized:not(.panel-user-moved),.workspace .side.side-minimized.panel-user-moved {
    position:fixed!important;
    left:auto!important;
    right:8px!important;
    top:calc(env(safe-area-inset-top) + 138px)!important;
    bottom:auto!important;
    width:max-content!important;
    height:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    max-height:none!important;
    overflow:visible!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    transform:none!important;
    translate:none!important
  }
  .workspace:has(.leaflet-control-layers:not(.layer-control-minimized))>.side.side-minimized {
    display:none
  }
  .workspace:has(.side:not(.side-minimized)) .leaflet-control-layers {
    display:none
  }
  .workspace:has(.side:not(.side-minimized)) .railway-route-reopen {
    left:auto;
    right:8px;
    top:calc(env(safe-area-inset-top) + 144px);
    bottom:auto
  }
  .railway-route-reopen {
    left:8px;
    right:auto;
    top:auto;
    bottom:calc(env(safe-area-inset-bottom) + 8px)
  }
  .railway-station-cluster-picker {
    width:min(330px,calc(100vw - 16px));
    max-height:min(44dvh,330px)
  }
  .leaflet-marker-icon.railway-station-cluster-icon {
    width:44px!important;
    height:44px!important
  }
  .railway-station-cluster-close {
    width:40px;
    height:40px
  }
  .modal-backdrop {
    align-items:flex-end;
    padding:8px 8px max(8px,env(safe-area-inset-bottom))
  }
  .modal {
    box-sizing:border-box;
    width:100%;
    max-width:520px;
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    overflow-y:auto;
    padding:18px;
    border-radius:15px 15px 9px 9px
  }
  .flight-focus-card {
    top:max(58px,calc(env(safe-area-inset-top) + 50px));
    left:8px;
    right:8px;
    transform:none;
    width:auto;
    max-height:min(32dvh,250px);
    overflow:auto
  }
  .city-info-card {
    right:8px;
    bottom:55px;
    width:min(330px,calc(100vw - 16px));
    max-height:min(32dvh,250px);
    padding:10px 11px
  }
  #cityInfoCard {
    right:8px;
    bottom:55px;
    width:min(400px,calc(100vw - 16px));
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    padding:9px 10px
  }
  #cityInfoCard.is-poi-anchored:before {
    display:none
  }
  .map-column:has(.railway-route-panel:not([hidden])):has(.railway-route-close[aria-expanded="true"]) #cityInfoCard {
    bottom:calc(60dvh + env(safe-area-inset-bottom) + 12px);
    max-height:min(55dvh,470px)
  }
  .leaflet-control-layers-expanded {
    width:min(240px,calc(100vw - 20px));
    max-width:calc(100vw - 20px)
  }
}
@media(max-width:380px) {
  .brand-stats {
    display:none
  }
  .top-actions {
    translate:0 0!important
  }
  .map-legend {
    right:112px;
    gap:5px;
    font-size:7px
  }
  .railway-route-panel,.railway-route-panel:has(.railway-route-result:not([hidden])) {
    padding:8px
  }
  .railway-route-result {
    padding:9px
  }
  .railway-route-actions button {
    font-size:10px
  }
}
@media(max-width:900px) and (max-height:540px) and (orientation:landscape) {
  .page:has(.railway-route-panel:not([hidden])) .topline {
    left:auto;
    width:auto
  }
  .page:has(.railway-route-panel:not([hidden])) .topline .brand {
    display:none
  }
  .railway-route-panel,.railway-route-panel:has(.railway-route-result:not([hidden])) {
    left:8px!important;
    right:auto!important;
    bottom:8px!important;
    width:min(390px,62vw)!important;
    max-height:calc(100dvh - 16px)
  }
  .map-column:has(.railway-route-panel:not([hidden])) .map-legend {
    display:none
  }
  .map-column:has(.railway-route-panel:not([hidden])) .leaflet-top.leaflet-left {
    left:auto;
    right:8px;
    top:200px
  }
  .map-column:has(.railway-route-panel:not([hidden])) .flight-focus-card,.map-column:has(.railway-route-panel:not([hidden])) .city-info-card {
    left:calc(min(390px,62vw) + 16px);
    right:8px;
    top:54px;
    bottom:8px;
    width:auto;
    max-width:none;
    max-height:calc(100dvh - 62px)
  }
}
@media(max-width:900px) {
  .map-column:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .leaflet-control-layers-expanded {
    display:none!important
  }
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) {
  position:fixed!important;
  z-index:1600!important;
  left:50%!important;
  right:auto!important;
  top:50%!important;
  bottom:auto!important;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:3px auto auto auto auto;
  gap:clamp(4px,.7dvh,8px);
  width:min(1100px,calc(100vw - 24px))!important;
  height:auto!important;
  max-height:calc(100dvh - 16px)!important;
  padding:clamp(7px,.9dvh,11px);
  overflow:visible!important;
  overscroll-behavior:contain;
  transform:translate(-50%,-50%)!important;
  translate:none!important
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))::before {
  grid-column:1/-1;
  grid-row:1;
  height:3px;
  margin:0
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-heading {
  grid-column:1/-1;
  grid-row:2;
  min-height:34px;
  margin:0;
  padding:0 1px 4px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-heading-icon {
  width:32px;
  height:32px;
  flex-basis:32px;
  font-size:19px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-heading strong {
  font-size:14px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-close {
  width:34px;
  height:34px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-heading {
  grid-column:1/-1;
  grid-row:2
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-mode {
  grid-template-columns:25px minmax(0,1fr);
  min-height:clamp(42px,6.5dvh,52px);
  gap:4px;
  padding:4px 6px;
  border-radius:7px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-mode-emoji {
  width:24px;
  height:24px;
  font-size:17px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-mode-name {
  font-size:clamp(9px,1.3vw,11px);
  letter-spacing:0;
  white-space:normal;
  line-height:1.1
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-stop-picker {
  grid-column:1/-1;
  grid-row:3;
  margin:0;
  padding:6px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-stop-heading {
  margin-bottom:4px;
  padding-bottom:4px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-stop-slot {
  min-height:44px;
  padding:5px 25px 5px 7px;
  gap:2px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-via-row {
  margin-top:5px;
  padding-top:5px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-via-row .railway-route-stop-slot {
  min-height:38px;
  padding-block:4px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-status {
  grid-column:1/-1;
  grid-row:4;
  margin:0;
  padding:4px 7px;
  font-size:9px;
  line-height:1.3
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-detail {
  grid-column:1;
  grid-row:5;
  min-width:0;
  min-height:0;
  margin:0;
  padding:7px;
  overflow:visible
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-detail-head {
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-detail-close {
  width:30px;
  height:30px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-detail-title {
  margin:1px 0 5px;
  font-size:clamp(13px,1.8vw,16px);
  line-height:1.25
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-detail-title small {
  margin-top:1px;
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-specs {
  gap:4px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-specs>div {
  padding:5px 6px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-specs dt {
  font-size:8px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-specs dd {
  margin-top:2px;
  font-size:10px;
  line-height:1.3
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-line-list {
  padding-left:12px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-line-list li+li {
  margin-top:1px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-assignment {
  margin-top:5px;
  padding:5px 6px;
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-station-route-ask {
  min-height:34px;
  margin-top:5px;
  padding:5px 7px;
  font-size:10px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-result {
  grid-column:2;
  grid-row:5;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:start;
  align-items:center;
  gap:5px 7px;
  min-width:0;
  min-height:0;
  margin:0;
  padding:7px;
  overflow:visible
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-kicker {
  grid-column:1/-1;
  min-height:14px;
  font-size:8px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-stations {
  grid-column:1/-1;
  font-size:clamp(10px,1.5vw,13px);
  line-height:1.35
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-distance {
  grid-column:1/-1;
  justify-self:start;
  font-size:clamp(20px,3vw,25px);
  line-height:1.05
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-lines {
  grid-column:1/-1;
  padding-top:5px;
  font-size:9px;
  line-height:1.4
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-result small {
  font-size:8px;
  line-height:1.35
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-progress,.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-message {
  padding:6px 7px;
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-detail-toggle {
  grid-column:1/-1;
  min-height:34px;
  padding:6px 7px;
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-itinerary {
  grid-column:1/-1;
  padding:7px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-itinerary-list {
  max-height:18dvh
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-actions {
  grid-column:1/-1;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin-top:0
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-actions button {
  min-height:34px;
  padding:5px;
  font-size:9px
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-actions button:nth-child(3),.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-share-note {
  grid-column:1/-1
}
.railway-route-panel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) .railway-route-share-note {
  font-size:8px;
  line-height:1.3
}

/* railway-ai-chat-tabs-and-markdown */
.railway-route-tabs {
  grid-column:1/-1;
  display:flex;
  gap:6px;
  margin:0;
  padding:4px;
  border:1px solid #2d4856;
  border-radius:9px;
  background:#101d29
}
.railway-route-tab {
  flex:1;
  min-height:34px;
  padding:6px 12px;
  border:1px solid #3a5664;
  border-radius:7px;
  background:#172735;
  color:#bdcdd1;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s
}
.railway-route-tab[aria-pressed="true"] {
  border-color:#7ce7d5;
  background:linear-gradient(120deg,#1e5d59,#23578d);
  color:#f2fffb;
  box-shadow:inset 0 1px #ffffff55,0 0 12px #42d9c533
}
.railway-route-tab:hover {
  border-color:#8de8db;
  color:#fff
}
.railway-route-tab:focus-visible {
  outline:2px solid #ffe56d;
  outline-offset:2px
}
.railway-route-ai-tabpanel {
  grid-column:1/-1;
  grid-row:4;
  display:flex;
  min-width:0;
  min-height:0;
  overflow:hidden
}
.railway-route-ai-tabpanel[hidden] {
  display:none
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden])) {
  grid-template-rows:3px auto auto auto auto auto
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))>.railway-route-tabs {
  grid-column:1/-1;
  grid-row:3
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))>.railway-route-stop-picker {
  grid-row:4
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))>.railway-route-status {
  grid-row:5
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))>.railway-station-detail {
  grid-row:6
}
#railwayRoutePanel:has(.railway-station-detail:not([hidden])):has(.railway-route-result:not([hidden]))>.railway-route-result {
  grid-row:6
}
#railwayRoutePanel[data-active-tab="ai"] {
  position:fixed!important;
  z-index:1600!important;
  left:50%!important;
  right:auto!important;
  top:50%!important;
  bottom:auto!important;
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:3px auto auto minmax(0,1fr)!important;
  gap:clamp(5px,.8dvh,9px);
  width:min(840px,calc(100vw - 20px))!important;
  height:min(88dvh,780px)!important;
  max-height:calc(100dvh - 16px)!important;
  padding:clamp(8px,1dvh,13px);
  overflow:hidden!important;
  background:rgba(13,24,36,.8)!important;
  transform:translate(-50%,-50%)!important;
  translate:none!important
}
#railwayRoutePanel[data-active-tab="ai"]::before {
  grid-column:1;
  grid-row:1;
  height:3px;
  margin:0
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-heading {
  grid-column:1;
  grid-row:2;
  min-width:0;
  min-height:34px;
  margin:0;
  padding:0 1px 5px
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-heading .railway-route-mode-buttons,#railwayRoutePanel[data-active-tab="ai"]>.railway-route-heading .railway-route-reset {
  display:none!important
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-tabs {
  grid-column:1;
  grid-row:3
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-tabs~:not(.railway-route-ai-tabpanel) {
  display:none!important
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-ai-tabpanel {
  grid-column:1;
  grid-row:4;
  display:flex;
  min-width:0;
  min-height:0;
  overflow:hidden
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-ai-tabpanel[hidden] {
  display:none
}
#railwayRoutePanel[data-active-tab="ai"]>.railway-route-ai-tabpanel .openrouter-shell {
  width:100%;
  height:100%;
  max-height:none;
  min-height:0;
  overflow:hidden;
  padding:5px 2px
}
#railwayRoutePanel[data-active-tab="ai"] .openrouter-messages {
  min-height:0;
  max-height:none;
  flex:1
}
#railwayRoutePanel[data-active-tab="ai"] .openrouter-settings {
  max-height:34%;
  overflow:auto;
  flex:0 1 auto
}
.openrouter-message {
  white-space:normal
}
.openrouter-message-body {
  min-width:0;
  overflow-wrap:anywhere
}
.openrouter-message-body> :first-child {
  margin-top:0
}
.openrouter-message-body> :last-child {
  margin-bottom:0
}
.openrouter-message.user .openrouter-message-body,.openrouter-message.error .openrouter-message-body,.openrouter-message.pending .openrouter-message-body {
  white-space:pre-wrap
}
.openrouter-message-body p {
  margin:0 0 .7em;
  white-space:pre-wrap
}
.openrouter-message-body h1,.openrouter-message-body h2,.openrouter-message-body h3,.openrouter-message-body h4 {
  margin:.85em 0 .4em;
  color:#f1f5e9;
  line-height:1.3
}
.openrouter-message-body h1 {
  font-size:1.35em
}
.openrouter-message-body h2 {
  font-size:1.2em
}
.openrouter-message-body h3,.openrouter-message-body h4 {
  font-size:1.08em
}
.openrouter-message-body ul,.openrouter-message-body ol {
  margin:.35em 0 .8em;
  padding-left:1.65em
}
.openrouter-message-body li {
  padding-left:.1em
}
.openrouter-message-body li+li {
  margin-top:.28em
}
.openrouter-message-body blockquote {
  margin:.55em 0;
  padding:.35em .75em;
  border-left:3px solid #75dfd0;
  background:#10212a;
  color:#bfd0d3
}
.openrouter-message-body pre {
  max-width:100%;
  margin:.6em 0;
  padding:9px 11px;
  overflow:auto;
  border:1px solid #354e5b;
  border-radius:7px;
  background:#0d1822;
  white-space:pre
}
.openrouter-message-body code {
  padding:.08em .3em;
  border-radius:4px;
  background:#0c1822;
  color:#ffe27a;
  font-family:Consolas,"SFMono-Regular",monospace;
  font-size:.92em
}
.openrouter-message-body pre code {
  padding:0;
  background:none;
  color:#e5eeee
}
.openrouter-message-body hr {
  margin:.8em 0;
  border:0;
  border-top:1px solid #405966
}
.openrouter-message-body table {
  display:block;
  max-width:100%;
  overflow:auto;
  border-collapse:collapse
}
.openrouter-message-body th,.openrouter-message-body td {
  padding:4px 7px;
  border:1px solid #405966;
  text-align:left
}
.openrouter-message-body th {
  background:#203743
}
.openrouter-message-body a {
  color:#8ce7d5;
  text-decoration:underline;
  text-underline-offset:2px
}
.openrouter-message {
  position:relative;
  padding-bottom:9px
}
.openrouter-copy-message {
  display:block;
  margin:7px 0 0 auto;
  padding:3px 8px;
  border:1px solid #496571;
  border-radius:5px;
  background:#10202b;
  color:#c4d7da;
  font-size:9px;
  font-weight:700;
  cursor:pointer
}
.openrouter-copy-message:hover,.openrouter-copy-message:focus-visible {
  border-color:#82e5d5;
  color:#fff
}
@media(max-width:680px) {
  #railwayRoutePanel[data-active-tab="ai"] {
    width:calc(100vw - 16px)!important;
    height:min(88dvh,760px)!important;
    max-height:calc(100dvh - 16px)!important;
    padding:8px
  }
  #railwayRoutePanel[data-active-tab="ai"] .openrouter-shell {
    padding:3px 0
  }
  .railway-route-tab {
    min-height:36px;
    padding:6px 8px;
    font-size:10px
  }
}
#railwayRoutePanel[data-collapsed="true"] {
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:3px auto!important;
  height:auto!important;
  max-height:none!important;
  gap:5px;
  padding:7px 10px;
  overflow:hidden!important
}
#railwayRoutePanel[data-collapsed="true"]::before {
  grid-column:1;
  grid-row:1;
  margin:0
}
#railwayRoutePanel[data-collapsed="true"]>.railway-route-heading {
  grid-column:1/-1;
  grid-row:2;
  min-height:32px;
  margin:0;
  padding:0;
  border:0
}
#railwayRoutePanel[data-collapsed="true"]>.railway-route-heading .railway-route-mode-buttons,#railwayRoutePanel[data-collapsed="true"]>.railway-route-heading .railway-route-reset {
  display:none!important
}
#railwayRoutePanel[data-collapsed="true"]>:not(.railway-route-heading) {
  display:none!important
}
#railwayRoutePanel .railway-route-close:hover {
  border-color:#83e5d5;
  background:#1a3a42;
  color:#fff
}

/* map-panel-background-opacity */
/* Keep every floating panel readable while letting the map show through at about 85% opacity. */
  .brand,.intro,.workspace .side,.map-legend,.map-head .caption,.map-footer,.map-status,.map-hint,
  .leaflet-control-layers,.leaflet-control-layers-expanded,.leaflet-control-zoom a,.leaflet-control-attribution,.toast,.city-recommendation-bubble,
  .leaflet-popup-content-wrapper,.leaflet-popup-tip,.city-info-card,.flight-focus-card,.modal,.share-dialog,
  .openrouter-dialog,.railway-station-cluster-picker,.airport-mode-panel {
  backdrop-filter:blur(8px)
}
.brand,.intro,.workspace .side,.map-legend,.map-head .caption,.map-footer,.map-status,.map-hint {
  background:rgba(17,27,39,.85)!important
}
.leaflet-control-layers,.leaflet-control-layers-expanded,.leaflet-control-zoom a {
  background:rgba(17,27,39,.85)!important
}
.leaflet-control-attribution,.toast {
  background:rgba(17,27,39,.85)!important
}
.city-recommendation-bubble {
  background:linear-gradient(145deg,rgba(20,67,67,.85),rgba(18,49,77,.85))!important
}
.leaflet-popup-content-wrapper,.leaflet-popup-tip {
  background:rgba(17,27,39,.85)!important
}
.railway-route-panel:not([data-active-tab="ai"]) {
  background:linear-gradient(155deg,rgba(20,33,46,.85),rgba(16,25,35,.85) 70%)!important
}
#railwayRoutePanel[data-active-tab="ai"] {
  background:rgba(13,24,36,.85)!important
}
.city-info-card,.flight-focus-card {
  background:rgba(16,24,32,.85)!important
}
.modal,.share-dialog {
  background:rgba(17,27,39,.85)!important
}
.openrouter-dialog {
  background:linear-gradient(155deg,rgba(20,33,46,.85),rgba(16,25,35,.85) 72%)!important
}
.railway-station-cluster-picker {
  background:linear-gradient(145deg,rgba(41,39,25,.85),rgba(23,35,46,.85) 76%)!important
}
.airport-mode-panel {
  background:linear-gradient(145deg,rgba(13,28,41,.85),rgba(16,39,50,.85) 70%)!important
}

/* map-exploration-menu */
.leaflet-control-layers.layer-control-game-menu:not(.layer-control-minimized) {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  width:min(470px,calc(100vw - 20px));
  height:54px;
  max-width:calc(100vw - 20px);
  padding:5px 7px;
  border:1px solid #526675!important;
  border-radius:13px!important;
  background:rgba(13,25,38,.85)!important;
  backdrop-filter:blur(12px);
  box-shadow:0 8px 24px #02070d88!important
}
.leaflet-control-layers.layer-control-game-menu:not(.layer-control-minimized):not(.layer-control-detail-mode) {
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  overflow:visible!important
}
.layer-control-game-menu .layer-control-heading {
  display:flex;
  align-items:center;
  gap:5px;
  width:100%;
  min-height:0;
  margin:0;
  padding:0;
  border:0
}
.layer-control-game-menu .layer-control-heading>strong {
  flex:none;
  color:#a9bec6;
  font-size:9px;
  letter-spacing:.02em;
  white-space:nowrap
}
.layer-control-game-menu .map-layer-detail-toggle {
  flex:0 0 34px;
  min-width:34px;
  min-height:35px;
  padding:3px;
  border-color:#496577;
  background:#1a2a37;
  color:#d9e7ec;
  font-size:9px
}
.layer-control-game-menu .map-layer-detail-toggle:hover {
  border-color:#65d6ca;
  background:#203a45;
  color:#fff
}
.layer-control-game-menu .layer-control-button:not(.map-layer-detail-toggle) {
  flex:0 0 29px;
  min-width:29px;
  min-height:35px;
  padding:3px
}
.layer-control-game-menu .leaflet-control-layers-list {
  display:none
}
.layer-control-game-menu.layer-control-detail-mode .leaflet-control-layers-list {
  display:block;
  margin-top:9px
}
.layer-control-game-menu.layer-control-detail-mode:not(.layer-control-minimized) {
  height:auto!important;
  min-height:54px;
  max-height:min(72dvh,620px);
  overflow-y:auto;
  flex-direction:column;
  align-items:stretch
}
.layer-control-game-menu.layer-control-detail-mode .layer-control-heading {
  position:sticky;
  top:0;
  z-index:2;
  flex:0 0 42px;
  background:rgba(13,25,38,.85)
}
.layer-control-game-menu.layer-control-detail-mode .layer-control-heading {
  justify-content:flex-start
}
.layer-control-game-menu.layer-control-detail-mode .layer-control-heading .map-layer-detail-toggle {
  margin-left:8px
}
.layer-control-game-menu.layer-control-detail-mode .layer-control-heading .layer-control-button:not(.map-layer-detail-toggle) {
  margin-left:auto
}
.layer-control-game-menu.layer-control-detail-mode .map-explore-menu,.layer-control-game-menu.layer-control-minimized .map-explore-menu {
  display:none
}
.map-visited-toggle {
  display:flex;
  align-items:center;
  gap:5px;
  margin:0 0 7px;
  color:#e4e8e8;
  font-size:10px
}
.map-visited-toggle input {
  flex:none;
  margin:0;
  accent-color:#56cfc3
}
.map-visited-toggle label {
  margin:0;
  cursor:pointer
}
.map-explore-menu {
  display:flex;
  flex:1;
  align-items:center;
  gap:4px;
  min-width:0;
  color:#e8eff0;
  font:600 10px/1.2 'DM Sans','Noto Sans JP','Yu Gothic UI',sans-serif
}
.map-legend {
  pointer-events:auto
}
.map-legend-drag-handle {
  display:inline-grid;
  flex:0 0 14px;
  place-items:center;
  width:14px;
  height:16px;
  border-radius:4px;
  color:#a9bec6;
  font-size:14px;
  line-height:1;
  cursor:grab;
  touch-action:none;
  user-select:none
}
.map-legend-drag-handle:active {
  cursor:grabbing
}
.map-legend-drag-handle:focus-visible {
  outline:2px solid #ffdc61;
  outline-offset:1px
}
.map-explore-presets {
  display:flex;
  flex:1;
  align-items:center;
  gap:4px;
  min-width:0
}
.map-explore-preset {
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  min-height:37px;
  padding:4px 7px;
  border:1px solid #344b5a;
  border-radius:9px;
  background:linear-gradient(145deg,#1b2d3a,#152330);
  color:#dbe8ea;
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .16s,background .16s,box-shadow .16s
}
.map-explore-preset:hover {
  border-color:#66cec6;
  background:linear-gradient(145deg,#1d3944,#182a39)
}
.map-explore-preset:focus-visible {
  outline:2px solid #ffdc61;
  outline-offset:2px
}
.map-explore-preset.is-active {
  border-color:#70e2d3;
  background:linear-gradient(120deg,#19544f,#205885);
  box-shadow:inset 0 0 0 1px #70e2d344;
  color:#fff
}
.map-explore-preset-icon {
  font-size:13px;
  line-height:1
}
.map-explore-preset-label {
  overflow:hidden;
  text-overflow:ellipsis
}
.layer-control-minimized .map-explore-menu {
  display:none!important
}
#railwayRoutePanel:not(.panel-user-moved) {
  left:50%;
  right:auto;
  bottom:18px;
  transform:translateX(-50%)
}
#railwayRouteReopen {
  position:absolute;
  z-index:840;
  left:50%;
  right:auto;
  bottom:20px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:min(370px,calc(100% - 32px));
  min-height:88px;
  padding:12px 16px;
  border:2px solid #fff0a0;
  border-radius:18px 7px 18px 7px;
  background:linear-gradient(120deg,#ffe76c,#ffc040 58%,#ff9b36);
  color:#142330;
  text-align:left;
  box-shadow:0 12px 32px #06111daa,0 0 0 4px #142330aa,0 0 28px #ffcc4b88;
  font:800 14px 'DM Sans','Yu Gothic UI',sans-serif;
  transform:translateX(-50%);
  transition:transform .16s,box-shadow .16s,border-color .16s
}
#railwayRouteReopen:hover {
  border-color:#fff9d5;
  box-shadow:0 16px 36px #06111dcc,0 0 0 5px #142330bb,0 0 38px #ffe277bb;
  transform:translate(-50%,-3px)
}
#railwayRouteReopen:focus-visible {
  outline:3px solid #61e3d4;
  outline-offset:4px
}
.railway-route-reopen-icon {
  display:grid;
  width:52px;
  height:52px;
  place-items:center;
  border:1px solid #fff5c4;
  border-radius:14px 5px 14px 5px;
  background:#182b38;
  color:#fff;
  font-size:30px;
  box-shadow:inset 0 -4px #0c1921
}
.railway-route-reopen-copy {
  display:grid;
  gap:4px;
  min-width:0
}
.railway-route-reopen-copy strong {
  font-size:16px;
  letter-spacing:.04em
}
.railway-route-reopen-copy small {
  color:#49535a;
  font-size:10px;
  font-weight:700
}
.railway-route-reopen-cta {
  display:flex;
  align-items:center;
  gap:5px;
  color:#2c3a3c;
  font-size:10px;
  white-space:nowrap
}
.railway-route-reopen-cta b {
  display:grid;
  width:24px;
  height:24px;
  place-items:center;
  border-radius:50%;
  background:#152a36;
  color:#ffdc63;
  font-size:14px
}
#concentrationModeLaunchers {
  position:absolute;
  z-index:840;
  left:50%;
  bottom:20px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:min(740px,calc(100vw - 32px));
  transform:translateX(-50%)
}
#concentrationModeLaunchers[hidden] {
  display:none!important
}
#concentrationModeLaunchers #railwayRouteReopen,#concentrationModeLaunchers #airportModeReopen,#concentrationModeLaunchers #cityModeReopen {
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 74px;
  align-items:center;
  box-sizing:border-box;
  width:auto;
  min-height:84px;
  padding:12px 16px;
  border-width:2px;
  transform:none
}
#concentrationModeLaunchers .railway-route-reopen-cta {
  justify-self:end
}
#concentrationModeLaunchers #railwayRouteReopen:hover,#concentrationModeLaunchers #airportModeReopen:hover {
  transform:translateY(-3px)
}
#concentrationModeLaunchers #railwayRouteReopen {
  border-radius:15px 5px 5px 15px
}
#airportModeReopen {
  border-color:#a5fff0;
  background:linear-gradient(120deg,#75ead2,#41b8bd 56%,#3a87ba);
  box-shadow:0 12px 32px #06111daa,0 0 0 4px #142330aa,0 0 26px #59dbce66
}
#airportModeReopen:hover {
  border-color:#e0fff7;
  box-shadow:0 16px 36px #06111dcc,0 0 0 5px #142330bb,0 0 36px #75f5e1aa
}
#airportModeReopen .railway-route-reopen-icon {
  border-color:#d6fff6;
  background:#1c3945;
  color:#9fffea
}
#airportModeReopen .railway-route-reopen-cta b {
  background:#173746;
  color:#9fffea
}
@media(min-width:1100px) {
  #concentrationModeLaunchers {
    left:max(16px,calc((100% - 1222px)/2));
    width:min(740px,calc(100% - 514px));
    transform:none
  }
  .map-column .leaflet-top.leaflet-right {
    top:112px!important;
    right:8px!important;
    bottom:auto!important
  }
  .map-column .leaflet-top.leaflet-right .leaflet-control {
    margin:0
  }
  .topline {
    gap:12px;
    justify-content:flex-start
  }
  .topline>.map-legend {
    position:relative;
    inset:auto;
    transform:none;
    box-sizing:border-box;
    flex:0 1 auto;
    min-width:0;
    width:max-content;
    height:32px;
    max-width:calc(100% - 220px);
    margin-left:auto;
    margin-right:0;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap;
    scrollbar-width:none;
    touch-action:pan-x;
    padding:5px 10px
  }
  .topline>.map-legend::-webkit-scrollbar {
    display:none
  }
  .top-actions #openRouterSettingsBtn {
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:32px;
    min-height:32px;
    padding-block:0;
    white-space:nowrap
  }
}
.airport-mode-panel {
  position:absolute;
  z-index:1300;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  box-sizing:border-box;
  width:min(680px,calc(100vw - 24px));
  max-height:min(66vh,560px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:12px;
  border:1px solid #5b8390;
  border-radius:15px 5px 15px 5px;
  background:linear-gradient(145deg,#0d1c29f5,#102732f5 70%);
  color:#edf7f6;
  box-shadow:0 16px 42px #06111ddd,0 0 0 3px #17334099;
  backdrop-filter:blur(12px);
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.airport-mode-panel[hidden] {
  display:none!important
}
.airport-mode-heading {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 1px 8px;
  padding:0 1px 9px;
  border-bottom:1px solid #315360;
  cursor:grab;
  touch-action:none
}
.airport-mode-icon {
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border:1px solid #85e9dc;
  border-radius:12px 4px 12px 4px;
  background:linear-gradient(145deg,#245f6b,#1c3a51);
  color:#b6fff1;
  font-size:23px
}
.airport-mode-heading>div {
  display:grid;
  flex:1;
  min-width:0;
  gap:3px
}
.airport-mode-heading strong {
  font-size:16px;
  letter-spacing:.04em
}
.airport-mode-heading small {
  color:#83dace;
  font-size:10px
}
.airport-mode-heading button {
  display:grid;
  place-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid #587781;
  border-radius:8px;
  background:#142632;
  color:#deebeb;
  font-size:22px;
  line-height:1
}
.airport-mode-heading button:hover {
  border-color:#ff9a8d;
  background:#3b292e;
  color:white
}
.airport-mode-help {
  margin:0 2px 9px;
  color:#c0d1d5;
  font-size:11px;
  line-height:1.45
}
.airport-mode-tools {
  display:grid;
  grid-template-columns:minmax(150px,.8fr) minmax(0,1.6fr);
  align-items:end;
  gap:9px;
  margin-bottom:9px
}
.airport-mode-search {
  display:grid;
  gap:4px;
  color:#8de4d7;
  font-size:9px;
  font-weight:800
}
.airport-mode-search input {
  box-sizing:border-box;
  width:100%;
  min-height:37px;
  padding:7px 9px;
  border:1px solid #426271;
  border-radius:7px;
  background:#0c1823;
  color:#edf7f6;
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.airport-mode-search input:focus {
  outline:2px solid #72dbd0;
  outline-offset:1px
}
.airport-mode-filters {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px
}
.airport-mode-filters button {
  min-width:0;
  min-height:37px;
  padding:5px 6px;
  border:1px solid #3e5e69;
  border-radius:7px;
  background:#172d39;
  color:#c7d9dc;
  font-size:9px;
  font-weight:800;
  line-height:1.2
}
.airport-mode-filters button[aria-pressed=true] {
  border-color:#88eadc;
  background:linear-gradient(125deg,#206a69,#235988);
  color:#f0fffc;
  box-shadow:inset 0 0 0 1px #8df5e633
}
.airport-mode-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  max-height:220px;
  overflow:auto;
  overscroll-behavior:contain;
  padding:1px
}
.airport-mode-option {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
  min-height:52px;
  padding:6px 8px;
  border:1px solid #355565;
  border-radius:8px;
  background:linear-gradient(135deg,#1b3340,#142632);
  color:#e8f2f2;
  text-align:left
}
.airport-mode-option:hover {
  border-color:#86e7d8;
  background:linear-gradient(135deg,#24545a,#1a3e57)
}
.airport-mode-option.is-active {
  border-color:#ffe278;
  background:linear-gradient(135deg,#345354,#283d4d);
  box-shadow:inset 0 0 0 1px #ffe27855,0 0 12px #ffe27822
}
.airport-mode-option-code {
  display:grid;
  place-items:center;
  min-height:28px;
  border-radius:5px;
  background:#234d5b;
  color:#9cf3e5;
  font:900 12px 'DM Mono',monospace
}
.airport-mode-option-copy {
  display:grid;
  min-width:0;
  gap:2px
}
.airport-mode-option-copy strong,.airport-mode-option-copy small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.airport-mode-option-copy strong {
  font-size:10px
}
.airport-mode-option-copy small {
  color:#94afb7;
  font-size:8px
}
.airport-mode-option-count {
  color:#ffdc75;
  font-size:9px;
  font-weight:800;
  white-space:nowrap
}
.airport-mode-region {
  min-width:0;
  padding:5px;
  border:1px solid #34515d;
  border-radius:8px;
  background:rgba(7,20,28,.22)
}
.airport-mode-region-heading {
  margin:0 1px 4px;
  padding:0 1px 4px;
  border-bottom:1px solid #315360;
  color:#8de4d7;
  font-size:9px;
  font-weight:900;
  letter-spacing:.03em
}
.airport-mode-region-airports {
  display:grid;
  grid-template-columns:1fr;
  gap:4px
}
.airport-mode-empty {
  grid-column:1/-1;
  margin:0;
  padding:12px;
  border:1px dashed #3b5b68;
  border-radius:8px;
  color:#9db4ba;
  text-align:center
}
.airport-mode-note {
  display:block;
  margin:8px 2px 0;
  color:#8ea6ad;
  font-size:8px;
  line-height:1.4
}
@media(min-width:681px) {
  .airport-mode-panel {
    width:min(1180px,calc(100vw - 32px));
    max-height:none;
    overflow:visible
  }
  .airport-mode-list {
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:5px;
    max-height:none;
    overflow:visible
  }
  .airport-mode-option {
    grid-template-columns:36px minmax(0,1fr) auto;
    gap:6px;
    min-height:44px;
    padding:4px 6px
  }
}
@media(max-width:680px) {
  .leaflet-control-layers.layer-control-game-menu:not(.layer-control-minimized) {
    width:calc(100vw - 16px);
    max-width:calc(100vw - 16px);
    height:54px;
    padding:5px
  }
  .layer-control-game-menu .layer-control-heading {
    gap:3px
  }
  .layer-control-game-menu .layer-control-heading>strong {
    font-size:8px
  }
  .layer-control-game-menu .map-layer-detail-toggle {
    flex-basis:30px;
    min-width:30px;
    min-height:35px;
    font-size:8px
  }
  .layer-control-game-menu .layer-control-button:not(.map-layer-detail-toggle) {
    flex-basis:27px;
    min-width:27px;
    min-height:35px
  }
  .map-explore-menu,.map-explore-presets {
    gap:3px
  }
  .map-explore-preset {
    gap:3px;
    min-height:36px;
    padding-inline:5px;
    font-size:9px
  }
  #concentrationModeLaunchers {
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(env(safe-area-inset-bottom) + 8px);
    width:auto;
    gap:7px;
    transform:none
  }
  #concentrationModeLaunchers #railwayRouteReopen,#concentrationModeLaunchers #airportModeReopen {
    grid-template-columns:38px minmax(0,1fr);
    gap:7px;
    min-height:74px;
    padding:8px;
    border-radius:12px 5px 5px 12px
  }
  #concentrationModeLaunchers .railway-route-reopen-icon {
    width:36px;
    height:36px;
    font-size:22px;
    border-radius:9px
  }
  #concentrationModeLaunchers .railway-route-reopen-copy {
    gap:2px
  }
  #concentrationModeLaunchers .railway-route-reopen-copy strong {
    font-size:clamp(9px,2.8vw,12px);
    line-height:1.2;
    white-space:normal
  }
  #concentrationModeLaunchers .railway-route-reopen-copy small,#concentrationModeLaunchers .railway-route-reopen-cta {
    display:none
  }
  .airport-mode-panel {
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(env(safe-area-inset-bottom) + 8px);
    transform:none;
    width:auto;
    max-height:min(54dvh,450px);
    padding:9px;
    border-radius:13px 13px 7px 7px
  }
  .airport-mode-heading {
    min-height:42px;
    margin-bottom:6px;
    padding-bottom:6px
  }
  .airport-mode-icon {
    flex-basis:34px;
    width:34px;
    height:34px;
    font-size:20px
  }
  .airport-mode-heading strong {
    font-size:13px
  }
  .airport-mode-heading button {
    flex-basis:42px;
    width:42px;
    height:42px
  }
  .airport-mode-help {
    margin-bottom:6px;
    font-size:10px
  }
  .airport-mode-tools {
    grid-template-columns:minmax(0,1fr);
    gap:6px;
    margin-bottom:6px
  }
  .airport-mode-search {
    grid-template-columns:70px minmax(0,1fr);
    align-items:center;
    gap:6px
  }
  .airport-mode-search input {
    min-height:36px
  }
  .airport-mode-filters {
    gap:3px
  }
  .airport-mode-filters button {
    min-height:34px;
    padding:4px 2px;
    font-size:8px
  }
  .airport-mode-list {
    grid-template-columns:1fr;
    gap:4px;
    max-height:18dvh
  }
  .airport-mode-option {
    min-height:44px;
    padding:4px 6px
  }
  .airport-mode-note {
    margin-top:5px
  }
  #railwayRoutePanel:not(.panel-user-moved) {
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(env(safe-area-inset-bottom) + 8px)!important;
    width:auto!important;
    height:auto!important;
    transform:none!important;
    translate:none!important
  }
  #railwayRouteReopen {
    position:fixed;
    left:50%;
    right:auto;
    bottom:calc(env(safe-area-inset-bottom) + 14px);
    width:min(370px,calc(100vw - 32px));
    min-height:84px;
    padding:10px 13px;
    transform:translateX(-50%)
  }
  #railwayRouteReopen:hover {
    transform:translate(-50%,-3px)
  }
  .railway-route-reopen-icon {
    width:50px;
    height:50px;
    font-size:28px
  }
  .railway-route-reopen-copy strong {
    font-size:15px
  }
}
.map-column:has(#railwayRoutePanel:not([hidden]))::before {
  display:none!important
}
.map-column:has(#airportModePanel:not([hidden]))::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1400;
  background:rgba(4,10,19,.48);
  backdrop-filter:blur(1px);
  pointer-events:auto
}
#railwayRoutePanel:not([hidden]),.airport-mode-panel:not([hidden]),.city-mode-panel:not([hidden]) {
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  translate:none!important;
  margin:0!important;
  z-index:1500!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:auto!important
}
#railwayRoutePanel:not([hidden]) {
  width:min(680px,calc(100vw - 24px))!important
}
.airport-mode-panel:not([hidden]) {
  width:min(1180px,calc(100vw - 24px))!important
}
#railwayRoutePanel[data-collapsed="true"]:not([hidden]) {
  box-sizing:border-box;
  width:max-content!important;
  max-width:calc(100vw - 24px)!important;
  min-width:0!important;
  height:auto!important;
  max-height:none!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  padding:6px 9px!important;
  gap:0!important;
  grid-template-rows:auto!important;
  transform:translate(-50%,-50%)!important;
  overflow:hidden!important
}
#railwayRoutePanel[data-collapsed="true"]::before {
  display:none!important
}
#railwayRoutePanel[data-collapsed="true"]>.railway-route-heading {
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:0!important
}
/* Airport concentration mode: match the navy and yellow airport card. */
#concentrationModeLaunchers #railwayRouteReopen {
  border-color:#a5fff0;
  background:linear-gradient(120deg,#75ead2,#41b8bd 56%,#3a87ba);
  color:#102a36;
  box-shadow:0 12px 32px #06111daa,0 0 0 4px #142330aa,0 0 26px #59dbce66
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-icon {
  border-color:#d6fff6;
  background:#1c3945;
  color:#9fffea
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-copy small {
  color:#123b48
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-cta {
  color:#102a36
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-cta b {
  background:#173746;
  color:#9fffea
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-copy strong {
  color:#061824;
  font-size:17px;
  font-weight:950;
  line-height:1.25;
  text-shadow:none
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-copy small {
  color:#061824;
  font-size:13px;
  font-weight:850;
  line-height:1.35;
  text-shadow:none
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-cta {
  color:#061824;
  font-size:13px;
  font-weight:950;
  text-shadow:none
}
#concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-cta b {
  background:#102e3a;
  color:#b7fff1
}
#concentrationModeLaunchers #airportModeReopen,#concentrationModeLaunchers #tripModeReopen {
  border-color:#b49c47;
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(32,40,50,.85));
  color:#f5f1dc;
  box-shadow:0 12px 32px #06111daa,0 0 0 4px #142330aa,0 0 24px #ffdc1333
}
#concentrationModeLaunchers #airportModeReopen:hover,#concentrationModeLaunchers #tripModeReopen:hover {
  border-color:#ffdc13;
  box-shadow:0 16px 36px #06111dcc,0 0 0 5px #142330bb,0 0 32px #ffdc1355
}
#concentrationModeLaunchers #airportModeReopen .railway-route-reopen-icon {
  border-color:#ffe96a;
  background:#ffdc13;
  color:#17212b
}
#concentrationModeLaunchers #airportModeReopen .railway-route-reopen-copy small {
  color:#eacb5c
}
#concentrationModeLaunchers #airportModeReopen .railway-route-reopen-cta {
  color:#f0d873
}
#concentrationModeLaunchers #airportModeReopen .railway-route-reopen-cta b {
  background:#ffdc13;
  color:#17212b
}
@media(max-width:680px) {
  #concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-copy strong .launcher-short {
    color:#061824;
    font-size:clamp(10px,3vw,12px);
    font-weight:950;
    line-height:1.2;
    text-shadow:none;
    white-space:nowrap
  }
}
@media(max-width:680px) {
  #concentrationModeLaunchers #railwayRouteReopen .railway-route-reopen-copy strong .launcher-short,#concentrationModeLaunchers #cityModeReopen .railway-route-reopen-copy strong .launcher-short,#concentrationModeLaunchers #airportModeReopen .railway-route-reopen-copy strong .launcher-short {
    font-size:clamp(10px,3vw,12px)
  }
}
.airport-mode-panel {
  border-color:#8f8045;
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(20,29,39,.85) 70%);
  color:#f5f1dc;
  box-shadow:0 16px 42px #06111ddd,0 0 0 3px #342f1e99
}
.airport-mode-heading {
  border-bottom-color:#49432f
}
.airport-mode-icon {
  border-color:#ffe96a;
  background:#ffdc13;
  color:#17212b;
  box-shadow:0 0 18px #ffdc1340
}
.airport-mode-heading small,.airport-mode-search,.airport-mode-region-heading {
  color:#eacb5c
}
.airport-mode-heading button {
  border-color:#6d6542;
  background:#202832;
  color:#f5f1dc
}
.airport-mode-heading button:hover {
  border-color:#ffdc13;
  background:#332e1c;
  color:#ffdc13
}
.airport-mode-heading #airportModeClose:hover {
  border-color:#ff9a8d;
  background:#3b292e;
  color:white
}
.airport-mode-help {
  color:#d1d3cc
}
.airport-mode-search input {
  border-color:#665c39;
  background:#111923;
  color:#f5f1dc
}
.airport-mode-search input:focus {
  outline-color:#ffdc13
}
.airport-mode-filters button {
  border-color:#514c3a;
  background:#202832;
  color:#d9d8cc
}
.airport-mode-filters button[aria-pressed=true] {
  border-color:#ffdc13;
  background:linear-gradient(125deg,#665719,#856329);
  color:#fff9dc;
  box-shadow:inset 0 0 0 1px #ffdc1340
}
.airport-mode-region {
  border-color:#4a4638;
  background:rgba(7,12,18,.28)
}
.airport-mode-region-heading {
  border-bottom-color:#49432f
}
.airport-mode-option {
  border-color:#41464a;
  background:linear-gradient(135deg,#202832,#171f29);
  color:#f5f1dc
}
.airport-mode-option:hover {
  border-color:#e6c94d;
  background:linear-gradient(135deg,#383521,#222a31)
}
.airport-mode-option.is-active {
  border-color:#ffdc13;
  background:linear-gradient(135deg,#3c3825,#222a31);
  box-shadow:inset 0 0 0 1px #ffdc1355,0 0 12px #ffdc1322
}
.airport-mode-option-code {
  background:#ffdc13;
  color:#18212b
}
.airport-mode-option-copy small,.airport-mode-note {
  color:#b5b6ad
}
.airport-mode-option-count {
  color:#ffdc13
}
.airport-mode-empty {
  border-color:#6b6240;
  color:#d1c99e
}
.airport-mode-restore {
  position:fixed;
  z-index:1450;
  left:50%;
  bottom:calc(env(safe-area-inset-bottom) + 16px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:8px 15px;
  border:1px solid #ffdc13;
  border-radius:999px;
  background:rgba(16,24,32,.85);
  color:#ffe35d;
  box-shadow:0 8px 24px #03080dc9;
  font:750 12px 'DM Sans','Yu Gothic UI',sans-serif;
  transform:translateX(-50%);
  cursor:pointer
}
.airport-mode-restore:hover {
  background:#242719;
  box-shadow:0 10px 30px #03080de0,0 0 18px #ffdc1340
}
.airport-mode-restore:focus-visible {
  outline:3px solid #fff0a0;
  outline-offset:3px
}
.airport-mode-restore[hidden] {
  display:none!important
}
@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
  }
  .airport-mode-restore {
    bottom:calc(env(safe-area-inset-bottom) + 12px);
    min-height:40px
  }
}
#concentrationModeLaunchers {
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(920px,calc(100vw - 32px))
}
#concentrationModeLaunchers .launcher-short {
  display:none
}
#concentrationModeLaunchers #railwayRouteReopen,#concentrationModeLaunchers #airportModeReopen,#concentrationModeLaunchers #cityModeReopen {
  grid-template-columns:44px minmax(0,1fr) 58px;
  gap:8px;
  min-height:76px;
  padding:9px 10px
}
#concentrationModeLaunchers .railway-route-reopen-icon {
  width:42px;
  height:42px;
  font-size:25px
}
#concentrationModeLaunchers .railway-route-reopen-copy strong {
  font-size:17px;
  line-height:1.25
}
#concentrationModeLaunchers .railway-route-reopen-copy small {
  font-size:13px
}
#concentrationModeLaunchers .railway-route-reopen-cta {
  font-size:13px
}
#cityModeReopen {
  border:2px solid #93caff;
  background:linear-gradient(125deg,#284e7a,#277e91);
  color:#effaff;
  box-shadow:0 12px 32px #06111daa,0 0 0 4px #142330aa,0 0 25px #63bce655
}
#cityModeReopen:hover {
  border-color:#d8f1ff;
  box-shadow:0 16px 36px #06111dcc,0 0 0 5px #142330bb,0 0 34px #79d6ff99
}
#cityModeReopen .railway-route-reopen-icon {
  border-color:#a9e0ff;
  background:#142f49;
  color:#a9e0ff
}
#cityModeReopen .railway-route-reopen-copy small,#cityModeReopen .railway-route-reopen-cta {
  color:#d2edff
}
#cityModeReopen .railway-route-reopen-cta b {
  background:#173746;
  color:#a9e0ff
}
.city-mode-panel {
  box-sizing:border-box;
  width:min(744px,calc(100vw - 32px));
  max-height:min(78dvh,700px);
  overflow:hidden;
  padding:13px;
  border:1px solid #628597;
  border-radius:14px 5px 14px 5px;
  background:linear-gradient(145deg,rgba(16,24,32,.85),rgba(27,44,57,.85) 72%);
  color:#edf7fa;
  box-shadow:0 16px 42px #06111ddd,0 0 0 3px #1d3b4a99;
  backdrop-filter:blur(12px);
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.city-mode-panel[hidden] {
  display:none!important
}
.city-mode-panel:not([hidden]) {
  width:min(744px,calc(100vw - 32px))!important;
  max-height:min(76dvh,680px)!important;
  overflow:hidden!important
}
.city-mode-heading {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 1px 9px;
  padding:0 1px 9px;
  border-bottom:1px solid #365366;
  cursor:grab;
  touch-action:none
}
.city-mode-icon {
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border:1px solid #a9e0ff;
  border-radius:11px 4px 11px 4px;
  background:linear-gradient(145deg,#1f5473,#17354d);
  color:#b9e8ff;
  font-size:23px
}
.city-mode-heading>div {
  display:grid;
  flex:1;
  min-width:0;
  gap:3px
}
.city-mode-heading strong {
  font-size:16px;
  letter-spacing:.04em
}
.city-mode-heading small {
  color:#9dd8ec;
  font-size:10px
}
.city-mode-heading button {
  display:grid;
  place-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid #587781;
  border-radius:8px;
  background:#142632;
  color:#deebeb;
  font-size:22px;
  line-height:1;
  cursor:pointer
}
.city-mode-heading button:hover {
  border-color:#a9e0ff;
  background:#1a364b;
  color:#d8f1ff
}
.city-mode-heading #cityModeClose:hover {
  border-color:#ff9a8d;
  background:#3b292e;
  color:white
}
.city-mode-help {
  margin:0 2px 8px;
  color:#d0dee2;
  font-size:11px;
  line-height:1.45
}
.city-mode-search {
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  align-items:center;
  gap:8px;
  margin-bottom:9px;
  color:#a9e0ff;
  font-size:10px;
  font-weight:800
}
.city-mode-search input {
  box-sizing:border-box;
  width:100%;
  min-height:38px;
  padding:7px 10px;
  border:1px solid #496678;
  border-radius:7px;
  background:#111d29;
  color:#edf7fa;
  font:12px 'DM Sans','Yu Gothic UI',sans-serif
}
.city-mode-search input:focus {
  outline:2px solid #8edbff;
  outline-offset:1px
}
.city-mode-filter-block {
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  align-items:start;
  gap:8px;
  margin:8px 0
}
.city-mode-filter-label {
  padding-top:7px;
  color:#aabcc4;
  font-size:10px;
  font-weight:800
}
.city-mode-tier-filters,.city-mode-minority-filters {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(70px,82px));
  align-content:start;
  gap:5px
}
.city-mode-tier-filters button,.city-mode-minority-filters button {
  min-width:62px;
  min-height:32px;
  padding:5px 9px;
  border:1px solid #3d596a;
  border-radius:7px;
  background:#172937;
  color:#d5e3e9;
  font-size:10px;
  font-weight:750;
  cursor:pointer
}
.city-mode-tier-filters button[aria-pressed=true],.city-mode-minority-filters button[aria-pressed=true] {
  border-color:#a9e0ff;
  background:linear-gradient(125deg,#20516a,#26567a);
  color:#f3fbff;
  box-shadow:inset 0 0 0 1px #a9e0ff44
}
.city-mode-tier-filters button:hover,.city-mode-minority-filters button:hover {
  border-color:#b9e8ff
}
.city-mode-minority-filters button:disabled {
  opacity:.55;
  cursor:wait
}
.city-mode-filter-note {
  display:block;
  margin:2px 0 8px 138px;
  color:#9aadb7;
  font-size:9px;
  line-height:1.4
}
.city-mode-filter-note a {
  margin-left:5px;
  color:#a9e0ff;
  text-decoration:underline;
  text-underline-offset:2px
}
.city-mode-results-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:9px 1px 5px;
  padding-top:8px;
  border-top:1px solid #365366;
  color:#eaf6fb;
  font-size:10px
}
.city-mode-results-heading small {
  color:#9aadb7;
  font-size:9px;
  font-weight:500
}
.city-mode-list {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(184px,1fr));
  grid-auto-rows:32px;
  gap:4px;
  max-height:108px;
  overflow:auto;
  overscroll-behavior:contain;
  padding:1px
}
.city-mode-option {
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px 56px;
  grid-template-rows:32px;
  align-items:center;
  gap:4px 5px;
  min-width:0;
  min-height:0;
  height:32px;
  padding:3px 6px;
  border:1px solid #344e5e;
  border-radius:7px;
  background:linear-gradient(135deg,rgba(27,44,57,.85),rgba(20,35,47,.85));
  color:#eaf5f8;
  text-align:left;
  cursor:pointer
}
.city-mode-option:hover,.city-mode-option:focus-visible {
  border-color:#93d7f5;
  background:linear-gradient(135deg,#213f50,#192e3c)
}
.city-mode-option:focus-visible {
  outline:2px solid #a9e0ff;
  outline-offset:1px
}
.city-mode-option-name {
  overflow:hidden;
  font-size:11px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap
}
.city-mode-option-tier {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  width:54px;
  height:23px;
  padding:2px 3px;
  border:1px solid #759ab0;
  border-radius:4px;
  color:#c5eaff;
  font-size:8px;
  font-weight:800;
  text-align:center;
  white-space:nowrap
}
.city-mode-option-meta {
  display:contents;
  overflow:hidden;
  color:#9aadb7;
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap
}
.city-mode-option-meta>span:first-child {
  display:none
}
.city-mode-option-share {
  overflow:hidden;
  color:#b7dff0;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap
}
.city-mode-empty {
  grid-column:1/-1;
  margin:0;
  padding:14px;
  border:1px dashed #466272;
  border-radius:7px;
  color:#a9bbc3;
  text-align:center
}
.city-mode-note {
  display:block;
  margin:8px 2px 0;
  color:#9aadb7;
  font-size:9px;
  line-height:1.45
}
.city-mode-restore {
  position:fixed;
  z-index:1450;
  left:50%;
  bottom:calc(env(safe-area-inset-bottom) + 16px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:8px 15px;
  border:1px solid #a9e0ff;
  border-radius:999px;
  background:rgba(16,24,32,.85);
  color:#c4ebff;
  box-shadow:0 8px 24px #03080dc9;
  font:750 12px 'DM Sans','Yu Gothic UI',sans-serif;
  transform:translateX(-50%);
  cursor:pointer
}
.city-mode-restore:hover {
  background:#1e3441;
  box-shadow:0 10px 30px #03080de0,0 0 18px #79d6ff40
}
.city-mode-restore:focus-visible {
  outline:3px solid #d8f1ff;
  outline-offset:3px
}
.city-mode-restore[hidden] {
  display:none!important
}
@media(min-width:1100px) {
  #concentrationModeLaunchers {
    left:50%;
    right:auto;
    width:min(920px,calc(100vw - 32px));
    transform:translateX(-50%)
  }
}
@media(max-width:900px) {
  #concentrationModeLaunchers .railway-route-reopen-copy small,#concentrationModeLaunchers .railway-route-reopen-cta {
    display:none!important
  }
  #concentrationModeLaunchers #railwayRouteReopen,#concentrationModeLaunchers #airportModeReopen,#concentrationModeLaunchers #cityModeReopen {
    grid-template-columns:36px minmax(0,1fr);
    min-height:64px;
    padding:7px
  }
}
@media(max-width:680px) {
  .city-mode-panel {
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;
    padding:9px
  }
  .city-mode-heading {
    min-height:42px;
    margin-bottom:6px;
    padding-bottom:6px
  }
  .city-mode-icon {
    flex-basis:34px;
    width:34px;
    height:34px;
    font-size:20px
  }
  .city-mode-heading strong {
    font-size:13px
  }
  .city-mode-heading button {
    flex-basis:42px;
    width:42px;
    height:42px
  }
  .city-mode-search {
    grid-template-columns:70px minmax(0,1fr);
    gap:6px;
    margin-bottom:6px
  }
  .city-mode-filter-block {
    grid-template-columns:72px minmax(0,1fr);
    gap:5px;
    margin:6px 0
  }
  .city-mode-filter-label {
    font-size:9px
  }
  .city-mode-tier-filters,.city-mode-minority-filters {
    grid-template-columns:repeat(auto-fill,minmax(70px,82px));
    gap:3px
  }
  .city-mode-tier-filters button,.city-mode-minority-filters button {
    width:100%;
    min-width:0;
    min-height:30px;
    padding:4px 2px;
    font-size:9px
  }
  .city-mode-filter-note {
    margin:2px 0 6px 77px;
    font-size:8px
  }
  .city-mode-list {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:44px;
    gap:4px;
    max-height:144px;
    overflow-y:auto;
    overflow-x:hidden
  }
  .city-mode-option {
    grid-template-columns:minmax(0,1fr) 44px 50px;
    grid-template-rows:44px;
    min-height:44px;
    height:44px;
    padding:4px
  }
  .city-mode-option-tier {
    width:44px;
    height:25px
  }
  .city-mode-option-meta {
    font-size:7px
  }
  .city-mode-note {
    margin-top:5px;
    font-size:8px
  }
  .city-mode-restore {
    bottom:calc(env(safe-area-inset-bottom) + 12px);
    min-height:40px
  }
  #concentrationModeLaunchers {
    position:fixed;
    left:8px;
    right:8px;
    bottom:calc(env(safe-area-inset-bottom) + 8px);
    width:auto;
    gap:5px;
    transform:none
  }
  #concentrationModeLaunchers #railwayRouteReopen,#concentrationModeLaunchers #airportModeReopen,#concentrationModeLaunchers #cityModeReopen {
    grid-template-columns:28px minmax(0,1fr);
    gap:4px;
    min-height:58px;
    padding:5px;
    border-radius:9px 4px 4px 9px
  }
  #concentrationModeLaunchers .railway-route-reopen-icon {
    width:27px;
    height:27px;
    font-size:17px;
    border-radius:7px
  }
  #concentrationModeLaunchers .railway-route-reopen-copy strong {
    font-size:clamp(9px,2.5vw,11px);
    line-height:1.1
  }
  #concentrationModeLaunchers .railway-route-reopen-copy strong .launcher-long {
    display:none
  }
  #concentrationModeLaunchers .railway-route-reopen-copy strong .launcher-short {
    display:inline
  }
}
@media(min-width:681px) {
  #cityModePanel:not([hidden]) {
    width:min(744px,calc(100vw - 32px))!important;
    max-height:min(76dvh,680px)!important;
    overflow:hidden!important
  }
  .city-mode-filter-block {
    grid-template-columns:164px minmax(0,1fr);
    column-gap:10px
  }
  .city-mode-tier-filters,.city-mode-minority-filters {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(70px,82px));
    align-content:start;
    gap:5px
  }
  .city-mode-list {
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
    grid-auto-rows:36px;
    gap:4px;
    max-height:116px;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0
  }
  .city-mode-option {
    grid-template-columns:minmax(0,1fr) 64px 70px;
    grid-template-rows:36px;
    min-height:0;
    height:36px;
    padding:3px 7px
  }
  .city-mode-option-name {
    font-size:12px
  }
  .city-mode-option-tier {
    width:64px;
    height:26px;
    font-size:10px
  }
  .city-mode-option-share {
    font-size:9px
  }
}

/* Search recovery remains a full-size touch target in both concentration modes. */
:is(#cityModeList,#airportModeList) .mode-search-recovery{
  min-height:44px;padding:10px 16px;margin:0 12px 12px;white-space:normal;font-weight:700;
  border:1px solid var(--theme-border,#ffdf00);border-radius:10px;
  background:var(--theme-action,#ffdf00);color:var(--theme-action-text,#700015);cursor:pointer
}
:is(#cityModeList,#airportModeList) .mode-search-recovery:hover{background:var(--theme-action-hover,var(--theme-action,#ffdf00))}
:is(#cityModeList,#airportModeList) .mode-search-recovery:focus-visible{outline:3px solid var(--theme-accent,#ffdf00);outline-offset:3px}
