#shineni-chat-launcher {
  position:fixed; z-index:8; inset:auto max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto;
  display:flex; align-items:center; gap:9px; padding:4px 14px 4px 4px;
  border:1px solid var(--edge); border-radius:999px; background:var(--paper); color:var(--ink);
  font:inherit; font-size:14px; font-weight:700; line-height:1.3; cursor:pointer;
  box-shadow:0 3px 16px #0003; touch-action:manipulation;
}
#shineni-chat-launcher:focus-visible { outline:3px solid var(--link); outline-offset:3px; }
#shineni-chat-launcher:disabled { cursor:progress; }
.chat-launcher-face {
  position:relative; display:grid; place-items:center; flex:none; width:44px; height:44px;
  overflow:hidden; border-radius:50%; background:var(--soft); color:var(--ink);
}
.chat-launcher-face img {
  position:absolute; width:245%; height:auto; max-width:none; top:-26%; left:-103%; pointer-events:none;
}
.chat-launcher-bubble { display:none; }
.chat-launcher-notice {
  position:fixed; z-index:9; right:16px; bottom:90px; max-width:calc(100% - 32px);
  margin:0; padding:10px 14px; border:1px solid var(--edge); border-radius:12px;
  background:var(--paper); color:var(--ink); box-shadow:0 2px 12px #0002;
}
html:has(dialog[open]) #shineni-chat-launcher { visibility:hidden; }
@media(max-width:700px) {
  #shineni-chat-launcher {
    right:max(12px,env(safe-area-inset-right)); bottom:calc(68px + env(safe-area-inset-bottom));
    padding:2px; min-width:48px; min-height:48px;
  }
  .chat-launcher-label { display:none; }
  .chat-launcher-bubble {
    position:absolute; right:-1px; bottom:0; display:grid; place-content:center;
    width:21px; height:16px; padding-bottom:4px; border:1px solid var(--paper);
    border-radius:9px 9px 9px 2px; background:var(--ink); color:var(--paper);
    font-size:16px; font-weight:800; letter-spacing:0; line-height:1;
  }
  .chat-launcher-notice { bottom:calc(130px + env(safe-area-inset-bottom)); }
}
