/* PHNX590 Admin navigation v2: compact hubs, contextual tabs and command palette. */
body.admin-panel-route.admin-nav-v2-ready .admin-sidebar-navigation,
body.admin-panel-route.admin-nav-v2-ready .admin-top-tabs {
  display: none !important;
}

body.admin-panel-route .admin-hub-navigation {
  min-height: 0;
  padding: 14px 13px 12px;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #24445f transparent;
}

body.admin-panel-route .admin-hub-navigation > p {
  margin: 2px 8px 7px;
  color: #627891;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}

body.admin-panel-route .admin-hub-navigation > button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8da2bc;
  text-align: left;
  background: transparent;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

body.admin-panel-route .admin-hub-navigation > button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 35%, color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 23%, transparent), transparent 45%),
    linear-gradient(90deg, color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 12%, transparent), transparent);
  transition: opacity .18s ease;
}

body.admin-panel-route .admin-hub-navigation > button:hover {
  color: #eaf5ff;
  border-color: rgba(75, 126, 188, .3);
  background: rgba(19, 39, 66, .56);
  transform: translateX(2px);
}

body.admin-panel-route .admin-hub-navigation > button.active,
body.admin-panel-route .admin-hub-navigation > button[aria-current="page"] {
  color: #fff;
  border-color: color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 62%, #1a3554);
  background: linear-gradient(100deg, rgba(14, 35, 63, .98), rgba(8, 23, 42, .98));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .23), inset 3px 0 var(--admin-hub-accent, #37d7ff);
}

body.admin-panel-route .admin-hub-navigation > button.active::before {
  opacity: 1;
}

body.admin-panel-route .admin-hub-navigation > button[data-admin-v2-hub="pilotage"] { --admin-hub-accent: #35d9ff; }
body.admin-panel-route .admin-hub-navigation > button[data-admin-v2-hub="community"] { --admin-hub-accent: #4b8cff; }
body.admin-panel-route .admin-hub-navigation > button[data-admin-v2-hub="economy"] { --admin-hub-accent: #ffad36; }
body.admin-panel-route .admin-hub-navigation > button[data-admin-v2-hub="live"] { --admin-hub-accent: #a978ff; }
body.admin-panel-route .admin-hub-navigation > button[data-admin-v2-hub="settings"] { --admin-hub-accent: #41dfa4; }

body.admin-panel-route .admin-hub-mark {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 34%, #203b57);
  border-radius: 9px;
  color: var(--admin-hub-accent, #37d7ff);
  background: color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 9%, #0a182b);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

body.admin-panel-route .admin-hub-mark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.admin-panel-route .admin-hub-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.admin-panel-route .admin-hub-copy strong,
body.admin-panel-route .admin-hub-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-panel-route .admin-hub-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 760;
}

body.admin-panel-route .admin-hub-copy small {
  color: #657a94;
  font-size: 8.5px;
}

body.admin-panel-route .admin-hub-navigation > button.active .admin-hub-copy small {
  color: #93a8c0;
}

body.admin-panel-route .admin-hub-count {
  position: relative;
  z-index: 1;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #223c59;
  border-radius: 999px;
  color: #7088a4;
  background: #081627;
  font-size: 9px;
}

body.admin-panel-route .admin-hub-navigation > button.active .admin-hub-count {
  border-color: color-mix(in srgb, var(--admin-hub-accent, #37d7ff) 48%, #223c59);
  color: #eef8ff;
}

body.admin-panel-route .admin-workspace-navigation {
  --admin-workspace-accent: #35d9ff;
  position: relative;
  z-index: 18;
  margin: -4px 0 16px;
  padding: 15px;
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 1px solid #1c3551;
  border-radius: 13px;
  background:
    radial-gradient(circle at 88% -80%, color-mix(in srgb, var(--admin-workspace-accent) 23%, transparent), transparent 47%),
    linear-gradient(145deg, rgba(10, 27, 49, .98), rgba(7, 18, 34, .98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .035);
}

body.admin-panel-route .admin-workspace-navigation[data-hub="community"] { --admin-workspace-accent: #4b8cff; }
body.admin-panel-route .admin-workspace-navigation[data-hub="economy"] { --admin-workspace-accent: #ffad36; }
body.admin-panel-route .admin-workspace-navigation[data-hub="live"] { --admin-workspace-accent: #a978ff; }
body.admin-panel-route .admin-workspace-navigation[data-hub="settings"] { --admin-workspace-accent: #41dfa4; }

body.admin-panel-route .admin-workspace-navigation::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -1px;
  height: 1px;
  opacity: .65;
  background: linear-gradient(90deg, transparent, var(--admin-workspace-accent), transparent);
  box-shadow: 0 0 13px color-mix(in srgb, var(--admin-workspace-accent) 42%, transparent);
}

body.admin-panel-route .admin-workspace-navigation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.admin-panel-route .admin-workspace-navigation-head > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 9px;
}

body.admin-panel-route .admin-workspace-kicker {
  grid-column: 1 / -1;
  color: var(--admin-workspace-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

body.admin-panel-route .admin-workspace-navigation-head strong {
  color: #f2f7ff;
  font-size: 18px;
  line-height: 1.15;
}

body.admin-panel-route .admin-workspace-navigation-head small {
  min-width: 0;
  overflow: hidden;
  color: #7187a1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-panel-route .admin-workspace-shortcut {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #60758e;
}

body.admin-panel-route .admin-workspace-shortcut kbd {
  min-width: 25px;
  height: 23px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 1px solid #29415d;
  border-bottom-color: #132840;
  border-radius: 6px;
  color: #9cb0c7;
  background: #0b192b;
  box-shadow: 0 2px 0 #06101e;
  font-family: inherit;
  font-size: 8px;
}

body.admin-panel-route .admin-workspace-shortcut b {
  font-size: 9px;
}

body.admin-panel-route .admin-workspace-shortcut small {
  margin-left: 4px;
  color: #60758e;
  font-size: 8px;
}

body.admin-panel-route .admin-workspace-section-tabs {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 5px;
  scrollbar-width: thin;
  scrollbar-color: #264667 transparent;
  scroll-snap-type: x proximity;
}

body.admin-panel-route .admin-workspace-section-tabs button {
  position: relative;
  flex: 1 0 158px;
  min-width: 0;
  max-width: 235px;
  min-height: 56px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #1d3652;
  border-radius: 9px;
  color: #8499b2;
  text-align: left;
  background: rgba(7, 18, 33, .82);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

body.admin-panel-route .admin-workspace-section-tabs button:hover {
  color: #edf6ff;
  border-color: color-mix(in srgb, var(--admin-workspace-accent) 42%, #1d3652);
  background: rgba(12, 31, 54, .96);
  transform: translateY(-1px);
}

body.admin-panel-route .admin-workspace-section-tabs button.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--admin-workspace-accent) 70%, #1d3652);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--admin-workspace-accent) 18%, #0b1b30), #09172a);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .2), inset 0 -2px var(--admin-workspace-accent);
}

body.admin-panel-route .admin-workspace-section-tabs button > svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #213d5c;
  border-radius: 8px;
  color: #7292b9;
  background: #09182a;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.admin-panel-route .admin-workspace-section-tabs button.active > svg {
  border-color: color-mix(in srgb, var(--admin-workspace-accent) 48%, #213d5c);
  color: var(--admin-workspace-accent);
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--admin-workspace-accent) 46%, transparent));
}

body.admin-panel-route .admin-workspace-section-tabs button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.admin-panel-route .admin-workspace-section-tabs strong,
body.admin-panel-route .admin-workspace-section-tabs small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-panel-route .admin-workspace-section-tabs strong {
  font-size: 10.5px;
}

body.admin-panel-route .admin-workspace-section-tabs small {
  color: #60758e;
  font-size: 8px;
}

body.admin-panel-route .admin-workspace-section-tabs button.active small {
  color: #8da2ba;
}

body.admin-panel-route .admin-workspace-subtabs {
  min-width: 0;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #19314b;
  scrollbar-width: none;
}

body.admin-panel-route .admin-workspace-subtabs::-webkit-scrollbar {
  display: none;
}

body.admin-panel-route .admin-workspace-subtabs[hidden] {
  display: none !important;
}

body.admin-panel-route .admin-subtabs-label {
  flex: 0 0 auto;
  margin-right: 3px;
  color: #5f748e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.admin-panel-route .admin-workspace-subtabs button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #1d3652;
  border-radius: 999px;
  color: #7187a1;
  background: #081628;
  font-size: 8.5px;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

body.admin-panel-route .admin-workspace-subtabs button:hover {
  color: #e7f2ff;
  border-color: color-mix(in srgb, var(--admin-workspace-accent) 43%, #1d3652);
}

body.admin-panel-route .admin-workspace-subtabs button i {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

body.admin-panel-route .admin-workspace-subtabs button.active {
  color: #effaff;
  border-color: color-mix(in srgb, var(--admin-workspace-accent) 62%, #1d3652);
  background: color-mix(in srgb, var(--admin-workspace-accent) 12%, #081628);
}

body.admin-panel-route .admin-workspace-subtabs button.active i {
  border-color: var(--admin-workspace-accent);
  background: var(--admin-workspace-accent);
  box-shadow: 0 0 8px var(--admin-workspace-accent);
}

body.admin-panel-route .admin-command-palette {
  position: fixed;
  z-index: 120;
  top: 66px;
  left: calc(var(--admin-reference-sidebar, 268px) + 20px);
  width: min(610px, calc(100vw - var(--admin-reference-sidebar, 268px) - 40px));
  max-height: min(650px, calc(100dvh - 82px));
  padding: 10px;
  overflow: hidden;
  border: 1px solid #285074;
  border-radius: 13px;
  background: rgba(6, 17, 32, .985);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
}

body.admin-panel-route .admin-command-palette[hidden] {
  display: none !important;
}

body.admin-panel-route .admin-command-palette > header {
  padding: 5px 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #19324c;
}

body.admin-panel-route .admin-command-palette > header span {
  color: #45dcff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

body.admin-panel-route .admin-command-palette > header small {
  color: #60748c;
  font-size: 8px;
}

body.admin-panel-route .admin-command-results {
  max-height: min(565px, calc(100dvh - 145px));
  padding: 7px 0 1px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #285074 transparent;
}

body.admin-panel-route .admin-command-results button {
  min-height: 48px;
  padding: 6px 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #95a9c0;
  text-align: left;
  background: transparent;
}

body.admin-panel-route .admin-command-results button:hover,
body.admin-panel-route .admin-command-results button:focus-visible {
  color: #f1f7ff;
  border-color: #225483;
  outline: none;
  background: linear-gradient(90deg, rgba(20, 82, 139, .28), rgba(13, 38, 65, .45));
}

body.admin-panel-route .admin-command-results button > svg {
  width: 29px;
  height: 29px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #203b58;
  border-radius: 8px;
  color: #62cfea;
  background: #09192c;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.admin-panel-route .admin-command-results button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.admin-panel-route .admin-command-results strong,
body.admin-panel-route .admin-command-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-panel-route .admin-command-results strong {
  font-size: 10.5px;
}

body.admin-panel-route .admin-command-results small {
  color: #637991;
  font-size: 8.5px;
}

body.admin-panel-route .admin-command-results button > b {
  color: #5f7893;
  font-size: 13px;
}

body.admin-panel-route .admin-command-empty {
  margin: 5px 0;
  padding: 22px 14px;
  border: 1px dashed #28445f;
  border-radius: 9px;
  color: #768aa2;
  font-size: 10px;
  text-align: center;
}

@media (min-width: 1041px) {
  body.admin-panel-route.admin-sidebar-compact {
    --admin-reference-sidebar: 88px;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-main-sidebar {
    width: var(--admin-reference-sidebar);
    grid-template-rows: var(--admin-reference-header) minmax(0, 1fr) 0;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-sidebar-brand {
    padding: 0;
    justify-content: center;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-sidebar-brand > div,
  body.admin-panel-route.admin-sidebar-compact .admin-sidebar-profile,
  body.admin-panel-route.admin-sidebar-compact .admin-sidebar-upgrade,
  body.admin-panel-route.admin-sidebar-compact .admin-hub-navigation > p,
  body.admin-panel-route.admin-sidebar-compact .admin-hub-copy,
  body.admin-panel-route.admin-sidebar-compact .admin-hub-count {
    display: none !important;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-sidebar-collapse {
    right: -14px;
    z-index: 4;
    border-color: #285273;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .35);
    transform: rotate(180deg);
  }

  body.admin-panel-route.admin-sidebar-compact .admin-hub-navigation {
    padding: 13px 10px;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-hub-navigation > button {
    min-height: 52px;
    padding: 8px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.admin-panel-route.admin-sidebar-compact .admin-hub-navigation > button.active {
    box-shadow: inset 0 -2px var(--admin-hub-accent, #37d7ff);
  }

  body.admin-panel-route.admin-sidebar-compact .admin-hub-mark {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1040px) {
  body.admin-panel-route .admin-main-sidebar {
    grid-template-rows: 74px 150px minmax(0, 1fr) auto 42px;
  }

  body.admin-panel-route .admin-command-palette {
    left: 14px;
    right: 14px;
    width: auto;
  }

  body.admin-panel-route .admin-workspace-navigation {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  body.admin-panel-route .admin-workspace-navigation {
    margin-bottom: 12px;
    padding: 12px;
    gap: 10px;
    border-radius: 11px;
  }

  body.admin-panel-route .admin-workspace-navigation-head > div {
    grid-template-columns: 1fr;
  }

  body.admin-panel-route .admin-workspace-navigation-head strong {
    font-size: 16px;
  }

  body.admin-panel-route .admin-workspace-navigation-head small,
  body.admin-panel-route .admin-workspace-shortcut {
    display: none;
  }

  body.admin-panel-route .admin-workspace-section-tabs button {
    flex-basis: 154px;
    min-height: 52px;
  }

  body.admin-panel-route .admin-subtabs-label {
    display: none;
  }

  body.admin-panel-route .admin-workspace-subtabs {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  body.admin-panel-route .admin-command-palette {
    top: 64px;
    max-height: calc(100dvh - 76px);
    border-radius: 10px;
  }
}

@media (max-width: 440px) {
  body.admin-panel-route .admin-workspace-section-tabs button {
    flex-basis: 142px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  body.admin-panel-route .admin-workspace-section-tabs button > svg {
    width: 28px;
    height: 28px;
  }

  body.admin-panel-route .admin-command-palette > header small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.admin-panel-route .admin-hub-navigation > button,
  body.admin-panel-route .admin-workspace-section-tabs button {
    transition: none;
  }
}
