:root {
  --bg: #101c25;
  --panel: #172630;
  --border: #30434d;
  --ink: #edf4f3;
  --muted: #a3b8bc;
  --mint: #bcf69b;
  --accent: #70d6bb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 Arial,
    Helvetica,
    sans-serif;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
header {
  height: 85px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5%;
  gap: 20px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand > span:last-child {
  color: var(--muted);
  font-weight: 400;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--mint);
  color: #15252b;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  margin-right: 9px;
}
nav {
  display: flex;
  gap: 10px;
}
.nav {
  background: none;
  color: var(--muted);
  border: 0;
  padding: 12px 18px;
}
.nav.active {
  color: var(--mint);
  border-bottom: 2px solid var(--mint);
}
.demo-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 12px;
  color: var(--muted);
}
main {
  max-width: 1720px;
  margin: auto;
  padding: 38px 3.5% 20px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--accent);
  margin: 0 0 11px;
}
h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.7px;
  margin: 0 0 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.intro p:last-child {
  color: var(--muted);
  margin: 0;
}
.quiet {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 7px;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #405954;
  background: #1b302f;
  padding: 12px 17px;
  border-radius: 9px;
  margin-bottom: 24px;
  color: #bfd3ce;
  font-size: 12px;
}
.notice > span {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 21px;
  height: 21px;
  text-align: center;
  flex-shrink: 0;
}
.notice p {
  margin: 0;
}
.notice strong {
  color: var(--ink);
}
.workspace {
  display: grid;
  grid-template-columns: 270px minmax(360px, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  padding: 23px;
}
.controls {
  padding: 24px 20px;
}
label {
  display: block;
  color: #d0dfdf;
  font-size: 12px;
  margin: 17px 0 7px;
}
select {
  width: 100%;
  border: 1px solid #435660;
  background: #20333d;
  color: var(--ink);
  border-radius: 7px;
  padding: 11px 9px;
  font-size: 13px;
}
option {
  background: #20333d;
}
.swap {
  display: block;
  margin: 10px 0 -6px auto;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 11px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 13px;
}
.check input {
  accent-color: var(--mint);
  width: 17px;
  height: 17px;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 13px;
}
.primary {
  border: 0;
  border-radius: 7px;
  padding: 13px 15px;
  width: 100%;
  background: var(--mint);
  color: #11241b;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.primary:hover {
  background: #d7ffc0;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 25px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11px;
  padding: 3px;
}
.favorite {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.favorite button:first-child {
  border: 1px solid var(--border);
  background: #20333d;
  color: var(--ink);
  border-radius: 6px;
  padding: 8px;
  text-align: left;
  font-size: 11px;
  flex: 1;
}
.favorite button:last-child {
  background: none;
  color: var(--muted);
  border: 0;
}
.map-panel {
  padding: 23px 20px 15px;
  overflow: hidden;
}
.map-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.chip {
  font-size: 9px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  white-space: nowrap;
}
.map-wrap {
  background: radial-gradient(ellipse at center, #203541 0%, #172630 75%);
  margin: 0 -10px;
}
.map-wrap svg {
  width: 100%;
  display: block;
  max-height: 670px;
}
.map-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: var(--mint);
  margin-right: 5px;
}
.station-info {
  min-height: 55px;
  border-radius: 7px;
  background: #21333d;
  padding: 11px;
  font-size: 11px;
  color: var(--muted);
}
.station-info button {
  margin: 8px 7px 0 0;
}
.results {
  display: grid;
  gap: 20px;
}
.result-panel {
  padding: 23px 20px;
}
.metric {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 10px 0;
}
.metric strong {
  font-size: 49px;
  letter-spacing: -2px;
  line-height: 1.1;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.route-meta {
  font-size: 12px;
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 7px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 6px;
  color: #071b24;
  font-weight: 700;
  font-size: 12px;
  padding: 0 6px;
}
.comparison {
  background: #24373e;
  border-radius: 8px;
  padding: 13px;
  font-size: 12px;
  margin: 13px 0 19px;
  color: var(--muted);
}
.comparison strong {
  color: var(--mint);
}
.itinerary {
  padding: 0;
  list-style: none;
  margin: 0;
}
.itinerary li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 15px 20px;
  border-left: 1px solid #536970;
  font-size: 12px;
}
.itinerary li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  left: -4px;
  top: 6px;
}
.itinerary li:last-child {
  border: 0;
  padding-bottom: 0;
}
.itinerary small {
  color: var(--muted);
  display: block;
  font-size: 10px;
}
.transfer {
  color: #e8c97c;
}
.trace-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.trace-controls button {
  padding: 4px 10px;
}
.trace-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}
#trace {
  font-size: 12px;
  min-height: 120px;
}
#trace strong {
  color: var(--mint);
}
#trace ul {
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
}
.error {
  color: #f3bf9c;
  padding: 18px 0;
}
.station {
  cursor: pointer;
}
.station text {
  font-family: Arial, sans-serif;
  paint-order: stroke;
  stroke: #172630;
  stroke-width: 5px;
  stroke-linejoin: round;
  fill: #c1d2d7;
  font-size: 12px;
}
.station:hover text {
  fill: var(--mint);
}
.explain h2 {
  font-size: 32px;
}
.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
}
.explain article {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.explain article > span {
  color: var(--accent);
  font-size: 13px;
}
.explain h3 {
  font-size: 21px;
  margin-top: 15px;
}
.explain p {
  color: var(--muted);
  max-width: 850px;
}
.source-note {
  padding: 25px 0;
  border-top: 1px solid var(--border);
}
a {
  color: var(--accent);
}
footer {
  display: flex;
  justify-content: space-between;
  color: #7e989f;
  font-size: 10px;
  padding: 28px 0 5px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 300px 1fr 370px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 240px 1fr;
  }
  .results {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  header {
    padding: 14px 5%;
    height: auto;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 20px;
  }
  .demo-label {
    display: none;
  }
  nav {
    gap: 0;
  }
  .nav {
    padding: 8px 10px;
    font-size: 12px;
  }
  main {
    padding: 25px 5%;
  }
  .intro {
    align-items: start;
    gap: 10px;
  }
  .intro .quiet {
    font-size: 10px;
    white-space: nowrap;
  }
  h1 {
    letter-spacing: -1px;
  }
  .intro p:last-child {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .results {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .explain-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .notice {
    font-size: 11px;
  }
  .map-wrap svg {
    max-height: none;
  }
  footer {
    gap: 25px;
  }
  .map-title h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      color 0.15s;
  }
  .panel {
    animation: appear 0.35s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.feed-controls {
  display: flex;
  align-items: end;
  gap: 20px;
  max-width: 900px;
  margin: 28px 0;
}
.feed-controls > div {
  flex: 1;
}
.feed-controls .primary {
  width: 210px;
  margin: 0;
}
.feed-controls input {
  width: 100%;
  background: #20333d;
  border: 1px solid #435660;
  border-radius: 7px;
  padding: 11px;
  color: var(--ink);
}
.feed-table-wrap {
  overflow-x: auto;
  max-height: 550px;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  background: #21333d;
  position: sticky;
  top: 0;
}
td {
  color: var(--muted);
}
.feed-metrics {
  display: flex;
  gap: 45px;
  padding: 20px 0;
}
.feed-metrics strong {
  display: block;
  color: var(--mint);
  font-size: 28px;
}
.feed-metrics span {
  font-size: 12px;
  color: var(--muted);
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 700px) {
  .feed-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .feed-controls .primary {
    width: 100%;
  }
  .feed-metrics {
    gap: 20px;
  }
  th,
  td {
    padding: 10px;
  }
}
.demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -4px 0 23px;
}
.demo-presets > span {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-right: 4px;
}
.demo-presets button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  border-radius: 20px;
  padding: 7px 13px;
}
.demo-presets button:hover {
  color: var(--mint);
  border-color: var(--mint);
}
