/* Popups on computers: about twice as wide, text sizes as on the account pages. Phones and tablets keep each dialog's own size.
   Linked last on every page so these widths win over the per-dialog rules. */
@media (min-width: 1100px) and (min-height: 700px) and (pointer: fine) {
  dialog {
    --fs-small: calc(15px + var(--ui-plus, 0px)); /* help text, labels and buttons one px up; fields stay 16px like the account pages */
    max-height: 88vh;
  }
  /* ids and classes in separate rules: inside :is() one id would lift the whole list above .rec-dialog / .mm-dialog */
  #share-dialog, #share-password-dialog, #proposals-dialog, #embed-dialog, #feedback-dialog, .st-dialog, .viewas-dialog { width: min(800px, 90vw); padding: 32px; }
  #import-dialog, #cloud-dialog, #history-dialog, .mat-dialog { width: min(960px, 90vw); padding: 32px; }
  .mat-dialog.rec-dialog { width: min(1040px, 90vw); }
  .mat-dialog.mm-dialog { width: min(1280px, 94vw); }
  .inv-win { width: min(640px, 90vw); }
  :is(#share-dialog, #share-password-dialog, #proposals-dialog, #embed-dialog, #feedback-dialog, #import-dialog, #cloud-dialog, #history-dialog, .st-dialog, .mat-dialog, .viewas-dialog) h2 { font-size: calc(18px + var(--ui-plus, 0px)); } /* the id makes it beat each "#x-dialog h2" rule */
  dialog form button:not(.dlg-x) { min-height: 40px; } /* 32px buttons look squashed next to 18px titles */
}
