  /* Renovaciones: tablero tipo Trello, ficha del RENO y panel de acierto. Usa los colores de estilo.css */
  .vista[hidden] { display: none; }
  .filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
  .filtros input, .filtros select, .campo input, .campo select, .campo textarea, .charla textarea, .entrega input {
    font: 14px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; min-width: 0; }
  .filtros input { flex: 1 1 220px; }
  .filtros select { flex: 0 1 200px; }
  .btn.primario { background: var(--win); color: #06140d; border-color: transparent; font-weight: 600; }
  .btn.primario:hover { color: #06140d; filter: brightness(1.08); }
  .btn.peligro { color: var(--lose); }
  .btn.grande { font-size: 15px; padding: 11px 16px; border-radius: 11px; }
  .btn[disabled] { opacity: .5; cursor: wait; }

  /* pasos (filtro por estado) */
  .pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-bottom: 18px; }
  .paso-chip { --c: var(--muted); display: grid; gap: 2px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
               padding: 10px 12px; cursor: pointer; color: var(--ink); font: inherit; border-top: 3px solid var(--c); }
  .paso-chip span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .paso-chip b { font: 600 22px var(--mono); letter-spacing: -.03em; }
  .paso-chip:hover { border-color: var(--line2); border-top-color: var(--c); }
  .paso-chip[aria-pressed=true] { background: var(--card2); box-shadow: 0 0 0 1px var(--c) inset; }
  .p-idea { --c: var(--dim); } .p-hacer { --c: oklch(74% .14 250); } .p-edicion { --c: oklch(72% .16 300); } .p-revisar { --c: var(--even); }
  .p-listo { --c: oklch(80% .12 190); } .p-medir { --c: var(--muted); } .p-winner { --c: var(--win); } .p-loser { --c: var(--lose); }

  /* días */
  .dia { margin-bottom: 22px; }
  .dia-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 2px 8px; }
  .dia-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
  .filas { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
  .f-cab, .fila { display: grid; grid-template-columns: 84px 44px minmax(0, 1fr) 150px 130px; gap: 12px; align-items: center; padding: 9px 14px; }
  .con-plata .f-cab, .con-plata .fila { grid-template-columns: 84px 44px minmax(0, 1fr) 140px 110px 150px 160px; }
  .f-cab { font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); padding-block: 7px; }
  .fila { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .fila:last-child { border-bottom: 0; }
  .f-mover { font: 13px var(--sans); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 100%; min-width: 0; cursor: pointer; }
  .f-mover:hover { border-color: var(--line2); }
  .fila:hover { background: var(--card2); }
  .f-num { font: 600 13px var(--mono); }
  .f-num small { display: block; font: 500 11px var(--mono); color: var(--dim); }
  .f-th { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--card2); display: grid; place-items: center; font-size: 18px; }
  .f-main { min-width: 0; display: grid; gap: 2px; }
  .f-nm { font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f-tags { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .f-est { --c: var(--muted); justify-self: start; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
           color: var(--c); background: color-mix(in oklch, var(--c) 14%, transparent); }
  .f-quien { display: flex; align-items: center; gap: 7px; font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .f-plata { font: 500 12px var(--mono); text-align: right; display: grid; }
  .f-plata small { font-size: 11px; color: var(--muted); white-space: nowrap; }
  .vacio { text-align: center; color: var(--muted); padding: 48px 16px; background: var(--card); border: 1px dashed var(--line2); border-radius: var(--r); }
  .mas { display: block; margin: 0 auto; font: 500 13px var(--sans); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer; }
  @media (max-width: 760px) {
    .f-cab { display: none; }
    .fila, .con-plata .fila { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "th main num" "th est quien" "th plata plata" "th mover mover"; row-gap: 6px; }
    .fila .f-th { grid-area: th; align-self: start; } .fila .f-main { grid-area: main; } .fila .f-num { grid-area: num; text-align: right; }
    .fila .f-est { grid-area: est; } .fila .f-quien { grid-area: quien; justify-content: end; } .fila .f-plata { grid-area: plata; text-align: left; display: flex; gap: 8px; }
    .fila .f-plata:empty { display: none; } .fila .f-mover { grid-area: mover; }
    .f-nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  }
  .tag { display: inline-block; font: 500 11px var(--sans); padding: 2px 7px; border-radius: 6px; background: var(--card2); color: var(--muted); max-width: 100%;
         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tag.win { background: var(--win-bg); color: var(--win); } .tag.lose { background: var(--lose-bg); color: var(--lose); } .tag.even { background: var(--even-bg); color: var(--even); }
  .avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px var(--sans); background: var(--even-bg); color: var(--even); flex: none; }
  .acceso { margin-bottom: 14px; display: grid; gap: 10px; }
  .acceso .note { margin: 0; }

  /* ficha */
  dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: 16px; padding: 0; width: min(920px, calc(100vw - 24px));
           max-height: calc(100dvh - 24px); }
  dialog::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(3px); }
  @media (max-width: 640px) { dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; } }
  .ficha-in { padding: 20px; display: grid; gap: 16px; }
  .ficha-head { display: flex; gap: 12px; align-items: start; justify-content: space-between; position: sticky; top: -20px; background: var(--card); padding: 20px 0 10px; margin-top: -20px; z-index: 2; border-bottom: 1px solid var(--line); }
  .ficha-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
  .ficha-head .rn { font: 600 13px var(--mono); color: var(--muted); display: block; margin-bottom: 4px; }
  .acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .paso { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
  .paso h4 { margin: 0; font-size: 14px; font-weight: 600; }
  .paso .note { margin: 0; font-size: 12px; color: var(--dim); }
  .siguiente { border-color: oklch(76.5% .177 163.2 / .45); background: var(--win-bg); }
  .datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
  .datos div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
  .datos span { display: block; font-size: 11px; color: var(--muted); }
  .datos strong { font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
  .datos strong.num { font: 500 16px var(--mono); }
  .texto { white-space: pre-wrap; font-size: 13px; line-height: 1.55; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
           max-height: 420px; overflow: auto; overflow-wrap: anywhere; }
  .embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
  .embed.vert { aspect-ratio: 9 / 16; max-height: 70vh; width: auto; max-width: 100%; }
  .linkbtn { display: inline-flex; align-items: center; gap: 6px; }
  .charla { display: grid; gap: 8px; }
  .msg { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .msg b { font-weight: 600; } .msg small { color: var(--dim); font-family: var(--mono); margin-left: 6px; }
  .charla textarea { width: 100%; min-height: 64px; resize: vertical; }
  .entrega { display: flex; gap: 8px; flex-wrap: wrap; } .entrega input { flex: 1 1 260px; }
  .hist { font-size: 12px; color: var(--dim); display: grid; gap: 3px; font-family: var(--mono); }
  details > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
  .familia { display: flex; flex-wrap: wrap; gap: 6px; }
  .familia button { font: 500 12px var(--mono); background: var(--card2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 8px; cursor: pointer; }

  /* formulario */
  .grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
  .campo { display: grid; gap: 5px; min-width: 0; }
  .campo label { font-size: 12px; color: var(--muted); }
  .campo textarea { min-height: 90px; resize: vertical; font-size: 13px; }
  .campo textarea.alto { min-height: 260px; font-family: var(--mono); font-size: 12px; }
  .campo.ancho { grid-column: 1 / -1; }
  .campo .otro { font-size: 11px; color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left; padding: 0; text-decoration: underline; }

  /* acierto */
  .acierto { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-bottom: 14px; }
  @media (max-width: 860px) { .acierto { grid-template-columns: 1fr; } }
  .barra-h { height: 6px; border-radius: 6px; background: var(--card2); overflow: hidden; min-width: 60px; }
  .barra-h i { display: block; height: 100%; background: var(--win); border-radius: 6px; }
  .grupos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); margin-bottom: 14px; }
  td.izq { text-align: left; font-family: var(--sans); white-space: normal; }
  .insight { font-size: 13px; color: var(--ink); background: var(--win-bg); border: 1px solid oklch(76.5% .177 163.2 / .3); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .clave { font: 600 18px var(--mono); background: var(--bg2); border: 1px dashed var(--win); color: var(--win); border-radius: 10px; padding: 10px 12px; letter-spacing: .02em; }

  /* enganchar anuncios con otro nombre */
  .eng-lista { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
  .eng-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
  .eng-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
  .eng-tx { min-width: 0; display: grid; } .eng-tx b { font-weight: 500; font-size: 13px; }
  .eng-tx small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #enganchar[open] { gap: 10px; } #enganchar h4 { margin: 4px 0 0; font-size: 13px; }
