.hada-widget-container{position:fixed;bottom:20px;right:20px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.hada-chat-button{border:none;padding:12px 18px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-weight:600;cursor:pointer;box-shadow:0 12px 30px #2563eb59;transition:transform .12s ease,box-shadow .12s ease}.hada-chat-button:hover{transform:translateY(-1px);box-shadow:0 14px 34px #2563eb66}.hada-chat-button:active{transform:translateY(0)}.hada-chat-panel{width:340px;height:clamp(500px,70vh,680px);max-height:calc(100vh - 60px);background:#fff;border-radius:16px;box-shadow:0 18px 50px #0f172a2e;overflow:hidden;display:flex;flex-direction:column}.hada-chat-header{background:#0b3b8d;color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.hada-chat-title{font-size:16px;font-weight:700}.hada-chat-subtitle{font-size:12px;opacity:.9}.hada-close-btn{background:transparent;border:none;color:#fff;font-size:20px;cursor:pointer;line-height:1}.hada-chat-body{flex:1;background:#f3f4f6;padding:12px 12px 16px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;position:relative}.hada-message{max-width:85%;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.4;box-shadow:0 2px 6px #0f172a0d;word-break:break-word}.hada-message.from-user{align-self:flex-end;background:#2563eb;color:#fff;border-bottom-right-radius:4px}.hada-message.from-bot{align-self:flex-start;background:#fff;color:#0f172a;border-bottom-left-radius:4px}.hada-message p{margin:.2em 0}.hada-message a{color:#1d4ed8;text-decoration:underline}.hada-message ul,.hada-message ol{margin:.2em 0 .2em 1.2em;padding:0 0 0 .2em;list-style-position:outside}.hada-message ul{list-style-type:disc}.hada-message ol{list-style-type:decimal}.hada-chat-footer{padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid #e5e7eb;background:#fff;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.hada-chat-footer textarea{padding:10px 12px;border-radius:12px;border:1px solid #d1d5db;font-size:16px;line-height:1.4;outline:none;transition:border-color .12s ease,box-shadow .12s ease;resize:none;width:100%;min-height:42px;max-height:120px;overflow-y:hidden;background:#fff}.hada-chat-footer textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.hada-chat-footer button{padding:10px 14px;border-radius:12px;border:none;background:#2563eb;color:#fff;font-weight:600;font-size:15px;cursor:pointer;transition:background .12s ease,transform .12s ease,box-shadow .12s ease;box-shadow:0 8px 18px #2563eb33}.hada-chat-footer button:disabled{opacity:.7;cursor:not-allowed;box-shadow:none}.hada-chat-footer button:not(:disabled):hover{background:#1d4ed8;transform:translateY(-1px)}.hada-typing{display:inline-flex;gap:4px;align-items:center}.hada-typing span{display:block;width:6px;height:6px;border-radius:999px;background:#94a3b8;animation:hada-bounce 1s infinite}.hada-typing span:nth-child(2){animation-delay:.15s}.hada-typing span:nth-child(3){animation-delay:.3s}@keyframes hada-bounce{0%,80%,to{transform:translateY(0);opacity:.6}40%{transform:translateY(-4px);opacity:1}}@media(max-width:640px){.hada-chat-panel{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-height:100dvh;border-radius:0;box-shadow:none;z-index:99999}.hada-chat-header,.hada-chat-footer{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.hada-chat-body{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:calc(16px + env(safe-area-inset-bottom))}}.hada-error{align-self:center;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;padding:8px 10px;border-radius:10px;font-size:13px}.hada-starting{position:absolute;inset:0;background:linear-gradient(180deg,#fffc,#f3f4f6e6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#0f172a;font-weight:600;z-index:1}.hada-spinner{width:26px;height:26px;border-radius:50%;border:3px solid #dbeafe;border-top-color:#2563eb;animation:hada-spin 1s linear infinite}@keyframes hada-spin{to{transform:rotate(360deg)}}
