/* Keep the launcher in the activity toolbar or at the right edge of the page. */
.support-launcher{
  display:grid;
  grid-template-columns:minmax(0,auto) auto;
  justify-items:end;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:calc(100% - 32px);
  margin:16px max(16px,env(safe-area-inset-right)) 16px auto;
  color:#443252;
  font:15px/1.35 "Segoe UI",Arial,sans-serif;
}
.support-launcher>.spl-coach{grid-column:1/-1}
.support-launcher>.spl-open{grid-column:1;grid-row:2}
.support-launcher>.spl-hide{grid-column:2;grid-row:2}
.support-launcher [hidden],.spl-coach[hidden]{display:none!important}
.support-launcher button,.spl-coach button{font:inherit;cursor:pointer;touch-action:manipulation}
.support-launcher button:focus-visible,.spl-coach button:focus-visible{outline:3px solid #7556a6;outline-offset:4px}
.spl-coach{width:310px;max-width:calc(100vw - 32px);max-height:48vh;overflow-y:auto;box-sizing:border-box;margin-bottom:14px;padding:17px;border:1px solid #d9c8e6;border-radius:20px 20px 8px 20px;background:#fffdf8;box-shadow:0 7px 26px #40304823;overflow-wrap:anywhere}
.spl-coach strong{display:block;font-size:17px;line-height:1.4}.spl-coach p{margin:8px 0 14px;font-size:15px;line-height:1.55}
.spl-coach-actions{display:flex;flex-wrap:wrap;gap:8px}.spl-coach-actions button{min-height:44px;padding:9px 12px;border:1px solid #d9c8e6;border-radius:12px;background:#eee5f8;color:#443252}.spl-coach-actions button:last-child{background:#fffdf8}.spl-coach-actions button:hover{background:#e5d8f3}
/* Native courses place the same message in normal flow, outside the fixed launcher. */
#language-lab-host .spl-coach[data-inline="true"]{position:static;inset:auto;z-index:auto;width:100%;max-width:100%;max-height:none;overflow:visible;margin:0 0 18px;flex:0 0 100%;font:15px/1.5 "Segoe UI",Arial,sans-serif;color:#443252}
#language-lab-host .ll-start:has(>.spl-coach[data-inline="true"]){flex-wrap:wrap}
#language-lab-host .ll-start>.spl-coach[data-inline="true"]{margin:0}
html[data-study-theme="calm"] #language-lab-host .spl-coach[data-inline="true"]{background:#fffdf8;box-shadow:none}
.spl-open{
  display:flex;
  box-sizing:border-box;
  align-items:center;
  gap:9px;
  min-height:48px;
  max-width:100%;
  padding:5px 14px 5px 6px;
  border:1px solid #d9c8e6;
  border-radius:16px;
  background:#fffdf8;
  color:#443252;
  box-shadow:0 3px 12px #40304816;
  text-align:left;
}
.spl-open:hover{background:#f4eefb}
.spl-portrait{display:block;flex:0 0 38px}
.spl-gio{display:block;width:38px;height:38px}
.academy-tools-dock .atd-tools .support-launcher .spl-gio{height:auto;aspect-ratio:1}
.spl-label{display:block;min-width:0;overflow-wrap:anywhere}
.spl-label strong{display:block;font-size:16px;font-weight:750}
.spl-label>span{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:#655471}
.spl-hide{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #ded3e6;
  border-radius:12px;
  background:#fffdf8;
  color:#755c86;
  font-size:23px!important;
}
.support-launcher[data-compact="true"] .spl-open{padding:12px 18px;border-radius:16px}.support-launcher[data-compact="true"] .spl-label strong{font-size:15px}
.spl-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.support-launcher[data-reduced-motion="true"] *,
html:is([data-study-motion="reduced"],[data-support-motion="reduced"]) .support-launcher *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.support-launcher *{animation:none!important;transition:none!important}}
html:is([data-study-theme="calm"],[data-support-calm="true"],[data-study-mode="focus"]) .support-launcher .spl-portrait{display:none}
html:is([data-study-theme="calm"],[data-support-calm="true"],[data-study-mode="focus"]) .support-launcher .spl-open{box-shadow:none}
@media(forced-colors:active){
  .support-launcher :is(.spl-open,.spl-hide),.spl-coach,.spl-coach button{color:ButtonText;background:ButtonFace;border-color:ButtonText;box-shadow:none}
  .support-launcher .spl-portrait{display:none}
  .support-launcher .spl-label>span{color:ButtonText}
  .support-launcher button:focus-visible,.spl-coach button:focus-visible{outline-color:Highlight}
}
@media print{.support-launcher,.spl-coach{display:none!important}}
