/* Prevent the complete app page from panning sideways on a phone. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.topbar,
main,
.view,
.settings-card,
dialog {
  min-width: 0;
  max-width: 100%;
}

.topbar > *,
main > *,
.view > *,
.dialog-head > *,
.plan-line > * {
  min-width: 0;
}

/* The header add button stays compact so it cannot widen the phone screen. */
#addTop {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  padding: 0;
  flex: 0 0 48px;
}
