#dco-nexus-launcher {
 position:fixed;right:16px;bottom:16px;z-index:2147483640;pointer-events:auto;
 padding:13px 18px;border:1px solid #38c6e6;border-radius:30px;
 background:#071827;color:#e9faff;font-weight:700;
 box-shadow:0 5px 25px #0008;cursor:pointer
}
#dco-nexus-launcher[hidden],#dco-nexus-panel[hidden] {
 display:none!important
}
#dco-nexus-panel {
 position:fixed;z-index:2147483640;right:14px;bottom:75px;pointer-events:auto;
 width:min(430px,calc(100vw - 24px));
 height:min(650px,calc(100dvh - 95px));
 min-height:360px;display:flex;flex-direction:column;
 overflow:hidden;border:1px solid #27718a;border-radius:14px;
 background:#071522;color:#e3f2fa;
 box-shadow:0 15px 55px #000b;font-family:system-ui,sans-serif
}
#dco-nexus-panel header {
 display:flex;justify-content:space-between;align-items:center;
 padding:15px;background:#0c2334;border-bottom:1px solid #25445a
}
#dco-nexus-panel header strong {display:block;font-size:14px;letter-spacing:1px}
#dco-nexus-panel header small {display:block;margin-top:4px;color:#7eb4c8;font-size:9px}
#dco-nexus-panel button {
 cursor:pointer;border:1px solid #31536a;border-radius:6px;
 padding:8px 12px;background:#102b3e;color:#dff7ff
}
#dco-nexus-panel .nexus-status {
 padding:10px 14px;color:#62d8b1;font-size:10px
}
#dco-nexus-panel nav {display:flex;gap:8px;padding:0 12px 10px}
#dco-nexus-panel nav button {flex:1}
#dco-nexus-panel nav button.active {
 background:#07516b;border-color:#3ac5e3
}
#nexus-messages {
 flex:1;min-height:0;overflow:auto;padding:12px
}
.nexus-message {
 margin-bottom:12px;padding:10px;border:1px solid #254256;
 border-radius:8px;background:#0d2030
}
.nexus-message.user {margin-left:20px;background:#102c40}
.nexus-message strong {
 display:block;margin-bottom:6px;color:#50cce7;font-size:10px
}
.nexus-message p {
 margin:0;white-space:pre-wrap;overflow-wrap:anywhere;
 font-size:12px;line-height:1.6
}
.nexus-compose {padding:12px;border-top:1px solid #254256;background:#091a28}
.nexus-compose label {display:block;margin-bottom:7px;color:#83b6c9;font-size:9px}
.nexus-compose textarea {
 box-sizing:border-box;width:100%;resize:vertical;padding:10px;
 border:1px solid #31536a;border-radius:7px;background:#06111b;
 color:white;font:12px/1.5 system-ui
}
.nexus-actions {display:flex;justify-content:space-between;margin-top:9px}
#nexus-send {background:#087e9e!important;border-color:#38c6e6!important}
#nexus-send:disabled {opacity:.5}
#dco-nexus-panel footer {
 padding:8px;text-align:center;background:#06111a;
 color:#7896a9;font-size:8px
}
@media(max-width:600px) {
 #dco-nexus-panel {right:8px;bottom:65px;width:calc(100vw - 16px)}
 #dco-nexus-launcher {right:10px;bottom:10px}
}

/* DCO NEXUS AI - 3D ROBOT LAUNCHER */
#dco-nexus-launcher {
  position: fixed !important;
  right: 22px !important;
  bottom: 90px !important;
  width: 105px !important;
  height: 115px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px #087cff);
  cursor: pointer !important;
  z-index: 2147483640 !important;
  transition: transform .2s ease, filter .2s ease !important;
}

#dco-nexus-launcher:hover {
  transform: translateY(-5px) scale(1.06);
  filter: drop-shadow(0 0 15px #00c8ff);
}

#dco-nexus-launcher:active {
  transform: scale(.95);
}

#dco-nexus-launcher[hidden] {
  display: none !important;
}

/* DCO NEXUS - CSS ROBOT MASCOT */
#dco-nexus-launcher {
  position: fixed !important;
  right: 20px !important;
  bottom: 90px !important;
  width: 100px !important;
  height: 125px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #65eaff !important;
  box-shadow: none !important;
  cursor: pointer !important;
  z-index: 2147483640 !important;
  animation: dcoRobotFloat 3s ease-in-out infinite !important;
}

#dco-nexus-launcher .dco-robot {
  display: block;
  width: 100px;
  height: 112px;
  overflow: visible;
  filter: drop-shadow(0 0 8px #078dff);
}

#dco-nexus-launcher .dco-robot-label {
  display: block;
  margin-top: -3px;
  padding: 3px 9px;
  border: 1px solid #168fc5;
  border-radius: 12px;
  background: #061a2c;
  color: #64eaff;
  font: 800 9px system-ui, sans-serif;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px #00cfff;
}

#dco-nexus-launcher:hover {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 0 12px #00bfff);
}

#dco-nexus-launcher[hidden] {
  display: none !important;
}

@keyframes dcoRobotFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@media (max-width: 600px) {
  #dco-nexus-launcher {
    right: 10px !important;
    bottom: 85px !important;
  }
}

/* FINAL NEXUS ROBOT SIZE AND POSITION */
#dco-nexus-launcher {
  width: 65px !important;
  height: 78px !important;
  right: 15px !important;
  bottom: 155px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#dco-nexus-launcher .dco-robot {
  width: 65px !important;
  height: 72px !important;
}

#dco-nexus-launcher .dco-robot-label {
  display: none !important;
}

@media (max-width: 600px) {
  #dco-nexus-launcher {
    right: 10px !important;
    bottom: 145px !important;
    width: 60px !important;
    height: 72px !important;
  }

  #dco-nexus-launcher .dco-robot {
    width: 60px !important;
    height: 68px !important;
  }
}


/* DCO NEXUS — ROBOT DRAWING ONLY */
#dco-nexus-launcher {
  position: fixed !important;
  right: 14px !important;
  bottom: 180px !important;
  width: 55px !important;
  height: 65px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#dco-nexus-launcher .dco-robot {
  display: block !important;
  width: 55px !important;
  height: 65px !important;
  background: transparent !important;
  filter: drop-shadow(0 0 5px #16bfff);
}

#dco-nexus-launcher .dco-robot-label {
  display: none !important;
}

@media(max-width:600px) {
  #dco-nexus-launcher {
    right: 10px !important;
    bottom: 165px !important;
    width: 48px !important;
    height: 58px !important;
  }

  #dco-nexus-launcher .dco-robot {
    width: 48px !important;
    height: 58px !important;
  }
}
