.site-assistant { position: fixed; right: 20px; bottom: 20px; z-index: 1000; color: #fff; font-family: Arial, sans-serif; font-size: 14px; text-align: left; }
.site-assistant *, .site-assistant *::before, .site-assistant *::after { box-sizing: border-box; }
.site-assistant button, .site-assistant textarea { font: inherit; }
.site-assistant button { cursor: pointer; }
.site-assistant button:focus-visible, .site-assistant textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.assistant-launcher { display: block; margin-left: auto; min-height: 46px; padding: 10px 18px; border: 1px solid #999; background: #080808; color: #fff; box-shadow: 0 4px 22px #0009; font-weight: 700; }
.assistant-launcher:hover, .assistant-send:hover { background: #fff; color: #000; }
.assistant-panel { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 100px)); min-height: 230px; overflow: hidden; border: 1px solid #777; background: #080808; box-shadow: 0 12px 48px #000b; }
.assistant-panel[hidden] { display: none; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 14px 16px; border-bottom: 1px solid #343434; }
.assistant-header strong, .assistant-header span { display: block; }
.assistant-header span { margin-top: 3px; color: #aaa; font-size: 12px; }
.assistant-header-actions { display: flex; gap: 4px; }
.assistant-header-actions button { width: 34px; height: 34px; border: 0; background: transparent; color: #ccc; font-size: 24px; line-height: 1; }
.assistant-header-actions button:hover { color: #fff; background: #222; }
.assistant-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.assistant-log p { margin: 0; }
.assistant-welcome, .assistant-message { padding: 10px 12px; border: 1px solid #333; background: #111; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message { max-width: 95%; }
.assistant-message.user { align-self: flex-end; background: #222; border-color: #555; }
.assistant-message strong { display: block; margin-bottom: 4px; color: #bbb; font-size: 11px; }
.assistant-status { min-height: 0; padding: 0 16px; color: #ccc; font-size: 12px; line-height: 1.4; }
.assistant-status:not(:empty) { padding-bottom: 10px; }
.assistant-form { display: flex; align-items: stretch; gap: 8px; flex: none; padding: 12px; border-top: 1px solid #343434; }
.assistant-form textarea { flex: 1; min-width: 0; resize: vertical; max-height: 100px; min-height: 44px; padding: 8px; border: 1px solid #666; border-radius: 0; background: #000; color: #fff; }
.assistant-send { border: 1px solid #aaa; padding: 8px 12px; background: #111; color: #fff; }
.assistant-send:disabled, .assistant-header-actions button:disabled { opacity: .5; cursor: wait; }
.assistant-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 500px) { .site-assistant { right: 12px; bottom: 12px; } .assistant-panel { width: calc(100vw - 24px); max-height: calc(100dvh - 86px); } }
