.fxm-exposure-entry-notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 10000; transform: translateX(-50%);
  width: max-content; max-width: min(460px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 12px 18px; border: 1px solid #ded7ff; border-radius: 16px;
  background: #fff; color: var(--color-primary, #4f34d9); box-shadow: 0 8px 30px rgba(35,26,67,.15);
  font-family: var(--font-family-body); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
.fxm-exposure-entry-notice[hidden] { display: none !important; }
.fxm-exposure-entry-notice[role="alert"] { color: #b64152; border-color: #efc1c8; background: #fff8f9; }
.fxm-exposure-modal {
  --exposure-primary: var(--color-primary, #4f34d9);
  --exposure-ink: var(--color-on-surface, #272e42);
  --exposure-line: var(--color-outline-variant, #e2e7ff);
  --exposure-muted: #707990;
  width: min(760px, calc(100vw - 40px)); max-width: none; max-height: min(920px, calc(100dvh - 40px));
  margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 24px;
  background: #fff; color: var(--exposure-ink); box-shadow: 0 24px 90px rgba(28,24,65,.22);
  font-family: var(--font-family-body); font-size: 14px; line-height: 1.5;
}
.fxm-exposure-modal::backdrop { background: rgba(26,32,54,.5); backdrop-filter: blur(3px); }
.fxm-exposure-modal [hidden] { display: none !important; }
.fxm-exposure-modal *, .fxm-exposure-modal *::before, .fxm-exposure-modal *::after { box-sizing: border-box; }
.fxm-exposure-modal button, .fxm-exposure-modal input, .fxm-exposure-modal textarea, .fxm-exposure-modal select { font: inherit; }
.fxm-exposure-modal button { cursor: pointer; }
.fxm-exposure-modal button:disabled { cursor: wait; opacity: .55; }
.fxm-exposure-modal :focus-visible { outline: 3px solid rgba(79,52,217,.3); outline-offset: 3px; }
.fxm-exposure-modal__form { display: flex; flex-direction: column; max-height: min(918px, calc(100dvh - 42px)); margin: 0; }
.fxm-exposure-modal__header { display: flex; align-items: center; flex: 0 0 auto; gap: 14px; padding: 22px 30px 16px; }
.fxm-exposure-modal__header > div { min-width: 0; flex: 1; }
.fxm-exposure-modal__emblem { display: inline-flex; flex: 0 0 auto; color: var(--exposure-primary); }
.fxm-exposure-modal__emblem svg { width: 38px; height: 38px; stroke-width: 1.7; }
.fxm-exposure-modal h2 { margin: 0; font-family: var(--font-family-heading); font-size: 23px; font-weight: 700; line-height: 1.35; }
.fxm-exposure-modal__header p { margin: 5px 0 0; color: var(--exposure-muted); font-size: 12px; }
.fxm-exposure-modal__close { width: 36px; height: 36px; padding: 8px; flex: 0 0 auto; align-self: flex-start; border: 0; border-radius: 50%; background: #f4f3fb; color: var(--exposure-ink); }
.fxm-exposure-modal__close:hover { background: #ece8ff; color: var(--exposure-primary); }
.fxm-exposure-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8d5eb transparent; padding: 2px 30px 22px; }
.fxm-exposure-modal__field { display: block; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.fxm-exposure-modal__field > label, .fxm-exposure-modal__field > legend { display: block; width: 100%; padding: 0; margin-bottom: 7px; color: var(--exposure-ink); font-size: 13px; font-weight: 600; }
.fxm-exposure-modal__field > label small { margin-left: 5px; color: var(--exposure-muted); font-size: 11px; font-weight: 400; }
/* Title and category are short fields: side by side keeps the dialog from turning
   into a long single column, and they collapse to one column at 720px. */
.fxm-exposure-modal__row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fxm-exposure-modal__row > .fxm-exposure-modal__field { margin-bottom: 16px; }
.fxm-exposure-modal__required { color: #df3457; margin-left: 3px; }
.fxm-exposure-modal__input-shell { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--exposure-line); border-radius: 999px; background: #fff; }
.fxm-exposure-modal__input-shell:focus-within, .fxm-exposure-modal__textarea:focus-within { border-color: #9b8fe9; box-shadow: 0 0 0 3px rgba(79,52,217,.07); }
.fxm-exposure-modal__input-shell > svg, .fxm-exposure-modal__input-shell > span { flex: 0 0 auto; color: var(--exposure-muted); }
.fxm-exposure-modal input:not([type=checkbox]):not([type=file]), .fxm-exposure-modal textarea { min-width: 0; width: 100%; margin: 0; border: 0; background: transparent; color: var(--exposure-ink); box-shadow: none; outline: none; }
.fxm-exposure-modal__input-shell input { flex: 1; height: 42px; padding: 0; }
.fxm-exposure-modal input::placeholder, .fxm-exposure-modal textarea::placeholder { color: #858da3; opacity: 1; }
.fxm-exposure-modal input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.fxm-exposure-modal__textarea { position: relative; border: 1px solid var(--exposure-line); border-radius: 16px; }
.fxm-exposure-modal .fxm-exposure-modal__textarea textarea { display: block; min-height: 96px; max-height: 240px; padding: 12px 15px 30px; border-radius: inherit; resize: vertical; line-height: 1.65; }
.fxm-exposure-modal__textarea > span { position: absolute; right: 15px; bottom: 9px; color: var(--exposure-muted); font-size: 11px; pointer-events: none; }
.fxm-exposure-modal__upload { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; border: 1px dashed #c4b9fa; border-radius: 16px; background: #f9f7ff; color: var(--exposure-primary); text-align: left; transition: border-color .15s, background .15s; }
.fxm-exposure-modal__upload-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #efeaff; }
.fxm-exposure-modal__upload-icon svg { width: 20px; height: 20px; }
.fxm-exposure-modal__upload-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fxm-exposure-modal__upload strong { font-size: 13px; font-weight: 600; }
.fxm-exposure-modal__upload small { color: var(--exposure-muted); font-size: 11px; line-height: 1.5; }
.fxm-exposure-modal__upload:hover, .fxm-exposure-modal__upload.is-dragging { border-color: var(--exposure-primary); background: #f0edff; }
.fxm-exposure-modal__files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fxm-exposure-modal__files > * { position: relative; width: 92px; min-width: 0; margin: 0; }
.fxm-exposure-modal__files img { display: block; width: 92px; height: 72px; object-fit: cover; border: 1px solid var(--exposure-line); border-radius: 10px; }
.fxm-exposure-modal__files button { border: 1px solid var(--exposure-line); border-radius: 999px; background: #fff; color: var(--exposure-ink); }
.fxm-exposure-modal__files .fxm-exposure-modal__image-remove { position: absolute; top: -6px; right: -6px; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; padding: 0; color: #5b6379; box-shadow: 0 1px 4px rgba(24,20,48,.18); }
.fxm-exposure-modal__files .fxm-exposure-modal__image-remove:hover { color: #af2442; border-color: #efc1c8; }
.fxm-exposure-modal__files .has-error img { border-color: #df3457; }
.fxm-exposure-modal__files .fxm-exposure-modal__image-status { color: #af2442; white-space: normal; }
.fxm-exposure-modal__files small, .fxm-exposure-modal__files figcaption { display: block; margin-top: 4px; color: var(--exposure-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Contact is a grouping of related controls, not four unrelated rows: one card
   holds the method chips, the input and the privacy note. */
.fxm-exposure-modal__group { padding: 14px 16px 12px; border: 1px solid var(--exposure-line); border-radius: 18px; background: #fcfbff; }
.fxm-exposure-modal__group > legend { margin-bottom: 9px; padding: 0 6px; margin-left: -6px; font-size: 13px; }
.fxm-exposure-modal__group-body { min-width: 0; }
.fxm-exposure-modal__methods { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; }
.fxm-exposure-modal__methods button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; min-height: 40px; padding: 7px 10px; border: 1px solid var(--exposure-line); border-radius: 14px; background: #fff; color: var(--exposure-ink); font-size: 12px; }
.fxm-exposure-modal__methods button:hover { border-color: #b8abf1; }
.fxm-exposure-modal__methods button[aria-checked=true] { border-color: #8c74f7; background: #f4f0ff; color: var(--exposure-primary); }
.fxm-exposure-modal .fxm-connect-brand-icon { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; align-items: center; justify-content: center; }
.fxm-exposure-modal .fxm-connect-brand-icon img { width: 18px; height: 18px; object-fit: contain; }
.fxm-exposure-modal__method-check { display: none; width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: var(--exposure-primary); color: #fff; }
.fxm-exposure-modal__method-check svg { width: 11px; height: 11px; }
.fxm-exposure-modal__methods [aria-checked=true] .fxm-exposure-modal__method-check { display: inline-flex; }
.fxm-exposure-modal .fxm-phone-field--compact { min-width: 0; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__frame { padding: 0; border: 1px solid var(--exposure-line); border-radius: 999px; background: #fff; box-shadow: none; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__frame:focus-within { border-color: #9b8fe9; box-shadow: 0 0 0 3px rgba(79,52,217,.07); }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__control { display: flex; flex-direction: row; align-items: center; gap: 0; min-height: 44px; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__trigger { display: inline-flex; width: 122px; height: 40px; max-width: 48%; min-width: 0; gap: 5px; padding: 4px 10px; margin: 2px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__trigger:hover, .fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__trigger[aria-expanded=true] { background: #f4f1ff; color: var(--exposure-primary); }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__flag { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 17px; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__name, .fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__separator, .fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__input-icon { display: none; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__input-shell { flex: 1; min-width: 0; padding: 0 15px 0 12px; border: 0; border-left: 1px solid #efedf6; border-radius: 0; background: transparent; box-shadow: none; }
.fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__input { height: 32px; min-width: 0; padding: 0; font-size: 13px; outline: none; }
.fxm-phone-field__popover--compact { z-index: 20; padding: 0; width: 320px; font-family: var(--font-family-body); color: #272e42; }
.fxm-phone-field__popover--compact .fxm-phone-field__panel { display: flex; flex-direction: column; min-height: 0; height: 304px; max-height: inherit; overflow: hidden; border: 1px solid #e2e7ff; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(35,26,76,.17); }
.fxm-phone-field__popover--compact .fxm-phone-field__search-row { flex: 0 0 auto; padding: 10px; border-bottom: 1px solid #efedf6; background: #fff; }
.fxm-phone-field__popover--compact .fxm-phone-field__search-shell { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border: 1px solid #e2e7ff; border-radius: 999px; background: #faf9ff; }
.fxm-phone-field__popover--compact .fxm-phone-field__search-shell:focus-within { border-color: #9b8fe9; }
.fxm-phone-field__popover--compact .fxm-phone-field__search { width: 100%; min-width: 0; height: 34px; border: 0; outline: none; background: transparent; font: inherit; font-size: 12px; }
.fxm-phone-field__popover--compact .fxm-phone-field__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none; scrollbar-width: thin; scrollbar-color: #d8d5eb transparent; }
.fxm-phone-field__popover--compact .fxm-phone-field__option { display: flex; align-items: center; gap: 9px; min-height: 42px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: #fff; color: #272e42; font-size: 12px; }
.fxm-phone-field__popover--compact .fxm-phone-field__option:hover, .fxm-phone-field__popover--compact .fxm-phone-field__option.is-active { background: #f5f2ff; }
.fxm-phone-field__popover--compact .fxm-phone-field__option[aria-selected=true] { background: #eee9ff; color: #4f34d9; }
.fxm-phone-field__popover--compact .fxm-phone-field__option-name { min-width: 0; flex: 1; font-size: 12px; }
.fxm-phone-field__popover--compact .fxm-phone-field__option-dial { flex: 0 0 auto; font-size: 11px; color: #7c8499; }
.fxm-exposure-modal__hint { display: flex; align-items: flex-start; gap: 6px; margin: 7px 0 0; color: var(--exposure-muted); font-size: 11px; }
.fxm-exposure-modal__hint svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }
.fxm-exposure-modal__sync { display: flex; align-items: center; gap: 14px; position: relative; cursor: pointer; }
.fxm-exposure-modal__sync > span:first-child { flex: 1; min-width: 0; }
.fxm-exposure-modal__sync strong { display: block; font-size: 14px; font-weight: 600; }
.fxm-exposure-modal__sync small { display: block; margin-top: 3px; color: var(--exposure-muted); font-size: 11px; }
.fxm-exposure-modal__sync input { position: absolute; right: 0; width: 42px; height: 26px; opacity: 0; }
.fxm-exposure-modal__switch { display: block; flex: 0 0 auto; width: 42px; height: 24px; padding: 3px; border-radius: 999px; background: #c3c6d6; transition: background .15s; }
.fxm-exposure-modal__switch::after { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.fxm-exposure-modal__sync input:checked + .fxm-exposure-modal__switch { background: var(--exposure-primary); }
.fxm-exposure-modal__sync input:checked + .fxm-exposure-modal__switch::after { transform: translateX(18px); }
.fxm-exposure-modal__sync input:focus-visible + .fxm-exposure-modal__switch { outline: 3px solid #c9bff9; outline-offset: 3px; }
.fxm-exposure-modal__error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff0f3; color: #af2442; font-size: 12px; overflow-wrap: anywhere; }
.fxm-exposure-modal__error.is-progress, .fxm-exposure-modal__error.is-info { background: #f4f1ff; color: #594b8d; }
.fxm-exposure-modal [aria-invalid=true] { outline: 2px solid #df3457; outline-offset: 2px; }
.fxm-exposure-modal__login { display: inline-block; margin-top: 9px; color: var(--exposure-primary); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
/* v3 fields: title counter, category select, declaration. */
/* Same place and size as the textarea counter: inside the control, bottom right. */
.fxm-exposure-modal__counter { flex: 0 0 auto; color: #9aa1b4; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fxm-exposure-modal__select { position: relative; display: flex; align-items: center; border: 1px solid var(--exposure-line); border-radius: 999px; background: #fff; }
.fxm-exposure-modal__select:focus-within { border-color: #9b8fe9; box-shadow: 0 0 0 3px rgba(79,52,217,.07); }
.fxm-exposure-modal__select select { flex: 1; min-width: 0; height: 44px; padding: 0 40px 0 16px; border: 0; border-radius: inherit; background: transparent; color: var(--exposure-ink); font: inherit; font-size: 14px; appearance: none; outline: none; cursor: pointer; }
.fxm-exposure-modal__select > svg { position: absolute; right: 14px; color: var(--exposure-muted); pointer-events: none; }
.fxm-exposure-modal__field-error { margin: 6px 0 0; color: #af2442; font-size: 11px; }
.fxm-exposure-modal__hint.is-warning { color: #af2442; }
/* Consent is the last thing before the footer, so it gets a divider instead of
   another 18px gap: the checkbox, the readable policy and its error stay together. */
.fxm-exposure-modal__consent { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid #f0eef8; }
.fxm-exposure-modal__declaration { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 6px; color: var(--exposure-ink); font-size: 12px; line-height: 1.6; cursor: pointer; }
.fxm-exposure-modal__declaration input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--exposure-primary); }
.fxm-exposure-modal__declaration-body { max-height: 132px; margin: 0 0 10px; padding: 10px 12px; overflow-y: auto; border: 1px solid var(--exposure-line); border-radius: 12px; background: #faf9ff; color: var(--exposure-muted); font-size: 11px; line-height: 1.7; }
.fxm-exposure-modal__declaration-body ol, .fxm-exposure-modal__declaration-body p { margin: 0 0 6px; padding-left: 16px; }
.fxm-exposure-modal__declaration-body :last-child { margin-bottom: 0; }
.fxm-exposure-modal__footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 30px; border-top: 1px solid var(--exposure-line); background: #fff; }
.fxm-exposure-modal__footer > p { display: flex; align-items: center; gap: 9px; margin: 0; color: #626b82; font-size: 11px; }
.fxm-exposure-modal__footer > p svg { flex: 0 0 auto; color: var(--exposure-primary); }
.fxm-exposure-modal__actions { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; justify-content: center; }
.fxm-exposure-modal__primary, .fxm-exposure-modal__secondary { min-height: 42px; padding: 10px 25px; border: 1px solid var(--exposure-primary); border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.fxm-exposure-modal__primary { min-width: 120px; background: var(--exposure-primary); color: #fff; }
.fxm-exposure-modal__primary:hover { background: #4029bc; }
.fxm-exposure-modal__primary:disabled { opacity: .7; }
.fxm-exposure-modal__primary.is-submitting::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: fxm-exposure-spin .8s linear infinite; }
.fxm-exposure-modal__secondary { background: #fff; color: var(--exposure-primary); }
.fxm-exposure-modal__secondary:hover { background: #f4f0ff; }
.fxm-exposure-modal__success { padding: 50px 36px; text-align: center; }
.fxm-exposure-modal__success > .fxm-exposure-modal__emblem { margin-bottom: 18px; }
.fxm-exposure-modal__success > p { margin: 14px 0; color: var(--exposure-muted); font-size: 13px; }
.fxm-exposure-modal__success .fxm-exposure-modal__actions { margin-top: 26px; flex-wrap: wrap; }
.fxm-exposure-modal__receipt { padding: 12px; border-radius: 12px; background: #f7f5ff; overflow-wrap: anywhere; }
.fxm-exposure-modal__sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .fxm-exposure-modal__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 600px) {
  .fxm-exposure-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .fxm-exposure-modal__form { max-height: calc(100dvh - 22px); }
  .fxm-exposure-modal__header { padding: 20px 18px 16px; gap: 10px; }
  .fxm-exposure-modal h2 { font-size: 19px; }
  .fxm-exposure-modal__header p { font-size: 11px; }
  .fxm-exposure-modal__emblem svg { width: 30px; height: 30px; }
  .fxm-exposure-modal__body { padding: 2px 18px 20px; }
  .fxm-exposure-modal__field { margin-bottom: 18px; }
  .fxm-exposure-modal__methods { gap: 6px; }
  .fxm-exposure-modal__methods button { flex: 1 1 28%; min-height: 44px; padding-inline: 8px; }
  .fxm-exposure-modal .fxm-phone-field--compact .fxm-phone-field__trigger { width: 108px; min-height: 40px; padding-inline: 8px; }
  .fxm-phone-field__popover--compact .fxm-phone-field__option { min-height: 44px; }
  .fxm-exposure-modal__footer { flex-wrap: wrap; gap: 12px; padding: 13px 18px 16px; }
  .fxm-exposure-modal__footer > p { font-size: 10px; }
  .fxm-exposure-modal__footer .fxm-exposure-modal__actions { width: 100%; }
  .fxm-exposure-modal__footer .fxm-exposure-modal__actions button { flex: 1; min-height: 44px; padding-inline: 12px; }
  .fxm-exposure-modal__close { width: 36px; height: 36px; }
}
@keyframes fxm-exposure-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fxm-exposure-modal *, .fxm-exposure-modal *::after { transition: none !important; } .fxm-exposure-modal__primary.is-submitting::before { animation: none; } }
