/* One viewport split. Content documents have no sidebar offset. */
html:has(body.site-shell),body.site-shell {height:100%;overflow:hidden;}
.site-shell #site-content {position:fixed;inset:0;width:100%;height:100%;border:0;display:block;background:#060606;}
@media(min-width:1100px){.site-shell #site-content{left:var(--uqiweb-panel-width,24%);width:calc(100% - var(--uqiweb-panel-width,24%));}}
 .uqiweb-panel-controls,.uqiweb-rail { display:none; }
/* UQIweb homepage-only desktop dock. Other pages and smaller viewports retain existing modal. */
@media (min-width:1100px) {
  body.site-shell.uqiweb-desktop { --uqiweb-panel-width:24%; }
  body.site-shell.uqiweb-desktop[data-uqiweb-state="compact"] { --uqiweb-panel-width:8%; }
  body.site-shell.uqiweb-desktop[data-uqiweb-state="standard"] { --uqiweb-panel-width:24%; }
  body.site-shell.uqiweb-desktop[data-uqiweb-state="expanded"] { --uqiweb-panel-width:35%; }
  body.site-shell.uqiweb-desktop .uqi-modal,
  body.site-shell.uqiweb-desktop .uqi-modal.open {
    display:block !important; position:fixed !important; inset:0 auto 0 0 !important;
    width:var(--uqiweb-panel-width) !important; height:100vh !important;
    z-index:2100 !important; padding:0 !important; opacity:1 !important;
    visibility:visible !important; pointer-events:auto !important;
    transform:none !important; background:#111317 !important;
    
  }
  body.site-shell.uqiweb-desktop .uqi-modal-backdrop { display:none !important; }
  body.site-shell.uqiweb-desktop .uqi-modal-dialog,
  body.site-shell.uqiweb-desktop .uqi-modal.open .uqi-modal-dialog {
    position:relative !important; inset:auto !important; width:100% !important;
    max-width:none !important; height:100% !important; max-height:none !important;
    margin:0 !important; transform:none !important; border-radius:0 !important;
    box-shadow: 9px 0 34px #0009 !important; border:0 !important;
    border-right:1px solid rgba(228,130,64,.28) !important;
    display:flex !important; flex-direction:column !important;
  }
  body.site-shell.uqiweb-desktop .uqi-modal-head { flex:0 0 auto; min-width:0; padding:18px 14px !important; }
  body.site-shell.uqiweb-desktop .uqi-modal-body { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
  body.site-shell.uqiweb-desktop .uqi-modal-conversation { flex:1 1 auto; min-height:0; overflow-y:auto; }
  body.site-shell.uqiweb-desktop .uqi-modal-compose { flex:0 0 auto; }
  body.site-shell.uqiweb-desktop .uqi-modal-system,
  body.site-shell.uqiweb-desktop .uqi-modal-status,
  body.site-shell.uqiweb-desktop .uqi-modal-contact { display:none !important; }
  body.site-shell.uqiweb-desktop .uqi-modal-close { display:none !important; }
  body.site-shell.uqiweb-desktop .uqi-modal-actions { flex-shrink:0; }
  body.site-shell.uqiweb-desktop .uqi-floating-link { display:none !important; }
  body.site-shell.uqiweb-desktop .site-nav { max-width:100%; }
  body.site-shell.uqiweb-desktop .nav-inner { max-width:100%; }
  body.site-shell.uqiweb-desktop .nav-logo-img { max-width:210px; width:auto; height:auto; object-fit:contain; }
  body.site-shell.uqiweb-desktop .hero-content { max-width:100%; }
  body.site-shell.uqiweb-desktop .uqiweb-panel-controls { display:flex; gap:3px; }
  body.site-shell.uqiweb-desktop .uqiweb-panel-controls button { cursor:pointer; border:1px solid #ffffff33; background:transparent; color:#ddd; border-radius:5px; min-width:28px; min-height:30px; font:inherit; }
  body.site-shell.uqiweb-desktop .uqiweb-panel-controls button[aria-pressed="true"] { color:#e48240; border-color:#e48240; }
  body.site-shell.uqiweb-desktop .uqiweb-rail { display:none; }
  body.site-shell.uqiweb-desktop[data-uqiweb-state="compact"] .uqi-modal-head,
  body.site-shell.uqiweb-desktop[data-uqiweb-state="compact"] .uqi-modal-body { display:none !important; }
  body.site-shell.uqiweb-desktop[data-uqiweb-state="compact"] .uqiweb-rail { display:flex; align-items:center; justify-content:center; height:100%; }
  body.site-shell.uqiweb-desktop .uqiweb-rail-open { background:transparent; color:#e48240; border:0; display:flex; flex-direction:column; align-items:center; gap:10px; cursor:pointer; font-weight:700; letter-spacing:.1em; }
  body.site-shell.uqiweb-desktop .uqiweb-rail-open span:first-child { font-size:30px; }
  body.site-shell.uqiweb-desktop .uqi-modal.open { animation:none !important; }
}
@media (prefers-reduced-motion:reduce) { body.site-shell.uqiweb-desktop, body.site-shell.uqiweb-desktop .uqi-modal { transition:none !important; } }

/* Step 2.1: contextual website actions inside UQI answers. */
body.site-shell.uqiweb-desktop .uqiweb-response-action {
  display:inline-flex; align-items:center; justify-content:space-between;
  max-width:100%; min-height:36px; padding:8px 12px; margin:5px 5px 5px 0;
  border:1px solid rgba(215,121,59,.58); border-radius:5px;
  background:rgba(215,121,59,.1); color:#eeac7c;
  font:inherit; font-size:12px; font-weight:650; line-height:1.35;
  text-align:left; cursor:pointer; overflow-wrap:anywhere;
}
body.site-shell.uqiweb-desktop .uqiweb-response-action::after {
  content:'→'; margin-left:14px; font-size:15px; line-height:1;
}
body.site-shell.uqiweb-desktop .uqiweb-response-action:hover,
body.site-shell.uqiweb-desktop .uqiweb-response-action:focus-visible {
  background:rgba(215,121,59,.2); border-color:#d7793b; color:#fff;
}

.site-shell .uqi-modal-head{flex-wrap:wrap;gap:10px}.site-shell .uqi-modal-subtitle{font-size:10px}.site-shell .uqiweb-panel-controls button{font-size:14px}
@media(min-width:1100px){
 .site-shell .uqi-start-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .site-shell .uqi-empty-state{padding:24px 18px}
 .site-shell .uqi-start-option{padding:12px;min-width:0}
 .site-shell .uqi-modal-input{overflow-y:auto}
}
.uqi-contact-panel{display:grid;gap:12px;padding:20px;border:1px solid #e4824080;margin:12px 0;color:#eee}
.uqi-contact-panel label{display:grid;gap:4px;font-size:12px}.uqi-contact-panel input,.uqi-contact-panel textarea{width:100%;padding:8px;color:#fff;background:#151a1f;border:1px solid #ffffff45}
.uqi-contact-panel label:has([type=checkbox]){display:block}.uqi-contact-panel button,.uqi-quick-replies button{padding:8px 12px;background:#171d22;color:#eee;border:1px solid #e48240;cursor:pointer}
.uqi-quick-replies{display:flex;flex-wrap:wrap;gap:6px;padding:12px}.uqi-handoff-trigger{background:none;border:0;color:#e48240;font:inherit;font-size:11px;cursor:pointer;margin:0 0 8px}
