:root {
      --bg: #0b0b10;
      --card: #141421;
      --muted: #a0a3ad;
      --text: #f3f4f8;
      --accent: #8a8fff;
      --success: #3ddc84;
      --danger: #ff5a5f;
      --warning: #ff9500;
      --line-Red: #ff3b30;
      --line-Gold: #ffcc00;
      --line-Green: #34c759;
      --line-Orange: #ff9500;
      --line-Blue: #007aff;
      --line-Pink: #ff2d55;
      --line-Brown: #a2845e;
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html, body { height: 100%; }
    body {
        margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif;
        background: radial-gradient(1200px 600px at 50% -200px, #151528, #0a0a12) fixed;
        color: var(--text);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    #splash-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: var(--bg);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      opacity: 1;
      animation: fadeOutSplash 0.5s ease-in-out 3s forwards;
    }

    #splash-logo {
      width: 280px;
      height: auto;
      opacity: 0;
      animation: dynamicLogoIntro 3s ease-in-out forwards;
    }

    @keyframes dynamicLogoIntro {
      0% { opacity: 0; transform: scale(0.95); }
      20% { opacity: 1; transform: scale(1); }
      45% { opacity: 0.3; }
      65% { opacity: 1; }
      90% { opacity: 1; }
      100% { opacity: 0; }
    }

    @keyframes fadeOutSplash {
      to { opacity: 0; visibility: hidden; }
    }

    header {
      position: sticky; top: 0; z-index: 10;
      backdrop-filter: saturate(180%) blur(14px);
      background: rgba(10,10,18,.65);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .wrap { max-width: 860px; margin: 0 auto; padding: 12px 16px; }
    .title { font-weight: 800; letter-spacing: .2px; font-size: 22px; }
    .subtle { color: var(--muted); font-size: 12px; }

    .controls { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: center; margin-top: 10px; }
    select, button, input[type="time"], input[type="date"] {
      width: 100%; appearance: none; border: 1px solid rgba(255,255,255,.12); background: var(--card);
      color: var(--text); border-radius: 14px; padding: 12px 40px 12px 12px; font-size: 16px;
    }
    .seg { display: flex; gap: 10px; align-items: center; }
    .pill { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: 12px; }
    .pill.late-night {
      border-color: var(--line-Gold);
      color: var(--line-Gold);
      box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.20) inset;
    }

    .custom-select-container {
      position: relative;
      width: 100%;
    }
    .custom-select-trigger {
      width: 100%;
      min-height: 47px;
      border: 1px solid rgba(255,255,255,.12);
      background: var(--card);
      color: var(--text);
      border-radius: 14px;
      padding: 10px 40px 10px 14px;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      user-select: none;
      text-align: left;
    }
    .custom-select-trigger::after {
      content: "";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      border: 6px solid transparent;
      border-top-color: var(--muted);
      pointer-events: none;
      transition: transform 0.2s ease;
    }
    .custom-select-container.open .custom-select-trigger::after {
      transform: translateY(-50%) rotate(180deg);
    }
    .trigger-content {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .station-trigger-name {
      font-weight: 500;
    }
    .custom-options-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #181826;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 14px;
      max-height: 340px;
      overflow-y: auto;
      z-index: 100;
      box-shadow: 0 12px 30px rgba(0,0,0,0.5);
      display: none;
    }
    .custom-select-container.open .custom-options-dropdown {
      display: block;
    }
    .custom-option-item {
      width: 100%;
      padding: 12px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,.04);
      transition: background 0.15s ease;
      border-top: 0;
      border-right: 0;
      border-left: 0;
      border-radius: 0;
      background: transparent;
      color: inherit;
      text-align: left;
    }
    .custom-option-item:last-child {
      border-bottom: none;
    }
    .custom-option-item:hover {
      background: rgba(255,255,255,.06);
    }
    .custom-option-item.selected {
      background: rgba(138, 143, 255, 0.12);
    }
    .station-item-name {
      font-size: 15px;
      color: var(--text);
    }
    .station-item-badges {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }
    .dropdown-badge-img {
      width: 20px;
      height: 20px;
      border-radius: 5px;
      object-fit: contain;
      display: block;
    }

    .grid { display: grid; gap: 12px; margin-top: 14px; }
    .card { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--card); border: 5px solid rgba(255,255,255,.06); border-radius: 18px; padding: 14px; }

    .direction-group {
      margin-top: 15px;
      margin-bottom: 25px;
    }
    .direction-group:last-child {
      margin-bottom: 5px;
    }
    .direction-title {
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: #ffffff;
      padding-bottom: 6px;
      margin-bottom: 12px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .list { display: grid; gap: 15px; }
    .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 18px 15px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }

    details.row { display: block; }
    details.row > summary {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      cursor: pointer;
      list-style: none;
      outline: none;
    }
    details.row > summary::-webkit-details-marker { display: none; }
    details.row[open] > summary { margin-bottom: 10px; }
    .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.08) inset; }
    .lineTag { font-weight: 560; letter-spacing: .3px; }
    .dest { color: var(--muted); font-size: 13px; }
    .mins { font-weight: 700; font-variant-numeric: tabular-nums; }

    .banner { display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 12px; border:1px dashed rgba(255,255,255,.10); border-radius:14px; background: rgba(255,255,255,.03); }
    .adbox { height: 64px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.06), transparent), #0b0b10; border:1px solid rgba(255,255,255,.08); flex:1; display:flex; align-items:center; justify-content:center; color: var(--muted); font-size:12px; }

    footer { color: var(--muted); font-size: 12px; padding: 40px 0 80px; text-align: center; }

@media (min-width: 700px) { .grid { grid-template-columns: 2fr 1fr; } }

@media (max-width: 699px) {
  .filters-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .filters-banner > .seg {
    display: grid !important;
    gap: 8px !important;
    width: 100%;
  }

  .filters-banner > .seg > div {
    display: grid !important;
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
    gap: 8px !important;
    width: 100%;
  }

  .filters-banner select {
    min-width: 0;
  }
}

    .stops-list {
      list-style: none;
      margin: 8px 0 0 17px;
      padding-left: 18px;
      border-left: 3px solid var(--stop-line-color, var(--accent));
      line-height: 1.4;
    }
    .stop-item {
      position: relative;
      display: grid;
      grid-template-columns: 108px minmax(0, 1fr);
      column-gap: 16px;
      row-gap: 2px;
      align-items: start;
      margin: 0;
      padding: 7px 0;
      color: var(--muted);
    }
    .stop-item::before {
      content: '';
      position: absolute;
      left: -22px;
      top: 11px;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: var(--card);
      border: 3px solid var(--stop-line-color, var(--accent));
      z-index: 1;
    }
    .stop-item .stop-icon {
      display: none;
    }
    .stop-item .stop-icon svg {
      width: 18px;
      height: 18px;
    }
    .stop-item.current::before {
      background: var(--success);
      border-color: var(--success);
      box-shadow: 0 0 0 4px rgba(52,199,89,.12);
    }
    .stop-item.current .stop-name {
      color: var(--success);
      font-weight: 600;
    }
    .stop-item.current.delayed::before {
      background: var(--warning);
      border-color: var(--warning);
      box-shadow: 0 0 0 4px rgba(255,204,0,.12);
    }
    .stop-item.current.delayed .stop-name {
      color: var(--warning);
    }
    .stop-item.past {
      opacity: 0.5;
    }
    .stop-item.en-route .stop-name {
      color: var(--accent);
    }

    .stop-time-main {
      font-size: 13px;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      margin-bottom: 0;
      grid-column: 1;
      grid-row: 1;
      min-width: 0;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
    }
    .stop-time-main.delayed {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1px;
    }
    .stop-time-main.delayed .scheduled {
      display: block;
      text-decoration: line-through;
      opacity: 0.6;
    }
    .stop-time-main .new-time {
      color: var(--warning);
      display: block;
      margin-left: 0;
    }
    .stop-copy {
      grid-column: 2;
      grid-row: 1;
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .stop-name {
      font-size: 14px;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      line-height: 1.25;
      overflow-wrap: anywhere;
      padding-left: 1px;
    }
    .accessible-icon-tiny {
      width: 15px;
      height: 15px;
      object-fit: contain;
      vertical-align: middle;
      display: inline-block;
    }
    .stop-details {
      font-size: 11px;
      color: var(--muted);
      margin-top: -2px;
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
    }
    .stop-details .clock-icon {
      width: 12px;
      height: 12px;
      vertical-align: middle;
      margin-right: 3px;
      opacity: 0.7;
    }
    .stop-details .detail-item {
      display: inline-flex;
      align-items: center;
    }

    .en-route-banner {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      background: rgba(138, 143, 255, 0.1);
      border: 1px solid rgba(138, 143, 255, 0.3);
      border-radius: 8px;
      margin: 6px 0 10px 0;
      font-size: 12px;
      color: var(--accent);
    }
    .en-route-banner svg {
      width: 16px;
      height: 16px;
    }

    .train-info-box {
      background: rgba(138, 143, 255, 0.08);
      border: 1px solid rgba(138, 143, 255, 0.25);
      border-radius: 10px;
      padding: 10px 12px;
      margin-bottom: 10px;
    }
    .train-info-box .train-info-header {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .train-info-box .train-info-header .route-code {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .train-info-box .train-info-details {
      font-size: 12px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .train-info-box .train-info-details svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }
    .train-info-box .train-info-details .model {
      color: var(--text);
      font-weight: 500;
    }
    .train-info-box .train-info-details .lead-car {
      color: var(--accent);
      font-weight: 600;
    }

    .compact-view {
      padding: 0 0 0 4px;
    }
    .compact-stop {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 0;
    }
    .compact-stop .compact-time {
      font-size: 13px;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      min-width: 42px;
    }
    .compact-stop .compact-time.delayed .scheduled {
      text-decoration: line-through;
      opacity: 0.6;
    }
    .compact-stop .compact-time .new-time {
      color: var(--warning);
      display: block;
      font-size: 12px;
    }
    .compact-stop .compact-icon {
      width: 18px;
      height: 18px;
    }
    .compact-stop .compact-icon svg {
      width: 18px;
      height: 18px;
    }
    .compact-stop .compact-name {
      font-size: 14px;
      font-weight: 500;
    }
    .compact-stop.at-station .compact-name {
      color: var(--success);
    }
    .compact-stop.at-station.delayed .compact-name {
      color: var(--warning);
    }

    .mid-stops-btn {
      background: none;
      border: 0;
      padding: 8px 4px 8px 56px;
      color: var(--accent);
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      display: block;
      text-align: left;
      width: 100%;
    }
    .mid-stops-btn:hover {
      text-decoration: underline;
    }

    .slide {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 350ms ease, opacity 250ms ease;
    }
    .slide.open {
      opacity: 1;
    }

    .linklike {
      background: none; border: 0; padding: 0;
      color: var(--accent); font: inherit; cursor: pointer;
    }

    .tabbar {
      position: fixed;
      left: 0; right: 0; bottom: 0;
      z-index: 20;
      display: flex;
      justify-content: space-around;
      align-items: center;
      flex-wrap: nowrap;
      padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
      border-top: 1px solid rgba(255,255,255,.08);
      background: rgba(180,180,180,0.20);
      backdrop-filter: saturate(180%) blur(14px);
    }

    .tabbar a {
      flex: 1;
      min-width: 0;
      text-decoration: none;
      color: var(--muted);
      text-align: center;
      display: flex;
      justify-content: center;
    }

    .tabbar .item {
      display: grid;
      gap: 5px;
      justify-items: center;
      font-size: 11px;
      font-weight: 650;
    }

    .tabbar .item img {
      width: 25px; height: 25px;
      display: block;
      opacity: .8;
      filter: grayscale(100%);
    }

    .tabbar a.active {
      color: var(--accent);
    }

    .tabbar a.active img {
      opacity: 1;
      filter: brightness(0) saturate(100%) invert(61%) sepia(39%) saturate(1470%) hue-rotate(203deg) brightness(101%) contrast(101%);
    }

    .view-tabs {
      display: flex;
      gap: 4px;
      margin-top: 12px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 14px;
      background: rgba(0,0,0,.18);
    }
    .view-tab {
      min-height: 38px;
      padding: 8px 14px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }
    .view-tab.active {
      color: #fff;
      background: linear-gradient(135deg, rgba(138,143,255,.95), rgba(79,86,221,.95));
      box-shadow: 0 6px 20px rgba(80,86,220,.28);
    }

    .trip-planner-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .trip-planner-heading h2 {
      margin: 3px 0 0;
      font-size: 22px;
      letter-spacing: -.3px;
    }
    .trip-planner-kicker {
      color: var(--accent);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .trip-search-card {
      padding: 12px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 16px;
      background: rgba(255,255,255,.025);
    }
    .trip-dropdown-open .trip-search-card {
      position: relative;
      z-index: 30;
    }
    .trip-dropdown-open .timetable-main-card {
      position: relative;
      z-index: 30;
    }
    .trip-station-fields {
      position: relative;
      display: grid;
      gap: 8px;
    }
    .trip-station-field {
      position: relative;
      display: grid;
      grid-template-columns: 52px minmax(0,1fr);
      align-items: center;
      gap: 9px;
      min-height: 54px;
      padding: 7px 50px 7px 12px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 13px;
      background: #191925;
    }
    .trip-station-field > span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-align: right;
    }
    .trip-station-field::before {
      content: '';
      position: absolute;
      left: 72px;
      width: 10px;
      height: 24px;
      border-radius: 999px;
      background: var(--accent);
    }
    .destination-field::before { background: var(--success); }
    .trip-custom-select {
      position: static;
      min-width: 0;
    }
    .trip-custom-select .custom-select-trigger {
      min-height: 40px;
      padding: 6px 34px 6px 20px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      font-size: 16px;
      font-weight: 650;
    }
    .trip-custom-select .custom-select-trigger:focus-visible {
      outline: 2px solid rgba(138,143,255,.65);
      outline-offset: 1px;
    }
    .trip-custom-select .custom-select-trigger::after { right: 10px; }
    .trip-custom-select .trigger-content {
      min-width: 0;
      flex-wrap: nowrap;
      gap: 7px;
    }
    .trip-custom-select .dropdown-badge-img { width: 18px; height: 18px; }
    .trip-custom-select .station-trigger-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 700;
    }
    .trip-custom-select .custom-options-dropdown {
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      max-height: 320px;
      z-index: 120;
    }
    .trip-station-field:has(.trip-custom-select.open) { z-index: 30; }
    .swap-stations-button {
      position: absolute;
      z-index: 2;
      right: 8px;
      top: 50%;
      width: 42px;
      height: 42px;
      transform: translateY(-50%);
      display: grid;
      place-items: center;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(138,143,255,.35);
      background: #292a3b;
      color: var(--accent);
      cursor: pointer;
    }
    .swap-stations-button svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .depart-controls {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: end;
      gap: 10px;
      margin-top: 12px;
    }
    .depart-choice {
      display: flex;
      padding: 3px;
      border-radius: 11px;
      background: #0d0d15;
      border: 1px solid rgba(255,255,255,.08);
    }
    .depart-choice-button {
      width: auto;
      padding: 8px 10px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }
    .depart-choice-button.active { background: rgba(138,143,255,.18); color: #fff; }
    .future-departure-fields {
      display: flex;
      align-items: end;
      gap: 8px;
    }
    .future-departure-fields label { flex: 1; color: var(--muted); font-size: 10px; }
    .future-departure-fields span { display: block; margin: 0 0 4px 4px; }
    .future-departure-fields input { padding: 9px; font-size: 13px; border-radius: 10px; }
    .find-trips-button {
      width: auto;
      min-height: 42px;
      padding: 10px 18px;
      border: 0;
      border-radius: 11px;
      background: var(--accent);
      color: #080810;
      font-size: 13px;
      font-weight: 850;
      cursor: pointer;
    }
    .trip-planner-note {
      margin: 10px 3px 16px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
    }
    .trip-results { display: grid; gap: 13px; }
    .trip-empty-state {
      display: grid;
      justify-items: center;
      gap: 5px;
      padding: 38px 15px;
      border: 1px dashed rgba(255,255,255,.12);
      border-radius: 15px;
      color: var(--muted);
      text-align: center;
    }
    .trip-empty-state strong { color: var(--text); }
    .trip-empty-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      margin-bottom: 5px;
      border-radius: 14px;
      background: rgba(138,143,255,.12);
      color: var(--accent);
      font-size: 24px;
    }
    .trip-option {
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 17px;
      background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    }
    .trip-option.fastest { border-color: rgba(61,220,132,.42); box-shadow: 0 0 0 1px rgba(61,220,132,.08) inset; }
    .trip-option > summary {
      list-style: none;
      cursor: pointer;
      padding: 15px;
    }
    .trip-option > summary::-webkit-details-marker { display: none; }
    .trip-option-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .trip-time-range { font-size: 20px; font-weight: 850; letter-spacing: -.35px; font-variant-numeric: tabular-nums; }
    .trip-time-range span { color: var(--muted); font-weight: 650; }
    .trip-departs-in { color: var(--muted); font-size: 13px; font-weight: 700; text-align: right; }
    .trip-badges { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
    .trip-badge { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
    .trip-badge.fastest { color: #07130c; background: var(--success); }
    .trip-badge.delay { color: #241500; background: var(--warning); }
    .trip-badge.rush { color: #fff; background: rgba(138,143,255,.55); }
    .trip-pill-chain { display: flex; align-items: center; gap: 5px; margin-top: 13px; flex-wrap: wrap; }
    .route-pill {
      --route-color: var(--accent);
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 36px;
      padding: 6px 15px 6px 8px;
      border: 1px solid color-mix(in srgb, var(--route-color) 70%, white 10%);
      border-radius: 9px 14px 14px 9px;
      background: color-mix(in srgb, var(--route-color) 72%, #111 28%);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      box-shadow: 0 4px 14px rgba(0,0,0,.18);
    }
    .route-pill img { width: 23px; height: 23px; object-fit: contain; border-radius: 6px; }
    .route-pill-arrow { color: var(--muted); font-size: 18px; }
    .trip-transfer-summary { margin-top: 9px; color: #d7d8df; font-size: 12px; }
    .trip-meta { display: flex; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
    .fallback-notice, .journey-warning {
      display: flex;
      gap: 9px;
      align-items: flex-start;
      margin: 10px 0 0;
      padding: 9px 10px;
      border: 1px solid rgba(255,149,0,.28);
      border-radius: 10px;
      background: rgba(255,149,0,.07);
      color: #ffd9a1;
      font-size: 11px;
      line-height: 1.4;
    }
    .journey-warning.delay-warning { border-color: rgba(255,90,95,.28); background: rgba(255,90,95,.07); color: #ffc0c2; }
    .trip-details { padding: 0 15px 15px; border-top: 1px solid rgba(255,255,255,.07); }
    .trip-leg { margin-top: 13px; }
    .trip-leg-card {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px;
      border-radius: 12px;
      background: #20202d;
      border: 1px solid rgba(255,255,255,.07);
    }
    .trip-leg-card img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
    .trip-leg-card strong, .trip-leg-card span { display: block; }
    .trip-leg-card span { color: var(--muted); font-size: 11px; margin-top: 2px; }
    .trip-leg-time { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
    .trip-stop-timeline { margin: 10px 0 0 17px; padding-left: 18px; border-left: 3px solid var(--leg-color, var(--accent)); }
    .trip-stop { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 7px 0; color: var(--muted); font-size: 11px; }
    .trip-stop::before { content: ''; position: absolute; left: -28px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 3px solid var(--leg-color, var(--accent)); }
    .trip-stop.endpoint { color: var(--text); font-weight: 750; }
    .trip-stop-time { font-variant-numeric: tabular-nums; }
    .trip-stop-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
    .transfer-block {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 13px 0 3px;
      padding: 10px 3px;
      border-top: 1px solid rgba(255,255,255,.09);
      border-bottom: 1px solid rgba(255,255,255,.09);
    }
    .transfer-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border-radius: 11px; background: #2a2b3b; color: var(--accent); }
    .transfer-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .transfer-block-copy { min-width: 0; }
    .transfer-block-copy strong, .transfer-block-copy > span { display: block; }
    .transfer-block-copy > span { margin-top: 2px; color: var(--muted); font-size: 11px; }
    .transfer-block.tight .transfer-block-copy > span { color: var(--warning); font-weight: 700; }
    .alternate-final-step {
      margin-top: 13px;
      padding: 12px;
      border: 1px dashed rgba(255,149,0,.35);
      border-radius: 12px;
      background: rgba(255,149,0,.06);
      font-size: 12px;
      line-height: 1.45;
    }
    .trip-no-results { padding: 28px 15px; border: 1px dashed rgba(255,90,95,.28); border-radius: 15px; color: var(--muted); text-align: center; }
    .trip-no-results strong { display: block; margin-bottom: 5px; color: var(--text); }

@media (max-width: 699px) {
  .view-tab { font-size: 12px; }
  .trip-planner-heading { align-items: flex-start; }
  .trip-planner-heading h2 { font-size: 19px; }
  .depart-controls { grid-template-columns: 1fr; align-items: stretch; }
  .depart-choice { width: 100%; }
  .depart-choice-button { flex: 1; }
  .future-departure-fields { width: 100%; }
  .find-trips-button { width: 100%; }
  .trip-time-range { font-size: 17px; }
  .trip-station-field { grid-template-columns: 38px minmax(0,1fr); gap: 7px; padding: 7px 44px 7px 7px; }
  .trip-station-field::before { left: 50px; }
  .trip-station-field > span { font-size: 11px; }
  .trip-custom-select .custom-select-trigger { padding: 6px 26px 6px 12px; }
  .route-pill { font-size: 11px; }
}
