.app-shell .right-nav {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 12px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 220px;
  min-height: calc(100vh - 24px);
  padding: 16px;
  border: 1px solid rgba(220, 226, 236, 0.9);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 100;
}

.app-shell .right-nav::before,
.app-shell .right-nav::after {
  display: none;
  content: none;
}

.app-shell .right-nav > * {
  position: relative;
  z-index: 2;
}

.app-shell .right-nav .sidebar-logo-card {
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.98), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow:
    0 10px 18px rgba(31, 41, 55, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.app-shell .right-nav .sidebar-logo-card::after {
  display: none;
  content: none;
}

.app-shell .right-nav .sidebar-logo-drop {
  position: relative;
  z-index: 2;
  width: 39px;
  height: 47px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 5px rgba(37, 99, 235, 0.22));
}

.app-shell .right-nav .sidebar-logo-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.app-shell .right-nav .sidebar-logo-title {
  color: var(--primary);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.app-shell .right-nav .sidebar-logo-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.app-shell .right-nav .nav-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  min-height: 46px;
  margin: 2px 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #5c6678;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.app-shell .right-nav .nav-button[hidden] {
  display: none;
}

.app-shell .right-nav .nav-button::before,
.app-shell .right-nav .nav-button::after {
  display: none !important;
  content: none;
}

.app-shell .right-nav .nav-button:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  transform: translateX(3px);
}

.app-shell .right-nav .nav-button.active {
  z-index: 3;
  color: var(--primary);
  border-color: rgba(220, 226, 236, 0.9);
  background: #ffffff;
  box-shadow:
    0 10px 20px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 #ffffff;
  transform: none;
}

.app-shell .right-nav .nav-button.active:hover {
  color: var(--primary);
  transform: none;
}

.app-shell .right-nav .staff-user-panel {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.app-shell .right-nav .staff-user-name {
  color: var(--text);
}

.app-shell .right-nav .staff-user-role {
  color: var(--muted);
}

.app-shell .right-nav .staff-theme-button,
.app-shell .right-nav .staff-logout-button {
  min-height: 38px;
  border-color: #d5deea;
  border-radius: 10px;
  color: #344054;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .right-nav .staff-theme-button:hover,
.app-shell .right-nav .staff-logout-button:hover {
  transform: translateX(3px);
}

.app-shell .right-nav .staff-theme-button::before {
  background: var(--primary);
}

body.soft-ui-theme .app-shell .right-nav {
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 3%, rgba(255, 255, 255, 0.88), transparent 25%),
    linear-gradient(155deg, #f1e7ff 0%, #cdb9f3 38%, #a889e6 100%);
  box-shadow:
    16px 20px 36px rgba(55, 35, 105, 0.25),
    -6px -6px 18px rgba(255, 255, 255, 0.68),
    inset 1px 1px 0 rgba(255, 255, 255, 0.98),
    inset -1px -1px 0 rgba(83, 57, 149, 0.12);
}

body.soft-ui-theme .app-shell .right-nav::before {
  display: block;
  position: absolute;
  top: 128px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(155deg, #ad98ec 0%, #9274dd 48%, #8067cf 100%);
  box-shadow:
    inset 3px 3px 8px rgba(255, 255, 255, 0.24),
    inset -7px -8px 16px rgba(63, 39, 132, 0.18),
    0 13px 24px rgba(61, 39, 112, 0.22);
  content: "";
  pointer-events: none;
  z-index: 0;
}

body.soft-ui-theme .app-shell .right-nav::after {
  display: block;
  position: absolute;
  top: -74px;
  right: -62px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 68%);
  filter: blur(4px);
  content: "";
  pointer-events: none;
  z-index: 1;
}

body.soft-ui-theme .app-shell .right-nav .sidebar-logo-card {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.98), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #fbf8ff 45%, #eadff8 100%);
  box-shadow:
    0 11px 19px rgba(77, 49, 138, 0.23),
    0 3px 7px rgba(72, 47, 123, 0.14),
    inset 4px 4px 9px rgba(255, 255, 255, 0.98),
    inset -5px -6px 12px rgba(172, 148, 214, 0.18);
}

body.soft-ui-theme .app-shell .right-nav .sidebar-logo-card::after {
  display: block;
  position: absolute;
  top: -38px;
  right: -36px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), transparent 68%);
  content: "";
  pointer-events: none;
}

body.soft-ui-theme .app-shell .right-nav .sidebar-logo-drop {
  width: 43px;
  height: 52px;
  filter: drop-shadow(0 5px 5px rgba(54, 96, 180, 0.3));
}

body.soft-ui-theme .app-shell .right-nav .sidebar-logo-title {
  color: #40218f;
  font-size: 24px;
  text-shadow:
    0 1px 0 #ffffff,
    0 3px 5px rgba(75, 43, 135, 0.14);
}

body.soft-ui-theme .app-shell .right-nav .sidebar-logo-sub {
  color: #8c70ca;
}

body.soft-ui-theme .app-shell .right-nav .nav-button {
  min-height: 54px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.97);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.15),
    0 3px 5px rgba(61, 35, 126, 0.25);
}

body.soft-ui-theme .app-shell .right-nav .nav-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

body.soft-ui-theme .app-shell .right-nav .nav-button.active {
  color: #7655d0;
  border-color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 1), transparent 36%),
    linear-gradient(145deg, #ffffff 0%, #f8f3ff 45%, #eaddf9 100%);
  box-shadow:
    0 10px 16px rgba(65, 39, 132, 0.31),
    0 3px 5px rgba(66, 40, 132, 0.16),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -5px -5px 10px rgba(171, 148, 214, 0.24);
  text-shadow:
    0 1px 0 #ffffff,
    0 2px 3px rgba(91, 55, 166, 0.15);
}

body.soft-ui-theme .app-shell .right-nav .nav-button.active:hover {
  color: #7655d0;
}

body.soft-ui-theme .app-shell .right-nav .staff-user-panel {
  border-top-color: rgba(255, 255, 255, 0.24);
}

body.soft-ui-theme .app-shell .right-nav .staff-user-name {
  color: #ffffff;
  text-shadow: 0 3px 5px rgba(61, 35, 126, 0.24);
}

body.soft-ui-theme .app-shell .right-nav .staff-user-role {
  color: rgba(255, 255, 255, 0.76);
}

body.soft-ui-theme .app-shell .right-nav .staff-theme-button,
body.soft-ui-theme .app-shell .right-nav .staff-logout-button {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  color: #5c3db6;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(145deg, #ffffff 0%, #f9f5ff 46%, #eadff8 100%);
  box-shadow:
    0 8px 13px rgba(62, 38, 124, 0.18),
    inset 3px 3px 7px rgba(255, 255, 255, 0.96),
    inset -4px -5px 9px rgba(171, 148, 214, 0.2);
}

body.soft-ui-theme .app-shell .right-nav .staff-theme-button.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, #8e70e0, #7452cf);
  box-shadow:
    0 14px 28px rgba(68, 35, 145, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.36);
}

body.soft-ui-theme .app-shell .right-nav .staff-theme-button::before {
  background: #7655d0;
}

body.soft-ui-theme .app-shell .right-nav .staff-theme-button.active::before {
  background: #ffffff;
}

@media (max-width: 1024px) {
  .app-shell .right-nav {
    position: sticky;
    top: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-height: auto;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 22px;
  }

  .app-shell .right-nav .sidebar-logo-card {
    flex: 0 0 164px;
    min-height: 56px;
    padding: 9px 11px;
    border-radius: 18px;
  }

  .app-shell .right-nav .sidebar-logo-drop {
    width: 30px;
    height: 36px;
  }

  .app-shell .right-nav .sidebar-logo-title {
    font-size: 18px;
  }

  .app-shell .right-nav .sidebar-logo-sub {
    margin-top: 4px;
  }

  .app-shell .right-nav .nav-button {
    flex: 1 1 142px;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
    border-radius: 16px;
    text-align: center;
  }

  .app-shell .right-nav .staff-user-panel {
    flex: 1 1 210px;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  body.soft-ui-theme .app-shell .right-nav {
    border-radius: 26px;
  }

  body.soft-ui-theme .app-shell .right-nav::before {
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border-radius: 22px;
  }

  body.soft-ui-theme .app-shell .right-nav .sidebar-logo-card {
    min-height: 56px;
  }

  body.soft-ui-theme .app-shell .right-nav .sidebar-logo-drop {
    width: 30px;
    height: 36px;
  }

  body.soft-ui-theme .app-shell .right-nav .sidebar-logo-title {
    font-size: 18px;
  }
}

@media (max-width: 650px) {
  .app-shell .right-nav {
    position: static;
    flex-direction: column;
    width: 100%;
    padding: 11px;
  }

  .app-shell .right-nav .sidebar-logo-card {
    flex-basis: auto;
    min-height: 64px;
  }

  .app-shell .right-nav .nav-button {
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    text-align: left;
  }

  .app-shell .right-nav .staff-user-panel {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  body.soft-ui-theme .app-shell .right-nav::before {
    top: 82px;
  }

  body.soft-ui-theme .app-shell .right-nav .sidebar-logo-card {
    min-height: 64px;
  }

  body.soft-ui-theme .app-shell .right-nav .staff-user-panel {
    border-top-color: rgba(255, 255, 255, 0.24);
  }
}
.nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;

  stroke: currentColor;
  stroke-width: 2.15;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter:
    drop-shadow(0 3px 3px rgba(64, 39, 129, 0.26))
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.25));
}