/* Shared controls for every module, including dynamically rendered forms. */
body select:not([multiple]){border:1px solid var(--border);border-radius:6px;background-color:var(--surface);color:var(--text);cursor:pointer;transition:border-color .15s,box-shadow .15s}
body select:not([multiple]):hover:not(:disabled){border-color:var(--muted)}
body select:not([multiple]):focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 40%,transparent);outline-offset:2px;border-color:var(--text)}
body select:disabled{cursor:default;opacity:.65}

/* Customize the browser's accessible select, keeping form values, validation,
   keyboard navigation and asynchronous option updates intact. */
@supports(appearance:base-select){
 body select:not([multiple]),body select:not([multiple])::picker(select){appearance:base-select}
 body select:not([multiple]){display:flex;align-items:center;gap:10px;min-width:0;min-height:40px;padding:9px 11px;text-align:start;font-size:13px;line-height:1.4}
 body select:not([multiple])::picker-icon{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);color:var(--muted);margin-inline-start:auto;flex-shrink:0;translate:0 -2px;transition:transform .15s}
 body select:not([multiple]):open::picker-icon{transform:rotate(225deg);translate:0 2px}
 body select:not([multiple]):open{border-color:var(--text);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}
 body select:not([multiple])::picker(select){background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:6px;margin-block:6px;box-shadow:0 12px 32px #0003;min-inline-size:anchor-size(self-inline);max-inline-size:calc(100vw - 24px);max-block-size:min(320px,60dvh);overflow:auto;overscroll-behavior:contain;font-size:13px;font-family:inherit}
 body select:not([multiple]) option{display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 11px;border:0;border-radius:4px;white-space:normal;overflow-wrap:anywhere;line-height:1.45;color:var(--text);background:transparent;cursor:pointer}
 body select:not([multiple]) option:hover,body select:not([multiple]) option:focus-visible{background:var(--surface-2);outline:1px solid var(--border);outline-offset:-1px}
 body select:not([multiple]) option:checked{background:color-mix(in srgb,var(--accent) 10%,var(--surface));font-weight:600}
 body select:not([multiple]) option::checkmark{content:"✓";order:2;margin-inline-start:auto;font-size:13px;color:var(--text);flex-shrink:0}
 body select:not([multiple]) option:disabled{opacity:.45;cursor:default}
 body select:not([multiple]) optgroup{padding:6px 0;font-weight:600;color:var(--muted)}
 body select:not([multiple]) optgroup option{font-weight:400;color:var(--text)}
 body select[name=priority] option::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--muted)}
 body select[name=priority] option[value=low]::before{background:#4b99ad}
 body select[name=priority] option[value=normal]::before{background:#7c889c}
 body select[name=priority] option[value=high]::before{background:#e79728}
 body select[name=priority] option[value=urgent]::before{background:#e54755;box-shadow:0 0 0 3px #e547551a}
 body select[name=priority] option[value=urgent]{color:var(--danger);font-weight:600}
 body select[name=priority]:has(option[value=urgent]:checked){color:var(--danger);border-color:var(--danger)}
}
.person-picker>[data-people-toggle],.board-person-toggle{border-radius:6px}
.person-options:not([hidden]){border-radius:8px;padding:6px;box-shadow:0 12px 32px #0003}
.person-options button{min-height:40px;border-radius:4px}
.person-options [aria-selected=true]{background:color-mix(in srgb,var(--accent) 10%,var(--surface));font-weight:600}
.priority-urgent{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;border:1px solid #c92333;border-radius:4px;background:#c92333;color:#fff;padding:3px 6px;font-size:10px;font-weight:600;animation:urgent-beacon 2.4s ease-in-out infinite}
.priority-urgent::after{content:"!";font-weight:800}
@keyframes urgent-beacon{0%,100%{box-shadow:0 0 0 0 #e42e4100,0 0 0 #e42e4100}50%{box-shadow:0 0 0 3px #e42e4126,0 0 12px #e42e4180}}
@media(prefers-reduced-motion:reduce){body select:not([multiple]),body select:not([multiple])::picker-icon{transition:none}.priority-urgent{animation:none}}
