/* ══════════════════════════════════════════════════════════════
   ClaudeMeme · 顶栏统一样式 (三页共用，移动 + PC 一致)
   ══════════════════════════════════════════════════════════════ */

.cm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e7dfd0;
}

.cm-topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
}

.cm-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.cm-topbar__logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}

.cm-topbar__name {
  font-family: 'Inter', 'PingFang SC', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #3a2f1f;
  white-space: nowrap;
}

.cm-topbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.cm-topbar__tab {
  padding: 6px 12px;
  font-family: 'Inter', 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b5b46;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.cm-topbar__tab:hover {
  background: #f3eee5;
  color: #3a2f1f;
}

.cm-topbar__tab.is-active {
  background: #f3eee5;
  color: #c2410c;
  font-weight: 600;
}

.cm-topbar__right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #6b5b46;
  flex-shrink: 0;
}

.cm-topbar__voice {
  display: none; /* 默认隐藏，仪表板 JS 解锁前会显示 */
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border: 1px solid #e7dfd0;
  border-radius: 9999px;
  cursor: pointer;
  color: #6b5b46;
  background: transparent;
  white-space: nowrap;
}

.cm-topbar__voice:hover {
  background: #f3eee5;
  color: #3a2f1f;
}

.cm-topbar__voice.is-visible {
  display: inline-flex;
}

.cm-topbar__voice.is-on {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.cm-topbar__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: #6b5b46;
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  user-select: none;
}

.cm-topbar__logout:hover {
  background: #f3eee5;
  color: #c2410c;
}

/* 窄屏隐藏品牌名（保留 logo） */
@media (max-width: 1023px) {
  .cm-topbar__name { display: none; }
  .cm-topbar__inner { padding: 0 12px; height: 48px; }
  .cm-topbar__tab { padding: 5px 9px; font-size: 13px; }
  .cm-topbar__voice { font-size: 11px; padding: 3px 8px; }
}
