.admin-ai { position: fixed; right: 18px; bottom: 18px; z-index: 10000; font-family: system-ui, sans-serif; color: #202124; }
.admin-ai__launcher { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; padding: 0; background: #245a9a; color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 8px 28px #0003; cursor: pointer; }
.admin-ai__panel { position: absolute; right: 0; bottom: 0; width: min(410px, calc(100vw - 24px)); height: min(680px, calc(100vh - 30px)); background: #fff; border: 1px solid #d8dde5; border-radius: 18px; box-shadow: 0 18px 65px #18233338; overflow: hidden; flex-direction: column; }
.admin-ai__panel:not([hidden]) { display: flex; }
.admin-ai__header { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; background: #245a9a; color: #fff; }
.admin-ai__header strong, .admin-ai__header small { display: block; }.admin-ai__header small { margin-top: 2px; opacity: .82; font-size: 11px; }
.admin-ai__header-actions { display: flex; gap: 6px; }.admin-ai__header-actions button { border: 0; background: #ffffff20; color: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 20px; cursor: pointer; }
.admin-ai__header-actions .admin-ai__new-conversation { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; padding: 0 11px 0 8px; border: 1px solid #66bb6a; border-radius: 9px; background: #2e7d32; box-shadow: 0 3px 10px #12381755; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.admin-ai__new-conversation span[aria-hidden="true"] { font-size: 18px; line-height: 1; }
.admin-ai__header-actions .admin-ai__new-conversation:hover, .admin-ai__header-actions .admin-ai__new-conversation:focus-visible { border-color: #a5d6a7; background: #388e3c; box-shadow: 0 4px 13px #12381770; transform: translateY(-1px); outline: none; }
.admin-ai__header-actions .admin-ai__new-conversation:active { transform: translateY(0); box-shadow: 0 2px 6px #12381755; }
.admin-ai__conversation-bar { display: flex; align-items: center; gap: 6px; margin: 10px 12px 0; min-width: 0; }
.admin-ai__conversations { flex: 1 1 auto; width: 0; min-width: 0; max-width: 100%; min-height: 34px; margin: 0; box-sizing: border-box; border: 1px solid #d8dde5; border-radius: 8px; background: #fff; }
.admin-ai__conversation-edit, .admin-ai__conversation-rename button { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; box-sizing: border-box; border: 1px solid #ccd3dc; border-radius: 8px; background: #f6f7f9; color: #245a9a; font-size: 17px; cursor: pointer; }
.admin-ai__conversation-edit:disabled { opacity: .45; cursor: default; }
.admin-ai__conversation-rename { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; }
.admin-ai__conversation-rename[hidden] { display: none; }
.admin-ai__conversation-rename input { flex: 1 1 auto; width: 0; min-width: 0; height: 34px; box-sizing: border-box; border: 1px solid #8ca9cb; border-radius: 8px; padding: 0 9px; }
.admin-ai__messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.admin-ai__message { max-width: 88%; padding: 10px 12px; border-radius: 13px; overflow-wrap: anywhere; line-height: 1.42; }
.admin-ai__message-content { white-space: pre-wrap; }
.admin-ai__message--user { align-self: flex-end; background: #245a9a; color: #fff; border-bottom-right-radius: 4px; }
.admin-ai__message--assistant { position: relative; align-self: flex-start; padding-right: 40px; background: #f1f3f6; border-bottom-left-radius: 4px; }
.admin-ai__message--working { color: #52606f; font-style: italic; }
.admin-ai__message--error { align-self: stretch; max-width: none; color: #922; background: #fff0f0; border: 1px solid #efcaca; }
.admin-ai__it-report { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 1px solid #c62828; border-radius: 50%; background: #fff; color: #c62828; font: 800 15px/1 system-ui, sans-serif; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.admin-ai__it-report:hover, .admin-ai__it-report:focus-visible { background: #c62828; color: #fff; transform: scale(1.06); outline: none; }
.admin-ai__it-report:disabled { cursor: wait; opacity: .65; }
.admin-ai__it-report.is-sent { border-color: #2e7d32; background: #2e7d32; color: #fff; cursor: default; opacity: 1; }
.admin-ai__sources { margin: 8px 0 0; padding-left: 18px; font-size: 12px; }.admin-ai__sources a { color: #245a9a; }
.admin-ai__action { align-self: stretch; border: 1px solid #d5dce7; border-radius: 12px; padding: 10px; background: #fff; }
.admin-ai__action p { margin: 0 0 8px; }.admin-ai__action-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-ai__action button, .admin-ai__action a { border: 0; border-radius: 7px; padding: 7px 10px; background: #245a9a; color: #fff; text-decoration: none; cursor: pointer; font-size: 12px; }
.admin-ai__action button[data-secondary] { background: #e8ebef; color: #333; }
.admin-ai__confirm-all { align-self: stretch; display: flex; justify-content: flex-end; padding: 8px 10px; border: 1px solid #c8d8eb; border-radius: 10px; background: #eef5fc; }
.admin-ai__confirm-all button { margin: 0; border: 0; border-radius: 8px; padding: 8px 12px; background: #245a9a; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }.admin-ai__confirm-all button:disabled { opacity: .58; cursor: wait; }
.admin-ai__uploads { max-height: 120px; overflow-y: auto; padding: 0 12px; font-size: 12px; }.admin-ai__upload { padding: 5px 0; border-top: 1px solid #eef0f3; }
.admin-ai__composer { border-top: 1px solid #dfe3e8; padding: 10px 12px 12px; }.admin-ai__composer textarea { width: 100%; box-sizing: border-box; resize: none; border: 1px solid #ccd3dc; border-radius: 10px; padding: 9px; min-height: 54px; }
.admin-ai__composer-row { display: flex; gap: 7px; align-items: center; margin-top: 7px; }.admin-ai__icon-button { display: grid; place-items: center; width: 35px; height: 35px; margin: 0; border: 1px solid #ccd3dc; border-radius: 9px; background: #fff; cursor: pointer; box-sizing: border-box; }.admin-ai__icon-button input { display: none; }.admin-ai__icon-button.is-recording { color: #b40000; background: #ffeaea; }
.admin-ai__send { margin-left: auto; min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: #245a9a; color: #fff; font-weight: 700; cursor: pointer; }.admin-ai__send:disabled { opacity: .55; }
@media (max-width: 640px) { .admin-ai { right: 8px; bottom: 8px; }.admin-ai__panel { position: fixed; inset: 5px; width: auto; height: auto; border-radius: 13px; } }
