﻿
.nx-shell {
  --nx-content-padding: 24px;
  --nx-content-padding-bottom: var(--nexus-space-2);
  --nx-content-max-width: 1560px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  background: var(--nx-canvas);
  color: var(--nexus-text-primary);
  font-family: var(--nexus-font-family);
  font-size: var(--nexus-fs-body);
  line-height: var(--nexus-lh-body);
}

.nx-nav-col {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  position: relative;
}

.nx-nav-handle {
  position: absolute;
  top: 50%;
  right: -9px;
  transform: translateY(-50%);
  z-index: 5;
  width: 18px;
  height: 64px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--nx-on-canvas-muted);
  cursor: pointer;
  opacity: .75;
}

.nx-nav-handle:hover {
  opacity: 1;
  color: var(--nx-on-canvas);
}

.nx-nav-handle:focus-visible {
  outline: none;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--nx-bracket-color);
}

.nx-rail-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-items: center;
}

.nx-rail-col__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.nx-rail-brand {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.nx-rail-brand--wide {
  justify-content: flex-start;
  padding-left: 18px;
}

.nx-rail-brand .nx-logo { height: 36px; }
.nx-rail-brand .nx-logo--icon { width: 36px; }

.nx-account { position: relative; }

.nx-topbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nx-on-canvas-muted);
  cursor: pointer;
  transition: background-color var(--nexus-transition-fast),
              color var(--nexus-transition-fast);
}

.nx-topbtn:hover {
  background: var(--nx-canvas-hover);
  color: var(--nx-on-canvas);
}

.nx-topbtn.nx-active {
  background: var(--nx-canvas-active);
  color: var(--nx-on-canvas);
}

.nx-topbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--nx-bracket-color);
}

.nx-topbtn__badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--nx-bracket-color, #14b8a6);
  color: #06202a;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nx-rail-item {
  border: 0;
  background: none;
  font-family: inherit;
  text-align: center;
}

.nx-rail-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--nx-bracket-color);
}

.nx-rail-item__icon { display: grid; place-items: center; height: 20px; }

.nx-rail-item__label {
  max-width: calc(var(--nx-nav-tile-w) - 8px);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
}

.nx-rail.nx-rail--wide {
  width: 208px;
  align-items: stretch;
  gap: 2px;
  padding: 6px 8px;
}

.nx-rail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--nx-on-canvas-muted);
  font-family: inherit;
  font-size: var(--nexus-fs-body-sm);
  text-align: left;
  cursor: pointer;
  position: relative;
}

.nx-rail-row:hover { background: var(--nx-canvas-hover); }

.nx-rail-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--nx-bracket-color);
}

.nx-rail-row.nx-active {
  color: var(--nx-on-canvas);
  font-weight: var(--nexus-fw-semibold);
}

.nx-rail-row--leaf { padding-left: 38px; }

.nx-rail-row--leaf.nx-active {
  background: var(--nx-canvas-active);
  color: var(--nx-on-canvas);
  font-weight: var(--nexus-fw-semibold);
}

.nx-rail-row--leaf.nx-active::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: var(--nx-bracket-size);
  height: var(--nx-bracket-size);
  border-top: var(--nx-bracket-w) solid var(--nx-bracket-color);
  border-right: var(--nx-bracket-w) solid var(--nx-bracket-color);
}

.nx-rail-row__icon { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; }

.nx-rail-row__label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.nx-rail-row__chev {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  opacity: .7;
}

.nx-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.nx-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  gap: var(--nx-canvas-pad);
}

.nx-stage > .nx-content { flex: 1 1 auto; min-width: 0; }

.nx-actrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nexus-space-2);
  min-height: 0;
  color: var(--nx-on-canvas);
  position: relative;
  z-index: 45;
}

.nx-actrail__system {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nexus-space-2);
}

.nx-viewbar {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
  flex: 0 0 auto;
  padding: 0 var(--nexus-space-2) var(--nexus-space-2);
  color: var(--nx-on-canvas);
}

.nx-breadcrumb {
  font-size: var(--nexus-fs-label);
  line-height: var(--nexus-lh-label);
  font-weight: var(--nexus-fw-medium);
  color: var(--nx-on-canvas);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nx-actrail .nx-icon-btn { color: var(--nx-on-canvas-muted); }
.nx-actrail .nx-icon-btn:hover { background: var(--nx-canvas-hover); color: var(--nx-on-canvas); }
.nx-actrail .nx-icon-btn:focus-visible { color: var(--nx-on-canvas); }

.nx-actrail .dropdown-menu { color: var(--nx-text); }

.nx-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--nexus-background);
}

.nx-content__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nx-content__tabs {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: var(--nexus-space-3) var(--nx-content-padding) var(--nx-content-padding-bottom);
}

.nx-content__tabs > * { min-height: 0; }

.nx-content__inner {
  max-width: var(--nx-content-max-width);
  margin: 0 auto;
  padding: var(--nx-content-padding);
  display: flex;
  flex-direction: column;
  gap: var(--nexus-space-4);
}

.nx-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexus-space-4);
  flex: 0 0 auto;
  padding: var(--nexus-space-3) 0 var(--nexus-space-3);
}

.nx-page-header__actions { flex: 1 1 auto; min-width: 0; }

.nx-page-body { min-height: 0; }

body.dxbl-theme-fluent .main-content.nx-page-body {
  padding-bottom: var(--nexus-space-2);
}

.nx-view-toolbar {
  position: sticky;
  top: calc(-1 * var(--nx-content-padding));
  z-index: 2;
  margin: calc(-1 * var(--nx-content-padding)) calc(-1 * var(--nx-content-padding)) 0;
  padding: var(--nexus-space-3) var(--nx-content-padding);
  background: var(--nx-sheet);
}

.nx-view-toolbar:empty { display: none; }

.nx-account__menu {
  position: absolute;
  right: calc(100% + var(--nexus-space-2));
  top: 0;
  z-index: 50;
  width: 240px;
  padding: var(--nexus-space-2);
  border-radius: var(--nx-radius-card);
  background: var(--nx-surface);
  color: var(--nx-text);
  box-shadow: var(--nx-shadow-float);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.nx-account__scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: transparent;
}

.nx-account__user {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
  padding: var(--nexus-space-2);
  border-bottom: 1px solid var(--nx-line-soft);
  margin-bottom: var(--nexus-space-1);
}

.nx-account__user-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--nx-teal) 14%, transparent);
  color: var(--nx-teal-ink);
}

.nx-account__user-name {
  min-width: 0;
  font-size: var(--nexus-fs-body-sm);
  font-weight: var(--nexus-fw-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-account__credit {
  display: grid;
  gap: 3px;
  padding: 6px var(--nexus-space-3) 7px;
  border-radius: var(--nexus-radius-md);
  background: var(--nexus-hover-surface);
  cursor: default;
}

.nx-account__credit-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.nx-account__credit-value {
  font-size: 0.9375rem;
  font-weight: var(--nexus-fw-semibold);
  font-variant-numeric: tabular-nums;
}

.nx-account__credit-label {
  font-size: 0.72rem;
  color: var(--nx-text-muted);
  white-space: nowrap;
}

.nx-account__credit-reset {
  display: block;
  font-size: 0.68rem;
  color: var(--nx-text-muted);
  white-space: nowrap;
}

.nx-account__credit-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--nx-text-muted) 25%, transparent);
  overflow: hidden;
}

.nx-account__credit-bar > span {
  display: block;
  height: 100%;
  background: var(--nx-teal);
}

.nx-account__credit--warn .nx-account__credit-bar > span { background: var(--nx-warning-ink, var(--nx-teal)); }
.nx-account__credit--warn .nx-account__credit-value { color: var(--nx-warning-ink, inherit); }
.nx-account__credit--bad .nx-account__credit-bar > span { background: var(--nx-danger-ink); }
.nx-account__credit--bad .nx-account__credit-value { color: var(--nx-danger-ink); }

.nx-account__item {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
  width: 100%;
  padding: var(--nexus-space-2);
  border: 0;
  border-radius: var(--nexus-radius-md);
  background: transparent;
  color: var(--nx-text);
  font-family: inherit;
  font-size: var(--nexus-fs-body-sm);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--nexus-transition-fast);
}

.nx-account__item:hover { background: var(--nexus-hover-surface); }
.nx-account__item:focus-visible { outline: none; box-shadow: var(--nexus-focus-ring); }
.nx-account__item-icon { display: grid; place-items: center; color: var(--nx-text-muted); }
.nx-account__item--quit { color: var(--nx-danger-ink); }
.nx-account__item--quit .nx-account__item-icon { color: inherit; }

.nx-account__sep {
  height: 1px;
  margin: var(--nexus-space-1) 0;
  background: var(--nx-line-soft);
}

.nx-account__version {
  padding: var(--nexus-space-1) var(--nexus-space-3);
  font-size: 0.75rem;
  color: var(--nx-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.nx-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--nexus-radius-md);
  background: transparent;
  color: var(--nexus-text-secondary);
  cursor: pointer;
  transition: background-color var(--nexus-transition-fast),
              color var(--nexus-transition-fast);
}

.nx-icon-btn:hover { background: var(--nexus-hover-surface); color: var(--nexus-text-primary); }
.nx-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--nexus-focus-ring);
  color: var(--nexus-text-primary);
}

.nx-logo {
  display: block;
  flex: 0 0 auto;
  height: var(--nx-logo-mark);
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.nx-logo--icon { width: var(--nx-logo-mark); }

@media (max-width: 1280px) {
  .nx-shell { --nx-content-padding: 20px; }
}



.nx-notifmenu { position: relative; }

.nx-notifmenu__scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: transparent;
}

.nx-notifmenu__pop {
  position: absolute;
  right: calc(100% + var(--nexus-space-2));
  top: 0;
  z-index: 50;
  width: min(420px, calc(100vw - 2 * var(--nx-canvas-pad)));
  max-height: min(560px, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: var(--nx-radius-card);
  background: var(--nx-surface);
  color: var(--nx-text);
  box-shadow: var(--nx-shadow-float);
  overflow: hidden;
}

.nx-notifmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexus-space-2);
  padding: var(--nexus-space-2) var(--nexus-space-3);
  border-bottom: 1px solid var(--nx-line-soft);
}

.nx-notifmenu__title {
  font-size: var(--nexus-fs-body-sm);
  font-weight: var(--nexus-fw-semibold);
}

.nx-notifmenu__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--nexus-space-2) var(--nexus-space-3) var(--nexus-space-3);
}


.nx-smart-panel { min-height: 0; }

.nx-smart-panel--pinned { position: relative; }

.nx-smart-panel--overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  box-shadow: var(--nx-shadow-float);
}

.nx-smart__scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}

.nx-smart-panel__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
  padding: var(--nexus-space-3) var(--nexus-space-3) var(--nexus-space-2);
  border-bottom: 1px solid var(--nx-line-soft);
}

.nx-smart-panel__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--nexus-radius-sm);
  background: color-mix(in srgb, var(--nx-teal) 14%, transparent);
  color: var(--nx-teal-ink);
}

.nx-smart-panel__title {
  margin: 0;
  font-size: var(--nexus-fs-label);
  line-height: var(--nexus-lh-label, 1.4);
  font-weight: var(--nexus-fw-semibold);
  color: var(--nx-text);
}

.nx-smart-panel__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nx-smart-panel__pin.nx-active {
  background: color-mix(in srgb, var(--nx-teal) 16%, transparent);
  color: var(--nx-teal-ink);
}

.nx-smart-panel__close { margin-left: var(--nexus-space-2); }


.nx-notif__markall {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--nexus-fs-caption);
  color: var(--nx-text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.nx-notif__empty { margin: var(--nexus-space-2) 0; font-size: var(--nexus-fs-body-sm); color: var(--nx-text-muted); }

.nx-notif__item { list-style: none; }

.nx-notif__list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--nexus-space-2);
}

.nx-notif__open {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--nexus-space-2);
  border: 0;
  border-radius: var(--nexus-radius-md);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--nx-text);
}

.nx-notif__open:hover { background: var(--nexus-hover-surface); }

.nx-notif__item--unread .nx-notif__item-title { font-weight: var(--nexus-fw-semibold); }

.nx-notif__item--unread .nx-notif__open {
  box-shadow: inset var(--nx-bracket-w, 3px) 0 0 var(--nx-bracket-color, #14b8a6);
}

.nx-notif__item-title { font-size: var(--nexus-fs-body-sm); line-height: 1.35; }
.nx-notif__item-body { font-size: var(--nexus-fs-caption); line-height: 1.45; color: var(--nx-text-muted); white-space: pre-wrap; }
.nx-notif__item-when { margin-top: 2px; font-size: var(--nexus-fs-caption); color: var(--nx-text-muted); }
