:root {
  --red: #E2001A;
  --surface: #1F1F1F;
  --background: #121212;
  --on-surface: #FFFFFF;
  --on-surface-variant: #ABABAB;
  --amber: #FFA500;
  --green: #4ADE80;
  --cyan: #67E8F9;
  --state-hover: rgba(255, 255, 255, .08);
  --state-press: rgba(255, 255, 255, .12);
  --outline: rgba(255, 255, 255, .08);
  --elev-3: 0 4px 8px 3px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .45);
  --font: "Google Sans Flex", "Google Sans", Roboto, system-ui, sans-serif;
  --google-blue: #8AB4F8;
  --ui-scale: 1;
  --bar-bottom: calc(16px + 56px * var(--ui-scale));
  --sheet-h: 45vh;
  --top-safe: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
[hidden] { display: none !important; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--background); color: var(--on-surface);
  font-family: var(--font); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
#map { position: absolute; inset: 0; transition: opacity .45s ease; }
body.locating #map { opacity: 0; }
.msr {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; user-select: none;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.msr.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.msr.sm { font-size: 20px; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; }
.search-bar {
  position: absolute; z-index: 5;
  top: calc(16px + var(--top-safe)); left: 12px; right: 12px;
  height: calc(56px * var(--ui-scale)); padding: 0 calc(13px * var(--ui-scale)) 0 0;
  display: flex; align-items: center;
  background: var(--surface); border-radius: calc(28px * var(--ui-scale)); box-shadow: var(--elev-3);
}
.search-bar > *, .fabs > *, #sheet-content > * { zoom: var(--ui-scale); }
.search-bar input {
  flex: 1; min-width: 0; height: 56px; margin-left: 14px; padding: 0;
  background: none; border: 0; outline: 0;
  color: var(--on-surface); font: 400 20px/1 var(--font);
}
.search-bar #search-lead { flex: none; display: grid; place-items: center; margin-left: 17px; color: #ABABAB; cursor: text; }
.search-bar #search-lead .msr { font-size: 26px; }
.search-bar #settings-btn { margin-right: 12px; }
.search-bar #settings-btn .msr { font-size: 26px; color: #ABABAB; }
.search-bar input::placeholder { color: transparent; }
#search-ph {
  position: absolute; left: 57px; top: 0; height: 56px;
  display: block; pointer-events: none; white-space: nowrap;
  color: var(--on-surface-variant); font: 400 20px/56px var(--font);
}
.search-bar input:not(:placeholder-shown) ~ #search-ph { display: none; }
.wordmark {
  font-family: "Momo Trust Display", var(--font); font-size: 21px; line-height: 1.25;
  background: linear-gradient(90deg, #FE9D95, #C965A2, #B34EA7, #9933AE, #760EB6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search-bar input::-webkit-search-cancel-button { display: none; }
.icon-btn {
  position: relative; width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--on-surface-variant);
}
.icon-btn, .fab { padding: 0; -webkit-appearance: none; appearance: none; }
.icon-btn > .msr, .fab > .msr, .fab > .loc-icon { position: absolute; inset: 0; margin: auto; }
.icon-btn > .msr, .fab > .msr { width: 1em; height: 1em; overflow: hidden; text-align: center; }
.icon-btn::after, .fab::after, .card.clickable::after, .row::after, .chip-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: transparent; transition: background .15s; pointer-events: none;
}
@media (hover: hover) { .icon-btn:hover::after, .fab:hover::after, .card.clickable:hover::after, .row:hover::after, .chip-btn:hover::after { background: var(--state-hover); } }
.icon-btn:active::after, .fab:active::after, .card.clickable:active::after, .row:active::after { background: var(--state-press); }
.icon-btn:focus-visible, .fab:focus-visible, .card:focus-visible, .row:focus-visible { outline: 2px solid var(--on-surface); outline-offset: -2px; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabs {
  position: absolute; z-index: 4; right: 16px;
  bottom: calc(var(--sheet-h) + 16px);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  transition: bottom .3s cubic-bezier(.2, 0, 0, 1);
}
body.sheet-dragging .fabs, body.sheet-dragging #snackbar { transition: none; }
.fab {
  position: relative; width: 56px; height: 56px; border: 0; border-radius: 16px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--on-surface); box-shadow: var(--elev-3);
}
.fab.small { width: 40px; height: 40px; border-radius: 12px; }
#locate { width: 52px; height: 52px; border-radius: 16px; background: #1F1F1F; }
#locate.back .msr { font-size: 26px; color: var(--on-surface); }
.loc-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #3C4658;
}
.loc-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; border-radius: 50%;
  background: #0F53FF; box-shadow: 0 0 0 2px #fff;
}
#sheet {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: calc(100% - var(--bar-bottom) - 16px - var(--top-safe));
  transform: translateY(calc(100% - var(--sheet-h)));
  background: var(--background); border-radius: 28px 28px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, 0, 0, 1);
  touch-action: none;
}
#sheet.dragging { transition: none; }
.handle-zone { flex: none; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.handle { width: 32px; height: 4px; border-radius: 2px; background: #4A4A4A; }
#sheet-content {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 899px) { #sheet:not(.is-full) #sheet-content { touch-action: none; } }
.desktop-only { display: none; }
@media (min-width: 900px) {
  .search-bar { width: min(calc(400px * var(--ui-scale)), calc(100vw - 24px)); right: auto; }
  #sheet {
    top: calc(var(--bar-bottom) + 16px); left: 16px; bottom: 16px; right: auto;
    width: min(calc(400px * var(--ui-scale)), calc(100vw - 32px)); height: auto;
    transform: none; border-radius: 28px; box-shadow: var(--elev-3);
  }
  .handle-zone { display: none; }
  #sheet-content { padding-top: 20px; }
  .fabs { bottom: 32px; right: 16px; }
  .desktop-only { display: grid; }
}
.title { font-size: 24px; font-weight: 400; line-height: 32px; margin: 4px 4px 16px; letter-spacing: 0; }
.muted { color: var(--on-surface-variant); }
.card {
  position: relative; display: block;
  background: var(--surface); border-radius: 24px;
  padding: 18px 20px; margin-bottom: 12px;
  color: inherit; text-decoration: none;
}
.card.clickable { cursor: pointer; }
.card.list { padding: 8px 0; }
.stop-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; line-height: 24px; }
.stop-name .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-sub { color: var(--on-surface-variant); font-size: 14px; margin: 2px 0 10px; }
.stop-sub:last-child { margin-bottom: 0; }
.ind {
  flex: none; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.ind.ext { background: #EEEEEE; color: #000; }
.ind .ind-pin { font-size: 15px; }
.row .ind .ind-pin { font-size: 17px; }
.ind .ind-arrow { font-size: 16px; font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 20; }
.row .ind .ind-arrow { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  flex: none; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 6px;
  display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chip.lg { height: 28px; min-width: 48px; font-size: 16px; }
.plate {
  flex: none; height: 28px; padding: 0 10px; border-radius: 6px;
  display: inline-grid; place-items: center;
  background: #fff; color: #121212; font-size: 15px; font-weight: 700; letter-spacing: .03em;
}
.plates { flex: none; display: inline-flex; gap: 6px; }
.run-no {
  flex: none; height: 28px; min-width: 28px; padding: 0 8px; border-radius: 6px;
  display: inline-grid; place-items: center;
  background: #FFCB00; color: #000; font-size: 15px; font-weight: 700;
}
.head { padding: 4px 4px 16px; }
.head .stop-name { font-size: 20px; line-height: 28px; }
.head-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; line-height: 28px; font-weight: 500; }
.facts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.fact { display: inline-flex; align-items: center; gap: 8px; }
.fact .msr { font-size: 20px; }
.red { color: var(--red); }
.amber { color: var(--amber); }
.green { color: var(--green); }
.cyan { color: var(--cyan); }
.row {
  position: relative; display: grid; grid-template-columns: var(--lead, 52px) minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 48px; padding: 6px 20px; cursor: pointer;
}
.row .dest { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; }
.row .dest span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .dest .msr { font-size: 20px; flex: none; }
.row .sub { font-size: 12px; color: var(--on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eta { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 16px; }
.eta b { font-size: 18px; font-weight: 500; color: var(--on-surface); }
.eta small { font-size: 14px; font-weight: 400; margin-left: 0; color: var(--on-surface-variant); }
.eta.due { color: var(--amber); font-weight: 500; font-size: 17px; }
.eta.sched { color: var(--on-surface-variant); }
.row.passed { opacity: .4; }
.row.current .dest { font-weight: 600; }
.row .chip { justify-self: start; min-width: 44px; }
.card.stops { --lead: 30px; }
.row .ind { justify-self: center; min-width: 26px; height: 26px; border-radius: 13px; font-size: 11px; }
.route-card { display: flex; align-items: center; gap: 16px; }
.route-card-text { min-width: 0; }
.route-title { font-size: 18px; font-weight: 500; line-height: 24px; }
.route-card .stop-sub { margin: 2px 0 0; }
.route-title .two-way { font-size: 20px; color: var(--on-surface-variant); vertical-align: -4px; margin: 0 6px; }
.chip.link { text-decoration: none; cursor: pointer; }
@media (hover: hover) { .chip.link:hover { filter: brightness(1.12); } }
.route-actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 12px; margin-top: 14px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 18px 0 14px;
  border: 0; border-radius: 10px; background: var(--surface); color: var(--on-surface);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  flex: 0 1 auto; min-width: 0; white-space: nowrap;
}
.pill-btn .pill-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill-btn .run-text { flex: none; }
.pill-btn .short { display: none; }
@media (max-width: 400px) {
  .route-actions { gap: 8px; }
  .pill-btn { gap: 7px; padding: 0 13px 0 10px; font-size: 14px; }
  .pill-btn .msr { font-size: 18px; }
  .pill-btn .long { display: none; }
  .pill-btn .short { display: inline; }
}
.pill-btn.green { color: var(--green); cursor: default; }
button.pill-btn.green[data-hint] { cursor: pointer; }
.route-actions.flush { justify-content: flex-start; }
a.pill-btn { text-decoration: none; }
a.pill-btn.green { cursor: pointer; }
@media (hover: hover) { a.pill-btn:hover { background: #2a2a2a; } }
span.pill-btn:not(.green) { cursor: default; }
.pill-btn .run-text { color: #FFCB00; margin-left: -4px; }
.run-no.link { text-decoration: none; cursor: pointer; }
@media (hover: hover) { .run-no.link:hover { filter: brightness(1.08); } }
.head-line .route-title { font-size: inherit; line-height: inherit; }
.bus-list { padding: 12px 14px 8px; }
.bus-group { font-size: 18px; font-weight: 700; margin: 8px 0 10px; }
.bus-row {
  display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 -6px; padding: 4px 6px;
  border-radius: 10px; cursor: pointer; overflow: hidden;
}
@media (hover: hover) { .bus-row:hover { background: rgba(255, 255, 255, .04); } }
.bus-row .run-no, .bus-row .no-run { width: 48px; min-width: 48px; padding: 0; }
.bus-row .no-run { display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 700; }
.bus-row .no-run .msr { font-size: 17px; }
.bus-row .plate { min-width: 92px; padding: 0 7px; }
@media (min-width: 420px) {
  .bus-list { padding: 12px 20px 8px; }
  .bus-row { gap: 12px; }
  .bus-row .plate { min-width: 108px; }
}
.bus-row .fleet { font-size: 16px; font-weight: 500; min-width: 58px; }
.bus-row .gps { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; min-width: 0; }
.bus-row .gps > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.bus-row .gps .msr { font-size: 17px; }
.run-trips .run-trip { position: relative; padding: 6px 0; }
.run-trips .trip-label {
  position: relative; display: flex; align-items: center; min-height: 30px;
  padding: 0 20px 0 calc(20px + var(--lead) + 14px); font-size: 14px; color: var(--on-surface-variant);
}
.run-trips .trip-label::before {
  content: ""; position: absolute; left: calc(20px + var(--lead) / 2 - 1.5px); width: 3px; top: 0; bottom: 0;
  background: var(--line-colour, var(--red));
}
.run-trips .trip-label::after {
  content: ""; position: absolute; left: calc(20px + var(--lead) / 2); width: 16px; height: 2px; top: 50%;
  background: var(--line-colour, var(--red));
}
.run-trips .run-trip.current .trip-label { color: var(--on-surface); font-weight: 500; }
.run-trips .row .dest { font-size: 17px; }
@media (hover: hover) { button.pill-btn:hover { background: #2a2a2a; } }
.pill-btn .msr { font-size: 20px; flex: none; }
@media (max-width: 400px) { .pill-btn .msr { font-size: 18px; } }
.route-dir { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.route-dir .dir-arrow { font-size: 22px; color: var(--on-surface-variant); }
.route-stops .row { min-height: 42px; padding-top: 2px; padding-bottom: 2px; }
.route-stops .row::before {
  content: ""; position: absolute; left: calc(20px + var(--lead) / 2 - 1.5px); width: 3px; top: 0; bottom: 0;
  background: var(--line-colour, var(--red));
}
.route-stops .row.first::before { top: 50%; }
.route-stops .row.last::before { bottom: 50%; }
.route-stops .row .ind { position: relative; z-index: 1; }
.updated { text-align: center; color: var(--on-surface-variant); font-size: 13px; padding: 12px 0 4px; }
.text-btn {
  display: block; width: 100%; padding: 10px 20px; background: none; border: 0; cursor: pointer;
  color: var(--on-surface-variant); font-size: 14px; font-weight: 500; text-align: left;
}
@media (hover: hover) { .text-btn:hover { color: var(--on-surface); } }
.empty { color: var(--on-surface-variant); padding: 24px 8px; text-align: center; }
.empty .msr { font-size: 40px; display: block; margin: 0 auto 8px; }
.skeleton { height: 112px; border-radius: 24px; margin-bottom: 12px; background: linear-gradient(90deg, #1b1b1b, #262626, #1b1b1b); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.settings { padding: 0 4px; }
.settings-group { margin: 22px 0 6px; font-size: 14px; font-weight: 500; color: var(--google-blue); letter-spacing: .01em; }
.settings-group:first-child { margin-top: 4px; }
.setting { display: flex; align-items: center; gap: 24px; padding: 14px 0; cursor: pointer; }
.setting .label { flex: 1; min-width: 0; }
.setting-title { display: block; font-size: 18px; font-weight: 500; line-height: 24px; color: var(--on-surface); }
.setting-help { display: block; margin-top: 4px; font-size: 15px; line-height: 21px; color: var(--on-surface-variant); }
.setting-help + .setting-help { margin-top: 8px; }
.setting-block { padding-top: 14px; }
.setting.sub { padding: 8px 0; }
.setting.sub .setting-help { margin-top: 0; }
.setting-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 14px; color: var(--on-surface-variant); }
.setting-note.top { align-items: flex-start; margin: -8px 4px 8px; line-height: 20px; }
.setting-note.top .msr { flex: none; margin-top: 0; }
.switch { position: relative; flex: none; width: 44px; height: 28px; margin-right: 4px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track {
  position: absolute; left: 6px; right: 0; top: 7px; height: 14px; border-radius: 7px;
  background: #5F6368; transition: background .2s;
}
.switch .thumb {
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #3C4043; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  transition: left .2s cubic-bezier(.2, 0, 0, 1), background .2s;
}
.switch input:checked ~ .track { background: rgba(138, 180, 248, .5); }
.switch input:checked ~ .thumb { left: 20px; background: var(--google-blue); }
.switch input:focus-visible ~ .thumb { outline: 2px solid var(--on-surface); outline-offset: 3px; }
@media (hover: hover) { .setting:hover .switch .thumb { box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 1px 3px rgba(0, 0, 0, .5); } }
.stepper { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.step {
  width: 40px; height: 40px; border: 1px solid #5F6368; border-radius: 50%; background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--on-surface);
}
@media (hover: hover) { .step:hover:not(:disabled) { background: var(--state-hover); } }
.step:disabled { opacity: .35; cursor: default; }
.step .msr { font-size: 22px; }
.step-value { min-width: 52px; text-align: center; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.install-btn { flex: none; color: var(--google-blue); }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s ease; }
.modal-card {
  zoom: var(--ui-scale);
  position: relative; width: min(100%, 440px); margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 24px 22px 20px; border-radius: 28px; background: var(--surface); color: var(--on-surface);
  border: 1px solid var(--outline); box-shadow: var(--elev-3);
  transform: translateY(24px); opacity: 0; transition: transform .25s cubic-bezier(.2, 0, 0, 1), opacity .2s ease;
}
.modal.show .modal-scrim { opacity: 1; }
.modal.show .modal-card { transform: none; opacity: 1; }
@media (min-width: 900px) { .modal { align-items: center; } }
.install-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.install-head img { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.install-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 500; line-height: 28px; }
.install-head h2 .wordmark { font-size: 23px; }
.install-head p { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.install-steps { list-style: none; margin: 0 0 14px; padding: 4px 0; border-radius: 18px; background: #282828; }
.install-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 16px; line-height: 23px; }
.install-steps li + li { border-top: 1px solid var(--outline); }
.install-steps b { font-weight: 600; }
.install-steps .step-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--google-blue); color: #0b1d3a; font-size: 14px; font-weight: 700;
}
.install-steps .key {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 2px; vertical-align: middle;
  border-radius: 8px; background: #3a3a3a; color: var(--google-blue);
}
.install-steps .key .msr { font-size: 20px; }
.install-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 2px 18px; font-size: 13px; line-height: 19px; color: var(--on-surface-variant); }
.install-note .msr { flex: none; font-size: 18px; }
.install-done {
  display: block; width: 100%; height: 48px; border: 0; border-radius: 24px; cursor: pointer;
  background: var(--google-blue); color: #0b1d3a; font: inherit; font-size: 16px; font-weight: 600;
}
.install-done:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 2px; }
.doc { padding: 0 4px 16px; font-size: 15px; line-height: 23px; color: #E3E3E3; }
.doc p { margin: 0 0 12px; }
.doc .lead { font-size: 16px; line-height: 24px; color: var(--on-surface); }
.doc .lead .wordmark { font-size: 17px; }
.doc .small { font-size: 13px; }
.doc h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; color: var(--on-surface); scroll-margin-top: 12px; }
.doc h4 { margin: 18px 0 8px; font-size: 14px; font-weight: 500; color: var(--google-blue); letter-spacing: .01em; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--google-blue); text-decoration: none; }
@media (hover: hover) { .doc a:hover { text-decoration: underline; } }
.doc b { color: var(--on-surface); font-weight: 500; }
.doc .toc { background: var(--surface); border-radius: 16px; padding: 12px 16px 6px 36px; }
.doc .sources { list-style: none; padding: 4px 16px; background: var(--surface); border-radius: 16px; }
.doc .sources li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--outline); }
.doc .sources li:last-child { border-bottom: 0; }
#snackbar {
  position: absolute; z-index: 10; left: 0; right: 0;
  bottom: calc(var(--sheet-h) + 28px + 52px * var(--ui-scale));
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
  transition: bottom .3s cubic-bezier(.2, 0, 0, 1);
}
#snackbar .snack {
  zoom: var(--ui-scale);
  display: flex; align-items: center; gap: 12px; max-width: 420px;
  padding: 14px 20px 14px 16px; border-radius: 16px;
  background: var(--surface); color: var(--on-surface); border: 1px solid var(--outline);
  font-size: 15px; line-height: 21px; box-shadow: var(--elev-3);
  pointer-events: auto; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, 0, 0, 1);
}
#snackbar.show .snack { opacity: 1; transform: none; }
#snackbar .snack .msr { flex: none; color: var(--google-blue); }
@media (min-width: 900px) {
  #snackbar { bottom: 24px; left: calc(16px + min(calc(400px * var(--ui-scale)), calc(100vw - 32px))); }
}
.me-dot { width: 22px; height: 22px; border-radius: 50%; background: #1A5CFF; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.map-pills {
  position: absolute; z-index: 2; left: 12px; right: 12px; top: calc(var(--bar-bottom) + 12px + var(--top-safe));
  display: flex; justify-content: space-between; gap: 8px; pointer-events: none;
}
.map-pills > #info-pill { margin-left: auto; }
.info-pill { pointer-events: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.info-pill[hidden] { display: none; }
.info-pill-in {
  zoom: var(--ui-scale);
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px;
  border-radius: 17px; background: rgba(31, 31, 31, .92); color: #E3E3E3;
  font-size: 15px; font-weight: 400; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.info-pill-in .msr { font-size: 18px; }
@media (hover: hover) { .info-pill:hover .info-pill-in { background: #2a2a2a; } }
.info-pill:focus-visible { outline: none; }
.info-pill:focus-visible .info-pill-in { outline: 2px solid var(--on-surface); outline-offset: 2px; }
.fabs, .map-pills { transition: bottom .3s cubic-bezier(.2, 0, 0, 1), opacity .2s, visibility 0s; }
body.sheet-up .fabs, body.sheet-up .map-pills {
  opacity: 0; visibility: hidden;
  transition: bottom .3s cubic-bezier(.2, 0, 0, 1), opacity .2s, visibility 0s .2s;
}
@media (min-width: 900px) {
  .map-pills { left: auto; right: 16px; top: calc(16px + 11px * var(--ui-scale) + var(--top-safe)); justify-content: flex-end; }
}
