.atl-launcher, .atl-panel { --atl-ink:#16181d; --atl-paper:#faf8f4; --atl-line:#e6e1d8; --atl-muted:#5b6070; --atl-accent:#a8461f; --atl-soft:#f6e3da; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }

.atl-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 99999; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--atl-ink); color: var(--atl-paper); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.atl-launcher::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: #d97a4f; vertical-align: middle; }
.atl-launcher:hover { opacity: .92; }
.atl-hidden { display: none; }

.atl-panel { position: fixed; right: 20px; bottom: 20px; z-index: 99999; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--atl-paper); color: var(--atl-ink); border: 1px solid var(--atl-line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.2); overflow: hidden; }
.atl-panel[hidden] { display: none; }
.atl-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--atl-ink); color: var(--atl-paper); }
.atl-title { margin: 0; font-weight: 700; font-size: 16px; }
.atl-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--atl-paper); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; }
.atl-note { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.45; color: var(--atl-muted); border-bottom: 1px solid var(--atl-line); }
.atl-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.atl-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.atl-msg p { margin: 0 0 6px; } .atl-msg p:last-child { margin-bottom: 0; }
.atl-msg ul { margin: 4px 0 6px 18px; padding: 0; }
.atl-msg a { color: var(--atl-accent); font-weight: 600; }
.atl-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--atl-line); }
.atl-user { align-self: flex-end; background: var(--atl-ink); color: var(--atl-paper); white-space: pre-wrap; }
.atl-pending { color: var(--atl-muted); }
.atl-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.atl-chips[hidden] { display: none; }
.atl-chip { min-height: 36px; padding: 6px 12px; border: 1px solid var(--atl-line); border-radius: 999px; background: var(--atl-soft); color: var(--atl-accent); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.atl-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--atl-line); background: #fff; }
.atl-form textarea { flex: 1; resize: none; min-height: 44px; padding: 10px 12px; border: 1px solid var(--atl-line); border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--atl-ink); background: var(--atl-paper); }
.atl-send { min-width: 64px; min-height: 44px; border: 0; border-radius: 10px; background: var(--atl-accent); color: #fff; font-weight: 700; cursor: pointer; }
.atl-send:disabled { opacity: .5; cursor: default; }
.atl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atl-launcher:focus-visible, .atl-panel button:focus-visible, .atl-form textarea:focus-visible, .atl-msg a:focus-visible { outline: 2px solid var(--atl-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .atl-launcher, .atl-panel { transition: none; } }
