/* Keep browser controls aligned with the existing, explicit site theme. */
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* Progressive scroll containment without removing the page scrollbar. */
#dlg:modal { overscroll-behavior: contain; }
#dlg::backdrop { overflow: hidden; overscroll-behavior: contain; }
