:host { all: initial; }
*, *::before, *::after { box-sizing: border-box; }
.bimse-root {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17324d;line-height:1.45}
.bimse-launcher {position:fixed;right:20px;bottom:20px;z-index:2147483600;border:0;border-radius:100px;background:#173d57;color:#fff;display:flex;align-items:center;gap:10px;padding:12px 19px;box-shadow:0 9px 25px rgba(16,37,53,.32);font-size:15px;font-weight:750;cursor:pointer;transition:transform .2s,box-shadow .2s;}
.bimse-launcher:hover {transform:translateY(-2px);box-shadow:0 12px 27px rgba(16,37,53,.36)}
.bimse-launcher:focus-visible,.bimse-panel button:focus-visible,.bimse-panel a:focus-visible,.bimse-panel textarea:focus-visible{outline:3px solid #d49c54;outline-offset:2px}
.bimse-paw{display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.bimse-panel {position:fixed;right:20px;bottom:88px;z-index:2147483601;width:min(390px,calc(100vw - 24px));height:min(610px,calc(100dvh - 110px));display:flex;flex-direction:column;background:#fffcf7;border:1px solid #dccab4;border-radius:22px;overflow:hidden;box-shadow:0 16px 60px rgba(23,50,77,.23);color:#17324d}
.bimse-panel[hidden]{display:none!important}
.bimse-header{display:flex;align-items:center;gap:11px;background:linear-gradient(105deg,#173b54,#28536b);color:#fff;padding:15px 16px;min-height:70px}
.bimse-avatar{height:42px;width:42px;border-radius:50%;background:#e8d5b9;color:#17324d;display:flex;align-items:center;justify-content:center;font-size:25px}
.bimse-heading{flex:1;min-width:0;line-height:1.3}
.bimse-heading strong{display:block;font-size:17px;letter-spacing:.2px}
.bimse-heading span{display:block;font-size:12px;opacity:.88}
.bimse-close{border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:50%;font-size:23px;width:34px;height:34px;cursor:pointer}
.bimse-feed{flex:1;overflow-y:auto;padding:16px 13px 12px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain;background:linear-gradient(#fffaf4,#fffdf9)}
.bimse-msg{max-width:88%;padding:10px 13px;border-radius:15px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.bimse-msg-bot{align-self:flex-start;background:#f0e9dc;border-radius:4px 15px 15px 15px}
.bimse-msg-user{align-self:flex-end;background:#d9e7ec;border-radius:15px 4px 15px 15px}
.bimse-msg-pending{opacity:.7}
.bimse-sources{align-self:flex-start;max-width:95%;font-size:12px;display:flex;flex-wrap:wrap;gap:6px;margin:0 2px 4px}
.bimse-sources a{color:#173b54;text-decoration:none;border:1px solid #dac7a5;background:#fff;padding:5px 8px;border-radius:10px;font-weight:650}
.bimse-sources a:hover{text-decoration:underline}
.bimse-quick{display:flex;gap:7px;flex-wrap:wrap;padding:4px 12px 10px;background:#fffaf4}
.bimse-quick button{border:1px solid #d8c6a8;border-radius:14px;background:#fffefa;color:#17324d;padding:7px 10px;font-size:12px;text-align:left;cursor:pointer}
.bimse-quick button:hover{background:#efe4d3}
.bimse-form{display:flex;align-items:end;gap:8px;padding:12px;border-top:1px solid #e5d7c6;background:white}
.bimse-field{flex:1;resize:none;min-height:44px;max-height:110px;border:1px solid #cfc2b2;border-radius:12px;padding:11px;color:#17324d;font-family:inherit;font-size:14px;line-height:1.4;color:#17324d;background:#fff}
.bimse-send{height:44px;width:44px;flex:0 0 44px;border:0;border-radius:12px;background:#173d57;color:white;font-size:21px;cursor:pointer}
.bimse-send:disabled{opacity:.5;cursor:wait}
.bimse-footer{background:#fff;padding:0 12px 10px;font-size:11px;color:#566676}
.bimse-footer a{color:#173d57;text-decoration:underline}
@media(max-width:530px){.bimse-launcher{right:13px;bottom:max(13px,env(safe-area-inset-bottom));padding:11px 16px}.bimse-panel{right:8px;bottom:76px;width:calc(100vw - 16px);height:min(650px,calc(100dvh - 90px));border-radius:18px}.bimse-feed{padding:12px}}
@media(prefers-reduced-motion:reduce){.bimse-launcher{transition:none}}

/* BIMSE-LOGO-v6-START */
/* Officielt Birmakredsen-logo til Bimse (rundt motiv). */
.bimse-launcher-logo { display:block; height:36px; width:36px; flex:0 0 36px; object-fit:contain; border-radius:50%; background:#fff; }
.bimse-header-logo { display:block; height:56px; width:56px; flex:0 0 56px; object-fit:contain; border-radius:50%; background:#fff; }
/* BIMSE-LOGO-v6-SLUT */
