/* Shared registry controls, including nested and portal dialogs. */
.lookup-control{display:grid!important;grid-template-columns:minmax(0,1fr) 38px;align-items:stretch;gap:6px}
.select-add button.lookup-button,.lookup-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px!important;min-width:38px!important;max-width:38px;height:38px;min-height:38px;padding:8px!important;font-size:0!important;line-height:1;overflow:hidden}
.lookup-button svg{display:block;flex:none;width:18px;height:18px;stroke:currentColor;pointer-events:none}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox){background:#202b3a!important;color:#edf2f8!important;border:1px solid #465b73;box-shadow:0 24px 80px #0008}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(h1,h2,h3,h4,b,strong,label,legend){color:#edf2f8!important}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(p,small,.hint,.eyebrow){color:#bdcce0!important}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(input,select,textarea){background:#121e2c!important;color:#edf2f8!important;border-color:#60758e!important;caret-color:#edf2f8}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(input,textarea)::placeholder{color:#a8bad1!important;opacity:1}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) option{background:#121e2c;color:#edf2f8}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) button{background:#30465f;color:#edf2f8;border-color:#60758e}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) button:hover{background:#3c5571;border-color:#ebc349}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) button.primary{background:#ebc349;color:#172331;border-color:#ebc349}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(.notice,.alert){background:#322e20!important;color:#ffe49a!important;border-color:#8b7640!important}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) :is(.notice,.alert) *{color:inherit!important}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) th{background:#142131;color:#bdcce0;border-color:#465b73}
html[data-theme="dark"] :is(.modal,.usereditor,.loginbox) td{border-color:#465b73}
html[data-theme="dark"] .overlay{background:#050b14c9}
html[data-theme="light"] :is(.modal,.usereditor,.loginbox){background:#fff!important;color:#25334a!important;border-color:#c5d0de}
html[data-theme="light"] :is(.modal,.usereditor,.loginbox) :is(label,h1,h2,h3,h4,b,strong){color:#25334a!important}
html[data-theme="light"] :is(.modal,.usereditor,.loginbox) :is(p,small,.hint,.eyebrow){color:#4d5f77!important}
html[data-theme="light"] :is(.modal,.usereditor,.loginbox) :is(input,select,textarea){background:#f5f7fb!important;color:#25334a!important;border-color:#a8b8cd!important}
html[data-theme="light"] :is(.modal,.usereditor,.loginbox) :is(.notice,.alert){background:#fff4d2!important;color:#634b0a!important;border-color:#cfb56b!important}
