/* Keep the installed app below the system status bar; browser layout stays unchanged. */
@media (display-mode: standalone) {
  html {
    --tby-app-safe-top: env(safe-area-inset-top, 0px);
    scroll-padding-top: calc(120px + var(--tby-app-safe-top));
  }

  body {
    padding-top: var(--tby-app-safe-top);
  }

  .header {
    top: calc(18px + var(--tby-app-safe-top));
  }

  .reading-progress {
    top: var(--tby-app-safe-top);
  }
}

@media (display-mode: standalone) and (max-width: 700px) {
  html {
    scroll-padding-top: calc(108px + var(--tby-app-safe-top));
  }

  .header {
    top: calc(12px + var(--tby-app-safe-top));
  }
}
