:root {
  --yz-header-height: 44px;
  --yz-logo-height: 32px;
  --yz-logo-height-mobile: 28px;
  --header-bg: #f8fafc;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--yz-header-height);
  min-height: var(--yz-header-height);
  max-height: var(--yz-header-height);
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  box-shadow: none;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.menu-btn {
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #5f6368;
  padding: 0.1rem 0.55rem 0.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  background: #f3f4f6;
}

.header-avatar-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.header-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #f97316;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo-full {
  height: var(--yz-logo-height);
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  max-height: var(--yz-logo-height);
}

.brand-logo-text {
  display: inline-flex;
  align-items: center;
  min-height: var(--yz-logo-height);
  font-size: 1.4rem;
  font-weight: 800;
  color: #173866;
  letter-spacing: 0.01em;
}

.header-login-btn {
  margin-right: 0.75rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f2994a;
  background: #f2994a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-login-btn:hover {
  background: #e4842f;
  border-color: #e4842f;
}

@media (max-width: 767px) {
  .brand-logo-full {
    height: var(--yz-logo-height-mobile);
    max-height: var(--yz-logo-height-mobile);
  }
}

@media (max-width: 640px) {
  .header-login-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    max-width: 50px;
  }
}

@media (min-width: 768px) {
  .menu-btn {
    display: inline-flex !important;
  }

  .hide-on-desktop,
  .menu-btn.hide-on-desktop {
    display: none !important;
  }
}
