/* Shared station picker, modeled on Flighty's centered airport search. */
.station-search-dialog {
  position: fixed;
  inset: auto;
  top: calc(50% - 2rem);
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 36.25rem;
  max-height: calc(100dvh - 2rem);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-ink, #111114);
  box-shadow: none;
  z-index: 100;
}
.station-search-dialog::backdrop {
  background: rgb(255 255 255 / .75);
  backdrop-filter: blur(2px);
}
.station-search-dialog[open] { animation: station-search-enter 150ms cubic-bezier(.4, 0, .2, 1); }
.station-search-dialog[open]::backdrop { animation: station-search-backdrop-enter 150ms ease; }
.station-search-dialog.is-closing { animation: station-search-leave 150ms cubic-bezier(.4, 0, .2, 1) forwards; }
.station-search-dialog.is-closing::backdrop { animation: station-search-backdrop-leave 150ms ease forwards; }
.station-search-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(27.625rem, calc(100dvh - 8rem));
  min-height: 10rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--app-sheet, #fff);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 1px .5px rgb(0 0 0 / .06), 0 3px 3px 1.5px rgb(0 0 0 / .06), 0 6px 6px -3px rgb(0 0 0 / .06), 0 12px 12px -6px rgb(0 0 0 / .06), 0 24px 24px -12px rgb(0 0 0 / .06);
}
.station-search-header { display: flex; align-items: center; gap: .5rem; min-height: 4.5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--app-border, #e9e9ee); flex-shrink: 0; }
.station-search-input-label { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.station-search-input-label > svg { width: 1.25rem; height: 1.25rem; color: var(--app-secondary, #6c6c70); }
.station-search-input { width: 100%; min-width: 0; min-height: 2.75rem; margin: 0; padding: .5rem 0; border: 0; border-radius: 0; outline: none; background: transparent; color: var(--app-ink, #111114); font: 400 1rem/1.5 "Inter", system-ui, sans-serif; }
.station-search-input::placeholder { color: var(--app-secondary, #6c6c70); opacity: 1; }
.station-search-input::-webkit-search-cancel-button { display: none; }
.station-search-input:focus-visible { outline: none; }
.station-search-input-label:focus-within { box-shadow: 0 2px 0 var(--app-accent, #3e8314); }
.station-search-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; padding: .75rem; border: 0; border-radius: 50%; background: var(--app-canvas, #f2f4f7); color: var(--app-secondary, #6c6c70); cursor: pointer; }
.station-search-close:hover { color: var(--app-ink, #111114); background: #e9e9ee; }
.station-search-close > svg { width: 1rem; height: 1rem; }
.station-search-results { flex: 1; min-height: 0; margin: 0; padding: .5rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.station-search-result { margin: 0; padding: 0; }
.station-search-option { display: grid; grid-template-columns: 2rem 2.75rem minmax(0, 1fr); align-items: center; gap: .625rem; min-height: 4.5rem; padding: .75rem; border-radius: .75rem; color: var(--app-ink, #111114); text-decoration: none; transition: background 150ms ease; }
.station-search-option:hover, .station-search-option:focus-visible, .station-search-option.is-selected { background: var(--app-canvas, #f2f4f7); }
.station-search-option:focus-visible { outline: 2px solid var(--app-accent, #3e8314); outline-offset: -2px; }
.station-search-mark { display: flex; align-items: center; justify-content: center; width: 2rem; }
.station-search-mark .app-line-badge { padding: 0; }
.station-search-mark .app-line-badge > span:last-child { display: none; }
.station-search-mark .app-line-mark { width: 1.9rem; height: 1rem; }
.station-search-mark > svg { width: 1.5rem; height: 1.5rem; color: var(--app-accent, #3e8314); }
.station-search-code { font: 650 1rem/1.5 "Inter", system-ui, sans-serif; }
.station-search-copy { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.station-search-name { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.station-search-lines { font-size: .875rem; line-height: 1.5; color: var(--app-secondary, #6c6c70); overflow-wrap: anywhere; }
.station-search-empty { padding: 2rem 1rem; text-align: center; color: var(--app-secondary, #6c6c70); font-size: 1rem; line-height: 1.6; }
.station-search-empty strong { color: var(--app-ink, #111114); }
.station-search-empty p { margin: .5rem 0 1rem; }
.station-search-clear { min-height: 2.75rem; border: 0; border-radius: 1.5rem; padding: .625rem 1.25rem; background: var(--app-lime, #b6dc79); color: var(--app-charcoal, #231f20); font: 600 1rem/1.5 "Inter", system-ui, sans-serif; cursor: pointer; }
@keyframes station-search-enter { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes station-search-leave { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
@keyframes station-search-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes station-search-backdrop-leave { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 26.25rem) { .station-search-header { padding-inline: .875rem; } .station-search-option { gap: .5rem; padding-inline: .5rem; grid-template-columns: 1.9rem 2.5rem minmax(0, 1fr); } }
@media (max-height: 30rem) { .station-search-dialog { top: 50%; padding-block: .75rem; } .station-search-panel { height: calc(100dvh - 3rem); min-height: 6rem; } .station-search-header { min-height: 3.75rem; padding-block: .25rem; } }
@media (prefers-reduced-motion: reduce) { .station-search-dialog, .station-search-dialog[open]::backdrop { animation: none !important; } .station-search-option { transition: none; } }
.station-search-option.is-selected { background: var(--app-accent-soft, #e8f0e3); }
/* Keep each station row compact, as in the source picker. Full line names remain in the DOM. */
.station-search-lines { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
