/* Aetherion stable shell brand styling */
.app-sidebar .brand,
.app-sidebar .aetherion-brand-lockup {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 72px;
  margin: 0 0 24px;
  padding: 2px 0 8px;
  color: #f5ead8;
  text-decoration: none;
  letter-spacing: 0;
}

.app-sidebar .brand:hover,
.app-sidebar .aetherion-brand-lockup:hover { color: #fff7ea; }

.aetherion-brand-image {
  display: block !important;
  width: min(205px, 100%);
  max-width: 205px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 26px rgba(216, 179, 109, 0.12));
}

.aetherion-brand-copy,
.aetherion-brand-mark,
.aetherion-brand-name,
.aetherion-brand-tagline { display: none !important; }

.app-sidebar .app-nav { display: grid; gap: 8px; }
.app-sidebar .app-nav a { text-decoration: none; }

html.aetherion-admin-pending body.admin-page .app-layout { display: none !important; }
html.aetherion-admin-pending body.admin-page,
html.aetherion-admin-denied body { background: #100d0a; }

@media (max-width: 900px) {
  .app-sidebar .brand,
  .app-sidebar .aetherion-brand-lockup { min-height: 58px; margin-bottom: 18px; }
  .aetherion-brand-image { width: min(185px, 100%); }
}


/* Admin Menu Fix 1 — admin-only menu structure and responsive behavior */
body.admin-page .app-sidebar.aetherion-admin-sidebar-fixed,
body[data-admin-auth] .app-sidebar.aetherion-admin-sidebar-fixed {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.admin-page .app-nav.aetherion-admin-nav-fixed,
body[data-admin-auth] .app-nav.aetherion-admin-nav-fixed {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 170px);
  padding-right: 0.2rem;
  scrollbar-width: thin;
}

.aetherion-admin-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.aetherion-admin-nav-heading {
  color: rgba(236, 214, 174, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin: 0.4rem 0 0.1rem;
  text-transform: uppercase;
}

.aetherion-admin-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  width: 100%;
}

.aetherion-admin-nav-links a {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  body.admin-page .app-layout,
  body[data-admin-auth] .app-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.admin-page .app-sidebar.aetherion-admin-sidebar-fixed,
  body[data-admin-auth] .app-sidebar.aetherion-admin-sidebar-fixed {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 214, 174, 0.14);
  }

  body.admin-page .app-nav.aetherion-admin-nav-fixed,
  body[data-admin-auth] .app-nav.aetherion-admin-nav-fixed {
    max-height: none;
    overflow: visible;
    display: block;
    padding: 0;
  }

  body.admin-page .aetherion-admin-nav-section,
  body[data-admin-auth] .aetherion-admin-nav-section {
    margin: 0.65rem 0;
  }

  body.admin-page .aetherion-admin-nav-links,
  body[data-admin-auth] .aetherion-admin-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  body.admin-page .aetherion-admin-nav-links a,
  body[data-admin-auth] .aetherion-admin-nav-links a {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    padding: 0.72rem 0.7rem;
  }
}

@media (max-width: 520px) {
  body.admin-page .aetherion-admin-nav-links,
  body[data-admin-auth] .aetherion-admin-nav-links {
    grid-template-columns: 1fr;
  }
}

/* Customer Sidebar Logo Dot Fix v1 — visual-only */
body.app-page .app-sidebar,
body.aetherion-customer-shell-page .app-sidebar {
  list-style: none !important;
}

body.app-page .app-sidebar .brand,
body.app-page .app-sidebar .aetherion-brand-lockup,
body.aetherion-customer-shell-page .app-sidebar .brand,
body.aetherion-customer-shell-page .app-sidebar .aetherion-brand-lockup {
  list-style: none !important;
  position: relative !important;
}

body.app-page .app-sidebar .brand::before,
body.app-page .app-sidebar .brand::after,
body.app-page .app-sidebar .aetherion-brand-lockup::before,
body.app-page .app-sidebar .aetherion-brand-lockup::after,
body.aetherion-customer-shell-page .app-sidebar .brand::before,
body.aetherion-customer-shell-page .app-sidebar .brand::after,
body.aetherion-customer-shell-page .app-sidebar .aetherion-brand-lockup::before,
body.aetherion-customer-shell-page .app-sidebar .aetherion-brand-lockup::after {
  content: none !important;
  display: none !important;
}

body.app-page .app-sidebar .brand::marker,
body.app-page .app-sidebar .aetherion-brand-lockup::marker,
body.aetherion-customer-shell-page .app-sidebar .brand::marker,
body.aetherion-customer-shell-page .app-sidebar .aetherion-brand-lockup::marker {
  content: "" !important;
  font-size: 0 !important;
}

body.app-page .app-sidebar .aetherion-brand-image,
body.aetherion-customer-shell-page .app-sidebar .aetherion-brand-image {
  display: block !important;
  margin-left: 0 !important;
}
