/* Shared FieldOps controls, including the extension. Native fields remain the data source. */
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,textarea,select{font-family:var(--font-ui);font-synthesis:none}
:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select,.rr-select-trigger){
 color:var(--text);background:var(--control-surface);border:1px solid var(--control-border);
 border-radius:var(--radius-card);min-height:var(--control-height);font-size:var(--type-body);font-weight:400;
 padding:10px 13px;line-height:1.5;box-shadow:var(--control-shadow);
 transition:border-color var(--motion),box-shadow var(--motion),background-color var(--motion)
}
:is(input,textarea)::placeholder{color:var(--muted);opacity:.8}
:is(input,textarea,select,.rr-select-trigger):hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
:is(input,textarea,select,.rr-select-trigger):focus-visible,.rr-select-trigger[aria-expanded=true]{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring)}
:is(button,a):focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
:is(input,textarea,select,.rr-select-trigger):disabled{opacity:.55;cursor:not-allowed;background:var(--canvas)}
.rr-select{position:relative;min-width:0;width:100%}
.rr-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;pointer-events:none;clip-path:inset(50%);overflow:hidden}
.rr-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}
.rr-select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rr-select-trigger::after{content:'';width:7px;height:7px;flex:0 0 7px;border-right:1.5px solid var(--accent);border-bottom:1.5px solid var(--accent);transform:rotate(45deg) translateY(-2px);margin-right:3px;transition:transform var(--motion)}
.rr-select-trigger[aria-expanded=true]::after{transform:rotate(225deg) translate(-2px,-2px)}
.rr-select-menu{position:fixed;z-index:2000;box-sizing:border-box;overflow:auto;margin:0;padding:6px;list-style:none;background:var(--surface);color:var(--text);border:1px solid var(--control-border);border-radius:var(--radius-card);box-shadow:var(--menu-shadow);font-family:var(--font-ui);font-size:var(--type-sm);font-weight:400;overscroll-behavior:contain}
.rr-select-menu[hidden]{display:none}
.rr-select-option{position:relative;display:flex;align-items:center;min-height:44px;line-height:1.45;padding:10px 32px 10px 12px;margin:2px 0;border-radius:var(--radius-sm);cursor:pointer;border:1px solid transparent}
.rr-select-option[data-active=true]{background:var(--selected);border-color:color-mix(in srgb,var(--accent) 20%,transparent)}
.rr-select-option[aria-selected=true]{color:var(--accent);font-weight:500}
.rr-select-option[aria-selected=true]::after{content:'';position:absolute;right:14px;width:5px;height:10px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.rr-select-option[aria-disabled=true]{opacity:.45;cursor:not-allowed}
input[type=checkbox],input[type=radio]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;vertical-align:middle;width:20px!important;height:20px;min-height:20px!important;flex:0 0 20px;padding:0!important;margin:0;border:1px solid var(--control-border);border-radius:5px;background:var(--control-surface);cursor:pointer;transition:background-color var(--motion),box-shadow var(--motion)}
input[type=checkbox]::before{content:'';width:5px;height:9px;border:solid var(--on-accent);border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg) scale(0)}
input[type=checkbox]:checked,input[type=radio]:checked{background:var(--action-gradient);border-color:transparent;box-shadow:0 2px 5px var(--focus-ring)}
input[type=checkbox]:checked::before{transform:translateY(-1px) rotate(45deg) scale(1)}
input[type=radio]{border-radius:50%}input[type=radio]:checked::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--on-accent)}
.check-label{cursor:pointer;min-height:44px;padding:10px 12px;border:1px solid var(--control-border);border-radius:var(--radius-card);background:var(--control-surface)}
.check-label:has(:checked){background:var(--selected);border-color:color-mix(in srgb,var(--accent) 30%,var(--line))}
@media(max-width:750px){input:not([type=checkbox]):not([type=radio]),textarea,select,.rr-select-trigger{font-size:16px}.rr-select-menu{font-size:14px}}
@media(forced-colors:active){input[type=checkbox],input[type=radio]{appearance:auto}.rr-select-trigger,.rr-select-menu{border:1px solid ButtonText}.rr-select-option[data-active=true]{outline:2px solid Highlight}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
/* Search is a single composite field, not an input inside a second field. */
.search input:not([type=hidden]){border:0;box-shadow:none;background:transparent;padding:0;border-radius:0;min-height:42px;font-size:var(--text-12)}
.search input:focus-visible{outline:0;box-shadow:none}
.rr-select-trigger[aria-invalid=true]{border-color:var(--danger);box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 15%,transparent)}
