/* Menu site commun — Badge Studio */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.15rem;
  background: color-mix(in srgb, #0b1c24 94%, transparent);
  color: #eef7f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-header .brand-mark,
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.brand-mark.sm {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
}

.site-header .brand-text h1,
.site-header .brand-name {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.site-header .brand-text p {
  margin: 0.1rem 0 0;
  color: #8aa4ad;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  color: #9db0b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.site-nav a.active {
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.22);
}
.site-nav a.hidden { display: none !important; }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.site-header .quota-hint {
  color: #8aa4ad;
  font-size: 0.78rem;
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .user-chip,
.site-header .user-label {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.site-header .tool-btn.ghost,
.site-header .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2eef1;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.site-header .tool-btn.ghost:hover,
.site-header .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-header .btn.accent-sm {
  background: #0f766e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}
.site-header .btn.accent-sm:hover { background: #0b5f59; }

.site-header .tool-btn:not(.ghost) {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2eef1;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.site-header .tool-btn:not(.ghost):hover {
  background: rgba(45, 212, 191, 0.12);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #eef7f5;
  border-radius: 8px;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header .quota-hint { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.35rem;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.65rem 0.75rem; }
  .site-header-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .site-header .brand-text p { display: none; }
}
