/* Smelting site header */
.sm-hdr {
  --hdr-bg: var(--app-secondary-color, #030406);
  --hdr-fg: #ffffff;
  --hdr-muted: rgba(255, 255, 255, 0.72);
  --hdr-accent: var(--app-primary-color, #3c3d5a);
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sm-hdr-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sm-hdr-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.sm-hdr-brand img {
  height: 36px;
  width: auto;
  max-width: min(200px, 46vw);
  display: block;
}
.sm-hdr-spacer { flex: 1 1 auto; }
.sm-hdr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.sm-hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--hdr-fg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
}
.sm-hdr-link:hover,
.sm-hdr-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sm-hdr-link .badge {
  background: #fff;
  color: var(--hdr-bg);
  font-weight: 700;
}
.sm-hdr-google {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sm-hdr-google:hover,
.sm-hdr-google:focus {
  background: #f4f4f7;
  color: #111;
}
.sm-hdr-google svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sm-hdr-account {
  color: var(--hdr-muted);
  font-size: 0.82rem;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .sm-hdr-hide-sm { display: none !important; }
  .sm-hdr-google span.label-full { display: none; }
  .sm-hdr-google span.label-short { display: inline; }
}
@media (min-width: 576px) {
  .sm-hdr-google span.label-short { display: none; }
}
