@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
.dyarinotes-ai-root,.dyarinotes-ai-root *{box-sizing:border-box;font-family:Roboto,Arial,sans-serif!important}
.dyarinotes-ai-root{z-index:999999;color:#203243}
.dyarinotes-ai-launcher{position:fixed;right:18px;bottom:18px;z-index:999999;display:flex;align-items:center;gap:7px;min-height:44px;padding:0 15px;border:0;border-radius:999px;background:#176fe5;color:#fff;box-shadow:0 5px 20px rgba(20,65,120,.22);font-size:13px;font-weight:600;cursor:pointer;transition:transform .18s,background .18s}
.dyarinotes-ai-launcher:hover{background:#105fc8;transform:translateY(-2px)}
.dyarinotes-ai-launcher__spark{font-size:17px;line-height:1}
.dyarinotes-ai-panel{position:fixed;right:18px;bottom:72px;z-index:1000000;display:flex;flex-direction:column;width:min(350px,calc(100vw - 28px));height:min(500px,calc(100dvh - 100px));overflow:hidden;border:1px solid #dce5ec;border-radius:16px;background:#fff;box-shadow:0 14px 48px rgba(20,40,60,.2);opacity:0;visibility:hidden;transform:translateY(10px) scale(.99);transform-origin:bottom right;transition:opacity .18s,transform .18s,visibility .18s}
.dyarinotes-ai-panel.is-open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.dyarinotes-ai-header{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;background:#173d59;color:#fff}
.dyarinotes-ai-brand{display:flex;align-items:center;gap:8px}
.dyarinotes-ai-brand__mark{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:rgba(255,255,255,.16);font-size:17px}
.dyarinotes-ai-brand strong{display:block;font-size:13px;line-height:1.35}
.dyarinotes-ai-brand small{display:block;color:#d5e2eb;font-size:10px}
.dyarinotes-ai-close{width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.dyarinotes-ai-messages{flex:1;overflow-y:auto;padding:13px 11px;background:#f7f9fb}
.dyarinotes-ai-message{display:flex;margin:0 0 10px}
.dyarinotes-ai-message--user{justify-content:flex-end}
.dyarinotes-ai-bubble{max-width:90%;padding:9px 11px;border-radius:12px;background:#fff;color:#263746;font-size:12px;line-height:1.55;overflow-wrap:anywhere;box-shadow:0 1px 3px rgba(20,40,60,.06)}
.dyarinotes-ai-message--user .dyarinotes-ai-bubble{border-bottom-right-radius:4px;background:#176fe5;color:#fff}
.dyarinotes-ai-message--assistant .dyarinotes-ai-bubble{border:1px solid #e5ebf0;border-bottom-left-radius:4px}
.dyarinotes-ai-bubble p{margin:0 0 7px}
.dyarinotes-ai-bubble p:last-child{margin-bottom:0}
.dyarinotes-ai-bubble ul,.dyarinotes-ai-bubble ol{padding-left:18px;margin:5px 0}
.dyarinotes-ai-bubble a{color:#176fe5;text-decoration:underline}
.dyarinotes-ai-message--user a{color:#fff}
.dyarinotes-ai-form{display:flex;align-items:flex-end;gap:7px;padding:9px 10px;border-top:1px solid #e8edf1;background:#fff}
.dyarinotes-ai-input{flex:1;min-width:0;max-height:88px;resize:none;padding:9px 10px;border:1px solid #d8e1e8;border-radius:11px;outline:none;background:#fff;color:#263746;font-size:12px;line-height:1.4;box-shadow:none}
.dyarinotes-ai-input:focus{border-color:#438bd5;box-shadow:0 0 0 2px rgba(23,111,229,.1)}
.dyarinotes-ai-send{flex:0 0 36px;width:36px;height:36px;border:0;border-radius:10px;background:#176fe5;color:#fff;font-size:21px;line-height:1;cursor:pointer}
.dyarinotes-ai-send:disabled{opacity:.55;cursor:wait}
.dyarinotes-ai-footnote{padding:0 10px 7px;background:#fff;color:#8a98a2;text-align:center;font-size:9px}
@media(max-width:600px){
 .dyarinotes-ai-launcher{right:12px;bottom:12px;min-height:40px;padding:0 13px;font-size:12px}
 .dyarinotes-ai-panel{right:8px;bottom:60px;width:calc(100vw - 16px);height:min(440px,calc(100dvh - 78px));border-radius:14px}
 .dyarinotes-ai-header{padding:9px 11px}
 .dyarinotes-ai-messages{padding:10px}
 .dyarinotes-ai-bubble{font-size:12px;max-width:92%}
}
