/* Every dialog follows the client's primary color and its contrast color. */
#modal{background:var(--brand);color:var(--on-brand);--ink:var(--on-brand);--muted:color-mix(in srgb,var(--on-brand) 82%,var(--brand));--brand-ink:var(--on-brand);--brand-muted:color-mix(in srgb,var(--on-brand) 80%,var(--brand));--accent-ink:var(--on-brand);--line:color-mix(in srgb,var(--on-brand) 24%,transparent);--brand-soft:color-mix(in srgb,var(--on-brand) 9%,var(--brand));--brand-subtle:color-mix(in srgb,var(--on-brand) 6%,var(--brand));border:1px solid var(--line)}
#modal h2,#modal h3,#modal label,#modal .eyebrow,#modal .about-facts dd,#modal .about-facts a,#modal .legal-contact a{color:var(--on-brand)}
#modal p,#modal small,#modal .form-hint,#modal .toggle-label,#modal .permission-list,#modal .legal-content p{color:var(--muted)}
#modal input:not([type=checkbox]):not([type=color]),#modal select,#modal textarea{background:#fff;color:#20252b;border-color:#d1d5db;color-scheme:light}
#modal input:disabled,#modal select:disabled,#modal textarea:disabled{background:#e8eaed;color:#48505a}
#modal input[type=checkbox]{accent-color:var(--on-brand)}
#modal .primary{background:var(--on-brand);color:var(--brand);border-color:var(--on-brand)}
#modal .secondary,#modal .close{background:color-mix(in srgb,var(--on-brand) 10%,transparent);border:1px solid var(--line);color:var(--on-brand)}
#modal .secondary:hover,#modal .close:hover{background:color-mix(in srgb,var(--on-brand) 18%,transparent)}
#modal .about-tabs>[role=tab]{color:var(--muted)}
#modal .about-tabs>[aria-selected=true]{color:var(--on-brand);border-bottom-color:var(--on-brand)}
#modal .legal-draft{background:var(--brand-soft);color:var(--on-brand)}
#modal .about-dialog-footer{background:var(--brand);border-top:1px solid var(--line)}
#modal .about-dialog-footer img{background:#292c30;padding:7px;border-radius:4px;width:120px}
#modal .form-error{background:#fee2e2;color:#7f1d1d}
#modal :is(button,input,textarea,select,a):focus-visible{outline:2px solid var(--on-brand);outline-offset:3px}
/* Platform information belongs to R360, independent of the client palette. */
#modal.about-dialog{--brand:#292c30;--on-brand:#ffffff;--accent:#d7dce1;--support:#3a3e44;background:#292c30;color:#ffffff}
