/* Решение владельца: поля не получают рамку или свечение от наведения и нажатия.
   Общий слой после стилей разделов покрывает также новые окна и формы.
   ⚠️ !important нужен из-за старых ID-селекторов и отдельных правил тёмной темы.
   Ошибки формы остаются видимыми; фокус обозначается подложкой и кареткой. */
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
    textarea, select, [contenteditable="true"], [role="combobox"],
    .co-input, .tasks-select, .tasks-assignee > summary,
    .tasks-people > summary, .tasks-sort > summary) {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select, [contenteditable="true"], [role="combobox"],
    .co-input, .tasks-select, .tasks-assignee > summary,
    .tasks-people > summary, .tasks-sort > summary):focus-visible {
    background-color: var(--bg-hover);
}
/* Составные поля: фокус вложенного textarea не обводит всю область сообщения. */
.input-wrapper:focus-within, .wizard-token:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
:is(input, textarea, select, [contenteditable="true"], [role="combobox"], .co-input, .tasks-select)[aria-invalid="true"] {
    border-color: var(--error) !important;
}
