﻿:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-tint: #eef5ff;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.14);
  --amber: #ff9f0a;
  --danger: #d70015;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  --control-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text", "SF Pro Display", "PingFang SC", "Microsoft YaHei", Inter, "DM Sans", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  height: 100vh;
  padding: 16px;
}

.map-panel,
.side-panel {
  min-width: 0;
}

.map-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  font-size: 17px;
  font-weight: 700;
}

.toolbar-actions,
.button-row,
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  justify-content: space-between;
}

.icon-btn,
.text-btn,
.primary-btn {
  min-height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.icon-btn {
  width: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.text-btn {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
}

.text-btn.small {
  min-height: 30px;
  font-size: 13px;
}

.text-btn.is-active {
  background: var(--accent);
  color: #ffffff;
}

.primary-btn {
  flex: 1;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 7px 14px rgba(0, 113, 227, 0.18);
}

.icon-btn:hover,
.text-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--control-shadow);
}

.primary-btn:hover {
  background: #147ce5;
}

.text-btn:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: #f5f5f7;
  color: var(--accent);
}

.icon-btn:focus-visible,
.text-btn:focus-visible,
.primary-btn:focus-visible,
.tool-tab:focus-visible,
.line-control:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.icon-btn:disabled,
.text-btn:disabled,
.primary-btn:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.map-canvas {
  min-height: 0;
  overflow: hidden;
  background: #eef2f5;
  cursor: grab;
}

.map-atmosphere {
  display: none;
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

#mrt-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

#base-map,
#grey-map,
.line-image {
  pointer-events: none;
}

#grey-map {
  opacity: 0;
  transition: opacity 0.2s ease;
}

#base-map.is-muted {
  opacity: 0;
}

#grey-map.is-visible {
  opacity: 1;
}

.line-image {
  opacity: 0;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.line-image.is-visible {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(10, 22, 18, 0.22));
}

.station-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  pointer-events: all;
  outline: none;
}

.station-hit:hover {
  fill: transparent;
  stroke: transparent;
}

.station-hit:focus,
.station-hit:focus-visible,
.station-hit:active {
  outline: none;
}

.station-code-highlight {
  pointer-events: none;
}

.station-code-mask {
  fill: #ffffff;
  stroke: none;
}

.station-code-plate {
  stroke: #ffffff;
  stroke-width: 1;
}

.station-code-text {
  fill: #ffffff;
  font-size: 9.2px;
  font-weight: 900;
  letter-spacing: 0;
}

.station-code-highlight-selected .station-code-plate {
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(0, 107, 85, 0.42));
}

@keyframes routeMarkerPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.1);
  }
}

.station-code-highlight-fare-from,
.station-code-highlight-fare-to,
.station-code-highlight-fare-transfer {
  transform-box: fill-box;
  transform-origin: center;
  animation: routeMarkerPulse 1.35s ease-in-out infinite;
}

.station-code-highlight-fare-from .station-code-plate {
  stroke: var(--accent);
  stroke-width: 2.4;
}

.station-code-highlight-fare-to .station-code-plate {
  stroke: var(--danger);
  stroke-width: 2.4;
}

.station-code-highlight-fare-transfer .station-code-plate {
  stroke: #1c4f8f;
  stroke-width: 2.2;
}

.map-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eeeeef;
}

.tool-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tool-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tool-tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.tool-tab.is-active .tab-icon {
  background: var(--accent);
  color: #ffffff;
}

.tool-panels {
  min-height: 0;
  overflow-y: auto;
}

.tool-panel {
  display: none;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.tool-panel.is-active {
  display: block;
}

.panel-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.project-summary div {
  display: grid;
  gap: 4px;
}

.project-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-summary strong {
  font-size: 16px;
  line-height: 1.1;
}

.field {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfbfd;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.route-suggestions {
  display: none;
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.route-suggestions.is-visible {
  display: grid;
  gap: 4px;
}

#route-to-suggestions {
  top: auto;
  bottom: calc(100% + 6px);
}

.tool-panels,
.route-suggestions {
  scrollbar-color: rgba(16, 34, 29, 0.34) transparent;
  scrollbar-width: thin;
}

.route-suggestion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  width: 100%;
  min-height: 54px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.route-suggestion:hover,
.route-suggestion:focus-visible,
.route-suggestion.is-active {
  background: var(--surface-tint);
  outline: none;
}

.route-suggestion.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 107, 85, 0.18);
}

.route-suggestion .suggestion-type {
  grid-row: span 2;
  align-self: start;
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.route-suggestion strong,
.route-suggestion small {
  display: block;
  min-width: 0;
}

.route-suggestion strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-suggestion small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-suggestion-status {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.button-row .text-btn {
  min-width: 72px;
}

.station-timings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.station-timings.empty {
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.timing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timing-header h3 {
  margin: 0;
  font-size: 15px;
}

.service-day {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.timing-list {
  display: grid;
  gap: 8px;
}

.timing-row {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.timing-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.timing-line strong,
.timing-line small {
  display: block;
}

.timing-line strong {
  font-size: 13px;
}

.timing-line small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.timing-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timing-times div {
  padding: 9px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.timing-times span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timing-times strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.arrival-prediction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.arrival-prediction div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 8px;
  background: #eef5ff;
}

.arrival-prediction span,
.arrival-prediction small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.arrival-prediction strong {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 17px;
}

.arrival-prediction small {
  margin-top: 2px;
  text-transform: none;
}

.arrival-prediction .service-closed {
  grid-column: 1 / -1;
  background: var(--surface-soft);
}

.arrival-prediction .service-closed strong {
  color: var(--text);
}

.timing-source,
.timing-note,
.timing-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.route-recommendation {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.route-recommendation.empty {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.4;
}

.route-overview {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.route-endpoints {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.route-endpoints div {
  min-width: 0;
}

.route-endpoints span,
.route-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-endpoints strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.route-metrics div {
  padding: 9px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.route-metrics strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.route-steps {
  display: grid;
  gap: 8px;
}

.route-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 2px 11px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--route-line-color, var(--accent));
  background: transparent;
}

.route-step:last-child {
  border-bottom: 0;
}

.route-line-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--route-line-color, var(--accent));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.route-step strong,
.route-step span,
.route-step small {
  display: block;
}

.route-step strong {
  font-size: 14px;
  line-height: 1.2;
}

.route-step span {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.route-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.route-transfer-hint {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.route-estimate-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.38;
}

.route-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.route-details summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.route-detail-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.route-detail-list p {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.route-detail-list span,
.route-detail-list strong {
  display: block;
}

.route-detail-list span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-detail-list strong {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.line-controls {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.line-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.line-control:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: var(--control-shadow);
}

.line-control.is-active {
  border-color: rgba(0, 113, 227, 0.42);
  background: #eef5ff;
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 18px rgba(0, 107, 85, 0.1);
}

.line-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 800;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(18, 33, 29, 0.18);
  flex-shrink: 0;
}

.line-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.station-detail {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.station-detail.empty {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.station-detail strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.tool-panel.fare-card.is-active {
  display: grid;
  gap: 12px;
}

.fare-status {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.4;
}

.fare-picks {
  display: grid;
  gap: 8px;
}

.fare-picks div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.fare-picks span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fare-picks strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.fare-result {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.fare-result.empty {
  background: var(--surface-soft);
  color: var(--muted);
}

.fare-price {
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.fare-metrics {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.fare-metrics span,
.transfer-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.fare-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.route-list li {
  margin: 9px 0;
}

.route-list strong,
.route-list span {
  display: block;
}

.route-list span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.transfer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.transfer-list.muted {
  color: var(--muted);
}

.station-list-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.station-list-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.station-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow: auto;
}

.station-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.route-station-list li {
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
}

.station-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.station-main {
  min-width: 0;
}

.station-main strong,
.station-main small {
  display: block;
}

.station-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-main small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}

.station-role {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.station-line-chips {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.station-line-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--station-line-color, var(--accent));
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.fare-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fare-reset {
  width: 100%;
}

.fare-mode-active .map-canvas {
  cursor: crosshair;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .map-panel {
    min-height: 68vh;
  }

  .side-panel {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 10px;
    gap: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .text-btn {
    margin-left: auto;
  }

  h1 {
    font-size: 25px;
  }

  .subtitle {
    font-size: 12px;
  }

  .route-endpoints {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    display: none;
  }

  .route-metrics,
  .timing-times,
  .arrival-prediction {
    grid-template-columns: 1fr;
  }

  .project-summary {
    grid-template-columns: 1fr;
  }
}

