/* Единая навигация CC */
.__cc-wrap {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg2, #111827);
  border-bottom: 1px solid var(--border, #1e293b);
  position: sticky;
  top: 0;
  z-index: 9999;
  height: 52px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.__cc-logo {
  font-weight: 600;
  color: var(--text, #e2e8f0) !important;
  text-decoration: none !important;
  font-size: 15px;
  white-space: nowrap;
  margin-right: 8px;
}
.__cc-links {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.__cc-link {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text2, #94a3b8) !important;
  text-decoration: none !important;
  font-size: 13px;
  transition: all .15s;
  white-space: nowrap;
  background: transparent;
}
.__cc-link:hover {
  background: var(--bg3, #1e293b);
  color: var(--text, #e2e8f0) !important;
}
.__cc-link.active {
  background: var(--accent, #3b82f6);
  color: #fff !important;
}
.__cc-actions { display: flex; gap: 8px; align-items: center; }
.__cc-actions button {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg3, #1e293b);
  color: var(--text, #e2e8f0);
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.__cc-actions button:hover { background: var(--bg4, #334155); }
.__cc-logout { background: transparent !important; color: var(--text2, #94a3b8) !important; }
.__cc-logout:hover { background: var(--red, #ef4444) !important; color: #fff !important; }

/* === Force light theme поддержку для graph.html и других страниц === */
body.light { background: #f5f5f8 !important; color: #222 !important; }
body.light .__cc-wrap { background: #ffffff !important; border-bottom-color: #ddd !important; }
body.light .__cc-link { color: #555 !important; }
body.light .__cc-link:hover { background: #f0f0f5 !important; color: #111 !important; }
body.light .__cc-link.active { background: #3b82f6 !important; color: #fff !important; }
body.light .__cc-logo { color: #111 !important; }
body.light .__cc-actions button { background: #f0f0f5 !important; color: #333 !important; }
body.light .__cc-actions button:hover { background: #e0e0eb !important; }
