/* Решение владельца: поля не получают рамку или свечение от наведения и нажатия.
   Общий слой после стилей разделов покрывает также новые окна и формы.
   ⚠️ !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;
}

/* Решение владельца 27.10: рамок у элементов интерфейса нет.
   Клавиатурный фокус сохраняется через контрастную подложку, без колец. */
body :is(button, a, summary, [role="button"], [role="tab"], [tabindex]):focus-visible {
    outline:none !important; box-shadow:none !important;
}
body :is(button, [role="tab"], dialog, .pf-modal, .modal-content, .app-dialog, .co-card, .co-rule, .co-template-mini, .co-template-cell, .co-pin-page, .co-cat-item, .co-template, .co-slot) {
    border-color:transparent !important; outline:none !important;
}
body :is(button, [role="tab"]):is(:focus, :active, :hover) { outline:none !important; box-shadow:none !important; }

/* Покрывает также старые карточки и окна отдельных разделов. Цветовая полоса
   сигнала — индикатор состояния, а не рамка карточки. */
body * { border-color:transparent !important; outline:none !important; }
body .co-signal.is-negative { border-left-color:var(--error) !important; }
body .co-signal.is-positive { border-left-color:var(--success) !important; }
body .co-signal.is-neutral { border-left-color:var(--border) !important; }

body :is(.co-card.is-over,.co-card.is-flash,.co-template.is-active .co-template-mini) { background-color:var(--bg-primary-light); }
.project-person-option input:not(:checked) { background-color:var(--bg-card); }
