:root {
  color-scheme: light;
  --ink: #142535;
  --muted: #657785;
  --paper: rgba(255, 255, 255, 0.94);
  --line: rgba(20, 50, 66, 0.13);
  --accent: #0c7282;
  --accent-dark: #07525f;
  --map-background: #cfd7db;
  --map-canvas: #dfe4e7;
  --shadow: 0 18px 55px rgba(18, 42, 55, 0.15);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--map-background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.2), transparent 30rem),
    linear-gradient(145deg, #d8dee1 0%, #cbd3d7 100%);
}

.map-viewport::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 80px rgba(52, 77, 88, 0.05);
}

.map-viewport.is-panning {
  cursor: grabbing;
}

.map-stage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: var(--map-canvas);
  box-shadow: 0 22px 60px rgba(34, 56, 67, 0.1);
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
}

.route-layer-stack,
.station-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease;
}

.route-layer.is-filtered,
.route-vector-line.is-filtered {
  opacity: 0 !important;
}

.route-vector-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.vector-land {
  fill: var(--map-canvas);
}

.vector-water {
  fill: #d2e0e4;
  opacity: 0.68;
}

.vector-water.is-soft {
  opacity: 0.46;
}

.route-vector-line {
  opacity: 1;
  transition: opacity 180ms ease;
}

.route-vector-segment {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 22px;
}

.station-overlay {
  overflow: visible;
}

.station-target {
  outline: none;
  opacity: 1;
  transition: opacity 160ms ease;
}

.station-target.is-filtered {
  opacity: 0;
  pointer-events: none;
}

.station-centre {
  fill: #fff;
  stroke: var(--station-color, rgba(20, 37, 53, 0.3));
  stroke-width: 5;
  pointer-events: none;
}

.station-centre.is-transfer {
  stroke-width: 7;
}

.station-hit {
  fill: rgba(255, 255, 255, 0);
  stroke: none;
  pointer-events: all;
  cursor: pointer;
}

.station-focus {
  fill: none;
  stroke: transparent;
  stroke-width: 3;
  pointer-events: none;
}

.station-target:focus .station-focus {
  stroke: #0b7387;
}

.station-label {
  fill: #172b38;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 6px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0.015em;
  pointer-events: none;
  user-select: none;
}

.selection-ring {
  fill: none;
  stroke: #087286;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(5, 63, 76, 0.24));
}

.map-ui,
.state-panel {
  position: absolute;
  z-index: 5;
  cursor: default;
  touch-action: manipulation;
}

.control-panel {
  top: 18px;
  left: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.identity-row,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.identity-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-toggle {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #d4dfe1;
  border-radius: 9px;
  background: #f7faf9;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.panel-toggle:hover {
  background: #edf4f4;
}

.control-panel.is-collapsed {
  width: auto;
  min-width: 250px;
  padding: 12px 14px;
}

.control-panel.is-collapsed .eyebrow {
  display: none;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.station-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.search-form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #ced9dc;
  border-radius: 11px;
  outline: none;
  background: #f8faf9;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 114, 130, 0.13);
}

.search-form input::placeholder {
  color: #87969e;
}

.search-form > button,
.state-panel button {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(18, 128, 146, 0.28);
  outline-offset: 2px;
}

.search-suggestions {
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  z-index: 8;
  max-height: 268px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 40, 53, 0.2);
}

.suggestion-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.suggestion-button:hover,
.suggestion-button.is-active {
  background: #edf5f5;
}

.suggestion-name {
  font-weight: 800;
}

.suggestion-lines {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-filter-region {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.line-filter-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.line-filter-copy small {
  color: #87969e;
  font-size: 0.62rem;
  font-weight: 650;
}

.text-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.line-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.line-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #d8e1e3;
  border-radius: 999px;
  background: #fff;
  color: #30434f;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.line-filter::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line-color, #74838b);
  content: "";
}

.line-filter.is-planned {
  border-color: #e2e8ea;
  background: #f4f6f7;
  color: #7c8a91;
}

.line-filter.is-planned::before {
  opacity: 0.42;
}

.line-filter[aria-pressed="false"] {
  border-color: transparent;
  background: #edf1f2;
  opacity: 0.5;
}

.line-filter.is-planned[aria-pressed="false"] {
  opacity: 0.34;
}

.zoom-controls {
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 44px 44px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(18, 42, 55, 0.14);
}

.zoom-controls button {
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 1.24rem;
  font-weight: 800;
  cursor: pointer;
}

.zoom-controls .reset-button {
  min-width: 62px;
  padding: 0 13px;
  border-right: 0;
  font-size: 0.76rem;
}

.zoom-controls button:hover:not(:disabled) {
  background: #eef4f4;
}

.station-card {
  bottom: 18px;
  left: 18px;
  width: min(330px, calc(100% - 210px));
  min-height: 132px;
  padding: 17px 44px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.station-card h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.station-card-label-test,
.station-card-details,
.station-info-state,
.station-discovery {
  display: none;
}

.station-card-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.close-button {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.close-button:hover {
  background: #edf2f3;
}

.station-card-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.station-line-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f4;
  color: #2b3f4c;
  font-size: 0.72rem;
  font-weight: 800;
}

.station-line-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-color, #74838b);
  content: "";
}

.station-line-badge.is-planned {
  border-style: dashed;
  background: #f5f6f6;
  color: #728087;
}

.station-line-badge.is-planned::before {
  opacity: 0.42;
}

.station-card-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

body.station-info-test .station-card {
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 8;
  display: grid;
  width: auto;
  min-height: 214px;
  grid-template-columns: minmax(225px, 0.72fr) minmax(540px, 2fr);
  grid-template-rows: auto auto;
  gap: 14px 28px;
  padding: 22px 58px 18px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 70px rgba(18, 42, 55, 0.22);
  animation: station-info-in 180ms ease-out;
}

body.station-info-test .station-card-label-default {
  display: none;
}

body.station-info-test .station-card-label-test,
body.station-info-test .station-card-details,
body.station-info-test .station-info-state {
  display: block;
}

body.station-info-test .station-card-primary {
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.station-address {
  margin: 12px 0 0;
  color: #506874;
  font-size: 0.78rem;
  line-height: 1.5;
}

body.station-info-test .station-card h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-info-state {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f1f2;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 850;
}

.station-info-state.is-complete {
  background: #dff2e8;
  color: #17613d;
}

body.station-info-test .station-card-lines {
  margin-top: 14px;
}

body.station-info-test .station-card-details {
  align-self: stretch;
}

.station-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 9px;
}

.station-info-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce6e9;
  border-radius: 12px;
  background: #f4f8f8;
}

.station-info-item span,
.station-info-status > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.station-info-item strong {
  display: block;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-info-item.is-placeholder {
  border-style: dashed;
  background: #f5f6f6;
}

.station-info-item.is-placeholder strong {
  color: #7c898f;
  font-weight: 750;
}

.station-info-status {
  margin-top: 11px;
  padding: 10px 12px;
  border-left: 3px solid #6bb9c2;
  border-radius: 0 10px 10px 0;
  background: #edf5f5;
}

.station-info-status p {
  margin: 0;
  color: #445c69;
  font-size: 0.76rem;
  line-height: 1.55;
}

.station-timetable {
  display: grid;
  width: 100%;
  gap: 5px;
  margin: 9px 0 11px;
}

.station-timetable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(20, 50, 66, 0.09);
  font-size: 0.7rem;
}

.station-timetable-direction {
  min-width: 0;
  overflow: hidden;
  color: #4a626e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-timetable-times {
  color: #183748;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.station-data-empty {
  margin: 0;
  color: #738087;
  font-size: 0.72rem;
  line-height: 1.5;
}

body.station-info-test .station-discovery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr minmax(270px, 1.25fr);
  gap: 10px;
}

.station-discovery-card {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid #dce6e9;
  border-radius: 14px;
  background: #f8fafa;
}

.station-discovery-card h3 {
  margin: 2px 0 0;
  font-size: 0.98rem;
}

.station-discovery-card p {
  margin: 8px 0 10px;
  color: #596d78;
  font-size: 0.72rem;
  line-height: 1.5;
}

.station-map-copy > p + p {
  margin-top: -5px;
}

.station-discovery-kicker {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.station-discovery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 9px;
  background: #123044;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.station-discovery-link:hover,
.station-discovery-link:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.station-discovery-link.is-secondary {
  border: 1px solid #b9cccf;
  background: #fff;
  color: var(--accent-dark);
}

.station-discovery-link.is-secondary:hover,
.station-discovery-link.is-secondary:focus-visible {
  border-color: var(--accent-dark);
  background: #edf5f5;
}

.station-discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.station-map-card {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(145px, 1.2fr);
  gap: 12px;
  background: #eef4f4;
}

.station-map-preview {
  position: relative;
  min-height: 98px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(30deg, transparent 48%, rgba(94, 180, 160, 0.25) 49%, rgba(94, 180, 160, 0.25) 54%, transparent 55%),
    linear-gradient(150deg, transparent 44%, rgba(88, 167, 191, 0.22) 45%, rgba(88, 167, 191, 0.22) 52%, transparent 53%),
    #dfeaec;
}

.station-map-road {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(91, 117, 126, 0.08);
}

.station-map-road.is-horizontal {
  top: 47%;
  left: -10%;
  width: 120%;
  height: 9px;
  transform: rotate(-8deg);
}

.station-map-road.is-vertical {
  top: -20%;
  left: 49%;
  width: 8px;
  height: 140%;
  transform: rotate(16deg);
}

.station-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #d64a43;
  box-shadow: 0 5px 14px rgba(36, 62, 74, 0.28);
  transform: translate(-50%, -75%) rotate(-45deg);
}

.station-map-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.station-card-footer {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

body.station-info-test .station-card-note {
  margin: 0;
}

.station-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: center;
  margin-top: 7px;
  font-size: 0.66rem;
}

.station-sources span {
  color: var(--muted);
  font-weight: 800;
}

.station-sources a {
  color: var(--accent-dark);
  text-underline-offset: 2px;
}

.station-sources a:hover,
.station-sources a:focus-visible {
  color: #0a8294;
}

body.station-info-test.has-station-selection .zoom-controls,
body.station-info-test.has-station-selection .map-hint {
  bottom: 402px;
}

body.station-info-test.has-station-selection .notice {
  bottom: 447px;
}

@keyframes station-info-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.state-panel {
  top: 50%;
  left: 50%;
  display: flex;
  max-width: min(430px, calc(100% - 40px));
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  text-align: left;
}

.state-panel h2 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.state-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.state-panel button {
  margin-top: 14px;
}

.loading-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid rgba(12, 114, 130, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.map-hint,
.notice {
  left: 50%;
  bottom: 18px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 22px rgba(18, 42, 55, 0.09);
  color: #536874;
  font-size: 0.72rem;
  font-weight: 750;
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
  white-space: nowrap;
}

.notice {
  bottom: 61px;
  z-index: 10;
  background: rgba(20, 37, 53, 0.92);
  color: #fff;
}

.notice.is-warning {
  background: rgba(135, 73, 22, 0.94);
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 20;
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .control-panel {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 14px;
    border-radius: 15px;
  }

  .control-panel.is-collapsed {
    right: 10px;
    left: auto;
    width: auto;
    min-width: 230px;
  }

  .identity-row .eyebrow {
    display: none;
  }

  h1 {
    font-size: 1.08rem;
  }

  .search-form {
    margin-top: 10px;
  }

  .line-filter-region {
    margin-top: 10px;
    padding-top: 9px;
  }

  .line-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .line-filter {
    flex: 0 0 auto;
  }

  .station-card {
    bottom: 66px;
    left: 10px;
    width: calc(100% - 20px);
    min-height: 0;
  }

  body.station-info-test .station-card {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    width: auto;
    max-height: 72vh;
    padding: 18px 44px 16px 18px;
    overflow-y: auto;
    border-radius: 18px;
  }

  body.station-info-test .station-card-primary {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.station-info-test .station-card-details {
    padding-top: 13px;
  }

  .station-info-grid {
    grid-template-columns: repeat(2, minmax(105px, 1fr));
  }

  body.station-info-test .station-discovery {
    grid-template-columns: 1fr;
    padding-top: 13px;
  }

  .station-discovery-card {
    min-height: 118px;
  }

  .station-card-footer {
    margin-top: 13px;
  }

  body.station-info-test.has-station-selection .zoom-controls,
  body.station-info-test.has-station-selection .map-hint,
  body.station-info-test.has-station-selection .notice {
    opacity: 0;
    pointer-events: none;
  }

  .zoom-controls {
    right: 10px;
    bottom: 10px;
  }

  .map-hint {
    display: none;
  }

  .notice {
    bottom: 65px;
  }
}

@media (min-width: 641px) and (max-width: 1279px) {
  .control-panel.is-collapsed {
    right: 18px;
    left: auto;
  }
}

@media (max-height: 590px) and (min-width: 641px) {
  .control-panel {
    top: 12px;
    left: 12px;
    padding: 13px;
  }

  .search-form {
    margin-top: 9px;
  }

  .line-filter-region {
    margin-top: 8px;
    padding-top: 7px;
  }

  .station-card,
  .zoom-controls,
  .map-hint {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
