.app-header.app-shell-enhanced {
  position: sticky !important;
  top: 0;
  z-index: 90;
  width: 100%;
  background: linear-gradient(180deg, #050506 0%, #101114 100%);
  border-bottom: 1px solid #2e3038;
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
  overflow: visible;
}

.app-header.app-shell-enhanced .app-header-inner {
  width: 100%;
  margin: 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}

.app-header.app-shell-enhanced .app-brand-link,
.app-header.app-shell-enhanced .app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fafafa;
  font-weight: 800;
  letter-spacing: .2px;
  min-width: 0;
}

.app-header.app-shell-enhanced .app-brand-link img,
.app-header.app-shell-enhanced .logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  outline: 0;
}

.app-header.app-shell-enhanced .app-brand-title {
  color: #fafafa;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.app-header.app-shell-enhanced .app-brand-sub {
  color: #d4d4d8;
  font-size: 12px;
  margin-top: 2px;
}

.app-header.app-shell-enhanced .app-page-label {
  display: none !important;
}

.app-shell-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.app-shell-server-card {
  border: 1px solid #3f434f;
  background: #1e2026;
  color: #f4f4f5;
  border-radius: 12px;
  padding: 8px 12px;
  width: min(700px, 95vw);
}

.app-shell-server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
}

.app-shell-server-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.app-shell-server-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .25px;
  color: #d4d4d8;
  margin: 0;
  white-space: nowrap;
}

.app-shell-server-line {
  font-size: 11px;
  color: #f4f4f5;
  margin: 0 0 2px;
  line-height: 1.2;
}

.app-shell-server-line:last-child {
  margin-bottom: 0;
}

.app-shell-server-badge {
  display: inline-block;
  border: 1px solid #3f434f;
  border-radius: 999px;
  padding: 2px 7px;
  background: #22252d;
  font-size: 10px;
  line-height: 1.15;
}

.app-shell-server-badge.sync-ok {
  border-color: #166534;
  background: #14532d;
  color: #dcfce7;
}

.app-shell-server-badge.sync-ko {
  border-color: #991b1b;
  background: #7f1d1d;
  color: #fee2e2;
}

.app-shell-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.app-shell-menu-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-shell-menu-group.right {
  margin-left: auto;
}

.app-shell-menu-item {
  position: relative;
  display: inline-flex;
}

.app-shell-menu-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.app-shell-menu-trigger {
  border: 1px solid #111111;
  background: #000000;
  color: #f4f4f5;
  border-radius: 0;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  min-width: 126px;
  text-align: left;
}

.app-shell-menu-trigger::after {
  content: '▾';
  margin-left: 8px;
  font-size: 11px;
  color: #d4d4d8;
}

.app-shell-menu-item:hover .app-shell-menu-trigger,
.app-shell-menu-item:focus-within .app-shell-menu-trigger {
  background: #f56600;
  border-color: #f56600;
  color: #ffffff;
}

.app-shell-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #000000;
  border: 1px solid #111111;
  border-radius: 0;
  padding: 6px;
  box-shadow: 0 14px 32px rgba(0,0,0,.34);
  display: none;
  z-index: 95;
}

.app-shell-menu-group.right .app-shell-menu-dropdown {
  left: auto;
  right: 0;
}

.app-shell-menu-item:hover .app-shell-menu-dropdown,
.app-shell-menu-item:focus-within .app-shell-menu-dropdown {
  display: block;
}

.app-shell-link {
  width: 100%;
  display: block;
  text-align: left;
  padding: 9px 10px;
  color: #f4f4f5;
  border-radius: 0;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.app-shell-link:hover,
.app-shell-link:focus-visible {
  background: #f56600;
  color: #ffffff;
  outline: none;
}

.app-shell-link.danger {
  color: #fca5a5;
}

@media (max-width: 980px) {
  .app-header.app-shell-enhanced .app-header-inner {
    padding: 10px 12px;
  }

  .app-shell-meta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .app-shell-menu {
    align-items: stretch;
  }

  .app-shell-menu-group,
  .app-shell-menu-group.right {
    width: 100%;
  }

  .app-shell-menu-group.right {
    margin-left: 0;
    justify-content: flex-end;
  }

  .app-shell-menu-item {
    flex: 1 1 auto;
  }

  .app-shell-menu-trigger {
    width: 100%;
    min-width: 0;
  }

  .app-shell-menu-dropdown {
    width: 100%;
    min-width: 0;
  }
}
