:root {
  --ink: #18302b;
  --muted: #6f7e76;
  --green: #b3ee69;
  --line: #e1e6df;
  --paper: #f5f6f0;
  --white: #fff;
  --dark: #142d27;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  font-weight: 650;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus {
  outline: 3px solid #79b741;
  outline-offset: 3px;
}
header {
  height: 86px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  background: #fafbf7;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 1px;
  font-size: 14px;
}
.brand strong {
  font-weight: 800;
}
.brand-icon {
  font-size: 30px;
  width: 36px;
  height: 36px;
  line-height: 32px;
  text-align: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--green);
  margin-right: 6px;
}
.brand small {
  font-size: 10px;
  background: #dceccf;
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: 4px;
}
.status {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.status i,
.map-chip i {
  width: 7px;
  height: 7px;
  background: #9aab9e;
  display: inline-block;
  border-radius: 50%;
}
.status i.live,
.map-chip i {
  background: #7abb45;
  box-shadow: 0 0 0 4px #99cc6620;
}
main {
  max-width: 1680px;
  margin: auto;
  padding: 38px 4vw 20px;
}
.run-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 750;
  margin: 0 0 10px;
  color: #688168;
}
h1 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 650;
  letter-spacing: -1.8px;
  margin: 0 0 8px;
}
.run-heading p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.session-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 12px;
  border: 1px solid #d4dbd1;
  border-radius: 30px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}
.map-shell {
  height: 470px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #dfe6d6;
  border: 1px solid #d3dbcf;
}
#map {
  position: absolute;
  inset: 0;
}
.map-wait {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 55% 25%, #eaf0d9, #cbd7c4);
  text-align: center;
  pointer-events: none;
}
.map-wait > span {
  font-size: 54px;
  color: #799276;
}
.map-wait h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0;
}
.map-wait p {
  font-size: 12px;
  color: #65745f;
}
.map-wait[hidden] {
  display: none;
}
.map-top,
.map-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.map-top {
  top: 18px;
}
.map-bottom {
  bottom: 34px;
}
.map-chip,
.map-button {
  pointer-events: auto;
  background: #fffffff0;
  color: var(--ink);
  box-shadow: 0 2px 10px #0001;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.map-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.map-bottom > span {
  background: #16352de6;
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
  font-size: 11px;
}
.maplibregl-ctrl-top-right {
  top: 64px;
  right: 8px;
}
.run-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-top: 16px;
  padding: 23px 0;
}
.run-metrics article {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.run-metrics article:last-child {
  border: 0;
}
.run-metrics article > span {
  display: block;
  letter-spacing: 1.6px;
  font-size: 9px;
  font-weight: 750;
  color: #64776b;
}
.run-metrics strong {
  display: block;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: -1.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.run-metrics small {
  font-size: 10px;
  color: var(--muted);
}
em {
  color: #cc7465;
  font-style: normal;
  font-size: 14px;
}
.privacy {
  color: #809080;
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
  padding: 4px 0;
}
aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  min-width: 0;
}
.crew-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.crew-title h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin: 0;
}
.crew-title .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
}
.voice-symbol {
  font-size: 38px;
  color: #6a8b53;
  transform: rotate(90deg);
}
.intro {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 17px 0 22px;
}
.recorder {
  padding: 17px;
  background: #f5f7f1;
  border: 1px solid #e6eadf;
  border-radius: 12px;
}
.recorder label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #78836e;
  margin-bottom: 8px;
}
.recorder input {
  background: #fff;
  border: 1px solid #dce2d5;
  width: 100%;
  padding: 11px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 12px;
}
.recorder > button,
#send,
#joinButton {
  background: var(--dark);
  color: var(--green);
  padding: 14px;
  width: 100%;
  font-size: 12px;
}
.recorder > button span {
  margin-right: 5px;
}
.recorder > p {
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  margin: 10px 0 0;
  color: #7b8873;
}
.recorder audio {
  width: 100%;
  height: 34px;
  margin-top: 12px;
}
.record-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.record-actions[hidden] {
  display: none;
}
.quiet {
  background: #e8eee3;
  color: var(--ink);
  padding: 10px 13px;
  font-size: 11px;
}
.feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.feed-heading h3 {
  font-size: 12px;
  margin: 0;
  font-weight: 650;
}
.feed-heading > span {
  font-size: 10px;
  background: #eff3e9;
  padding: 4px 8px;
  border-radius: 20px;
}
.messages {
  max-height: 225px;
  overflow: auto;
}
.empty {
  text-align: center;
  padding: 25px 0;
  color: #96a28e;
}
.empty > span {
  font-size: 30px;
}
.empty p {
  font-size: 11px;
  line-height: 1.7;
}
.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #eef0e9;
}
.message button {
  background: #edf5e2;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  color: #46633c;
}
.message strong {
  display: block;
  font-size: 11px;
}
.message small {
  font-size: 9px;
  color: #8a9681;
}
.message .runner {
  color: #618d34;
}
#notice {
  font-size: 11px;
  color: #8a512f;
  line-height: 1.5;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #94a08e;
}
footer b {
  color: #b9c5b3;
  padding: 0 8px;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 38px;
  width: min(430px, 90vw);
  color: var(--ink);
  background: #f9fbf3;
  box-shadow: 0 24px 100px #0004;
}
dialog::backdrop {
  background: #10281fc0;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 16px 0;
}
dialog p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.join-icon {
  font-size: 36px;
  margin-bottom: 20px;
}
#joinButton {
  margin-top: 12px;
}
.runner-marker {
  height: 22px;
  width: 22px;
  background: #b3ee69;
  border: 4px solid #16352d;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #b3ee6940;
}
.recording {
  background: #923e35 !important;
  color: #fff !important;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.65;
  }
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .run-metrics article {
    padding: 0 13px;
  }
  .run-metrics strong {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  header {
    height: 68px;
    padding: 0 20px;
  }
  .brand {
    font-size: 11px;
  }
  .status {
    font-size: 10px;
  }
  main {
    padding: 26px 18px;
  }
  .session-tag {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .map-shell {
    height: 380px;
  }
  .run-metrics strong {
    font-size: 26px;
  }
  .run-metrics article {
    padding: 0 12px;
  }
  .run-metrics article > span {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  aside {
    padding: 22px;
  }
  .messages {
    max-height: 350px;
  }
  .run-heading {
    margin-bottom: 22px;
  }
  footer {
    line-height: 1.8;
    gap: 15px;
  }
  .maplibregl-ctrl-attrib {
    font-size: 8px;
  }
}

/* Phone-first interaction layer: readable stats, reachable voice controls, safe areas. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
  min-height: 44px;
}
input {
  font-size: 16px;
  min-height: 48px;
}
audio {
  width: 100%;
  max-width: 100%;
}
.mobile-nav {
  display: none;
}
#record {
  min-height: 58px;
  font-size: 16px;
}
.record-actions button {
  min-height: 48px;
}
#notice {
  font-size: 14px;
  line-height: 1.6;
}
.maplibregl-ctrl-group button {
  width: 44px;
  height: 44px;
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  header {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    min-height: 76px;
    padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .brand {
    font-size: 11px;
    flex: 1;
  }
  .status {
    order: 3;
    width: 100%;
    margin: 0;
    font-size: 12px;
  }
  #sound {
    font-size: 12px;
    min-height: 44px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }
  .run-heading p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.6;
  }
  .map-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .run-metrics {
    order: -1;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
  }
  .run-metrics article {
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .run-metrics article:nth-child(2) {
    border-right: 0;
  }
  .run-metrics article:nth-child(n + 3) {
    border-bottom: 0;
  }
  .run-metrics article > span {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .run-metrics strong {
    font-size: 32px;
    line-height: 1.35;
  }
  .run-metrics small {
    font-size: 12px;
  }
  .map-shell {
    height: clamp(280px, 42svh, 400px);
  }
  .map-chip {
    max-width: 52%;
    padding: 8px;
    font-size: 8px;
  }
  .map-top,
  .map-bottom {
    left: 10px;
    right: 10px;
    gap: 8px;
  }
  .map-button {
    min-height: 44px;
    padding: 10px;
  }
  .map-bottom > span {
    font-size: 10px;
    max-width: 70%;
  }
  .privacy {
    margin: 0 8px 8px;
    font-size: 12px;
  }
  aside {
    padding: 22px 18px;
    scroll-margin-top: 110px;
  }
  .intro {
    font-size: 14px;
    line-height: 1.7;
  }
  .crew-title h2 {
    font-size: 26px;
  }
  .messages {
    max-height: none;
  }
  .message button {
    min-width: 48px;
    min-height: 48px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fafbf7f5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    flex: 1;
  }
  .mobile-nav .encourage-link {
    flex: 2;
    background: var(--ink);
    color: white;
  }
  dialog {
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 28px 22px;
    border-radius: 24px;
  }
  #joinButton {
    min-height: 56px;
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.map-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.run-details {
  margin-top: 18px;
  min-width: 0;
}
.extra-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.extra-metrics article {
  padding: 18px;
  background: white;
  min-width: 0;
}
.extra-metrics span {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  color: #64776b;
}
.extra-metrics strong {
  display: block;
  font-size: 26px;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.run-details small {
  color: #64776b;
  font-size: 12px;
  line-height: 1.5;
}
.run-details details,
.route-progress {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
}
.run-details summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  min-height: 30px;
}
.run-details h4 {
  margin: 18px 0 8px;
}
.run-details svg {
  display: block;
  width: 100%;
  height: 190px;
  background: #f5f7f2;
  border-radius: 10px;
}
.chart-caption {
  font-size: 12px;
  color: #64776b;
}
.account-page {
  max-width: 540px;
  margin: 24px auto;
}
.account-form {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin: 24px 0;
}
.account-form[hidden] {
  display: none;
}
.account-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #bccabe;
  border-radius: 10px;
  font: inherit;
  background: white;
  color: #18302b;
}
.splits-scroll {
  max-height: 260px;
  overflow: auto;
}
.run-details table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.run-details td,
.run-details th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.route-progress progress {
  width: 100%;
  accent-color: #23634c;
  height: 12px;
}
#joinActivity {
  overflow-wrap: anywhere;
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.activity-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: white;
}
.archive-open {
  display: inline-block;
  padding: 14px;
  background: #18302b;
  color: white;
  border-radius: 12px;
  margin: 8px 12px 8px 0;
}
#replayTime {
  width: 100%;
  min-height: 44px;
  accent-color: #23634c;
}
#replayControls small {
  display: block;
  margin-top: 12px;
  color: #64776b;
  font-size: 12px;
  line-height: 1.5;
}
.transcript {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.planned-marker {
  color: white;
  background: #4467ad;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.map-options label {
  font-weight: 700;
}
.map-options select {
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  padding: 8px 32px 8px 12px;
  background: #fff;
  color: #18302b;
  border: 1px solid #d7ded5;
  border-radius: 12px;
}
#mapHint {
  font-size: 12px;
  color: #52665a;
}
#mapHint:empty {
  display: none;
}
@media (max-width: 760px) {
  #mapHint {
    flex-basis: 100%;
  }
}

.extra-metrics article:last-child {
  grid-column: 1 / -1;
}
.prediction-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #64776b;
  margin-top: 18px;
}
.prediction-value {
  display: block;
  font-size: 30px;
  margin: 8px 0 18px;
  font-variant-numeric: tabular-nums;
}

/* Compact supporter dashboard: all key readings together, map and detail below. */
.tracker-page .stats-panel {
  margin-bottom: 12px;
}
.tracker-page .run-metrics {
  margin: 0;
  padding: 14px 0;
  border-radius: 12px 12px 0 0;
}
.tracker-page .extra-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.tracker-page .extra-metrics article {
  padding: 10px 12px;
}
.tracker-page .extra-metrics strong {
  font-size: 22px;
  margin: 4px 0;
}
.tracker-page .extra-metrics article:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
.tracker-page .extra-metrics article:last-child strong {
  font-size: 18px;
  margin: 0;
}
.tracker-page .route-progress#routeSummary {
  padding: 12px 14px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
}
.tracker-page #routeSummary[hidden] {
  display: none;
}
.tracker-page #routeSummary h3 {
  margin: 0;
  font-size: 14px;
}
.tracker-page .prediction-label {
  display: none;
}
.tracker-page .prediction-value {
  font-size: 22px;
  margin: 0;
}
.tracker-page #routeSummary progress,
.tracker-page #routeSummary p,
.tracker-page .estimate-note {
  grid-column: 1 / -1;
  margin: 0;
}
.tracker-page #routeSummary progress {
  height: 5px;
  margin: 3px 0;
}
.tracker-page #routeSummary p {
  font-size: 12px;
  line-height: 1.4;
}
.tracker-page .estimate-note summary {
  font-size: 11px;
  color: #64776b;
  cursor: pointer;
}
.tracker-page .estimate-note small {
  font-size: 11px;
  line-height: 1.5;
  display: block;
  margin-top: 8px;
}
.tracker-page .run-details {
  margin-top: 8px;
}
.tracker-page .run-details details {
  padding: 12px 14px;
  margin-top: 8px;
}
.tracker-page .run-details summary {
  font-size: 14px;
}
.compact-ticker {
  display: none;
}
@media (max-width: 760px) {
  .tracker-page header {
    min-height: 58px;
    padding: calc(7px + env(safe-area-inset-top)) 12px 7px;
    gap: 3px 8px;
  }
  .tracker-page .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
  .tracker-page .status {
    font-size: 10px;
  }
  .tracker-page main {
    padding: 12px 12px 20px;
  }
  .tracker-page .run-heading {
    margin-bottom: 10px;
    gap: 3px;
  }
  .tracker-page .run-heading .eyebrow {
    display: none;
  }
  .tracker-page h1 {
    font-size: 22px;
    line-height: 1.15;
    margin: 0;
  }
  .tracker-page .run-heading p:not(.eyebrow) {
    font-size: 11px;
    margin: 4px 0 0;
  }
  .tracker-page .session-tag {
    font-size: 8px;
    padding: 4px 6px;
  }
  .tracker-page .map-column {
    gap: 8px;
  }
  .tracker-page .stats-panel {
    margin: 0;
  }
  .tracker-page .run-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }
  .tracker-page .run-metrics article {
    padding: 9px 6px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .tracker-page .run-metrics article:last-child {
    border-right: 0;
  }
  .tracker-page .run-metrics article > span {
    font-size: 8px;
    letter-spacing: 0.25px;
    white-space: nowrap;
  }
  .tracker-page .run-metrics strong {
    font-size: 23px;
    line-height: 1.3;
    margin: 4px 0;
  }
  .tracker-page #elapsed {
    font-size: 18px;
    line-height: 1.66;
  }
  .tracker-page .run-metrics small,
  .tracker-page .extra-metrics small {
    font-size: 9px;
    line-height: 1.3;
  }
  .tracker-page .extra-metrics article {
    padding: 8px 6px;
  }
  .tracker-page .extra-metrics span {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .tracker-page .extra-metrics strong {
    font-size: 20px;
  }
  .tracker-page .extra-metrics article:last-child {
    padding: 7px 8px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tracker-page .extra-metrics article:last-child strong {
    font-size: 16px;
  }
  .tracker-page .map-options {
    margin: 0;
    gap: 6px;
  }
  .tracker-page .map-options label {
    font-size: 11px;
  }
  .tracker-page .map-options select {
    min-height: 44px;
    font-size: 13px;
    padding: 8px;
  }
  .tracker-page #mapHint {
    font-size: 10px;
  }
  .tracker-page .map-shell {
    height: 240px;
  }
  .tracker-page .map-button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .tracker-page #routeLegend {
    font-size: 10px;
    margin: 0;
  }
  .tracker-page .run-details {
    margin: 0;
  }
  .tracker-page .privacy {
    font-size: 10px;
  }
  .tracker-page .compact-ticker:not([hidden]) {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 5px;
    margin-top: 4px;
    gap: 12px;
  }
  .compact-ticker span {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .compact-ticker small {
    font-size: 8px;
    color: #64776b;
  }
  .compact-ticker strong {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
  }
  .tracker-page .mobile-nav {
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  }
  .tracker-page .mobile-nav button {
    min-height: 44px;
    padding: 8px;
  }
}

/* Readable glass dashboard floats over the map without blocking map gestures above it. */
.tracker-page .map-shell {
  height: 700px;
}
.tracker-page .map-shell .stats-panel {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  border: 1px solid #ffffffad;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(250, 252, 247, 0.91);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px #102d2524;
  color: #142f27;
}
.tracker-page .stats-panel .run-metrics,
.tracker-page .stats-panel .extra-metrics,
.tracker-page .stats-panel .extra-metrics article,
.tracker-page .stats-panel #routeSummary {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.tracker-page .stats-panel .run-metrics,
.tracker-page .stats-panel .extra-metrics {
  border: 0;
}
.tracker-page .stats-panel .extra-metrics {
  border-top: 1px solid #163b2926;
  gap: 0;
}
.tracker-page .stats-panel .extra-metrics article {
  border-right: 1px solid #163b2920;
}
.tracker-page .stats-panel .extra-metrics article:last-child {
  border-top: 1px solid #163b2920;
  border-right: 0;
}
.tracker-page .stats-panel #routeSummary {
  margin: 0;
  border: 0;
  border-top: 1px solid #163b2926;
  padding: 8px 12px;
}
.tracker-page .stats-panel #routeSummary h3 {
  font-size: 12px;
}
.tracker-page .stats-panel .prediction-value {
  font-size: 20px;
}
.tracker-page .stats-panel .estimate-note {
  max-height: 90px;
  overflow: auto;
}
.tracker-page .map-bottom {
  top: 64px;
  bottom: auto;
  align-items: start;
}
.tracker-page .map-bottom > span {
  background: #fafcf7e8;
  padding: 6px 8px;
  border-radius: 6px;
}
.tracker-page .maplibregl-ctrl-bottom-right {
  bottom: auto;
  top: 110px;
}
@media (max-width: 760px) {
  .tracker-page .map-shell {
    height: clamp(480px, calc(100svh - 270px), 650px);
  }
  .tracker-page .map-shell .stats-panel {
    left: 7px;
    right: 7px;
    bottom: 7px;
    border-radius: 10px;
  }
  .tracker-page .stats-panel .run-metrics article {
    padding: 7px 5px;
  }
  .tracker-page .stats-panel .run-metrics strong {
    font-size: 22px;
    margin: 2px 0;
  }
  .tracker-page .stats-panel #elapsed {
    font-size: 17px;
  }
  .tracker-page .stats-panel .extra-metrics article {
    padding: 6px 5px;
  }
  .tracker-page .stats-panel .extra-metrics strong {
    font-size: 18px;
    margin: 2px 0;
  }
  .tracker-page .stats-panel .extra-metrics article:last-child {
    padding: 5px 7px;
  }
  .tracker-page .stats-panel .extra-metrics article:last-child small {
    display: none;
  }
  .tracker-page .stats-panel #routeSummary {
    padding: 7px 9px;
    gap: 3px 8px;
  }
  .tracker-page .stats-panel #routeSummary p {
    font-size: 10px;
  }
  .tracker-page .map-bottom {
    top: 58px;
  }
  .tracker-page .maplibregl-ctrl-bottom-right {
    top: 105px;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .tracker-page .map-shell .stats-panel {
    background: rgba(250, 252, 247, 0.96);
  }
}

.tracker-page .map-bottom > span {
  color: #244737;
}
.tracker-page .maplibregl-ctrl-bottom-right {
  right: 65px;
  top: 104px;
  max-width: calc(100% - 85px);
}
.tracker-page .maplibregl-ctrl-attrib {
  max-width: 100%;
  font-size: 8px;
}
