/* Shared chat theme: the same forest, glass surfaces and crimson as the site. */
html body #aiChatWindow.panterclaim-chat-window-box {
 width:430px!important; max-width:calc(100vw - 40px)!important; height:620px!important; max-height:calc(100dvh - 120px)!important;
 background:linear-gradient(155deg,rgba(31,17,26,.96),rgba(8,8,12,.97) 45%)!important;
 border:1px solid #e6b7c72e!important; border-radius:20px!important;
 box-shadow:0 28px 80px #0009,0 4px 0 #20131d99,inset 0 1px #ffffff12!important;
 backdrop-filter:blur(24px)!important; -webkit-backdrop-filter:blur(24px)!important;
 transition:opacity .25s ease,transform .3s ease,visibility .25s!important;
 isolation:isolate;
}
#aiChatWindow::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(#09090ddd,#09090df2),url('/assets/forest-background.jpg') center/cover; pointer-events:none; }
#aiChatWindow > * { flex-shrink:0; }
#aiChatWindow > [hidden] { display:none!important; }
.ai-chat-header { display:flex; justify-content:space-between; align-items:center; padding:20px 18px 17px; gap:10px; border-bottom:1px solid #ffffff0d; background:transparent; }
.ai-chat-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.ai-brand-mark { display:flex; align-items:center; justify-content:center; width:45px; height:45px; flex-shrink:0; border:1px solid #ff789539; border-radius:13px; background:linear-gradient(135deg,#af2748,#45152b); box-shadow:inset 0 1px #ffceda29,0 3px 0 #291120; font-size:19px; font-weight:800; letter-spacing:-1.5px; color:#fff2f6; }
.ai-brand-mark > span { color:#ff9cb5; font-weight:400; margin:0 1px; }
.ai-chat-eyebrow { display:block; font-size:8px; font-weight:700; letter-spacing:.18em; color:#fa9ab1; margin-bottom:3px; }
.ai-chat-brand h3 { margin:0; font-size:15px; font-weight:700; line-height:1.3; letter-spacing:-.03em; color:#fcf4f7; }
.ai-chat-brand p { margin:4px 0 0; font-size:10px; line-height:1.4; color:#ab99a6; }
.ai-chat-actions { display:flex; align-items:center; gap:3px; }
.ai-chat-actions button { display:grid; place-items:center; width:32px; height:36px; border:1px solid transparent; border-radius:9px; color:#b39fac; background:transparent; }
.ai-chat-actions button:hover { background:#ffffff08; color:#fff; border-color:#ffffff14; }
.ai-chat-actions svg { width:15px; height:15px; }
.ai-chat-intro { display:flex; align-items:center; gap:7px; padding:11px 18px; color:#a795a4; font-size:9px; border-bottom:1px solid #ffffff08; }
.ai-chat-dot { width:5px; height:5px; border-radius:50%; background:#ff7191; box-shadow:0 0 10px #ff5a7d44; }
.ai-chat-label { margin-left:auto; font-size:7px; letter-spacing:.15em; color:#7d697a; }
#aiMessagesContainer { flex:1 1 0!important; min-height:0; padding:20px 16px!important; background:transparent!important; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#653242 transparent; }
#aiMessagesContainer > div { margin-top:16px; }
#aiMessagesContainer > div:first-child { margin-top:0; }
#aiChatWindow .ai-msg-bubble { border-radius:14px!important; padding:12px 14px!important; font-size:12px!important; line-height:1.75!important; overflow-wrap:anywhere; box-shadow:none!important; }
#aiChatWindow .ai-message-assistant .ai-msg-bubble { background:#211923d9!important; border:1px solid #edc7d018!important; border-top-left-radius:4px!important; color:#e9dfe7!important; backdrop-filter:none!important; }
#aiChatWindow .ai-message-user .ai-msg-bubble { background:linear-gradient(125deg,#9e2847,#631b36)!important; border:1px solid #e98caa26; border-bottom-right-radius:4px!important; text-align:left; color:#fff3f7!important; }
#aiChatWindow .ai-message-avatar { width:25px; height:25px; margin-top:3px; border:1px solid #ff819733; border-radius:8px!important; background:#7b203b!important; box-shadow:none!important; }
.ai-avatar-monogram { font-size:9px; font-weight:800; letter-spacing:-.04em; color:#ffe5ee; }
#aiChatWindow .ai-msg-bubble a { color:#ff9cb7; text-decoration:underline; text-underline-offset:3px; }
#aiChatWindow .ai-msg-bubble code { overflow-wrap:anywhere; }
#aiChatWindow .ai-msg-bubble pre { max-width:100%; overflow-x:auto; }
#aiChatWindow .ai-msg-bubble > span:last-child { margin-top:8px; font-family:inherit; font-size:8px; color:#b394a4; opacity:.7; }
#aiQuickChips { padding:12px 4px!important; gap:7px!important; scrollbar-width:none; }
#aiQuickChips::-webkit-scrollbar { display:none; }
#aiChatWindow .ai-chip { min-height:32px; padding:7px 10px; border:1px solid #ffffff14; border-radius:8px; background:#ffffff04; color:#bda9b8; font-size:10px; font-weight:500; white-space:nowrap; box-shadow:none; }
#aiChatWindow .ai-chip:hover { background:#b6284920; border-color:#e877963b; color:#ffe2eb; }
#aiChatWindow :is(#aiChipsScrollLeft,#aiChipsScrollRight) { color:#9d7f91; }
#aiChatForm { background:#0b090ed9!important; padding:14px!important; gap:9px!important; border-top:1px solid #ffffff12!important; }
#aiChatForm > div { min-width:0; }
#aiChatInput { min-height:46px; max-height:120px; padding:12px!important; border:1px solid #ffffff17!important; border-radius:12px!important; background:#ffffff05!important; color:#f7e9f0; font-family:inherit; line-height:1.4; box-shadow:none!important; }
#aiChatInput::placeholder { color:#897987!important; }
#aiChatInput:focus { border-color:#cf607b88!important; outline:none; box-shadow:0 0 0 3px #e45b7c0d!important; }
#aiSendBtn { width:46px!important; height:46px!important; min-height:46px; border:1px solid #ffbdcf30; border-radius:12px!important; background:linear-gradient(120deg,#dc264c,#9d1b3e)!important; box-shadow:0 3px 0 #471329,inset 0 1px #ffffff20!important; }
#aiSendBtn:hover { transform:translateY(-1px); }
#aiTypingIndicator > div:last-child { border-color:#e6bccb1a; background:#211923c9; }
#aiKnowledgeMcard { background:linear-gradient(150deg,#251420f5,#0c0a10fa)!important; border:1px solid #f4bccf33!important; border-radius:20px!important; box-shadow:0 25px 70px #0009!important; }
html body #aiChatToggleBtn { width:56px!important; height:56px!important; border:1px solid #f8abc64d!important; border-radius:18px!important; background:linear-gradient(145deg,#3c1a2bed,#100d15f5)!important; box-shadow:inset 0 1px #ffffff15,0 4px 0 #200f1c,0 12px 35px #0007!important; animation:none!important; }
#aiChatToggleBtn .panterclaim-btn-icon-closed { display:none!important; }
#aiChatToggleBtn::before { content:'AI'; position:absolute; font-size:16px; font-weight:700; letter-spacing:-.04em; color:#ffe1ed; }
#aiChatToggleBtn.is-active::before { display:none; }
#aiChatToggleBtn .panterclaim-circle-status-dot { background:#ff7697!important; border-color:#271323!important; box-shadow:0 0 10px #ff51774d!important; }
html body #ownerCircleBtn { border-color:#c8869d44!important; background:#150f18de!important; box-shadow:inset 0 1px #ffffff0d,0 10px 28px #0006!important; }
#ownerCircleBtn svg { stroke:#c5a1b3; }
#ownerCircleBtn .panterclaim-owner-circle-dot { background:#e49ab5!important; }
html body #aiChatBubblePrompt { background:#170f1bd9!important; border:1px solid #deb2c52b!important; border-radius:14px!important; box-shadow:inset 0 1px #ffffff0d,0 10px 30px #0006!important; animation:none!important; padding:11px 14px!important; }
#aiChatBubblePrompt .panterclaim-bubble-text { font-size:11px!important; font-weight:400!important; color:#c9b5c2!important; }
#aiChatBubblePrompt .panterclaim-bubble-highlight { color:#ffafc5!important; }
#aiChatBubblePrompt :is(.panterclaim-bubble-tail,.panterclaim-bubble-pulse) { display:none!important; }
@media (max-width:639px) {
 html body #aiChatWindow.panterclaim-chat-window-box { left:10px!important; right:10px!important; bottom:max(78px,calc(env(safe-area-inset-bottom) + 70px))!important; width:auto!important; max-width:none!important; height:min(620px,calc(100dvh - 100px))!important; max-height:calc(100dvh - 100px)!important; border-radius:18px!important; }
 .ai-chat-header { padding:16px 14px; gap:6px; }
 .ai-chat-brand { gap:9px; }
 .ai-brand-mark { width:37px; height:40px; font-size:16px; border-radius:11px; }
 .ai-chat-brand h3 { font-size:14px; }
 .ai-chat-brand p { font-size:9px; }
 .ai-chat-actions { gap:0; }
 .ai-chat-actions button { width:30px; min-height:40px; }
 #aiMessagesContainer { padding:16px 12px!important; }
 #aiChatWindow .ai-msg-bubble { font-size:12px!important; padding:10px 12px!important; }
 #aiChatWindow .ai-message-avatar { display:none; }
 #aiChatWindow .ai-message-assistant .ai-msg-bubble { max-width:94%; }
 #aiChatForm { padding:10px!important; }
 html body #aiChatToggleBtn { width:50px!important; height:50px!important; border-radius:16px!important; }
}
@media (max-width:359px) { .ai-chat-header { padding:12px; } .ai-chat-intro { padding-inline:12px; font-size:8px; } }
.ai-brand-mark { background:transparent; padding:3px; border:0; box-shadow:none; }
.ai-brand-mark img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 3px rgba(255,255,255,.45)); }
#aiChatWindow .ai-message-avatar { background:transparent url('/assets/panther-logo-transparent.png') center / contain no-repeat!important; border:0; filter:drop-shadow(0 0 2px rgba(255,255,255,.45)); }
#aiChatWindow .ai-avatar-monogram { display:none; }
@media (max-height:480px) and (orientation:landscape) {
 html body #aiChatWindow.panterclaim-chat-window-box { top:10px!important; bottom:10px!important; height:auto!important; max-height:none!important; }
 .ai-chat-header { padding:10px 14px; }
 .ai-chat-intro { display:none; }
 #aiChatWindow #aiQuickChips { padding-block:5px!important; }
}
@media (prefers-reduced-motion:reduce) { html body #aiChatWindow.panterclaim-chat-window-box { transition:none!important; } }
body:has(#aiChatWindow.is-open) #aiChatBubblePrompt { display:none!important; }
#aiKnowledgeModal { z-index:1000001!important; }
