[data-fempa-ai] { --fempa-ai-blue: #1355a1; font-family: "Segoe UI", sans-serif; color: #172b46; }
[data-fempa-ai] * { box-sizing: border-box; }
.fempa-ai-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 1050; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: white; font-family: inherit; font-weight: 700; cursor: pointer; }
[data-fempa-ai] .fempa-ai-launcher > .fempa-ai-avatar { width: 96px; height: 96px; flex: 0 0 96px; }
.fempa-ai-launcher > span { display: flex; align-items: center; justify-content: center; min-width: 196px; min-height: 50px; padding: 12px 24px; border-radius: 28px; background: #48CC5C; color: #fff; font-size: 20px; line-height: 26px; box-shadow: 0 6px 18px #172b461a; }
[data-fempa-ai] .fempa-ai-launcher[aria-expanded="true"] > .fempa-ai-avatar { display: none; }
[data-fempa-ai] .fempa-ai-avatar { display: block; width: 36px; height: 36px; flex: 0 0 36px; border: 0; padding: 0; border-radius: 50%; object-fit: cover; background: transparent; clip-path: circle(46% at 50% 50%); }
.fempa-ai-identity { display: flex; align-items: center; gap: 10px; }
.fempa-ai-window { position: fixed; right: 24px; bottom: 88px; z-index: 1051; width: 390px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100dvh - 110px); display: flex; flex-direction: column; background: white; border: 1px solid #dbe3ee; border-radius: 18px; box-shadow: 0 12px 48px #172b4633; overflow: hidden; }
.fempa-ai-window[hidden] { display: none; }
.fempa-ai-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: white; background: var(--fempa-ai-blue); }
.fempa-ai-header strong, .fempa-ai-header small { display: block; }
.fempa-ai-header small { margin-top: 4px; opacity: .85; }
.fempa-ai-close { background: transparent; border: 0; color: white; font-size: 28px; min-width: 44px; min-height: 44px; cursor: pointer; }
.fempa-ai-notice { margin: 0; padding: 10px 16px; background: #f2f6fc; font-size: 12px; line-height: 1.45; }
.fempa-ai-log { flex: 1; min-height: 80px; overflow-y: auto; padding: 16px; }
.fempa-ai-message { padding: 11px 13px; border-radius: 12px; margin-bottom: 12px; max-width: 94%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.fempa-ai-assistant { background: #f0f4f9; }
.fempa-ai-user { margin-left: auto; background: #dceafa; }
.fempa-ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.fempa-ai-quick { border: 1px solid #c7d6e9; border-radius: 18px; background: white; color: #174b89; font-size: 12px; padding: 8px 10px; cursor: pointer; }
.fempa-ai-status { min-height: 18px; margin: 5px 16px; font-size: 12px; color: #4c6079; }
.fempa-ai-form { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #e2e8f0; }
.fempa-ai-input { resize: none; flex: 1; min-width: 0; border: 1px solid #b6c6da; padding: 9px; border-radius: 8px; font: inherit; font-size: 14px; }
.fempa-ai-send { border: 0; border-radius: 8px; padding: 12px; background: var(--fempa-ai-blue); color: white; cursor: pointer; }
.fempa-ai-reset { border: 0; background: white; color: #365b86; padding: 5px 12px 12px; font-size: 12px; cursor: pointer; }
.fempa-ai-event { border: 1px solid #d6e0ed; border-radius: 10px; margin: 0 0 12px; padding: 12px; font-size: 13px; overflow-wrap: anywhere; }
.fempa-ai-event p { margin: 6px 0; }
.fempa-ai-event a { color: #1355a1; text-decoration: underline; }
.fempa-ai-grant-details { margin: 10px 0; white-space: pre-wrap; }
.fempa-ai-grant-details summary { cursor: pointer; font-weight: 600; }
.fempa-ai-grant-details a { display: block; margin-top: 8px; }
.fempa-ai-contact > a { display: block; margin-top: 12px; }
.fempa-ai-contact-holder { margin-top: 12px; }
.fempa-ai-contact-frame { display: block; width: 100%; height: 520px; border: 1px solid #d6e0ed; border-radius: 8px; background: white; }
.fempa-ai-window[data-contact-open="true"] { width: 520px; height: 760px; }
.fempa-ai-window[data-contact-open="true"] .fempa-ai-notice,
.fempa-ai-window[data-contact-open="true"] .fempa-ai-suggestions,
.fempa-ai-window[data-contact-open="true"] .fempa-ai-form,
.fempa-ai-window[data-contact-open="true"] .fempa-ai-status,
.fempa-ai-window[data-contact-open="true"] .fempa-ai-reset,
.fempa-ai-window[data-contact-open="true"] .fempa-ai-log > :not([data-contact-active="true"]) { display: none; }
.fempa-ai-window[data-contact-open="true"] .fempa-ai-log { display: flex; overflow: hidden; }
.fempa-ai-contact[data-contact-active="true"] { display: flex; flex-direction: column; width: 100%; margin: 0; min-height: 0; }
.fempa-ai-contact[data-contact-active="true"] > p { display: none; }
.fempa-ai-contact[data-contact-active="true"] > button { margin-top: 10px; }
.fempa-ai-contact[data-contact-active="true"] .fempa-ai-contact-holder { flex: 1; min-height: 0; }
.fempa-ai-contact[data-contact-active="true"] .fempa-ai-contact-frame { height: 100%; }
[data-fempa-ai] button:disabled { opacity: .55; cursor: wait; }
[data-fempa-ai] :focus-visible { outline: 3px solid #f1b632; outline-offset: 2px; }
.fempa-ai-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 480px) { .fempa-ai-window { right: 12px; bottom: 82px; width: calc(100vw - 24px); max-width: none; } .fempa-ai-launcher { right: 12px; bottom: 16px; } }
