/* ── Fase 3: tareas de una reunión y Pluma (del brief a la parrilla) ── */

/* Tareas de la reunión: dentro del resumen, con los tokens de la página. */
.cgm-mt-host { --mt-ink: var(--ink, var(--ft-ink, #1b2435)); --mt-muted: var(--muted, var(--ft-muted, #79829a)); --mt-line: var(--line, var(--ft-line, #e9ebf1)); --mt-accent: var(--accent, var(--ft-accent, #2f63ff)); --mt-ok: var(--ok, #16a06b); --mt-card: var(--card, var(--ft-card, #fff)); }
.cgm-mt__head { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.cgm-mt__head h3 { margin: 0 !important; }
.cgm-mt__all { margin-left: auto; border: 1px solid var(--mt-line); background: var(--mt-card); color: var(--mt-ink); font: inherit; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.cgm-mt__all:hover { border-color: var(--mt-accent); color: var(--mt-accent); }
.cgm-mt { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.cgm-mt__row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--mt-line); border-radius: 12px; background: var(--mt-card); margin: 0 !important; transition: opacity .2s; }
.cgm-mt__row::before, .cgm-mt__row::marker { content: none !important; }
.cgm-mt__row.is-busy { opacity: .55; pointer-events: none; }
.cgm-mt__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cgm-mt__main small { font-size: 12.5px; color: var(--mt-muted); line-height: 1.45; }
.cgm-mt__t { width: 100%; border: 1px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--mt-ink); padding: 3px 6px; margin-left: -6px; border-radius: 7px; }
.cgm-mt__t:hover { border-color: var(--mt-line); }
.cgm-mt__t:focus { outline: none; border-color: var(--mt-accent); background: var(--mt-card); }
.cgm-mt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cgm-mt__meta select, .cgm-mt__meta input { font: inherit; font-size: 12.5px; color: var(--mt-ink); border: 1px solid var(--mt-line); background: var(--mt-card); border-radius: 8px; padding: 4px 8px; height: 30px; max-width: 100%; }
.cgm-mt__meta em { font-style: normal; font-size: 12px; color: var(--mt-muted); }
.cgm-mt__acts { display: flex; align-items: center; gap: 4px; flex: none; }
.cgm-mt__go { border: 0; background: var(--mt-accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.cgm-mt__x { border: 0; background: none; color: var(--mt-muted); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 7px; }
.cgm-mt__x:hover { color: var(--coral-ink, #d8323f); }
.cgm-mt__row.is-done { align-items: center; background: transparent; }
.cgm-mt__row.is-done b { font-weight: 600; font-size: 14px; color: var(--mt-ink); }
.cgm-mt__ok { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ok-soft, #e6f6ee); color: var(--mt-ok); font-size: 13px; font-weight: 700; }
.cgm-mt__open, .cgm-mt__board { font-size: 13px; font-weight: 600; color: var(--mt-accent); text-decoration: none; }
.cgm-mt__board { display: inline-block; margin-top: 10px; }
.cgm-mt__row.is-off { align-items: center; background: transparent; }
.cgm-mt__row.is-off b { font-weight: 500; font-size: 13.5px; color: var(--mt-muted); text-decoration: line-through; }
.cgm-mt__link { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--mt-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cgm-mt__off { margin-top: 10px; }
.cgm-mt__off summary { cursor: pointer; font-size: 13px; color: var(--mt-muted); }
.cgm-mt__wait { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #79829a); margin: 12px 0 0 !important; }
.cgm-mt__wait svg { flex: none; animation: cgmMtThink 1.4s ease-in-out infinite; }
@keyframes cgmMtThink { 50% { transform: translateY(-2px) rotate(-6deg); } }
@media (max-width: 560px) {
  .cgm-mt__row { flex-wrap: wrap; }
  .cgm-mt__acts { width: 100%; justify-content: flex-end; }
}

/* Pluma: el diálogo, por encima de todo como Vigía. */
.cgm-pl {
  --pl-card: var(--ft-card, #fff); --pl-ink: var(--ft-ink, #1b2435); --pl-muted: var(--ft-muted, #79829a);
  --pl-line: var(--ft-line, #e9ebf1); --pl-canvas: var(--ft-canvas, #f5f6f9); --pl-accent: #C2508A; --pl-red: #c8462a;
  position: fixed; inset: 0; z-index: 100400; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: rgba(15, 18, 30, .45); font-family: inherit;
}
.cgm-pl[hidden] { display: none; }
.cgm-pl__box { width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--pl-card); color: var(--pl-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 64px -20px rgba(10, 14, 40, .45); animation: cgmPlIn .22s ease; }
@keyframes cgmPlIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.cgm-pl__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--pl-line); }
.cgm-pl__head svg { flex: none; }
.cgm-pl__head b { display: block; font-size: 16px; font-weight: 650; }
.cgm-pl__head span { display: block; font-size: 13px; color: var(--pl-muted); }
.cgm-pl__x { margin-left: auto; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--pl-muted); cursor: pointer; padding: 0 4px; }
.cgm-pl__body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cgm-pl__foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--pl-line); }
.cgm-pl__foot:empty { display: none; }
.cgm-pl__foot select { font: inherit; font-size: 13.5px; border: 1px solid var(--pl-line); border-radius: 10px; padding: 8px 10px; background: var(--pl-card); color: var(--pl-ink); }
.cgm-pl__btn, .cgm-pl__ghost { font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.cgm-pl__btn { border: 0; background: var(--pl-accent); color: #fff; }
.cgm-pl__btn[disabled] { opacity: .55; cursor: not-allowed; }
.cgm-pl__ghost { border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-ink); margin-right: auto; }
.cgm-pl__lbl { font-size: 13px; font-weight: 600; }
.cgm-pl__brief, .cgm-pl__piece textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.5; color: var(--pl-ink); background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.cgm-pl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cgm-pl__grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--pl-muted); }
.cgm-pl input[type="date"], .cgm-pl input[type="time"], .cgm-pl input[type="number"], .cgm-pl input[type="text"], .cgm-pl__piece select {
  font: inherit; font-size: 13.5px; color: var(--pl-ink); background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 9px; padding: 6px 9px; height: 34px; box-sizing: border-box; min-width: 0;
}
.cgm-pl__nets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; }
.cgm-pl__nets > span { font-size: 12.5px; color: var(--pl-muted); }
.cgm-pl__chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; }
.cgm-pl__err { margin: 0; font-size: 13.5px; color: var(--pl-red); }
.cgm-pl__sum { margin: 0; font-size: 14px; color: var(--pl-muted); line-height: 1.5; }
.cgm-pl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cgm-pl__piece { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--pl-line); border-radius: 14px; padding: 12px; transition: opacity .15s; }
.cgm-pl__piece.is-off { opacity: .5; }
.cgm-pl__pick { padding-top: 7px; }
.cgm-pl__pick input { width: 17px; height: 17px; accent-color: var(--pl-accent); }
.cgm-pl__pc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cgm-pl__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cgm-pl__pnets { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 4px; }
.cgm-pl__title { font-weight: 600 !important; }
.cgm-pl__art, .cgm-pl__why { margin: 0; font-size: 12.5px; color: var(--pl-muted); line-height: 1.45; }
.cgm-pl__art b { color: var(--pl-ink); font-weight: 600; }
.cgm-pl__wait { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 24px; text-align: center; }
.cgm-pl__wait p { margin: 0; max-width: 44ch; font-size: 14px; color: var(--pl-muted); line-height: 1.5; }
.cgm-pl__pen svg { animation: cgmPlWrite 1.2s ease-in-out infinite; }
@keyframes cgmPlWrite { 0%, 100% { transform: rotate(-5deg) translateX(-3px); } 50% { transform: rotate(5deg) translateX(3px); } }
.cgm-pl__okBig { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 160, 107, .14); color: #16a06b; font-size: 26px; font-weight: 700; }
.cgm-pl button:focus-visible, .cgm-pl input:focus-visible, .cgm-pl select:focus-visible, .cgm-pl textarea:focus-visible { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
@media (max-width: 560px) {
  .cgm-pl__grid { grid-template-columns: 1fr 1fr; }
  .cgm-pl__grid label:last-child { grid-column: 1 / -1; }
}
:root[data-theme="dark"] .cgm-pl { --pl-card: #161a24; --pl-ink: #e7e9ef; --pl-muted: #8b93a7; --pl-line: #262c3a; --pl-canvas: #0f1219; --pl-red: #ff7a5c; }
@media (prefers-reduced-motion: reduce) { .cgm-pl__box, .cgm-pl__pen svg, .cgm-mt__wait svg { animation: none; } }

/* El botón de Pluma en la ficha de la campaña. */
.cgm-camp__pluma { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ft-line, #e9ebf1); background: var(--ft-card, #fff); color: var(--ft-ink, #1b2435); font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 7px 12px 7px 8px; cursor: pointer; }
.cgm-camp__pluma:hover { border-color: #C2508A; color: #C2508A; }
.cgm-camp__pluma svg { flex: none; }

/* Pluma en el editor y en la parrilla. */
.cgm-pl__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cgm-pl__lbl small { font-weight: 400; color: var(--pl-muted); }
.cgm-pl__hows { display: flex; flex-wrap: wrap; gap: 8px; }
.cgm-pl__how { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pl-line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
.cgm-pl__how:has(input:checked) { border-color: var(--pl-accent); color: var(--pl-accent); background: rgba(194, 80, 138, .07); }
.cgm-pl__how input { accent-color: var(--pl-accent); margin: 0; }
.cgm-pl__vcopy { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--pl-canvas); border-radius: 12px; padding: 12px 14px; }
.cgm-pl__vacts { display: flex; justify-content: flex-end; gap: 8px; }
.cgm-pl__ghost--sm { margin-right: 0; padding: 7px 12px; font-size: 13px; }
.cgm-pl__tag { font-size: 12px; font-weight: 600; color: var(--pl-accent); background: rgba(194, 80, 138, .1); border-radius: 999px; padding: 4px 10px; }
.cgm-pl__idea.is-done { align-items: center; }
.cgm-pl__idea.is-done b { font-size: 14px; font-weight: 600; }
.cgm-pl__idea .cgm-mt__ok { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(22, 160, 107, .14); color: #16a06b; font-size: 13px; font-weight: 700; }
.cgm-pl__piece.is-off { pointer-events: none; }
.cgm-fpe-ai-btn--pluma { display: inline-flex; align-items: center; gap: 6px; }
.cgm-fpe-ai-btn--pluma svg { flex: none; }
.cgm-grid-header__pluma { display: inline-flex; align-items: center; gap: 7px; }
.cgm-grid-header__pluma svg { flex: none; }

/* Reportes: el informe del mes de Oráculo. */
.cgm-rp { --rp-card: var(--ft-card, #fff); --rp-ink: var(--ft-ink, #1b2435); --rp-muted: var(--ft-muted, #79829a); --rp-line: var(--ft-line, #e9ebf1); --rp-accent: #1F8FB0; display: flex; flex-direction: column; gap: 16px; }
.cgm-rp__make { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 16px; padding: 16px 18px; }
.cgm-rp__make svg { flex: none; }
.cgm-rp__makeTxt { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.cgm-rp__makeTxt b { font-size: 15.5px; font-weight: 650; color: var(--rp-ink); }
.cgm-rp__makeTxt span { font-size: 13px; color: var(--rp-muted); }
.cgm-rp__make select { font: inherit; font-size: 14px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 8px 10px; background: var(--rp-card); color: var(--rp-ink); }
.cgm-rp__btn { border: 0; background: var(--rp-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.cgm-rp__btn[disabled] { opacity: .7; cursor: wait; }
.cgm-rp.is-busy .cgm-rp__make svg { animation: cgmMtThink 1.4s ease-in-out infinite; }
.cgm-rp__err { margin: 0; color: #c8462a; font-size: 14px; }
.cgm-rp__list { display: flex; flex-direction: column; gap: 14px; }
.cgm-rp__item { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: 16px; padding: 18px 22px; color: var(--rp-ink); }
.cgm-rp__item header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cgm-rp__item h2 { margin: 0; font-size: 18px; font-weight: 650; }
.cgm-rp__acts { margin-left: auto; display: flex; gap: 6px; }
.cgm-rp__acts button { border: 1px solid var(--rp-line); background: var(--rp-card); color: var(--rp-ink); font: inherit; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.cgm-rp__body h3 { font-size: 15px; font-weight: 650; margin: 16px 0 6px; }
.cgm-rp__body p, .cgm-rp__body li { font-size: 14.5px; line-height: 1.6; margin: 0 0 6px; }
.cgm-rp__body ul { margin: 0 0 8px; padding-left: 20px; }
:root[data-theme="dark"] .cgm-rp { --rp-card: #161a24; --rp-ink: #e7e9ef; --rp-muted: #8b93a7; --rp-line: #262c3a; }
@media (max-width: 560px) { .cgm-rp__item { padding: 14px 16px; } .cgm-rp__item header { flex-wrap: wrap; } }
