/* =====================================================================
 * QuVi Pro Escritorio · Equipo — estilos (namespace eq-*)
 * Hereda los tokens ice-glass de :root (asesor-studio.css). Sin glow:
 * contraste por color y borde sólido. Inter, es-CL.
 * ===================================================================== */

.eq-canvas { overflow-y: auto; }
.eq-wrap { max-width: 920px; margin: 0 auto; padding: 28px 28px 64px; }

.eq-loading, .eq-empty { text-align: center; color: var(--mut); padding: 64px 16px; }
.eq-empty h2 { color: var(--ink); font-size: 20px; font-weight: 700; margin: 14px 0 6px; }
.eq-empty p { max-width: 460px; margin: 0 auto 18px; line-height: 1.5; }

.eq-head { margin-bottom: 22px; }
.eq-head h1 { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.eq-sub { color: var(--mut); font-size: 14px; margin: 4px 0 0; line-height: 1.45; }
.eq-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* Cards genéricas */
.eq-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; margin-bottom: 18px;
}
.eq-card h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.eq-card > p { color: var(--mut); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.eq-card-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: var(--brand-50); display: flex; align-items: center; justify-content: center;
}
.eq-card-ico::before {
  content: ''; width: 22px; height: 22px;
  background: var(--brand); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.eq-card-ico[data-ic="users"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.eq-card-ico[data-ic="key"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Cpath d='m15.5 7.5 3 3L22 7l-3-3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Cpath d='m15.5 7.5 3 3L22 7l-3-3'/%3E%3C/svg%3E"); }
.eq-card-ico[data-ic="clock"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }
.eq-card-ico[data-ic="clock"] { background: #fef3c7; }
.eq-card-ico[data-ic="clock"]::before { background: var(--warn); }

/* Elección crear / unirse */
.eq-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .eq-choice { grid-template-columns: 1fr; } }

.eq-label { display: block; font-size: 12px; font-weight: 600; color: var(--mut); margin: 12px 0 5px; }
.eq-opt { font-weight: 400; opacity: .7; }
.eq-input {
  width: 100%; box-sizing: border-box; appearance: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; padding: 11px 13px; border-radius: 10px; transition: border-color var(--t);
}
.eq-input:focus { outline: none; border-color: var(--brand); }
.eq-code-input { letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.eq-textarea { min-height: 92px; resize: vertical; margin-top: 10px; }
.eq-mt { margin-top: 14px; }
.eq-hint { font-size: 12px; color: var(--mut); margin: 28px 0 0; }
.eq-muted { color: var(--mut); font-size: 13px; }
.eq-err { color: var(--err); font-size: 13px; margin: 10px 0 0; }
.eq-foot { color: var(--mut); font-size: 12px; margin: 18px 0 0; line-height: 1.5; }

.eq-link-btn {
  appearance: none; background: none; border: none; color: var(--brand);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.eq-link-btn:hover { color: var(--brand-d); }
.eq-danger { color: var(--err); }
.eq-danger:hover { color: #b91c1c; }
.eq-busy { opacity: .6; pointer-events: none; }

/* Avatares */
.eq-avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-d);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.eq-avatar-team { width: 44px; height: 44px; flex-basis: 44px; font-size: 16px; }

/* Preview de unión */
.eq-preview { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; background: var(--bg); }
.eq-preview-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eq-preview-top strong { display: block; font-size: 15px; color: var(--ink); }
.eq-preview-meta { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.eq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--mut); line-height: 1.45; cursor: pointer; }
.eq-consent input { margin-top: 2px; flex: 0 0 auto; }
.eq-consent strong { color: var(--ink); }

/* Resumen del jefe */
.eq-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 760px) { .eq-overview { grid-template-columns: 1fr; } }
.eq-ovcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.eq-ovring { display: flex; align-items: center; gap: 18px; }
.eq-ring { flex: 0 0 120px; }
.eq-ring-num { font-size: 22px; font-weight: 800; fill: var(--ink); }
.eq-ring-sub { font-size: 9px; font-weight: 600; fill: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.eq-ovring-info { display: flex; flex-direction: column; gap: 2px; }
.eq-ovring-title { font-size: 12px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; }
.eq-ovring-info strong { font-size: 19px; color: var(--ink); font-weight: 800; }
.eq-ovstats { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.eq-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.eq-kpi strong { font-size: 22px; font-weight: 800; color: var(--ink); }
.eq-kpi span { font-size: 12px; color: var(--mut); margin-top: 1px; }

/* Salud del equipo — KPIs accionables con ícono + tono (sin glow) */
.eq-hkpi-row { display: flex; gap: 12px; margin-top: 14px; }
.eq-hkpi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.eq-hkpi.is-act { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.eq-hkpi.is-act:hover { border-color: #c7d3e2; background: #fbfcfe; }
.eq-hkpi-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.eq-hkpi-tx { display: flex; flex-direction: column; min-width: 0; }
.eq-hkpi-tx strong { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.eq-hkpi-tx span { font-size: 12px; color: var(--mut); margin-top: 4px; }
.eq-hkpi-ok .eq-hkpi-ico { background: #e7f6ee; color: #16a34a; }
.eq-hkpi-warn .eq-hkpi-ico { background: #fdf0db; color: #d97706; }
.eq-hkpi-info .eq-hkpi-ico { background: #e8f1fc; color: #2563eb; }
.eq-hkpi-idle .eq-hkpi-ico { background: var(--bg); color: var(--mut); }

/* Overview unificado: donut + meta a la izquierda, totales compactos a la derecha */
.eq-ov { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.eq-ov .eq-ovring { flex: 1 1 320px; }
.eq-ov-stats { display: flex; align-items: center; flex: 0 0 auto; }
.eq-stat { display: flex; flex-direction: column; padding: 4px 28px; border-left: 1px solid var(--line); }
.eq-stat strong { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.eq-stat span { font-size: 12px; color: var(--mut); margin-top: 3px; }
@media (max-width: 760px) {
  .eq-ov-stats { width: 100%; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .eq-stat:first-child { border-left: none; padding-left: 0; }
}
/* Pulso del equipo (actividad des-identificada) */
.eq-pulse-row { width: 100%; display: flex; flex-wrap: wrap; align-items: stretch; margin-top: 14px; }
.eq-pulse-row + .eq-pulse-row { margin-top: 10px; }
.eq-pulse-row .eq-stat { flex: 1 1 0; min-width: 120px; padding: 4px 24px; }
.eq-pulse-row .eq-stat:first-child { border-left: none; padding-left: 0; }
.eq-pulse-row .eq-stat strong { font-size: 20px; }
.eq-pulse-mems { margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.eq-pulse-mem { display: flex; align-items: center; gap: 10px; padding: 8px 0; width: 100%; background: transparent; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.eq-pulse-mem + .eq-pulse-mem { border-top: 1px solid var(--line); }
.eq-pulse-mem:hover .eq-pulse-mem-name { color: var(--brand, #0d99ff); }
.eq-pulse-mem-name { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1 1 auto; }
.eq-pulse-mem-nums { font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.eq-pulse-mem-nums b { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .eq-pulse-mem-nums { white-space: normal; text-align: right; }
}

/* Consentimiento de actividad (vista del asesor) */
.eq-consent-card-lead { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 16px; }
.eq-consent-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.eq-consent-status { font-size: 14px; font-weight: 600; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.eq-consent-status.is-on { color: #16a34a; }
.eq-consent-status.is-off { color: var(--mut); }
.eq-consent-row .as-auth-btn, .eq-consent-row .hx-btn-ghost { width: auto; flex: 0 0 auto; }
@media (max-width: 560px) {
  .eq-consent-row { gap: 10px; }
  .eq-consent-row .as-auth-btn, .eq-consent-row .hx-btn-ghost { width: 100%; }
}

.eq-detail-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.eq-detail-act { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.eq-detail-h { margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.eq-detail-act .eq-detail-kpis { margin-bottom: 0; }
.eq-detail-actline { margin: 12px 0 0; font-size: 13px; }
.eq-detail-actline b { font-weight: 700; }

.eq-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eq-card-head h2 { margin: 0; }
.eq-badge { background: var(--err-50); color: var(--err); font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 9px; margin-left: 6px; }

/* Leaderboard */
.eq-leaderboard { display: flex; flex-direction: column; gap: 2px; }
.eq-lb-row {
  appearance: none; background: none; border: none; cursor: pointer; width: 100%; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background var(--t);
}
.eq-lb-row:hover { background: var(--bg); }
.eq-rank { flex: 0 0 22px; text-align: center; font-size: 13px; font-weight: 700; color: var(--mut); }
.eq-rank-1 .eq-rank { color: #b8860b; } .eq-rank-1 .eq-avatar { background: #fff6da; color: #b8860b; }
.eq-rank-2 .eq-rank { color: #6b7280; } .eq-rank-3 .eq-rank { color: #a16207; }
.eq-lb-main { flex: 1 1 auto; min-width: 0; }
.eq-lb-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-lb-bar { display: block; height: 6px; background: var(--line); border-radius: var(--r-pill); margin-top: 5px; overflow: hidden; }
.eq-lb-fill { display: block; height: 100%; background: var(--brand); border-radius: var(--r-pill); }
.eq-lb-stat { flex: 0 0 auto; text-align: right; font-size: 13px; color: var(--ink); }
.eq-lb-stat strong { font-size: 15px; font-weight: 800; }
.eq-lb-sub { display: block; font-size: 11px; color: var(--mut); }

/* Pendientes */
.eq-pending-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.eq-pending-row:first-of-type { border-top: none; }
.eq-pending-name { flex: 1 1 auto; font-size: 14px; font-weight: 600; color: var(--ink); }
.eq-pending-actions { display: flex; align-items: center; gap: 12px; }

/* Banner demo */
.eq-demo-banner { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; font-size: 13px; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }

/* Overlay / modal */
.eq-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.eq-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; }
.eq-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.eq-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.eq-modal-x { appearance: none; background: none; border: none; font-size: 16px; color: var(--mut); cursor: pointer; line-height: 1; padding: 4px; }
.eq-modal-x:hover { color: var(--ink); }
.eq-modal-body { padding: 20px; overflow-y: auto; }

/* Tarjeta "Para actuar": botones en una sola fila + "Por qué" sin chevrón feo */
.eq-act-btns { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.eq-act-btns .nt-tool { border: 1px solid var(--line); }
.eq-act-btns .as-auth-btn.eq-act-primary { width: auto; flex: 1 1 auto; padding: 10px 16px; }
.eq-act-why { margin-top: 20px; }
.eq-act-why summary { cursor: pointer; font-weight: 500; font-size: 13px; color: var(--mut); list-style: none; display: inline-flex; align-items: center; gap: 5px; transition: color .15s ease; }
.eq-act-why summary:hover { color: var(--ink); }
.eq-act-why summary::-webkit-details-marker { display: none; }
.eq-act-why summary svg { transition: transform .15s ease; }
.eq-act-why[open] summary svg { transform: rotate(180deg); }
.eq-modal-sub { color: var(--mut); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; }

/* Código de invitación */
.eq-code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.eq-code-big { font-size: 24px; font-weight: 800; letter-spacing: .14em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Kudos */
.eq-kudos-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.eq-kudos-opt { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; transition: border-color var(--t); }
.eq-kudos-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.eq-kudos-opt input { margin-top: 3px; }
.eq-kudos-opt strong { display: block; font-size: 14px; color: var(--ink); }
.eq-kudos-opt em { font-style: normal; font-size: 12px; color: var(--mut); }

/* Drill */
.eq-detail-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.eq-member-card .eq-goal-line { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.eq-member-card .eq-goal-line span { color: var(--mut); font-size: 13px; }
.eq-member-card .eq-goal-line strong { color: var(--ink); font-size: 14px; }

/* ── v2: foto de equipo + resumen del miembro ─────────────────────── */
.eq-team-photo { object-fit: cover; display: block; border: 1px solid var(--line); }
.eq-avatar.eq-avatar-lg, .eq-team-photo.eq-avatar-lg { width: 60px; height: 60px; flex-basis: 60px; border-radius: 16px; font-size: 22px; }
.eq-avatar-team.eq-team-photo, .eq-team-photo.eq-avatar-team { border-radius: 14px; }

/* Header del jefe con foto */
.eq-lead-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eq-lead-head-info { flex: 1 1 auto; min-width: 0; }
.eq-lead-head-info h1 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.eq-lead-head-info .eq-sub { margin: 2px 0 4px; }
.eq-photo-btn { position: relative; appearance: none; border: none; background: none; padding: 0; cursor: pointer; border-radius: 16px; flex: 0 0 auto; }
.eq-photo-edit { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Hero del miembro */
.eq-member-hero { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.eq-member-hero-info { min-width: 0; }
.eq-member-hero-info h1 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.eq-member-hero-info .eq-sub { margin-top: 2px; }

/* Chip de posición (reconocimiento positivo) */
.eq-rank-chip { display: inline-block; background: #fff6da; color: #92660b; border: 1px solid #f4dd9a; border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.eq-goal-badge { display: inline-block; font-size: 10px; font-weight: 700; color: var(--brand-d); background: var(--brand-50); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 6px; text-transform: none; letter-spacing: 0; vertical-align: middle; }

/* Compañeros del equipo (vista del miembro) — solo nombres, sin números */
.eq-mates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.eq-mate { display: flex; align-items: center; gap: 8px; background: var(--surface-2, #f6f8fb); border: 1px solid var(--line, #e6ebf2); border-radius: var(--r-pill); padding: 5px 12px 5px 5px; }
.eq-mate-av, .eq-mate-photo { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.eq-mate-av { font-size: 11px; }
.eq-mate-photo { object-fit: cover; }
.eq-mate-name { font-size: 13px; font-weight: 600; color: var(--ink, #1f2937); }
.eq-mate-lead { font-size: 10px; font-weight: 700; color: var(--brand-d); background: var(--brand-50); border-radius: var(--r-pill); padding: 1px 7px; }

/* Fila de KPIs horizontal */
.eq-kpi-row { display: flex; gap: 12px; }
.eq-kpi-row .eq-kpi { flex: 1; }

.eq-leave-wide { margin-top: 18px; }

/* Toast (feedback de acciones: subir foto, guardar, etc.) */
.eq-toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; }
.eq-toast { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 16px; border-radius: 12px; max-width: 320px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.eq-toast.eq-toast-in { opacity: 1; transform: none; }

/* "Tu aporte" — un poco más de aire entre los KPIs y la nota de privacidad */
.eq-card h2 + .eq-kpi-row { margin-top: 4px; }

/* ── Cockpit del jefe ─────────────────────────────────────────────── */
/* Selector doble para ganar la cascada frente a .eq-wrap { max-width: 920px }.
   Padding lateral reducido: el riel + la paleta ya acotan el total. */
.eq-wrap.eq-wrap-wide { max-width: 980px; width: 100%; box-sizing: border-box; padding-left: 24px; padding-right: 24px; }
.eq-head-right { display: flex; align-items: center; gap: 12px; }
.eq-month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.eq-month-btn { appearance: none; border: none; background: none; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 18px; color: var(--ink); line-height: 1; }
.eq-month-btn:hover:not(:disabled) { background: var(--bg); }
.eq-month-btn:disabled { color: var(--line); cursor: default; }
.eq-month-label { font-size: 13px; font-weight: 700; color: var(--ink); min-width: 64px; text-align: center; text-transform: capitalize; }

/* Gráficos: tendencia + mix lado a lado */
.eq-chart-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 860px) { .eq-chart-row { grid-template-columns: 1fr; } }
.eq-chart-card { margin-bottom: 0; }
.eq-card-head .eq-muted { font-size: 12px; }
.eq-area { width: 100%; height: 160px; display: block; }
.eq-chart-xlabel { font-size: 10px; fill: var(--mut); text-transform: capitalize; }
.eq-chart-last { font-size: 12px; font-weight: 800; fill: var(--brand); }
.eq-chart-chip { font-size: 11px; font-weight: 800; fill: #fff; }

.eq-donut-wrap { display: flex; align-items: center; gap: 16px; }
.eq-donut { width: 120px; height: 120px; flex: 0 0 120px; }
.eq-donut-num { font-size: 19px; font-weight: 800; fill: var(--ink); }
.eq-donut-sub { font-size: 8.5px; font-weight: 600; fill: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.eq-legend { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.eq-legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.eq-legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.eq-legend-name { flex: 1 1 auto; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-legend-val { color: var(--mut); font-weight: 600; }
.eq-legend-btn { appearance: none; background: none; border: none; cursor: pointer; width: 100%; text-align: left; padding: 4px 6px; border-radius: 8px; transition: background var(--t); }
.eq-legend-btn:hover { background: var(--bg); }
.eq-legend-more { font-size: 12px; color: var(--mut); padding: 2px 6px; }
.eq-contrib-cap { font-size: 12.5px; color: var(--mut); line-height: 1.45; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* Ranking enriquecido */
.eq-att { display: block; font-size: 11px; font-weight: 700; margin-bottom: 1px; }
.eq-trend { font-size: 10px; }
.eq-trend.up { color: var(--win); }
.eq-trend.down { color: var(--err); }

/* Actividad reciente */
.eq-activity { display: flex; flex-direction: column; }
.eq-act-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.eq-act-row:first-child { border-top: none; }
.eq-act-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.eq-act-text { flex: 1 1 auto; font-size: 13.5px; color: var(--ink); }
.eq-act-date { font-size: 12px; color: var(--mut); white-space: nowrap; }

.eq-detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.eq-detail-actions .hx-btn-ghost { flex: 1; justify-content: center; }

/* Riel "Para actuar hoy" (insights) */
.eq-rail { padding: 18px 16px; }
.eq-rail-title { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.eq-rail-item { appearance: none; width: 100%; text-align: left; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background var(--t); }
.eq-rail-item:hover { background: var(--bg); }
.eq-avatar-sm { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.eq-rail-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.eq-rail-name { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-rail-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); margin-top: 2px; }
.eq-rail-tag.sev3 { background: var(--err-50); color: var(--err); }
.eq-rail-tag.sev2 { background: #fef3c7; color: #b45309; }
.eq-rail-tag.sev1 { background: var(--bg); color: var(--mut); }

/* Riel "Tu enfoque" (vista del miembro) */
.eq-rail-member .eq-focus-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); }
.eq-focus-ringwrap { display: flex; justify-content: center; }
.eq-focus-ringwrap .eq-ring { width: 116px; height: 116px; }
.eq-focus-meta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; margin-top: 10px; }
.eq-focus-label { font-size: 11px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.eq-focus-val { font-size: 17px; font-weight: 800; color: var(--ink); }
.eq-focus-bigwrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 0; }
.eq-focus-big { font-size: 38px; font-weight: 800; color: var(--brand-d, #0b6bcb); letter-spacing: -.02em; line-height: 1; }
.eq-focus-uf { font-size: 16px; font-weight: 700; color: var(--mut); }
.eq-focus-msg { font-size: 13px; line-height: 1.5; color: var(--ink); background: var(--brand-50, #eef6ff); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }
.eq-focus-contrib { margin-top: 14px; }
.eq-focus-contrib-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.eq-focus-contrib-top span { font-size: 12px; font-weight: 600; color: var(--mut); }
.eq-focus-contrib-top strong { font-size: 18px; font-weight: 800; color: var(--ink); }
.eq-focus-bar { height: 8px; border-radius: 999px; background: var(--bg, #eef2f7); overflow: hidden; }
.eq-focus-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-d)); }
.eq-focus-contrib .eq-muted { display: block; margin-top: 6px; font-size: 11px; }
