/* Reversible Luna-only navigation layout. Nothing here targets paid customers. */
html.luna-compact-ui .app-grid,
html.luna-compact-ui.luna-fullscreen .app-grid,
html.luna-compact-ui.luna-embedded .app-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
html.luna-compact-ui.luna-customer-viewport .app-grid {
  grid-template-rows: minmax(0, 1fr) !important;
}
html.luna-compact-ui .app-grid > .workspace {
  grid-column: 1 !important;
  min-width: 0;
}
html.luna-compact-ui .app-grid > .rail[hidden] {
  display: none !important;
}
html.luna-compact-ui .app-grid > .rail:not([hidden]) {
  position: fixed !important;
  display: flex !important;
  flex-direction: column !important;
  top: var(--luna-menu-top, 64px) !important;
  left: var(--luna-menu-left, 12px) !important;
  width: min(352px, calc(100vw - 20px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: var(--luna-menu-height, 72dvh) !important;
  z-index: 150 !important;
  border: 1px solid #769277 !important;
  border-radius: 15px;
  overflow: hidden !important;
  box-shadow: 0 18px 55px #0b2117a3;
  background: #193829;
}
html.luna-compact-ui .app-grid > .rail .rail-head {
  display: block !important;
  position: static !important;
  padding: 15px 17px 11px;
  flex: 0 0 auto;
}
html.luna-compact-ui .app-grid > .rail .rail-head strong {
  font-size: 22px;
}
html.luna-compact-ui .app-grid > .rail .rail-context {
  display: grid !important;
  flex: 0 0 auto;
}
html.luna-compact-ui .app-grid > .rail .rail-foot {
  display: grid !important;
  position: static !important;
  margin-top: 0;
  flex: 0 0 auto;
  padding: 10px 13px;
}
html.luna-compact-ui #featureNav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 11px 12px !important;
  gap: 3px;
  overscroll-behavior: contain;
  scrollbar-width: thin !important;
}
html.luna-compact-ui #featureNav .luna-nav-home,
html.luna-compact-ui #featureNav .luna-main-group {
  display: grid !important;
  align-items: stretch !important;
  align-content: start;
  flex: none !important;
  width: 100%;
  border-right: 0 !important;
  border-top: 1px solid #44664d;
  padding: 8px 0 10px !important;
  gap: 4px;
}
html.luna-compact-ui #featureNav .luna-nav-home { border-top: 0; }
html.luna-compact-ui #featureNav .luna-group-title {
  display: flex !important;
  padding: 11px 9px 8px !important;
}
html.luna-compact-ui #featureNav .nav-item {
  width: 100% !important;
  min-height: 44px;
  white-space: normal !important;
  flex: none !important;
  padding: 9px 11px !important;
}
html.luna-compact-ui #featureNav .nav-current-dot {
  display: none;
}
html.luna-compact-ui #featureNav .nav-item.in-view:not(.active) .nav-current-dot {
  display: block !important;
}
.luna-compact-toolbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 11px;
  padding: 8px 10px;
  border: 1px solid #c7d7c5;
  border-radius: 12px;
  background: #edf3e9;
  box-shadow: 0 3px 14px #183b2710;
  color: #214733;
  flex: 0 0 auto;
}
html.luna-fullscreen .luna-compact-toolbar { top: 60px; }
html.luna-embedded .luna-compact-toolbar { top: 0; }
.luna-compact-toolbar button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid #b6cbb6;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}
.luna-compact-toggle {
  background: #214d36;
  border-color: #214d36 !important;
  color: #fff;
}
.luna-compact-toggle:hover,
.luna-compact-toggle[aria-expanded="true"] { background: #356448; }
.luna-compact-toggle small {
  border: 1px solid #7fa687;
  border-radius: 7px;
  padding: 3px 5px;
  font-size: 10px;
  color: #f2e5bc;
}
.luna-compact-home {
  background: #deeddc;
  color: #183f2a;
  border-color: #8cac8b !important;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #ffffff95;
}
.luna-compact-home:hover,
.luna-compact-home:focus-visible { background: #cce5c9; }
.luna-home-short { display: none; }
.luna-compact-current {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 750;
  color: #5a7560;
}
.luna-compact-reset {
  background: transparent;
  color: #506f55;
}
.luna-compact-reset:hover { background: #dfe9da; }
html.luna-compact-ui.luna-customer-viewport .workspace.luna-customer-focus > .luna-compact-toolbar {
  margin-bottom: 6px;
}
@media (max-width: 800px) {
  html.luna-compact-ui .app-grid > .rail .rail-context { display: none !important; }
  .luna-compact-toolbar { gap: 5px; padding: 6px; margin-bottom: 6px; }
  .luna-compact-toolbar button { padding: 7px 8px; font-size: 11px; min-height: 38px; }
  .luna-compact-current { display: none; }
  .luna-compact-reset { margin-left: auto; }
  .luna-home-long { display: none; }
  .luna-home-short { display: inline; }
  html.luna-fullscreen .luna-compact-toolbar { top: 59px; }
}
@media (max-width: 400px) {
  .luna-compact-home { white-space: nowrap; }
  .luna-compact-toggle small { display: none; }
  .luna-compact-toolbar button { font-size: 10px; padding-inline: 7px; }
}
