/* FANTIME · barra lateral global (todas las vistas con workspace) */
.cgm-workspace {
  --ft-side-1: #101d34;
  --ft-side-2: #0c1525;
  --ft-side-line: rgba(255, 255, 255, 0.08);
  --ft-accent: #2f63ff;
  --ft-accent-2: #5b8cff;
  --ft-grad: linear-gradient(135deg, var(--ft-accent), var(--ft-accent-2));
  --ft-r-md: 14px;
  --ft-canvas: #f5f6f9;
}

html:has(.cgm-workspace),
body.cgm-shell:has(.cgm-workspace) {
  background: var(--ft-canvas);
}

.cgm-workspace .cgm-sidebar,
.cgm-workspace .cgm-sidebar--slim {
  background: linear-gradient(185deg, var(--ft-side-1), var(--ft-side-2));
  border-right: 1px solid var(--ft-side-line);
  color: #c7cfde;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cgm-workspace .cgm-sidebar__tool {
  color: #9aa4bb;
  border-radius: var(--ft-r-md);
  border: none;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.cgm-workspace .cgm-sidebar__toolLbl {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.cgm-workspace .cgm-sidebar__toolIco {
  color: currentColor;
  opacity: 0.92;
}

.cgm-workspace .cgm-sidebar__tool:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cgm-workspace .cgm-sidebar__tool:hover:not(:disabled) .cgm-sidebar__toolIco {
  opacity: 1;
}

.cgm-workspace .cgm-sidebar__tool.is-active {
  background: linear-gradient(90deg, rgba(47, 99, 255, 0.22), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-weight: 600;
  position: relative;
  border: none;
  box-shadow: none;
}

.cgm-workspace .cgm-sidebar__tool.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ft-grad);
}

.cgm-workspace .cgm-sidebar__tool.is-active .cgm-sidebar__toolIco {
  color: var(--ft-accent-2);
  opacity: 1;
}

.cgm-workspace .cgm-sidebar__tool--disabled,
.cgm-workspace .cgm-sidebar__tool:disabled {
  opacity: 0.4;
}

.cgm-workspace .cgm-sidebar__rail {
  border-top-color: var(--ft-side-line);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.cgm-workspace .cgm-sidebar__iconBtn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.cgm-workspace .cgm-sidebar__iconBtn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cgm-workspace .cgm-sidebar__profileBtn {
  border-color: rgba(255, 255, 255, 0.18);
}

.cgm-workspace .cgm-sidebar__profileInit {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cgm-workspace .cgm-profileMenu__drop {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.cgm-workspace .cgm-profileMenu__name {
  font-weight: 700;
}

.cgm-workspace .cgm-profileMenu__item {
  font-weight: 600;
  font-size: 14px;
}

.cgm-workspace .cgm-platformBar {
  display: flex;
}

.cgm-workspace .cgm-mainStack {
  background: var(--ft-canvas);
}

.cgm-workspace .cgm-main {
  background: var(--ft-canvas);
}

@media (max-width: 560px) {
  .cgm-workspace .cgm-sidebar__tool,
  .cgm-workspace .cgm-sidebar__toolLbl {
    font-size: 12px;
  }
}
