/* Shared interaction rules use the established theme and component identities. */
.app-shell :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.bug-report-wrapper :is(button, input, select, textarea):focus-visible {
    outline: 3px solid var(--accent-text, var(--accent-primary));
    outline-offset: 3px;
}

.pm-btn, .pm-tab, .co-btn, .co-modal-close, .pm-input, .pm-select, .pm-search,
.theme-toggle-btn { min-height: 44px; }
.hc-search-submit { min-width: 44px; }
.pm-ai-btn { min-height: 36px; padding: .4rem .65rem; font-size: .8rem; }
.pm-toolbar { flex-wrap: wrap; }
.pm-toolbar > *, .pm-field, .pm-fields-block { min-width: 0; }
.pm-toolbar .pm-search { max-width: 100%; box-sizing: border-box; }
.table-wrapper { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-wrapper:focus-visible { outline: 3px solid var(--accent-text, var(--accent-primary)); outline-offset: 3px; }
.co-modal, .pm-modal { box-sizing: border-box; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }

@media (max-width: 600px) {
    .pm-toolbar > .pm-search { width: 100%; }
    .pm-toolbar > .pm-select { flex: 1 1 9rem; }
    .pm-field-row { grid-template-columns: minmax(0, 1fr); flex-direction: column; }
    .pm-page-actions { flex-wrap: wrap; }
    .pm-page-actions .pm-btn { white-space: normal; text-align: center; }
    .pm-ai-btn, .btn-icon-edit, .nav-item-link, .sub-link { min-height: 44px; }
}

@media (pointer: coarse) {
    .pm-ai-btn, .btn-icon-edit, .nav-item-link, .sub-link { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hc-category-card, .help-presentation-card, .hw-toggle { transition: none; }
}
