/* Área privada de investigación: usa la base visual de la plataforma MECYFE (app.css)
   y agrega la mesa de escritura del manuscrito y el armador de encargos para Claude. */
.lf-h { font-family: var(--f-display); font-weight: 500; font-size: 30px; margin: 0 0 4px; }
.solo-movil { display: none !important; }
@media (max-width: 900px) { .solo-movil { display: flex !important; } }

.p-tit { color: var(--ink); font-weight: 600; text-decoration: none; }
.p-tit:hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.vence { color: var(--crit); font-weight: 600; }
table.t td.ref { min-width: 280px; max-width: 640px; line-height: 1.45; }
table.t td.ref a { overflow-wrap: anywhere; }
.barra { padding-top: 12px; }

/* Manuscrito */
.ms-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; }
.avance { display: flex; flex-direction: column; gap: 6px; min-width: min(420px, 100%); flex: 1; font-size: 14px; }
.avance .bar { max-width: 520px; }
.bar.over i { background: var(--crit); }
.ms { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.ms-list { position: sticky; top: 16px; }
.secl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: s; }
.secl a {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 8px; border-radius: 7px;
  color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35;
}
.secl a::before { counter-increment: s; content: counter(s); font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); width: 16px; flex-shrink: 0; }
.secl a:hover { background: var(--sunken); }
.secl a[aria-current="true"] { background: var(--teal-soft); box-shadow: inset 2px 0 0 var(--teal); }
.secl .t { flex: 1; min-width: 0; }
.secl .w { font-size: 12px; color: var(--muted); }
.secl .w.cero { opacity: .6; }
.ms-titulo { font-family: var(--f-display); font-size: 22px !important; font-weight: 500 !important; flex: 1; min-width: 0; border-color: transparent !important; background: transparent !important; padding-left: 4px !important; }
.ms-titulo:hover, .ms-titulo:focus { border-color: var(--rule) !important; background: var(--surface) !important; }
textarea.ms-texto {
  min-height: 58vh; font-size: 16px; line-height: 1.75; padding: 16px 18px;
  background: var(--paper); max-width: 100%;
}
@media (max-width: 980px) {
  .ms { grid-template-columns: minmax(0, 1fr); }
  .ms-list { position: static; }
  textarea.ms-texto { min-height: 50vh; }
}
.vers { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.vers h3 { font-size: 14px; margin: 0 0 8px; }
.vers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vers li { display: flex; align-items: center; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.vers li .btn { margin-left: auto; }

/* Trabajar con Claude */
.tareas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tarea {
  position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 9px; padding: 11px 12px 11px 36px; background: var(--surface);
}
.tarea:hover { border-color: var(--teal); }
.tarea input { position: absolute; left: 12px; top: 13px; margin: 0; accent-color: var(--teal-ink); }
.tarea b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tarea span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tarea.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
textarea.c-texto { font-size: 12.5px; line-height: 1.55; background: var(--sunken); min-height: 320px; }
@media (max-width: 1100px) { .grid2e { grid-template-columns: minmax(0, 1fr); } }
table.t td.nw { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar > div:first-child { flex-basis: 100%; }
  .topbar h1 { font-size: 21px; }
}
