.tof-ai-root { position: fixed; right: 18px; bottom: 18px; z-index: 99999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.tof-ai-fab { border: 0; border-radius: 999px; padding: 12px 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); background: #111; color: #fff; font-weight: 600; }
.tof-ai-panel { width: 340px; max-width: calc(100vw - 36px); height: 460px; background: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.22); overflow: hidden; margin-bottom: 12px; }
.tof-ai-hidden { display: none; }
.tof-ai-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f5f5f5; border-bottom: 1px solid #eee; }
.tof-ai-title { font-size: 14px; font-weight: 700; }
.tof-ai-close { border: 0; background: transparent; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 6px; }
.tof-ai-body { display: flex; flex-direction: column; height: calc(100% - 44px); }
.tof-ai-quick { display: flex; gap: 8px; padding: 10px 10px 0; overflow-x: auto; }
.tof-ai-quickbtn { border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 8px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.tof-ai-log { padding: 10px; overflow-y: auto; flex: 1; }
.tof-ai-msg { padding: 8px 10px; border-radius: 10px; margin: 6px 0; font-size: 13px; white-space: pre-line; }
.tof-ai-user { background: #111; color: #fff; margin-left: 40px; }
.tof-ai-bot { background: #f0f0f0; color: #111; margin-right: 40px; }
.tof-ai-inputrow { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; }
.tof-ai-input { flex: 1; border: 1px solid #ddd; border-radius: 10px; padding: 10px; font-size: 13px; }
.tof-ai-send { border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #111; color: #fff; font-weight: 600; }
.tof-ai-send:disabled { opacity: .6; cursor: not-allowed; }
.tof-ai-sources { padding: 6px 2px 10px; }
.tof-ai-sources-title { font-size: 12px; font-weight: 700; margin: 6px 0; }
.tof-ai-source { display: block; font-size: 12px; color: #0b5bd3; text-decoration: none; margin: 4px 0; }
.tof-ai-source:hover { text-decoration: underline; }
