/* The page itself never moves, like a native app: no pull-to-refresh in Chrome and no rubber band
   in Safari, also when a list scrolled to its end passes the drag on. Lists still scroll. */
html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
}

/* The phone's safe area, where the status bar and the home indicator are: the page reaches under
   them (viewport-fit=cover) and keeps what matters out. The native app sets both from the system's
   insets, as Android's WebView can leave env() at 0. */
:root {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  /* Below the floating tab bar, the pill. iPhones keep their home indicator low in the safe area,
     and their own pills come down over its top half: ours too, like Tractive's. */
  --tab-bar-gap: max(var(--safe-area-bottom) + 8px, 16px);
}

@supports (-webkit-touch-callout: none) {
  :root {
    --tab-bar-gap: max(var(--safe-area-bottom) - 12px, 16px);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: black;
  }
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* The notch's side of a phone held sideways, in a browser */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}

@media print {
  * {
    height: auto !important;
    overflow: visible !important;
  }
}
/* Recharts measures text in a span it leaves off screen at the end of the page. Hidden, it is still
   measured but no longer read out, as a stray "0", by screen readers. */
#recharts_measurement_span {
  visibility: hidden;
}
