/* MARKETPRO_NAS_LIVE_SAFE_DOCK_V2R10R12R1 */

/*
  Reserve real layout space at the bottom so NAS Live never sits
  on top of application buttons, text, cards, or forms.
*/
html{
  --mp-nas-safe-dock-height:88px;
}

body{
  padding-bottom:var(--mp-nas-safe-dock-height) !important;
  box-sizing:border-box !important;
}

#root{
  box-sizing:border-box !important;
}

.mp-pro-main{
  padding-bottom:calc(50px + var(--mp-nas-safe-dock-height)) !important;
}

#mp-nas-live-safe-dock-v2r10r12r1{
  position:fixed;
  left:18px;
  bottom:14px;
  z-index:2147482300;
  min-height:56px;
  max-width:min(360px,calc(100vw - 170px));
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:8px 10px;
  box-sizing:border-box;
  border:1px solid rgba(148,163,184,.30);
  border-radius:16px;
  background:rgba(15,23,42,.96);
  box-shadow:0 12px 30px rgba(15,23,42,.24);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  pointer-events:auto;
}

#mp-nas-live-safe-dock-v2r10r12r1::before{
  content:"NAS";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:30px;
  margin-right:8px;
  padding:0 8px;
  border-radius:10px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
}

/* Original NAS Live element keeps its click handlers, but no longer floats */
#mp-nas-live-safe-dock-v2r10r12r1 [data-mp-floating-role="nas-live"]{
  position:static !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  margin:0 !important;
  transform:none !important;
  max-width:100% !important;
  z-index:auto !important;
}

/* IA remains in its own separate zone on the right */
[data-mp-floating-role="ai-copilot"]{
  right:18px !important;
  left:auto !important;
  bottom:18px !important;
  z-index:2147482400 !important;
}

/* Panel Pro remains above the IA */
.mp-pro-launcher{
  right:18px !important;
  left:auto !important;
  bottom:88px !important;
  z-index:2147482350 !important;
}

@media(max-width:780px){
  html{
    --mp-nas-safe-dock-height:96px;
  }

  #mp-nas-live-safe-dock-v2r10r12r1{
    left:10px;
    bottom:10px;
    min-height:54px;
    max-width:calc(100vw - 150px);
    padding:7px 8px;
    border-radius:14px;
  }

  #mp-nas-live-safe-dock-v2r10r12r1::before{
    min-width:32px;
    height:28px;
    margin-right:6px;
    padding:0 6px;
  }

  [data-mp-floating-role="ai-copilot"]{
    right:10px !important;
    bottom:10px !important;
  }

  .mp-pro-launcher{
    right:10px !important;
    bottom:78px !important;
  }
}

@media(max-width:420px){
  html{
    --mp-nas-safe-dock-height:104px;
  }

  #mp-nas-live-safe-dock-v2r10r12r1{
    max-width:calc(100vw - 132px);
    font-size:12px;
  }
}
