:root {
  --cm-bg: #050505;
  --cm-surface: #121212;
  --cm-glass: rgba(20, 20, 20, 0.6);
  --cm-border: rgba(255, 255, 255, 0.08);
  --cm-accent: #3e90ff;
  --cm-accent-strong: #0A84FF;
  --cm-text: #FFFFFF;
  --cm-muted: #86868b;
  --cm-danger: #ff453a;
  --cm-font: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --cm-serif: "Instrument Serif", Georgia, serif;
}

body.cm-chrome {
  margin: 0;
  background: var(--cm-bg);
  color: var(--cm-text);
  font-family: var(--cm-font);
  -webkit-font-smoothing: antialiased;
  padding-top: 88px;
  padding-bottom: 140px;
  min-height: 100vh;
  overflow-x: hidden;
}

body.cm-chrome a { color: inherit; }

.cm-topbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.cm-brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.cm-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ac8ff, #3e90ff 45%, #7b2cff);
  box-shadow: 0 0 10px rgba(62, 144, 255, 0.55);
}

.cm-brand-text {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cm-profile-top {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3e90ff 0%, #7b2cff 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(62, 144, 255, 0.35);
  overflow: hidden;
  padding: 0;
}

.cm-profile-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.cm-dock-wrapper {
  position: fixed;
  bottom: 28px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.cm-dock {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  padding: 12px 16px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.cm-dock-btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #888;
  font-size: 20px;
  text-decoration: none;
  transition: 0.25s;
}

.cm-dock-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-8px) scale(1.1);
}

.cm-dock-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cm-dock-btn.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--cm-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cm-accent);
}

.cm-dock-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

.cm-dock-logout { color: var(--cm-danger) !important; }

.cm-dock-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #3e90ff 0%, #7b2cff 100%);
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.cm-dock-initial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Keep page content tall enough so footer sits below the fold when lists are short */
.cm-main-fill {
  min-height: calc(100vh - 260px);
}

.cm-page-title {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.cm-page-title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.cm-page-title p {
  margin: 8px 0 0;
  color: var(--cm-muted);
  font-size: 0.95rem;
}
