.olu-chat-launcher,.olu-chat-panel {
  --chat-edge: max(14px, env(safe-area-inset-right));
  --chat-bottom: max(16px, env(safe-area-inset-bottom));
  position: fixed;
  right: var(--chat-edge);
  left: auto;
  top: auto;
}
.olu-chat-launcher {
  bottom: var(--chat-bottom);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid #b59bcf;
  border-radius: 50%;
  background: #302447;
  color: #fff0d3;
  box-shadow: 0 4px 18px #08051585;
  cursor: pointer;
}
.olu-chat-launcher [data-chat-unread] {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #ffe7a0;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px #ffc76d;
}
.olu-chat-launcher[hidden],.olu-chat-launcher [hidden] { display: none !important; }
.olu-chat-launcher.olu-chat-glow { box-shadow: 0 0 22px 4px #f1b865a8; }
.olu-chat-panel {
  bottom: calc(var(--chat-bottom) + var(--chat-keyboard, 0px));
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: min(410px, calc(100vw - var(--chat-edge) - 12px));
  max-width: none;
  height: min(560px, calc(var(--chat-viewport-height, 100dvh) - var(--chat-bottom) - 14px));
  max-height: none;
  overflow: hidden;
  border: 1px solid #9277aa;
  border-radius: 19px;
  background: #1b2039;
  color: #fff6ea;
  box-shadow: 0 12px 44px #070614a8;
  font: 15px system-ui,sans-serif;
}
.olu-chat-panel[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.olu-chat-panel::backdrop { background: #090b1a55; }
.olu-chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: #302447; }
.olu-chat-toolbar a,.olu-chat-toolbar button { color: #fff0fa; font: inherit; }
.olu-chat-toolbar a { text-decoration: underline; }
.olu-chat-toolbar button { background: #48345f; border: 1px solid #9b81b1; border-radius: 9px; min-height: 40px; padding: 0 11px; cursor: pointer; }
.olu-chat-panel iframe { display: block; width: 100%; height: 100%; border: 0; }
.olu-chat-launcher:focus-visible,.olu-chat-toolbar :focus-visible { outline: 2px solid #ffe7a0; outline-offset: 3px; }

/* V119: launcher remains above the bottom dock on every room; mini-panel stays above both. */
.olu-chat-launcher:not([hidden]){z-index:125;}
.olu-chat-panel[open]{z-index:140;}
