/* 0.6.292: scoped responsive/accessibility authority; loaded after legacy CSS. */
:root { --fp-touch-target: 44px; }
:where(button,a,input,textarea,select,[tabindex]):focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
}
.content-shell,.content-area,.ticket-conversation-main,.ticket-properties-pane,
.catalog-body,.agent-identity>div,.topbar>div,.global-nav-tools { min-inline-size: 0; }
.card-heading,.catalog-card,.summary-card { overflow-wrap: anywhere; }
:where(.metric-grid,.stats-grid,.dashboard-grid,.card-grid,.settings-grid) { align-items: stretch; }
:where(.inner-tabs,.directory-detail-tabs,.profile-tabs,.ticket-page-tabs) {
    max-inline-size: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
    scrollbar-width: thin; scroll-padding-inline: 12px;
}
:where(.inner-tabs,.directory-detail-tabs,.profile-tabs,.ticket-page-tabs)>button {
    flex: 0 0 auto; min-block-size: 40px;
}
.modal-backdrop { z-index: 7000 !important; padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
.modal-backdrop>.modal-card {
    inline-size: min(760px,100%); max-block-size: calc(100dvh - 32px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.modal-card>.card-heading { position: sticky; inset-block-start: 0; z-index: 2; background: var(--surface); }
.modal-card>.modal-actions { position: sticky; inset-block-end: 0; z-index: 2; padding-block: 10px; background: var(--surface); }
.modal-card :where(input,textarea,select) { scroll-margin-block: 76px; }
:where([dir="ltr"],.username,.user-email,.ip-address,.identifier-value) {
    unicode-bidi: isolate; overflow-wrap: anywhere;
}
.ticket-page-messages { overflow-wrap: anywhere; overscroll-behavior-y: contain; }
.ticket-attachments a { word-break: break-word; }
@media(max-width:767px) {
    .content-area { padding-block-end: calc(84px + env(safe-area-inset-bottom)) !important; }
    .content-area :where(p,td,dd,label,.field-label-text) { font-size: max(.82rem,12px) !important; line-height: 1.7; }
    .content-area :where(small,.muted,.field-help) { font-size: max(.72rem,11px) !important; line-height: 1.65; }
    .content-area :where(h3,h4,.card-heading h3,.card-heading h4) { font-size: max(.92rem,13px) !important; }
    .modal-card :where(input,select,textarea),.login-card :where(input,select,textarea) {
        font-size: 16px !important; min-block-size: var(--fp-touch-target);
    }
    .modal-card :where(button),.sidebar :where(button),.global-nav-tools :where(button),
    .mobile-menu-trigger,.mobile-quick-footer>button { min-block-size: var(--fp-touch-target) !important; }
    .modal-card .form-grid { gap: 12px !important; }
    .modal-backdrop>.modal-card { max-block-size: calc(100dvh - 24px) !important; border-radius: 16px; }
    .global-search { min-inline-size: 0; flex: 1 1 auto; }
    .global-search input { inline-size: 100%; min-inline-size: 0; }
    .global-search-results { max-inline-size: calc(100vw - 24px); max-block-size: min(55dvh,480px); overflow-y: auto; }
    .mobile-quick-footer { padding-block-end: max(8px,env(safe-area-inset-bottom)) !important; }
    .ticket-action-bar,.ticket-filter-actions,.pagination-bar { flex-wrap: wrap; }
    .ticket-action-bar>*,.ticket-properties-pane { min-inline-size: 0; max-inline-size: 100%; }
    .ticket-conversation-layout { grid-template-columns: minmax(0,1fr) !important; }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep the restored floating footer behind blocking navigation/dialog overlays. */
@media(max-width:980px) {
    .mobile-sidebar-backdrop { z-index: 6000 !important; }
    .sidebar.open { z-index: 6100 !important; }
}
