/* Waryway suite header — logo | location | empty mid | settings + auth */
/* Dual fallbacks: suite tokens (--bg/--surface/…) then Retronium (--bg-color/--card-bg/…). */
.ww-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border, var(--border-color, #252b38));
  background: var(--bg, var(--bg-color, #0d0f14));
  color: var(--text, var(--text-color, #e2e8f0));
  flex-shrink: 0;
  min-height: 52px;
  box-sizing: border-box;
}

.ww-header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 0 1 auto;
}

.ww-header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.ww-header-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.ww-header-logo:hover img {
  opacity: 0.88;
}

.ww-header-location {
  color: var(--text, var(--text-color, #e2e8f0));
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ww-header-location:hover {
  color: var(--accent, var(--primary-color, #69c9ff));
  text-decoration: none;
}

.ww-header-mid {
  flex: 1 1 auto;
  min-width: 0.5rem;
}

.ww-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.ww-header .icon-btn,
.ww-header-settings {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ww-header .icon-btn:hover,
.ww-header-settings:hover {
  background: var(--surface, var(--card-bg, #161a23));
  text-decoration: none;
}

.ww-header .auth-signin {
  border: 1px solid var(--border, var(--border-color, #252b38));
  background: var(--surface, var(--card-bg, #161a23));
  color: var(--text, var(--text-color, #e2e8f0));
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.ww-header .auth-signin:hover {
  border-color: var(--accent, var(--primary-color, #69c9ff));
}

.ww-app-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  row-gap: 0.45rem;
  padding: 0.45rem 1.25rem;
  border-bottom: 1px solid var(--border, var(--border-color, #252b38));
  background: var(--surface, var(--card-bg, #161a23));
  color: var(--muted, var(--text-light, #8b93a5));
  font-size: 0.88rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .ww-header {
    padding: 0.6rem 0.85rem;
  }
  .ww-header-location {
    font-size: 0.98rem;
  }
}
