/* Project AlliX 4.2.1 — shared admin menu. Navigation visibility only;
   all admin endpoints must retain their own authorization checks. */
.header .ax42-admin-entry { position: relative; list-style: none; }
.header .ax42-admin-menu { position: relative; }
.header .ax42-admin-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 8px; border: 1px solid transparent;
  border-radius: 8px; font-size: .86rem; font-weight: 750;
  color: #84e8df; background: transparent; line-height: 1.4;
}
.header .ax42-admin-menu > summary::-webkit-details-marker { display: none; }
.header .ax42-admin-menu > summary::marker { content: ''; }
.header .ax42-admin-menu > summary:hover,
.header .ax42-admin-menu[open] > summary,
.header .ax42-admin-menu > summary.ax42-admin-current {
  border-color: #315963; background: #142a31; color: #ebffff;
}
.header .ax42-admin-menu > summary:focus-visible {
  outline: 3px solid #79f2e8; outline-offset: 3px;
}
.header .ax42-admin-menu .ax42-admin-list {
  display: flex; flex-direction: column; align-items: stretch; gap: 1px;
  list-style: none; position: absolute; z-index: 120;
  top: calc(100% + 7px); right: 0;
  width: max-content; min-width: 238px;
  margin: 0; padding: 6px; border-radius: 12px;
  background: #0d2028; border: 1px solid #37545f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .46);
}
.header .nav-flex .ax42-admin-list a {
  box-sizing: border-box; width: 100%; display: block;
  padding: 11px 12px; border-radius: 7px; text-decoration: none;
  color: #d6e9e9; font-size: .88rem; font-weight: 550; line-height: 1.35;
}
.header .nav-flex .ax42-admin-list a:hover,
.header .nav-flex .ax42-admin-list a:focus-visible,
.header .nav-flex .ax42-admin-list a[aria-current="page"] {
  color: #fff; background: #1a4149;
}
@media (max-width: 1060px) {
  .header .ax42-admin-entry { width: 100%; border-top: 1px solid #2b444b; margin-top: 8px; padding-top: 7px; }
  .header .ax42-admin-menu > summary { width: 100%; padding: 11px 8px; box-sizing: border-box; font-size: .95rem; }
  .header .ax42-admin-menu .ax42-admin-list {
    position: static; top: auto; right: auto; box-sizing: border-box;
    width: 100%; min-width: 0; box-shadow: none; margin-top: 3px;
    border-radius: 8px; background: #10242d;
  }
  .header .nav-flex .ax42-admin-list a { white-space: normal; padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .ax42-admin-menu > summary { scroll-behavior: auto; }
}
