/* Isolated styles: only the ServerCone AI launcher and panel are affected. */
:root { --sc-ai-top: 138px; --sc-ai-edge: max(22px, env(safe-area-inset-right, 0px)); }
.sc-ai-launcher {
  position:fixed; top:var(--sc-ai-top); right:var(--sc-ai-edge); bottom:auto;
  display:grid; place-items:center; width:58px; height:58px; padding:8px;
  border:2px solid rgba(255,255,255,.94); border-radius:20px; color:#fff;
  background:linear-gradient(140deg,#8360ff 0%,#6344dc 52%,#268ada 100%);
  box-shadow:0 8px 26px rgba(86,55,185,.26),0 0 0 5px rgba(116,83,232,.08);
  z-index:90; cursor:pointer; isolation:isolate;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.sc-ai-launcher>svg{width:38px;height:38px;display:block;pointer-events:none}
.sc-ai-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(86,55,185,.35),0 0 0 5px rgba(116,83,232,.12)}
.sc-ai-launcher:focus-visible,.sc-ai-dialog button:focus-visible,.sc-ai-dialog a:focus-visible {outline:3px solid #46bde8;outline-offset:4px}
.sc-ai-badge{position:absolute;bottom:-5px;right:-5px;background:#fff;color:#5234b8;font:800 10px/18px system-ui,sans-serif;letter-spacing:.25px;min-width:24px;height:22px;border:2px solid #eee8ff;border-radius:8px;box-shadow:0 2px 8px #40345b18;text-align:center;pointer-events:none}
.sc-ai-tooltip{position:absolute;right:72px;top:50%;transform:translate(5px,-50%);white-space:nowrap;padding:9px 13px;border:1px solid #ded8ee;border-radius:12px;background:#fff;color:#302449;font:600 12px/1.4 system-ui,sans-serif;box-shadow:0 6px 22px #25203414;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,transform .18s}
.sc-ai-launcher:hover .sc-ai-tooltip,.sc-ai-launcher:focus-visible .sc-ai-tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}
body.menu-open .sc-ai-launcher{opacity:0;visibility:hidden;pointer-events:none}
.sc-ai-dialog:not([open]){display:none}
.sc-ai-dialog[open]{display:flex;flex-direction:column}
.sc-ai-dialog{
  position:fixed;top:var(--sc-ai-panel-top,var(--sc-ai-top));right:var(--sc-ai-edge);left:auto;bottom:auto;margin:0;
  width:min(438px,calc(100vw - 32px));height:min(696px,calc(100vh - var(--sc-ai-panel-top,var(--sc-ai-top)) - 18px));
  height:min(696px,calc(100dvh - var(--sc-ai-panel-top,var(--sc-ai-top)) - 18px));
  max-width:calc(100vw - 32px);max-height:calc(100dvh - 24px);padding:0;
  border:1px solid #dad6ed;border-radius:22px;background:#f9f9fe;color:#24213d;
  box-shadow:0 28px 100px #15132a38,0 6px 20px #19163312;overflow:hidden;
  font-family:inherit;
}
.sc-ai-dialog::backdrop{background:rgba(22,19,43,.22);backdrop-filter:blur(2px)}
.sc-ai-heading{display:flex;align-items:center;gap:12px;padding:17px 18px;flex:none;border:0;border-bottom:1px solid #e4e1ef;background:linear-gradient(110deg,#f3eeff,#f4f9ff);position:relative}
.sc-ai-heading-icon{width:43px;height:43px;flex:none;display:grid;place-items:center;background:linear-gradient(145deg,#8060ed,#4d75d8);border-radius:14px;color:#fff;box-shadow:0 4px 10px #6950ba20}
.sc-ai-heading-icon svg{width:31px;height:31px}
.sc-ai-heading h2{margin:0;color:#282040;font:750 16px/1.35 system-ui,sans-serif;letter-spacing:-.2px}
.sc-ai-heading p{margin:3px 0 0;color:#706581;font:400 11px/1.5 system-ui,sans-serif}
.sc-ai-close{display:grid;place-items:center;flex:none;width:36px;height:36px;margin-left:auto;padding:8px;background:#fff;border:1px solid #e4deef;border-radius:11px;color:#625773;cursor:pointer}
.sc-ai-close svg{width:19px;height:19px}.sc-ai-close:hover{background:#ece5fa;color:#39285b}
.sc-ai-content{position:relative;display:flex;flex:1;min-height:0;background:#f9f9fe;overflow:hidden}
.sc-ai-content iframe{width:100%;height:100%;flex:1;min-width:0;border:0;display:block;background:#f9f9fe}
.sc-ai-content iframe[hidden]{display:none}
.sc-ai-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;color:#30254b;font:400 13px/1.7 system-ui,sans-serif}
.sc-ai-loading[hidden]{display:none}
.sc-ai-loading strong{font-size:15px;margin:18px 0 4px}.sc-ai-loading p{font-size:12px;margin:0;color:#746a81}
.sc-ai-spinner{width:30px;height:30px;border:3px solid #e6dcfa;border-top-color:#7753d7;border-radius:50%;animation:sc-ai-spin .85s linear infinite}
.sc-ai-footer{display:flex;flex-direction:column;align-items:center;gap:5px;flex:none;padding:11px 16px 12px;border-top:1px solid #e4e1ef;background:#fff;font:400 10px/1.5 system-ui,sans-serif;color:#80758b;text-align:center}
.sc-ai-footer a{font-size:11px;font-weight:650;color:#6941b5;text-decoration:none}.sc-ai-footer a:hover{text-decoration:underline}
[data-theme=dark] .sc-ai-launcher{border-color:#d8caff66;box-shadow:0 8px 30px #0005,0 0 0 5px #aa83ff10}
[data-theme=dark] .sc-ai-tooltip{background:#24223c;color:#fff;border-color:#44405f}
[data-theme=dark] .sc-ai-dialog{border-color:#4a4264;background:#191729}
[data-theme=dark] .sc-ai-heading{background:linear-gradient(110deg,#28213f,#1b2941);border-color:#3f3658}
[data-theme=dark] .sc-ai-heading h2{color:#fff}[data-theme=dark] .sc-ai-heading p{color:#b8accd}
[data-theme=dark] .sc-ai-close{background:#332c49;color:#e7ddfa;border-color:#4e4363}
[data-theme=dark] .sc-ai-footer{background:#221d33;border-color:#3f3658;color:#b9afca}[data-theme=dark] .sc-ai-footer a{color:#c5a9ff}
[data-theme=dark] .sc-ai-content,[data-theme=dark] .sc-ai-content iframe{background:#191729}[data-theme=dark] .sc-ai-loading{color:#f0e8ff}[data-theme=dark] .sc-ai-loading p{color:#c0b4d2}
@keyframes sc-ai-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){
  :root{--sc-ai-edge:max(15px,env(safe-area-inset-right,0px))}
  .sc-ai-launcher{width:50px;height:50px;padding:7px;border-radius:17px}
  .sc-ai-launcher>svg{width:33px;height:33px}.sc-ai-badge{min-width:23px;height:21px;line-height:17px;font-size:9px}
  .sc-ai-tooltip{right:63px}
  .sc-ai-dialog{top:max(12px,env(safe-area-inset-top,0px));right:12px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100vh - 24px);height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)));max-height:calc(100dvh - 24px);border-radius:18px}
  .sc-ai-heading{padding:13px 14px;gap:10px}.sc-ai-heading h2{font-size:15px}.sc-ai-heading p{font-size:10px}.sc-ai-footer{padding:9px 12px}
}
@media(prefers-reduced-motion:reduce){.sc-ai-launcher,.sc-ai-tooltip{transition:none}.sc-ai-spinner{animation:none;border-top-color:#7753d7}}
@media print{.sc-ai-launcher,.sc-ai-dialog{display:none!important}}
