/* Canonical help layer: scoped, independent of field values, validation and module grids. */
.instinct-form-help-heading { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: middle; margin: 0 0 8px; line-height: 1.5; }
.instinct-form-help-heading > label { margin: 0 !important; min-width: 0; font-size: inherit; font-weight: inherit; }
.instinct-form-help-inline { display: inline; }
.instinct-form-help-inline > .instinct-form-help-trigger { margin-inline-start: 6px !important; }
:is(.admin-body, .participant-workspace, .public-site) .instinct-form-help-trigger,
.instinct-form-help-trigger { appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px !important; min-width: 28px !important; max-width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; margin: 0; border: 0; border-radius: 50%; background: transparent; color: #4229c1; font: 600 13px/1 Inter, system-ui, sans-serif; text-transform: none; cursor: help; box-shadow: none; vertical-align: middle; text-decoration: none; }
.instinct-form-help-trigger::after { content: ""; position: absolute; z-index: 0; width: 21px; height: 21px; border: 1px solid #c9c3df; border-radius: 50%; background: #fff; pointer-events: none; }
.instinct-form-help-trigger:hover::after, .instinct-form-help-trigger[aria-expanded="true"]::after { background: #f1effc; border-color: #4229c1; }
.instinct-form-help-trigger:focus-visible { outline: 3px solid #4229c1; outline-offset: 3px; }
.instinct-form-help-popover { box-sizing: border-box; position: fixed; inset: auto; margin: 0; width: 352px; max-width: calc(100vw - 32px); max-height: min(70vh, 440px); padding: 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dcd8ed; border-radius: 12px; background: #fff; color: #222; box-shadow: 0 8px 28px rgb(36 22 95 / 14%); z-index: 140; font: 400 14px/1.6 Inter, system-ui, sans-serif; text-align: start; overflow-wrap: anywhere; word-break: normal; }
.instinct-form-help-popover[hidden] { display: none !important; }
.instinct-form-help-popover::backdrop { background: transparent; pointer-events: none; }
.instinct-form-help-popover .instinct-form-help-title { display: block; margin: 0 0 12px; color: #24165f; font-size: 15px; font-weight: 600; line-height: 1.5; }
.instinct-form-help-popover .instinct-form-help-description { margin: 0; font-size: 14px; line-height: 1.6; }
.instinct-form-help-popover .instinct-form-help-example { margin: 12px 0 0; padding: 12px; border-radius: 8px; background: #f6f5fc; color: #222; font-size: 14px; line-height: 1.6; }
.instinct-form-help-popover .instinct-form-help-example strong { display: block; margin-bottom: 4px; font-weight: 600; color: #24165f; }
.instinct-form-help-popover .instinct-form-help-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #4a4660; }
.instinct-form-help-field-caption { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 640px) { .instinct-form-help-popover { padding: 20px; } }
@media (hover: none) { :is(.admin-body, .participant-workspace, .public-site) .instinct-form-help-trigger, .instinct-form-help-trigger { cursor: pointer; min-width: 40px !important; width: 40px !important; max-width: 40px !important; min-height: 40px !important; height: 40px !important; flex-basis: 40px; } }
@media (forced-colors: active) { .instinct-form-help-popover { border: 1px solid CanvasText; } .instinct-form-help-trigger { color: ButtonText; } .instinct-form-help-trigger::after { border-color: ButtonText; background: Canvas; } }
@media print { .instinct-form-help-trigger, .instinct-form-help-popover { display: none !important; } }

.instinct-form-help-trigger::before { content: "i"; position: relative; z-index: 1; }

:is(th, legend) > .instinct-form-help-trigger { margin-inline-start: 6px !important; }

.instinct-form-help-label-copy { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; line-height: 1.5; }
.instinct-form-help-label-copy > .instinct-form-help-inline > .instinct-form-help-trigger { margin-inline-start: 0 !important; }
