/* Floating vertical navigation in the existing mist-blue palette. */
.xm-shell .m-sidebar{
  border:1px solid var(--outline);border-radius:20px;background:var(--surface);color:var(--text);
  box-shadow:0 10px 32px #2626260a;scrollbar-width:thin;scrollbar-color:var(--outline) transparent;
}
.xm-shell .xm-sidebar-brand{padding:0 12px 28px}
.xm-shell .xm-sidebar-brand .m-brand{color:var(--heading);gap:10px}
.xm-shell .xm-sidebar-brand .m-brand-symbol,.xm-shell .xm-sidebar-brand .m-brand-symbol img{width:36px;height:36px;outline:0}
.xm-shell .xm-sidebar-brand .m-brand-name{font-size:20px;font-weight:600;letter-spacing:.5px}
.xm-shell .m-nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;padding:0;margin:0;width:100%}
.xm-shell .m-nav-link{
  position:relative;display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:48px;
  margin:0;padding:8px 11px;border:1px solid transparent;border-radius:13px;
  color:var(--secondary)!important;background:transparent;font-size:13px;font-weight:500;line-height:1.5;
}
.xm-shell .m-nav-link .m-icon{
  width:32px;height:32px;padding:7px;border-radius:10px;border:1px solid var(--outline);
  background:var(--input);color:var(--secondary);opacity:1;
}
.xm-shell .m-nav-link:hover{color:var(--heading)!important;background:var(--input);border-color:var(--outline)}
.xm-shell .m-nav-link:hover .m-icon{color:var(--primary);background:var(--surface)}
.xm-shell .m-nav-link.is-active{color:var(--primary)!important;background:var(--xm-mint);border-color:transparent;font-weight:600}
.xm-shell .m-nav-link.is-active::before{content:"";position:absolute;left:0;top:50%;width:3px;height:20px;transform:translateY(-50%);border-radius:3px;background:#b8c6ff}
.xm-shell .m-nav-link.is-active .m-icon{color:#fff;background:#4d6bfe;border-color:#4d6bfe}
.xm-shell .xm-nav-dot{display:none}
.xm-shell .xm-nav-divider{height:1px;min-height:1px;margin:12px 13px;background:var(--outline)}
.xm-shell .xm-sidebar-note{
  display:flex;flex-direction:row;align-items:center;gap:10px;margin:auto 4px 18px;padding:13px 10px;
  border:1px solid var(--outline);border-radius:12px;background:var(--input);
}
.xm-shell .xm-sidebar-note>.m-icon{width:30px;height:30px;padding:6px;flex:0 0 auto;border-radius:9px;color:var(--primary);background:var(--surface)}
.xm-shell .xm-sidebar-note>div{display:grid;gap:4px;min-width:0}
.xm-shell .xm-sidebar-note strong{color:var(--heading);font-size:11px;font-weight:500;line-height:1.5}
.xm-shell .xm-sidebar-note a{color:var(--secondary)!important;font-size:10px;text-decoration:none;line-height:1.6}
.xm-shell .xm-sidebar-note a:hover{color:var(--primary)!important;text-decoration:underline;text-underline-offset:3px}
.xm-shell .xm-sidebar-foot{padding:0 13px;color:var(--tertiary);font-size:10px}
.xm-shell .m-drawer-heading{color:var(--heading);background:var(--surface)}
.xm-shell .m-drawer-heading .m-icon-button{color:var(--secondary)}
@media(min-width:1024px){
  .xm-shell .m-sidebar{inset:16px auto 16px 16px;width:224px;height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:none;padding:24px 12px 17px;transform:none;visibility:visible}
  .xm-shell .m-main{margin-left:256px;width:calc(100% - 256px)}
}
@media(min-width:768px) and (max-width:1023px){
  .xm-shell .m-sidebar{inset:16px auto 16px 16px;width:244px;max-width:calc(100vw - 32px);height:calc(100vh - 32px);height:calc(100dvh - 32px);max-height:none;padding:22px 13px 17px;transform:translateX(calc(-100% - 32px));visibility:hidden}
  .xm-shell.m-mobile-open .m-sidebar{transform:none;visibility:visible}
  .xm-shell .xm-sidebar-brand{display:block;padding-bottom:20px}
  .xm-shell .m-drawer-heading{position:sticky;top:0;z-index:1;margin:0 0 10px;padding:0 8px 7px}
  .xm-shell .xm-sidebar-note{margin-top:28px}
}
@media(max-width:767px){
  .xm-shell .m-sidebar{inset:auto 12px 82px auto;width:calc(100vw - 24px);max-width:420px;height:auto;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);padding:13px 12px;border-radius:20px;transform:translateY(15px);opacity:0;visibility:hidden}
  .xm-shell.m-mobile-open .m-sidebar{transform:none;opacity:1;visibility:visible}
  .xm-shell .xm-sidebar-brand,.xm-shell .xm-sidebar-note,.xm-shell .xm-sidebar-foot{display:none}
  .xm-shell .m-drawer-heading{position:sticky;top:0;z-index:1;margin:0 0 6px;padding:0 5px 5px}
  .xm-shell .m-navigation-title{font-size:13px;font-weight:500}
  .xm-shell .m-nav{display:flex;flex-direction:column;gap:3px}
  .xm-shell .m-nav-link{min-height:44px;padding:6px 10px;font-size:12px;gap:11px}
  .xm-shell .m-nav-link .m-icon{width:30px;height:30px;padding:6px;border-radius:9px}
  .xm-shell .m-nav-link:last-child{grid-column:auto}
  .xm-shell .xm-nav-divider{display:none}
}

/* The top toolbar shares the rail's spacing, borders and icon bases. */
.xm-shell .m-app-header{padding:16px 40px 0;border:0;background:var(--background)}
.xm-shell .m-topbar{
  height:64px;max-width:1320px;padding:0 18px;gap:18px;border:1px solid var(--outline);
  border-radius:16px;background:var(--surface);box-shadow:0 6px 24px #26262605;
}
.xm-shell .m-topbar-title{gap:10px}
.xm-shell .xm-breadcrumb{gap:11px;font-size:12px}
.xm-shell .xm-breadcrumb strong{font-weight:600}
.xm-shell .m-topbar .m-local-mark{padding:3px 7px;border-color:var(--outline);border-radius:7px;background:var(--input);font-size:10px}
.xm-shell .m-topbar-tools{gap:7px}
.xm-shell .m-topbar .m-icon-button{
  width:44px;min-width:44px;height:44px;padding:11px;border:1px solid var(--outline);
  border-radius:12px;background:var(--input);color:var(--secondary);
}
.xm-shell .m-topbar .m-icon-button:hover,.xm-shell .m-topbar .m-icon-button[aria-expanded="true"]{
  border-color:var(--primary);background:var(--xm-mint);color:var(--primary);
}
.xm-shell .m-topbar .m-account-button{
  min-height:44px;max-width:190px;gap:9px;margin:0;padding:5px 10px 5px 6px;
  border:1px solid var(--outline);border-radius:12px;background:var(--input);color:var(--heading);
}
.xm-shell .m-topbar .m-account-button:hover,.xm-shell .m-topbar .m-account-button[aria-expanded="true"]{border-color:var(--primary);background:var(--xm-mint)}
.xm-shell .m-topbar .m-account-button .m-avatar{width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:var(--xm-mint);color:var(--primary)}
.xm-shell .m-topbar .m-account-label{font-size:12px;font-weight:500;max-width:108px}
.xm-shell .m-topbar .m-dropdown{top:calc(100% + 9px);padding:6px;border-radius:13px;border-color:var(--outline);box-shadow:0 12px 32px #26262618}
.xm-shell .m-topbar .m-dropdown button,.xm-shell .m-topbar .m-dropdown a{border-radius:8px;font-size:12px}
@media(min-width:768px) and (max-width:1199px){
  .xm-shell .m-app-header{padding-inline:28px}
  .xm-shell .m-topbar{max-width:none;padding-inline:16px}
}
@media(min-width:768px) and (max-width:1023px){
  .xm-shell .m-topbar .m-mobile-nav-toggle{margin-left:0}
  .xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:19px;letter-spacing:.5px}
}
@media(max-width:767px){
  .xm-shell .m-app-header{padding:12px 12px 0}
  .xm-shell .m-topbar{height:60px;max-width:none;padding:0 10px;gap:8px;border-radius:15px}
  .xm-shell .m-topbar-title{gap:0;max-width:none}
  .xm-shell .m-topbar-title>.m-brand{gap:7px}
  .xm-shell .m-topbar-title>.m-brand .m-brand-symbol,.xm-shell .m-topbar-title>.m-brand img{width:28px;height:28px}
  .xm-shell .m-topbar-title>.m-brand .m-brand-name{font-size:18px;letter-spacing:0}
  .xm-shell .m-topbar-tools{gap:5px}
  .xm-shell .m-topbar .m-account-button{width:44px;max-width:44px;height:44px;min-width:44px;justify-content:center;padding:0}
  .xm-shell .m-topbar .m-account-label{display:none}
}
