/* ── styles-etapas.css — modelo de etapas (config, rejilla, perfil, materiales) ── */

/* tono por tipo de etapa */
.t-cantidad { --tc: #0E7C5A; --tcbg: #E1F5EC; }
.t-texto    { --tc: #0F4C81; --tcbg: #E3EEF8; }
.t-pdf      { --tc: #B4490B; --tcbg: #FCEDE0; }
.t-imagen   { --tc: #6B40CF; --tcbg: #EEE8FB; }
.t-opciones { --tc: #0E8C9E; --tcbg: #DFF4F6; }

.dot-sep { color: var(--muted-2); margin: 0 1px; }

/* breadcrumb tipo explorador: niveles clicables */
.breadcrumbs { flex-wrap: wrap; }
.breadcrumbs a, .breadcrumbs .current { cursor: pointer; white-space: nowrap; }
.breadcrumbs .current { cursor: default; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── encabezado de cada sección ─────────────────────────────────── */
.cfg-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}

/* ── quién sube ─────────────────────────────────────────────────── */
.by-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
  padding: 1px 7px 1px 5px; border-radius: 999px;
  border: 1px solid transparent;
}
.by-badge.doctor { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.by-badge.exorta { background: #FEF3C7; color: #92560A; border-color: #FCE5A6; }
.by-badge svg { opacity: .9; }

/* ═══ Configuración › Etapas ═══════════════════════════════════════ */
.cfg-layout { display: grid; grid-template-columns: 196px 1fr; gap: 24px; align-items: start; }
.cfg-side {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px; box-shadow: var(--sh-1);
  position: sticky; top: 76px;
}
.cfg-side-title {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px 10px;
}
.cfg-side-item {
  appearance: none; border: 0; background: transparent; width: 100%;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-3); text-align: left;
}
.cfg-side-item:hover { background: var(--surface-2); color: var(--ink); }
.cfg-side-item.on { background: var(--primary-50); color: var(--primary); }
.cfg-side-item svg { color: currentColor; }

.cfg-content { min-width: 0; }

.cfg-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh-1);
}
.cfg-reorder { display: flex; flex-direction: column; gap: 2px; }
.mini-arrow {
  appearance: none; border: 0; background: transparent; color: var(--muted-2);
  width: 20px; height: 16px; display: grid; place-items: center; border-radius: 4px;
}
.mini-arrow:hover { background: var(--surface-2); color: var(--ink-2); }
.mini-arrow[disabled] { opacity: .3; pointer-events: none; }
.cfg-num {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}
.cfg-type-ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--tcbg, var(--surface-2)); color: var(--tc, var(--ink-3));
  display: grid; place-items: center;
}
.cfg-main { flex: 1; min-width: 0; }
.cfg-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.cfg-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 3px; font-size: 12.5px; color: var(--muted);
}
.cfg-lock { display: inline-flex; align-items: center; gap: 3px; color: var(--warn); font-weight: 500; white-space: nowrap; }

/* ── selector de tipo en el editor ──────────────────────────────── */
.type-pick { grid-template-columns: repeat(2, 1fr); }
.type-opt { align-items: flex-start; padding: 11px 12px; }
.type-opt-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--tcbg); color: var(--tc);
  display: grid; place-items: center;
}
.type-opt.on .type-opt-ic { box-shadow: 0 0 0 1.5px var(--tc) inset; }
.type-opt-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; text-align: left; }
.type-opt-txt b { font-size: 13px; color: var(--ink); }
.type-opt.on .type-opt-txt b { color: var(--primary); }
.type-opt-txt small { font-size: 11px; color: var(--muted); font-weight: 400; }

.by-seg button { display: inline-flex; align-items: center; gap: 6px; }

/* ═══ Vista general (rejilla tipo Excel) ═══════════════════════════ */
.grid-scroll {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
table.etbl { border-collapse: separate; border-spacing: 0; width: 100%; }
table.etbl th, table.etbl td {
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  padding: 0;
}
table.etbl th:last-child, table.etbl td:last-child { border-right: 0; }
table.etbl tbody tr:last-child td { border-bottom: 0; }

.etbl thead th {
  background: var(--surface-2); vertical-align: bottom;
  padding: 10px 14px; text-align: left;
}
.etbl .col-etapa { min-width: 168px; }
.etbl .eth { display: flex; align-items: center; gap: 7px; }
.eth-ic {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: var(--tcbg); color: var(--tc); display: grid; place-items: center;
}
.eth-name { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.eth-sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.eth-lock { color: var(--warn); display: inline-flex; }

/* columna fija de participante */
.sticky-col { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.etbl thead .sticky-col { z-index: 3; background: var(--surface-2); }
.etbl .col-part { min-width: 300px; box-shadow: 1px 0 0 var(--line); }
.part-cell {
  appearance: none; border: 0; background: transparent; width: 100%;
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; text-align: left;
}
.part-cell:hover { background: var(--primary-50); }
.part-av {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-100);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.part-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.part-name { font-weight: 600; color: var(--ink); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part-sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

.data-cell { padding: 11px 14px; font-size: 13px; color: var(--ink-2); vertical-align: middle; }
.data-cell:hover { background: var(--primary-50); cursor: default; }
.data-cell.is-locked { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, #fff 6px, #fff 12px); }
.data-cell.is-locked:hover { cursor: not-allowed; }

.cell-nd { font-weight: 700; font-size: 12px; color: var(--danger); letter-spacing: .03em; }
.cell-locked { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.cell-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.cell-text { color: var(--ink-2); }
.cell-file-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 7px; padding: 4px 9px; font-size: 12px; font-weight: 500; color: var(--primary);
}
.cell-file-btn:hover { background: var(--primary-50); border-color: var(--primary-100); }
.cell-file-btn .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

.col-prog { width: 120px; padding: 11px 14px; }
.prog-mini { display: flex; align-items: center; gap: 8px; }
.prog-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.prog-txt { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.grid-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12px; color: var(--ink-3);
}
.grid-legend span { display: inline-flex; align-items: center; gap: 5px; }
.grid-legend .lg-nd { font-style: normal; font-weight: 700; font-size: 10.5px; color: var(--danger); }

/* ═══ Editor de celda / carga ══════════════════════════════════════ */
.cell-editor-actor {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12.5px; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; margin-bottom: 16px;
}
.cell-editor-actor b { color: var(--ink); margin-left: 2px; }
.cell-editor-actor svg { color: var(--muted); }

.file-drop {
  border: 1.5px dashed var(--line); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 26px 20px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-align: center; transition: border-color .15s ease, background .15s ease;
}
.file-drop:hover { border-color: #CBD5E1; }
.file-drop.dragging { border-color: var(--primary); background: var(--primary-50); }
.file-drop.has-file { background: var(--surface); border-style: solid; justify-content: flex-start; }
.file-ic {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: var(--primary-50); color: var(--primary); display: grid; place-items: center;
}
.file-cta { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.file-cta b { font-size: 13.5px; color: var(--ink); }
.file-cta small { font-size: 12px; color: var(--muted); }
.file-drop-has { display: flex; align-items: center; gap: 13px; width: 100%; }
.file-thumb { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.file-info { min-width: 0; text-align: left; }
.file-name { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }

/* ═══ Perfil del participante ══════════════════════════════════════ */
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.view-seg button { display: inline-flex; align-items: center; gap: 6px; }

.portal-note {
  display: flex; align-items: center; gap: 8px;
  background: #EEF2F7; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 13px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--ink-3);
}
.portal-note svg { color: var(--muted); }
.profile.as-medico .profile-card { box-shadow: var(--sh-2); border-color: var(--primary-100); }

.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.profile-hero {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.profile-av {
  width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.profile-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-id h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.profile-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.profile-sub .dot-sep { margin: 0 4px; }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.profile-prog { text-align: center; flex-shrink: 0; padding-left: 18px; border-left: 1px solid var(--line-2); }
.profile-prog-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--primary); letter-spacing: -.01em; }
.profile-prog-num span { color: var(--muted-2); font-size: 18px; }
.profile-prog-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

.etapa-rows { display: flex; flex-direction: column; }
.etapa-row {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 24px; border-bottom: 1px solid var(--line-2);
}
.etapa-row:last-child { border-bottom: 0; }
.etapa-row.locked { background: var(--surface-2); }
.etapa-left { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.etapa-ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--tcbg); color: var(--tc); display: grid; place-items: center;
}
.etapa-row.filled .etapa-ic { background: var(--success-bg); color: var(--success); }
.etapa-row.locked .etapa-ic { background: var(--surface-2); color: var(--muted-2); box-shadow: 0 0 0 1px var(--line) inset; }
.etapa-l-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.etapa-l-name { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.etapa-l-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.etapa-right { flex: 0 0 auto; display: flex; justify-content: flex-end; min-width: 0; padding-left: 16px; }
.etapa-answer { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.etapa-answer .cell-text { font-size: 14px; color: var(--ink); font-weight: 500; }
.etapa-answer .cell-num { font-size: 15px; }
.etapa-edit { flex-shrink: 0; }

/* ═══ Materiales ═══════════════════════════════════════════════════ */
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh-1);
}
.mat-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.mat-ic.k-plantilla { background: var(--primary-50); color: var(--primary); }
.mat-ic.k-pdf { background: #FCEDE0; color: #B4490B; }
.mat-ic.k-link { background: #E1F5EC; color: #0E7C5A; }
.mat-main { flex: 1; min-width: 0; }
.mat-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.mat-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.tpl-list { display: flex; flex-direction: column; gap: 6px; }
.tpl-row {
  appearance: none; width: 100%; text-align: left;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 11px 13px;
}
.tpl-row:hover { border-color: var(--primary-100); background: var(--primary-50); }
.tpl-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.tpl-name { flex: 1; font-weight: 500; color: var(--ink); font-size: 13.5px; }
.tpl-add { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 500; color: var(--primary); }

/* ── Lanzador de carta de invitación ────────────────────────────── */
.carta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(180deg, var(--primary-50), var(--surface));
  border: 1px solid var(--primary-100);
  border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 16px;
}
.carta-card-info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.carta-card-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary); color: #fff; display: grid; place-items: center;
}
.carta-card-title { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.carta-card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.carta-card-btns { display: flex; gap: 8px; flex-shrink: 0; }
.carta-card-btns .btn { white-space: nowrap; }
.ori-ic {
  display: inline-block; border: 1.5px solid currentColor; border-radius: 2px;
  opacity: .7; flex-shrink: 0;
}
.ori-ic.vert { width: 10px; height: 13px; }
.ori-ic.horiz { width: 13px; height: 10px; }

/* ── Login / sesión ─────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 18px; background: linear-gradient(180deg, var(--primary-50), var(--bg));
}
.login-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  padding: 26px 26px 24px;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.login-seg { width: 100%; margin-bottom: 16px; }
.login-seg button { flex: 1; }
.login-err { background: var(--danger-bg); color: var(--danger); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px; }
.login-go { width: 100%; justify-content: center; }
.login-hint { font-size: 11.5px; text-align: center; margin-top: 12px; line-height: 1.5; }
.login-foot { font-size: 11.5px; text-align: center; max-width: 420px; }
.proj-pick { display: flex; flex-direction: column; gap: 6px; max-height: 168px; overflow-y: auto; }
.proj-opt {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; text-align: left;
}
.proj-opt:hover { border-color: #CBD5E1; }
.proj-opt.on { border-color: var(--primary); background: var(--primary-50); }
.proj-check {
  width: 17px; height: 17px; border-radius: 5px; flex-shrink: 0; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: #fff; background: var(--surface);
}
.proj-opt.on .proj-check { background: var(--primary); border-color: var(--primary); }
.proj-name { flex: 1; font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.appbar {
  position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 32px; height: 56px;
}
.appbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--ink); }
.appbar-user { display: flex; align-items: center; gap: 10px; position: relative; }
.role-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.role-pill.admin { background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-100); }
.role-pill.operador { background: #FEF3C7; color: #92560A; border: 1px solid #FCE5A6; }
.appbar-av {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.appbar-menu {
  position: absolute; top: 44px; right: 0; z-index: 61; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-3); padding: 6px;
}
.appbar-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }

/* ── Verificación del portal (magic link simulado) ──────────────── */
.verify-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #EEF2F7; }
.verify-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 30px 28px; text-align: center; }
.verify-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; }
.verify-card h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.verify-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }

@media (max-width: 920px) {
  .cfg-layout { grid-template-columns: 1fr; }
  .cfg-side { position: static; display: flex; gap: 6px; }
  .etapa-left { width: auto; }
}

/* ── Stat grid 3 columnas ───────────────────────────────────────── */
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Fila de participante: identidad + kebab ────────────────────── */
.part-row { display: flex; align-items: center; }
.part-row .part-cell { flex: 1; min-width: 0; }
.part-kebab {
  appearance: none; border: 0; background: transparent; color: var(--muted-2);
  width: 30px; height: 34px; display: grid; place-items: center; border-radius: 7px;
  flex-shrink: 0; margin-right: 6px;
}
.part-kebab:hover { background: var(--surface-2); color: var(--ink-2); }
.part-tipo { color: var(--ink-3); font-weight: 600; }

/* tono del avatar según categoría */
.part-av.tp-Distribuidor { background: #FCEDE0; color: #B4490B; border-color: #F6D9C2; }
.part-av.tp-Interno { background: #E1F5EC; color: #0E7C5A; border-color: #C5ECD9; }

/* fila desmarcada del evento */
.row-unmarked { opacity: .55; }
.row-unmarked .part-cell { filter: grayscale(.4); }
.row-unmarked .sticky-col { background: var(--surface-2); }
.row-unmarked .data-cell { background: var(--surface-2); }

/* ── Menú de acciones de fila (fijo) ─────────────────────────────── */
.menu-scrim { position: fixed; inset: 0; z-index: 60; }
.row-menu {
  position: fixed; z-index: 61; transform: translateX(-100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--sh-3); padding: 5px; min-width: 188px;
}
.row-menu-item {
  appearance: none; border: 0; background: transparent; width: 100%; text-align: left;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.row-menu-item:hover { background: var(--surface-2); }
.row-menu-item.danger { color: var(--danger); }
.row-menu-item.danger:hover { background: var(--danger-bg); }
.row-menu-item svg { color: currentColor; opacity: .85; }

/* ── Selector de categoría (alta de participante) ───────────────── */
.cat-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-opt {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.cat-opt:hover { border-color: #CBD5E1; }
.cat-opt.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Acciones pendientes editables ──────────────────────────────── */
.todo-edit { display: flex; align-items: center; gap: 6px; }
.todo-check {
  appearance: none; border: 0; background: transparent; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px; padding: 5px 0; text-align: left;
}
.todo-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: #fff;
}
.todo-check:hover .todo-box { border-color: var(--primary); }
.todo-box.on { background: var(--success); border-color: var(--success); }
.todo-label { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2); }
.todo-label.done { color: var(--muted); text-decoration: line-through; }
.todo-del {
  appearance: none; border: 0; background: transparent; color: var(--muted-2);
  width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  flex-shrink: 0; opacity: 0; transition: opacity .12s ease;
}
.todo-edit:hover .todo-del { opacity: 1; }
.todo-del:hover { background: var(--danger-bg); color: var(--danger); }
.todo-add { display: flex; gap: 8px; margin-top: 8px; }
.todo-add .input { flex: 1; }
.todo-add .btn { flex-shrink: 0; padding-left: 10px; padding-right: 10px; }
