* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Public Sans', system-ui, sans-serif;
  background: #E9E6E0;
  color: #16181D;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F6F4F0;
}
.view { display: flex; flex-direction: column; min-height: 100vh; }
.content { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.brand { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.weather-strip { font-size: 13px; font-weight: 600; color: #4A4F57; }

.search-box {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px;
  background: #fff; border: 1.5px solid #16181D; border-radius: 14px;
}
.search-box input {
  border: 0; outline: 0; flex-grow: 1; font-size: 16px; font-weight: 500;
  font-family: 'Public Sans', sans-serif; background: transparent; color: #16181D;
}

.pill-btn {
  height: 44px; border-radius: 14px; border: 1px solid #CFCAC0; background: #fff;
  color: #1F4FA3; font-size: 14px; font-weight: 700; font-family: 'Public Sans', sans-serif;
  cursor: pointer;
}
.pill-btn:hover { background: #F0EEE8; }

.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: #4A4F57; margin-bottom: 8px;
}

.results-wrap { display: flex; flex-direction: column; }

.station-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; border-bottom: 1px solid #E2DED6; cursor: pointer; background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; padding: 8px 0; font-family: inherit;
}
.station-row:hover { background: #F0EEE8; }
.station-row-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.station-row-name { font-size: 15px; font-weight: 600; }
.station-row-sub { font-size: 12px; color: #4A4F57; }
.line-badges { display: flex; gap: 3px; flex-wrap: wrap; }
.line-badge {
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}

.empty-note { color: #4A4F57; font-size: 14px; padding: 12px 0; }

/* Station view */
.station-header {
  background: #16181D; color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; margin-left: -8px; }
.station-name {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.5px;
}
.station-lines { display: flex; gap: 4px; flex-wrap: wrap; }
.station-lines .line-badge { width: 26px; height: 26px; font-size: 13px; }
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #C9CCD1; }
.live-indicator::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84;
}

.arrival-row {
  display: flex; align-items: center; gap: 14px; min-height: 58px; border-bottom: 1px solid #E2DED6;
}
.arrival-badge {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.arrival-info { flex-grow: 1; min-width: 0; }
.arrival-dir { font-size: 15px; font-weight: 600; }
.arrival-status { font-size: 12px; color: #4A4F57; }
.arrival-time { display: flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.arrival-min { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; }
.arrival-unit { font-size: 12px; font-weight: 600; color: #4A4F57; }
