:root {
  --ink: #2b0b1b;
  --muted: #7a5a6c;
  --line: #f3c4dc;
  --line-strong: #edaccd;
  --paper: #ffffff;
  --wash: #fff0f7;
  --green: #ff4da6;
  --blue: #ff7cc8;
  --violet: #d9488f;
  --danger: #b32424;
  --warning: #8a5a00;
  --focus: #ff4da6;
  --shadow: 0 14px 34px rgba(255, 77, 166, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(180deg, #fff5fb 0%, #ffe7f3 100%);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

[hidden],
.app-view[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.app-shell {
  width: min(100%, 360px);
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 12px 96px;
}

.site-header,
.layout,
.bottom-nav {
  width: 100%;
  max-width: 100%;
}

.app-view {
  transform: translateX(0);
  opacity: 1;
}

.app-view.is-entering,
.app-view.is-exiting {
  pointer-events: none;
  animation-duration: 240ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-view.is-entering.from-right {
  animation-name: slide-in-right;
}

.app-view.is-entering.from-left {
  animation-name: slide-in-left;
}

.app-view.is-exiting.to-left {
  animation-name: slide-out-left;
}

.app-view.is-exiting.to-right {
  animation-name: slide-out-right;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-out-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-26px);
  }
}

@keyframes slide-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-view.is-entering,
  .app-view.is-exiting {
    animation-duration: 1ms;
  }
}

.site-header {
  padding: 0 4px 8px;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.round-button {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.round-button::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
}

.menu-button::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 20px;
  height: 14px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}

.notification-button::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 17px;
  height: 19px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 6px 6px;
}

.back-button::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 15px;
  height: 15px;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

.back-button::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 26px;
  width: 22px;
  height: 3px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
}

.refresh-round-button::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 17px;
  width: 19px;
  height: 19px;
  border: 3px solid var(--ink);
  border-left-color: transparent;
  border-radius: 50%;
}

.refresh-round-button::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.layout {
  display: grid;
  gap: 16px;
}

.departures-view {
  display: grid;
  gap: 16px;
}

.layout > * {
  min-width: 0;
  max-width: 100%;
}

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

.search-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 72px;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-icon {
  width: 22px;
  height: 22px;
  border: 3px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  display: block;
  width: 10px;
  height: 3px;
  margin: 15px 0 0 15px;
  border-radius: 99px;
  background: var(--muted);
  transform: rotate(45deg);
}

input[type="search"] {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  outline: 0;
}

input[type="search"]::placeholder {
  color: #65708a;
}

.filter-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.filter-button::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--green), var(--green)) 0 3px / 28px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 10px / 28px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) 0 17px / 28px 3px no-repeat;
}

.filter-button::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 10px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  box-shadow: 9px 7px 0 -2px #fff, 9px 7px 0 0 var(--green), -2px 14px 0 -2px #fff, -2px 14px 0 0 var(--green);
}

.status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
}

.status.good {
  border-color: rgba(255, 77, 166, 0.3);
  color: var(--ink);
}

.status.warn {
  border-color: rgba(138, 90, 0, 0.28);
  color: var(--ink);
}

.status.error {
  border-color: rgba(179, 36, 36, 0.28);
  color: var(--ink);
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.star-icon::before,
.star-logo::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  clip-path: polygon(50% 4%, 61% 36%, 95% 36%, 67% 56%, 78% 91%, 50% 70%, 22% 91%, 33% 56%, 5% 36%, 39% 36%);
}

.nearby-cta-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--green);
  clip-path: polygon(8% 45%, 92% 8%, 58% 92%, 42% 58%);
}

.results-section,
.nearby-section,
.departures-section,
.saved-section,
.map-section {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.link-button {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
}

.nearby-list {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nearby-empty {
  margin-bottom: 0;
}

.nearby-row,
.stop-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.nearby-row:last-child,
.stop-result:last-child {
  border-bottom: 0;
}

.bus-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe1ef;
  border: 1px solid #f7b7d6;
}

.bus-dot::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 16px;
  height: 17px;
  border: 3px solid var(--blue);
  border-radius: 4px;
}

.bus-dot::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 23px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 9px 0 0 var(--blue);
}

.nearby-details,
.stop-result > span:first-child {
  display: grid;
  min-width: 0;
}

.nearby-details strong,
.stop-result strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-details span,
.stop-result span,
.stop-card-name {
  color: var(--muted);
}

.nearby-details span,
.stop-result > span:first-child > span {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-meta {
  display: grid;
  justify-items: end;
  min-width: 58px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nearby-meta span:first-child {
  color: var(--green);
  font-size: 0.98rem;
  font-weight: 800;
}

.row-arrow {
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

.nearby-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 10px 0 0;
  padding: 0 14px;
  border-radius: 18px;
  background: #ffe6f2;
  color: var(--green);
  font-weight: 700;
}

.nearby-list:empty + .nearby-cta {
  margin-top: 0;
}

.nearby-cta::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: rotate(45deg);
}

.nearby-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.empty-state {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
}

.results-section,
.departures-section {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.stop-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.stop-result {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

.stop-code {
  max-width: 92px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffe0f1;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.selected-stop {
  margin: 5px 0 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.secondary-button {
  min-height: 40px;
  margin-right: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #ffe0f1;
  color: var(--ink);
  font-weight: 700;
}

.favorite-button[aria-pressed="true"] {
  background: #ffe1ef;
  color: var(--green);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.route,
.tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe1ef;
  color: var(--blue);
  font-weight: 800;
}

.due {
  color: var(--green);
  font-weight: 800;
}

.tag {
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  font-size: 0.82rem;
}

.tag.realtime {
  border-color: rgba(255, 77, 166, 0.3);
  background: #ffecf6;
  color: var(--green);
}

.tag.cancelled {
  border-color: rgba(179, 36, 36, 0.25);
  background: #fff0f4;
  color: var(--danger);
}

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

.recent-stops {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 43%);
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.recent-stops::-webkit-scrollbar {
  display: none;
}

.favorite-empty {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 2px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 700;
}

.stop-card {
  position: relative;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(35, 55, 90, 0.1);
  text-align: left;
  scroll-snap-align: start;
}

.stop-card-eyebrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #ffe1ef;
  color: transparent;
}

.stop-card-eyebrow::before {
  content: "";
  width: 16px;
  height: 17px;
  border: 3px solid var(--blue);
  border-radius: 4px;
}

.stop-card-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-card-name {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stop-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: var(--green);
  clip-path: polygon(50% 4%, 61% 36%, 95% 36%, 67% 56%, 78% 91%, 50% 70%, 22% 91%, 33% 56%, 5% 36%, 39% 36%);
}

#recentBlock {
  margin-top: 18px;
}

#recentBlock h2 {
  margin-bottom: 10px;
}

.map-placeholder {
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 77, 166, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 77, 166, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.7);
  background-size: 32px 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.departures-top {
  padding: 0 4px 0;
}

.departures-top .top-actions {
  margin-bottom: 14px;
}

.departures-view .search-section,
.selected-stop-card,
.cancelled-toggle,
.departures-view .departures-section {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.departures-view .search-section {
  padding: 12px;
  border-radius: 18px;
}

.departures-view .search-row {
  grid-template-columns: 26px minmax(0, 1fr) 40px;
  min-height: 48px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: none;
}

.departures-view .search-icon {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.departures-view .search-icon::after {
  width: 8px;
  height: 2px;
  margin: 12px 0 0 12px;
}

.departures-view input[type="search"] {
  font-size: 0.95rem;
}

.departures-view .filter-button {
  width: 36px;
  height: 36px;
}

.departures-view .filter-button::before,
.departures-view .filter-button::after {
  transform: scale(0.88);
  transform-origin: center;
}

.departures-view .status {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.7);
}

.selected-stop-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bus-dot.large {
  width: 52px;
  height: 52px;
}

.bus-dot.large::before {
  left: 15px;
  top: 13px;
}

.bus-dot.large::after {
  left: 18px;
  top: 28px;
}

.selected-stop-main h2 {
  overflow: hidden;
  font-size: 1.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-stop-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.favorite-icon-button {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(35, 55, 90, 0.09);
}

.favorite-icon-button::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--muted);
  clip-path: polygon(50% 4%, 61% 36%, 95% 36%, 67% 56%, 78% 91%, 50% 70%, 22% 91%, 33% 56%, 5% 36%, 39% 36%);
}

.favorite-icon-button[aria-pressed="true"]::before {
  background: var(--green);
}

.selected-stop-card .meta-bar {
  justify-content: space-between;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.cancelled-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px 68px;
  align-items: center;
  min-height: 64px;
  color: var(--ink);
  font-weight: 600;
}

.cancelled-toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  position: relative;
  grid-column: 3;
  width: 62px;
  height: 34px;
  border-radius: 999px;
  background: #c9ceda;
}

.toggle-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 32, 64, 0.16);
}

.cancelled-toggle input:checked + .toggle-track {
  background: var(--green);
}

.cancelled-toggle input:checked + .toggle-track::before {
  transform: translateX(28px);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.live-pill::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.departures-caption {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.departure-list {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
}

.departure-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.departure-card:last-child {
  border-bottom: 0;
}

.departure-card.is-cancelled {
  opacity: 0.58;
}

.loading-card {
  grid-template-columns: 58px minmax(0, 1fr) 70px;
}

.loading-card span {
  display: block;
  min-height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f8, #f8fbff, #edf2f8);
  background-size: 200% 100%;
  animation: loading-sheen 1.3s ease-in-out infinite;
}

.loading-card span:first-child {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

@keyframes loading-sheen {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.departure-route {
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 16px;
  font-size: 1.25rem;
}

.departure-details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.departure-details strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-details span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-timing {
  display: grid;
  justify-items: end;
  min-width: 72px;
  gap: 3px;
}

.departure-timing .due {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
  white-space: nowrap;
}

.departure-timing .tag.realtime + *,
.departure-timing .tag.realtime {
  color: var(--green);
}

.departure-timing > span:not(.tag) {
  color: var(--muted);
  font-size: 0.86rem;
}

.departure-timing .tag {
  padding: 3px 8px;
  font-size: 0.76rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(calc(100% - 28px), 326px);
  margin: 0;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(35, 55, 90, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(25% - 24px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0 12%, #ffd0e6 13% 72%, #ffb6d8 100%);
  box-shadow: 0 10px 22px rgba(255, 77, 166, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: left 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav.is-departures::before {
  left: calc(75% - 24px);
}

.nav-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  background: transparent;
  color: #9aa3b4;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 220ms ease, transform 220ms ease;
}

.nav-item.active {
  color: var(--green);
  transform: translateY(-1px);
}

.nav-icon {
  width: 26px;
  height: 26px;
}

.icons-ready .nav-icon::before,
.icons-ready .nav-icon::after {
  content: none;
}

.nav-icon svg,
svg.nav-icon {
  width: 25px;
  height: 25px;
  stroke: currentColor;
}

.compass-icon::before,
.timer-icon::before,
.clock-outline-icon::before {
  border-color: currentColor;
}

.compass-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.compass-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(50% 0, 72% 72%, 0 50%);
}

.timer-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.timer-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(3px, -2px);
}

.clock-outline-icon::after {
  border-color: currentColor;
}

@media (max-width: 374px) {
  .app-shell {
    padding-inline: 10px;
  }

  .recent-stops {
    grid-auto-columns: minmax(140px, 48%);
  }
}
