:root{
  --msb-bg:#04162b;
  --msb-bg-2:#061c32;
  --msb-line:#163658;
  --msb-line-soft:rgba(151,200,255,.12);
  --msb-text:#edf7ff;
  --msb-muted:#97bddd;
  --msb-accent:#24d7ff;
  --msb-accent-2:#1c87ff;
}
body{
  background:radial-gradient(circle at top center,#06213d 0,#031224 35%,#020b18 100%) fixed!important;
}
/* shell alignment */
body .topbar{
  position:sticky;top:0;z-index:40;
  display:grid!important;grid-template-columns:270px minmax(0,1fr) auto!important;
  min-height:74px!important;align-items:center!important;gap:18px!important;
  padding:0 18px 0 0!important;
  background:rgba(4,20,38,.98)!important;
  border-bottom:1px solid var(--msb-line)!important;
  backdrop-filter:blur(10px);
}
body .brand-area{
  position:relative;
  display:flex!important;align-items:center!important;gap:14px!important;
  min-height:74px!important;padding:12px 18px!important;
  background:linear-gradient(180deg,#06182d,#07172a)!important;
  border-right:1px solid var(--msb-line)!important;
}
body .brand-area .menu-toggle{
  position:absolute;right:-18px;top:50%;transform:translateY(-50%);
  width:38px!important;height:38px!important;border-radius:50%!important;
  background:linear-gradient(180deg,#243f5f,#203650)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.30);
  z-index:2;
}
body .brand-area .menu-toggle span{width:14px!important;background:#d7ecff!important}
body .brand-area .brand-logo,
body .brand-area .brand-logo-text{
  width:56px!important;height:56px!important;border-radius:50%!important;flex:none!important;
  object-fit:cover;display:grid!important;place-items:center!important;
  background:linear-gradient(145deg,#16d4ff,#1b4eff)!important;
  color:#fff!important;font-weight:900!important;font-size:22px!important;
  box-shadow:0 0 0 4px rgba(10,35,58,.9);
}
body .top-brand-copy{min-width:0;padding-right:20px}
body .top-brand-copy strong{display:block!important;color:#fff!important;font-size:19px!important;font-weight:900!important;line-height:1.05!important;letter-spacing:-.02em}
body .top-brand-copy small{display:block!important;color:#b8d1e5!important;font-size:13px!important;line-height:1.2!important;margin-top:4px}
body .wrap{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;min-height:calc(100vh - 74px)!important}
body .content{padding-top:0!important}

/* sidebar */
body .sidebar{
  display:flex!important;flex-direction:column!important;
  background:linear-gradient(180deg,#041223 0%,#031226 100%)!important;
  border-right:1px solid var(--msb-line)!important;
  padding:0 0 18px!important;
}
body .sidebar-title{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:12px 18px 14px!important;margin:0 0 6px!important;
  color:#b2cde6!important;background:transparent!important;border-bottom:1px solid var(--msb-line)!important;
  text-transform:uppercase!important;letter-spacing:.14em!important;font-size:11px!important;font-weight:800!important;
}
body .sidebar-title span:first-child{margin:0 auto 0 0;flex:1;text-align:center;padding-left:10px}
body .sidebar-title::before,
body .sidebar-title::after{content:"";width:9px;height:9px;border-radius:50%;flex:none}
body .sidebar-title::before{background:#1fe58e;box-shadow:0 0 0 4px rgba(14,40,63,.95)}
body .sidebar-title::after{border:3px solid #123251;background:transparent}
body .sidebar-title .sidebar-title-dot{display:none!important}

body .sidebar > a,
body .sidebar details > summary,
body .sidebar .sidebar-subgroup > summary,
body .sidebar details a{
  position:relative;display:flex!important;align-items:center!important;gap:14px!important;
  min-height:52px!important;margin:4px 12px!important;padding:0 16px!important;border-radius:14px!important;
  color:var(--msb-text)!important;text-decoration:none!important;font-size:14px!important;font-weight:700!important;
  border:1px solid transparent!important;background:transparent!important;
  transition:all .18s ease;
}
body .sidebar > a:hover,
body .sidebar details > summary:hover,
body .sidebar .sidebar-subgroup > summary:hover,
body .sidebar details a:hover{background:rgba(10,33,56,.7)!important;border-color:rgba(64,121,175,.28)!important}
body .sidebar > a.active,
body .sidebar > a[aria-current="page"],
body .sidebar details.sidebar-group[open] > summary.active,
body .sidebar details.sidebar-group[open] > summary[aria-current="page"],
body .sidebar .sidebar-group-links > a.active,
body .sidebar .sidebar-subgroup-links > a.active{
  background:linear-gradient(180deg,#11435f,#11405a)!important;
  border-color:rgba(104,196,255,.36)!important;
  box-shadow:inset 4px 0 0 #22e4ff,0 10px 24px rgba(0,0,0,.22);
}
body .sidebar .sidebar-group[open] > summary{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
body .sidebar .sidebar-group-links > a.active,
body .sidebar .sidebar-subgroup-links > a.active{margin-left:22px!important}
body .sidebar .nav-icon,
body .sidebar .sidebar-section-icon{
  width:24px!important;height:24px!important;display:grid!important;place-items:center!important;
  flex:none!important;border:none!important;background:transparent!important;border-radius:0!important;
  color:#dbedff!important;opacity:.95;
}
body .sidebar .app-icon{width:22px!important;height:22px!important;stroke-width:1.9!important}
body .sidebar .nav-text,
body .sidebar .sidebar-section-title{flex:1;min-width:0;line-height:1.1;color:inherit}
body .sidebar .sidebar-chevron,
body .sidebar .sidebar-sub-chevron{width:16px;height:16px;color:#9fc2df;flex:none}
body .sidebar .sidebar-group-links,
body .sidebar .sidebar-subgroup-links{padding-bottom:4px}
body .sidebar .sidebar-group-links > a,
body .sidebar .sidebar-subgroup-links > a{margin-left:24px!important;min-height:44px!important;font-size:13px!important;color:#d4e8fb!important}
body .sidebar details{padding:0!important}
body .sidebar summary{list-style:none;cursor:pointer}
body .sidebar summary::-webkit-details-marker{display:none}

body .sidebar-footer{
  margin-top:auto!important;padding:18px 22px!important;
  border-top:1px solid var(--msb-line)!important;background:#071828!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;
}
body .sidebar-footer strong{display:block;color:#eff8ff;font-size:14px;font-weight:800;line-height:1.2}
body .sidebar-footer small{display:block;color:#a4c1d8;font-size:12px;line-height:1.25}
body .sidebar-footer .side-status-dot,
body .sidebar-footer .side-auto,
body .sidebar-footer .side-color-btn,
body .sidebar-footer .sidebar-color-popover{display:none!important}

/* top search / actions slightly closer to reference */
body .top-search{max-width:760px!important;height:44px!important;border-radius:14px!important;background:linear-gradient(180deg,#071c33,#0a213c)!important;border:1px solid var(--msb-line)!important}
body .top-search input{font-size:16px!important;color:#eef6ff!important}
body .top-search input::placeholder{color:#8eb1cf!important}
body .top-search kbd{background:#14304d!important;border:1px solid #2c4f73!important;color:#d8ebfb!important;border-radius:10px!important;padding:5px 8px!important}
body .top-actions{gap:12px!important}
body .top-mini-btn{height:40px!important;border-radius:13px!important;background:#0a213a!important;border:1px solid var(--msb-line)!important;color:#eff7ff!important}
body .theme-toggle{display:none!important}
body [data-user-menu-toggle]{height:46px!important;border-radius:14px!important;background:#0a213a!important;border:1px solid var(--msb-line)!important;box-shadow:none!important}

/* dashboard container uses full width a bit more cleanly */
body.dashboard-v36-page .dash36-shell{max-width:none!important;width:100%!important;padding:20px 22px 36px!important}

@media (max-width:1100px){
  body .topbar{grid-template-columns:1fr!important;padding:10px 12px!important;gap:10px!important}
  body .brand-area{min-height:auto!important;padding-right:58px!important}
  body .brand-area .menu-toggle{right:10px;top:50%}
  body .wrap{grid-template-columns:1fr!important}
}
