.nexora-canvas-active{background:#181818;color:#e9e9ec;overflow:hidden;color-scheme:dark}
.nexora-canvas-active .app-shell{grid-template-columns:var(--rail-width,68px) minmax(0,1fr);height:100dvh;min-height:0}
.nexora-canvas-active .sidebar{height:100dvh;padding:20px 10px;background:#181818;border-right:1px solid #ffffff12;backdrop-filter:none}
.nexora-canvas-active .sidebar-head{padding:2px 0 26px;justify-content:center}
.nexora-canvas-active .brand>span:last-child,.nexora-canvas-active .workspace-switcher,.nexora-canvas-active .usage-card,.nexora-canvas-active .back-site,.nexora-canvas-active .nav-item em{display:none}
.nexora-canvas-active .side-nav{gap:6px;align-items:center}
.nexora-canvas-active .nav-item{display:flex;justify-content:center;padding:0;width:46px;height:44px;min-height:44px;border-radius:12px;color:#a29da8}
.nexora-canvas-active .nav-item span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.nexora-canvas-active .nav-item .icon{width:19px;height:19px}
.nexora-canvas-active .nav-item:hover{background:#ffffff0d;color:#f1eef5}
.nexora-canvas-active .nav-item.active{background:#302939;color:#e4cdf8;box-shadow:inset 0 0 0 1px #cbb4de40}
.nexora-canvas-active .nav-separator{background:#ffffff12;width:30px;margin:10px auto}
.nexora-canvas-active .main-shell{display:flex;flex-direction:column;height:100dvh}
.nexora-canvas-active .topbar{display:none}
.nexora-canvas-active .content{padding:0;margin:0;max-width:none;flex:1;min-height:0}
.nexora-canvas-active .page,.nexora-canvas-page{height:100%;animation:nx-canvas-in .18s ease-out}
@keyframes nx-canvas-in{from{opacity:.86}to{opacity:1}}
.nexora-canvas-page{display:flex;flex-direction:column;min-height:0}
.nexora-canvas-heading{height:54px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px;border-bottom:1px solid #ffffff12;background:#181818}
.nexora-canvas-wordmark{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;letter-spacing:-.2px;white-space:nowrap;flex-shrink:0}
.nx-canvas-menu{display:none;place-items:center;background:transparent;color:#d6d2dc;border-radius:8px}
.nexora-canvas-wordmark .brand-mark{display:none}
.nexora-canvas-wordmark b{font-weight:400;color:#b2aeb8;margin-left:4px}
.nexora-canvas-edition{border-left:1px solid #ffffff18;margin-left:10px;padding-left:14px;font-size:11px;font-weight:400;color:#938e9c;letter-spacing:1.2px}

/* Dark-Glass Optional Product Context Capsule (#181818 Studio Bridge) */
.nx-canvas-context-pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 5px 0 11px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.11);backdrop-filter:blur(12px);min-width:0;max-width:min(580px,54vw);transition:border-color .16s ease,background .16s ease}
.nx-canvas-context-pill.is-bound{border-color:rgba(203,180,222,.28);background:rgba(125,58,239,.1)}
.nx-canvas-context-dot{width:6px;height:6px;border-radius:50%;background:#39c68d;flex-shrink:0;box-shadow:0 0 8px rgba(57,198,141,.48)}
.nx-canvas-context-pill.is-bound .nx-canvas-context-dot{background:linear-gradient(135deg,#8b4df2,#ed67b5,#ff8c7b);box-shadow:0 0 8px #b96df266}
.nx-canvas-context-pill [hidden]{display:none !important}
.nx-canvas-context-label{font-size:11px;color:#a59eb0;white-space:nowrap}
.nx-canvas-product-select{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;border:0;background:transparent;color:#f3eff8;font-size:12px;font-weight:500;max-width:190px;padding:4px 18px 4px 2px;cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;background-image:linear-gradient(45deg,transparent 50%,#a59eb0 50%),linear-gradient(135deg,#a59eb0 50%,transparent 50%);background-position:calc(100% - 9px) 52%,calc(100% - 4px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.nx-canvas-product-select::picker-icon{display:none}
.nx-canvas-product-select:focus-visible{outline:2px solid #cbb4de;outline-offset:2px;border-radius:6px}
.nx-canvas-product-select option{background:#221f28;color:#f3eff8}
.nexora-canvas-heading .nx-canvas-pill-btn{height:26px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#dedae6;font-size:11.5px;display:inline-flex;align-items:center;gap:4px}
.nexora-canvas-heading .nx-canvas-pill-btn:hover{background:rgba(255,255,255,.14);color:#fff}
.nexora-canvas-heading .nx-canvas-pill-btn.is-accent{background:rgba(125,58,239,.26);border-color:rgba(203,180,222,.36);color:#f3eafe}
.nexora-canvas-heading .nx-canvas-pill-btn.is-accent:hover{background:rgba(125,58,239,.4);color:#fff}
.nexora-canvas-heading .nx-canvas-pill-btn:disabled{opacity:.48;cursor:not-allowed}
.nexora-canvas-heading .nx-canvas-pill-btn.is-busy{cursor:wait}

.nexora-canvas-heading .toolbar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;flex-shrink:0}
.nx-canvas-peer-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:10px;background:#ffffff0b;border:1px solid #ffffff14}
.nexora-canvas-heading .nx-canvas-peer-switch button{height:28px;padding:0 11px;border-radius:7px;border:1px solid transparent;background:transparent;color:#c2bfc9;font-size:12px;font-weight:500}
.nexora-canvas-heading .nx-canvas-peer-switch button:hover{background:#ffffff0f;color:#f5f3f7}
.nexora-canvas-heading .nx-canvas-peer-switch button.is-active{background:#302939;border-color:#cbb4de40;color:#e7d5f7;font-weight:600}
.nexora-canvas-heading button{padding:7px 11px;border-radius:8px;border:1px solid transparent;background:transparent;color:#c2bfc9;font-size:12px;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.nexora-canvas-heading button:hover{background:#ffffff0f;color:#f5f3f7}
.nexora-tools-active .nexora-canvas-heading #canvas-suite{background:#302939;border-color:#cbb4de40;color:#e7d5f7}
.nexora-canvas-heading button:focus-visible{outline:2px solid #b8a5ca;outline-offset:2px}
.nexora-canvas-heading #canvas-fullscreen{border:1px solid #ffffff24;color:#ebe8ef;margin-left:4px}
.nexora-canvas-host{position:relative;flex:1;min-height:0;overflow:hidden;background:#181818}
.nexora-canvas-host iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#181818}
.nexora-canvas-loading{padding:36px;color:#b2aeb8;font-size:13px}
.nexora-canvas-host:fullscreen{height:100dvh}

@media(max-width:1120px){
  .nexora-canvas-edition,.nx-canvas-context-label{display:none}
  .nx-canvas-product-select{max-width:136px}
}
@media(max-width:900px){
  .nexora-canvas-active .app-shell{display:block}
  .nexora-canvas-active .sidebar{display:flex;width:min(290px,86vw);padding:24px 16px}
  .nexora-canvas-active .sidebar-head{justify-content:space-between;padding-inline:8px}
  .nexora-canvas-active .brand>span:last-child{display:block}
  .nexora-canvas-active .side-nav{align-items:stretch}
  .nexora-canvas-active .nav-item{width:100%;justify-content:flex-start;padding-inline:13px;gap:13px}
  .nexora-canvas-active .nav-item span{position:static;width:auto;height:auto;clip-path:none;overflow:visible}
  .nexora-canvas-active .nav-separator{width:auto;margin:9px 10px}
  .nx-canvas-menu{display:grid;padding:0;width:30px;height:30px}
  .nexora-canvas-heading{padding:0 12px;overflow-x:auto}
  .nexora-canvas-edition{display:none}
}
@media(max-width:680px){
  #canvas-copy-brief{display:none}
  .nx-canvas-product-select{max-width:108px}
}
@media(max-width:520px){
  .nexora-canvas-heading{height:52px;gap:6px;padding:0 10px}
  .nexora-canvas-wordmark{gap:6px;font-size:13px}
  .nexora-canvas-wordmark b{display:none}
  .nx-canvas-context-pill{padding:0 5px 0 8px;height:32px}
  .nexora-canvas-heading .toolbar{gap:2px}
  .nexora-canvas-heading button{padding:6px 7px;font-size:11px}
  .nexora-canvas-heading .nx-canvas-menu{padding:0}
  .nexora-canvas-heading #canvas-fullscreen{margin-left:2px}
}
@media(prefers-reduced-motion:reduce){.nexora-canvas-active .nav-item,.nexora-canvas-heading button{transition:none}.nexora-canvas-page{animation:none}}
