.cgm-app, .cgm-auth-shell {
  --cgm-bg: #fbfcff;
  --cgm-card: rgba(255, 255, 255, 0.86);
  --cgm-card2: rgba(255, 255, 255, 0.92);
  --cgm-border: rgba(15, 23, 42, 0.12);
  --cgm-text: #0f172a;
  --cgm-muted: rgba(15, 23, 42, 0.65);
  --cgm-primary: #1d4ed8;
  --cgm-danger: #dc2626;
  --cgm-success: #16a34a;

  color: var(--cgm-text);
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.cgm-login {
  --cgm-login-bg1: #1a1033;
  --cgm-login-bg2: #2a1a52;
  --cgm-login-accent1: #ff2d95;
  --cgm-login-accent2: #4b7bff;
  --cgm-login-panel: rgba(255, 255, 255, 0.06);
  --cgm-login-border: rgba(255, 255, 255, 0.14);
  --cgm-login-text: rgba(255, 255, 255, 0.92);
  --cgm-login-muted: rgba(255, 255, 255, 0.68);

  color: var(--cgm-login-text);
  padding: 0;
  max-width: none;
  margin: 0;
}

html, body.cgm-shell {
  height: 100%;
}

html:has(body.cgm-shell) {
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

body.cgm-shell {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  background:
    radial-gradient(900px 600px at 18% 70%, rgba(255, 45, 149, 0.22), transparent 55%),
    radial-gradient(900px 600px at 55% 15%, rgba(75, 123, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--cgm-login-bg1, #1a1033) 0%, var(--cgm-login-bg2, #2a1a52) 55%, #1b1336 100%);
}

/* Dashboard: body anclado al viewport (evita cortes con barra de tareas / UI del navegador) */
html:has(body.cgm-shell .cgm-workspace) {
  height: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #fbfcff;
  /* admin-bar.css asigna scroll-padding al html aun sin barra visible */
  scroll-padding-top: 0;
}

/* Por si algún plugin imprime #wpadminbar igualmente: no mostrar borde/fondo residual */
body.cgm-shell:has(.cgm-workspace) #wpadminbar {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.cgm-shell:has(.cgm-workspace) {
  position: fixed;
  inset: 0;
  width: 100%;
  /* % respecto al ICB a veces descuadra con barras del SO / navegador; vh encaja mejor con el área útil */
  height: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fbfcff;
  box-sizing: border-box;
}

body.cgm-shell .cgm-shell__entry {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.cgm-login {
  min-height: 100vh;
}

.cgm-login__wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 18% 70%, rgba(255, 45, 149, 0.22), transparent 55%),
    radial-gradient(900px 600px at 55% 15%, rgba(75, 123, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--cgm-login-bg1) 0%, var(--cgm-login-bg2) 55%, #1b1336 100%);
  box-shadow: none;
}

.cgm-login__hero {
  position: relative;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.cgm-login__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 500px at 0% 85%, rgba(255, 45, 149, 0.35), transparent 60%),
    radial-gradient(650px 520px at 30% 20%, rgba(75, 123, 255, 0.25), transparent 62%);
  pointer-events: none;
}

.cgm-login__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cgm-hero-image, none);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 14% 85%;
  opacity: 0.92;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35));
}

.cgm-login__brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

.cgm-login__brandmark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, rgba(75,123,255,0.95), rgba(255,45,149,0.85));
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

.cgm-login__brandtext {
  font-weight: 800;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

.cgm-login__panel {
  display: grid;
  place-items: center;
  padding: 28px 22px;
  background: rgba(0, 0, 0, 0.14);
  border-left: 1px solid rgba(255,255,255,0.10);
}

.cgm-login__panelInner {
  width: 100%;
  max-width: 360px;
  padding: 22px;
  border-radius: 18px;
  background: var(--cgm-login-panel);
  border: 1px solid var(--cgm-login-border);
  backdrop-filter: blur(12px);
}

.cgm-login__title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.6px;
  font-weight: 900;
}

.cgm-login__subtitle {
  margin: 10px 0 18px;
  color: var(--cgm-login-muted);
}

.cgm-login__form {
  display: grid;
  gap: 12px;
}

.cgm-login__label span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--cgm-login-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cgm-login__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.cgm-login__input:focus {
  border-color: rgba(75, 123, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(75, 123, 255, 0.18);
}

.cgm-login__submit {
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(75,123,255,0.92), rgba(60,96,210,0.96));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.cgm-login__submit:hover {
  filter: brightness(1.05);
}

.cgm-login__links {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.cgm-login__link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-weight: 700;
}

.cgm-login__link:hover {
  text-decoration: underline;
}

.cgm-login__link--muted {
  color: rgba(255,255,255,0.68);
  font-weight: 600;
}

/* Login Fantime / Elementor: formulario mínimo + avisos */
.cgm-loginFlash {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.cgm-loginFlash--error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #7f1d1d;
}

.cgm-fantime-login {
  display: grid;
  gap: 12px;
  max-width: 420px;
}
.cgm-fantime-login__label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.85;
}
.cgm-fantime-login__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 15px;
}
.cgm-fantime-login__submit {
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.cgm-fantime-login__submit:hover {
  filter: brightness(1.05);
}

/* Reutiliza estilos de alert */
.cgm-login .cgm-alert {
  background: rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
}
.cgm-login .cgm-alert--error { border-color: rgba(255, 107, 107, 0.62); }
.cgm-login .cgm-alert--success { border-color: rgba(46, 204, 113, 0.62); }

@media (max-width: 900px) {
  .cgm-login__wrap {
    grid-template-columns: 1fr;
  }
  .cgm-login__hero {
    min-height: 220px;
  }
  .cgm-login__panel {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .cgm-login__hero::after {
    background-position: 50% 85%;
    opacity: 0.65;
  }
}

/* Dashboard estilo “workspace” (referencia) */
.cgm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cgm-workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  /* Con tema normal (sin body.cgm-shell fijo) el % no llega al viewport: la barra lateral quedaba “corta”. */
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100%;
  max-height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fbfcff;
  color: #0f172a;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Hijos del grid: min-height 0 evita que el contenido “empuje” y recorte el rail inferior */
.cgm-workspace > aside.cgm-sidebar,
.cgm-workspace > .cgm-mainStack {
  min-height: 0;
}

.cgm-mainStack {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.cgm-mainStack > .cgm-main {
  flex: 1;
  min-height: 0;
}

.cgm-main--designerPanel {
  padding: 20px 22px 32px;
  overflow-y: auto;
}

.cgm-designerPanel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cgm-designerPanel__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 900;
}

.cgm-designerPanel__sub {
  margin: 0;
  color: rgba(15, 23, 42, 0.65);
  font-size: 14px;
}

.cgm-designerPanel__who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.cgm-designerPanel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 10px;
}

.cgm-designerPanel__toolbarField {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.cgm-designerPanel__toolbarLbl {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-designerPanel__sortSelect {
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-weight: 600;
  background: #fff;
}

.cgm-designerPanel__toolbarBtn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(29, 78, 216, 0.35);
  background: rgba(29, 78, 216, 0.08);
  color: rgba(30, 58, 138, 0.96);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.cgm-designerPanel__toolbarBtn:hover {
  background: rgba(29, 78, 216, 0.14);
}

.cgm-designerPanel__toolbarHint {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.58);
  line-height: 1.45;
}

.cgm-designerPanel__th--drag {
  width: 40px;
  text-align: center;
}

.cgm-designerPanel__dragHead {
  opacity: 0.85;
  letter-spacing: -2px;
}

.cgm-designerPanel__cell--drag {
  width: 40px;
  text-align: center;
  vertical-align: middle;
  cursor: grab;
  user-select: none;
  touch-action: none;
  color: rgba(15, 23, 42, 0.45);
}

.cgm-designerPanel__row.is-dragging {
  opacity: 0.55;
}

.cgm-designerPanel__row.is-drag-over {
  outline: 2px dashed rgba(29, 78, 216, 0.65);
  outline-offset: -2px;
}

.cgm-designerPanel__dragHandle {
  letter-spacing: -2px;
  font-weight: 900;
  cursor: grab;
}

.cgm-designerPanel__dates--edit {
  padding: 8px 10px;
}

.cgm-designerPanel__dateInp {
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 600;
}

.cgm-designer-dlg__panel--reason {
  max-width: 440px;
}

.cgm-designer-reason__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.68);
}

.cgm-designer-reason__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 88px;
}

.cgm-designer-reason__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.cgm-designer-reason__btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}

.cgm-designer-reason__btn--ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.75);
}

.cgm-designer-reason__btn--primary {
  background: #1d4ed8;
  color: #fff;
  border-color: rgba(29, 78, 216, 0.5);
}

.cgm-designer-detail-changelog {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.cgm-designer-detail-changelog__h {
  margin: 0 0 12px;
  font-size: 15px;
}

.cgm-designer-detail-changelog__row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

.cgm-designer-detail-changelog__meta {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.5);
  margin-bottom: 4px;
}

.cgm-designer-detail-changelog__type {
  display: block;
  margin-bottom: 4px;
}

.cgm-designer-detail-changelog__detail {
  color: rgba(15, 23, 42, 0.78);
  margin-bottom: 4px;
}

.cgm-designer-detail-changelog__reason {
  color: rgba(15, 23, 42, 0.65);
  font-style: italic;
}

.cgm-designer-detail-changelog__empty {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.55);
  font-size: 13px;
}

.cgm-designerPanel__tableWrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.cgm-designerPanel__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cgm-designerPanel__table th {
  text-align: left;
  padding: 12px 14px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.cgm-designerPanel__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.cgm-designerPanel__id {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
}

.cgm-designerPanel__status {
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-weight: 700;
}

.cgm-designerPanel__dates {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.45;
}

.cgm-designerPanel__desc {
  max-width: 280px;
}

.cgm-designerPanel__refs {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.75);
  word-break: break-word;
}

.cgm-designerPanel__refs a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.cgm-designerPanel__refs a:hover {
  text-decoration: underline;
}

.cgm-designerPanel__fileList {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.cgm-designerPanel__fileList li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.cgm-designerPanel__fileList a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  word-break: break-word;
}

.cgm-designerPanel__fileList a:hover {
  text-decoration: underline;
}

.cgm-designerPanel__removeFile {
  flex-shrink: 0;
  border: none;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  line-height: 1;
  cursor: pointer;
  font-size: 14px;
}

.cgm-designerPanel__uploadLbl {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.cgm-designerPanel__fileInput {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.cgm-designerPanel__uploadBtn {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}

.cgm-designerPanel__uploadMsg {
  display: block;
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
}

.cgm-designerPanel__empty {
  padding: 24px;
}

.cgm-designerPanel__cell--org {
  min-width: 120px;
  max-width: 160px;
  word-break: break-word;
}

.cgm-designerPanel__cell--sub {
  min-width: 140px;
  max-width: 200px;
  font-size: 12px;
  line-height: 1.4;
}

.cgm-designerPanel__cell--sub strong {
  display: block;
}

.cgm-designerPanel__mailto {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.cgm-designerPanel__mailto:hover {
  text-decoration: underline;
}

.cgm-designerPanel__cell--received {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cgm-designerPanel__cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
}

.cgm-designerPanel__cell--urg .cgm-reqUrg {
  max-width: 120px;
}

.cgm-designerPanel__cell--type {
  min-width: 140px;
  max-width: 200px;
}

.cgm-designerPanel__typeMain--underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cgm-designerPanel__cell--title {
  min-width: 180px;
  max-width: 260px;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.35;
}

.cgm-designerPanel__openDetail {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}

.cgm-designerPanel__openDetail:hover {
  background: rgba(29, 78, 216, 0.2);
}

.cgm-designerPanel__desc {
  min-width: 220px;
  max-width: 380px;
}

.cgm-designerPanel__descFull {
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.9);
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
}

.cgm-designerPanel__cell--refs {
  min-width: 100px;
  max-width: 180px;
}

.cgm-designerPanel__refBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cgm-designerPanel__refBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(29, 78, 216, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.cgm-designerPanel__refBtn:hover {
  background: rgba(29, 78, 216, 0.08);
}

.cgm-designerPanel__refBtnIcon {
  opacity: 0.85;
}

.cgm-designerPanel__refBtnTxt {
  white-space: nowrap;
}

.cgm-designerPanel__noRefs {
  color: rgba(15, 23, 42, 0.4);
  font-size: 12px;
}

/* Modales panel producción (detalle pedido + referencia) */
.cgm-designer-dlg {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.cgm-designer-dlg[hidden] {
  display: none !important;
}

.cgm-designer-dlg__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
}

.cgm-designer-dlg__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 20px 22px 22px;
  z-index: 1;
}

.cgm-designer-dlg__panel--ref {
  width: min(920px, 100%);
}

.cgm-designer-dlg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cgm-designer-dlg__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.cgm-designer-dlg__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cgm-designer-dlg__body {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.88);
}

.cgm-designer-detail-piece {
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-designer-detail-piece:last-child {
  border-bottom: none;
}

.cgm-designer-detail-piece h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: #1d4ed8;
}

.cgm-designer-detail-row {
  display: grid;
  grid-template-columns: minmax(100px, 130px) 1fr;
  gap: 8px 14px;
  margin-bottom: 6px;
  align-items: start;
}

.cgm-designer-detail-label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cgm-designer-detail-val {
  word-break: break-word;
}

.cgm-designer-detail-desc {
  margin-top: 8px;
}

.cgm-designer-detail-desc .cgm-designer-detail-label {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.82);
}

.cgm-designer-detail-descText {
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.cgm-designer-detail-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cgm-designer-ref-frameWrap {
  min-height: 120px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  overflow: hidden;
}

.cgm-designer-ref-iframe {
  width: 100%;
  min-height: min(70vh, 620px);
  height: min(70vh, 620px);
  border: 0;
  display: block;
  background: #fff;
}

.cgm-designer-ref-img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 620px);
  margin: 0 auto;
  object-fit: contain;
}

.cgm-designer-ref-dlg__nopv {
  margin: 0;
  padding: 16px;
  color: rgba(15, 23, 42, 0.65);
  text-align: center;
}

.cgm-designer-ref-dlg__actions {
  margin: 12px 0 0;
  text-align: center;
}

.cgm-designer-ref-dlg__dl {
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: none;
}

.cgm-designer-ref-dlg__dl:hover {
  text-decoration: underline;
}

.cgm-sidebar {
  background: #111b3a;
  color: rgba(255,255,255,0.92);
  padding: 14px 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

/* Barra lateral: marca | herramientas scroll | rail abajo */
.cgm-sidebar--slim {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 10px;
  align-content: stretch;
  justify-items: stretch;
  padding: 14px 12px 10px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  height: 100%;
  min-height: 0;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  align-self: stretch;
}

.cgm-sidebar__brand--slim {
  grid-row: 1;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: stretch;
  text-align: left;
  padding: 0 8px 12px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.cgm-sidebar__brandImg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.cgm-sidebar__tools {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 1;
  scrollbar-width: none;
}
.cgm-sidebar__tools::-webkit-scrollbar { display: none; }

.cgm-sidebar__tool {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 9px 11px;
  margin: 0;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
  transition: background 0.12s ease, color 0.12s ease;
}

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

.cgm-sidebar__tool:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.9);
  outline-offset: 2px;
}

.cgm-sidebar__tool--disabled,
.cgm-sidebar__tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cgm-sidebar__toolIco {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.cgm-sidebar__toolLbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  hyphens: none;
  white-space: nowrap;
  word-break: normal;
}

/* Hueco flexible cuando no hay lista de orgs (una sola org): sustituye al nav vacío */
.cgm-sidebar__spacer {
  display: none;
}

.cgm-sidebar__nav--slim {
  grid-row: 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cgm-sidebar__orgAv {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.cgm-sidebar__orgAv:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.cgm-sidebar__orgAv.is-active {
  background: rgba(75, 123, 255, 0.35);
  border-color: rgba(75, 123, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(75, 123, 255, 0.35);
}

.cgm-sidebar__orgAvLetter {
  line-height: 1;
  pointer-events: none;
}

.cgm-sidebar__empty--slim {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.2);
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.cgm-sidebar__rail {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  min-height: min-content;
}

.cgm-sidebar__iconBtn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.12s ease, border-color 0.12s ease;
}

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

.cgm-sidebar__iconBtn:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.85);
  outline-offset: 2px;
}

.cgm-sidebar__iconBtn--logout {
  color: rgba(255,255,255,0.78);
}

.cgm-sidebar__ico {
  display: block;
  flex-shrink: 0;
}

body.cgm-dash-settings-open {
  overflow: hidden;
}

html.cgm-dash-settings-open {
  overflow: hidden;
}

body.cgm-dash-settings-open .cgm-main {
  overflow: hidden;
}

/* Modal configuración (admin): orgs, perfiles, Gemini */
.cgm-settings-dlg {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cgm-settings-dlg[hidden] {
  display: none !important;
}

.cgm-settings-dlg__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
}

.cgm-settings-dlg__panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

#cgm-org-tasks-customize-dlg.cgm-settings-dlg {
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

#cgm-org-tasks-customize-dlg .cgm-settings-dlg__panel {
  width: min(780px, 100%);
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
}

#cgm-org-tasks-customize-dlg .cgm-settings-dlg__body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#cgm-org-tasks-customize-dlg .cgm-schemaForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  height: 100%;
}

#cgm-org-tasks-customize-dlg .cgm-schemaForm__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 12px;
}

#cgm-org-tasks-customize-dlg .cgm-schemaForm__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.cgm-settings-dlg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.cgm-settings-dlg__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.cgm-settings-dlg__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}

.cgm-settings-dlg__x:hover {
  background: rgba(15, 23, 42, 0.1);
}

.cgm-settings-dlg__body {
  padding: 16px 20px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.cgm-settings-dlg__section {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-settings-dlg__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cgm-settings-dlg__h {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}

.cgm-settings-dlg__p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
}

.cgm-settings-dlg__p--small {
  font-size: 12px;
}

.cgm-settings-dlg__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.cgm-settings-dlg__ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.72);
}

.cgm-settings-dlg__a {
  color: #1d4ed8;
  font-weight: 650;
}

.cgm-settings-dlg__code {
  display: inline;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.cgm-settings-dlg__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.65);
}

.cgm-settings-dlg__note--warn {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(253, 224, 71, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #854d0e;
}

.cgm-settings-dlg__form {
  display: grid;
  gap: 10px;
}

.cgm-settings-dlg__form.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cgm-settings-dlg__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-settings-dlg__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-settings-dlg__input,
.cgm-settings-dlg__select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.cgm-settings-dlg__textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 90px;
}

.cgm-settings-dlg__textarea:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.cgm-settings-dlg__input:focus,
.cgm-settings-dlg__select:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.cgm-settings-dlg__btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #0f172a;
}

.cgm-settings-dlg__btn--primary {
  background: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.5);
  color: #fff;
}

.cgm-settings-dlg__btn--primary:hover {
  background: #1e40af;
}

.cgm-settings-dlg__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.cgm-settings-dlg__check input {
  margin-top: 2px;
}

.cgm-sidebar__brand {
  font-weight: 900;
  letter-spacing: 0.8px;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.cgm-sidebar__nav {
  display: grid;
  gap: 8px;
}

.cgm-sidebar__sectionTitle {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 0 12px;
}

.cgm-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  border: 1px solid transparent;
}

.cgm-sidebar__item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.cgm-sidebar__item.is-active {
  background: rgba(75, 123, 255, 0.18);
  border-color: rgba(75, 123, 255, 0.35);
}

.cgm-sidebar__dot {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.7);
  flex: 0 0 auto;
}

.cgm-sidebar__label {
  font-size: 13px;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cgm-sidebar__empty {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  padding: 8px 12px;
}

.cgm-sidebar__footer {
  display: grid;
  gap: 10px;
}

.cgm-sidebar__createOrg {
  display: grid;
  gap: 8px;
}

.cgm-sidebar__input {
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
  outline: none;
  font-size: 12px;
}

.cgm-sidebar__btn {
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 800;
}

.cgm-sidebar__logout {
  text-align: center;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.cgm-sidebar__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.65);
  padding: 0 4px;
}

.cgm-sidebar__profiles {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.cgm-sidebar__profilesHint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.62);
  padding: 0 12px;
}

.cgm-sidebar__profilesDisabled {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  padding: 4px 12px;
}

.cgm-sidebar__profilesForm {
  display: grid;
  gap: 8px;
  padding: 0 4px 8px;
}

.cgm-sidebar__profilesLabel {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  padding: 0 4px;
}

.cgm-sidebar__select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  outline: none;
  font-size: 13px;
}

.cgm-sidebar__btn--profiles {
  background: rgba(75, 123, 255, 0.28);
  border-color: rgba(75, 123, 255, 0.4);
}

.cgm-sidebar__ai {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 12px 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cgm-sidebar__link {
  color: rgba(147, 197, 253, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cgm-sidebar__aiSteps {
  margin: 0;
  padding: 0 12px 0 24px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.cgm-sidebar__aiSteps a {
  color: rgba(147, 197, 253, 0.95);
}

.cgm-sidebar__aiSteps code {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.cgm-sidebar__aiNote {
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

.cgm-sidebar__aiNote--warn {
  color: rgba(253, 224, 71, 0.92);
}

.cgm-sidebar__profilesForm.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cgm-sidebar__aiClear {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 4px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.cgm-sidebar__aiClear input {
  margin-top: 2px;
}

.cgm-badge-admin {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: rgba(29, 78, 216, 0.14);
  color: rgba(29, 78, 216, 0.95);
  border: 1px solid rgba(29, 78, 216, 0.25);
  vertical-align: middle;
}

.cgm-adminAssign {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  background: #fafbff;
}

.cgm-adminAssign__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.cgm-adminAssign__label {
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
}

.cgm-adminAssign__label span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,0.62);
}

.cgm-adminAssign__input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  outline: none;
}

.cgm-adminAssign__btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cgm-main {
  padding: 24px 26px 34px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cgm-topbar2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
  margin-bottom: 14px;
}

.cgm-topbar2__left {
  flex: 1;
  min-width: 0;
}

.cgm-topbar2__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Logo horizontal arriba; título y subtítulo debajo */
.cgm-topbar2__brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 10px;
  max-width: 100%;
}

.cgm-topbar2__text {
  min-width: 0;
}

.cgm-orgBrand__logoWrap {
  position: relative;
  flex-shrink: 0;
}

.cgm-orgBrand__logoWrap--header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: min(560px, 100%);
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
  box-sizing: border-box;
}

.cgm-orgBrand__logo--header {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cgm-orgBrand__logoAbbr--header {
  position: static;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.cgm-orgBrand__logoAbbr--header:not([hidden]) {
  display: inline-flex;
}

/* Marca reutilizable: logo + fallback iniciales (una sola capa visible) */
.cgm-brandMark {
  --brand-color: #2f63ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e9ebf1;
  box-shadow: 0 1px 2px rgba(20, 28, 46, 0.05);
}
.cgm-brandMark--sm { width: 28px; height: 28px; border-radius: 8px; }
.cgm-brandMark--md { width: 46px; height: 46px; border-radius: 12px; }
.cgm-brandMark--home { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-color) 30%, transparent); }
.cgm-brandMark--lg { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 1px 2px rgba(20, 28, 46, 0.05), 0 10px 28px color-mix(in srgb, var(--brand-color) 18%, transparent); }
.cgm-brandMark__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  box-sizing: border-box;
  display: block;
  z-index: 1;
}
.cgm-brandMark--lg .cgm-brandMark__img { padding: 8px; }
.cgm-brandMark--home .cgm-brandMark__img { padding: 6px; }
.cgm-brandMark__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-color), color-mix(in srgb, var(--brand-color) 55%, #1b2435));
  z-index: 2;
}
.cgm-brandMark--sm .cgm-brandMark__fallback { font-size: 10px; }
.cgm-brandMark--md .cgm-brandMark__fallback { font-size: 15px; }
.cgm-brandMark--lg .cgm-brandMark__fallback { font-size: 22px; }
.cgm-brandMark--home .cgm-brandMark__fallback { font-size: 18px; }
.cgm-brandMark__fallback[hidden],
.cgm-homePortal__orgAvFallback[hidden],
.cgm-ftOrg__orgLogoAbbr[hidden] {
  display: none !important;
}

.cgm-sidebar__orgAbbr {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
}

.cgm-users-tableWrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  margin-bottom: 18px;
}

.cgm-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cgm-users-table th,
.cgm-users-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-users-table th {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  background: #fafbff;
}

.cgm-users-table tr:last-child td {
  border-bottom: none;
}

.cgm-users-table__empty {
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
  padding: 20px !important;
}

.cgm-users-dlg__add {
  margin-top: 8px;
  padding-top: 20px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.cgm-sidebar__orgImg {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.cgm-sidebar__orgAv:has(.cgm-sidebar__orgImg) {
  padding: 0;
  overflow: hidden;
}

.cgm-topbar2__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.cgm-topbar2__users {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #0f172a;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: inherit;
}

.cgm-topbar2__users:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cgm-topbar2__share {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: rgba(29, 78, 216, 0.06);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #1d4ed8;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: inherit;
}

.cgm-topbar2__share:hover {
  background: rgba(29, 78, 216, 0.12);
}

.cgm-shareBanner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  background: rgba(29, 78, 216, 0.08);
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.cgm-shareBanner__ico {
  font-size: 13px;
  line-height: 1;
}

.cgm-workspace--share {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cgm-workspace--share > .cgm-mainStack,
.cgm-workspace--share > .cgm-main {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cgm-main--share {
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(28px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  margin: 0 auto;
  max-width: 1560px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-y: auto;
}

.cgm-topbar2__titleRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
}

.cgm-topbar2__titleRow .cgm-topbar2__title {
  margin: 0;
}

.cgm-topbar2--share {
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  gap: 12px;
  min-width: 0;
}

.cgm-topbar2--share .cgm-topbar2__left {
  flex: 1 1 280px;
  min-width: 0;
}

.cgm-topbar2--share .cgm-topbar2__right {
  flex: 0 1 auto;
  min-width: 0;
}

.cgm-topbar2--share .cgm-topbar2__subtitle {
  font-size: 13px;
}

.cgm-topbar2--portalHidden {
  display: none !important;
}

.cgm-workspace--share .cgm-tasksToolbar {
  justify-content: flex-start;
  width: 100%;
  gap: 6px;
}

.cgm-workspace--share .cgm-tasksToolbar__tools {
  flex: 1 1 auto;
  min-width: 0;
}

.cgm-workspace--share .cgm-tasksBoard,
.cgm-workspace--share .cgm-tasksBoard__shell,
.cgm-workspace--share .cgm-tasksTableWrap,
.cgm-workspace--share .cgm-tasksTableScroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cgm-workspace--share .cgm-tasksTableScroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.cgm-workspace--share .cgm-card.cgm-card--tasks {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.cgm-org-tasks--share-view .cgm-tasksBoard__shell {
  grid-template-columns: minmax(0, 1fr);
}

.cgm-org-tasks--share-view .cgm-tasksBoard__menus {
  display: none;
}

.cgm-shareDlg__fieldset {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.cgm-shareDlg__legend {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 8px;
}

.cgm-shareDlg__radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.cgm-shareDlg__urlRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.cgm-shareDlg__urlLbl {
  flex: 1 1 220px;
  margin: 0;
}

.cgm-shareDlg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cgm-shareDlg__hint {
  font-size: 12px;
  margin: 0 0 10px;
}

.cgm-shareDlg__hint.is-ok {
  color: #15803d;
}

.cgm-shareDlg__hint.is-err {
  color: #b91c1c;
}

.cgm-shareDlg__panel.cgm-settings-dlg__panel {
  overflow: hidden;
}

.cgm-shareDlg__panel .cgm-settings-dlg__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cgm-org-tasks--share-view .cgm-taskEdit,
.cgm-org-tasks--share-view .cgm-rowMenu,
.cgm-org-tasks--share-view .cgm-tasksHead__scope,
.cgm-org-tasks--share-view .cgm-tasksToolbar__add,
.cgm-org-tasks--share-view [data-cgm-add-task],
.cgm-org-tasks--share-view .cgm-tasksBoard__group--composer {
  pointer-events: none;
}

.cgm-org-tasks--share-view .cgm-rowMenu,
.cgm-org-tasks--share-view .cgm-tasksHead__scope,
.cgm-org-tasks--share-view .cgm-tasksBoard__group--composer {
  display: none;
}

.cgm-org-tasks--share-view .cgm-taskEdit {
  opacity: 0.85;
  background: rgba(15, 23, 42, 0.03);
}

.cgm-org-tasks--share-view .cgm-taskFileCell__thumb,
.cgm-org-tasks--share-view .cgm-taskFileCell__dl,
.cgm-org-tasks--share-view .cgm-taskLinkCell__open {
  pointer-events: auto;
}

.cgm-org-tasks--share-view .cgm-taskFileCell__add,
.cgm-org-tasks--share-view .cgm-taskFileCell__rm {
  display: none;
}

.cgm-org-tasks--share-view .cgm-statusPick__btn {
  pointer-events: none;
  cursor: default;
}

.cgm-topbar2__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.cgm-topbar2__subtitle {
  color: rgba(15, 23, 42, 0.65);
  margin-top: 4px;
  font-size: 12px;
}

.cgm-topbar2__subtitle--portal {
  font-size: 13.5px;
}

.cgm-orgSwitch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cgm-orgSwitch__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 34px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  max-width: min(520px, 70vw);
  cursor: pointer;
}

.cgm-orgSwitch__select:focus {
  outline: none;
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.cgm-orgSwitch__danger {
  font: inherit;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
  color: rgba(185, 28, 28, 0.98);
  cursor: pointer;
  white-space: nowrap;
}

.cgm-orgSwitch__danger:hover {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.32);
}

.cgm-topbar2__createGrid {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cgm-topbar2__search {
  width: 200px;
  max-width: 32vw;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  outline: none;
  font: inherit;
}

.cgm-topbar2__search:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.cgm-topbar2__input {
  width: 260px;
  max-width: 44vw;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  outline: none;
}

.cgm-topbar2__btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29,78,216,0.35);
  background: rgba(29,78,216,0.92);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cgm-viewToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.8);
}

.cgm-viewToggle__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  font-size: 12px;
  color: rgba(15,23,42,0.75);
}

.cgm-viewToggle__link.is-active {
  background: rgba(29,78,216,0.10);
  color: rgba(29,78,216,0.98);
  border: 1px solid rgba(29,78,216,0.20);
}

.cgm-card.cgm-card--tasks {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.cgm-tasksHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cgm-tasksHead__scope {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cgm-tasksHead__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 850;
  font-size: 12px;
  color: rgba(15,23,42,0.86);
}
.cgm-tasksHead__pill.is-active {
  background: rgba(29,78,216,0.14);
  border-color: rgba(29,78,216,0.30);
  color: #0f172a;
}
.cgm-tasksHead__teamSel {
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(255,255,255,0.92);
}

.cgm-teamBox {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.60);
}
.cgm-teamBox__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cgm-teamBox__name {
  font-weight: 900;
}
.cgm-teamBox__meta {
  color: rgba(15,23,42,0.62);
  font-size: 12px;
}
.cgm-teamBox__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cgm-teamBox__chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.92);
}

.cgm-settings-dlg__divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
  margin: 14px 0;
}
.cgm-permBox {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.60);
}
.cgm-permBox__title {
  font-weight: 900;
  margin-bottom: 8px;
}
.cgm-permBox__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cgm-permBox__chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.92);
}

.cgm-schemaRow {
  display: grid;
  grid-template-columns: 140px 1fr 140px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
@media (max-width: 980px) {
  .cgm-schemaRow {
    grid-template-columns: 1fr;
  }
}

.cgm-tasksHead__h {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.cgm-tasksHead__form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cgm-tasksHead__select,
.cgm-tasksHead__input,
.cgm-tasksHead__date {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  font: inherit;
}

.cgm-tasksHead__input {
  width: min(360px, 60vw);
}

.cgm-tasksHead__hours {
  width: 110px;
}

.cgm-load {
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.65);
  overflow: hidden;
}
.cgm-load__thead, .cgm-load__row {
  display: grid;
  grid-template-columns: 240px repeat(6, 1fr);
}
.cgm-load__th, .cgm-load__cell, .cgm-load__person {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.cgm-load__thead .cgm-load__th {
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,0.70);
  background: rgba(248,250,252,0.9);
}
.cgm-load__th--person {
  position: sticky;
  left: 0;
  z-index: 2;
}
.cgm-load__person {
  position: sticky;
  left: 0;
  background: rgba(255,255,255,0.92);
  z-index: 1;
}
.cgm-load__name {
  font-weight: 900;
}
.cgm-load__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(15,23,42,0.60);
}
.cgm-load__cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cgm-load__dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(37,99,235,0.25);
  border: 2px solid rgba(37,99,235,0.25);
  box-shadow: inset 0 0 0 calc(max(2px, (var(--p) * 0.12px))) rgba(37,99,235,0.85);
}
.cgm-load__hours {
  font-weight: 850;
  font-size: 12px;
  color: rgba(15,23,42,0.78);
}
@media (max-width: 1100px) {
  .cgm-load {
    overflow: auto;
  }
  .cgm-load__thead, .cgm-load__row {
    min-width: 920px;
  }
}

/* ——— Barra herramientas tablero (estilo Monday) ——— */
.cgm-tasksToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 0 12px;
  flex-wrap: wrap;
}
.cgm-tasksToolbar__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.cgm-tasksToolbar__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #676879;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cgm-tasksToolbar__search:focus-within {
  border-color: #c5c7d0;
  background: #fff;
}
.cgm-tasksToolbar__searchInput {
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #323338;
  width: 100%;
  min-width: 0;
  outline: none;
  font-family: inherit;
}
.cgm-tasksToolbar__searchInput::placeholder { color: #9699a6; }
.cgm-tasksToolbar__tool {
  position: relative;
}
.cgm-tasksToolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #676879;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.cgm-tasksToolbar__btn:hover,
.cgm-tasksToolbar__btn.is-active {
  background: rgba(0, 115, 234, 0.08);
  color: #323338;
}
.cgm-tasksToolbar__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.cgm-tasksToolbar__chev {
  font-size: 10px;
  opacity: 0.7;
  margin-left: -2px;
}
.cgm-tasksToolbar__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  max-width: 280px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 6px 0;
  z-index: 120;
}
.cgm-tasksToolbar__menu--wide { min-width: 240px; }
.cgm-tasksToolbar__menu[hidden] { display: none !important; }
.cgm-tasksToolbar__menuItem {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 14px;
  font-size: 14px;
  color: #323338;
  cursor: pointer;
  font-family: inherit;
}
.cgm-tasksToolbar__menuItem:hover,
.cgm-tasksToolbar__menuItem.is-active {
  background: #f5f6f8;
}
.cgm-tasksToolbar__menuSep {
  height: 1px;
  background: #eef0f3;
  margin: 6px 0;
}
.cgm-tasksToolbar__menuCap {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9699a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cgm-tasksToolbar__menuHint {
  padding: 10px 14px;
  font-size: 13px;
  color: #676879;
}
.cgm-tasksToolbar__check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: #323338;
  cursor: pointer;
}
.cgm-tasksToolbar__check input { accent-color: #0073ea; }

.cgm-tasksToolbar__menu--filterPanel {
  min-width: min(560px, 92vw);
  max-width: 560px;
  padding: 0;
  overflow: visible;
}

.cgm-tasksFilterPanel {
  padding: 14px 16px 12px;
}
.cgm-tasksFilterPanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cgm-tasksFilterPanel__title {
  font-size: 16px;
  font-weight: 700;
  color: #323338;
}
.cgm-tasksFilterPanel__clear {
  border: 0;
  background: transparent;
  color: #676879;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
  border-radius: 4px;
}
.cgm-tasksFilterPanel__clear:hover { background: #f5f6f8; color: #323338; }
.cgm-tasksFilterPanel__count {
  font-size: 13px;
  color: #676879;
  margin-bottom: 12px;
}
.cgm-tasksFilterPanel__rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.cgm-tasksFilterRule {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) minmax(110px, 1fr) minmax(120px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
}
.cgm-tasksFilterRule__where {
  font-size: 13px;
  color: #676879;
  white-space: nowrap;
}
.cgm-tasksFilterRule__col,
.cgm-tasksFilterRule__op,
.cgm-tasksFilterRule__val {
  width: 100%;
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: #323338;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.cgm-tasksFilterRule__valMuted {
  font-size: 13px;
  color: #9699a6;
  padding: 7px 4px;
}
.cgm-tasksFilterRule__rm {
  border: 0;
  background: transparent;
  color: #676879;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cgm-tasksFilterRule__rm:hover { background: #f5f6f8; }
.cgm-tasksFilterPanel__add {
  border: 0;
  background: transparent;
  color: #0073ea;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}
.cgm-tasksFilterPanel__add:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cgm-tasksFilterRule {
    grid-template-columns: 1fr;
  }
  .cgm-tasksFilterRule__where { display: none; }
}

.cgm-tasksGroupHdr > td {
  padding: 10px 12px 6px !important;
  background: transparent !important;
  border: none !important;
}
.cgm-tasksGroupHdr__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cgm-tasksGroupHdr__label {
  font-size: 14px;
  font-weight: 700;
  color: #323338;
}

.cgm-tasksTable .cgm-colHidden { display: none !important; }

.cgm-tasksBoard {
  --cgm-menu-gutter: 34px;
  --cgm-tasks-canvas: var(--cgm-bg, #fbfcff);
  --cgm-tasks-unit-gap: 14px;
  --cgm-tasks-accent: #579bfc;
  --cgm-tasks-accent-width: 4px;
  --cgm-tasks-sub-gap: 12px;
  position: relative;
  overflow: visible;
}

.cgm-tasksBoard__shell {
  display: grid;
  grid-template-columns: var(--cgm-menu-gutter) minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.cgm-tasksBoard__menus {
  position: relative;
  align-self: start;
  width: 100%;
  min-height: 0;
}

.cgm-tasksBoard__menuSlot {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.cgm-tasksBoard__menuSlot .cgm-rowMenu {
  pointer-events: auto;
}

.cgm-tasksBoard__menuSlot[hidden] {
  display: none !important;
}

.cgm-tasksTableWrap {
  overflow: visible;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  min-width: 0;
}

.cgm-tasksTableScroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  margin: 0;
  padding: 2px 0 4px;
}

.cgm-tasksSubTable__treeOverlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.cgm-tasksTreeLine {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
}

.cgm-tasksTreeLine--v {
  width: 2px;
  margin-left: -1px;
  background: #579bfc;
  border-radius: 1px;
}

.cgm-tasksTreeLine--h {
  height: 2px;
  margin-top: -1px;
  background: #579bfc;
  border-radius: 1px;
}

.cgm-tasksTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}

.cgm-tasksTable thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.55);
  padding: 11px 14px;
  background: #fff;
  border-top: 1px solid rgba(15,23,42,0.09);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: none;
}

.cgm-tasksTable thead th:first-child {
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 0;
}

.cgm-tasksTable thead th:last-child {
  border-right: 1px solid rgba(15,23,42,0.09);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 0;
}

.cgm-tasksTable:not(:has(.cgm-tasksBoard__group--composer)) thead th:first-child {
  border-bottom-left-radius: 0;
}

.cgm-tasksTable:not(:has(.cgm-tasksBoard__group--composer)) thead th:last-child {
  border-bottom-right-radius: 0;
}

.cgm-tasksTable:not(:has(.cgm-tasksBoard__group--composer)) thead th {
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.cgm-tasksTable tbody td {
  padding: 12px 14px;
  border-bottom: none;
}

.cgm-tasksTable__cardRow > td,
.cgm-tasksTable__newRow > td {
  background: #fff;
  vertical-align: middle;
}

/* Composer unido a cabecera + lista (misma caja) */
.cgm-tasksBoard__group--composer .cgm-tasksTable__newRow > td {
  border-top: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.cgm-tasksBoard__group--composer .cgm-tasksTable__newRow > td:first-child {
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cgm-tasksBoard__group--composer .cgm-tasksTable__newRow > td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cgm-tasksBoard__group--composer + .cgm-tasksBoard__group--items > tr:first-child > td {
  border-top: none !important;
}

.cgm-tasksBoard__group--composer + .cgm-tasksBoard__group--items > tr:first-child > td:first-child {
  border-top-left-radius: 0 !important;
}

.cgm-tasksBoard__group--composer + .cgm-tasksBoard__group--items > tr:first-child > td:last-child {
  border-top-right-radius: 0 !important;
}

.cgm-tasksBoard__group--items > tr:first-child > td {
  border-top: none !important;
}

.cgm-tasksBoard__group--items > tr:first-child > td:first-child {
  border-top-left-radius: 0 !important;
}

.cgm-tasksBoard__group--items > tr:first-child > td:last-child {
  border-top-right-radius: 0 !important;
}

.cgm-tasksTable:has(.cgm-tasksBoard__group--items) .cgm-tasksBoard__group--items > tr:first-child > td {
  border-top: none !important;
}

.cgm-tasksTable:has(.cgm-tasksBoard__group--items) .cgm-tasksBoard__group--items > tr:first-child > td:first-child {
  border-top-left-radius: 0 !important;
}

.cgm-tasksTable:has(.cgm-tasksBoard__group--items) .cgm-tasksBoard__group--items > tr:first-child > td:last-child {
  border-top-right-radius: 0 !important;
}

.cgm-tasksTable__newRow > td {
  background: rgba(255, 255, 255, 0.98);
}

/* Lista nivel 1: cajas pegadas o separadas según expand/collapse */
.cgm-tasksBoard__group--items > tr > td {
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, 0.09);
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: none;
  border-radius: 0;
}

.cgm-tasksBoard__group--items > tr.cgm-tasksTable__cardRow > td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td {
  border-bottom: none !important;
  border-top: none !important;
}

.cgm-tasksBoard__group--items > tr.cgm-tasksTable__cardRow > td:first-child {
  position: relative;
  z-index: 2;
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent) !important;
}

.cgm-tasksBoard__group--items > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow + tr.cgm-tasksSubTable__row > td {
  padding-top: var(--cgm-tasks-sub-gap) !important;
}

/* Todo colapsado: una sola caja compartida */
.cgm-tasksBoard__group--items.cgm-tasksBoard__group--stacked > tr.cgm-tasksTable__cardRow > td {
  border-top: none;
}

.cgm-tasksBoard__group--items.cgm-tasksBoard__group--stacked > tr:first-child > td {
  border-top: none;
}

.cgm-tasksBoard__group--items.cgm-tasksBoard__group--stacked > tr:last-child > td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.cgm-tasksBoard__group--items.cgm-tasksBoard__group--stacked > tr:last-child > td:first-child {
  border-bottom-left-radius: 10px;
}

.cgm-tasksBoard__group--items.cgm-tasksBoard__group--stacked > tr:last-child > td:last-child {
  border-bottom-right-radius: 10px;
}

/* Segmentos colapsados cuando hay alguna unidad abierta */
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore > td {
  border-top: var(--cgm-tasks-unit-gap) solid var(--cgm-tasks-canvas) !important;
  box-shadow: none;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore > td:not(:first-child) {
  border-left-color: transparent !important;
  border-right-color: transparent !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore > td:first-child {
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent) !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td {
  border-top-color: transparent;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo:not(.cgm-tasksStack__gapBefore) > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start:not(.cgm-tasksStack__gapBefore) > td {
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo:first-child > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start:first-child > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow:first-child > td {
  border-top: none !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore.cgm-tasksStack__solo > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore.cgm-tasksStack__start > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__gapBefore.cgm-tasksUnit--open > td {
  border-top: var(--cgm-tasks-unit-gap) solid var(--cgm-tasks-canvas) !important;
  box-shadow: none;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td:first-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start > td:first-child {
  border-top-left-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo:first-child > td:first-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start:first-child > td:first-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow:first-child > td:first-child {
  border-top-left-radius: 0 !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td:last-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start > td:last-child {
  border-top-right-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo:first-child > td:last-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__start:first-child > td:last-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow:first-child > td:last-child {
  border-top-right-radius: 0 !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__end > td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td:first-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__end > td:first-child {
  border-bottom-left-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td:last-child,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__end > td:last-child {
  border-bottom-right-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__solo > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksStack__end > td {
  border-bottom: calc(1px + var(--cgm-tasks-unit-gap)) solid var(--cgm-tasks-canvas) !important;
  box-shadow: none;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr:last-child.cgm-tasksStack__solo > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr:last-child.cgm-tasksStack__end > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr:last-child.cgm-tasksUnit--open.cgm-tasksSubTable__row > td,
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr:last-child.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: none;
}

/* Unidad expandida: padre arriba, subelementos flotando sin fondo en el carrier */
.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td {
  border-bottom: none;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td:first-child {
  border-top-left-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow:first-child > td:first-child {
  border-top-left-radius: 0 !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td:last-child {
  border-top-right-radius: 10px;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow:first-child > td:last-child {
  border-top-right-radius: 0 !important;
}

.cgm-tasksBoard__group--items > tr.cgm-tasksUnit--open.cgm-tasksSubTable__row > td,
.cgm-tasksBoard__group--items > tr.cgm-tasksUnit--open.cgm-tasksTable__cardRow > td {
  overflow: visible !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr.cgm-tasksUnit--open.cgm-tasksSubTable__row > td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 var(--cgm-tasks-unit-gap) !important;
}

.cgm-tasksBoard__group--items:not(.cgm-tasksBoard__group--stacked) > tr:last-child.cgm-tasksUnit--open.cgm-tasksSubTable__row > td {
  padding-bottom: 0 !important;
}

.cgm-tasksTable__empty {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.cgm-tasksBoard__group--items > tr:only-child > td.cgm-tasksTable__empty {
  border-top: none;
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent);
  border-right: 1px solid rgba(15, 23, 42, 0.09);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: none;
}

.cgm-tasksTable__title {
  font-weight: 800;
  padding: 10px 12px 10px 6px;
  overflow: visible;
}

.cgm-tasksTable tbody td.cgm-tasksTable__title {
  padding: 10px 12px 10px 6px;
  overflow: visible;
}

.cgm-taskTitleRow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cgm-taskTitleCell {
  display: flex;
  align-items: stretch;
  min-height: 40px;
  width: 100%;
}

.cgm-taskTitleCell__rail {
  flex: 0 0 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
}

.cgm-taskRow--hasChildren .cgm-taskTitleCell__rail {
  align-self: stretch;
}

.cgm-tasksTable tbody tr.cgm-taskRow--hasChildren > td {
  overflow: visible;
  border-bottom: none;
}

.cgm-taskTitleCell__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

.cgm-taskTitleCell__content .cgm-taskTitleLv__txt,
.cgm-taskTitleCell__content .cgm-taskEdit.cgm-taskTitleLv__txt {
  flex: 1;
  min-width: 0;
}

.cgm-tasksTable__row--sub .cgm-taskTitleCell__rail {
  flex: 0 0 36px;
  margin-left: 0;
}

.cgm-tasksTable__row--sub .cgm-taskTitleCell__rail::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #579bfc;
}

.cgm-taskTree--only .cgm-taskTitleCell__rail::before,
.cgm-taskTree--last .cgm-taskTitleCell__rail::before {
  bottom: 50%;
}

.cgm-taskTree--first .cgm-taskTitleCell__rail::before,
.cgm-taskTree--mid .cgm-taskTitleCell__rail::before {
  bottom: 0;
}

.cgm-tasksTable__row--sub .cgm-taskTitleCell__rail::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 18px;
  height: 14px;
  border-left: 2px solid #579bfc;
  border-bottom: 2px solid #579bfc;
  border-bottom-left-radius: 8px;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.cgm-taskTitleRow .cgm-taskTitleLv__txt,
.cgm-taskTitleRow .cgm-taskEdit.cgm-taskTitleLv__txt {
  flex: 1;
  min-width: 0;
}

.cgm-taskUpdBubble {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: transparent;
  color: rgba(15, 23, 42, 0.52);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cgm-taskUpdBubble:hover {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.28);
  color: rgba(29, 78, 216, 0.95);
}

.cgm-taskUpdBubble.is-active {
  background: rgba(0, 115, 234, 0.12);
  border-color: rgba(0, 115, 234, 0.35);
  color: #0073ea;
}

.cgm-taskInlineNew__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cgm-taskInlineNew__row .cgm-tasksCellInput {
  flex: 1;
  min-width: 0;
}

.cgm-taskTitleLv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  --cgm-task-indent: 0px;
}
.cgm-taskTitleLv--2 { --cgm-task-indent: 28px; }
.cgm-taskTitleLv--3 { --cgm-task-indent: 52px; }
.cgm-taskTitleLv--4 { --cgm-task-indent: 76px; }
.cgm-taskTitleLv--5 { --cgm-task-indent: 100px; }

.cgm-taskTitleRow {
  padding-left: var(--cgm-task-indent);
}

.cgm-taskTitleLv__txt {
  display: inline-block;
}

.cgm-taskHierarchy__spacer,
.cgm-taskHierarchy__chev {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-taskHierarchy__chev {
  border: none;
  background: transparent;
  color: rgba(15, 23, 42, 0.45);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
}
.cgm-taskHierarchy__chev:hover {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
}

.cgm-tasksTable__row--lv1 td {
  background: #fff;
}
.cgm-tasksTable__row--sub td {
  background: rgba(246, 248, 252, 0.98);
}

.cgm-tasksTable__row--lv1 .cgm-taskEdit.cgm-taskTitleLv__txt {
  font-weight: 800;
}
.cgm-tasksTable__row--sub .cgm-taskEdit,
.cgm-tasksTable__row--sub .cgm-taskTitleLv__txt {
  font-weight: 650;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.88);
}
.cgm-tasksTable__row--sub .cgm-taskEdit {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.18);
}

/* ——— Sub-tabla anidada (caja flotante independiente, estilo Monday) ——— */
.cgm-tasksSubTable__row > td {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.cgm-tasksSubTable__cell {
  padding: 0 !important;
  overflow: visible;
}

.cgm-tasksBoard__group--items > tr.cgm-tasksSubTable__row > td {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  overflow: visible;
}

.cgm-tasksBoard__group .cgm-tasksSubTable {
  margin-top: 0;
}

.cgm-tasksSubTable {
  position: relative;
  margin: 0 0 2px 0;
  padding-left: 22px;
  overflow: visible;
}

.cgm-tasksSubTable__box {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: var(--cgm-tasks-accent-width) solid var(--cgm-tasks-accent);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.09);
  overflow: visible;
}

.cgm-tasksSubTable__table {
  position: relative;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.cgm-tasksSubTable__table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(50, 51, 56, 0.68);
  padding: 10px 12px;
  text-align: left;
  border-bottom: none;
  background: #fff;
  white-space: nowrap;
  height: 38px;
  box-sizing: border-box;
}

.cgm-tasksSubTable__table tbody tr:first-child td {
  border-top: none;
}

.cgm-tasksSubTable__th--title {
  min-width: 200px;
}

.cgm-tasksSubTable__table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  vertical-align: middle;
}

.cgm-tasksSubTable__item:hover td {
  background: rgba(87, 155, 252, 0.05);
}

.cgm-tasksSubTable__table tbody tr:last-child td {
  border-bottom: 0;
}

.cgm-tasksSubTable__title {
  font-weight: 650;
  min-width: 200px;
}

.cgm-tasksSubTable__titleInner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cgm-tasksSubTable__titleInner .cgm-taskTitleLv__txt,
.cgm-tasksSubTable__titleInner .cgm-taskEdit.cgm-taskTitleLv__txt {
  flex: 1;
  min-width: 0;
}

.cgm-tasksSubTable__item .cgm-taskEdit.cgm-taskTitleLv__txt {
  font-weight: 650;
  font-size: 12.5px;
}

.cgm-tasksSubTable__item .cgm-taskEdit {
  font-size: 12.5px;
}

/* =======================================================================
   Monday-style polish — capa visual elegante para el tablero de tareas
   (no cambia la estructura, solo el look & feel)
   ======================================================================= */

/* Cabeceras de columna: tipografía Monday (sin mayúsculas, gris medio) */
.cgm-tasksTable thead th,
.cgm-tasksSubTable__table thead th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 600;
  color: #676879;
}
.cgm-tasksTable thead th {
  padding-top: 13px;
  padding-bottom: 13px;
}

/* Hover de fila estilo Monday */
.cgm-tasksBoard__group--items > tr.cgm-tasksTable__cardRow:hover > td {
  background: #f5f9ff;
}
.cgm-tasksBoard__group--items > tr.cgm-tasksTable__cardRow:hover > td:first-child {
  background: #f5f9ff;
}

/* Celdas de columnas personalizadas: centradas como Monday */
.cgm-tasksTable td.cgm-tasksTable__custom,
.cgm-tasksSubTable__table td.cgm-tasksTable__custom {
  text-align: center;
  vertical-align: middle;
  padding: 6px 8px;
  overflow: visible;
  white-space: normal;
}

/* Columnas de fecha: ancho mínimo para que no se corte dd/mm/aaaa */
.cgm-tasksTable thead th[data-cgm-col-type="date"],
.cgm-tasksTable tbody td[data-cgm-col-type="date"],
.cgm-tasksSubTable__table thead th[data-cgm-col-type="date"],
.cgm-tasksSubTable__table tbody td[data-cgm-col-type="date"] {
  min-width: 172px;
  width: 172px;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.cgm-tasksTable thead th[data-cgm-col-type="date_range"],
.cgm-tasksTable tbody td[data-cgm-col-type="date_range"],
.cgm-tasksSubTable__table thead th[data-cgm-col-type="date_range"],
.cgm-tasksSubTable__table tbody td[data-cgm-col-type="date_range"] {
  min-width: 196px;
  width: 196px;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.cgm-tasksTable thead th[data-cgm-col-type="date"],
.cgm-tasksTable thead th[data-cgm-col-type="date_range"],
.cgm-tasksSubTable__table thead th[data-cgm-col-type="date"],
.cgm-tasksSubTable__table thead th[data-cgm-col-type="date_range"] {
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}
.cgm-tasksTable td.cgm-tasksTable__custom[data-cgm-col-type="date"],
.cgm-tasksTable td.cgm-tasksTable__custom[data-cgm-col-type="date_range"],
.cgm-tasksSubTable__table td.cgm-tasksTable__custom[data-cgm-col-type="date"],
.cgm-tasksSubTable__table td.cgm-tasksTable__custom[data-cgm-col-type="date_range"] {
  max-width: none;
  padding: 6px 10px;
}

/* Inputs de texto/fecha: más limpios, sin borde duro */
.cgm-taskEdit {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.cgm-taskEdit:hover {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
}
.cgm-taskEdit:focus {
  outline: none;
  border-color: #579bfc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.18);
}

/* El título mantiene su estilo legible */
.cgm-taskEdit.cgm-taskTitleLv__txt {
  border-color: transparent;
  background: transparent;
}
.cgm-taskEdit.cgm-taskTitleLv__txt:hover {
  border-color: rgba(15, 23, 42, 0.12);
}

/* ——— Pills de estado (columna "Desplegable") estilo Monday ——— */
.cgm-statusPick {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 190px;
  vertical-align: middle;
}
.cgm-statusPick__btn {
  display: block;
  width: 100%;
  min-height: 34px;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: #c4c7d4;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}
.cgm-statusPick__btn:hover {
  filter: brightness(0.96);
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.05);
}
.cgm-statusPick__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.25);
}
.cgm-statusPick__btn.is-empty {
  background: #eef0f6;
  color: #9aa0b4;
  font-weight: 600;
}
.cgm-statusPick__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-statusPick__menu {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
}
.cgm-statusPick__menu[hidden] {
  display: none !important;
}
.cgm-statusPick__opt {
  display: block;
  width: 100%;
  min-height: 34px;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: #fff;
  transition: filter 0.1s ease, transform 0.1s ease;
}
.cgm-statusPick__opt:hover {
  filter: brightness(0.95);
}
.cgm-statusPick__opt.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.cgm-statusPick__opt.is-clear {
  background: #579bfc;
  color: #fff;
}

select.cgm-statusSel[data-coltype="select"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  border: none !important;
  border-radius: 6px;
  padding: 7px 12px;
  text-align: center;
  text-align-last: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: #c4c7d4;
  background-image: none;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}
select.cgm-statusSel[data-coltype="select"]:hover {
  filter: brightness(0.96);
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.05);
}
select.cgm-statusSel[data-coltype="select"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.25);
}
select.cgm-statusSel[data-coltype="select"].is-empty {
  background: #eef0f6;
  color: #9aa0b4;
  font-weight: 600;
}
select.cgm-statusSel[data-coltype="select"] option {
  color: #1f2540;
  background: #fff;
  font-weight: 600;
}

/* ——— Deliverable select: chip suave ——— */
select.cgm-taskEdit[data-coltype="deliverable"] {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 7px 26px 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #323338;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23676879' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

/* ——— Personas: avatar circular estilo Monday ——— */
.cgm-peopleCell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
}
.cgm-peopleAv {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #579bfc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  z-index: 1;
  border: 2px solid #fff;
}
.cgm-peopleAv--empty {
  background: transparent;
  border: 1.5px dashed rgba(15, 23, 42, 0.28);
  box-shadow: none;
}
.cgm-peopleAv--empty::after {
  content: "+";
  color: rgba(15, 23, 42, 0.4);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.cgm-peopleCell:hover .cgm-peopleAv--empty {
  border-color: #579bfc;
}
.cgm-peopleCell:hover .cgm-peopleAv--empty::after {
  color: #579bfc;
}
/* El select real queda transparente encima del avatar (clic = abrir) */
.cgm-peopleCell .cgm-people-select {
  position: relative;
  z-index: 2;
  width: 36px;
  min-width: 36px;
  height: 34px;
  margin: 0 auto;
  padding: 0;
  border: none !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-indent: -9999px;
}
.cgm-peopleCell .cgm-people-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.25) !important;
  border-radius: 999px;
}
.cgm-peopleCell .cgm-people-select option {
  color: #1f2540;
  text-indent: 0;
  font-weight: 600;
}

/* ——— Fecha como timeline-pill azul (Monday) ——— */
.cgm-tasksTable__custom .cgm-taskEdit[type="date"],
.cgm-tasksSubTable__table .cgm-taskEdit[type="date"],
.cgm-tasksTable td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"],
.cgm-tasksSubTable__table td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"] {
  border: none;
  background: #e6f0ff;
  color: #1f76e6;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  padding: 7px 30px 7px 10px;
  min-height: 34px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}
.cgm-tasksTable__custom .cgm-taskEdit[type="date"]::-webkit-calendar-picker-indicator,
.cgm-tasksSubTable__table .cgm-taskEdit[type="date"]::-webkit-calendar-picker-indicator,
.cgm-tasksTable td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]::-webkit-calendar-picker-indicator,
.cgm-tasksSubTable__table td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
}
.cgm-tasksTable__custom .cgm-taskEdit[type="date"]::-webkit-datetime-edit,
.cgm-tasksSubTable__table .cgm-taskEdit[type="date"]::-webkit-datetime-edit,
.cgm-tasksTable td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]::-webkit-datetime-edit,
.cgm-tasksSubTable__table td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]::-webkit-datetime-edit {
  padding: 0;
  text-align: center;
}
.cgm-tasksTable__custom .cgm-taskEdit[type="date"]:hover,
.cgm-tasksSubTable__table .cgm-taskEdit[type="date"]:hover,
.cgm-tasksTable td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]:hover,
.cgm-tasksSubTable__table td[data-cgm-col-type="date"] .cgm-taskEdit[type="date"]:hover {
  background: #d8e8ff;
}

/* ——— Intervalo de fechas ——— */
.cgm-dateRangePick {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  vertical-align: middle;
}
.cgm-dateRangePick__btn {
  display: block;
  width: 100%;
  min-height: 34px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #1f76e6;
  background: #e6f0ff;
  cursor: pointer;
  transition: background 0.12s ease;
  box-sizing: border-box;
}
.cgm-dateRangePick__btn:hover {
  background: #d8e8ff;
}
.cgm-dateRangePick__btn.is-empty {
  background: #eef0f6;
  color: #9aa0b4;
  font-weight: 600;
}
.cgm-dateRangePick__label {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.cgm-dateRangePick__hint {
  font-size: 12px;
}

.cgm-dateRangeDlg {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  pointer-events: none;
  background: transparent;
}
.cgm-dateRangeDlg.is-open {
  display: block;
}
.cgm-dateRangeDlg[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.cgm-dateRangeDlg__backdrop {
  display: none;
}
.cgm-dateRangeDlg__panel {
  position: fixed;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  padding: 16px;
  z-index: 1;
  pointer-events: auto;
  box-sizing: border-box;
}
.cgm-dateRangeDlg__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-right: 36px;
  margin-bottom: 12px;
}
.cgm-dateRangeDlg__headRight {
  display: contents;
}
.cgm-dateRangeDlg__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #eef0f6;
  color: #323338;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cgm-dateRangeDlg__close:hover {
  background: #e2e6ef;
}
.cgm-dateRangeDlg__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #323338;
  line-height: 1.25;
}
.cgm-dateRangeDlg__count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.3;
}
.cgm-dateRangeDlg__count:empty {
  display: none;
}
.cgm-dateRangeDlg__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cgm-dateRangeDlg__dateIn {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 12px;
  box-sizing: border-box;
}
.cgm-dateRangeDlg__dateIn:focus {
  outline: none;
  border-color: #579bfc;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.18);
}
.cgm-dateRangeDlg__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cgm-dateRangeDlg__navBtn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cgm-dateRangeDlg__sel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
}
.cgm-dateRangeDlg__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.45);
  text-transform: lowercase;
}
.cgm-dateRangeDlg__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cgm-dateRangeDlg__day {
  aspect-ratio: 1;
  min-height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #323338;
  cursor: pointer;
}
.cgm-dateRangeDlg__day.is-out {
  color: rgba(15, 23, 42, 0.28);
}
.cgm-dateRangeDlg__day:hover {
  background: rgba(87, 155, 252, 0.12);
}
.cgm-dateRangeDlg__day.is-in-range {
  background: #e6f0ff;
  color: #1f76e6;
  border-radius: 0;
}
.cgm-dateRangeDlg__day.is-start,
.cgm-dateRangeDlg__day.is-end {
  background: #579bfc;
  color: #fff;
}
.cgm-dateRangeDlg__day.is-start {
  border-radius: 8px 0 0 8px;
}
.cgm-dateRangeDlg__day.is-end {
  border-radius: 0 8px 8px 0;
}
.cgm-dateRangeDlg__day.is-start.is-end {
  border-radius: 8px;
}
.cgm-dateRangeDlg__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.cgm-dateRangeDlg__btn {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cgm-dateRangeDlg__btn--ghost {
  background: #eef0f6;
  color: #323338;
}
.cgm-dateRangeDlg__btn--primary {
  background: #1f76e6;
  color: #fff;
}

.cgm-org-tasks--share-view .cgm-dateRangePick__btn {
  pointer-events: none;
  cursor: default;
}

/* ——— Hora como pill suave ——— */
.cgm-tasksTable__custom .cgm-taskEdit[type="time"],
.cgm-tasksSubTable__table .cgm-taskEdit[type="time"] {
  border: none;
  background: #f3edff;
  color: #6b46c1;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  padding: 7px 12px;
  min-height: 34px;
  max-width: 130px;
  margin: 0 auto;
}
.cgm-tasksTable__custom .cgm-taskEdit[type="time"]:hover,
.cgm-tasksSubTable__table .cgm-taskEdit[type="time"]:hover {
  background: #ebe3ff;
}

/* ——— Celda de archivos ——— */
.cgm-taskFileCell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.cgm-taskFileCell__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cgm-taskFileCell__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cgm-taskFileCell__thumb {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.cgm-taskFileCell__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgm-taskFileCell__dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: #323338;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cgm-taskFileCell__dl:hover {
  background: #f8fafc;
  border-color: rgba(31, 118, 230, 0.25);
}
.cgm-taskFileCell__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.cgm-taskFileCell__rm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: #323338;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cgm-taskFileCell__item:hover .cgm-taskFileCell__rm {
  display: inline-flex;
}
.cgm-taskFileCell__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px dashed rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #676879;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cgm-taskFileCell__add:hover {
  border-color: #579bfc;
  background: #f5f9ff;
  color: #1f76e6;
}
.cgm-taskFileCell__add.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.cgm-taskFileCell__addIcon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.cgm-taskFileCell__hint {
  font-size: 12px;
}

/* ——— Celda de enlace ——— */
.cgm-taskLinkCell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  justify-content: center;
}
.cgm-taskLinkCell__input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 180px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  font-size: 12.5px;
  text-align: center;
}
.cgm-taskLinkCell__input:focus {
  border-color: #579bfc;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.18);
}
.cgm-taskLinkCell__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e6f0ff;
  color: #1f76e6;
  text-decoration: none;
  font-weight: 800;
  flex-shrink: 0;
}
.cgm-taskLinkCell__open:hover {
  background: #d8e8ff;
}

/* ——— Casilla centrada y con color de marca ——— */
.cgm-tasksTable__custom .cgm-taskEdit[type="checkbox"] {
  accent-color: #00c875;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Composer: status/people también con look pill */
.cgm-tasksCellInput.cgm-statusSel[data-coltype="select"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  text-align-last: center;
  border-radius: 8px;
  font-weight: 650;
}

/* Scope pills (Todos / Organizaciones / Equipos) más elegantes */
.cgm-tasksHead__pill {
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cgm-tasksHead__pill.is-active {
  background: #1f76e6;
  border-color: #1f76e6;
  color: #fff;
}

/* Toggle de vista (Tabla/Kanban/Carga) refinado */
.cgm-viewToggle__link.is-active {
  background: #1f76e6;
  color: #fff;
  border-color: #1f76e6;
}

/* ——— Tareas: editor “Personalizar items” horizontal ——— */
.cgm-inlineChk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  color: var(--cgm-muted);
  font-size: 13px;
}
.cgm-inlineChk input { transform: translateY(1px); }

.cgm-schemaForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.cgm-schemaForm__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 12px;
}
.cgm-schemaForm__foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
  border-radius: 0 0 18px 18px;
}
.cgm-schemaForm__foot .cgm-settings-dlg__btn--primary {
  margin-left: auto;
  min-width: 180px;
}

.cgm-schemaGrid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px;
  background: transparent;
  border: 0;
}
.cgm-schemaGrid__row {
  display: block;
  padding: 14px;
  border: 1px solid var(--cgm-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.92));
}
.cgm-schemaGrid__lv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.cgm-schemaGrid__cols {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}
.cgm-schemaCol {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--cgm-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cgm-schemaCol:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.cgm-schemaCol__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(100px, 150px) auto;
  grid-template-areas: "label type vis actions";
  gap: 8px 10px;
  align-items: end;
  padding: 12px;
}
.cgm-schemaCol__grip {
  display: none;
}
.cgm-schemaCol__field--label { grid-area: label; min-width: 0; }
.cgm-schemaCol__field--type { grid-area: type; min-width: 0; }
.cgm-schemaCol .cgm-rolePick { grid-area: vis; min-width: 0; }
.cgm-schemaCol__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.cgm-schemaCol__load { align-self: center; }
.cgm-schemaCol__rm {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex: 0 0 36px;
  font-size: 18px;
  line-height: 1;
  color: #be123c;
}
.cgm-schemaCol__rm:hover { background: rgba(190, 18, 60, 0.08); border-color: rgba(190, 18, 60, 0.35); }

.cgm-schemaCol__cap {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cgm-muted);
  padding-left: 2px;
}
.cgm-schemaCol .cgm-settings-dlg__input {
  width: 100%;
  display: block;
  max-width: none;
  margin: 0;
}

.cgm-schemaCol .cgm-rolePick__btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
}
.cgm-schemaCol .cgm-rolePick__txt {
  max-width: 100%;
  font-size: 12px;
}

.cgm-schemaCol__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cgm-schemaCol__load {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: rgba(29, 78, 216, 0.08);
  color: var(--cgm-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  align-self: center;
  min-width: 118px;
}
.cgm-schemaCol__loadCap {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(29, 78, 216, 0.85);
}
.cgm-schemaCol__loadSel {
  min-width: 0;
  padding: 6px 8px !important;
  font-size: 12px !important;
  font-weight: 700;
}
.cgm-schemaCol__load input { transform: translateY(1px); }
.cgm-schemaCol__load[hidden] { display: none !important; }

/* Editor de opciones (desplegable) */
.cgm-schemaCol__opts {
  border-top: 1px dashed var(--cgm-border);
  background: rgba(248, 250, 252, 0.7);
  border-radius: 0 0 14px 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-schemaCol__opts[hidden] { display: none !important; }
.cgm-schemaCol__optsHead {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cgm-muted);
}
.cgm-schemaCol__optsHint {
  margin: 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.4;
}
.cgm-schemaCol__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cgm-schemaCol__chips:empty::before {
  content: "Sin opciones todavía";
  font-size: 12px;
  color: rgba(15, 23, 42, 0.4);
  font-style: italic;
}
.cgm-optChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(29, 78, 216, 0.28);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}
.cgm-optChip__color {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #579bfc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.cgm-optChip__colorIn {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.cgm-optChip__txt {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-optChip__rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.cgm-optChip__rm:hover { background: rgba(190, 18, 60, 0.12); color: #be123c; }
.cgm-schemaCol__optsAdd {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cgm-schemaCol__optInput { flex: 1 1 auto; }
.cgm-schemaCol__optAdd { flex: 0 0 auto; white-space: nowrap; font-weight: 800; }

.cgm-rolePick {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}
.cgm-rolePick__btn {
  padding: 10px 12px;
  min-width: 180px;
  text-align: left;
  font-weight: 800;
}
.cgm-rolePick__txt {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-rolePick__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  width: 260px;
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--cgm-border);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 44px rgba(15,23,42,0.18);
  padding: 10px;
}
.cgm-rolePick__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--cgm-text);
}
.cgm-rolePick__opt:hover { background: rgba(29, 78, 216, 0.06); }
.cgm-rolePick__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cgm-rolePick__actions .cgm-settings-dlg__btn {
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 12px;
}
.cgm-schemaGrid__add {
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
  border-style: dashed;
}

@media (max-width: 680px) {
  .cgm-schemaCol__main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "label label"
      "type vis"
      "actions actions";
  }
  .cgm-schemaCol__actions {
    justify-self: stretch;
    justify-content: flex-end;
  }
  .cgm-schemaForm__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cgm-schemaForm__foot .cgm-settings-dlg__btn--primary {
    margin-left: 0;
    width: 100%;
  }
}

.cgm-schemaActions {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 0;
}

/* ——— Tareas: columnas custom (vista tabla) ——— */
.cgm-tasksTable__custom {
  color: var(--cgm-muted);
  font-size: 13px;
  max-width: 240px;
}

.cgm-tasksCellInput {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-size: 13px;
  box-sizing: border-box;
}
.cgm-tasksCellInput--date { max-width: 170px; }
.cgm-tasksCellChk { width: 18px; height: 18px; }
.cgm-taskInlineNew__btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.45);
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
  font-weight: 800;
  cursor: pointer;
}

.cgm-taskEdit {
  width: 100%;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.92);
  font-size: 13px;
  box-sizing: border-box;
}
.cgm-taskEdit[type="checkbox"] { width: 18px; height: 18px; padding: 0; }

.cgm-rowMenu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.cgm-rowMenu--task {
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.cgm-tasksBoard__menuSlot:hover .cgm-rowMenu--task,
.cgm-rowMenu--task:focus-within {
  opacity: 1;
}
.cgm-rowMenu__btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.cgm-rowMenu__btn:hover {
  border-color: rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.04);
  color: rgba(15, 23, 42, 0.72);
}
.cgm-rowMenu__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 190px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 44px rgba(15,23,42,0.18);
  padding: 8px;
}
.cgm-rowMenu__item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.cgm-rowMenu__item:hover { background: rgba(29,78,216,0.06); }
.cgm-rowMenu__item--danger { color: #dc2626; }
.cgm-rowMenu__item--danger:hover { background: rgba(220,38,38,0.08); }

/* ——— Panel de actualizaciones (derecha, estilo Monday) ——— */
.cgm-updPanel {
  position: fixed;
  inset: 0;
  z-index: 100300;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.cgm-updPanel[hidden] { display: none !important; }
.cgm-updPanel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cgm-updPanel:not([hidden]) .cgm-updPanel__backdrop {
  opacity: 1;
}
.cgm-updPanel__drawer {
  position: relative;
  z-index: 1;
  width: min(480px, 94vw);
  height: 100vh;
  margin-left: auto;
  background: #fff;
  border-left: 1px solid #e6e9ef;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  transform: translateX(102%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.cgm-updPanel:not([hidden]) .cgm-updPanel__drawer {
  transform: translateX(0);
}
body.cgm-updPanel-open { overflow: hidden; }

.cgm-updPanel__head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e6e9ef;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.cgm-updPanel__back {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #676879;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cgm-updPanel__back:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #323338;
}
.cgm-updPanel__headMain { min-width: 0; flex: 1; }
.cgm-updPanel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #323338;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cgm-updPanel__sub {
  margin-top: 3px;
  font-size: 12px;
  color: #676879;
  font-weight: 500;
}

.cgm-updPanel__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid #e6e9ef;
  flex-shrink: 0;
  overflow-x: auto;
}
.cgm-updPanel__tab {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #676879;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cgm-updPanel__tab.is-active {
  color: #0073ea;
  border-bottom-color: #0073ea;
}
.cgm-updPanel__tab:disabled {
  opacity: 0.45;
  cursor: default;
}
.cgm-updPanel__tabCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(0, 115, 234, 0.12);
  color: #0073ea;
  font-size: 11px;
  font-weight: 800;
}

.cgm-updPanel__panes {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cgm-updPanel__pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cgm-updPanel__pane[hidden] { display: none !important; }

.cgm-updPanel__composer {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e6e9ef;
  flex-shrink: 0;
  background: #fafbfc;
}
.cgm-updComposer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cgm-updComposer__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #579bfc;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cgm-updSend {
  padding: 8px 16px;
  border-radius: 8px;
  border: 0;
  background: #0073ea;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cgm-updSend:hover { background: #0060b9; }
.cgm-updSend:disabled { opacity: 0.55; cursor: default; }

.cgm-updEditor {
  flex: 1;
  min-width: 0;
  border: 1px solid #579bfc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cgm-updEditor.is-collapsed {
  border-color: #d0d4e4;
}
.cgm-updEditor:focus-within {
  border-color: #579bfc;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.15);
}
.cgm-updEditor__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid #e6e9ef;
  background: #fff;
}
.cgm-updEditor__btn {
  border: 0;
  background: transparent;
  color: #676879;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-updEditor__btn:hover { background: rgba(15, 23, 42, 0.06); color: #323338; }
.cgm-updEditor__sep {
  width: 1px;
  height: 18px;
  background: #e6e9ef;
  margin: 0 4px;
}
.cgm-updEditor__box {
  position: relative;
  min-height: 72px;
}
.cgm-updComposer__attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 0;
}
.cgm-updComposer__attachItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px 6px 6px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #f5f6f8;
}
.cgm-updComposer__attachItem img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.cgm-updComposer__attachIco {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  font-size: 18px;
}
.cgm-updComposer__attachName {
  font-size: 12px;
  color: #323338;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-updComposer__attachSpin {
  font-size: 12px;
  color: #676879;
  padding: 0 8px;
}
.cgm-updComposer__attachRm {
  border: 0;
  background: transparent;
  color: #676879;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.cgm-updComposer__attachRm:hover { background: rgba(15, 23, 42, 0.08); color: #323338; }

.cgm-updAttach {
  margin-top: 10px;
}
.cgm-updAttach__imgBtn {
  display: inline-block;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}
.cgm-updAttach__imgBtn img {
  display: block;
  max-width: min(320px, 100%);
  max-height: 240px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  object-fit: cover;
}
.cgm-updAttach__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #f5f6f8;
  color: #323338;
  text-decoration: none;
  font-size: 13px;
  max-width: 100%;
}
.cgm-updAttach__file:hover { border-color: #579bfc; background: #f5f9ff; }
.cgm-updAttach__fileName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cgm-updLightbox {
  position: fixed;
  inset: 0;
  z-index: 100600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cgm-updLightbox[hidden] { display: none !important; }
.cgm-updLightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.72);
  cursor: zoom-out;
}
.cgm-updLightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  padding: 12px;
}
.cgm-updLightbox__img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.cgm-updLightbox__x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #323338;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.cgm-updEditor__field {
  min-height: 72px;
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #323338;
  outline: none;
}
.cgm-updEditor__field:empty::before {
  content: attr(data-placeholder);
  color: #9699a6;
  pointer-events: none;
}
.cgm-updEditor.is-collapsed .cgm-updEditor__field {
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
}
.cgm-updEditor__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #f0f1f5;
  background: #fff;
}
.cgm-updEditor__tool {
  border: 0;
  background: transparent;
  color: #676879;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  padding: 0 6px;
}
.cgm-updEditor__tool:hover { background: rgba(15, 23, 42, 0.06); }
.cgm-updEditor__tool--muted { cursor: default; opacity: 0.7; }
.cgm-updEditor__foot .cgm-updSend {
  margin-left: auto;
}

.cgm-updFiles {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cgm-updFiles__head {
  padding: 14px 16px;
  border-bottom: 1px solid #e6e9ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.cgm-updFiles__hint {
  margin: 0;
  font-size: 13px;
  color: #676879;
}
.cgm-updFiles__uploadBtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0073ea;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cgm-updFiles__uploadBtn:hover { background: #0060b9; }
.cgm-updFiles__list {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cgm-updFile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.cgm-updFile:hover { border-color: #579bfc; background: #f5f9ff; }
.cgm-updFile__ico { font-size: 20px; flex: 0 0 auto; }
.cgm-updFile__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cgm-updFile__name { font-size: 14px; font-weight: 700; color: #323338; word-break: break-word; }
.cgm-updFile__sub { font-size: 12px; color: #676879; }

.cgm-updActivity {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-updAct {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f5;
}
.cgm-updAct:last-child { border-bottom: 0; }
.cgm-updAct__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-updAct__body { min-width: 0; flex: 1; }
.cgm-updAct__line { font-size: 13px; color: #323338; margin-bottom: 4px; }
.cgm-updAct__when { color: #9699a6; font-weight: 500; font-size: 12px; margin-left: 6px; }
.cgm-updAct__txt { font-size: 13px; color: #676879; line-height: 1.45; }

.cgm-emoji-dlg--updPanel {
  z-index: 100400;
}
.cgm-emoji-dlg--updPanel .cgm-emoji-dlg__panel {
  max-height: min(380px, calc(100vh - 16px));
}
.cgm-emoji-dlg--updPanel .cgm-emoji-dlg__search--top {
  margin-bottom: 8px;
}
.cgm-emoji-dlg--updPanel .cgm-emoji-dlg__search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 14px;
  box-sizing: border-box;
}
.cgm-emoji-dlg--updPanel .cgm-emoji-dlg__search-input:focus {
  outline: none;
  border-color: #579bfc;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.12);
}

.cgm-updPanel__body {
  padding: 8px 20px 24px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

.cgm-updEmpty {
  text-align: center;
  padding: 40px 20px;
  color: #676879;
}
.cgm-updEmpty__ico { font-size: 28px; margin-bottom: 8px; opacity: 0.7; }
.cgm-updEmpty__txt { font-size: 13px; line-height: 1.5; }

/* ——— Feed estilo Monday ——— */
.cgm-updThread {
  padding: 18px 0;
  border-bottom: 1px solid #e6e9ef;
}
.cgm-updThread:last-child { border-bottom: 0; }

.cgm-updPost__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cgm-updPost__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-updPost__main {
  flex: 1;
  min-width: 0;
}
.cgm-updPost__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cgm-updPost__who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.cgm-updPost__name {
  font-size: 15px;
  font-weight: 700;
  color: #323338;
  line-height: 1.2;
}
.cgm-updPost__when {
  font-size: 13px;
  color: #9699a6;
  font-weight: 400;
}
.cgm-updPost__body {
  font-size: 14px;
  line-height: 1.55;
  color: #323338;
  white-space: pre-wrap;
  word-break: break-word;
}
.cgm-updPost__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
}

.cgm-updBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #676879;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
button.cgm-updBtn:hover:not(:disabled) { color: #323338; }
.cgm-updBtn.is-liked { color: #0073ea; }
.cgm-updBtn__ico {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}
.cgm-updBtn__count {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}

.cgm-updThread__replies {
  margin-top: 14px;
  margin-left: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-updReplyItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cgm-updReplyItem__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cgm-updReplyItem__bubble {
  flex: 1;
  min-width: 0;
  background: #f5f6f8;
  border-radius: 8px;
  padding: 10px 12px 8px;
}
.cgm-updReplyItem__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.cgm-updReplyItem__who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.cgm-updReplyItem__name {
  font-size: 14px;
  font-weight: 700;
  color: #323338;
}
.cgm-updReplyItem__when {
  font-size: 12px;
  color: #9699a6;
}
.cgm-updReplyItem__body {
  font-size: 14px;
  line-height: 1.5;
  color: #323338;
  word-break: break-word;
}
.cgm-updReplyItem__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 6px;
}

.cgm-updReplyComposer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  margin-left: 48px;
}
.cgm-updReplyComposer__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.cgm-updReplyComposer__box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: #f5f6f8;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
}
.cgm-updReplyComposer__box:focus-within {
  border-color: #579bfc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.1);
}
.cgm-updReplyComposer__field {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  max-height: 120px;
  overflow: auto;
  border: 0;
  padding: 4px 0;
  font-size: 14px;
  background: transparent;
  color: #323338;
  line-height: 1.45;
  outline: none;
}
.cgm-updReplyComposer__field:empty::before {
  content: attr(data-placeholder);
  color: #9699a6;
  pointer-events: none;
}
.cgm-updReplyComposer__mention {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #676879;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.cgm-updReplyComposer__mention:hover { background: rgba(15, 23, 42, 0.06); }

.cgm-updMore {
  position: relative;
  flex-shrink: 0;
}
.cgm-updMore__btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #676879;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.cgm-updMore__btn:hover,
.cgm-updMore__btn.is-open {
  background: rgba(0, 115, 234, 0.1);
  color: #0073ea;
}
.cgm-updMore__pop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 6px 0;
  z-index: 20;
}
.cgm-updMore__pop[hidden] { display: none !important; }
.cgm-updMore__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  color: #323338;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.cgm-updMore__item:hover { background: #f5f6f8; }
.cgm-updMore__ico {
  width: 16px;
  text-align: center;
  opacity: 0.75;
}

.cgm-updEdit {
  margin-top: 8px;
}
.cgm-updEdit__field {
  min-height: 72px;
  max-height: 200px;
  overflow: auto;
  border: 1px solid #579bfc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #323338;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.12);
  outline: none;
}
.cgm-updEdit__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.cgm-updEdit__cancel {
  border: 0;
  background: transparent;
  color: #676879;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.cgm-updEdit__cancel:hover { background: rgba(15, 23, 42, 0.05); }
.cgm-updEdit__save {
  border: 0;
  background: #0073ea;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.cgm-updEdit__save:hover { background: #0060b9; }
.cgm-updEdit__save:disabled { opacity: 0.55; cursor: default; }
.cgm-updReplyItem__bubble .cgm-updEdit { margin-top: 6px; }

.cgm-updMention {
  color: #0073ea;
  font-weight: 600;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.cgm-mentionMenu2 {
  position: fixed;
  z-index: 100500;
  pointer-events: auto;
  width: 320px;
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e6e9ef;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  padding: 0;
}
.cgm-mentionMenu2::before {
  content: '';
  position: absolute;
  left: 28px;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid #e6e9ef;
  transform: rotate(45deg);
  z-index: 0;
}
.cgm-mentionMenu2[data-placement="below"]::before {
  top: -6px;
  border-right: 0;
  border-bottom: 0;
}
.cgm-mentionMenu2[data-placement="above"]::before {
  bottom: -6px;
  border-left: 0;
  border-top: 0;
}
.cgm-mentionMenu2[hidden] { display: none !important; }
.cgm-mentionMenu2__head {
  padding: 12px 14px 8px;
  font-size: 15px;
  font-weight: 700;
  color: #323338;
  border-bottom: 1px solid #f0f1f5;
  background: #fff;
  position: relative;
  z-index: 1;
}
.cgm-mentionMenu2__list {
  max-height: 260px;
  overflow: auto;
  padding: 4px 0 6px;
  position: relative;
  z-index: 1;
}
.cgm-mentionMenu2__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}
.cgm-mentionMenu2__item.is-active,
.cgm-mentionMenu2__item:hover {
  background: #f5f6f8;
}
.cgm-mentionMenu2__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-mentionMenu2__line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.cgm-mentionMenu2__name {
  font-size: 14px;
  font-weight: 600;
  color: #323338;
}
.cgm-mentionMenu2__role {
  font-size: 13px;
  font-weight: 500;
  color: #9699a6;
}

/* Legacy (compat) */
.cgm-updItem {
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.cgm-updItem__meta { font-size: 12px; color: #676879; font-weight: 600; margin-bottom: 6px; }
.cgm-updItem__txt { font-size: 14px; color: #323338; white-space: pre-wrap; }

@media (max-width: 640px) {
  .cgm-updPanel__drawer { width: 100vw; }
  .cgm-updThread__replies,
  .cgm-updReplyComposer { margin-left: 0; }
}

/* ——— Brief (panel derecho) ——— */
.cgm-briefPanel { position: fixed; top: 0; right: 0; width: min(560px, 92vw); height: 100vh; z-index: 100350; background: rgba(255,255,255,0.98); border-left: 1px solid rgba(15,23,42,0.12); box-shadow: -24px 0 60px rgba(15,23,42,0.16); display:flex; flex-direction:column; }
.cgm-briefPanel[hidden]{ display:none !important; }
.cgm-briefPanel__head{ padding:16px 18px 12px; border-bottom:1px solid rgba(15,23,42,0.08); display:flex; justify-content:space-between; gap:10px; }
.cgm-briefPanel__title{ margin:0; font-size:1.05rem; font-weight: 900; }
.cgm-briefPanel__sub{ font-size:12px; color: rgba(15,23,42,0.55); font-weight:800; margin-top: 2px; }
.cgm-briefPanel__x{ width:34px; height:34px; border-radius:12px; border:1px solid rgba(15,23,42,0.14); background: rgba(15,23,42,0.04); cursor:pointer; font-weight:900; }
.cgm-briefPanel__body{ padding:14px 18px 18px; overflow:auto; flex:1; }
.cgm-briefForm{ display:grid; gap: 12px; }
.cgm-briefField label{ display:block; font-size:12px; font-weight:900; color: rgba(15,23,42,0.7); margin-bottom: 6px; }
.cgm-briefField input,.cgm-briefField textarea,.cgm-briefField select{ width:100%; border-radius: 14px; border:1px solid rgba(15,23,42,0.14); padding: 10px 12px; font-size: 14px; box-sizing: border-box; background: rgba(255,255,255,0.95); }
.cgm-briefField textarea{ min-height: 110px; resize: vertical; }
.cgm-briefActions{ display:flex; justify-content:flex-end; gap:10px; margin-top: 12px; }
.cgm-briefSave{ padding:10px 12px; border-radius:12px; border:1px solid rgba(29,78,216,0.45); background: rgba(29,78,216,0.1); color:#1d4ed8; font-weight:900; cursor:pointer; }

/* ——— Tareas globales: 2 tablas (todas + filtrada) ——— */
.cgm-tasksSplit {
  display: grid;
  gap: 18px;
}
.cgm-tasksSplit__title {
  font-weight: 900;
  margin: 0 0 10px;
  color: #0f172a;
}
.cgm-tasksSplit__sel {
  width: min(360px, 100%);
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-size: 14px;
}

.cgm-itemView {
  display: grid;
  gap: 10px;
}
.cgm-itemView__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
}
.cgm-itemView__k {
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cgm-itemView__v {
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
}

.cgm-taskSubForm {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
  margin-left: calc(var(--cgm-task-indent, 0px) + 22px);
  padding: 8px 0 4px 12px;
  border-left: 2px dashed rgba(59, 130, 246, 0.35);
}
.cgm-taskSubForm__input {
  flex: 1 1 auto;
  min-width: 160px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 13px;
}
.cgm-taskSubForm__btn {
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  font-weight: 850;
  font-size: 12px;
  cursor: pointer;
}
.cgm-taskSubForm__btn:hover {
  background: rgba(15,23,42,0.04);
}

.cgm-tasksTable__empty {
  color: rgba(15,23,42,0.65);
  padding: 18px 14px;
}

.cgm-kanban {
  display: grid;
  gap: 12px;
}

.cgm-kanbanCol {
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248, 250, 252, 0.9);
  padding: 14px;
}

.cgm-kanbanCol__title {
  font-weight: 900;
  margin-bottom: 10px;
}

.cgm-kanbanCol__cards {
  display: grid;
  gap: 10px;
}

.cgm-taskCard {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  padding: 12px 12px;
}

.cgm-taskCard__title {
  font-weight: 850;
}

.cgm-taskCard__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(15,23,42,0.55);
  font-size: 12px;
}

.cgm-taskCard__due {
  white-space: nowrap;
}

.cgm-topbar2__backGrids {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.cgm-topbar2__backGrids:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* Client Map (Mapa del Cliente) */
.cgm-card--clientMap {
  padding: 16px;
}
.cgm-clientMap__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .cgm-clientMap__grid {
    grid-template-columns: 1fr;
  }
}
.cgm-clientMap__sec {
  background: var(--cgm-card2);
  border: 1px solid var(--cgm-border);
  border-radius: 16px;
  padding: 14px;
}
.cgm-clientMap__secHead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.cgm-clientMap__h {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.cgm-clientMap__sub {
  margin: 0;
  color: var(--cgm-muted);
  font-size: 13px;
}
.cgm-clientMap__people {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-clientMap__person {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.70);
}
.cgm-clientMap__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.16), rgba(99, 102, 241, 0.12));
}
.cgm-clientMap__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cgm-clientMap__who {
  min-width: 0;
}
.cgm-clientMap__name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}
.cgm-clientMap__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.66);
  font-size: 12px;
}
.cgm-clientMap__role {
  flex: 0 0 auto;
}
.cgm-clientMap__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 420px;
}
.cgm-clientMap__chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  user-select: none;
}
.cgm-clientMap__chk input {
  width: 14px;
  height: 14px;
}
@media (max-width: 520px) {
  .cgm-clientMap__row {
    flex-direction: column;
  }
  .cgm-clientMap__checks {
    justify-content: flex-start;
    max-width: none;
  }
}
.cgm-clientMap__roleCard {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.85);
}
.cgm-clientMap__roleTitle {
  font-weight: 850;
  font-size: 13px;
}
.cgm-clientMap__roleResp {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  white-space: pre-line;
}
.cgm-clientMap__roleResp--muted {
  color: rgba(15, 23, 42, 0.55);
}
.cgm-clientMap__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-clientMap__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cgm-clientMap__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 980px) {
  .cgm-clientMap__two {
    grid-template-columns: 1fr;
  }
}
.cgm-clientMap__lbl {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.74);
}
.cgm-clientMap__ta {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
  resize: vertical;
}
.cgm-clientMap__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.cgm-clientMap__hint {
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}

.cgm-clientMap__newRole {
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.55);
}
.cgm-clientMap__newRoleHead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.cgm-clientMap__newRoleTitle {
  font-weight: 850;
  font-size: 13px;
}
.cgm-clientMap__newRoleSub {
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}
.cgm-clientMap__newRoleForm {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
}
.cgm-clientMap__input {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
}
@media (max-width: 980px) {
  .cgm-clientMap__newRoleForm {
    grid-template-columns: 1fr;
  }
}

/* Client portal config (inside Mapa del Cliente) */
.cgm-clientPortalCfg__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}
.cgm-clientPortalCfg__lbl {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.74);
  padding-top: 10px;
}
.cgm-clientPortalCfg__input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
}
.cgm-clientPortalCfg__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cgm-clientPortalCfg__chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  user-select: none;
}
.cgm-clientPortalCfg__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cgm-clientPortalCfg__row {
    grid-template-columns: 1fr;
  }
  .cgm-clientPortalCfg__lbl {
    padding-top: 0;
  }
}

/* Public client portal page */
.cgm-clientPortal {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}
.cgm-clientPortal__card {
  padding: 16px;
}
.cgm-clientPortal__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.cgm-clientPortal__title {
  font-weight: 900;
  font-size: 18px;
}
.cgm-clientPortal__sub {
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}
.cgm-clientPortal__login {
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.cgm-clientPortal__lbl {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.74);
}
.cgm-clientPortal__input {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.96);
}
.cgm-clientPortal__err {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}
.cgm-tile--disabled {
  opacity: 0.92;
  cursor: default;
}
.cgm-clientPortal__note {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}

.cgm-clientPortal__who {
  margin: 10px 0 14px;
  font-size: 13px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.78);
}

.cgm-clientPortalCfg__hr {
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
  margin: 14px 0;
}
.cgm-clientPortalCfg__secTitle {
  font-weight: 900;
  font-size: 14px;
}
.cgm-clientPortalCfg__help {
  margin: 6px 0 10px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
}
.cgm-clientPortalCfg__newUser {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 980px) {
  .cgm-clientPortalCfg__newUser {
    grid-template-columns: 1fr;
  }
}
.cgm-clientPortalCfg__list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.cgm-clientPortalCfg__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
}
.cgm-clientPortalCfg__itemName {
  font-weight: 900;
}
.cgm-clientPortalCfg__itemMeta {
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  white-space: nowrap;
}

.cgm-card--repo {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cgm-repo__intro {
  margin-bottom: 16px;
}

.cgm-repo__h {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.cgm-repo__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.45;
}

.cgm-repo__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(29, 78, 216, 0.28);
  background: rgba(29, 78, 216, 0.04);
}

.cgm-repo__lbl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cgm-repo__lbl--grow {
  flex: 1 1 220px;
}

.cgm-repo__lblTxt {
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cgm-repo__textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 44px;
  box-sizing: border-box;
}

.cgm-repo__textarea--sm {
  min-height: 52px;
  font-size: 13px;
}

.cgm-repo__btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: #0f172a;
}

.cgm-repo__btn--primary {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.92);
  color: #fff;
}

.cgm-repo__btn--primary:hover {
  filter: brightness(1.05);
}

.cgm-repo__btn--ghost {
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.cgm-repo__btn--danger {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.35);
}

.cgm-repo__btn--danger:hover {
  background: rgba(254, 202, 202, 0.5);
}

.cgm-repo__table {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.cgm-repo__thead {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(180px, 2fr) minmax(100px, 0.75fr) minmax(160px, 1fr);
  gap: 12px;
  padding: 12px 16px;
  background: #fafbff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-repo__th {
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cgm-repo__tr {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(180px, 2fr) minmax(100px, 0.75fr) minmax(160px, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  align-items: start;
}

.cgm-repo__tr:last-child {
  border-bottom: none;
}

.cgm-repo__fileCell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.cgm-fileIcon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
}

.cgm-fileIcon--pdf {
  background: rgba(229, 57, 53, 0.12);
  border-color: rgba(229, 57, 53, 0.35);
  color: #c62828;
}

.cgm-fileIcon--excel {
  background: rgba(33, 115, 70, 0.14);
  border-color: rgba(33, 115, 70, 0.38);
  color: #1b5e20;
}

.cgm-fileIcon--word {
  background: rgba(24, 90, 189, 0.12);
  border-color: rgba(24, 90, 189, 0.35);
  color: #1565c0;
}

.cgm-fileIcon--ppt {
  background: rgba(210, 71, 38, 0.12);
  border-color: rgba(210, 71, 38, 0.35);
  color: #d84315;
}

.cgm-fileIcon--image {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.32);
  color: #6d28d9;
}

.cgm-fileIcon--video {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.35);
  color: #0e7490;
}

.cgm-fileIcon--audio {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.cgm-fileIcon--zip {
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.3);
  color: #475569;
}

.cgm-fileIcon--text {
  background: rgba(71, 85, 105, 0.1);
  border-color: rgba(71, 85, 105, 0.25);
  color: #334155;
}

.cgm-repo__fname {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.35;
  padding-top: 2px;
}

.cgm-repo__descRead {
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  margin-bottom: 8px;
  word-break: break-word;
}

.cgm-repo__editDesc {
  font-size: 12px;
  font-weight: 800;
  color: rgba(29, 78, 216, 0.95);
  text-decoration: none;
}

.cgm-repo__editDesc:hover {
  text-decoration: underline;
}

.cgm-repo__descActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cgm-repo__cancelDesc {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
  text-decoration: none;
}

.cgm-repo__cancelDesc:hover {
  color: #0f172a;
  text-decoration: underline;
}

.cgm-repo__descForm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cgm-repo__metaSize {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

.cgm-repo__metaDate {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
  margin-top: 4px;
}

.cgm-repo__td--act {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.cgm-repo__pv {
  font-weight: 800;
  font-size: 13px;
  color: #0f766e;
  text-decoration: none;
}

.cgm-repo__pv:hover {
  text-decoration: underline;
}

.cgm-repo__dl {
  font-weight: 800;
  font-size: 13px;
  color: rgba(29, 78, 216, 0.95);
  text-decoration: none;
}

.cgm-repo__dl:hover {
  text-decoration: underline;
}

.cgm-repo__delForm {
  margin: 0;
}

.cgm-repo__empty {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .cgm-repo__thead {
    display: none;
  }
  .cgm-repo__tr {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cgm-repo__td--act {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.cgm-sectionBack {
  margin: 0 0 14px;
}

.cgm-sectionBack__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(29, 78, 216, 0.95);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.22);
  transition: background 0.15s ease, color 0.15s ease;
}

.cgm-sectionBack__btn:hover {
  background: rgba(29, 78, 216, 0.14);
  color: #1e3a8a;
}

.cgm-card--repo .cgm-sectionBack,
.cgm-card--reqEdit .cgm-sectionBack {
  padding: 0 2px;
  margin-bottom: 16px;
}

.cgm-global-grid-shell .cgm-sectionBack {
  margin-bottom: 12px;
}

.cgm-main--designerPanel > .cgm-sectionBack {
  margin: 0 0 16px;
}

.cgm-card--tiles {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 18px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.cgm-emptyState {
  padding: 22px 18px;
  color: rgba(15,23,42,0.65);
}

.cgm-tileGrid.cgm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cgm-tileWrap {
  list-style: none;
}

.cgm-portal {
  display: grid;
  gap: 16px;
}

.cgm-portal__h {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cgm-portal__hIco {
  flex-shrink: 0;
  color: rgba(29, 78, 216, 0.95);
}

.cgm-portal__recent {
  margin-top: 14px;
}

.cgm-portalRecent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cgm-portalRecent__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  color: #0f172a;
}

.cgm-portalRecent__link:hover {
  background: rgba(241, 245, 255, 0.95);
}

.cgm-portalRecent__name {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cgm-portalRecent__org {
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Portal: las tarjetas de organizaciones no deben forzar cuadrado (evita hueco grande). */
.cgm-portal .cgm-tileGrid.cgm-list .cgm-tile {
  aspect-ratio: auto;
  padding: 18px 12px 16px;
}

.cgm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cgm-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15,23,42,0.12);
}

.cgm-tile:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.55);
  outline-offset: 2px;
}

.cgm-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.cgm-tile__icon svg {
  flex-shrink: 0;
}

.cgm-tile__icon--folder {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.cgm-tile__icon--req {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #4338ca;
}

.cgm-tile__icon--grid {
  background: rgba(29, 78, 216, 0.14);
  border: 1px solid rgba(29, 78, 216, 0.28);
  color: #1d4ed8;
}

.cgm-tile--repo {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(217, 119, 6, 0.22);
}

.cgm-tile--repo:hover {
  background: rgba(245, 158, 11, 0.12);
}

.cgm-tile--req {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(79, 70, 229, 0.22);
}

.cgm-tile--req:hover {
  background: rgba(99, 102, 241, 0.11);
}

.cgm-tile--grid {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.10);
}

.cgm-tile--grid:hover {
  background: rgba(255, 255, 255, 1);
}

.cgm-tile--team {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(79, 70, 229, 0.16);
}
.cgm-tile--team:hover {
  background: rgba(238, 242, 255, 0.95);
  border-color: rgba(79, 70, 229, 0.28);
}
.cgm-tile__icon--team {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.28));
  color: #3730a3;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.cgm-portal__teams {
  margin-top: 0;
}
.cgm-portal__teamsFoot {
  margin: 12px 0 0;
  padding: 0 4px;
}
.cgm-portal__teamsLink {
  font-size: 13px;
  font-weight: 800;
  color: #4f46e5;
  text-decoration: none;
}
.cgm-portal__teamsLink:hover {
  text-decoration: underline;
}
.cgm-portal__teamsIntro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.62);
}
.cgm-tileGrid--teamsHub .cgm-tile {
  min-height: 120px;
}

.cgm-tile__title {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.cgm-tile__meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(15,23,42,0.58);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.cgm-tile__meta--muted {
  font-style: italic;
  color: rgba(15,23,42,0.48);
}

.cgm-tileGrid .cgm-emptyState--inList {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px dashed rgba(15,23,42,0.12);
  background: rgba(248, 250, 252, 0.85);
  text-align: left;
}

/* ===== HOME · FANTIME ===== */
.cgm-homePortal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.cgm-homePortal__greet { display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap; }
.cgm-homePortal__title { font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:clamp(30px,3.8vw,46px); letter-spacing:-.025em; margin:0; line-height:1; color:#1b2435; }
.cgm-homePortal__sub { color:#79829a; font-size:15.5px; margin-top:12px; display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
.cgm-homePortal__admin { display:inline-flex; align-items:center; gap:7px; background:linear-gradient(135deg,#eef3ff,#e1e9ff); color:#1f47d6; font-weight:700; font-size:12.5px; padding:5px 12px; border-radius:999px; letter-spacing:.04em; }
.cgm-homePortal__adminDot { width:6px; height:6px; border-radius:50%; background:#2f63ff; }
.cgm-homePortal__greetSpacer { flex:1; }
.cgm-homePortal__bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #e9ebf1;border-radius:14px;background:#fff;color:#475067;cursor:pointer;margin-right:10px;box-shadow:0 1px 2px rgba(20,28,46,.04)}
.cgm-homePortal__bell:hover{border-color:#2f63ff;color:#1f47d6;background:#f8faff}
.cgm-homePortal__bell svg{width:22px;height:22px}
.cgm-homePortal__bellBadge{position:absolute;top:6px;right:6px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ff5667;color:#fff;font-size:10px;font-weight:700;line-height:17px;text-align:center}
.cgm-homePortal__create { border:none; color:#fff; background:linear-gradient(135deg,#2f63ff,#5b6bff); font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:16px; padding:13px 22px; border-radius:14px; display:inline-flex; align-items:center; gap:9px; text-decoration:none; box-shadow:0 10px 24px rgba(47,99,255,.32), inset 0 1px 0 rgba(255,255,255,.25); transition:transform .2s, box-shadow .2s; }
.cgm-homePortal__create:hover { transform:translateY(-2px); box-shadow:0 16px 34px rgba(47,99,255,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.cgm-homePortal__create svg { width:19px; height:19px; }

.cgm-homePortal__stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:30px; }
.cgm-homePortal__stat { background:#fff; border:1px solid #e9ebf1; border-radius:14px; padding:16px 18px; box-shadow:0 1px 2px rgba(20,28,46,.04), 0 1px 3px rgba(20,28,46,.05); display:flex; align-items:center; gap:14px; transition:transform .18s, box-shadow .18s; }
.cgm-homePortal__stat:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(20,28,46,.07), 0 18px 38px rgba(20,28,46,.09); }
.cgm-homePortal__statIco { width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:none; background:linear-gradient(150deg,color-mix(in srgb,var(--c) 17%,white),color-mix(in srgb,var(--c) 6%,white)); color:var(--c); }
.cgm-homePortal__statIco svg { width:21px; height:21px; stroke-width:1.9; }
.cgm-homePortal__statVal { font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:24px; line-height:1; letter-spacing:-.02em; }
.cgm-homePortal__statLbl { font-size:12.5px; color:#79829a; margin-top:3px; font-weight:500; }

.cgm-homePortal__sec { margin-top:36px; }
.cgm-homePortal__sec--noTop { margin-top:0; }
.cgm-homePortal__secHead { display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.cgm-homePortal__secIco { width:30px; height:30px; border-radius:9px; background:#eaf0ff; color:#1f47d6; display:inline-flex; align-items:center; justify-content:center; }
.cgm-homePortal__secIco svg { width:18px; height:18px; }
.cgm-homePortal__secHead h2 { font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:21px; letter-spacing:-.01em; margin:0; }
.cgm-homePortal__secCount { color:#9aa2b6; font-size:14px; font-weight:600; }

.cgm-homePortal__orgs { display:grid; grid-template-columns:repeat(auto-fill,minmax(268px,1fr)); gap:16px; }
.cgm-homePortal__org { background:#fff; border:1px solid #e9ebf1; border-radius:18px; padding:22px; box-shadow:0 1px 2px rgba(20,28,46,.04),0 1px 3px rgba(20,28,46,.05); position:relative; overflow:hidden; text-decoration:none; color:inherit; transition:transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s; }
.cgm-homePortal__org::after { content:""; position:absolute; right:-40px; top:-40px; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--c) 14%,transparent),transparent 70%); pointer-events:none; }
.cgm-homePortal__org > * { position:relative; }
.cgm-homePortal__org:hover { transform:translateY(-4px); box-shadow:0 6px 14px rgba(20,28,46,.07),0 18px 38px rgba(20,28,46,.09); border-color:color-mix(in srgb,var(--c) 45%,transparent); }
.cgm-homePortal__orgTop { display:flex; align-items:flex-start; justify-content:space-between; }
.cgm-homePortal__orgTop .cgm-brandMark { flex: none; }
.cgm-homePortal__role { font-size:11.5px; font-weight:700; color:#1f47d6; background:#eaf0ff; padding:4px 10px; border-radius:999px; }
.cgm-homePortal__orgName { font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:19px; margin-top:16px; letter-spacing:-.01em; color:#1b2435; }
.cgm-homePortal__orgFoot { display:flex; align-items:center; justify-content:space-between; margin-top:22px; padding-top:16px; border-top:1px solid #eef0f4; }
.cgm-homePortal__stack { display:flex; align-items:center; }
.cgm-homePortal__stackAv,
.cgm-homePortal__stackMore {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  overflow: hidden;
}
.cgm-homePortal__stackAv--photo {
  background: #fff;
  padding: 0;
}
.cgm-homePortal__stackAv--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgm-homePortal__stackAv:first-child { margin-left:0; }
.cgm-homePortal__stackAv { color:#fff; background:linear-gradient(135deg,#2f63ff,#5b8cff); }
.cgm-homePortal__stackMore { background:#eef0f4; color:#475067; }
.cgm-homePortal__orgGo { color:#79829a; font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:5px; transition:color .18s, gap .18s; }
.cgm-homePortal__org:hover .cgm-homePortal__orgGo { color:var(--c); gap:9px; }
.cgm-homePortal__orgAdd { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; background:#fafbfc; border:1px dashed #dfe3ec; border-radius:18px; padding:22px; color:#79829a; font-weight:600; font-size:14.5px; transition:.18s; min-height:200px; text-decoration:none; }
.cgm-homePortal__orgAdd:hover { border-color:#2f63ff; color:#1f47d6; background:#eaf0ff; }
.cgm-homePortal__orgAddPlus { width:46px; height:46px; border-radius:13px; border:1.5px dashed currentColor; display:flex; align-items:center; justify-content:center; font-size:24px; }

.cgm-homePortal__cols { display:grid; grid-template-columns:1.6fr 1fr; gap:24px; margin-top:36px; align-items:start; }
.cgm-homePortal__panel { background:#fff; border:1px solid #e9ebf1; border-radius:18px; box-shadow:0 1px 2px rgba(20,28,46,.04),0 1px 3px rgba(20,28,46,.05); overflow:hidden; }
.cgm-homePortal__recentRow { display:flex; align-items:center; gap:14px; padding:16px 18px; border-bottom:1px solid #eef0f4; text-decoration:none; color:inherit; transition:background .14s; }
.cgm-homePortal__recentRow:last-child { border-bottom:none; }
.cgm-homePortal__recentRow:hover { background:#f8fafd; }
.cgm-homePortal__recentIco { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none; background:linear-gradient(150deg,rgba(59,130,246,.14),rgba(59,130,246,.06)); color:#3b82f6; }
.cgm-homePortal__recentIco svg { width:22px; height:22px; stroke-width:1.9; }
.cgm-homePortal__recentTxt { flex:1; min-width:0; }
.cgm-homePortal__recentTxt b { font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:16px; letter-spacing:-.01em; display:block; color:#1b2435; }
.cgm-homePortal__recentTxt span { color:#79829a; font-size:13px; }
.cgm-homePortal__recentChev { color:#9aa2b6; transition:color .18s, transform .18s; }
.cgm-homePortal__recentRow:hover .cgm-homePortal__recentChev { color:#2f63ff; transform:translateX(3px); }

.cgm-homePortal__empty { padding:34px 26px; text-align:center; }
.cgm-homePortal__emptyIco { width:62px; height:62px; border-radius:50%; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; background:linear-gradient(150deg,#eef3ff,#e1e9ff); color:#2f63ff; }
.cgm-homePortal__emptyIco svg { width:28px; height:28px; }
.cgm-homePortal__empty p { color:#475067; font-size:14.5px; line-height:1.55; margin:0 0 18px; }
.cgm-homePortal__emptyBtn { display:inline-block; background:#fff; border:1px solid #dfe3ec; color:#1b2435; font-weight:600; font-size:14px; padding:10px 18px; border-radius:14px; text-decoration:none; transition:.16s; }
.cgm-homePortal__emptyBtn:hover { border-color:#2f63ff; color:#1f47d6; background:#eaf0ff; }

@media (max-width: 960px) {
  .cgm-homePortal__stats { grid-template-columns: repeat(2, 1fr); }
  .cgm-homePortal__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cgm-homePortal { padding-bottom: 26px; }
  .cgm-homePortal__stats { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cgm-workspace {
    grid-template-columns: 200px 1fr;
  }
  .cgm-topbar2__input {
    width: 180px;
  }
  .cgm-topbar2__search {
    width: 160px;
    max-width: 100%;
  }
  .cgm-tileGrid.cgm-list {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
  }
}

/* Móvil: barra ya es estrecha; un poco más compacta */
@media (max-width: 560px) {
  .cgm-workspace {
    grid-template-columns: 180px 1fr;
  }
  .cgm-sidebar--slim {
    padding: 12px 16px 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    row-gap: 8px;
    padding-top: 10px;
  }
  .cgm-sidebar__tool {
    padding: 8px 10px;
  }
  .cgm-sidebar__toolLbl {
    font-size: 12px;
  }
  .cgm-sidebar__brand--slim {
    width: 100%;
    height: auto;
    padding: 0 6px 10px;
  }

  .cgm-sidebar__brandImg {
    width: 100%;
    max-height: 36px;
  }

  .cgm-sidebar__orgAv,
  .cgm-sidebar__empty--slim,
  .cgm-sidebar__iconBtn {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .cgm-sidebar__rail {
    gap: 6px;
    padding-top: 8px;
  }

  .cgm-main {
    padding: 18px 18px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .cgm-topbar2 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cgm-orgBrand__logo--header {
    max-height: 44px;
  }
  .cgm-orgBrand__logoWrap--header {
    max-width: 100%;
  }
  .cgm-topbar2__createGrid {
    width: 100%;
  }
  .cgm-topbar2__input {
    width: 100%;
    max-width: none;
  }
  .cgm-topbar2__search {
    width: 100%;
    max-width: none;
  }
  .cgm-topbar2__btn {
    white-space: nowrap;
  }
}

/* Ventana baja (muchas orgs + iconos): compactar barra para que el rail no quede fuera del área útil */
@media (max-height: 720px) {
  .cgm-sidebar--slim {
    row-gap: 6px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .cgm-sidebar__brand--slim {
    width: 100%;
    height: auto;
    padding: 0 6px 10px;
  }

  .cgm-sidebar__brandImg {
    width: 100%;
    max-height: 36px;
  }

  .cgm-sidebar__orgAv,
  .cgm-sidebar__empty--slim,
  .cgm-sidebar__iconBtn {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .cgm-sidebar__nav--slim {
    gap: 6px;
  }
  .cgm-sidebar__rail {
    gap: 6px;
    padding-top: 6px;
  }
}

.cgm-auth-shell {
  max-width: none;
  margin: 0;
  padding: 32px 16px;
  min-height: 70vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(1000px 500px at 80% 30%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(800px 500px at 60% 90%, rgba(236, 72, 153, 0.10), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, #eef2ff 100%);
  border-radius: 20px;
}

.cgm-auth {
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cgm-auth__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cgm-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  user-select: none;
}

.cgm-auth__card {
  width: 100%;
  background: var(--cgm-card);
  border: 1px solid var(--cgm-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.cgm-card {
  background: var(--cgm-card);
  border: 1px solid var(--cgm-border);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.cgm-card + .cgm-card {
  margin-top: 16px;
}

.cgm-card__header {
  margin-bottom: 14px;
}

.cgm-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cgm-subtitle {
  margin: 6px 0 0;
  color: var(--cgm-muted);
}

.cgm-h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.cgm-muted {
  color: var(--cgm-muted);
}

.cgm-form {
  display: grid;
  gap: 12px;
}

.cgm-form--inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.cgm-label span {
  display: block;
  font-size: 12px;
  color: var(--cgm-muted);
  margin-bottom: 6px;
}

.cgm-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--cgm-border);
  background: #ffffff;
  color: var(--cgm-text);
  outline: none;
}

.cgm-input:focus {
  border-color: rgba(29, 78, 216, 0.55);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.cgm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--cgm-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--cgm-text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.cgm-btn--primary {
  border-color: rgba(29, 78, 216, 0.65);
  background: rgba(29, 78, 216, 0.92);
  color: #ffffff;
}

.cgm-btn--primary:hover {
  background: rgba(29, 78, 216, 1);
}

.cgm-btn--block {
  width: 100%;
}

.cgm-btn--small {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.cgm-alert {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--cgm-border);
  background: rgba(255, 255, 255, 0.04);
}
.cgm-alert--error { border-color: rgba(255, 107, 107, 0.6); }
.cgm-alert--success { border-color: rgba(46, 204, 113, 0.6); }

.cgm-footer-links {
  margin-top: 14px;
  text-align: center;
}

.cgm-link {
  color: var(--cgm-primary);
  text-decoration: none;
  font-weight: 600;
}

.cgm-link:hover {
  text-decoration: underline;
}

.cgm-auth__meta {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--cgm-muted);
}

.cgm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cgm-topbar__actions {
  display: flex;
  gap: 10px;
}

.cgm-grid-list {
  display: grid;
  gap: 10px;
}

.cgm-grid-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--cgm-border);
  background: rgba(255, 255, 255, 0.03);
}

.cgm-grid-list__name {
  font-weight: 700;
}

.cgm-grid-list__date {
  font-size: 12px;
  color: var(--cgm-muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .cgm-form--inline {
    grid-template-columns: 1fr;
  }
  .cgm-grid-list__item {
    flex-direction: column;
    align-items: stretch;
  }
  .cgm-grid-list__actions {
    display: flex;
    justify-content: flex-end;
  }
}

/* ---------- Parrilla modular (tarjetas) ---------- */
/*
 * Rompe max-width del tema (p. ej. .entry-content): el shell usa todo el ancho del viewport
 * para que la lista / scroll horizontal no queden en una franja estrecha con márgenes grises.
 * Sin transform: no altera position:fixed del panel lateral y modales.
 */
.cgm-grid-shell {
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: linear-gradient(180deg, #f3f5fb 0%, #eef1f8 40%, #f6f7fb 100%);
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* Respiro lateral (full-bleed se veía pegado al borde del navegador) */
  padding: 0 clamp(14px, 3vw, 28px) 48px;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

/* Parrilla con barra lateral (workspace): scroll interno tipo Smartsheet (cabecera fija, tablero scrollea) */
.cgm-workspace--with-grid .cgm-main--gridEmbed,
.cgm-main:has(> .cgm-global-grid-shell) {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-shell,
.cgm-global-grid-shell {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 clamp(14px, 3vw, 28px) 0;
  box-sizing: border-box;
}

.cgm-global-grid-shell .cgm-sectionBack,
.cgm-global-grid-shell__hint,
.cgm-global-grid-shell .cgm-globalHead,
.cgm-global-grid-shell .cgm-globalBar {
  flex-shrink: 0;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-header,
.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-monthbar,
.cgm-global-grid-shell .cgm-grid-monthbar {
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-header {
  flex-wrap: nowrap;
  align-items: flex-end;
  padding-left: 0;
  padding-right: 0;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-monthbar {
  padding-left: 0;
  padding-right: 0;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-header__right {
  margin-left: auto;
  flex-shrink: 0;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-monthbar__view {
  justify-self: start;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-monthbar__nav {
  justify-self: center;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-board-wrap,
.cgm-global-grid-shell .cgm-grid-board-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: clamp(8px, 1.2vh, 14px);
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-board,
.cgm-global-grid-shell .cgm-grid-board {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cgm-workspace--with-grid .cgm-main--gridEmbed .cgm-grid-board__sections,
.cgm-global-grid-shell .cgm-grid-board__sections {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Evita rebote / “tirón” del trackpad en la página cuando hay parrilla embebida */
html:has(.cgm-grid-shell),
body:has(.cgm-grid-shell) {
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.admin-bar .cgm-grid-shell {
  padding-top: 12px;
}

.cgm-grid-header {
  max-width: min(98vw, 1720px);
  margin: 0 auto;
  padding: 24px 20px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cgm-grid-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cgm-grid-viewtoggle {
  display: inline-flex;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  overflow: hidden;
}

.cgm-viewbtn {
  border: none;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: rgba(15,23,42,0.65);
}

.cgm-viewbtn.is-active {
  background: rgba(29,78,216,0.10);
  color: rgba(29,78,216,0.95);
}

.cgm-viewbtn--wrap {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cgm-viewbtn--wrap.is-active {
  background: rgba(29,78,216,0.10);
  color: rgba(29,78,216,0.95);
  border-color: rgba(29,78,216,0.28);
}

.cgm-wrap-ico {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cgm-grid-header__left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cgm-grid-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  text-decoration: none;
  color: rgba(29,78,216,0.95);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.cgm-grid-header__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cgm-grid-header__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(15,23,42,0.55);
}

.cgm-grid-header__cta {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3b5bdb 0%, #5b21b6 100%);
  box-shadow: 0 10px 28px rgba(59, 91, 219, 0.35);
}

.cgm-grid-header__cta:hover {
  filter: brightness(1.05);
}

.cgm-grid-header__team {
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cgm-grid-header__team:hover {
  background: rgba(37, 99, 235, 0.14);
}

.cgm-grid-monthbar {
  max-width: min(98vw, 1720px);
  margin: 0 auto;
  padding: 8px 20px 4px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
  box-sizing: border-box;
}

.cgm-grid-monthbar__view {
  justify-self: start;
  min-width: 0;
}

.cgm-grid-monthbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
}

.cgm-grid-monthbar__spacer {
  min-width: 0;
}

.cgm-monthbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: rgba(15,23,42,0.75);
}

.cgm-monthbar__label {
  min-width: 220px;
  text-align: center;
  font-weight: 900;
  color: rgba(15,23,42,0.75);
}

.cgm-grid-board-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 0 32px;
  box-sizing: border-box;
  min-width: 0;
}

/* Calendario: mismo ancho que cabecera/mes; la lista va a ancho completo */
.cgm-grid-board__sections > .cgm-grid-cal {
  max-width: min(98vw, 1720px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cgm-grid-board__loading {
  padding: 24px;
  text-align: center;
  color: rgba(15,23,42,0.5);
}

.cgm-grid-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(15,23,42,0.55);
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,0.12);
}

.cgm-grid-cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(15,23,42,0.55);
  font-size: 12px;
  font-weight: 800;
}

.cgm-grid-cal__dow > div {
  padding: 0 6px;
}

.cgm-grid-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cgm-day {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  min-height: 140px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.cgm-day--blank {
  background: transparent;
  border: none;
  box-shadow: none;
}

.cgm-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cgm-day__dow {
  font-size: 11px;
  font-weight: 800;
  color: rgba(15,23,42,0.45);
  margin-left: 8px;
  margin-right: auto;
  padding-left: 10px;
}

.cgm-day__num {
  font-weight: 900;
  color: rgba(15,23,42,0.75);
}

.cgm-day__count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(29,78,216,0.10);
  border: 1px solid rgba(29,78,216,0.16);
  color: rgba(29,78,216,0.95);
  font-weight: 900;
  font-size: 12px;
}

.cgm-day__items {
  display: grid;
  gap: 8px;
  align-content: start;
}

.cgm-day__add {
  width: 100%;
  padding: 6px 8px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px dashed rgba(15,23,42,0.16);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: rgba(15,23,42,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-sizing: border-box;
}

.cgm-day__add .cgm-ico {
  display: block;
}

.cgm-mini {
  text-align: left;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
}

.cgm-mini.is-published { border-color: rgba(22,163,74,0.28); }
.cgm-mini.is-draft { border-color: rgba(100,116,139,0.28); }
.cgm-mini.is-pending { border-color: rgba(59,130,246,0.22); }

.cgm-mini__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.cgm-mini__status {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(15,23,42,0.55);
}

.cgm-mini__time {
  font-size: 11px;
  color: rgba(15,23,42,0.45);
  font-weight: 800;
}

.cgm-mini__tail {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cgm-mini__title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,0.72);
  line-height: 1.25;
}

.cgm-grid-board,
.cgm-grid-board__sections {
  width: 100%;
  box-sizing: border-box;
}

/* Lista: cabecera de columnas fija arriba; filas scrollean dentro del tablero (estilo Smartsheet). */
.cgm-listview {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min-content;
  --cgm-list-gap-col: 18px;
  --cgm-list-gap-row: 12px;
  --cgm-list-pad-x: 16px;
}

.cgm-listview__headPane {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: #1d4ed8;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.cgm-listview__bodyPane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
}

.cgm-listview__rows {
  min-width: 2140px;
}

.cgm-listview--global .cgm-listview__rows {
  min-width: 2300px;
}

/* Cabecera: sin barra horizontal propia; se desplaza en sync con el scroll del cuerpo */
.cgm-listview__hscroll--head {
  overflow-x: hidden;
  overflow-y: hidden;
  min-width: 0;
  scrollbar-gutter: stable;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  scrollbar-width: none;
}

.cgm-listview__hscroll--head::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cgm-listview__hscroll--head .cgm-listview__head {
  border-bottom: none;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

/* Cuando la lista está dentro del área con scroll propio, el bodyPane scrollea; si no, sections scrollea todo */
.cgm-grid-board__sections > .cgm-listview {
  height: 100%;
  min-height: 100%;
}

.cgm-grid-board__sections > .cgm-listview .cgm-listview__bodyPane {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

/* Vista lista global (admin): columna Organización tras Acciones */
.cgm-listview--global .cgm-listview__head,
.cgm-listview--global .cgm-listrow:not(.cgm-listrow--dayheader) {
  grid-template-columns: var(--cgm-list-cols,
    172px
    minmax(120px, 160px)
    minmax(74px, 86px)
    minmax(118px, 148px)
    156px
    minmax(100px, 120px)
    minmax(200px, 1.45fr)
    minmax(230px, 1.75fr)
    minmax(140px, 1.12fr)
    minmax(128px, 1.35fr)
    minmax(108px, 128px)
    minmax(108px, 132px)
    minmax(108px, 152px)
    minmax(108px, 152px)
    minmax(120px, 1.15fr)
  );
  min-width: 2300px;
}

.cgm-listview__headOrg {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* Misma cabecera que el resto de columnas (menú ▾ de filtro/orden) */
.cgm-listview__headOrg.cgm-listHeadCell {
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.cgm-listcell--orgEmpty {
  border-left-color: rgba(15, 23, 42, 0.12);
  background: transparent;
}

.cgm-orgcell__name {
  display: block;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.cgm-orgcell__grid {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.2;
}

.cgm-global-grid-shell {
  margin: 0;
  padding: 0 clamp(14px, 3vw, 28px) 0;
  max-width: none;
}

.cgm-global-grid-shell .cgm-grid-monthbar {
  margin-top: 0;
}

.cgm-global-grid-shell__hint {
  margin: 0 8px 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

.cgm-listview__head {
  display: grid;
  align-items: center;
  grid-template-columns: var(--cgm-list-cols,
    172px
    minmax(74px, 86px)
    minmax(118px, 148px)
    minmax(140px, 180px)
    minmax(100px, 120px)
    minmax(88px, 108px)
    minmax(200px, 1.45fr)
    minmax(128px, 148px)
    minmax(108px, 132px)
    minmax(96px, 120px)
    minmax(200px, 1.35fr)
    minmax(128px, 1.35fr)
    minmax(108px, 132px)
    minmax(108px, 132px)
    minmax(120px, 1.15fr)
  );
  gap: var(--cgm-list-gap-row) var(--cgm-list-gap-col);
  padding: 8px var(--cgm-list-pad-x);
  min-height: 0;
  background: #1d4ed8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  /* Acciones + 14 columnas (arts + 13 campos) */
  min-width: 2280px;
}

/* Líneas finas entre columnas (cabecera + filas) */
.cgm-listview__head > * + * {
  border-left: none;
  padding-left: 10px;
  position: relative;
}

.cgm-listview__head > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

/* Artes va pegada a Acciones: el borde derecho de Acciones ya separa */
.cgm-listview__head > .cgm-listview__headActions + .cgm-listHeadCell:not(.cgm-listview__headOrg) {
  padding-left: 0;
}

.cgm-listview__head > .cgm-listview__headActions + .cgm-listHeadCell:not(.cgm-listview__headOrg)::before {
  display: none;
}

.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell + .cgm-listcell {
  border-left: none;
  padding-left: 10px;
  position: relative;
}

/* Verticales con respiro: no tocan las horizontales */
.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell + .cgm-listcell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell--actions + .cgm-listcell--arts::before {
  display: none;
}

.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell--actions + .cgm-listcell--arts {
  padding-left: 0;
}

.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell--org {
  border-left: 4px solid var(--cgm-org-accent, rgba(15, 23, 42, 0.12)) !important;
  padding-left: 12px !important;
}

.cgm-listrow:not(.cgm-listrow--dayheader) > .cgm-listcell--org::before {
  display: none;
}

.cgm-listview__headActions {
  position: sticky;
  left: 0;
  z-index: 4;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-left: -16px;
  margin-top: -12px;
  margin-bottom: -12px;
  padding: 12px 10px 12px 18px;
  width: calc(100% + 16px);
  min-width: 0;
  max-width: none;
  background: #1d4ed8;
  color: rgba(255, 255, 255, 0.95);
  border-top-left-radius: 13px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.28);
  text-align: center;
}

.cgm-listrow .cgm-listcell--actions {
  position: sticky;
  left: 0;
  z-index: 3;
  margin-left: -16px;
  margin-top: -10px;
  margin-bottom: -10px;
  padding: 14px 8px 14px 24px;
  width: calc(100% + 16px);
  max-width: calc(100% + 16px);
  box-sizing: border-box;
  background: #fff;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.1);
}

.cgm-listrow--emptyday .cgm-listcell--actions {
  background: #fff;
}

.cgm-listrow--emptyday:hover .cgm-listcell--actions {
  background: #fff;
}

.cgm-listrow--underday .cgm-listcell--actions {
  background: #fff;
  margin-top: -12px;
  margin-bottom: -12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.cgm-listrow:hover .cgm-listcell--actions {
  background: #fff;
}

.cgm-listrow--underday:hover .cgm-listcell--actions {
  background: #fff;
}

.cgm-listview__rows {
  display: flex;
  flex-direction: column;
}

.cgm-listview__day--grouped {
  margin-bottom: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

/* Una sola línea entre el día anterior y el bloque agrupado */
.cgm-listview__rows > .cgm-listrow:has(+ .cgm-listview__day--grouped) {
  border-bottom: none;
}

/* Día con varias publicaciones: fecha fusionada en columna Fecha */
.cgm-listview__dayGrid {
  position: relative;
  min-width: 2010px;
  background: #fff;
  isolation: isolate;
}

.cgm-listview--global .cgm-listview__dayGrid {
  min-width: 2162px;
}

.cgm-listview__dateMerge {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  background: #fff;
  border-left: none;
  padding: 0 8px 0 10px;
  pointer-events: none;
  overflow: hidden;
}

.cgm-listview__dateMerge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.cgm-listview__dayGrid:has(.cgm-listrow--inDayGrid:hover) .cgm-listview__dateMerge {
  background: rgba(241, 245, 250, 0.95);
}

.cgm-listview__dateMerge .cgm-dateblock--list {
  width: fit-content;
  max-width: 100%;
}

.cgm-listrow--inDayGrid {
  position: relative;
  z-index: 2;
  border-bottom: none !important;
}

/* Separador interno entre posteos del mismo día: una sola línea por fila */
.cgm-listview__dayGrid > .cgm-listrow--inDayGrid:not(:last-child) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

/* Ocultar esa línea en la columna Fecha (la tapa el merge) */
.cgm-listview__dayGrid .cgm-listcell--datecol-empty {
  position: relative;
  z-index: 2;
  background: #fff;
}

.cgm-listview__dayGrid > .cgm-listrow--inDayGrid:not(:last-child) .cgm-listcell--datecol-empty::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

.cgm-listview__dayGrid:has(.cgm-listrow--inDayGrid:hover) .cgm-listcell--datecol-empty {
  background: rgba(241, 245, 250, 0.95);
}

.cgm-listview__dayGrid:has(.cgm-listrow--inDayGrid:hover) .cgm-listcell--datecol-empty::after {
  background: rgba(241, 245, 250, 0.95);
}

.cgm-listview__dayGrid > .cgm-listrow--inDayGrid:last-child {
  border-bottom: none !important;
}

.cgm-listcell--datecol-empty {
  opacity: 0;
  pointer-events: none;
  border-left: none !important;
  border-bottom: none !important;
}

.cgm-listcell--datecol-empty::before {
  display: none;
}

.cgm-dateblock--ghost {
  pointer-events: none;
}

.cgm-listrow--dayheader {
  display: block;
  padding: 0;
  min-width: 1800px;
  border-bottom: none;
  background: transparent;
}

.cgm-listview--global .cgm-listrow--dayheader {
  min-width: 1948px;
}

.cgm-listrow--dayheader:hover {
  background: transparent;
}

/*
 * Cabecera de día: degradado en todo el ancho. Sin hover con inset box-shadow (en flex/wrap + overflow
 * del listado algunos navegadores recortan mal el velo y aparece un “cuadro” a la izquierda).
 */
.cgm-listrow--dayheader__bar {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 13px 18px 13px calc(var(--cgm-list-col-actions, 172px) + var(--cgm-list-pad-x, 16px));
  background: linear-gradient(
    90deg,
    #e9eef6 0%,
    #eef2f7 18%,
    #f3f6fa 40%,
    #f7f9fc 62%,
    #fbfcfd 82%,
    #ffffff 100%
  );
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
}

.cgm-dayheader__main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 12px;
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  background: transparent;
}

.cgm-dayheader__dow {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
  background: transparent;
  flex-shrink: 0;
}

/* Antes: línea 1px = corte duro entre “martes” y la fecha; ahora punto suave */
.cgm-dayheader__sep {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  min-height: 1rem;
  margin: 0;
  background: none;
  pointer-events: none;
}

.cgm-dayheader__sep::before {
  content: "·";
  color: rgba(15, 23, 42, 0.22);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.cgm-dayheader__iso {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
  line-height: 1.2;
  background: transparent;
  flex-shrink: 0;
  white-space: nowrap;
}

.cgm-dayheader__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  flex: 0 0 auto;
  background: transparent;
}

.cgm-dayheader__badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(237, 242, 250, 0.95);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: none;
  flex-shrink: 0;
}

.cgm-dayheader__add {
  flex-shrink: 0;
  padding: 8px 16px;
}

.cgm-listrow--underday {
  background: #fff;
}

.cgm-listrow--underday:hover {
  background: rgba(241, 245, 250, 0.95);
}

.cgm-listcell--underday {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding-top: 6px;
  padding-bottom: 4px;
}

.cgm-underday__rail {
  width: 4px;
  align-self: stretch;
  min-height: 2.25rem;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.55) 0%, rgba(99, 102, 241, 0.35) 100%);
}

.cgm-listrow {
  display: grid;
  grid-template-columns: var(--cgm-list-cols,
    172px
    minmax(74px, 86px)
    minmax(118px, 148px)
    minmax(140px, 180px)
    minmax(100px, 120px)
    minmax(88px, 108px)
    minmax(200px, 1.45fr)
    minmax(128px, 148px)
    minmax(108px, 132px)
    minmax(96px, 120px)
    minmax(200px, 1.35fr)
    minmax(128px, 1.35fr)
    minmax(108px, 132px)
    minmax(108px, 132px)
    minmax(120px, 1.15fr)
  );
  gap: var(--cgm-list-gap-row) var(--cgm-list-gap-col);
  padding: 8px var(--cgm-list-pad-x);
  align-items: center;
  min-width: 2280px;
  background: #fff;
}

/* Una sola línea por fila (filas agrupadas del mismo día llevan su propio separador) */
.cgm-listrow:not(.cgm-listrow--dayheader):not(.cgm-listrow--inDayGrid) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.cgm-listrow:hover:not(.cgm-listrow--dayheader):not(.cgm-listrow--inDayGrid) {
  background: rgba(241, 245, 250, 0.95);
}

.cgm-listrow--emptyday {
  background: #fff;
}

.cgm-listrow--emptyday:hover {
  background: #fff;
}

/* Refuerzo: cabecera y filas deben compartir exactamente 14 columnas (Org + 12 campos de lista). */
.cgm-listview.cgm-listview--global .cgm-listview__head,
.cgm-listview.cgm-listview--global .cgm-listrow:not(.cgm-listrow--dayheader) {
  grid-template-columns: var(--cgm-list-cols,
    172px
    minmax(120px, 160px)
    minmax(74px, 86px)
    minmax(118px, 148px)
    156px
    minmax(100px, 120px)
    minmax(200px, 1.45fr)
    minmax(230px, 1.75fr)
    minmax(140px, 1.12fr)
    minmax(128px, 1.35fr)
    minmax(108px, 128px)
    minmax(108px, 132px)
    minmax(108px, 152px)
    minmax(108px, 152px)
    minmax(120px, 1.15fr)
  );
}

.cgm-listcell {
  font-size: 13px;
  color: rgba(15,23,42,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  align-self: stretch;
  box-sizing: border-box;
}

/* —— Edición en línea (vista lista) —— */
.cgm-list-edit {
  position: relative;
  display: block;
  min-height: 1.35em;
  padding: 2px 22px 2px 4px;
  margin: -2px -4px;
  border-radius: 8px;
}

.cgm-listcell:has(.cgm-list-edit--time),
.cgm-listcell:has(.cgm-gcell-drop--time),
.cgm-listcell:has([data-list-drop="post_time"]) {
  overflow: visible;
}

.cgm-list-edit--strong .cgm-list-edit__text {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
}

.cgm-list-edit__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cgm-list-edit--multi .cgm-list-edit__text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.cgm-list-edit--time .cgm-list-edit__text {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.88);
}

.cgm-list-edit__pen {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cgm-list-edit:hover .cgm-list-edit__pen,
.cgm-list-drop:hover .cgm-list-edit__pen {
  opacity: 1;
}

.cgm-list-edit__pen:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.65);
}

.cgm-list-edit__penSvg {
  display: block;
  margin: 0 auto;
}

/* Emojis en copy / novedades (vista lista): solo al abrir el campo para editar */
.cgm-list-edit--multi.is-editing {
  padding-bottom: 34px;
}
.cgm-list-edit--multi.is-editing .cgm-list-edit__emoji {
  position: absolute;
  bottom: 4px;
  right: 5px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: 1;
  transition: background 0.15s ease;
}
.cgm-list-edit--multi.is-editing .cgm-list-edit__emoji:hover {
  background: rgba(15, 23, 42, 0.06);
}

.cgm-list-edit__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: rgba(15, 23, 42, 0.92);
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  min-height: 2em;
}

.cgm-list-edit__input:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.32);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.cgm-list-edit--multi .cgm-list-edit__input {
  min-height: 4.5rem;
  resize: vertical;
}

.cgm-list-edit__input--time {
  width: auto;
  min-width: 8.25rem; /* que quepa 10:00 + icono reloj */
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  padding-right: 2.2rem;
}

.cgm-list-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 1.35em;
  padding: 2px 22px 2px 4px;
  margin: -2px -4px;
  border-radius: 8px;
  cursor: pointer;
}

.cgm-list-drop__face {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgm-list-drop .cgm-social-cell {
  pointer-events: none;
}

.cgm-listcell--category {
  overflow: visible;
  min-width: 0;
}

.cgm-listcell--category .cgm-list-drop {
  align-items: flex-start;
}

.cgm-listcell--category .cgm-list-drop__face {
  overflow: visible;
}

.cgm-listcell--category .cgm-social-cell {
  display: block;
  max-width: 100%;
}

.cgm-listcell--category .cgm-social-cell__icos {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.cgm-listcell--category .cgm-social-cell__icos .cgm-social-svg {
  width: 16px;
  height: 16px;
}

.cgm-list-drop__face .cgm-yn {
  pointer-events: none;
}

.cgm-list-drop__face .cgm-pill {
  pointer-events: none;
}

.cgm-list-bool--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
}

.cgm-list-bool--btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.cgm-list-bool-pillBtn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.cgm-list-bool-pillBtn:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.22);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Aprob./Activo: más ancho, sin desborde sobre líneas verticales */
.cgm-listcell--approved,
.cgm-listcell--active {
  overflow: hidden;
  min-width: 0;
  align-self: center;
}

.cgm-listcell--approved .cgm-list-drop,
.cgm-listcell--active .cgm-list-drop {
  margin: 0;
  width: 100%;
  padding: 2px 22px 2px 0;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

.cgm-listcell--approved .cgm-list-drop__face,
.cgm-listcell--active .cgm-list-drop__face {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.cgm-listcell--approved .cgm-yn,
.cgm-listcell--active .cgm-yn {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  vertical-align: top;
}

.cgm-list-pop {
  position: relative;
}

.cgm-list-pop__panel {
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.2);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Tope por defecto: el JS ajusta max-height al espacio libre bajo el viewport */
  max-height: calc(100vh - 24px);
}

.cgm-list-pop__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px 0;
  /* La altura la limita .cgm-list-pop__panel (max-height + JS al abrir) */
}

/* Solo el cuerpo hace scroll; título, hint y pie (Analizar / Guardar) permanecen visibles */
.cgm-list-pop__title,
.cgm-list-pop__hint {
  flex-shrink: 0;
}

.cgm-list-pop__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.cgm-list-pop__title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}

.cgm-list-pop__hint {
  margin: -4px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.52);
}

.cgm-list-pop__hint--tight {
  margin-top: 0;
  margin-bottom: 12px;
}

.cgm-list-pop__select--multi {
  min-height: 7.5rem;
  padding: 6px 8px;
}

.cgm-list-pop__checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cgm-list-pop__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.85);
  padding: 8px 10px;
  margin: 0 -6px;
  border-radius: 10px;
  transition: background 0.12s ease;
}

.cgm-list-pop__opt:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cgm-list-pop__opt input {
  margin-top: 2px;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #3b5bdb;
  cursor: pointer;
}

.cgm-list-pop__opt span {
  font-size: 14px;
  font-weight: 600;
  color: #1b2435;
  line-height: 1.35;
  user-select: none;
}

.cgm-list-pop__opt--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cgm-list-pop__opt--disabled:hover {
  background: transparent;
}

.cgm-list-pop__optNote {
  font-style: normal;
  font-weight: 500;
  color: #9aa2b6;
  font-size: 12px;
}

.cgm-social-pick__lbl--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cgm-list-pop__select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font: inherit;
}

.cgm-list-pop__foot {
  flex-shrink: 0;
  margin-top: 8px;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.cgm-list-pop__ok {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #3b5bdb 0%, #5b21b6 100%);
  color: #fff;
}

.cgm-list-pop__ok:hover {
  filter: brightness(1.05);
}

.cgm-social-pick--pop {
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.cgm-social-pick--pop .cgm-social-pick__lbl {
  padding: 6px 8px;
  border-radius: 10px;
}

.cgm-social-pick--pop .cgm-social-pick__lbl:hover {
  background: rgba(15, 23, 42, 0.04);
}

@media (hover: none) {
  .cgm-list-edit__pen,
  .cgm-list-drop .cgm-list-edit__pen {
    opacity: 0.5;
  }
}

.cgm-listcell--datecol {
  align-self: stretch;
  overflow: visible;
  min-width: 0;
}

.cgm-dateblock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.cgm-dateblock__iso {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,0.48);
  letter-spacing: 0.02em;
}

.cgm-dateblock__dow {
  font-size: 15px;
  font-weight: 900;
  color: rgba(15,23,42,0.92);
  letter-spacing: -0.01em;
}

.cgm-dateblock--list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cgm-dateblock--list .cgm-dateblock__dow {
  font-size: 14px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.cgm-dateblock--list .cgm-dateblock__day {
  flex: 0 0 auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1d4ed8;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cgm-listcell--muted {
  color: rgba(15,23,42,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.cgm-wrap-on .cgm-listcell--muted,
body.cgm-wrap-on .cgm-listcell--strong,
body.cgm-wrap-on .cgm-listcell,
.cgm-grid-board.cgm-wrap-on .cgm-listcell--muted,
.cgm-grid-board.cgm-wrap-on .cgm-listcell--strong,
.cgm-grid-board.cgm-wrap-on .cgm-listcell {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

body.cgm-wrap-on .cgm-list-edit__text,
.cgm-grid-board.cgm-wrap-on .cgm-list-edit__text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

body.cgm-wrap-on .cgm-listcell,
.cgm-grid-board.cgm-wrap-on .cgm-listcell {
  word-break: break-word;
}

.cgm-listcell--strong {
  font-weight: 800;
}

.cgm-yn {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
}

.cgm-yn--yes {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.cgm-yn--no {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.cgm-list-bool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.cgm-list-bool__ui {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 23, 42, 0.38);
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.cgm-list-bool.is-on .cgm-list-bool__ui {
  position: relative;
  border-color: #15803d;
  background: #16a34a;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canal: redes sociales (tipo "social") */
.cgm-social-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.cgm-social-pick__lbl {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.88);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cgm-social-pick__lbl:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.08);
}

.cgm-social-pick__lbl input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cgm-social-pick__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cgm-social-pick__ico .cgm-social-svg {
  display: block;
}

.cgm-social-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cgm-social-cell__icos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.cgm-social-cell__icos .cgm-social-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cgm-social-cell__ico {
  display: flex;
  flex-shrink: 0;
}

.cgm-social-cell--raw {
  color: rgba(15, 23, 42, 0.6);
  font-size: 13px;
}

.cgm-social-cell__ico .cgm-social-svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Texto oculto: dejamos el aria-label para accesibilidad. */
.cgm-social-cell__txt { display: none; }

.cgm-listcell--arts {
  display: flex;
  align-items: center;
}

.cgm-arts-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  aspect-ratio: 4 / 5; /* 1080×1350 */
  height: auto;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  cursor: pointer;
  overflow: hidden;
}

/* Miniatura en fila: vídeo vertical, altura acotada para no estirar la fila */
.cgm-arts-cell--video {
  width: 40px;
  height: 68px;
  max-height: 68px;
  aspect-ratio: auto;
}

.cgm-arts-cell:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
}

.cgm-arts-cell__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cgm-arts-cell__count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}

.cgm-arts-cell--empty {
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(15, 23, 42, 0.02);
}

/* Revisado por: formato contacto */
.cgm-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cgm-contact__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.22);
  flex-shrink: 0;
  overflow: hidden;
}
.cgm-contact__avatar--photo {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  padding: 0;
}
.cgm-contact__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cgm-contact__text { display: grid; min-width: 0; }
.cgm-contact__name {
  font-size: 13px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgm-contact__email {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgm-contact__role {
  font-size: 11px;
  font-weight: 700;
  color: rgba(29, 78, 216, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgm-people-field {
  display: grid;
  gap: 10px;
}

.cgm-people-select {
  width: 100%;
  max-width: 100%;
}

.cgm-people-field__meta {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-people-field__meta--pop {
  margin-top: 10px;
}

.cgm-people-field__role {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(29, 78, 216, 0.9);
}

.cgm-portal__shared {
  margin-top: 16px;
}

.cgm-grid-board--readonly .cgm-list-edit__pen,
.cgm-grid-board--readonly .cgm-btn-mini--editIco,
.cgm-grid-board--readonly .cgm-list-drop .cgm-list-edit__pen,
.cgm-grid-board--readonly [data-list-bool],
.cgm-grid-board--readonly .cgm-day__add,
.cgm-grid-board--readonly .cgm-btn-mini--addIco {
  display: none !important;
}

.cgm-grid-board--readonly .cgm-list-drop {
  pointer-events: none;
}

.cgm-grid-board--no-comments .cgm-btn-mini--comments,
.cgm-grid-board--no-comments .cgm-comment-badge {
  display: none !important;
}

.cgm-grid-board--readonly .cgm-list-edit__text {
  cursor: default;
}

.cgm-shareBanner--inline {
  display: inline-flex;
  margin-top: 8px;
}

.cgm-art__bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.cgm-art__file {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cgm-art__btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.cgm-art__btn:hover { background: rgba(15, 23, 42, 0.04); }

.cgm-art__hint {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-art__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.cgm-art__empty {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
  padding: 10px 0;
}

.cgm-art__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  cursor: grab;
}

.cgm-art__idx {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  pointer-events: none;
}

.cgm-art__item.is-dragging { opacity: 0.65; }

.cgm-art__thumb {
  width: 100%;
  aspect-ratio: 4 / 5; /* 1080×1350 */
  object-fit: cover;
  display: block;
}

.cgm-art__thumb--video {
  aspect-ratio: 9 / 16;
  background: #0f172a;
}

.cgm-art__itemBtns {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
}

.cgm-art__iconBtn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 14px;
}

.cgm-art__iconBtn:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.2);
}

.cgm-list-bool.is-on .cgm-list-bool__ui::after {
  content: '';
  box-sizing: content-box;
  width: 3px;
  height: 8px;
  margin-left: 0.5px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cgm-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(15,23,42,0.65);
}

.cgm-listrow.is-published .cgm-list-drop--status .cgm-pill { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.cgm-listrow.is-draft .cgm-list-drop--status .cgm-pill { background: rgba(100,116,139,0.12); color: #475569; }
.cgm-listrow.is-pending .cgm-list-drop--status .cgm-pill { background: rgba(59,130,246,0.12); color: #1d4ed8; }

/* Pills para revisión IA (independientes del estado de publicación) */
.cgm-pill.cgm-pill--ai { text-transform: none; }
.cgm-pill.cgm-pill--ai-ok { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.cgm-pill.cgm-pill--ai-review {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #fff;
  border: 1px solid #991b1b;
  font-weight: 800;
}

.cgm-pill__ai-warn-ico {
  flex-shrink: 0;
  display: block;
}

/* El estado de la fila (pendiente/borrador…) no debe teñir el pill «Revisar» de revisión IA */
.cgm-listrow.is-published .cgm-pill.cgm-pill--ai-review,
.cgm-listrow.is-draft .cgm-pill.cgm-pill--ai-review,
.cgm-listrow.is-pending .cgm-pill.cgm-pill--ai-review {
  background: #dc2626;
  color: #fff;
  border-color: #991b1b;
}
.cgm-pill.cgm-pill--ai-error { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.cgm-pill.cgm-pill--ai-none { background: rgba(100,116,139,0.10); color: #475569; }
.cgm-pill.cgm-pill--ai-running { background: rgba(59,130,246,0.12); color: #1d4ed8; }

.cgm-listrow--copywarn,
.cgm-listrow--artwarn {
  box-shadow: inset 3px 0 0 0 #dc2626;
}

.cgm-copy-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.cgm-copy-issue-badge,
.cgm-art-issue-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.28);
  max-width: 100%;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.cgm-copy-issue-badge:focus-visible,
.cgm-art-issue-badge:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.55);
  outline-offset: 2px;
}

.cgm-copy-issue-badge.is-open,
.cgm-art-issue-badge.is-open {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(185, 28, 28, 0.45);
}


/* Tooltip flotante al pasar el ratón sobre la chapa de faltas en el copy (lista) */
.cgm-copy-issues-tip-float {
  position: fixed;
  z-index: 100080;
  box-sizing: border-box;
  min-width: 220px;
  max-width: min(400px, calc(100vw - 20px));
  max-height: min(320px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 14px;
  margin: 0;
  background: #fff;
  color: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 12px;
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.18),
    0 2px 10px rgba(185, 28, 28, 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.cgm-copy-issues-tip-float.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cgm-copy-issues-tip-float__title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b91c1c;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-copy-issues-tip-float__list {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: decimal;
  font-size: 13px;
  line-height: 1.45;
}

.cgm-copy-issues-tip-float__item {
  margin: 0 0 10px;
  padding: 0;
}

.cgm-copy-issues-tip-float__item:last-child {
  margin-bottom: 0;
}

.cgm-copy-issues-tip-float__type {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 2px;
}

.cgm-copy-issues-tip-float__msg {
  display: block;
  color: rgba(15, 23, 42, 0.82);
}

.cgm-copy-issues-tip-float__sug {
  font-weight: 650;
  color: #15803d;
}

.cgm-mini--copywarn {
  border-color: rgba(220, 38, 38, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.cgm-mini__copywarn {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.cgm-grid-form__labelRow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.cgm-form-copy-warn {
  font-size: 12px;
  font-weight: 700;
  color: #b91c1c;
  cursor: help;
}

.cgm-listrow__img {
  width: 96px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(15,23,42,0.10);
}

.cgm-listrow__imgEmpty {
  color: rgba(15,23,42,0.35);
}

.cgm-listcell--actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box;
  padding: 4px 8px;
  min-width: 0;
  overflow: visible;
}

.cgm-listcell--afterActions {
  min-width: 0;
  overflow: visible;
}

.cgm-listcell--afterActions .cgm-list-drop--status {
  margin: 0;
  width: 100%;
  padding: 2px 22px 2px 0;
}

.cgm-listcell--afterActions .cgm-list-drop--status .cgm-list-drop__face {
  overflow: visible;
}

.cgm-listcell--afterActions .cgm-list-drop--status .cgm-pill {
  text-transform: capitalize;
  white-space: nowrap;
}

/* Estado (pill) arriba; chapa de texto en imagen debajo */
.cgm-after-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.cgm-listcell--actions .cgm-btn-mini {
  flex: 0 0 auto;
}

/* Sin “tarjeta” blanca: el tema o .cgm-btn-mini (más abajo) puede pisar fondo/sombra */
.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.45);
  outline-offset: 2px;
}

.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon:hover {
  background: rgba(29, 78, 216, 0.1) !important;
  border-color: rgba(29, 78, 216, 0.22) !important;
  box-shadow: none !important;
}

.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon.cgm-btn-mini--danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  box-shadow: none !important;
}

.cgm-btn-mini--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: rgba(15, 23, 42, 0.72);
}

.cgm-btn-mini--icon:hover {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.28);
  color: #1d4ed8;
}

.cgm-btn-mini--icon .cgm-ico {
  display: block;
  pointer-events: none;
}

.cgm-btn-mini--icon.cgm-btn-mini--danger {
  color: #b91c1c;
}

.cgm-btn-mini--icon.cgm-btn-mini--danger:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #991b1b;
}

.cgm-btn-mini--comments {
  position: relative;
}

/* Misma chapa que comentarios: sin esto el contador de adjuntos se posiciona mal */
.cgm-btn-mini--attach {
  position: relative;
}

.cgm-comment-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  background: #1d4ed8;
  color: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}

.cgm-dayheader__add.cgm-btn-mini--icon {
  width: 38px;
  height: 38px;
}

.cgm-comments-dlg {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.cgm-comments-dlg[hidden] {
  display: none !important;
}

.cgm-comments-dlg__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
}

.cgm-comments-dlg__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  padding: 20px 22px 22px;
  z-index: 1;
}

.cgm-comments-dlg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cgm-comments-dlg__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
}

.cgm-comments-dlg__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cgm-comments-dlg__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.45;
}

.cgm-comments-dlg__field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.cgm-comments-dlg__field span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-comments-dlg__field select,
.cgm-comments-dlg__field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.cgm-comments-dlg__submit {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3b5bdb 0%, #5b21b6 100%);
  margin-bottom: 20px;
}

.cgm-comments-dlg__listwrap {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 16px;
}

.cgm-comments-dlg__listTitle {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}

.cgm-comments-dlg__empty {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.45);
}

.cgm-comments-dlg__item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}

.cgm-comments-dlg__itemCol {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  margin-right: 10px;
}

.cgm-comments-dlg__itemTime {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.42);
}

.cgm-comments-dlg__itemText {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modal adjuntos (archivos; distinto de artes) */
.cgm-attach-dlg {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.cgm-attach-dlg[hidden] {
  display: none !important;
}
.cgm-attach-dlg__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
}
.cgm-attach-dlg__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  padding: 20px 22px 22px;
  z-index: 1;
}
.cgm-attach-dlg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cgm-attach-dlg__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
}
.cgm-attach-dlg__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cgm-attach-dlg__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.45;
}
.cgm-attach__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.cgm-attach__empty {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
  padding: 10px 0 4px;
}
.cgm-attach__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
}
.cgm-attach__link {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-attach__link:hover {
  text-decoration: underline;
}
.cgm-attach__del {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Modal publicación (calendario): edición + vista previa */
.cgm-post-dlg {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cgm-post-dlg[hidden] {
  display: none !important;
}

.cgm-post-dlg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  border: none;
  cursor: pointer;
}

.cgm-post-dlg__panel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: min(88vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  padding: 16px 16px 18px;
  z-index: 1;
}

.cgm-post-dlg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.cgm-post-dlg__title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}

.cgm-post-dlg__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cgm-post-dlg__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 16px;
  align-items: start;
  margin-top: 10px;
  min-height: 0;
  flex: 1 1 auto;
}

.cgm-post-dlg__left {
  min-width: 0;
  min-height: 0;
  max-height: min(72vh, 780px);
  overflow: auto;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  padding-right: 12px;
}

.cgm-post-dlg__formHost .cgm-grid-form {
  padding: 4px 4px 12px;
}

.cgm-post-dlg__right {
  position: sticky;
  top: 10px;
  align-self: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cgm-post-dlg__artsBtn {
  margin-top: 4px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.cgm-post-dlg__artsBtn:hover {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.28);
  color: #1d4ed8;
}

body.cgm-post-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .cgm-post-dlg__panel {
    width: min(980px, 96vw);
    max-height: min(92vh, 920px);
    overflow: auto;
  }

  .cgm-post-dlg__body {
    grid-template-columns: 1fr;
  }

  .cgm-post-dlg__left {
    max-height: none;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
  }

  .cgm-post-dlg__right {
    position: static;
  }
}

/* Modal artes / vídeo */
.cgm-art-dlg {
  position: fixed;
  inset: 0;
  z-index: 100004;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.cgm-art-dlg[hidden] { display: none !important; }
.cgm-art-dlg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}
.cgm-art-dlg__panel {
  position: relative;
  width: min(1120px, 96vw);
  max-height: min(84vh, 900px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  padding: 16px 16px 18px;
  z-index: 1;
}
.cgm-art-dlg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cgm-art-dlg__title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}
.cgm-art-dlg__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cgm-art-dlg__hint {
  margin: 10px 0 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
}

/* Modal Artes: layout 2 columnas + preview */
.cgm-art-dlg__body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}

.cgm-art-dlg__left {
  min-width: 0;
}

.cgm-art-dlg__right {
  position: sticky;
  top: 10px;
  align-self: start;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  padding-left: 16px;
  min-width: 0;
}

.cgm-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cgm-preview__title {
  font-weight: 950;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
}

.cgm-preview__devices {
  display: inline-flex;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: #fff;
}

.cgm-preview__dev {
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cgm-preview__dev.is-active {
  background: rgba(29, 78, 216, 0.10);
  color: rgba(29, 78, 216, 0.95);
}

.cgm-preview__controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.cgm-preview__field {
  display: grid;
  gap: 6px;
}
.cgm-preview__field span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
}
.cgm-preview__field select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-size: 13px;
}

.cgm-preview__stage {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.9);
  padding: 12px;
  min-height: 360px;
}

.cgm-preview__device {
  margin: 0 auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.cgm-preview__device.is-desktop { width: 100%; }
.cgm-preview__device.is-mobile { width: 320px; }

/* “Facebook feed” simple */
.cgm-fb {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.cgm-fb__top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 10px;
}
.cgm-fb__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.16);
  border: 1px solid rgba(24, 119, 242, 0.22);
  display: grid;
  place-items: center;
  font-weight: 950;
  color: rgba(24, 119, 242, 0.95);
  flex: 0 0 auto;
  overflow: hidden;
}
.cgm-fb__avatar--logo {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
.cgm-fb__avatar--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}
.cgm-fb__meta { min-width: 0; }
.cgm-fb__name {
  font-weight: 900;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.9);
  line-height: 1.15;
}
.cgm-fb__time {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}
.cgm-fb__copy {
  padding: 0 12px 10px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.cgm-fb__media {
  background: #0b1220;
}
.cgm-fb__media img,
.cgm-fb__media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.cgm-prev-vid-fallback,.cgm-apr-p-cover .cgm-prev-vid-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:220px;padding:24px 16px;background:linear-gradient(160deg,#0f172a,#1e293b);color:#e2e8f0;text-align:center}
.cgm-prev-vid-fallback--compact{min-height:0;padding:8px 4px;gap:4px;background:#1e293b;border-radius:8px}
.cgm-prev-vid-fallback__icon{font-size:28px;line-height:1;opacity:.9}
.cgm-prev-vid-fallback--compact .cgm-prev-vid-fallback__icon{font-size:16px}
.cgm-prev-vid-fallback__ext{font-size:13px;font-weight:800;letter-spacing:.06em}
.cgm-prev-vid-fallback__hint{font-size:12px;color:#94a3b8;max-width:260px;line-height:1.4}
.cgm-prev-vid-fallback__dl{font-size:12px;font-weight:700;color:#93c5fd;text-decoration:none}
.cgm-prev-vid-fallback__dl:hover{text-decoration:underline}
.cgm-apr-p-cover video{width:100%;display:block;background:#0b1220}

/* Facebook: mosaico de imágenes (cuando Post tiene varias) */
.cgm-fb__grid {
  display: grid;
  gap: 2px;
  background: #0b1220;
}
.cgm-fb__grid--2 {
  grid-template-columns: 1fr 1fr;
}
.cgm-fb__grid--3,
.cgm-fb__grid--4 {
  grid-template-columns: 1fr 1fr;
}
.cgm-fb__gridCell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0b1220;
}
.cgm-fb__gridCell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgm-fb__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.42);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.cgm-fb__carouselBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.04);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.cgm-fb__nav {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.cgm-fb__dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.cgm-fb__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}
.cgm-fb__dot.is-on {
  background: rgba(29, 78, 216, 0.95);
}

/* “Instagram feed / story” simple */
.cgm-ig {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
}

.cgm-ig__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.cgm-ig__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffdc80 0%, #f77737 20%, #fd1d1d 45%, #c13584 70%, #5851db 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cgm-ig__avatar--logo {
  background: #fff;
}
.cgm-ig__avatar--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
  box-sizing: border-box;
}

.cgm-ig__meta { min-width: 0; }
.cgm-ig__user {
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.cgm-ig__sub {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}
.cgm-ig__more {
  margin-left: auto;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-ig__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0b1220;
  overflow: hidden;
}
.cgm-ig__media img,
.cgm-ig__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cgm-ig.cgm-ig--feed45 .cgm-ig__media {
  /* Instagram feed 1080×1350 (4:5) */
  aspect-ratio: 4 / 5;
}

/* Video en feed: caja más alta (9:16 típico) y sin marcos negros; prevalece sobre 4:5 */
.cgm-ig.cgm-ig--feed45.cgm-ig--videoar .cgm-ig__media {
  aspect-ratio: var(--cgm-media-ar, 9 / 16);
}

/* Instagram: carrusel con slide (track) */
.cgm-ig__carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cgm-ig__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 950ms ease-in-out;
}

.cgm-ig__slide {
  flex: 0 0 100%;
  height: 100%;
}

.cgm-ig__slide img,
.cgm-ig__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgm-ig__empty {
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  padding: 18px;
}

.cgm-ig__copy {
  padding: 10px 12px 14px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.86);
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.cgm-ig__carouselBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.04);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.cgm-ig__nav {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.cgm-ig__dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.cgm-ig__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}
.cgm-ig__dot.is-on {
  background: rgba(236, 72, 153, 0.95);
}

.cgm-ig--story {
  background: #000;
}
.cgm-ig__storyTop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 10px 10px 8px;
  color: #fff;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  z-index: 2;
}
.cgm-ig__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cgm-ig__bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.35);
}
.cgm-ig__bar.is-on {
  background: rgba(255,255,255,0.92);
}
.cgm-ig__storyMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}
.cgm-ig__storyMeta .cgm-ig__avatar {
  width: 28px;
  height: 28px;
  border-width: 1px;
  box-shadow: none;
}
.cgm-ig__time {
  margin-left: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.cgm-ig__storyMedia {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}
.cgm-ig__storyMedia img,
.cgm-ig__storyMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgm-ig--reel {
  background: #000;
  position: relative;
}

.cgm-ig__reelMedia {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}

.cgm-ig__reelMedia img,
.cgm-ig__reelMedia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgm-ig__reelMedia,
.cgm-ig__media {
  /* Default; JS puede setear --cgm-media-ar desde metadata del video */
  aspect-ratio: var(--cgm-media-ar, 4 / 5);
}

.cgm-ig--reel .cgm-ig__reelMedia {
  aspect-ratio: var(--cgm-media-ar, 9 / 16);
}

.cgm-ig--videoar .cgm-ig__media {
  /* Video vertical típico; JS refina con --cgm-media-ar */
  aspect-ratio: var(--cgm-media-ar, 9 / 16);
}

.cgm-ig__reelOverlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 10px 12px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 30%),
    linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%);
}

.cgm-ig__reelTop {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.cgm-ig--reel .cgm-ig__user {
  color: rgba(255, 255, 255, 0.95);
}

.cgm-ig__reelTop .cgm-ig__avatar {
  width: 28px;
  height: 28px;
  border-width: 1px;
  box-shadow: none;
}

.cgm-ig__reelBadge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cgm-ig__reelCopy {
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 92%;
}

@media (max-width: 920px) {
  .cgm-art-dlg__panel { width: min(980px, 96vw); }
  .cgm-art-dlg__body { grid-template-columns: 1fr; }
  .cgm-art-dlg__right {
    position: relative;
    top: auto;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 14px;
  }
  .cgm-preview__device.is-mobile { width: min(360px, 100%); }
}

body.cgm-comments-open {
  overflow: hidden;
}

body.cgm-art-open {
  overflow: hidden;
}

.cgm-post-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cgm-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(15,23,42,0.10);
}

.cgm-post-card.is-published {
  border-color: rgba(22, 163, 74, 0.35);
}

.cgm-post-card.is-draft {
  border-color: rgba(100, 116, 139, 0.35);
}

.cgm-post-card.is-pending {
  border-color: rgba(59, 130, 246, 0.28);
}

.cgm-post-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
}

.cgm-post-card__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: rgba(15,23,42,0.65);
}

.cgm-post-card__date strong {
  color: #0f172a;
  font-weight: 800;
}

.cgm-post-card__time {
  font-size: 12px;
  color: rgba(15,23,42,0.5);
}

.cgm-post-card__status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.65);
}

.cgm-post-card.is-published .cgm-post-card__status {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.cgm-post-card__thumb {
  margin: 12px 14px 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.cgm-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cgm-post-card__thumb--empty {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(15,23,42,0.38);
}

.cgm-post-card__body {
  padding: 12px 14px 4px;
  flex: 1;
}

.cgm-post-card__meta {
  margin-bottom: 6px;
}

.cgm-post-card__channel {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(91, 33, 182, 0.08);
  color: #5b21b6;
}

.cgm-post-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.cgm-post-card__copy,
.cgm-post-card__notes {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15,23,42,0.68);
}

.cgm-post-card__notes {
  font-size: 12px;
  color: rgba(15,23,42,0.5);
}

.cgm-post-card__actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  margin-top: auto;
}

.cgm-btn-mini {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cgm-btn-mini--danger {
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.cgm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100001;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.cgm-toast--success { background: #15803d; }
.cgm-toast--error { background: #b91c1c; }
.cgm-toast--info { background: #1d4ed8; }

.cgm-grid-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  background: #fff;
  z-index: 100000;
  box-shadow: -16px 0 48px rgba(15,23,42,0.12);
  overflow-y: auto;
  padding-bottom: 32px;
}

body.cgm-panel-open {
  overflow: hidden;
}

.cgm-grid-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.cgm-grid-panel__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.cgm-grid-panel__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15,23,42,0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cgm-grid-form {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.cgm-grid-form__field {
  display: grid;
  gap: 6px;
}

.cgm-fieldbar {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.cgm-emoji-btn {
  width: 44px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cgm-emoji-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cgm-grid-form__field--inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.cgm-grid-form__field--inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.cgm-grid-form__field--inline span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(15,23,42,0.82);
}

.cgm-grid-form__field > span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,0.55);
}

.cgm-grid-form__field input,
.cgm-grid-form__field select,
.cgm-grid-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  font-size: 14px;
  outline: none;
}

.cgm-grid-form__field .cgm-multi-pick {
  width: 100%;
  min-width: 0;
}

.cgm-grid-form__field .cgm-multi-pick__btn {
  box-sizing: border-box;
}

.cgm-grid-form__field .cgm-multi-pick__panel {
  min-width: 100%;
}

.cgm-grid-form__field .cgm-multi-pick__opt input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
}

.cgm-grid-form__field .cgm-multi-pick__opt span {
  font-size: 14px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.86);
  white-space: normal;
}

.cgm-grid-form__field .cgm-social-pick {
  width: 100%;
}

.cgm-grid-form__field .cgm-social-pick__lbl input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.cgm-grid-form__field textarea {
  resize: vertical;
}

/* Emoji popover (junto al campo; sin pantalla opaca) */
.cgm-emoji-dlg.cgm-emoji-dlg--popover {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: block;
  padding: 0;
  margin: 0;
  pointer-events: none;
  background: transparent;
  box-sizing: border-box;
}
.cgm-emoji-dlg[hidden] { display: none !important; }
.cgm-emoji-dlg__backdrop {
  display: none !important;
}
.cgm-emoji-dlg--popover .cgm-emoji-dlg__panel {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(300px, calc(100vw - 16px));
  max-height: min(360px, calc(100vh - 16px));
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 4px 24px rgba(2, 6, 23, 0.12),
    0 16px 48px rgba(2, 6, 23, 0.08);
  padding: 10px 10px 12px;
  box-sizing: border-box;
  pointer-events: auto;
}
.cgm-emoji-dlg__panel {
  /* Legado: si no hay --popover, valores por defecto */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.cgm-emoji-dlg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.cgm-emoji-dlg__search {
  flex-shrink: 0;
  margin-bottom: 6px;
}
.cgm-emoji-dlg__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 13px;
  font: inherit;
  outline: none;
}
.cgm-emoji-dlg__search-input:focus {
  border-color: rgba(59, 91, 219, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}
.cgm-emoji-dlg__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.cgm-emoji-tab {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cgm-emoji-tab:hover {
  background: rgba(15, 23, 42, 0.07);
}
.cgm-emoji-tab.is-active {
  background: #fff;
  border-color: rgba(59, 91, 219, 0.35);
  box-shadow: 0 1px 0 rgba(59, 91, 219, 0.25);
}
.cgm-emoji-tab__icon {
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cgm-emoji-dlg__grid-scroll {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: -4px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.cgm-emoji-dlg__title {
  font-size: 13px;
  font-weight: 950;
  color: rgba(15, 23, 42, 0.9);
}
.cgm-emoji-dlg__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cgm-emoji-dlg__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}
.cgm-emoji {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.cgm-emoji:hover {
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.22);
}

/* Multi-select con checklist (evita Ctrl+click) */
.cgm-multi-pick {
  position: relative;
}
.cgm-multi-pick__btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  font-weight: 650;
}
.cgm-multi-pick__btn:after {
  content: "▾";
  float: right;
  color: rgba(15,23,42,0.55);
  font-weight: 900;
}
.cgm-multi-pick__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10010;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(15,23,42,0.14);
  padding: 8px;
  max-height: 260px;
  overflow: auto;
  display: none;
}
.cgm-multi-pick.is-open .cgm-multi-pick__panel {
  display: block;
}
.cgm-multi-pick__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.cgm-multi-pick__opt:hover {
  background: rgba(29, 78, 216, 0.06);
}
.cgm-multi-pick__opt input {
  width: auto;
  margin: 0;
}
.cgm-multi-pick__opt span {
  font-size: 14px;
  font-weight: 650;
  color: rgba(15,23,42,0.86);
}

.cgm-grid-form__actions {
  padding-top: 8px;
}

.cgm-grid-form__submit {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3b5bdb 0%, #5b21b6 100%);
}

@media (max-width: 560px) {
  .cgm-grid-header {
    flex-direction: column;
    align-items: stretch;
  }
  .cgm-grid-header__cta {
    width: 100%;
  }
  .cgm-grid-header__right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cgm-grid-header__team {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cgm-grid-monthbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .cgm-grid-monthbar__view {
    justify-self: stretch;
    order: 2;
  }
  .cgm-grid-monthbar__nav {
    order: 1;
    justify-self: center;
  }
  .cgm-grid-monthbar__spacer {
    display: none;
  }
  .cgm-grid-viewtoggle {
    width: 100%;
  }
  .cgm-viewbtn {
    flex: 1;
    text-align: center;
  }
  .cgm-grid-cal__dow {
    gap: 6px;
  }
  .cgm-grid-cal__grid {
    gap: 6px;
  }
  .cgm-day {
    min-height: 120px;
    padding: 8px;
  }
}

/* Cabecera lista: etiqueta legible + menú (overlay) para no robar ancho en columnas estrechas */
.cgm-listHeadCell {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  padding-top: 2px;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.cgm-listHeadCell--hasMenu {
  padding-right: 26px;
}

.cgm-listHeadCell__label {
  display: block;
  width: 100%;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.95);
}

.cgm-listHeadCell__menuBtn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cgm-listHeadCell__menuBtn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cgm-listHeadCell__menuBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 1px;
}

/* Menú flotante columnas */
.cgm-col-menu {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  padding: 6px 0;
  max-width: calc(100vw - 16px);
}

.cgm-col-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
}

.cgm-col-menu__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.cgm-col-menu__btn:hover {
  background: rgba(241, 245, 255, 0.95);
}

.cgm-col-menu__btn--primary {
  color: #1d4ed8;
}

.cgm-col-menu__hint {
  margin: 4px 8px 2px;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 600;
}

.cgm-col-menu__filterLbl {
  margin: 4px 8px 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.75);
}

.cgm-col-menu__filterSel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 8px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}

/* Modal propiedades columna */
.cgm-col-props[hidden] {
  display: none !important;
}

.cgm-col-props {
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cgm-col-props__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.cgm-col-props__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.cgm-col-props__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cgm-col-props__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.cgm-col-props__close {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}

.cgm-col-props__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.75);
}

.cgm-col-props__field input,
.cgm-col-props__field select,
.cgm-col-props__field textarea {
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.cgm-col-props__field--inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.cgm-col-props__save {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
}

.cgm-team-dlg {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.cgm-team-dlg[hidden] {
  display: none !important;
}

.cgm-team-dlg__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.45);
}

.cgm-team-dlg__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 680px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 22px 24px 20px;
  z-index: 1;
  box-sizing: border-box;
}

.cgm-team-dlg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cgm-team-dlg__headText {
  min-width: 0;
}

.cgm-team-dlg__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cgm-team-dlg__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.5);
}

.cgm-team-dlg__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.7);
}

.cgm-team-dlg__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.cgm-team-dlg__hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.5;
}

.cgm-team-dlg__fieldLabel {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 8px;
}

.cgm-team-dlg__addRow {
  margin-bottom: 20px;
}

.cgm-team-dlg__listHead {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 8px;
}

.cgm-team-dlg__list {
  margin: 0 0 20px;
  padding-left: 18px;
  max-height: min(220px, 40vh);
  overflow-y: auto;
}

.cgm-team-dlg__footer {
  display: flex;
  justify-content: flex-end;
  margin: 0 -4px 0;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-team-dlg__done {
  padding: 10px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  background: #1d4ed8;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}

.cgm-team-dlg__done:hover {
  filter: brightness(1.06);
}

.cgm-grid-teambar__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.45;
}

.cgm-grid-teambar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cgm-grid-teambar__input {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 14px;
}

.cgm-grid-teambar__select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 14px;
  font-weight: 600;
}

.cgm-grid-teambar__add {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: #1d4ed8;
}

.cgm-grid-teambar__list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.8);
}

.cgm-grid-teambar__item {
  margin-bottom: 4px;
}

.cgm-grid-form__field.is-field-locked {
  opacity: 0.72;
}

.cgm-grid-form__field.is-field-locked::after {
  content: "Bloqueado";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.45);
  margin-top: 4px;
}

/* Tras .cgm-btn-mini: columna Acciones plana (solo +/iconos, sin caja blanca) */
.cgm-listview .cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none;
  -webkit-appearance: none;
  appearance: none;
}

.cgm-listview .cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon:hover {
  background: rgba(29, 78, 216, 0.1) !important;
  border-color: rgba(29, 78, 216, 0.22) !important;
  box-shadow: none !important;
}

.cgm-listview .cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon.cgm-btn-mini--danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  box-shadow: none !important;
}

/* ——— Formulario público de solicitudes (cgm-solicitud) ——— */
.cgm-public-req {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 48px;
  box-sizing: border-box;
}

.cgm-public-req__card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.cgm-public-req__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0f172a;
}

.cgm-public-req__org {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.6);
}

.cgm-public-req__muted {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-public-req__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cgm-public-req__label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-public-req__input,
.cgm-public-req__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.cgm-public-req__input--narrow {
  max-width: 120px;
}

.cgm-public-req__fieldset {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
}

.cgm-public-req__fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-public-req__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.cgm-public-req__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.cgm-public-req__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .cgm-public-req__row2 {
    grid-template-columns: 1fr;
  }
}

.cgm-public-req__submit {
  margin-top: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4b7bff, #ff2d95);
}

.cgm-public-req__submit:hover {
  filter: brightness(1.05);
}

.cgm-public-req__piecesHint,
.cgm-reqManual__piecesHint {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  line-height: 1.45;
}

.cgm-reqPieces {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.cgm-reqPiece {
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.cgm-reqPiece__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cgm-reqPiece__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.cgm-reqPiece__remove {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 8px;
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  cursor: pointer;
}

.cgm-reqPieces__add,
.cgm-reqManual__addPiece {
  margin-bottom: 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px dashed rgba(29, 78, 216, 0.45);
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.06);
  color: #1d4ed8;
  cursor: pointer;
}

.cgm-reqEdit__pieces {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.cgm-reqEdit__piece {
  margin-bottom: 10px;
}

.cgm-reqEdit__pieceFmt,
.cgm-reqEdit__pieceMeta {
  color: rgba(15, 23, 42, 0.75);
  font-size: 13px;
}

.cgm-reqEdit__pieceQty {
  font-weight: 700;
  margin-left: 4px;
}

.cgm-reqEdit__pieceDesc {
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.88);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  white-space: pre-wrap;
}

.cgm-reqEdit__pieceDates {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
}

.cgm-reqEdit__pieceRef {
  margin-top: 8px;
  font-size: 12px;
}

.cgm-reqEdit__refDl,
.cgm-reqEdit__refPv {
  margin-right: 10px;
}

.cgm-reqEdit__refLink {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.75);
}

.cgm-reqPiece__dates {
  margin-top: 4px;
}

/* ——— Panel: lista y edición de solicitudes ——— */
.cgm-card--reqPublicLink {
  margin-bottom: 16px;
  padding: 18px 20px 20px;
}

.cgm-card--reqPublicLink--hint {
  padding: 14px 18px;
}

.cgm-reqPublic__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #0f172a;
}

.cgm-reqPublic__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.58);
  line-height: 1.45;
}

.cgm-reqPublic__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.cgm-reqPublic__input {
  flex: 1;
  min-width: 200px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.03);
}

.cgm-reqPublic__copy {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  background: #1d4ed8;
  white-space: nowrap;
}

.cgm-reqPublic__copy:hover {
  filter: brightness(1.06);
}

.cgm-reqManual-wrap {
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.cgm-reqManual__summary {
  list-style: none;
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 40px;
}

.cgm-reqManual__summary::-webkit-details-marker {
  display: none;
}

.cgm-reqManual__summary::before {
  content: "+";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: #4f46e5;
  font-size: 1.2rem;
  line-height: 1;
}

.cgm-reqManual-wrap[open] .cgm-reqManual__summary::before {
  content: "−";
}

.cgm-reqManual-wrap[open] .cgm-reqManual__summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-reqManual__panel {
  padding: 0 20px 20px;
}

.cgm-reqManual__panel > .cgm-reqManual__hint {
  margin: 4px 0 16px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.58);
  line-height: 1.45;
}

.cgm-reqManual__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cgm-reqManual__label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-reqManual__input,
.cgm-reqManual__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 14px;
}

.cgm-reqManual__input--narrow {
  max-width: 120px;
}

.cgm-reqManual__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .cgm-reqManual__row2 {
    grid-template-columns: 1fr;
  }
}

.cgm-reqManual__fieldset {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
}

.cgm-reqManual__fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-reqManual__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cgm-reqManual__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.cgm-reqManual__submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  background: #4f46e5;
}

.cgm-reqManual__submit:hover {
  filter: brightness(1.06);
}

/* Listado de solicitudes: aspecto “parrilla” (hoja blanca sobre el fondo del panel) */
.cgm-card--reqList {
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.08);
}

.cgm-reqList__table {
  min-width: 980px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.cgm-reqList__thead {
  display: grid;
  grid-template-columns:
    64px
    100px
    minmax(92px, 1fr)
    minmax(128px, 1.2fr)
    minmax(150px, 1.2fr)
    minmax(76px, 0.9fr)
    40px
    minmax(140px, 1.35fr)
    102px
    102px
    92px
    56px;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.55);
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 55%, #dbeafe 100%);
  border-bottom: 1px solid rgba(29, 78, 216, 0.18);
}

.cgm-reqList__table--global .cgm-reqList__thead {
  grid-template-columns:
    64px
    100px
    minmax(80px, 0.95fr)
    minmax(92px, 1fr)
    minmax(128px, 1.15fr)
    minmax(150px, 1.2fr)
    minmax(76px, 0.9fr)
    40px
    minmax(130px, 1.3fr)
    102px
    102px
    92px
    56px;
}

.cgm-reqList__tr {
  display: grid;
  grid-template-columns:
    64px
    100px
    minmax(92px, 1fr)
    minmax(128px, 1.2fr)
    minmax(150px, 1.2fr)
    minmax(76px, 0.9fr)
    40px
    minmax(140px, 1.35fr)
    102px
    102px
    92px
    56px;
  gap: 8px;
  align-items: start;
  padding: 12px 14px;
  font-size: 13px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  transition: background 0.12s ease;
}

.cgm-reqList__table > .cgm-reqList__tr:nth-child(2n + 2) {
  background: #f8fafc;
}

.cgm-reqList__table > .cgm-reqList__tr:nth-child(2n + 3) {
  background: #ffffff;
}

.cgm-reqList__tr:hover {
  background: rgba(29, 78, 216, 0.05) !important;
}

.cgm-reqList__tr:last-child {
  border-bottom: none;
}

.cgm-reqList__table--global .cgm-reqList__tr {
  grid-template-columns:
    64px
    100px
    minmax(80px, 0.95fr)
    minmax(92px, 1fr)
    minmax(128px, 1.15fr)
    minmax(150px, 1.2fr)
    minmax(76px, 0.9fr)
    40px
    minmax(130px, 1.3fr)
    102px
    102px
    92px
    56px;
}

.cgm-reqList__td--plats,
.cgm-reqList__td--fmt {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.88);
  word-break: break-word;
}

.cgm-reqList__td--qty {
  text-align: center;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.75);
}

.cgm-reqList__typeMain {
  font-weight: 700;
}

.cgm-reqList__typeMain--underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cgm-reqList__td--title {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(15, 23, 42, 0.9);
  word-break: break-word;
}

.cgm-reqUrg {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgm-reqUrg--none {
  color: rgba(15, 23, 42, 0.35);
  font-weight: 500;
}

.cgm-reqUrg--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.cgm-reqUrg--overdue {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.cgm-reqUrg--soon {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
}

.cgm-reqUrg--delivery {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.cgm-reqList__edit {
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.cgm-reqList__edit:hover {
  text-decoration: underline;
}

.cgm-card--reqEdit {
  max-width: 720px;
}

.cgm-reqEdit__h {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.cgm-reqEdit__meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0 0 24px;
  font-size: 13px;
}

.cgm-reqEdit__meta dt {
  margin: 0;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.5);
}

.cgm-reqEdit__meta dd {
  margin: 0;
  color: #0f172a;
}

.cgm-reqEdit__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cgm-reqEdit__label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.65);
}

.cgm-reqEdit__input,
.cgm-reqEdit__textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.cgm-reqEdit__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .cgm-reqEdit__row2 {
    grid-template-columns: 1fr;
  }

  .cgm-reqEdit__meta {
    grid-template-columns: 1fr;
  }
}

/* Vista global (admin): pestañas y tabla de contenido */
.cgm-globalTabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-globalTabs__link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.65);
  text-decoration: none;
  white-space: nowrap;
}

.cgm-globalTabs__link:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.cgm-globalTabs__link.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cgm-globalHead {
  flex-shrink: 0;
  padding: 20px 0 8px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.cgm-globalBar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.cgm-globalBar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cgm-globalBar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: rgba(15, 23, 42, 0.65);
  text-decoration: none;
  flex: none;
}

.cgm-globalBar__back:hover {
  border-color: #2f63ff;
  color: #1f47d6;
  background: #f5f8ff;
}

.cgm-globalBar__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0;
  color: #1b2435;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cgm-workspace--globalContent .cgm-global-grid-shell {
  padding-top: 0;
}

.cgm-workspace--globalContent .cgm-global-grid-shell .cgm-grid-hint,
.cgm-workspace--globalContent .cgm-global-grid-shell .cgm-grid-counter {
  display: none;
}

.cgm-workspace--globalContent .cgm-global-grid-shell .cgm-grid-monthbar {
  margin-top: 0;
  padding-top: 8px;
}

.cgm-workspace--globalContent .cgm-main {
  background: #f4f6fb;
}

.cgm-workspace--meetNotetaker .cgm-main {
  overflow-y: auto;
  min-height: 0;
}

.cgm-globalHead__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cgm-globalHead__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin: 0;
  color: #1b2435;
  letter-spacing: -0.02em;
}

.cgm-globalHead__sub {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #79829a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cgm-globalHead__sub .adm {
  background: #eaf0ff;
  color: #1f47d6;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
}

.cgm-globalHead__crumbs {
  margin-bottom: 8px;
}

.cgm-globalHead__crumbs .ghost,
.cgm-globalHead__tools .ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe3ec;
  background: #fff;
  color: #1b2435;
  border-radius: 11px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}

.cgm-globalHead__crumbs .ghost:hover,
.cgm-globalHead__tools .ghost:hover {
  border-color: #2f63ff;
  color: #1f47d6;
}

.cgm-globalHead__tools {
  margin-bottom: 16px;
}

.cgm-global-grid-shell .cgm-globalHead {
  padding-top: 16px;
}

.cgm-global-grid-shell .cgm-globalHead__crumbs {
  display: none;
}

/* —— Panel producción: arrastre por asa —— */
body.cgm-designer-dragging {
  user-select: none;
  cursor: grabbing;
}

body.cgm-designer-dragging .cgm-designerPanel__dragHandle {
  cursor: grabbing;
}

/* —— Reuniones —— */
.cgm-meetings__h {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cgm-meetings__intro,
.cgm-meetings__meta {
  margin: 0 0 16px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.cgm-meetings__backList {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

.cgm-meetings__backList:hover {
  text-decoration: underline;
}

.cgm-meetings__new {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.06), rgba(15, 23, 42, 0.03));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-meetings__attPicker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 520px) {
  .cgm-meetings__attPicker {
    grid-template-columns: 1fr;
  }
}

.cgm-meetings__field span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cgm-meetings__input,
.cgm-meetings__textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.cgm-meetings__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cgm-meetings__itemLink {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cgm-meetings__itemLink:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.cgm-meetings__itemMeta {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.5);
  font-weight: 600;
}

.cgm-meeting-live {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cgm-meeting-live {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.cgm-meeting-live__panel {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.cgm-meeting-live__label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
  color: #0f172a;
}

.cgm-meeting-live__labelRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cgm-meeting-live__labelRow .cgm-meeting-live__label {
  margin-bottom: 0;
}
.cgm-meeting-live__notes[readonly] {
  background: rgba(255, 255, 255, 0.65);
}

.cgm-mentionMenu {
  position: absolute;
  z-index: 50;
  width: min(360px, calc(100vw - 40px));
  max-height: 260px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 40px rgba(15,23,42,0.16);
  padding: 6px;
}
.cgm-mentionMenu__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cgm-mentionMenu__item:hover,
.cgm-mentionMenu__item:focus {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.cgm-meeting-live__notes {
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 14px;
  font-size: 15px;
  line-height: 1.55;
  font-family: ui-sans-serif, system-ui, sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

.cgm-meeting-live__status {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.45);
}

.cgm-meeting-live__status.is-error {
  color: #b91c1c;
}

.cgm-meeting-live__rec {
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-meeting-live__recTitle {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.cgm-meeting-live__recHint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.55);
}

.cgm-meeting-live__recBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cgm-meeting-live__recVisual {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-meeting-live__recVisual.is-active {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.cgm-meeting-live__recCanvas {
  display: block;
  width: 100%;
  height: 72px;
  vertical-align: middle;
}

.cgm-meeting-live__recStatus {
  margin: 12px 0 0;
  font-size: 13px;
  min-height: 1.2em;
}

.cgm-meeting-live__recStatus.is-error {
  color: #b91c1c;
}

.cgm-meeting__audioItem {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-meeting__audioItem:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cgm-meeting__audioPlayer {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  border-radius: 10px;
}

.cgm-meeting__audioDl {
  display: inline-flex;
  margin-right: 10px;
}

.cgm-meeting__audioGen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.cgm-meeting__audioGen:hover {
  background: rgba(15,23,42,0.04);
}

.cgm-meeting-live__audio {
  margin-top: 8px;
}

.cgm-meeting__audioDl {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.cgm-meetings__del {
  margin-top: 20px;
}

/* Botones genéricos (reuniones / marca) */
.cgm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #0f172a;
  font-family: inherit;
}

.cgm-btn--primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: rgba(37, 99, 235, 0.5);
  color: #fff;
}

.cgm-btn--ghost {
  background: transparent;
}

.cgm-btn--danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
  color: #991b1b;
}

.cgm-btn--sm {
  padding: 4px 10px;
  font-size: 16px;
  line-height: 1;
}

.cgm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Marca / caja fuerte —— */
.cgm-brandHub__h {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.cgm-brandHub__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.cgm-brandHub__tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid transparent;
}

.cgm-brandHub__tab.is-active {
  color: #0f172a;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cgm-brandHub__p {
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  margin: 0 0 16px;
}

.cgm-brandHub__upload {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 28px;
}

.cgm-brandHub__field span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.5);
}

.cgm-brandHub__input,
.cgm-brandHub__select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.cgm-brandHub__msg {
  font-size: 13px;
  margin: 0;
}

.cgm-brandHub__msg.is-error {
  color: #b91c1c;
}

.cgm-brandHub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cgm-brandHub__asset {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.cgm-brandHub__assetHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cgm-brandHub__assetKind {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.45);
}

.cgm-brandHub__assetTitle {
  font-weight: 800;
  margin-bottom: 10px;
}

.cgm-brandHub__dl {
  font-weight: 700;
  font-size: 14px;
  color: #2563eb;
}

.cgm-vault__p,
.cgm-vault__note {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.65);
}

.cgm-vault__unlock {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.cgm-vault__label {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.cgm-vault__input {
  display: block;
  margin-top: 6px;
  min-width: 240px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  font-size: 14px;
}

.cgm-vault:not(.is-unlocked) .cgm-vault__unlockedBar,
.cgm-vault:not(.is-unlocked) .cgm-vault__add,
.cgm-vault:not(.is-unlocked) .cgm-vault__list {
  display: none;
}

.cgm-vault.is-unlocked .cgm-vault__unlock {
  display: none;
}

.cgm-vault__unlockedBar {
  margin-bottom: 16px;
}

.cgm-vault__add {
  padding: 18px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 24px;
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.cgm-vault__addH {
  margin: 0;
  font-size: 15px;
}

.cgm-vault-secret {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  margin-bottom: 10px;
  position: relative;
  padding-right: 44px;
}

.cgm-vault-secret__label {
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.cgm-vault-secret__val {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  font-family: ui-monospace, monospace;
}

.cgm-vault-secret__del {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cgm-tile--meetings {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.07), #fff);
}

.cgm-tile--brand {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), #fff);
}

.cgm-settings-dlg__hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 22px 0 18px;
}

.cgm-settings-dlg__h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
}

/* ============================================================
   PULIDO UI/UX — Parrilla de contenidos (capa de refinamiento)
   Solo añade transiciones, foco, scrollbars y jerarquía.
   No modifica anchos de columnas, líneas divisorias ni el merge.
   ============================================================ */

/* —— Scrollbars finos y modernos —— */
.cgm-grid-board__sections,
.cgm-listview__bodyPane {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.cgm-grid-board__sections::-webkit-scrollbar,
.cgm-listview__bodyPane::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.cgm-grid-board__sections::-webkit-scrollbar-track,
.cgm-listview__bodyPane::-webkit-scrollbar-track {
  background: transparent;
}

.cgm-grid-board__sections::-webkit-scrollbar-thumb,
.cgm-listview__bodyPane::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.cgm-grid-board__sections::-webkit-scrollbar-thumb:hover,
.cgm-listview__bodyPane::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.32);
  background-clip: padding-box;
}

/* —— Microinteracciones: botones del encabezado y navegación —— */
.cgm-grid-header__cta,
.cgm-grid-header__team,
.cgm-grid-back,
.cgm-viewbtn,
.cgm-viewbtn--wrap,
.cgm-monthbtn {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    filter 0.18s ease;
}

.cgm-grid-header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(59, 91, 219, 0.42);
}

.cgm-grid-header__cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(59, 91, 219, 0.3);
}

.cgm-grid-back:hover {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.06);
}

.cgm-monthbtn:hover {
  border-color: rgba(29, 78, 216, 0.35);
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.06);
}

.cgm-monthbtn:active {
  transform: scale(0.93);
}

.cgm-viewbtn--wrap:hover {
  border-color: rgba(29, 78, 216, 0.28);
  background: rgba(29, 78, 216, 0.05);
}

/* —— Segmented control (Calendario / Lista) más definido —— */
.cgm-viewbtn.is-active {
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18);
}

/* —— Foco accesible (navegación por teclado) —— */
.cgm-grid-header__cta:focus-visible,
.cgm-grid-header__team:focus-visible,
.cgm-grid-back:focus-visible,
.cgm-viewbtn:focus-visible,
.cgm-viewbtn--wrap:focus-visible,
.cgm-monthbtn:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.55);
  outline-offset: 2px;
}

/* —— Jerarquía: etiqueta de mes más prominente —— */
.cgm-monthbar__label {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.92);
}

/* —— Estados vacíos más sutiles (días sin publicaciones) —— */
.cgm-listrow--emptyday .cgm-listcell--muted {
  color: rgba(15, 23, 42, 0.34);
  font-style: italic;
}

.cgm-listrow--emptyday .cgm-btn-mini--addIco {
  opacity: 0.45;
  transition: opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.cgm-listrow--emptyday:hover .cgm-btn-mini--addIco {
  opacity: 1;
}

/* —— Calendario: tarjetas de día con elevación al pasar el cursor —— */
.cgm-day {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.cgm-day:not(.cgm-day--blank):hover {
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.cgm-mini {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.cgm-mini:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.cgm-day__add {
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.cgm-day__add:hover {
  border-color: rgba(29, 78, 216, 0.4);
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.05);
}

/* —— Botones de acción de fila: feedback al presionar —— */
.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon:active {
  transform: scale(0.9);
}

/* —— Cabecera de día agrupado: badge y botón + con más vida —— */
.cgm-dayheader__add {
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
}

.cgm-dayheader__add:active {
  transform: scale(0.92);
}

/* —— Respeta usuarios con movimiento reducido —— */
@media (prefers-reduced-motion: reduce) {
  .cgm-grid-header__cta,
  .cgm-grid-header__team,
  .cgm-grid-back,
  .cgm-viewbtn,
  .cgm-viewbtn--wrap,
  .cgm-monthbtn,
  .cgm-day,
  .cgm-mini,
  .cgm-day__add,
  .cgm-listcell--actions > button.cgm-btn-mini.cgm-btn-mini--icon,
  .cgm-dayheader__add {
    transition: none;
  }
}

/* ============================================================
   ENRIQUECIMIENTO VISUAL — "look" de plataforma premium
   Profundidad, gradientes y jerarquía. Sin tocar estructura.
   ============================================================ */

/* —— Backdrop con textura sutil: las tarjetas blancas resaltan —— */
.cgm-workspace--with-grid .cgm-main--gridEmbed,
.cgm-main:has(> .cgm-global-grid-shell) {
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(59, 91, 219, 0.07), transparent 60%),
    radial-gradient(1000px 480px at 100% -2%, rgba(124, 58, 237, 0.05), transparent 55%),
    linear-gradient(180deg, #f4f7fe 0%, #eef2fb 100%);
}

/* —— Encabezado de página: separador suave y jerarquía —— */
.cgm-grid-header__title {
  font-size: 1.65rem;
  background: linear-gradient(120deg, #0f172a 0%, #1e293b 60%, #1d4ed8 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* —— Barra de mes: cápsula contenedora premium para la navegación —— */
.cgm-grid-monthbar__nav {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 5px 8px;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
}

.cgm-monthbtn {
  border-color: transparent;
  background: transparent;
}

/* —— Contenedor de lista: elevación en capas (look "card flotante") —— */
.cgm-grid-board__sections > .cgm-listview {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px -22px rgba(15, 23, 42, 0.22),
    0 36px 70px -40px rgba(59, 91, 219, 0.22);
}

/* —— Cabecera azul: gradiente con profundidad + brillo superior —— */
.cgm-listview__headPane,
.cgm-listview__head,
.cgm-listview__headActions {
  background: linear-gradient(180deg, #3461ef 0%, #1d4ed8 100%);
}

.cgm-listview__headPane {
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px -12px rgba(29, 78, 216, 0.6);
}

.cgm-listHeadCell__label,
.cgm-listview__headActions,
.cgm-listview__headOrg {
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18);
}

/* —— Pills de estado: estilo premium con punto indicador (solo columna Estado) —— */
.cgm-listrow.is-published .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai),
.cgm-listrow.is-draft .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai),
.cgm-listrow.is-pending .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.cgm-listrow.is-published .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai)::before,
.cgm-listrow.is-draft .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai)::before,
.cgm-listrow.is-pending .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.cgm-listrow.is-published .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai) {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.24);
}

.cgm-listrow.is-draft .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai) {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.24);
}

.cgm-listrow.is-pending .cgm-list-drop--status .cgm-pill:not(.cgm-pill--ai) {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
}

/* —— Cabecera de día agrupado: badge con gradiente premium —— */
.cgm-dayheader__badge {
  background: linear-gradient(135deg, rgba(59, 91, 219, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  border-color: rgba(59, 91, 219, 0.28);
  box-shadow: 0 2px 8px -3px rgba(59, 91, 219, 0.35);
}

/* —— Botón "Usuarios": coherente con la nueva profundidad —— */
.cgm-grid-header__team {
  box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.4);
}

/* —— Toggle de vista: cápsula con sombra sutil —— */
.cgm-grid-viewtoggle,
.cgm-viewbtn--wrap {
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.4);
}

/* —— App shell + barra superior de plataforma —— */
.cgm-appShell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #fbfcff;
}

.cgm-appShell > .cgm-workspace {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.cgm-platformBar {
  flex-shrink: 0;
  height: 40px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  z-index: 12;
}

.cgm-platformBar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px 0 12px;
}

.cgm-platformBar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cgm-platformBar__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.cgm-platformBar__btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.cgm-platformBar__bellBadge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #e2445c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

.cgm-platformBar__user {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* —— Notificaciones (campana + panel estilo Monday) —— */
.cgm-topbar2__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
}

.cgm-topbar2__bell:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cgm-topbar2__bellBadge,
.cgm-sidebar__toolBadge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e2445c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

.cgm-sidebar__tool {
  position: relative;
}

.cgm-sidebar__toolBadge {
  top: 6px;
  right: 10px;
}

body.cgm-notif-open {
  overflow: hidden;
}

.cgm-notifPanel[hidden] {
  display: none !important;
}

.cgm-notifPanel {
  position: fixed;
  inset: 0;
  z-index: 100050;
}

.cgm-notifPanel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.cgm-notifPanel__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
}

.cgm-notifPanel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-notifPanel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.cgm-notifPanel__headActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cgm-notifPanel__iconBtn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-family: inherit;
}

.cgm-notifPanel__iconBtn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.cgm-notifPanel__tabs {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cgm-notifPanel__tab {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}

.cgm-notifPanel__tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.cgm-notifPanel__filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cgm-notifPanel__searchWrap {
  position: relative;
  display: block;
}

.cgm-notifPanel__searchIco {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.cgm-notifPanel__search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 10px 14px 10px 36px;
  font-size: 13px;
  font-family: inherit;
  background: #f8fafc;
}

.cgm-notifPanel__search:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  background: #fff;
}

.cgm-notifPanel__unreadToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.cgm-notifPanel__list {
  flex: 1;
  overflow: auto;
  padding: 8px 12px 20px;
}

.cgm-notifPanel__group {
  margin: 14px 6px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.cgm-notifPanel__empty,
.cgm-notifPanel__loading {
  margin: 24px 12px;
  color: #64748b;
  font-size: 14px;
}

.cgm-notifCard {
  margin-bottom: 8px;
}

.cgm-notifCard__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cgm-notifCard__link:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.12);
}

.cgm-notifCard.is-unread .cgm-notifCard__link {
  background: rgba(37, 99, 235, 0.05);
}

.cgm-notifCard__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.cgm-notifCard__body {
  flex: 1;
  min-width: 0;
}

.cgm-notifCard__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cgm-notifCard__actor {
  font-size: 13px;
  color: #0f172a;
}

.cgm-notifCard__time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.cgm-notifCard__msg {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.cgm-notifCard__ctx {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.cgm-notifCard__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ——— Menú de perfil (sidebar) ——— */
.cgm-profileMenu {
  position: relative;
}
.cgm-sidebar__profileBtn {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cgm-sidebar__profileBtn:hover,
.cgm-sidebar__profileBtn[aria-expanded="true"] {
  border-color: rgba(147, 197, 253, 0.85);
  box-shadow: 0 0 0 3px rgba(87, 155, 252, 0.22);
}
.cgm-sidebar__profileAv,
.cgm-profileMenu__av,
.cgm-personalSettings__av {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.cgm-sidebar__profileImg,
.cgm-profileMenu__img,
.cgm-personalSettings__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgm-profileMenu__drop {
  position: fixed;
  z-index: 100220;
  width: min(300px, calc(100vw - 24px));
  max-height: min(360px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  padding: 10px;
}
.cgm-profileMenu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 6px;
}
.cgm-profileMenu__av {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.cgm-profileMenu__meta {
  min-width: 0;
}
.cgm-profileMenu__name {
  font-weight: 800;
  font-size: 14px;
  color: #1f2540;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgm-profileMenu__email {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cgm-profileMenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #323338;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.cgm-profileMenu__item:hover {
  background: rgba(87, 155, 252, 0.1);
  color: #1f76e6;
}
.cgm-profileMenu__item svg {
  flex-shrink: 0;
  opacity: 0.72;
}

.cgm-personalSettings__panel {
  width: min(520px, 100%);
}
.cgm-personalSettings__preview {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}
.cgm-personalSettings__av {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.cgm-card--businessSettings {
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.cgm-businessSettingsPage {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.cgm-businessSettings .cgm-settings-dlg__section--wide {
  padding: 16px;
}
.cgm-clientMap--orgSettings .cgm-clientMap__grid {
  gap: 16px;
}
.cgm-clientMap--briefOnly .cgm-clientMap__form {
  max-width: none;
}
.cgm-businessSettingsPage__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 2px 0;
}
.cgm-businessSettingsPage__navLink {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: rgba(15, 23, 42, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cgm-businessSettingsPage__navLink:hover {
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.22);
  color: #1d4ed8;
}
.cgm-topbar2--businessSettings .cgm-topbar2__right {
  flex-shrink: 0;
}
.cgm-topbar2--businessSettings .cgm-topbar2__title {
  font-size: 1.35rem;
  line-height: 1.2;
}
.cgm-businessSettings {
  padding: 0;
}
.cgm-businessSettings__body {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.cgm-businessSettings .cgm-settings-dlg__section {
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 88px;
}
.cgm-businessSettings .cgm-settings-dlg__section:last-child {
  margin-bottom: 0;
}
.cgm-businessSettings .cgm-settings-dlg__h {
  font-size: 1.05rem;
}
.cgm-businessSettings .cgm-settings-dlg__section .cgm-settings-dlg__form {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.cgm-bizInlineForm--team {
  grid-template-columns: 1fr auto;
  max-width: 100%;
  align-items: end;
}
@media (max-width: 720px) {
  .cgm-bizInlineForm--team {
    grid-template-columns: 1fr;
  }
}
.cgm-roleEditDlg {
  align-items: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 100200;
}
.cgm-roleEditDlg .cgm-settings-dlg__backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
}
.cgm-roleEditDlg .cgm-settings-dlg__panel {
  width: min(560px, 100%);
  max-height: min(90dvh, 720px);
  display: flex;
  flex-direction: column;
}
.cgm-roleEditDlg__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cgm-roleEditDlg__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cgm-roleEditDlg__scroll .cgm-settings-dlg__h {
  margin-bottom: 0;
}
.cgm-roleEditDlg__scroll .cgm-settings-dlg__p {
  margin-bottom: 0;
}
.cgm-roleEditDlg__perms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.cgm-roleEditDlg .cgm-bizRoleDlg__foot {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 0 0 18px 18px;
}
.cgm-bizSecHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cgm-bizSecHead .cgm-settings-dlg__h {
  margin-bottom: 4px;
}
.cgm-bizSecHead .cgm-settings-dlg__p {
  margin-bottom: 0;
}
.cgm-bizCreateOrg {
  margin-bottom: 16px;
  max-width: 520px;
}
.cgm-bizInlineForm {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  max-width: 100%;
  align-items: end;
}
.cgm-bizOrgList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cgm-bizOrgList__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cgm-bizOrgList__link:hover {
  border-color: rgba(29, 78, 216, 0.22);
  background: rgba(29, 78, 216, 0.03);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.cgm-bizOrgList__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.cgm-bizOrgList__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cgm-bizOrgList__abbr {
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
}
.cgm-bizOrgList__text {
  flex: 1;
  min-width: 0;
}
.cgm-bizOrgList__name {
  font-weight: 900;
  font-size: 15px;
  color: #0f172a;
}
.cgm-bizOrgList__hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}
.cgm-bizOrgList__chev {
  font-size: 22px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.35);
  flex-shrink: 0;
}
.cgm-bizRoleList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cgm-bizRoleList__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.cgm-bizRoleList__main {
  flex: 1;
  min-width: 0;
}
.cgm-bizRoleList__name {
  font-weight: 900;
  font-size: 15px;
  color: #0f172a;
}
.cgm-bizRoleList__desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.62);
}
.cgm-bizRoleList__desc--muted {
  font-style: italic;
  color: rgba(15, 23, 42, 0.42);
}
.cgm-bizRoleList__badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.62);
  background: rgba(15, 23, 42, 0.06);
}
.cgm-bizRoleDlg__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 8px;
}
.cgm-settings-dlg__section--danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.45);
}

.cgm-col-props__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.55);
}

/* ===== FANTIME GRID TEMPLATE (calendario + lista + grid) ===== */
.cgm-grid-shell--fantime {
  background: #f5f6f9;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.cgm-grid-shell--fantime,
.cgm-grid-shell--fantime * {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.cgm-grid-shell--fantime .cgm-grid-header__title,
.cgm-grid-shell--fantime .cgm-monthbar__label,
.cgm-grid-shell--fantime .cgm-day__num,
.cgm-grid-shell--fantime .cgm-grid-counter b,
.cgm-grid-shell--fantime .cgm-grid-simpleList__date b {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
}

.cgm-grid-shell--fantime .cgm-grid-monthbar,
.cgm-grid-shell--fantime .cgm-grid-counter,
.cgm-grid-shell--fantime .cgm-grid-hint,
.cgm-grid-shell--fantime .cgm-grid-board__sections > .cgm-grid-cal,
.cgm-grid-shell--fantime .cgm-grid-board__sections > .cgm-grid-simpleList,
.cgm-grid-shell--fantime .cgm-grid-board__sections > .cgm-listview {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cgm-grid-shell--fantime .cgm-grid-monthbar { margin-top: 10px; }
.cgm-grid-shell--fantime .cgm-grid-viewtoggle { padding: 4px; border-radius: 14px; border: 1px solid #e9ebf1; background: #fff; box-shadow: 0 1px 3px rgba(20, 28, 46, .06); }
.cgm-grid-shell--fantime .cgm-viewbtn { border-radius: 10px; font-weight: 700; font-size: 14px; }
.cgm-grid-shell--fantime .cgm-viewbtn.is-active { background: #eaf0ff; color: #1f47d6; box-shadow: inset 0 0 0 1px rgba(47,99,255,.18); }

.cgm-grid-shell--fantime .cgm-grid-counter {
  margin-top: 8px; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid #e9ebf1; background: #fff;
  color: #475067; font-size: 13.5px; font-weight: 500;
}
.cgm-grid-shell--fantime .cgm-grid-counter b { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-weight: 800; color: #1b2435; }
.cgm-grid-counter__clearFilters {
  margin-left: 4px;
  padding: 2px 10px;
  border: 1px solid #c5d0ff;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f63ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cgm-grid-counter__clearFilters:hover { background: #e0e7ff; }
.cgm-grid-counter__filter { color: #c2410c; font-weight: 600; }
.cgm-grid-shell--fantime .cgm-grid-hint { margin-top: 4px; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; color: #9aa2b6; font-size: 13px; }

.cgm-grid-shell--fantime .cgm-grid-cal__dow { gap: 12px; margin-bottom: 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.cgm-grid-shell--fantime .cgm-grid-cal__grid { gap: 12px; }
.cgm-grid-shell--fantime .cgm-day { background: #fff; border: 1px solid #e9ebf1; border-radius: 14px; min-height: 190px; padding: 10px; box-shadow: 0 1px 3px rgba(20, 28, 46, .06); }
.cgm-grid-shell--fantime .cgm-day__head { align-items: baseline; gap: 8px; }
.cgm-grid-shell--fantime .cgm-day__num { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-size: 20px; line-height: 1; }
.cgm-grid-shell--fantime .cgm-day__dow { font-size: 12px; margin: 0; padding: 0; }
.cgm-grid-shell--fantime .cgm-day__count { margin-left: auto; }
.cgm-grid-shell--fantime .cgm-day__add { width: 24px; height: 24px; margin: 0 0 0 4px; padding: 0; border-radius: 7px; border: 1px dashed #dfe3ec; opacity: 0; }
.cgm-grid-shell--fantime .cgm-day:hover .cgm-day__add { opacity: 1; }

.cgm-grid-shell--fantime .cgm-mini {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.cgm-grid-shell--fantime .cgm-mini[draggable="true"] { cursor: grab; }
.cgm-grid-shell--fantime .cgm-mini--dragging { opacity: .35; cursor: grabbing; }
.cgm-grid-shell--fantime .cgm-day--drop-hint {
  border-color: #2f63ff;
  box-shadow: 0 0 0 2px #eaf0ff;
  background: linear-gradient(180deg, #eaf0ff, #fff 42%);
}
.cgm-grid-shell--fantime .cgm-mini__cover {
  position: relative;
  display: block;
  height: 86px;
  background-color: #dfe6ff;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.cgm-grid-shell--fantime .cgm-mini__coverImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cgm-grid-shell--fantime .cgm-mini__plats { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; }
.cgm-grid-shell--fantime .cgm-mini__plat { display: inline-flex; width: 24px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; background: var(--pc); color: #fff; font-size: 9px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.cgm-grid-shell--fantime .cgm-mini__statusCorner {
  position: absolute;
  left: 10px;
  top: 70px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--st);
  box-shadow: 0 3px 10px rgba(20, 28, 46, .28);
  color: var(--st);
  z-index: 6;
  pointer-events: none;
}
.cgm-grid-shell--fantime .cgm-mini__statusCorner svg {
  width: 14px;
  height: 14px;
  display: block;
}
.cgm-grid-shell--fantime .cgm-mini__body {
  display: block;
  padding: 16px 11px 12px;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 0 0 12px 12px;
}
.cgm-grid-shell--fantime .cgm-mini__row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.cgm-grid-shell--fantime .cgm-mini__timechip {
  display: inline-flex; border-radius: 999px; background: #eaf0ff; color: #1f47d6;
  font-size: 11.5px; font-weight: 800; padding: 3px 9px; letter-spacing: .01em;
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
}
.cgm-grid-shell--fantime .cgm-mini__title {
  font-size: 13px;
  font-weight: 700;
  color: #1b2435;
  line-height: 1.28;
}

.cgm-grid-shell--fantime .cgm-grid-simpleList { background: #fff; border: 1px solid #e9ebf1; border-radius: 18px; box-shadow: 0 1px 3px rgba(20, 28, 46, .06); overflow: hidden; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__row {
  width: 100%; border: none; border-bottom: 1px solid #eef0f4; background: #fff; cursor: pointer; padding: 13px 18px;
  display: grid; grid-template-columns: 118px 56px 1fr 120px 150px; gap: 16px; align-items: center; text-align: left;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__row--grouped {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 0;
  cursor: default;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__row--grouped .cgm-grid-simpleList__date {
  align-self: center;
  padding: 13px 0 13px 18px;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__entry {
  width: 100%;
  border: none;
  border-top: 1px solid #eef0f4;
  background: #fff;
  cursor: pointer;
  padding: 13px 18px 13px 0;
  display: grid;
  grid-template-columns: 56px 1fr 120px 150px;
  gap: 16px;
  align-items: center;
  text-align: left;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__entry:first-child {
  border-top: none;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__entry:hover {
  background: #f8fafd;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__thumb {
  width: 56px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #dfe6ff;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__thumbImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__thumb--empty {
  box-shadow: inset 0 0 0 1px rgba(20,28,46,.06);
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__row:last-child { border-bottom: none; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__row:hover { background: #f8fafd; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__date { display: inline-flex; align-items: baseline; gap: 8px; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__date span { font-size: 12.5px; color: #79829a; font-weight: 600; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__date b { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; font-size: 18px; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__main b { display: block; font-size: 15px; font-weight: 700; color: #1b2435; margin-bottom: 2px; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__main span { font-size: 12.5px; color: #79829a; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__time { font-weight: 700; color: #1f47d6; font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; }
.cgm-grid-shell--fantime .cgm-grid-simpleList__pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 999px; padding: 4px 10px;
  font-size: 11.5px; font-weight: 700; color: var(--st); background: color-mix(in srgb, var(--st) 13%, white);
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); }

/* Ajuste fino para quedar igual al mock enviado */
.cgm-grid-shell--fantime .cgm-grid-header {
  max-width: min(98vw, 1620px);
  padding: 22px 8px 8px;
  align-items: flex-start;
  gap: 18px;
}
.cgm-grid-shell--fantime .cgm-grid-header__left { gap: 18px; }
.cgm-grid-shell--fantime .cgm-grid-header__title {
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}
.cgm-grid-shell--fantime .cgm-grid-header__sub {
  margin-top: 8px;
  font-size: 15px;
  color: #79829a;
}
.cgm-grid-shell--fantime.cgm-grid-shell--share .cgm-grid-back {
  display: none !important;
}

.cgm-grid-shell--fantime .cgm-grid-back {
  gap: 7px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e9ebf1;
  color: #1b2435;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(20,28,46,.04), 0 1px 3px rgba(20,28,46,.05);
}
.cgm-grid-shell--fantime .cgm-grid-header__right { gap: 10px; }
.cgm-grid-shell--fantime .cgm-grid-header__team {
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid #e9ebf1;
  background: #fff;
  color: #1b2435;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(20,28,46,.04), 0 1px 3px rgba(20,28,46,.05);
}
.cgm-grid-shell--fantime .cgm-grid-header__cta {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  background: linear-gradient(135deg,#2f63ff,#5b6bff);
  box-shadow: 0 8px 22px rgba(47,99,255,.32), inset 0 1px 0 rgba(255,255,255,.25);
}
.cgm-grid-shell--fantime .cgm-grid-monthbar {
  padding: 8px 8px 4px;
  grid-template-columns: auto 1fr auto;
}
.cgm-grid-shell--fantime .cgm-grid-monthbar__view { justify-self: start; }
.cgm-grid-shell--fantime .cgm-grid-monthbar__nav {
  justify-self: end;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid #e9ebf1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20,28,46,.04), 0 1px 3px rgba(20,28,46,.05);
}
.cgm-grid-shell--fantime .cgm-monthbtn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #475067;
}
.cgm-grid-shell--fantime .cgm-monthbar__label {
  min-width: 180px;
  font-size: 16px;
  font-weight: 700;
  color: #1b2435;
}
.cgm-grid-shell--fantime .cgm-grid-counter { margin-left: 8px; }
.cgm-grid-shell--fantime .cgm-grid-hint { margin-left: 8px; }

.cgm-reqCodeChip,
.cgm-reqLinkChip,
.cgm-linkedPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  padding: 4px 10px 4px 7px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #f4f7ff, #eaf0ff);
  color: #1f47d6;
}
.cgm-linkedPill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f63ff;
  flex: none;
}
.cgm-linkedPill__lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475067;
}
.cgm-linkedPill strong {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
}
.cgm-reqCodeChip:hover,
.cgm-reqLinkChip:hover,
.cgm-linkedPill:hover {
  background: #dce6ff;
}
.cgm-reqLinkChip {
  margin-left: 8px;
  vertical-align: middle;
}
.cgm-fpe-ic--design-req {
  opacity: 0.72;
}
.cgm-fpe-ic--design-req:hover {
  opacity: 1;
}
.cgm-fpe-ic--req-link {
  position: relative;
  color: #1f47d6;
  border-color: #dce6ff;
  background: #f4f7ff;
}
.cgm-fpe-ic--req-link:hover {
  background: #eaf0ff;
  border-color: #b8ccff;
}
.cgm-fpe-ic__badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1f47d6;
  background: #fff;
  border: 1px solid #dce6ff;
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.2;
  pointer-events: none;
}
.cgm-grid-shell--fantime .cgm-mini__req {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4f7ff, #eaf0ff);
  border: 1px solid #c7d7ff;
  color: #1f47d6;
  flex: none;
  margin-left: auto;
  padding: 2px 8px 2px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
}
.cgm-grid-shell--fantime .cgm-mini__req:hover {
  background: #dce6ff;
}
.cgm-grid-shell--fantime .cgm-mini__req svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.cgm-grid-shell--fantime .cgm-mini__reqCode {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 64px;
  color: #1f47d6;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__main b {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__req {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4f7ff, #eaf0ff);
  border: 1px solid #c7d7ff;
  color: #1f47d6;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px 2px 5px;
  vertical-align: middle;
  flex: none;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__reqLbl {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475067;
}
.cgm-grid-shell--fantime .cgm-grid-simpleList__req svg {
  width: 12px;
  height: 12px;
}
.cgm-grid-shell--fantime .cgm-listrow--linked-req {
  box-shadow: inset 3px 0 0 #2f63ff;
}
.cgm-grid-shell--fantime .cgm-btn-mini--req {
  color: #1f47d6;
  background: #eaf0ff;
  border-color: #dce6ff;
}
.cgm-grid-shell--fantime .cgm-btn-mini--req:hover {
  background: #dce6ff;
}
.cgm-gridPieceReq.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 46, 0.42);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100300;
  opacity: 1;
}
.cgm-gridPieceReq.overlay[hidden] {
  display: none !important;
}
.cgm-gridPieceReq.overlay.open {
  display: flex !important;
}

.cgm-gridReqView.cgm-reqPortal {
  --ink: #1b2435;
  --ink-2: #475067;
  --muted: #79829a;
  --faint: #9aa2b6;
  --card: #fff;
  --canvas: #eef0f5;
  --line: #e9ebf1;
  --line-soft: #f0f2f6;
  --line-2: #dfe3ec;
  --accent: #2f63ff;
  --accent-2: #5b8cff;
  --accent-ink: #1f47d6;
  --accent-soft: #eaf0ff;
  --grad: linear-gradient(135deg, #2f63ff, #5b6bff);
  --pieza: #8b5cf6;
  --pieza-soft: #f1ecfe;
  --pieza-ink: #6d28d9;
  --pub: #2f63ff;
  --pub-soft: #eaf0ff;
  --gen: #0d9488;
  --gen-soft: #e2f5f2;
  --r-xl: 20px;
  --sh-2: 0 24px 60px rgba(20, 28, 46, 0.2), 0 6px 16px rgba(20, 28, 46, 0.1);
  opacity: 1;
}
.cgm-gridReqView .cgm-gridReqView__overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 46, 0.42);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  z-index: 100350;
}
.cgm-gridReqView .cgm-gridReqView__overlay[hidden] {
  display: none !important;
}
.cgm-gridReqView .cgm-gridReqView__overlay.open {
  display: flex !important;
}
.cgm-gridReqView .modal {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cgm-gridReqView .m-body {
  padding: 20px 24px;
  overflow-x: hidden;
  overflow-y: auto;
}
.cgm-gridReqView .m-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
}
.cgm-gridReqView .m-foot .sp {
  flex: 1;
}
.cgm-gridReqView .btn-save.cgm-gridReqView__go {
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: none;
}
.cgm-gridReqView .btn-save.cgm-gridReqView__go:hover {
  background: #dce6ff;
}
.cgm-gridReqView .ref-card--static {
  cursor: default;
  border: none;
  background: transparent;
  padding: 0;
}
.cgm-gridReqView__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cgm-gridReqView__cmt {
  background: var(--canvas);
  border-radius: 12px;
  padding: 12px 14px;
}
.cgm-gridReqView__cmtHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cgm-gridReqView__cmtHead b {
  display: block;
  font-size: 13px;
}
.cgm-gridReqView__cmtHead span {
  font-size: 11.5px;
  color: var(--muted);
}
.cgm-gridReqView__cmtAv {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.cgm-gridReqView__cmt p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.cgm-gridReqView__cmtCount {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
body.cgm-post-open .cgm-gridReqView .cgm-gridReqView__overlay {
  z-index: 100400 !important;
}

/* Portal público de solicitudes: scroll con rueda del mouse (shell CGM ancla el body al viewport) */
html:has(body.cgm-shell .cgm-pubReq-shell),
body.cgm-shell:has(.cgm-pubReq-shell) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  position: static !important;
}
body.cgm-shell:has(.cgm-pubReq-shell) .cgm-shell__entry {
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
}
