.chemtech-chat{font-family:var(--font-body);z-index:140;position:fixed;bottom:24px;right:24px}.chemtech-chat-launcher{background:var(--brand-red);border-radius:var(--radius-small);color:#fff;cursor:pointer;height:50px;transition:background-color var(--transition-fast), box-shadow var(--transition-fast);border:0;justify-content:center;align-items:center;width:50px;padding:0;display:inline-flex;box-shadow:0 12px 30px #01134f38}.chemtech-chat-launcher svg{width:21px;height:21px}.chemtech-chat-launcher:hover{background:#c90000;box-shadow:0 14px 34px #01134f47}.chemtech-chat-launcher:focus-visible,.chemtech-chat button:focus-visible,.chemtech-chat a:focus-visible,.chemtech-chat textarea:focus-visible{outline-offset:3px;outline:3px solid #90b4ff}.chemtech-chat-panel{background:var(--surface-white);border:1px solid var(--border-light);border-top:4px solid var(--brand-red);grid-template-rows:auto minmax(0,1fr) auto;width:min(410px,100vw - 32px);height:min(650px,100vh - 124px);display:grid;position:absolute;bottom:64px;right:0;overflow:hidden;box-shadow:0 22px 60px #01134f3d}.chemtech-chat-header{background:var(--brand-dark-navy);color:#fff;justify-content:space-between;align-items:center;min-height:72px;padding:14px 16px;display:flex}.chemtech-chat-identity{align-items:center;gap:12px;display:flex}.chemtech-chat-identity>span{background:#ffffff1a;border:1px solid #ffffff3d;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.chemtech-chat-identity svg{width:20px;height:20px}.chemtech-chat-identity div{gap:4px;display:grid}.chemtech-chat-identity strong{font-family:var(--font-heading);font-size:.98rem;font-weight:600}.chemtech-chat-identity small{color:#cbd7f2;font-size:.72rem}.chemtech-chat-header-actions{gap:5px;display:flex}.chemtech-chat-header-actions button{color:#fff;cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.chemtech-chat-header-actions button:hover{background:#ffffff1a;border-color:#ffffff2e}.chemtech-chat-messages{background:var(--surface-soft);overscroll-behavior:contain;scrollbar-color:var(--border-dark) transparent;scrollbar-width:thin;padding:18px 16px 20px;overflow-y:auto}.chemtech-chat-message{max-width:88%;margin-bottom:14px;padding:12px 14px}.chemtech-chat-message p{white-space:pre-line;margin:0;font-size:.88rem;line-height:1.58}.chemtech-chat-message-assistant{border:1px solid var(--border-light);border-left:3px solid var(--brand-navy);color:var(--text-primary);background:#fff}.chemtech-chat-message-user{background:var(--brand-navy);color:#fff;margin-left:auto}.chemtech-chat-sources{border-top:1px solid var(--border-light);gap:7px;margin-top:11px;padding-top:10px;display:grid}.chemtech-chat-sources>span{color:var(--text-muted);letter-spacing:.1em;text-transform:uppercase;font-size:.68rem;font-weight:700}.chemtech-chat-sources a{color:var(--brand-navy);align-items:flex-start;gap:6px;font-size:.76rem;font-weight:600;line-height:1.35;text-decoration:none;display:inline-flex}.chemtech-chat-sources a:hover{color:var(--brand-red);text-decoration:underline}.chemtech-chat-sources svg{flex:none;margin-top:2px}.chemtech-chat-suggestions{gap:8px;margin:6px 0 14px;display:grid}.chemtech-chat-suggestions button{border:1px solid var(--border-medium);color:var(--brand-navy);cursor:pointer;font:500 .79rem/1.4 var(--font-body);text-align:left;background:#fff;padding:10px 12px}.chemtech-chat-suggestions button:hover{background:var(--surface-blue-soft);border-color:var(--brand-navy)}.chemtech-chat-thinking{color:var(--text-secondary);align-items:center;gap:5px;padding:5px 2px;font-size:.78rem;display:flex}.chemtech-chat-thinking span{background:var(--brand-navy);border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite chemtech-chat-pulse}.chemtech-chat-thinking span:nth-child(2){animation-delay:.12s}.chemtech-chat-thinking span:nth-child(3){margin-right:4px;animation-delay:.24s}@keyframes chemtech-chat-pulse{0%,60%,to{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.chemtech-chat-error{border-left:3px solid var(--brand-red);color:#8d1016;background:#fff5f5;margin:8px 0;padding:11px 12px;font-size:.8rem}.chemtech-chat-error p{margin:0 0 8px}.chemtech-chat-error div{flex-wrap:wrap;gap:8px 14px;display:flex}.chemtech-chat-error a{color:var(--brand-navy);font-weight:650}.chemtech-chat-form{border-top:1px solid var(--border-light);background:#fff;gap:8px;padding:13px 14px 14px;display:grid}.chemtech-chat-form label{color:var(--brand-navy);font-size:.73rem;font-weight:650}.chemtech-chat-form>div{grid-template-columns:minmax(0,1fr) 48px;align-items:stretch;display:grid}.chemtech-chat-form textarea{border:1px solid var(--border-medium);color:var(--text-primary);font:400 .88rem/1.45 var(--font-body);resize:vertical;border-right:0;min-height:48px;max-height:106px;padding:11px 12px}.chemtech-chat-form button{background:var(--brand-red);color:#fff;cursor:pointer;border:0;justify-content:center;align-items:center;display:inline-flex}.chemtech-chat-form button:disabled{cursor:not-allowed;opacity:.45}.chemtech-chat-form small{color:var(--text-muted);font-size:.65rem;line-height:1.4}@media (width<=640px){.chemtech-chat{bottom:14px;right:14px}.chemtech-chat-panel{width:calc(100vw - 28px);height:min(620px,100dvh - 96px);bottom:60px}.chemtech-chat-launcher{width:48px;height:48px}}@media (prefers-reduced-motion:reduce){.chemtech-chat-launcher{transition:none}.chemtech-chat-thinking span{opacity:.65;animation:none}}
