/* =====================================================================
   CDA Metro Live — "Transit Geist" design system
   Vercel Geist / shadcn / Open UI inspired. Token-first, dark native.
   Loaded after styles.css. Layout utilities still come from Tailwind.
   ===================================================================== */

:root {
  --c-canvas: 250 250 250;
  --c-panel: 255 255 255;
  --c-subtle: 244 244 245;
  --c-subtle-2: 239 239 242;
  --c-ink: 9 9 11;
  --c-muted: 82 82 91;
  --c-faint: 161 161 170;
  --c-line: 228 228 231;
  --c-line-strong: 212 212 216;
  --c-accent: 0 97 165;
  --c-accent-ink: 255 255 255;
  --c-accent-soft: 224 242 254;
  --c-good: 5 150 105;
  --c-good-soft: 236 253 245;
  --c-warn: 180 83 9;
  --c-warn-soft: 255 251 235;
  --c-bad: 190 18 60;
  --c-bad-soft: 255 241 242;

  --shadow-card: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 3px rgba(9, 9, 11, 0.03);
  --shadow-pop: 0 16px 40px -12px rgba(9, 9, 11, 0.18), 0 2px 8px rgba(9, 9, 11, 0.06);
  --ring: 0 0 0 2px rgb(var(--c-panel)), 0 0 0 4px rgb(var(--c-accent) / 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --radius-sm: 10px;

  color-scheme: light !important;
}

/* Enforce light theme across all devices and settings */
html,
:root {
  color-scheme: light !important;
}

html,
body {
  background-color: rgb(var(--c-canvas));
  color: rgb(var(--c-ink));
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(var(--c-accent) / 0.22);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.tnum {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------------
   Shell & navigation
   --------------------------------------------------------------------- */

.app-header {
  background: rgb(var(--c-panel) / 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(var(--c-line));
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgb(var(--c-ink));
  color: rgb(var(--c-canvas));
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.25);
  flex-shrink: 0;
}

.brand-mark .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1;
}

.nav-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: rgb(var(--c-subtle));
  border: 1px solid rgb(var(--c-line));
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  color: rgb(var(--c-muted));
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-tab .material-symbols-outlined {
  font-size: 16px;
}

.nav-tab:hover {
  color: rgb(var(--c-ink));
  background: rgb(var(--c-panel) / 0.6);
}

.nav-tab.active {
  color: rgb(var(--c-ink));
  background: rgb(var(--c-panel));
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.08);
  font-weight: 650;
}

.nav-tab.active .material-symbols-outlined {
  color: rgb(var(--c-accent));
  font-variation-settings: "FILL" 1;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: rgb(var(--c-muted));
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  transition: all 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:hover {
  color: rgb(var(--c-ink));
  border-color: rgb(var(--c-line-strong));
  background: rgb(var(--c-subtle));
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn .material-symbols-outlined {
  font-size: 19px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 9px 0 11px;
  border-radius: 9px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  color: rgb(var(--c-faint));
  font-size: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.search-trigger:hover {
  border-color: rgb(var(--c-line-strong));
  color: rgb(var(--c-muted));
}

.kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-subtle));
  color: rgb(var(--c-faint));
}

.mobile-tabbar {
  background: rgb(var(--c-panel) / 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgb(var(--c-line));
}

.mtab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 0 5px;
  color: rgb(var(--c-faint));
  font-size: 10px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  position: relative;
}

.mtab .material-symbols-outlined {
  font-size: 22px;
}

.mtab.active {
  color: rgb(var(--c-ink));
  font-weight: 650;
}

.mtab.active .material-symbols-outlined {
  color: rgb(var(--c-accent));
  font-variation-settings: "FILL" 1;
}

.mtab.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: rgb(var(--c-accent));
}

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */

.page-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 28px 28px 40px;
  }
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
}

.page-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: rgb(var(--c-ink));
}

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

.section-title {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgb(var(--c-ink));
}

/* ---------------------------------------------------------------------
   Cards, buttons, chips, inputs
   --------------------------------------------------------------------- */

.card {
  background: rgb(var(--c-panel));
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-hover {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

.card-hover:hover {
  border-color: rgb(var(--c-line-strong));
  box-shadow: 0 8px 24px -12px rgba(9, 9, 11, 0.18);
  transform: translateY(-1px);
}

.rail-card {
  background: rgb(var(--c-panel));
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0.5px) scale(0.99);
}

.btn .material-symbols-outlined {
  font-size: 17px;
}

.btn-primary {
  background: rgb(var(--c-ink));
  color: rgb(var(--c-canvas));
  border-color: rgb(var(--c-ink));
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: rgb(var(--c-panel));
  border-color: rgb(var(--c-line));
  color: rgb(var(--c-ink));
}

.btn-secondary:hover {
  background: rgb(var(--c-subtle));
  border-color: rgb(var(--c-line-strong));
}

.btn-ghost {
  background: transparent;
  color: rgb(var(--c-muted));
}

.btn-ghost:hover {
  background: rgb(var(--c-subtle));
  color: rgb(var(--c-ink));
}

.btn-sm {
  height: 29px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 7px;
  gap: 5px;
}

.btn-sm .material-symbols-outlined {
  font-size: 15px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  color: rgb(var(--c-muted));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.chip:hover {
  border-color: rgb(var(--c-line-strong));
  color: rgb(var(--c-ink));
}

.chip.active {
  background: rgb(var(--c-ink));
  border-color: rgb(var(--c-ink));
  color: rgb(var(--c-canvas));
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.input {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  color: rgb(var(--c-ink));
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: rgb(var(--c-faint));
}

.input:focus {
  outline: none;
  border-color: rgb(var(--c-accent));
  box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.badge-line {
  color: #fff;
}

.badge-soft {
  background: rgb(var(--c-subtle));
  color: rgb(var(--c-muted));
  border-color: rgb(var(--c-line));
}

.badge-good {
  background: rgb(var(--c-good-soft));
  color: rgb(var(--c-good));
  border-color: rgb(var(--c-good) / 0.28);
}

.badge-warn {
  background: rgb(var(--c-warn-soft));
  color: rgb(var(--c-warn));
  border-color: rgb(var(--c-warn) / 0.3);
}

.divider {
  height: 1px;
  background: rgb(var(--c-line));
}

/* ---------------------------------------------------------------------
   Station / ETA board
   --------------------------------------------------------------------- */

.station-card {
  overflow: hidden;
}

.station-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.station-pin-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgb(var(--c-accent-soft));
  color: rgb(var(--c-accent));
  border: 1px solid rgb(var(--c-accent) / 0.18);
  flex-shrink: 0;
}

.station-pin-icon .material-symbols-outlined {
  font-size: 20px;
}

.station-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: rgb(var(--c-ink));
  line-height: 1.2;
}

.eta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

@media (min-width: 640px) {
  .eta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.eta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px 11px 16px;
  border: 1px solid rgb(var(--c-line));
  border-radius: 12px;
  background: rgb(var(--c-panel));
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
  overflow: hidden;
}

.eta-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--eta-color, rgb(var(--c-accent)));
}

.eta-card:hover {
  border-color: var(--eta-color, rgb(var(--c-accent)));
  box-shadow: 0 10px 24px -14px var(--eta-color, rgb(var(--c-accent)));
  transform: translateY(-1px);
}

.eta-in {
  --eta-color: #0284c7;
}

.eta-out {
  --eta-color: #ea580c;
}

.eta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eta-color);
}

.dir-pill .material-symbols-outlined {
  font-size: 14px;
}

.eta-dest {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: rgb(var(--c-ink));
  line-height: 1.3;
}

.eta-main {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 1px;
}

.eta-number {
  font-size: 40px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--eta-color);
}

.eta-unit {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
}

.eta-label {
  margin-left: auto;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
}

.eta-details {
  font-size: 11px;
  line-height: 1.45;
  color: rgb(var(--c-muted));
  font-weight: 500;
}

.eta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgb(var(--c-line));
}

.leave-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--eta-color);
}

.leave-hint .material-symbols-outlined {
  font-size: 14px;
}

.remind-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  color: rgb(var(--c-muted));
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.remind-btn:hover {
  border-color: rgb(var(--c-line-strong));
  color: rgb(var(--c-ink));
}

.remind-btn.armed {
  background: rgb(var(--c-accent));
  border-color: rgb(var(--c-accent));
  color: rgb(var(--c-accent-ink));
}

.remind-btn .material-symbols-outlined {
  font-size: 14px;
}

.track-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--eta-color);
}

.track-link .material-symbols-outlined {
  font-size: 13px;
  transition: transform 0.15s ease;
}

.eta-card:hover .track-link .material-symbols-outlined {
  transform: translateX(2px);
}

.berth-banner {
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
}

.disclaimer {
  margin: 0 16px 16px;
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(var(--c-warn-soft));
  border: 1px solid rgb(var(--c-warn) / 0.22);
  color: rgb(var(--c-warn));
  font-size: 11px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------
   Route rows, stations, planner
   --------------------------------------------------------------------- */

.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-panel));
  transition: all 0.16s ease;
  cursor: pointer;
}

.route-row:hover {
  border-color: rgb(var(--c-line-strong));
  background: rgb(var(--c-subtle) / 0.5);
  transform: translateY(-1px);
}

.route-code {
  min-width: 52px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.03em;
  color: #fff;
  flex-shrink: 0;
}

.route-rail {
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  flex-shrink: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  background: rgb(var(--c-panel));
  border: 1px solid rgb(var(--c-line));
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--c-ink));
}

.stat-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
  margin-bottom: 5px;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .planner-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }
}

.leg {
  border: 1px solid rgb(var(--c-line));
  border-radius: 12px;
  background: rgb(var(--c-panel));
  padding: 12px;
  display: flex;
  gap: 11px;
}

.leg-rail {
  width: 3px;
  border-radius: 999px;
  flex-shrink: 0;
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed rgb(var(--c-line-strong));
  border-radius: 12px;
  color: rgb(var(--c-muted));
  font-size: 12px;
  background: rgb(var(--c-panel));
}

/* ---------------------------------------------------------------------
   Command palette
   --------------------------------------------------------------------- */

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}

.palette {
  width: 100%;
  max-width: 560px;
  background: rgb(var(--c-panel));
  border: 1px solid rgb(var(--c-line-strong));
  border-radius: 15px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: paletteIn 0.18s var(--ease-out);
}

@keyframes paletteIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
}

.palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(var(--c-line));
}

.palette-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgb(var(--c-ink));
  font-size: 14px;
  font-weight: 500;
}

.palette-list {
  max-height: 52vh;
  overflow-y: auto;
  padding: 6px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: rgb(var(--c-ink));
}

.palette-item .material-symbols-outlined {
  font-size: 17px;
  color: rgb(var(--c-muted));
}

.palette-item[data-active="true"],
.palette-item:hover {
  background: rgb(var(--c-subtle));
}

.palette-group {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--c-faint));
  padding: 10px 10px 4px;
}

/* ---------------------------------------------------------------------
   Modals & sheets
   --------------------------------------------------------------------- */

.sheet-backdrop {
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(3px);
}

.sheet {
  background: rgb(var(--c-panel));
  border: 1px solid rgb(var(--c-line));
  color: rgb(var(--c-ink));
  box-shadow: var(--shadow-pop);
}

/* ---------------------------------------------------------------------
   Motion
   --------------------------------------------------------------------- */

.rise {
  animation: rise 0.42s var(--ease-out) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   Interactive states harmonised with clean light transit design
   --------------------------------------------------------------------- */

.hub-filter-pill {
  border-radius: 7px !important;
  height: 25px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.hub-filter-pill.active {
  background-color: rgb(var(--c-ink)) !important;
  border-color: rgb(var(--c-ink)) !important;
  color: rgb(var(--c-canvas)) !important;
  box-shadow: none !important;
}

.hub-filter-pill:not(.active) {
  background-color: rgb(var(--c-panel)) !important;
  border-color: rgb(var(--c-line)) !important;
  color: rgb(var(--c-muted)) !important;
}

.hub-filter-pill:not(.active):hover {
  border-color: rgb(var(--c-line-strong)) !important;
  color: rgb(var(--c-ink)) !important;
}

.cat-pill {
  border-radius: 7px !important;
  height: 25px;
  padding: 0 9px !important;
  font-size: 11px !important;
  line-height: 25px;
}

/* Native controls */
select.input option {
  background: rgb(var(--c-panel));
  color: rgb(var(--c-ink));
}

/* Keep the drawer above the mobile tab bar */
@media (max-width: 767px) {
  #route-drawer-sheet {
    bottom: 3.9rem !important;
  }
}
