.app-header {
  flex-shrink: 0;
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  background: #1f2937;
  border-bottom: 1px solid #374151;
  z-index: 10;
}

.app-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.app-brand span {
  color: #818cf8;
}

.app-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-map-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.app-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── Account dropdown ── */
.account-dropdown-wrapper {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  z-index: 200;
  overflow: hidden;
}

.account-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.account-dropdown-item:hover {
  background: #374151;
}

.account-dropdown-divider {
  height: 1px;
  background: #374151;
  margin: 0.2rem 0;
}

.account-dropdown-logout {
  color: #f87171;
}

.account-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}
