#sa-launch {
 position:fixed;right:18px;bottom:max(24px,env(safe-area-inset-bottom));z-index:1500;
 display:grid;place-items:center;width:56px;height:54px;padding:0;box-sizing:border-box;
 background:transparent;border:0;border-radius:18px;touch-action:none;cursor:grab;user-select:none;
}
#sa-launch[hidden],.sample-assistant [hidden]{display:none}
#sa-launch:active{cursor:grabbing}
#sa-launch:focus-visible{outline:2px solid #276085;outline-offset:3px}
.sa-bot{
 position:relative;width:49px;height:40px;display:grid;place-items:center;box-sizing:border-box;
 transform:rotate(-6deg);border:1px solid #a6b6bf;border-radius:17px 18px 16px 8px;
 background:linear-gradient(150deg,#fff 7%,#e6edf0 40%,#afc2cb 77%,#ebf1f3);
 box-shadow:inset 0 1px 1px #fff,inset 0 -2px 2px #94a9b5,0 4px 8px #122d4033;
}
.sa-bot i{
 position:relative;width:35px;height:22px;display:flex;align-items:center;justify-content:center;gap:6px;
 border-radius:10px 11px 10px 6px;background:linear-gradient(150deg,#345e74,#112e40 75%);
 box-shadow:0 1px 0 #fff,inset 0 1px 2px #10202e;
}
.sa-bot i::before,.sa-bot i::after{
 content:'';width:5px;height:7px;box-sizing:border-box;border-radius:5px;background:#e8f8fe;
}
.sa-bot i::after{height:5px;background:transparent;border-top:2px solid #e8f8fe}
@media (min-width:768px){
 #sa-launch{
  width:46px;height:44px;grid-template-columns:minmax(0,1fr);
  right:max(5px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
 }
 #sa-launch .sa-bot{
  justify-self:center;transform:scale(.68);opacity:.74;
  box-shadow:inset 0 1px 1px #fff,0 1px 2px #122d4020;
 }
 #sa-launch:is(:hover,:focus-visible,:active) .sa-bot{opacity:1}
}
@media (max-width:767px){
 #sa-launch{
  width:44px;height:44px;right:max(2px,env(safe-area-inset-right));
  bottom:calc(10px + env(safe-area-inset-bottom));border-radius:12px;
 }
 .sa-bot{
  transform:scale(.64);transform-origin:center;justify-self:center;opacity:.82;
  box-shadow:inset 0 1px 1px #fff,0 1px 3px #122d4026;
 }
 #sa-launch:is(:active,:focus-visible) .sa-bot{opacity:1}
}
dialog.sample-assistant{
 position:fixed;inset:auto;margin:0;padding:0;width:min(365px,calc(100vw - 20px));box-sizing:border-box;
 max-height:min(570px,calc(100dvh - 24px));overflow:auto;overscroll-behavior:contain;color:#203943;
 background:#fbfcfa;border:1px solid #bdcbce;border-radius:14px;box-shadow:0 10px 44px #092d4240;
 font:15px/1.5 system-ui,sans-serif;
}
.sample-assistant::backdrop{background:#10283218}
.sa-header{position:sticky;top:0;background:#21495b;color:white;display:flex;align-items:center;justify-content:space-between;padding:9px 12px 9px 18px;z-index:1}
.sa-header h2{font:600 18px/1.3 system-ui,sans-serif;color:inherit;margin:0}
.sa-close{font:24px/1 system-ui;background:transparent;color:white;border:0;width:40px;height:40px;cursor:pointer}
.sa-content{padding:14px;display:grid;gap:12px}
.sa-thread{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:94px;max-height:min(285px,40dvh);overflow:auto}
.sa-thread p{padding:10px 13px;max-width:90%;margin:0;border-radius:12px;overflow-wrap:anywhere}
.sa-in{background:#eaf0f1}
.sa-out{align-self:flex-end;background:#234959;color:white}
.sa-out img{display:block;width:100px;max-height:105px;object-fit:contain}
.sa-composer{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #b5c4cb;background:white;border-radius:12px}
.sa-composer:focus-within{outline:1px solid #476f82}
.sa-composer button{display:grid;place-items:center;flex:none;width:38px;height:38px;border:0;cursor:pointer;border-radius:9px}
.sa-composer .sa-attach{background:transparent;color:#345669}
.sa-composer button[type=submit]{background:#234959;color:white;font:22px/1 system-ui}
.sa-composer input.sa-message{flex:1;min-width:0;box-sizing:border-box;border:0;background:white;color:#203943;padding:6px;font:16px/1.4 system-ui;outline:none}
.sa-status{font-size:14px;margin:0}
.sa-status:empty{display:none}
