/* V43 S1 -- owner of the page-level recovery components added by V43: the refused-form alert (_PbV43InputError /
   PbInputRejected), the UTF-16 field counter (pb-v43-a11y.js) and the feed-lab search error slot. Nothing here reaches the
   header bar (.pb42*, owned by pb-v42-header.css), the sidebar or another component. Tokens of the Design System v2 with
   literal fallbacks; Light / System / Dark follow the page tokens. No colour-only meaning: every state has text. */

/* ------------------------------------------------------------------ the refused-form alert (GX17-R03: field, problem, way to fix) */
.pb-v43-inputerr {
    box-sizing: border-box; margin: 0 0 16px; padding: 12px 16px;
    border: 1px solid var(--pb-color-danger, #B42318); border-inline-start-width: 4px; border-radius: 12px;
    background: var(--pb-color-danger-soft, #FEF3F2); color: var(--pb-color-text, #171A1F); line-height: 1.5;
}
.pb-v43-inputerr:focus { outline: 3px solid var(--pb-focus-ring, #026AA2); outline-offset: 2px; }
.pb-v43-inputerr p { margin: 0 0 6px; }
.pb-v43-inputerr p:last-child { margin-bottom: 0; }
.pb-v43-inputerr__title { font-weight: 700; }
.pb-v43-inputerr__goto a { color: var(--pb-color-link, #BD006E); text-decoration: underline; font-weight: 600; min-block-size: 24px; display: inline-block; }
.pb-v43-inputerr__goto a:focus-visible { outline: 3px solid var(--pb-focus-ring, #026AA2); outline-offset: 2px; }
:root:not([data-theme="light"]) .pb-v43-inputerr { background: var(--pb-color-danger-soft, rgba(180, 35, 24, .18)); }

/* ------------------------------------------------------------------ the UTF-16 counter under a limited field */
.pb-v43-counter { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--pb-color-text-muted, #667085); font-variant-numeric: tabular-nums; }
.pb-v43-counter[data-pb-over="1"] { color: var(--pb-color-danger, #B42318); font-weight: 600; }
.pb-v43-counter[data-pb-over="1"]::before { content: "\26A0\00A0"; }   /* a glyph beside the colour, never colour alone */

/* ------------------------------------------------------------------ feed lab: the search error slot sits under the sticky top bar */
.pb-feedlab .pb-fl-searcherr { margin: 0; }
.pb-feedlab .pb-fl-searcherr:not([hidden]) {
    position: absolute; inset-inline-start: var(--fl-pad, 16px); inset-inline-end: var(--fl-pad, 16px); inset-block-start: 100%; z-index: 31;
    padding: 8px 12px; border: 1px solid #B42318; border-radius: 0 0 12px 12px; background: #FEF3F2; color: #B42318; font-size: 13px; line-height: 1.4;
}
