/* ============ Header ============ */
header.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 10px;
  margin-bottom: 28px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #ffffff;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}
.nav-meta-badge {
  display: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--soft);
  padding: 6px 14px;
  margin-left: 8px;
}
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 var(--hi), var(--lift-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.theme-toggle-btn:hover { transform: scale(1.05); }
.theme-toggle-btn:active { transform: scale(0.95); }
.theme-toggle-btn:focus { outline: none; }
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.theme-toggle-btn svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
