/* Shared control surfaces: nested search inputs inherit their wrapper surface. */
html body .app-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),select,textarea) {
    background-color:var(--card);
    color:var(--foreground);
    border-color:var(--border);
}
html body :is(.global-search,.task-search,.event-manager-search,.crm-search,.crm-searchable-input-wrap,.editable-task-filter-control,.login-input-wrap) :is(input,select),
html body .my-task-filter-reference .editable-task-filter input {
    background:transparent !important;
    color:var(--foreground);
    border:0;
    box-shadow:none;
}
html body :is(.global-search,.task-search,.event-manager-search,.editable-task-filter,.project-filter-select summary,.crm-search) {
    background:var(--card);
    color:var(--foreground);
    border-color:var(--border);
}
html[data-palette] body :is(.global-search,.task-search,.event-manager-search,.editable-task-filter,.crm-search):focus-within {
    border-color:var(--ring);
    outline:2px solid color-mix(in srgb,var(--ring) 22%,transparent);
    outline-offset:1px;
    box-shadow:none;
}
html body :is(.global-search,.task-search,.event-manager-search,.editable-task-filter-control,.login-input-wrap) input:focus {
    background:transparent !important;
    box-shadow:none;
    outline:0;
}
html body :is(input,textarea)::placeholder { color:var(--muted-foreground); opacity:.8; }
html body select option { background:var(--card); color:var(--foreground); }
html.dark :is(input[type="date"],input[type="time"],input[type="datetime-local"],select) { color-scheme:dark; }
html:not(.dark) :is(input[type="date"],input[type="time"],input[type="datetime-local"],select) { color-scheme:light; }
html body :is(input,textarea):autofill { -webkit-text-fill-color:var(--foreground); box-shadow:0 0 0 1000px var(--card) inset; }
html body :is(input,select,textarea):disabled { color:var(--muted-foreground); cursor:not-allowed; }
html body .priority-picker .priority-chip {
    color:var(--priority-ink);
    background:color-mix(in srgb,var(--priority-ink) 9%,var(--card));
    border-color:color-mix(in srgb,var(--priority-ink) 28%,var(--card));
    box-shadow:none;
}
html body .priority-picker .priority-chip:is(:hover,.is-selected) {
    background:color-mix(in srgb,var(--priority-ink) 17%,var(--card));
    border-color:var(--priority-ink);
    box-shadow:none;
}
html body .priority-picker .priority-chip.is-selected { outline:1px solid var(--priority-ink); outline-offset:1px; }
html.dark body :is(.editable-task-filter-menu,.project-filter-menu,.crm-searchable-menu) {
    background:var(--popover); color:var(--popover-foreground); border-color:var(--border);
}
html.dark body :is(.editable-task-filter-menu,.project-filter-menu,.crm-searchable-menu) :is(button,a,strong) { color:var(--foreground); }
html.dark body :is(.editable-task-filter-menu,.project-filter-menu,.crm-searchable-menu) :is(button,a):hover { background:var(--muted); }
html.dark body :is(.my-task-filter-shell,.project-filter-toolbar,.my-task-filter-secondary) { background:var(--card); border-color:var(--border); color:var(--foreground); }
html.dark body .editable-task-filter > span:first-child { color:var(--foreground); }
