.smart-sidebar {
  --smart-white: rgba(255, 255, 255, 0.98);
  --smart-white-85: rgba(255, 255, 255, 0.85);
  --smart-white-70: rgba(255, 255, 255, 0.7);
  --smart-white-30: rgba(255, 255, 255, 0.3);
  --smart-white-18: rgba(255, 255, 255, 0.18);
  --smart-white-10: rgba(255, 255, 255, 0.1);
  --smart-black-55: rgba(31, 38, 54, 0.44);
  --smart-black-28: rgba(31, 38, 54, 0.22);
  --smart-icon-size: clamp(28px, 7.3vw, 39px);
  --smart-label-size: clamp(11.5px, 3.1vw, 15px);
  --smart-grid-gap-v: clamp(6px, 2vh, 18px);
  --smart-grid-gap-h: clamp(4px, 1.3vw, 10px);
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  contain: layout paint style;
}

.smart-sidebar.is-open {
  opacity: 1;
  pointer-events: auto;
  will-change: opacity;
}

html.is-native-app .smart-sidebar {
  --smart-sidebar-native-top: max(env(safe-area-inset-top, 0px), 24px);
  --safe-top: var(--smart-sidebar-native-top);
  top: 0;
  bottom: auto;
  height: 100vh;
  height: var(--altaris-admin-layer-viewport-height, 100vh);
}

html.is-native-app .smart-sidebar__screen,
html.is-native-app .smart-sidebar__panel {
  height: 100vh;
  height: var(--altaris-admin-layer-viewport-height, 100vh);
  min-height: 100vh;
  min-height: var(--altaris-admin-layer-viewport-height, 100vh);
}

.smart-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 38, 54, 0.16);
}

.smart-sidebar__screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1A1D26;
  color: var(--smart-white);
  contain: layout paint style;
}

.smart-sidebar__bg-gif,
.smart-sidebar__bg-canvas,
.smart-sidebar__overlay {
  position: absolute;
  inset: 0;
}

.smart-sidebar__bg-gif {
  background:
    linear-gradient(180deg, rgba(40, 48, 62, 0.30) 0%, rgba(40, 48, 62, 0.42) 100%),
    var(--smart-menu-background-image, url("/altaris_assets/global/images/smartmenubg.gif")) center center / cover no-repeat;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  opacity: 0.82;
}

.smart-sidebar__bg-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

.smart-sidebar__overlay {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(40, 48, 62, 0.16), rgba(40, 48, 62, 0.52));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.smart-sidebar__panel {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 56%) minmax(0, 44%);
  gap: 0;
  padding:
    calc(10px + var(--safe-top, env(safe-area-inset-top, 0px)))
    max(14px, var(--safe-right, env(safe-area-inset-right, 0px)))
    calc(8px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)))
    max(14px, var(--safe-left, env(safe-area-inset-left, 0px)));
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .24s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}

.smart-sidebar.is-open .smart-sidebar__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}

.smart-sidebar__hero {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4.6vh, 34px) 48px clamp(4px, 1vh, 10px);
}

.smart-sidebar__controls {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  padding-top: 0;
}

.smart-sidebar__ministry-switch {
  width: min(100%, 520px);
  display: grid;
  gap: 7px;
  margin: 0 auto clamp(4px, 1vh, 10px);
  padding: 10px 12px;
  border: 1px solid var(--smart-white-18);
  border-radius: 14px;
  background: rgba(37, 42, 53, 0.18);
  color: var(--smart-white);
  box-shadow: 0 12px 28px rgba(31, 38, 54, 0.13);
  backdrop-filter: blur(16px);
}

.smart-sidebar__ministry-switch span {
  color: var(--smart-white-70);
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.smart-sidebar__ministry-switch select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--smart-white);
  font: inherit;
  font-size: clamp(13px, 3vw, 14px);
  font-weight: 700;
  outline: 0;
}

.smart-sidebar__ministry-switch select:focus {
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.smart-sidebar__ministry-switch option {
  color: #111827;
}

.smart-sidebar__switch-row {
  display: flex;
  justify-content: center;
  width: 100%;
  flex: 0 0 auto;
  margin-bottom: clamp(8px, 2.6vh, 22px);
}

.smart-sidebar__mode-btn,
.smart-sidebar__minimize-btn,
.smart-sidebar__disable-btn {
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--smart-white);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.smart-sidebar__minimize-btn,
.smart-sidebar__disable-btn {
  background: rgba(37, 42, 53, 0.14);
  border: 1px solid var(--smart-white-18);
  box-shadow: 0 10px 24px rgba(31, 38, 54, 0.11);
}

.smart-sidebar__mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  width: min(100%, 372px);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), .16);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .18);
}

.smart-sidebar__mode-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: transparent;
  color: var(--smart-white-70);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 650;
  letter-spacing: .02em;
}

.smart-sidebar__mode-btn.active {
  background: rgba(var(--accent-rgb), .92);
  color: var(--smart-white);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), .28);
}

.smart-sidebar__mode-btn:focus-visible,
.smart-sidebar__menu-item:focus-visible,
.smart-sidebar__minimize-btn:focus-visible,
.smart-sidebar__disable-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.smart-sidebar__mode-btn:active,
.smart-sidebar__menu-item:active,
.smart-sidebar__minimize-btn:active,
.smart-sidebar__disable-btn:active {
  transform: scale(0.97);
}

.smart-sidebar__logo {
  width: clamp(228px, 66vw, 352px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.smart-sidebar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(31,38,54,.54));
  transform: scale(.98);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.smart-sidebar.is-open .smart-sidebar__logo img {
  transform: scale(1);
  animation: smart-sidebar-logo-float 4.2s ease-in-out infinite;
}

.smart-sidebar__logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 28px rgba(31,38,54,.44);
  background: transparent;
}

.smart-sidebar__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.smart-sidebar__menu-grid {
  display: grid;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 clamp(8px, 2.8vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vh, 14px) clamp(6px, 1.8vw, 12px);
  align-content: start;
}

.smart-sidebar__menu-item {
  font: inherit;
  position: relative;
  min-height: clamp(78px, 10.9vh, 99px);
  padding: clamp(8px, 1.4vh, 14px) 5px;
  overflow: hidden;
  border-radius: 16px;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(5px, 1.2vh, 8px);
  text-align: center;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(.98);
  transition:
    opacity .22s ease,
    transform .22s cubic-bezier(.2, .8, .2, 1),
    background .16s ease,
    color .16s ease;
}

.smart-sidebar.is-open .smart-sidebar__menu-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: opacity, transform;
}

.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(1) { transition-delay: .03s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(2) { transition-delay: .055s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(3) { transition-delay: .08s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(4) { transition-delay: .105s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(5) { transition-delay: .13s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(6) { transition-delay: .155s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(7) { transition-delay: .18s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(8) { transition-delay: .205s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(9) { transition-delay: .23s; }
.smart-sidebar.is-open .smart-sidebar__menu-item:nth-child(10) { transition-delay: .255s; }

.smart-sidebar__menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px) scale(1.01);
}

button.smart-sidebar__menu-item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
}

.smart-sidebar__menu-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.smart-sidebar__menu-item[aria-disabled="true"] {
  cursor: default;
}

.smart-sidebar__menu-item::before {
  display: none;
}

.smart-sidebar__menu-icon {
  width: var(--smart-icon-size);
  height: var(--smart-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-sidebar__menu-icon svg {
  width: 100%;
  height: 100%;
}

.smart-sidebar__menu-label {
  font-size: var(--smart-label-size);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.smart-sidebar__status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 2px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.smart-sidebar__status-badge.is-on {
  color: #86efac;
  background: rgba(34, 197, 94, .18);
  border-color: rgba(134, 239, 172, .28);
}

.smart-sidebar__status-badge.is-off {
  color: #fecaca;
  background: rgba(239, 68, 68, .2);
  border-color: rgba(254, 202, 202, .28);
}

.smart-sidebar__bottom-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 18px) clamp(14px, 4vw, 24px) calc(var(--safe-bottom, env(safe-area-inset-bottom, 8px)) + 12px);
  min-height: 58px;
  position: relative;
  z-index: 2;
}

.smart-sidebar__minimize-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smart-sidebar__minimize-btn {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  color: var(--smart-white);
  animation: smart-sidebar-arrow-float 1.65s ease-in-out infinite;
}

.smart-sidebar__minimize-btn svg {
  animation: smart-sidebar-arrow-pulse 1.65s ease-in-out infinite;
}

.smart-sidebar__disable-btn {
  position: absolute;
  top: calc(10px + var(--safe-top, env(safe-area-inset-top, 0px)));
  right: max(14px, var(--safe-right, env(safe-area-inset-right, 0px)));
  width: auto;
  min-height: 44px;
  padding: 0 13px 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  z-index: 2;
  color: var(--smart-white);
  font-family: var(--font-body, sans-serif);
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 650;
  letter-spacing: .01em;
  background: rgba(37, 42, 53, 0.27);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.smart-sidebar__minimize-btn svg,
.smart-sidebar__disable-btn svg {
  width: 21px;
  height: 21px;
  color: var(--smart-white-70);
}

.smart-sidebar .toggle {
  display: none;
}

.smart-sidebar .toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.smart-sidebar .toggle-track {
  width: 42px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background .18s ease, border-color .18s ease;
}

.smart-sidebar .toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(31, 38, 54, 0.14);
  transform: translateX(0);
  transition: transform .18s ease;
}

.smart-sidebar .toggle input:checked + .toggle-track {
  background: rgba(34, 197, 94, 0.95);
  border-color: rgba(34, 197, 94, 0.95);
}

.smart-sidebar .toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

.smart-sidebar__ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: smart-sidebar-ripple .45s ease-out forwards;
}

@keyframes smart-sidebar-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(12);
  }
}

@keyframes smart-sidebar-arrow-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes smart-sidebar-arrow-pulse {
  0%,
  100% {
    opacity: .72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes smart-sidebar-logo-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -7px, 0) scale(1.015);
  }
}

:root[data-ui-mode="simplified"] .smart-sidebar__bg-gif {
  background:
    linear-gradient(180deg, rgba(39, 48, 64, 0.90), rgba(39, 48, 64, 0.94)),
    var(--smart-menu-background-image, url("/altaris_assets/global/images/smartmenubg.gif")) center center / cover no-repeat;
  filter: none;
  transform: none;
}

:root[data-ui-mode="simplified"] .smart-sidebar__bg-canvas {
  display: none;
}

:root[data-ui-mode="simplified"] .smart-sidebar__overlay {
  background: rgba(37, 42, 53, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-ui-mode="simplified"] .smart-sidebar__mode-switch,
:root[data-ui-mode="simplified"] .smart-sidebar__menu-item,
:root[data-ui-mode="simplified"] .smart-sidebar__disable-btn,
:root[data-ui-mode="simplified"] .smart-sidebar__minimize-btn {
  border-radius: 6px;
  box-shadow: none;
}

:root[data-ui-mode="simplified"] .smart-sidebar__menu-item.active {
  background: rgba(var(--accent-rgb), 0.86);
}

@media (prefers-reduced-motion: reduce) {
  .smart-sidebar,
  .smart-sidebar *,
  .smart-sidebar *::before,
  .smart-sidebar *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 900px) {
  .smart-sidebar {
    z-index: 4220;
    height: 100vh;
    height: var(--altaris-admin-layer-viewport-height, 100dvh);
  }

  .smart-sidebar__screen,
  .smart-sidebar__panel {
    height: 100vh;
    height: var(--altaris-admin-layer-viewport-height, 100dvh);
    min-height: 100vh;
    min-height: var(--altaris-admin-layer-viewport-height, 100dvh);
  }
}

@media (max-width: 640px) {
  .smart-sidebar__panel {
    padding:
      calc(8px + var(--safe-top, env(safe-area-inset-top, 0px)))
      max(12px, var(--safe-right, env(safe-area-inset-right, 0px)))
      calc(8px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)))
      max(12px, var(--safe-left, env(safe-area-inset-left, 0px)));
  }

  .smart-sidebar__hero {
    padding: 24px 20px 0;
  }

  .smart-sidebar__logo {
    width: clamp(210px, 64vw, 300px);
  }

  .smart-sidebar__mode-switch {
    width: min(100%, 344px);
  }

  .smart-sidebar__mode-btn {
    min-height: 44px;
    padding-inline: 12px;
  }

  .smart-sidebar__menu-item {
    min-height: clamp(74px, 10.2vh, 92px);
    border-radius: 14px;
  }

  .smart-sidebar__bottom-actions {
    min-height: 52px;
    padding-top: 6px;
  }
}

@media (max-width: 390px) {
  .smart-sidebar {
    --smart-icon-size: 25px;
    --smart-label-size: 10.8px;
  }

  .smart-sidebar__menu-grid {
    padding: 0 8px;
  }

  .smart-sidebar__menu-item {
    min-height: 68px;
    padding: 7px 3px;
  }

  .smart-sidebar__mode-switch {
    width: calc(100% - 6px);
  }

  .smart-sidebar__hero {
    padding-top: 18px;
  }

  .smart-sidebar__logo {
    width: clamp(190px, 58vw, 244px);
  }
}

@media (max-height: 760px) {
  .smart-sidebar {
    --smart-icon-size: clamp(24px, 6.2vw, 34px);
    --smart-label-size: clamp(10.5px, 2.6vw, 13px);
  }

  .smart-sidebar__hero {
    padding-top: clamp(12px, 3vh, 20px);
  }

  .smart-sidebar__logo {
    width: clamp(184px, 54vw, 260px);
  }

  .smart-sidebar__switch-row {
    margin-bottom: 8px;
  }

  .smart-sidebar__menu-item {
    min-height: clamp(64px, 9.2vh, 82px);
    padding-block: 6px;
  }
}

@media (max-height: 700px) and (max-width: 640px) {
  .smart-sidebar__menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
  }
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__bg-gif {
  background:
    radial-gradient(320px 220px at 100% 0, rgba(59,130,246,0.14), transparent 58%),
    linear-gradient(180deg, rgba(39,49,68,0.72), rgba(43,55,78,0.82)),
    var(--smart-menu-background-image, url("/altaris_assets/global/images/smartmenubg.gif")) center center / cover no-repeat;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__overlay {
  background: rgba(31, 38, 54, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__panel {
  background:
    radial-gradient(300px 200px at 100% 0, rgba(59,130,246,0.14), transparent 58%),
    linear-gradient(180deg, rgba(43,55,78,0.94), rgba(39,49,68,0.94));
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__hero {
  padding-top: 28px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__mode-switch,
:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__disable-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__minimize-btn {
  border-radius: 14px;
  border-color: rgba(255,255,255,0.06);
  background: rgba(26, 36, 51, 0.9);
  color: #e5e7eb;
  box-shadow: none;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-grid {
  gap: 12px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(26, 36, 51, 0.9);
  color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(31,38,54,0.16);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item:hover {
  transform: translateY(-2px);
  background: rgba(31, 42, 58, 0.98);
  border-color: rgba(59,130,246,0.16);
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item.active {
  color: #dbeafe;
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.22);
  box-shadow: inset 3px 0 0 #3b82f6;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__bg-gif {
  background:
    radial-gradient(320px 220px at 100% 0, rgba(59,130,246,0.08), transparent 58%),
    linear-gradient(180deg, rgba(244,247,251,0.78), rgba(237,243,249,0.9)),
    var(--smart-menu-background-image, url("/altaris_assets/global/images/smartmenubg.gif")) center center / cover no-repeat;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__overlay {
  background: rgba(226, 234, 244, 0.66);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__panel {
  background:
    radial-gradient(300px 200px at 100% 0, rgba(59,130,246,0.08), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,251,0.98));
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__hero {
  padding-top: 28px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__mode-switch,
:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__disable-btn,
:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__minimize-btn {
  border-radius: 14px;
  border-color: rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  box-shadow: none;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__menu-grid {
  gap: 12px;
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__menu-item {
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__menu-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(59,130,246,0.14);
}

:root[data-theme="light"][data-ui-mode="simplified"] .smart-sidebar__menu-item.active {
  color: #1d4ed8;
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.18);
  box-shadow: inset 3px 0 0 #3b82f6;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__mode-switch,
:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__disable-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__minimize-btn,
:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item {
  border-radius: 8px;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item:hover {
  transform: none !important;
}

:root[data-theme="dark"][data-ui-mode="simplified"] .smart-sidebar__menu-item.active {
  box-shadow: inset 2px 0 0 #3b82f6;
}

.smart-sidebar__bg-gif {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

html.is-legacy-android-webview .smart-sidebar {
  --smart-sidebar-native-top: max(env(safe-area-inset-top, 0px), 24px);
  --safe-top: var(--smart-sidebar-native-top);
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: 100vh;
  height: var(--altaris-admin-layer-viewport-height, 100vh);
}

html.is-legacy-android-webview .smart-sidebar__screen,
html.is-legacy-android-webview .smart-sidebar__panel {
  height: 100vh;
  height: var(--altaris-admin-layer-viewport-height, 100vh);
  min-height: 100vh;
  min-height: var(--altaris-admin-layer-viewport-height, 100vh);
}

html.is-legacy-android-webview .smart-sidebar__bg-gif,
html.is-legacy-android-webview .smart-sidebar__bg-canvas {
  display: none !important;
}

html.is-legacy-android-webview .smart-sidebar__screen,
html.is-legacy-android-webview .smart-sidebar__overlay,
html.is-legacy-android-webview .smart-sidebar__panel {
  background: #20283A !important;
  background-image: none !important;
  color: #f8fafc !important;
}

html.is-legacy-android-webview[data-theme="light"] .smart-sidebar__screen,
html.is-legacy-android-webview[data-theme="light"] .smart-sidebar__overlay,
html.is-legacy-android-webview[data-theme="light"] .smart-sidebar__panel {
  background: #f8fafc !important;
  background-image: none !important;
  color: #111827 !important;
}

html.is-legacy-android-webview .smart-sidebar.is-open .smart-sidebar__panel {
  opacity: 1;
  transform: none;
}
