/* Installed-app (standalone) and phone layout. Delete this file and its <link> in index.html to undo. */
@media (display-mode: standalone) {
  body { overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
  input, textarea, [contenteditable] { user-select: text; -webkit-user-select: text; }
}
/* Dashboard tabs become a bottom navigation bar on phones. */
@media (max-width: 720px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    padding: 0 4px env(safe-area-inset-bottom, 0px); gap: 0;
    border-top: 1px solid var(--line); border-bottom: 0; overflow: visible;
    justify-content: space-around; background: var(--bg, #fff);
  }
  .tabbar button { flex: 1; margin: 0; padding: 12px 2px; font-size: 12px; text-align: center; border-bottom: 0; border-top: 2px solid transparent; }
  .tabbar button.on { border-top-color: var(--accent); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
