:root {
  --accent: #1565e0;
  --accent-dark: #0d4cb3;
  --accent-soft: #e9f1fe;
  --ink: #14202e;
  --ink-2: #45576b;
  --muted: #5d6b7d;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-2: #f3f6fa;
  --ok: #109648;
  --ok-soft: #e6f6ec;
  --warn: #d97706;
  --shadow-1: 0 2px 8px rgba(10, 31, 60, 0.10), 0 0 1px rgba(10, 31, 60, 0.2);
  --shadow-2: 0 10px 36px rgba(10, 31, 60, 0.18);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --material: rgba(255, 255, 255, .86);
  --material-sheet: rgba(255, 255, 255, .74);
  --shadow-btn: 0 1px 2px rgba(10, 31, 60, .14), 0 2px 8px rgba(10, 31, 60, .10);
  /* Controls float over a busy map: a tight contact shadow plus a wide soft one. */
  --shadow-float: 0 1px 2px rgba(10, 31, 60, .22), 0 4px 14px rgba(10, 31, 60, .22), 0 0 0 .5px rgba(10, 31, 60, .14);
  --handle: rgba(60, 60, 67, .3);
  --sheet-h: calc(100dvh - 70px - var(--safe-top));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* The page itself must never scroll. overflow:hidden on the root still allows
   programmatic scrolling (focus(), scrollIntoView), and the parked sheet sits
   below the screen edge — so a scroll pulls the map up and the empty sheet in.
   A fixed body with overflow:clip is not a scroll container at all. */
html { overflow: hidden; }
body { position: fixed; inset: 0; overflow: clip; }
html, body {
  margin: 0; height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  color: var(--ink); background: var(--bg-2);
  font-size: 15px;
}

/* Instant press feedback (on pointer-down, not release) for every tappable control. */
.act, .iconbtn, .swapbtn, .arrival, .sug, .lcell, .region-opt, .sched, .jopt, .dirswitch button, .lchip {
  transition: transform .1s ease-out, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.act:active, .iconbtn:active, .swapbtn:active, .lcell:active, .region-opt:active, .jopt:active, .lchip:active {
  transform: scale(.97);
}
.sug:active { background: var(--bg-2); }

/* Tappable controls inside the translucent sheet need their own lift to read as buttons. */
.sheet .iconbtn, .sheet .act, .sheet .lcell, .sheet .lchip, .sheet .region-opt,
.sheet .sched, .sheet .jopt, .sheet .swapbtn {
  box-shadow: var(--shadow-btn);
}
.sheet .iconbtn { background: var(--bg); }
.sheet .lcell, .sheet .lchip, .sheet .region-opt, .sheet .sched, .sheet .jopt { background: var(--bg); }
.arrival:active, .sched:active { transform: scale(.985); }
.dirswitch button:active { transform: scale(.96); }

button { font-family: inherit; }

#map { position: absolute; inset: 0; }

/* ================= Top search ================= */
.top {
  position: absolute;
  top: calc(12px + var(--safe-top));
  left: 12px; right: 12px;
  z-index: 6;
  display: flex; gap: 10px; align-items: center;
  pointer-events: none;
}
.searchbar, .live-chip, .fab {
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.searchbar {
  pointer-events: auto;
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--material);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: box-shadow .15s ease;
}
.searchbar:active { box-shadow: var(--shadow-2); }
.searchbar .q { flex: 1; font-weight: 500; }
.searchbar svg { width: 19px; height: 19px; flex: none; color: var(--accent); }
.live-chip {
  pointer-events: auto;
  flex: none;
  display: flex; align-items: center; gap: 6px;
  background: var(--material);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  padding: 13px 13px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  white-space: nowrap;
}
.live-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,150,72,.45); }
  70% { box-shadow: 0 0 0 7px rgba(16,150,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,150,72,0); }
}

/* ================= FABs ================= */
.fabs {
  position: absolute; right: 12px;
  bottom: calc(36px + var(--safe-bottom));
  z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  will-change: transform;
}
.fab {
  width: 48px; height: 48px; border-radius: 16px; border: none;
  background: var(--material); box-shadow: var(--shadow-float);
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2);
  transition: transform .12s ease;
}
.fab:active { transform: scale(.92); }
.fab svg { width: 22px; height: 22px; }
.fab-region { color: var(--accent); }
.fab-parking span {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; line-height: 1;
  border: 2px solid currentColor; color: var(--muted);
}
.fab-parking.on span { background: #0B6EF3; border-color: #0B6EF3; color: #fff; }

/* ================= Bus markers ================= */
/* element box is exactly the disc (26px) so MapLibre anchors on the disc
   centre; .num and .nose are absolutely positioned and don't affect the box. */
.bus {
  position: relative;
  width: 26px; height: 26px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.bus .disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--route, #444);
  border: 2px solid #fff;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}
.bus .disc svg { width: 15px; height: 15px; display: block; }
.bus .num {
  position: absolute; left: 50%; top: 23px;
  transform: translateX(-50%);
  background: #fff; color: var(--route, #444);
  font-size: 10px; font-weight: 800; line-height: 1;
  padding: 2px 4px; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  white-space: nowrap; pointer-events: none;
  border: 1px solid rgba(0,0,0,.06);
}
.bus .nose {
  position: absolute; inset: -3px;
  transform: rotate(var(--bear, 0deg));
  pointer-events: none;
}
.bus .nose::before {
  content: '';
  position: absolute; top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--route, #444);
  filter: drop-shadow(0 0 1px #fff);
}
.bus.hidden { opacity: 0; pointer-events: none; }

/* journey endpoint markers */
.jmark {
  background: var(--ink);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  transform: translateY(-4px);
}
.jmark.go { background: var(--ok); }
.jmark.out { background: #c2410c; }
.jmark.swap { background: var(--accent); }

/* ================= Bottom sheet ================= */
/* Fixed full height; position is a JS-driven transform (spring), never layout. */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 7;
  background: var(--material-sheet);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
  height: var(--sheet-h);
  padding-bottom: var(--safe-bottom);
  transform: translate3d(0, 105%, 0);
  will-change: transform;
}
/* At half height the lower part is off-screen; pad so the end of the list stays reachable. */
.sheet.half .sheet-body { padding-bottom: calc(var(--sheet-h) - 48dvh + 20px); }

.grab { flex: none; display: grid; place-items: center; padding: 14px 0 8px; cursor: grab; touch-action: none; }
.grab:active { cursor: grabbing; }
.grab .bar { width: 40px; height: 5px; border-radius: 3px; background: var(--handle); }

.sheet-head {
  flex: none;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 18px 12px;
  touch-action: none;
}
.sheet-head .ico {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.sheet-head .ico svg { width: 21px; height: 21px; }
.sheet-head .t { flex: 1; min-width: 0; padding-top: 1px; }
.sheet-head .t h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.014em; }
.sheet-head .t p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.iconbtn {
  flex: none; width: 44px; height: 44px; border-radius: 13px; border: none;
  background: var(--bg-2); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; font-size: 16px;
}
.iconbtn svg { width: 17px; height: 17px; }

.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 18px 20px; overscroll-behavior: contain; }

/* ================= Stop card ================= */
.actions { display: flex; gap: 8px; margin: 2px 0 14px; }
.act {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-radius: var(--r-md);
  padding: 11px 10px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.act.primary { background: var(--accent); color: #fff; }
.act.soft { background: var(--accent-soft); color: var(--accent-dark); }
.act svg { width: 16px; height: 16px; }

.h-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.h-label .refresh { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }

.arrival {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  background: var(--bg-2);
  margin-bottom: 8px;
}
.lbadge {
  flex: none; min-width: 40px; height: 36px; padding: 0 8px;
  border-radius: 11px;
  background: var(--route, var(--accent));
  color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.arrival .to { flex: 1; min-width: 0; }
.arrival .to b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arrival .to span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.eta { flex: none; text-align: right; }
.eta b { font-size: 17px; font-weight: 800; color: var(--accent); }
.eta.now b { color: var(--ok); }
.eta small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }

.linechips { display: flex; flex-wrap: wrap; gap: 8px; }
.lchip {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg);
  padding: 7px 12px 7px 7px;
  cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease;
}
.lchip .n {
  min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px;
  background: var(--route, var(--accent)); color: #fff;
  font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}
.lchip:active, .lchip.on { border-color: var(--accent); background: var(--accent-soft); }

.empty {
  text-align: center; color: var(--muted); font-size: 13.5px;
  padding: 22px 10px; line-height: 1.5;
}

/* ================= Parking ================= */
.sheet-head .ico.pk-ico { color: #fff; background: #0B6EF3; }
.sheet-head .ico.pk-ico.lot { background: #475569; }
a.act { text-decoration: none; }
.act > svg:first-child { flex: none; }
.pk-free { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.pk-free b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-free span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pk-tag {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted);
}
.pk-tag.live { background: var(--ok-soft); color: var(--ok); }
.pk-bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-bottom: 12px; }
.pk-bar i { display: block; height: 100%; border-radius: 4px; }
.pk-nodata { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pk-addr { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.pk-addr svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.pk-zones { display: flex; flex-direction: column; gap: 8px; }
.pk-zone { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.pk-zone .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pk-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ================= Planner ================= */
.plan-form {
  margin: 2px 0 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
/* Right padding reserves a column for the swap button, so long stop names never run under it. */
.plan-row { display: flex; align-items: center; gap: 10px; padding: 4px 64px 4px 14px; position: relative; }
/* Inset separator: starts at the text and stops before the swap button. */
.plan-row + .plan-row::before {
  content: ''; position: absolute; top: 0; left: 36px; right: 64px;
  border-top: 1.5px solid var(--line);
}
.plan-row .pt { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.plan-row .pt.a { background: var(--ok); }
.plan-row .pt.b { background: #c2410c; }
.plan-row input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; /* ≥16px prevents iOS auto-zoom on focus */
  font-weight: 600; color: var(--ink);
  padding: 12px 0;
  min-width: 0;
  text-overflow: ellipsis;
}
.plan-row input::placeholder { color: var(--muted); font-weight: 500; }
.swapbtn {
  position: absolute; right: 12px; top: 50%;
  /* `translate`, not `transform`: the shared :active scale() must not cancel the centering. */
  translate: 0 -50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg); color: var(--accent);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-1);
}
.swapbtn svg { width: 17px; height: 17px; }

.suggest { margin-top: 10px; }
.sug {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.sug:last-child { border-bottom: none; }
.sug .si {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-2);
  display: grid; place-items: center;
}
.sug .si svg { width: 16px; height: 16px; }
.sug .sn { flex: 1; min-width: 0; }
.sug .sn b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .sn span { font-size: 12px; color: var(--muted); }
.sug .dist { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }

/* journey options */
.jopt {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jopt:active { border-color: var(--accent); box-shadow: var(--shadow-1); }
.jroute { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.jroute .walkarrow { color: var(--muted); }
.jroute .walkarrow svg { width: 15px; height: 15px; display: block; }
.jmeta { display: flex; gap: 14px; margin-top: 9px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; flex-wrap: wrap; }
.jmeta .good { color: var(--ok); }
.jmeta b { font-weight: 800; }
.jtag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ok); background: var(--ok-soft);
  border-radius: 7px; padding: 3px 7px;
  text-transform: uppercase;
}
.jtag.tr { color: var(--warn); background: #fdf1e0; }

/* journey detail steps */
.steps { margin-top: 4px; }
.step { display: flex; gap: 13px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 4px; }
.step .rail {
  flex: none; width: 14px; display: flex; flex-direction: column; align-items: center;
}
.step .rail .knot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3.5px solid var(--knot, var(--accent));
  background: #fff; z-index: 1;
}
.step .rail .pipe { flex: 1; width: 5px; border-radius: 3px; background: var(--pipe, var(--line)); margin: 2px 0; }
.step .sc { flex: 1; min-width: 0; }
.step .sc b { font-size: 14.5px; font-weight: 800; display: block; }
.step .sc .note { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.step .sc .note .lbadge { display: inline-grid; min-width: 30px; height: 24px; font-size: 12px; border-radius: 7px; vertical-align: middle; margin: 0 2px; }
.step .sc .live { color: var(--ok); font-weight: 700; font-size: 12.5px; margin-top: 3px; }

/* all-lines grid */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 4px; }
.lcell {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 9px 4px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer;
}
.lcell .n {
  min-width: 32px; height: 30px; padding: 0 7px; border-radius: 9px;
  background: var(--route, var(--accent)); color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.lcell small { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 700; }
.lcell small svg { width: 14px; height: 14px; flex: none; }
.lcell small.live { color: var(--ok); }
.lcell small.off { opacity: .4; }

/* line view */
.dirswitch {
  display: flex; background: var(--bg-2); border-radius: 12px; padding: 3px; margin-bottom: 12px;
}
.dirswitch button {
  flex: 1; border: none; border-radius: 10px; padding: 9px 6px;
  background: transparent; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dirswitch button.on { background: var(--bg); box-shadow: var(--shadow-1); color: var(--ink); }
.stoprow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px;
  cursor: pointer;
}
.stoprow .idx {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center;
}
.stoprow .nm { flex: 1; font-size: 14px; font-weight: 600; }
.stoprow:active { background: var(--bg-2); border-radius: 10px; }
.stoprow.here { background: #fff7ed; border-radius: 10px; }
.stoprow.here .idx { background: #d97706 !important; color: #fff !important; }
.heretag {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: #b45309; background: #fde9cf; border-radius: 6px; padding: 2px 6px; vertical-align: middle;
}
.nearnote {
  display: flex; align-items: center; gap: 8px;
  background: #fff7ed; color: #92400e;
  border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600;
}
.hint { font-size: 12px; color: var(--muted); margin: 8px 2px 2px; }

/* schedule links + region chooser (Blue Line) */
.sched {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.sched:active { border-color: var(--accent); background: var(--accent-soft); }
.sched svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.region-opt {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; margin-bottom: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer;
}
.region-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.region-opt .ri { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.region-opt .ri svg { width: 22px; height: 22px; }
.region-opt .rn b { display: block; font-size: 15.5px; font-weight: 800; }
.region-opt .rn span { font-size: 12.5px; color: var(--muted); }

.toast {
  position: absolute; left: 50%; top: calc(76px + var(--safe-top));
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; z-index: 10;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spin {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: rot .8s linear infinite; margin: 24px auto;
}
@keyframes rot { to { transform: rotate(360deg); } }

.maplibregl-ctrl-attrib { font-size: 10px; opacity: .85; }
.maplibregl-ctrl-bottom-left { z-index: 4; }

/* ================= Accessibility: motion, transparency, contrast ================= */
@media (prefers-reduced-motion: reduce) {
  .live-chip .dot { animation: none; }
  .sheet { transition: opacity .2s ease; }
  .spin { animation-duration: 2.4s; }
  .act, .iconbtn, .swapbtn, .arrival, .sug, .lcell, .region-opt, .sched, .jopt, .dirswitch button, .lchip { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --material: #ffffff; --material-sheet: #ffffff; }
  .sheet, .searchbar, .live-chip, .fab { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #8a97a8; --muted: #3a4757; --handle: rgba(60, 60, 67, .7); }
  .sheet, .searchbar, .live-chip, .fab { border: 1px solid var(--ink-2); }
}
