/* SPDX-License-Identifier: Apache-2.0 */
.haven-butler-host{font:14px/1.5 system-ui,sans-serif;color:#182b35}.haven-butler-host *{box-sizing:border-box}.haven-butler-host button,.haven-butler-host select{font:inherit;min-height:42px;border:1px solid #b5c6cc;border-radius:7px;padding:8px 12px;background:white;color:#182b35;cursor:pointer}.haven-butler-host button:focus-visible,.haven-butler-host textarea:focus-visible,.haven-butler-host select:focus-visible{outline:3px solid #1674ad;outline-offset:2px}.haven-butler-launch{position:fixed;right:18px;bottom:max(16px,env(safe-area-inset-bottom));z-index:1000;display:flex;gap:8px;align-items:center;background:#153e38!important;color:white!important;border-radius:28px!important;box-shadow:0 4px 20px #153e3830}.haven-butler-mark{display:inline-grid;place-items:center;background:#b9e4d3;color:#143d33;border-radius:50%;width:28px;height:28px;font-weight:800}.haven-butler-widget{position:fixed;right:18px;bottom:80px;width:390px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 100px);overflow:auto;z-index:1001;background:#fff;color:#182b35;border:1px solid #b3c9c2;border-radius:14px;box-shadow:0 12px 48px #122e3830;padding:18px}.haven-butler-widget[hidden]{display:none}.haven-butler-widget[data-size="expanded"]{width:560px}.haven-butler-widget[data-side="start"]{right:auto;left:14px}.haven-butler-widget header{display:flex;justify-content:space-between;align-items:center;gap:10px}.haven-butler-widget h2{font-size:19px;color:#182b35;margin:0}.haven-butler-context{font-size:12px;color:#526674}.haven-butler-log{max-height:32dvh;overflow:auto;overscroll-behavior:contain}.haven-butler-message{padding:10px;background:#eef6f2;border-radius:8px;margin-bottom:10px;overflow-wrap:anywhere}.haven-butler-message p{margin:4px 0;white-space:pre-wrap}.haven-butler-status{font-size:13px;color:#355d51;min-height:18px;overflow-wrap:anywhere}.haven-butler-widget form label{display:block;margin:10px 0 5px}.haven-butler-widget textarea{font:inherit;width:100%;min-height:80px;border:1px solid #afc3bf;border-radius:7px;padding:10px;resize:vertical;background:#fff;color:#182b35}.haven-butler-widget form button{background:#096a60;color:white;margin:8px 0 14px}.haven-butler-widget button:disabled{opacity:.55;cursor:not-allowed}.haven-butler-widget select{margin:8px 8px 0 0;max-width:100%}.haven-butler-widget summary{cursor:pointer}.haven-butler-question{font-weight:600}@media(max-width:650px){.haven-butler-widget{right:14px;padding:14px}.haven-butler-launch{right:14px}}

.haven-butler-recovery{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.haven-butler-recovery[hidden]{display:none}.haven-butler-recovery a{color:#075b82;text-decoration:underline;min-height:42px;display:inline-flex;align-items:center}.haven-butler-recovery a[hidden]{display:none}
/* Generic Skeleton presentation inside the same floating host. */
.haven-butler-content .skeleton-vstack{display:flex;flex-direction:column;gap:10px}.haven-butler-content textarea{font:inherit;width:100%;min-height:80px;max-width:100%;padding:10px;border:1px solid #afc3bf;border-radius:7px;background:#fff;color:#182b35}.haven-butler-content .skeleton-text{white-space:pre-wrap;overflow-wrap:anywhere}.haven-butler-content .skeleton-list{max-height:30dvh;overflow:auto}.haven-butler-content .skeleton-list .skeleton-vstack{padding:10px;background:#eef6f2;border-radius:8px;margin-bottom:8px}.haven-butler-content .skeleton-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.haven-butler-content .skeleton-picker-label{min-width:120px}.haven-butler-content[inert]{opacity:.65}
/* Narrow screens (demo check 2026-11-12): the launcher covered the Send row in
   Samtaler. Below 480 px it becomes a small round mark that sits above the
   bottom row, and the page gets room to scroll past it. */
@media(max-width:480px){body:has(.haven-butler-host){padding-bottom:calc(64px + env(safe-area-inset-bottom))}.haven-butler-launch{right:10px;bottom:calc(72px + env(safe-area-inset-bottom));min-height:40px!important;width:40px;height:40px;padding:0!important;justify-content:center;font-size:11px!important;font-weight:700;letter-spacing:.02em;opacity:.92}.haven-butler-widget{bottom:calc(120px + env(safe-area-inset-bottom));max-height:calc(100dvh - 140px)}}
