/* Conservative fallbacks for Android tablet browsers with older CSS support. */
.gv-mode-dialog {
  box-sizing: border-box;
  width: calc(100% - 16px);
  max-width: 1080px;
  height: auto;
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  margin: auto;
  overflow-x: hidden;
}

.gv-mode-page,
.gv-mode-stage,
.gv-mode-footer {
  min-width: 0;
  box-sizing: border-box;
}

.gv-mode-footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.phonetics-module,
.phonetics-frame {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.phonetics-frame {
  width: 100%;
  height: calc(100vh - 220px);
  height: calc(100svh - 220px);
  min-height: 420px;
  overflow: auto;
}

@media (max-width: 760px) {
  .gv-mode-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100svh - 16px);
  }

  .gv-mode-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}
