/* A neutral first-upgrade shell while the existing saved display setting loads. */
html[data-display-pending="true"] { background:#fff; color-scheme:light; }
html[data-display-pending="true"] body { background:#fff; }
html[data-display-pending="true"] #appShell { visibility:hidden; }

/* Keep editable text legible before focus so phones need not auto-magnify it.
   Preserve browser zoom, larger text settings and controls generated later. */
@media (max-width: 900px), (any-pointer: coarse) {
  html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),select,textarea,[contenteditable="true"]) {
    font-size:max(16px,calc(1rem * var(--field-scale,1))) !important;
  }
}
