/* CyberCompany Signature navigation, based on C4 Command Center. */
:root {
  --cc-profile-glass: linear-gradient(138deg, #41434ae8, #25272ce6 57%, #30323aeb);
  --cc-profile-rim: #555861;
  --cc-profile-row-hover: #ffffff0e;
  --cc-profile-shadow: 0 10px 27px #05060865;
  --cc-profile-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 3 5 5-5 5'/%3E%3C/svg%3E");
}

:root:is([data-theme="light"], [data-app-mode="light"]) {
  --cc-profile-glass: linear-gradient(140deg, #ffffffed, #f5f7fbe8 62%, #fffffff2);
  --cc-profile-rim: #c6ccd6;
  --cc-profile-row-hover: #171b2510;
  --cc-profile-shadow: 0 8px 22px #39405226;
}

html:root body :is(.ccuc-menu, .MuiMenu-paper.cfo-profile-menu, .ccuc-dialog, .cfo-user-dialog .studio-dialog-inner) {
  background: var(--cc-profile-glass) !important;
  border-color: var(--cc-profile-rim) !important;
  box-shadow: var(--cc-profile-shadow) !important;
  backdrop-filter: blur(8px);
}

html:root body :is(.ccuc-menu, .MuiMenu-paper.cfo-profile-menu) {
  border-radius: 20px !important;
}

html:root body :is(.ccuc-dialog-head, .cfo-user-dialog .studio-dialog-inner > header) {
  background: transparent !important;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu, .cfo-profile-menu, .cfo-mobile-user-menu)
  :is(button[role="menuitem"], button[data-ccuc-open], button[data-user-settings], .MuiMenuItem-root, .ccuc-logout, nav > button) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 550;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu, .cfo-profile-menu, .cfo-mobile-user-menu)
  :is(button[role="menuitem"], button[data-ccuc-open], button[data-user-settings], .MuiMenuItem-root, .ccuc-logout, nav > button)
  :is(.ccuc-menu-icon, .profile-menu-icon, .cfo-setting-icon) {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu, .cfo-profile-menu, .cfo-mobile-user-menu)
  :is(button[data-ccuc-open], button[data-user-settings], .ccuc-menu-items > button, .MuiMenuItem-root, nav > button) > span:nth-child(2) {
  min-width: 0;
  text-align: center;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu, .cfo-profile-menu, .cfo-mobile-user-menu)
  :is(button[data-ccuc-open], button[data-user-settings], .ccuc-menu-items > button, .MuiMenuItem-root, nav > button):not(.ccuc-logout):not(:has(> svg:last-child))::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: var(--cc-profile-chevron) center / contain no-repeat;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu) button:has(> em) {
  row-gap: 2px;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu) button > em {
  justify-self: center;
  grid-column: 2;
  grid-row: 2;
  max-inline-size: 100%;
  white-space: normal;
  text-align: center;
}

html:root body :is(.ccuc-menu, .ccuc-mobile-menu, .cfo-profile-menu, .cfo-mobile-user-menu)
  :is(button[role="menuitem"], button[data-ccuc-open], button[data-user-settings], .MuiMenuItem-root, .ccuc-logout, nav > button):is(:hover, :focus-visible, .Mui-focusVisible),
html:root body :is(.ccuc-tabs, .cfo-settings-nav) button:not(.active, [aria-selected="true"], [aria-current="page"]):is(:hover, :focus-visible) {
  background: var(--cc-profile-row-hover) !important;
}

html:root body :is(.ccuc-tabs, .cfo-settings-nav) button :is(.ccuc-tab-icon, .cfo-setting-icon) {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html:root body :is(.ccuc-dialog-head .ccuc-close, .cfo-user-dialog header > button) {
  display: grid;
  place-items: center;
  padding: 0;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:root body :is(.ccuc-dialog-head .ccuc-close, .cfo-user-dialog header > button):is(:hover, :focus-visible) {
  background: var(--cc-profile-row-hover) !important;
}

html:root body :is(.topbar, .studio-header) :is(
  #cc-editor-launch, #cc-help-launch, #globalSearchBtn, #globalSearchButton, #languageToggle,
  #voiceModeTop, #voiceModeToggle, #themeToggle, #notificationsBtn, #notificationButton, #cc-rail-toggle,
  #openSidebar, #mobileMenuBtn, .mobile-menu-button, .top-icon-button, .cc-language-toggle,
  .studio-icon, .cfo-voice, #profileButton, .profile-button, .cfo-profile-button
) {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html:root body :is(.topbar, .studio-header) :is(#profileButton, .profile-button, .cfo-profile-button) {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  padding-inline: 3px !important;
}

html:root body :is(.topbar, .studio-header) :is(
  .profile > div:not(.avatar), .user-mini > span, .sales-profile-copy, .profile-button .profile-copy, .cfo-profile-button .cfo-user-copy
) { display: none !important; }

html:root body :is(.topbar, .studio-header)
  :is(#voiceModeTop, #voiceModeToggle) .voice-mode-icon {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:root body :is(.topbar, .studio-header) :is(
  #cc-editor-launch, #cc-help-launch, #globalSearchBtn, #globalSearchButton, #languageToggle,
  #voiceModeTop, #voiceModeToggle, #themeToggle, #notificationsBtn, #notificationButton, #cc-rail-toggle,
  #openSidebar, #mobileMenuBtn, .mobile-menu-button, .top-icon-button, .cc-language-toggle,
  .studio-icon, .cfo-voice, #profileButton, .profile-button, .cfo-profile-button
):not(:disabled, [aria-disabled="true"]):is(:focus-visible, [aria-expanded="true"]) {
  background: var(--cc-profile-row-hover) !important;
}

@media (hover: hover) and (pointer: fine) {
  html:root body :is(.topbar, .studio-header) :is(
    #cc-editor-launch, #cc-help-launch, #globalSearchBtn, #globalSearchButton, #languageToggle,
    #voiceModeTop, #voiceModeToggle, #themeToggle, #notificationsBtn, #notificationButton, #cc-rail-toggle,
    #openSidebar, #mobileMenuBtn, .mobile-menu-button, .top-icon-button, .cc-language-toggle,
    .studio-icon, .cfo-voice, #profileButton, .profile-button, .cfo-profile-button
  ):not(:disabled, [aria-disabled="true"]):hover {
    background: var(--cc-profile-row-hover) !important;
  }
}

html:root body :is(#sidebar, .cfo-desktop-menu, .cfo-drawer-body) :is(
  .nav-item-icon, .nav-icon, .ceo-nav-icon, .nav-item > span:first-child:has(> svg), .cc-feedback-icon, [data-cc-nav-icon],
  .sales-nav-disclosure, .cfo-nav-chevron, .cc-sidebar-mobile-close,
  .mobile-sidebar-close, .cfo-drawer-heading > button
) {
  color: inherit;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

html:root body :is(#sidebar, .cfo-desktop-menu, .cfo-drawer-body)
  :is(.nav-item-icon, .nav-icon, .ceo-nav-icon, .nav-item > span:first-child:has(> svg), .cc-feedback-icon, [data-cc-nav-icon])::before {
  display: none !important;
}
