.app-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #111827;
  background: #1f2937;
  color: #f8fafc;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.app-header-left,
.app-header .header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header-left {
  flex: 1 1 auto;
  overflow: hidden;
}

.app-header .header-logo-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.app-header .header-logo {
  width: auto;
  height: 30px;
  display: block;
  object-fit: contain;
}

.app-header .app-header-menu {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.app-header .header-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.app-header .app-header-user {
  max-width: 220px;
  overflow: hidden;
  color: #e5e7eb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header .ctrl-btn {
  min-height: 28px;
  padding: 4px 8px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #334155;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.app-header .ctrl-btn[hidden] {
  display: none;
}

.app-header .ctrl-btn:hover {
  border-color: #64748b;
  background: #3b4b60;
}

.app-header .ctrl-btn.is-active {
  border-color: #1e40af;
  background: #1d4ed8;
  color: #fff;
}

.app-header-context-button {
  flex: 0 0 auto;
}
