* { margin: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(120% 100% at 50% 0%, #12314a 0%, #0a1622 60%, #070f18 100%);
  color: #eaf2f8; -webkit-user-select: none; user-select: none;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: flex; align-items: flex-start; justify-content: center;
}
.card {
  width: 100%; max-width: 460px;
  background: rgba(11, 30, 46, 0.96); border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px; padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.brand { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: #7fb2d6; font-weight: 600; }
.subtitle { font-size: 13px; color: #9fb3c4; }

.field { display: block; margin-bottom: 16px; }
.field .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #6f8597; margin-bottom: 6px; }
.select {
  width: 100%; font: inherit; font-size: 15px; color: #eaf2f8;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 11px 12px; -webkit-appearance: none; appearance: none;
}

.other { font-size: 14px; color: #cfe0ec; margin-bottom: 10px; }
.other b { color: #ffd9a8; }
.other .from { display: block; font-size: 12px; color: #6f8597; margin-top: 1px; }

.list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: flex-start; gap: 12px; }
.row .miles {
  flex: 0 0 auto; min-width: 56px; text-align: center; padding: 7px 8px;
  background: #1d6fb8; color: #fff; border-radius: 9px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.row .rmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row .venue {
  font: inherit; font-size: 15px; color: #eaf2f8; text-align: left; background: none; border: none;
  padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(207,224,236,0.35);
}
.row .venue:active { color: #fff; }
.row .when { font-size: 13px; color: #ffd9a8; font-variant-numeric: tabular-nums; }

.empty { font-size: 14px; color: #9fb3c4; }
.foot { margin-top: 16px; font-size: 11px; color: #5d7488; text-align: center; }
.foot a { color: #7fb2d6; }

/* iOS install hint */
.ios-hint {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; background: rgba(29, 111, 184, 0.97); color: #fff;
  border-radius: 14px; padding: 12px 12px 12px 14px; font-size: 13px; line-height: 1.3;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); z-index: 50;
}
.ios-hint .share { flex: 0 0 auto; }
.ios-hint b { font-weight: 700; }
.ios-hint .x {
  flex: 0 0 auto; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: none;
  cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.18); font: inherit; font-size: 13px;
}
