/* Native controls follow the explicitly chosen site theme, including browser
   scrollbars, date pickers and autofill. Light remains the product default. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.ds-native-dialog:modal { overscroll-behavior: contain; }
.ds-native-dialog::backdrop { overflow: hidden; overscroll-behavior: contain; background: rgb(15 23 42 / .55); backdrop-filter: blur(3px); }
.ds-native-dialog:not([open]) { display: none !important; }
.ds-native-dialog :where(h1, h2, h3) { text-wrap: balance; overflow-wrap: anywhere; }
.ds-native-dialog :where(button, select, input:not([type="checkbox"], [type="radio"])) { min-block-size: 44px; }
.ds-field-error { margin: .25rem 0 0; color: var(--ds-danger-text, var(--danger, #b91c1c)); font-size: .875rem; }
[data-theme="dark"] .ds-field-error { color: var(--ds-danger-text, #fca5a5); }
@supports (field-sizing: content) {
    textarea.ds-autosize { field-sizing: content; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; block-size: auto; min-block-size: 6lh; max-block-size: min(20lh, 65dvh); resize: vertical; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-native-dialog, .ds-native-dialog::backdrop { animation: none !important; transition: none !important; }
}
