/* [Pulso-Supabase] Paneles (Métricas, Análisis y demás): ajustes visuales sobre estilos.css. */

/* ── Panel: más ancho en escritorio para los paneles de datos, bordes y fondo ── */
.cf-panel {
  border-radius: 24px 24px 0 0; border: 1px solid var(--border); border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, #a855f7 5%, var(--surface)) 0, var(--surface) 280px);
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
@media (min-width: 1100px) {
  .cf-panel[data-tipo="metricas"], .cf-panel[data-tipo="analisis"], .cf-panel[data-tipo="logistica"],
  .cf-panel[data-tipo="cuentas"], .cf-panel[data-tipo="equipo"], .cf-panel[data-tipo="vivo"] { max-width: 1120px; padding-left: 28px; padding-right: 28px; }
}
.cf-panel .cf-p-nombre { font-size: 22px; letter-spacing: -.3px; }
.cf-panel [data-acc="cerrar"] {
  width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--border) !important; font-size: 18px !important; background: var(--surface);
}

/* ── Selector de fechas fijo arriba al desplazarse ── */
.cf-panel[data-tipo="analisis"] .cf-ana-rango,
.cf-panel[data-tipo="metricas"] .cf-met-bar {
  position: sticky; top: -8px; z-index: 5; margin-left: -16px; margin-right: -16px; padding: 10px 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
@media (min-width: 1100px) {
  .cf-panel[data-tipo="analisis"] .cf-ana-rango, .cf-panel[data-tipo="metricas"] .cf-met-bar { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
}
/* en el celular la barra de métricas es alta (fechas + bot): solo los rangos quedan fijos */
@media (max-width: 700px) {
  .cf-panel[data-tipo="metricas"] .cf-met-bar { position: static; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cf-panel .cf-met-bar .cf-chips, .cf-panel .cf-ana-rango .cf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .cf-panel .cf-met-bar .cf-chips::-webkit-scrollbar, .cf-panel .cf-ana-rango .cf-chips::-webkit-scrollbar { display: none; }
}

/* ── Chips: el activo con el degradado de Pulso (en toda la app) ── */
.cf-chip { transition: background .2s ease, border-color .2s ease, transform .12s ease; }
.cf-chip:active { transform: scale(.96); }
.cf-chip-on { background: var(--marca, linear-gradient(135deg, #f43f5e, #a855f7)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(168, 85, 247, .8); }
.cf-chip-on b { color: #fff; }
.cf-chip-cart.cf-chip-on { background: var(--amber); box-shadow: none; }

/* ── Títulos de sección con línea guía ── */
.cf-panel .cf-h3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; letter-spacing: -.1px; margin: 26px 0 8px;
}
.cf-panel .cf-h3::after { content: ''; flex: 1 1 40px; height: 1px; min-width: 40px; background: linear-gradient(90deg, var(--border-2), transparent); }
.cf-panel .cf-h3 > span, .cf-panel .cf-h3 small { font-size: 12.5px; font-weight: 600; color: var(--t2); }

/* ── Tablas: tarjeta redondeada, encabezado tintado, filas con hover ── */
.cf-panel .cf-tabla {
  border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface); margin-top: 10px;
}
.cf-panel .cf-tabla thead th {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--t2); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px; padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.cf-panel .cf-tabla td { padding: 10px 8px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.cf-panel .cf-tabla tbody tr:last-child td { border-bottom: 0; }
.cf-panel .cf-tabla tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--t2) 4%, transparent); }
.cf-panel .cf-tabla tbody tr { transition: background .15s ease; }
.cf-panel .cf-tabla tbody tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
@media (max-width: 700px) { .cf-panel .cf-tabla { font-size: 12.5px; display: block; width: max-content; max-width: 100%; overflow-x: auto; } .cf-panel .cf-tabla th, .cf-panel .cf-tabla td { padding: 8px 5px; } }

/* ── Tarjetas de resumen dentro de los paneles ── */
.cf-panel .cf-hero, .cf-panel .cf-met-gr, .cf-panel .cf-cta-box, .cf-panel .cf-fact-tile { border-radius: 18px; }
.cf-panel .cf-met-tool { border-radius: 16px; transition: transform .15s ease, box-shadow .2s ease; }
.cf-panel .cf-met-tool:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6); }
.cf-panel .cf-aviso { border-radius: 14px; }

/* números grandes con cifras parejas */
.cf-panel .cf-hero-num, .cf-panel .cf-hero-money, .cf-panel .cf-kpi-num { font-variant-numeric: tabular-nums; letter-spacing: -.5px; }

/* ── Encabezado de Métricas en el celular: ✕ en la esquina y el resto de botones en una fila ── */
.cf-met-tx-val { font-weight: 700; fill: var(--t1); }
@media (max-width: 700px) {
  .cf-panel[data-tipo="metricas"] .cf-p-head { position: relative; flex-direction: column; gap: 10px; }
  .cf-panel[data-tipo="metricas"] .cf-p-head > div:first-child { padding-right: 50px; }
  .cf-panel[data-tipo="metricas"] .cf-met-head-btns { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .cf-panel[data-tipo="metricas"] .cf-met-head-btns .cf-btn { min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 12px; }
  .cf-panel[data-tipo="metricas"] .cf-met-head-btns .cf-met-auto { flex: 1; justify-content: center; }
  .cf-panel[data-tipo="metricas"] .cf-met-head-btns [data-acc="cerrar"] { position: absolute; top: 0; right: 0; }
}

/* ── Botones principales: degradado de Pulso con buen contraste (en toda la app) ── */
.cf-btn-primary:not(.cf-lg-subir) {
  background: var(--marca, linear-gradient(135deg, #f43f5e, #a855f7)); border-color: transparent; color: #fff; font-weight: 800;
  box-shadow: 0 10px 22px -14px rgba(168, 85, 247, .95);
}
.cf-btn-primary:not(.cf-lg-subir):hover { filter: brightness(1.06); }
.cf-btn-primary:disabled { filter: grayscale(.4); opacity: .7; }

/* ── Logística: tarjetas de plataforma con el botón abajo ── */
.cf-lg-plats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.cf-lg-plat {
  grid-template-columns: 52px minmax(0, 1fr); row-gap: 10px; padding: 12px; border-radius: 16px; border-left-width: 1px;
  border-color: color-mix(in srgb, var(--pc) 40%, var(--border));
  background: linear-gradient(145deg, color-mix(in srgb, var(--pc) 14%, var(--surface)), var(--surface) 70%);
  position: relative; overflow: hidden;
}
.cf-lg-plat::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--pc); }
.cf-lg-logo { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 18%, var(--bg)); }
.cf-lg-logo img { max-width: 44px; max-height: 40px; }
.cf-lg-plat-txt b { font-size: 16px; }
.cf-lg-plat-txt .cf-sub { font-size: 12px; line-height: 1.3; }
.cf-lg-subir { grid-column: 1 / -1; width: 100%; justify-content: center; min-height: 40px; border-radius: 12px !important; font-weight: 800; }
.cf-lg-pronto { opacity: .6; border-style: dashed; }
.cf-lg-pronto .cf-lg-plat-txt .cf-sub::before { content: '⏳ '; }

/* ── Logística: filas por plataforma, asesor, producto y ciudad ── */
.cf-lg-lista { gap: 10px; }
.cf-lg-fila {
  padding: 12px 14px; border-radius: 16px; gap: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t2) 4%, var(--surface)), var(--surface));
  transition: transform .15s ease, border-color .2s ease;
}
.cf-lg-fila:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.cf-lg-fila-top { align-items: center; }
.cf-lg-fila-top b:first-child { font-size: 15px; }
.cf-lg-fila-top b:last-child {
  flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; font-size: 13px;
  background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.cf-lg-bar { height: 10px; background: color-mix(in srgb, var(--t2) 16%, transparent); gap: 2px; }
.cf-lg-bar > * { border-radius: 99px; }
.cf-lg-chips span { padding: 4px 11px; font-weight: 700; }

/* ── Cuentas: tarjetas de saldo y retiros pendientes ── */
.cf-cta-card {
  border-radius: 18px; padding: 14px 16px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 16%, var(--surface)), var(--surface) 75%) !important;
  border: 1px solid color-mix(in srgb, var(--cc) 40%, var(--border)) !important;
  box-shadow: 0 14px 30px -24px var(--cc);
}
.cf-cta-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--cc) 28%, transparent), transparent 70%); pointer-events: none; }
.cf-cta-saldo { letter-spacing: -.5px; }
.cf-cta-pend { border-radius: 18px; padding: 14px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--amber) 9%, var(--surface)), var(--surface)); }
.cf-cta-pend-tot { font-weight: 900; font-size: 20px; }
.cf-cta-pend-row { border-radius: 14px; padding: 10px 12px; transition: border-color .2s ease; }
.cf-cta-pend-row:hover { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); }
.cf-btn[data-cta-recibido] { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 22px -14px rgba(34, 197, 94, .95); min-height: 42px; border-radius: 12px; }
.cf-panel[data-tipo="cuentas"] .cf-cta-box { border-radius: 18px; }
@media (max-width: 700px) {
  .cf-cta-pend-row { flex-wrap: wrap; }
  .cf-cta-pend-row .cf-btn[data-cta-recibido] { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 700px) {
  .cf-lg-plats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cf-lg-plat { grid-template-columns: 40px minmax(0, 1fr); padding: 10px; column-gap: 8px; }
  .cf-lg-logo { width: 40px; height: 40px; border-radius: 11px; }
  .cf-lg-logo img { max-width: 34px; max-height: 30px; }
  .cf-lg-logo span { font-size: 18px; }
  .cf-lg-plat-txt b { font-size: 14.5px; }
  .cf-lg-plat-txt .cf-sub { font-size: 11px; }
  .cf-lg-subir { min-height: 36px; font-size: 13px; }
}

/* Cuenta seleccionada: inconfundible (borde grueso, brillo, ✓) y las demás atenuadas */
.cf-cta-card.cf-cta-sel {
  border: 2px solid var(--cc) !important; transform: translateY(-2px);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 28%, transparent), 0 18px 36px -18px var(--cc);
}
.cf-cta-card.cf-cta-sel::before {
  content: '✓'; position: absolute; top: 9px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #fff; background: var(--cc);
  box-shadow: 0 4px 12px -4px var(--cc);
}
.cf-cta-grid:has(.cf-cta-sel) .cf-cta-card:not(.cf-cta-sel):not(.cf-cta-add) { opacity: .62; filter: saturate(.75); }
.cf-cta-grid:has(.cf-cta-sel) .cf-cta-card:not(.cf-cta-sel):not(.cf-cta-add):hover { opacity: .9; }
.cf-cta-card.cf-cta-add { border: 1.5px dashed var(--border-2) !important; background: transparent !important; box-shadow: none; }
.cf-cta-card.cf-cta-add::after { display: none; }

/* ── Equipo: podio, avatares, barra de % y tarjetas en el celular ── */
.cf-equipo td { vertical-align: middle; }
.cf-equipo .cf-eq-nombre { text-align: left !important; font-weight: 800; white-space: nowrap; }
.cf-av-mini { width: 30px; height: 30px; font-size: 11px; margin-right: 10px; vertical-align: middle; background: var(--marca, var(--accent)); }
.cf-equipo .cf-eq-pos { font-size: 18px; width: 44px; }
.cf-equipo .cf-eq-pct { min-width: 90px; }
.cf-eq-pct-txt { font-weight: 800; }
.cf-eq-bar { display: block; height: 6px; margin: 5px auto 0; max-width: 90px; border-radius: 99px; background: color-mix(in srgb, var(--t2) 18%, transparent); overflow: hidden; }
.cf-eq-bar i { display: block; height: 100%; border-radius: 99px; }
.cf-panel .cf-equipo tbody tr.cf-podio-1 td { background: rgba(250, 204, 21, .09); }
.cf-panel .cf-equipo tbody tr.cf-podio-1 td:first-child { box-shadow: inset 4px 0 0 #facc15; }
.cf-panel .cf-equipo tbody tr.cf-podio-2 td { background: rgba(203, 213, 225, .07); }
.cf-panel .cf-equipo tbody tr.cf-podio-2 td:first-child { box-shadow: inset 4px 0 0 #cbd5e1; }
.cf-panel .cf-equipo tbody tr.cf-podio-3 td { background: rgba(217, 119, 6, .09); }
.cf-panel .cf-equipo tbody tr.cf-podio-3 td:first-child { box-shadow: inset 4px 0 0 #d97706; }
.cf-panel .cf-equipo tbody tr.cf-yo-row td { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--accent) 10%, transparent); }
.cf-panel [data-acc="msg-abrir"] { border-radius: 14px; min-height: 46px; font-weight: 800; }

@media (max-width: 700px) {
  .cf-panel .cf-tabla.cf-equipo { display: block; width: 100%; max-width: none; border: 0; background: transparent; overflow: visible; }
  .cf-equipo thead { display: none; }
  .cf-equipo tbody { display: grid; gap: 10px; }
  .cf-equipo tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; padding: 12px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--surface);
  }
  .cf-panel .cf-equipo tbody tr td { background: transparent !important; border: 0 !important; padding: 0; text-align: left; box-shadow: none !important; }
  .cf-panel .cf-equipo tbody tr.cf-podio-1 { background: linear-gradient(135deg, rgba(250, 204, 21, .16), var(--surface) 60%); border-color: rgba(250, 204, 21, .45); }
  .cf-panel .cf-equipo tbody tr.cf-podio-2 { background: linear-gradient(135deg, rgba(203, 213, 225, .12), var(--surface) 60%); border-color: rgba(203, 213, 225, .35); }
  .cf-panel .cf-equipo tbody tr.cf-podio-3 { background: linear-gradient(135deg, rgba(217, 119, 6, .15), var(--surface) 60%); border-color: rgba(217, 119, 6, .4); }
  .cf-panel .cf-equipo tbody tr.cf-yo-row { border-color: var(--accent); }
  .cf-equipo .cf-eq-nombre { grid-column: 1 / 3; grid-row: 1; font-size: 16px; display: flex; align-items: center; gap: 4px; }
  .cf-equipo .cf-eq-pos { grid-column: 3; grid-row: 1; text-align: right !important; font-size: 22px; width: auto; }
  .cf-equipo td[data-l]:not(.cf-eq-pos)::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
  .cf-equipo td[data-l] { font-size: 15px; }
  .cf-eq-bar { margin: 5px 0 0; }
  .cf-av-mini { width: 34px; height: 34px; margin-right: 8px; }
}

/* ── Canales por asesor ── */
.cf-panel[data-tipo="admin"] { accent-color: #a855f7; }
.cf-adm-row {
  border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, #a855f7 5%, var(--surface)), var(--surface) 60%);
}
.cf-adm-row:has(.cf-badge) { border-color: color-mix(in srgb, #a855f7 35%, var(--border)); }
.cf-adm-row > .cf-adm-top:first-child { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.cf-adm-name { gap: 10px; min-width: 0; }
.cf-adm-name .cf-avatar { width: 44px; height: 44px; font-size: 15px; background: var(--marca, var(--accent)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, #a855f7 45%, transparent); }
.cf-adm-quien { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cf-adm-quien b { font-size: 16.5px; display: flex; align-items: center; gap: 6px; }
.cf-adm-cuenta { font-size: 12px; font-weight: 600; color: var(--t2); }
.cf-btn-mini[data-adm-edit] { border: 1px solid var(--border) !important; border-radius: 10px; min-height: 32px; }
.cf-adm-top .cf-switch { font-size: 12.5px; font-weight: 600; color: var(--t2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cf-adm-top .cf-switch input { width: 18px; height: 18px; }
.cf-adm-row > .cf-adm-top:not(:first-child):not(.cf-adm-relevo) { margin-top: 14px !important; }
.cf-adm-row > .cf-adm-top:not(:first-child):not(.cf-adm-relevo) .cf-sub { font-weight: 700; color: var(--t1); }
.cf-adm-chips .cf-chip { min-height: 32px; border-radius: 10px; }
.cf-adm-chips .cf-chip:not(.cf-chip-on) { background: transparent; }
.cf-adm-relevo {
  background: color-mix(in srgb, var(--t2) 6%, transparent) !important; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin-top: 10px !important;
}
.cf-adm-relevo:has(.cf-chip-on), .cf-adm-relevo:has(input:checked) { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); background: color-mix(in srgb, var(--green) 8%, transparent) !important; }
.cf-adm-relevo .cf-chip { min-height: 32px; }
/* Guardar siempre a mano: fijo abajo mientras se revisan los asesores */
.cf-panel[data-tipo="admin"] .cf-guardar {
  position: sticky; bottom: 8px; z-index: 6; min-height: 50px; font-size: 16px;
  box-shadow: 0 -12px 24px -6px var(--surface), 0 14px 30px -14px rgba(168, 85, 247, .95);
}
@media (max-width: 700px) {
  .cf-adm-row { padding: 12px; }
  .cf-adm-row > .cf-adm-top:first-child { flex-wrap: wrap; }
  .cf-adm-name .cf-avatar { width: 40px; height: 40px; }
}

/* ── Mapa 3D (Análisis) ── */
.cf-mapa3d.cf-mapa-pro {
  height: 500px; border-radius: 22px; border: 1px solid rgba(168, 85, 247, .35);
  background: radial-gradient(ellipse at 50% 35%, #2a1650 0%, #120d26 55%, #0b0a18 100%);
  box-shadow: inset 0 0 80px rgba(168, 85, 247, .12), 0 20px 50px -30px rgba(168, 85, 247, .6);
  color-scheme: dark;
}
.cf-mapa-pro .cf-mapa-canvas { cursor: grab; }
.cf-mapa-pro .cf-mapa-canvas:active { cursor: grabbing; }
.cf-mapa-pro .cf-mapa-ctrl { top: 12px; right: 12px; gap: 8px; }
.cf-mapa-pro .cf-mapa-ctrl .cf-btn {
  width: 40px; height: 40px; border-radius: 50%; color: #f5f3ff; font-weight: 800;
  background: rgba(20, 16, 40, .6); border: 1px solid rgba(232, 121, 249, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cf-mapa-pro .cf-mapa-ctrl .cf-btn:hover { border-color: #e879f9; box-shadow: 0 0 16px rgba(232, 121, 249, .45); }
.cf-mapa-pro .cf-mapa-lbl {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 9px; border-radius: 10px;
  background: rgba(20, 16, 40, .72); border: 1px solid rgba(232, 121, 249, .4); color: #fff; font-size: 11.5px; line-height: 1.15;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: opacity .3s;
}
.cf-mapa-pro .cf-mapa-lbl i { font-style: normal; font-weight: 700; font-size: 10.5px; color: #f0abfc; }
.cf-mapa-pro .cf-mapa-info {
  left: 12px; right: 64px; bottom: 12px; padding: 12px 14px; border-radius: 16px; color: #f5f3ff;
  background: rgba(20, 16, 40, .78); border: 1px solid rgba(232, 121, 249, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: cf-card-in .25s both;
}
.cf-mapa-pro .cf-mapa-info .cf-sub { color: rgba(226, 228, 245, .65); }
.cf-mi-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.cf-mi-dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; box-shadow: 0 0 10px currentColor; }
.cf-mi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.cf-mi-grid span { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 11.5px; color: rgba(226, 228, 245, .7); }
.cf-mi-grid i { font-style: normal; font-size: 13px; }
.cf-mi-grid b { font-size: 16px; color: #fff; }
.cf-mapa-ley { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; }
@media (max-width: 600px) { .cf-mapa3d.cf-mapa-pro { height: 420px; border-radius: 18px; } .cf-mapa-pro .cf-mapa-info { right: 12px; bottom: 12px; } }
@keyframes cf-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Detalle de pedido y carrito ── */
.cf-panel[data-tipo="pedido"], .cf-panel[data-tipo="carrito"] { max-width: 820px; }
.cf-panel[data-tipo="pedido"] .cf-p-nombre, .cf-panel[data-tipo="carrito"] .cf-p-nombre { font-size: 21px; line-height: 1.2; }
.cf-panel .cf-p-grid {
  gap: 0; margin: 14px 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--t2) 4%, var(--surface));
}
.cf-panel .cf-p-row { grid-template-columns: 110px minmax(0, 1fr); padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); align-items: baseline; }
.cf-panel .cf-p-row:last-child { border-bottom: 0; }
.cf-panel .cf-p-row span:first-child { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.cf-panel .cf-p-row span:last-child { font-weight: 600; }
.cf-panel .cf-aviso { border-radius: 14px; padding: 11px 14px; }
.cf-panel .cf-aviso-me { background: linear-gradient(135deg, color-mix(in srgb, #f43f5e 14%, transparent), color-mix(in srgb, #a855f7 16%, transparent)); color: var(--t1); border: 1px solid color-mix(in srgb, #a855f7 35%, transparent); }
.cf-panel .cf-p-acciones .cf-btn { min-height: 46px; border-radius: 14px; font-weight: 700; }
.cf-panel .cf-btn-wa { background: linear-gradient(135deg, #22c55e, #16a34a); border: 0; box-shadow: 0 10px 22px -14px rgba(34, 197, 94, .9); }
.cf-panel .cf-take-big { border-radius: 16px; min-height: 58px; }
.cf-estados { gap: 10px; }
.cf-estado-btn { border-radius: 16px; border-width: 1.5px; transition: transform .12s ease, border-color .2s, background .2s, box-shadow .2s; }
.cf-estado-btn:hover { transform: translateY(-2px); }
.cf-estado-btn:active { transform: scale(.97); }
.cf-estado-btn.cf-sel { box-shadow: 0 10px 26px -14px currentColor; transform: translateY(-2px); }
.cf-estado-btn .cf-emoji { font-size: 26px; }
.cf-panel .cf-nota { border-radius: 14px; padding: 9px 12px; }
.cf-panel .cf-nota-form .cf-input { border-radius: 14px; }
.cf-panel .cf-nota-form .cf-btn { min-height: 46px; border-radius: 14px; }

/* historial del cliente con resumen */
.cf-panel .cf-hist { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; background: var(--surface); }
.cf-panel .cf-hist .cf-label { font-weight: 800; font-size: 14px; }
.cf-rc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 8px; }
.cf-rc-t { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 12px; background: color-mix(in srgb, #a855f7 8%, var(--surface)); border: 1px solid color-mix(in srgb, #a855f7 22%, var(--border)); min-width: 0; }
.cf-rc-t i { font-style: normal; font-size: 15px; }
.cf-rc-t b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-rc-t small { font-size: 11px; color: var(--t2); line-height: 1.2; }
.cf-rc-fav { font-size: 13px; color: var(--t2); margin-bottom: 6px; }
.cf-rc-fav b { color: var(--t1); }
.cf-panel .cf-hist-row { align-items: center; padding: 8px 0; }
@media (max-width: 560px) { .cf-rc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-panel .cf-p-row { grid-template-columns: 88px minmax(0, 1fr); } }

/* ── Registrar venta ── */
.cf-reg-botones { gap: 10px; }
.cf-reg-btn { border-radius: 16px; border-width: 1.5px; padding: 14px 16px; transition: transform .12s, border-color .2s, background .2s; }
.cf-reg-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, #a855f7 45%, var(--border)); }
.cf-reg-btn b, .cf-reg-btn span:first-child { font-size: 16px; }
.cf-reg-btn.cf-sel { border-color: transparent; background: linear-gradient(135deg, color-mix(in srgb, #f43f5e 20%, var(--surface)), color-mix(in srgb, #a855f7 24%, var(--surface))); box-shadow: 0 0 0 1.5px #e879f9, 0 12px 28px -16px rgba(168, 85, 247, .9); }
.cf-panel[data-tipo="registro"] .cf-input { border-radius: 14px; min-height: 50px; font-size: 18px; font-weight: 700; }
.cf-panel[data-tipo="registro"] .cf-chip { border-radius: 12px; min-height: 38px; }

/* ── Salud ── */
.cf-sal-grid { gap: 10px; }
.cf-sal-fila { border-radius: 16px; padding: 12px 14px; transition: border-color .2s; }
.cf-sal-dot { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); position: relative; }
.cf-sal-ok { box-shadow: 0 0 12px rgba(34, 197, 94, .8); }
.cf-sal-mal { box-shadow: 0 0 12px rgba(239, 68, 68, .9); animation: cf-sal-late 1.4s ease-in-out infinite; }
.cf-sal-med { box-shadow: 0 0 12px rgba(245, 158, 11, .8); }
.cf-sal-fila:has(.cf-sal-mal) { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); background: color-mix(in srgb, var(--red) 5%, var(--surface)); }
@keyframes cf-sal-late { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cf-sal-mal { animation: none; } }

/* ── Modo claro: los paneles de "vidrio oscuro" conservan buen contraste ── */
:root[data-theme="light"] .cf-panel { background: linear-gradient(180deg, color-mix(in srgb, #a855f7 6%, #fff) 0, #fff 280px); }
:root[data-theme="light"] .cf-chip-on { color: #fff; }
:root[data-theme="light"] .cf-card { background: linear-gradient(135deg, color-mix(in srgb, var(--canal, var(--accent)) 8%, #fff) 0%, #fff 55%); }
:root[data-theme="light"] .cf-kpi { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 10%, #fff), #fff); }
:root[data-theme="light"] .cf-rc-t { background: color-mix(in srgb, #a855f7 7%, #fff); }

/* ── Anuncios: tiempo activo, ficha y selector ── */
.cf-met-tiempo { font-size: 12px; margin-top: 2px; color: var(--t2); }
.cf-met-tiempo b { color: var(--t1); }
.cf-met-t-nuevo b { color: var(--green); } .cf-met-t-medio b { color: var(--amber); } .cf-met-t-viejo b { color: #c084fc; }
.cf-met-pc { color: var(--amber); font-weight: 700; }
.cf-met-picker-btn { width: 100%; justify-content: center; margin: 8px 0 4px; min-height: 44px; border-radius: 14px; border: 1px dashed color-mix(in srgb, #a855f7 55%, var(--border)) !important; color: #c084fc; font-weight: 800; }

.cf-ad-hoja {
  position: fixed; z-index: 170; left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: min(88vh, 860px); overflow-y: auto;
  padding: 22px 18px 18px; border-radius: 24px; background: var(--surface); color: var(--t1); border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); transform: translate(-50%, -46%) scale(.96); opacity: 0; visibility: hidden;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s linear .22s;
}
#cf-ad-picker.cf-ad-hoja { width: min(980px, calc(100vw - 32px)); }
.cf-ad-hoja.cf-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition-delay: 0s; }
.cf-ad-hoja .cf-mmenu-grip { display: none; }
.cf-ad-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin-right: 40px; }
.cf-ad-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: var(--bg); display: grid; place-items: center; font-size: 32px; }
.cf-ad-top h3 { margin: 4px 0 2px; font-size: 17px; line-height: 1.25; }
.cf-ad-top small { display: block; font-size: 12px; color: var(--t2); }
.cf-ad-estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.cf-ad-estado.cf-on { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.cf-ad-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.cf-ad-kpis span { display: flex; flex-direction: column; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, #a855f7 6%, var(--surface)); }
.cf-ad-kpis i { font-style: normal; } .cf-ad-kpis b { font-size: 17px; } .cf-ad-kpis small { font-size: 11px; color: var(--t2); }
.cf-ad-barras { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin: 6px 0 14px; }
.cf-ad-barras span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.cf-ad-barras i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #e879f9, #7c3aed); }
.cf-ad-barras small { font-size: 10.5px; color: var(--t2); }
.cf-ad-accion { width: 100%; justify-content: center; min-height: 54px; border-radius: 16px; border: 0; font-size: 16px; font-weight: 900; color: #fff; }
.cf-ad-pausar { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 12px 26px -14px rgba(239, 68, 68, .9); }
.cf-ad-activar { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 12px 26px -14px rgba(34, 197, 94, .9); }
.cf-ad-accion:disabled { opacity: .7; }
.cf-ad-nota { margin-top: 10px; font-size: 12px; }
.cf-ad-aviso { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--border)); font-size: 13px; }
.cf-ad-aviso ul { margin: 8px 0 12px; padding-left: 18px; color: var(--t2); }

.cf-ap-head b { display: block; font-size: 18px; margin-right: 40px; } .cf-ap-head small { color: var(--t2); font-size: 12.5px; }
.cf-ap-filtros { display: grid; gap: 8px; margin: 12px 0; }
.cf-ap-filtros .cf-input { border-radius: 14px; }
.cf-ap-opts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--t2); accent-color: #a855f7; }
.cf-ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cf-ap-item { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--t1); cursor: pointer; font: inherit; transition: transform .12s, border-color .2s, box-shadow .2s; }
.cf-ap-item:hover:not(:disabled) { transform: translateY(-2px); border-color: color-mix(in srgb, #a855f7 50%, var(--border)); }
.cf-ap-item img, .cf-ap-sin { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); display: grid; place-items: center; font-size: 34px; }
.cf-ap-txt { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; min-width: 0; }
.cf-ap-txt b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-ap-txt small { font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-ap-check { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: rgba(0, 0, 0, .45); border: 2px solid #fff; }
.cf-ap-check:empty { background: rgba(0, 0, 0, .25); }
.cf-ap-item.cf-sel { border-color: #e879f9; box-shadow: 0 0 0 2px #e879f9, 0 12px 26px -14px rgba(168, 85, 247, .9); }
.cf-ap-item.cf-sel .cf-ap-check { background: linear-gradient(135deg, #f43f5e, #a855f7); border-color: transparent; }
.cf-ap-item.cf-ya { opacity: .5; cursor: default; }
.cf-ap-item.cf-ya .cf-ap-check { background: var(--green); border-color: transparent; }
.cf-ap-pie { position: sticky; bottom: -18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px -18px -18px; padding: 12px 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cf-ap-pie .cf-btn { min-height: 46px; border-radius: 14px; padding: 0 20px; }
@media (max-width: 700px) {
  .cf-ad-hoja, #cf-ad-picker.cf-ad-hoja { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); opacity: 1; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .cf-ad-hoja.cf-open { transform: translateY(0); }
  .cf-ad-hoja .cf-mmenu-grip { display: block; }
  .cf-ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-ad-top { grid-template-columns: 76px minmax(0, 1fr); } .cf-ad-img { width: 76px; height: 76px; }
}
.cf-ap-vinc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; font-size: 13px;
  background: color-mix(in srgb, #a855f7 8%, var(--surface)); border: 1px solid color-mix(in srgb, #a855f7 30%, var(--border)); }
.cf-ap-vinc-sug { background: color-mix(in srgb, var(--amber) 8%, var(--surface)); border-color: color-mix(in srgb, var(--amber) 35%, var(--border)); }
.cf-ap-vc { padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: 12px; color: #fff; background: linear-gradient(135deg, #f43f5e, #a855f7); }
.cf-ap-vinc-links { margin-left: auto; display: inline-flex; gap: 10px; }
.cf-ap-vinc-links button { border: 0; background: none; color: #c084fc; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.cf-ap-vinc .cf-btn { min-height: 36px; border-radius: 12px; font-size: 12.5px; }
.cf-ap-vinc-edit { display: block; }
.cf-ap-vinc-edit b { display: block; font-size: 14px; } .cf-ap-vinc-edit small { display: block; color: var(--t2); margin: 2px 0 10px; }
.cf-ap-vinc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-ap-vinc-acc { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cf-ap-vinc-acc .cf-btn { min-height: 42px; border-radius: 12px; }

/* [Pulso-Supabase] Métricas: resumen al abrir, pausa en lote y comparar anuncios */
.cf-met-resumen { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.cf-met-res-i { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; font: inherit; font-size: 13px; line-height: 1.35;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--t1); text-align: left; }
.cf-met-res-i small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--t2); }
button.cf-met-res-i { cursor: pointer; transition: transform .15s, border-color .15s; }
button.cf-met-res-i:hover { transform: translateY(-1px); border-color: var(--accent); }
.cf-met-res-ok { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.cf-met-res-mal { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.cf-met-res-quema { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.cf-met-res-quema u { font-weight: 800; color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cf-met-res-top { border-color: color-mix(in srgb, var(--green) 40%, transparent); }

.cf-met-lote-inv, .cf-met-lote { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 7%, var(--surface)); font-size: 13px; }
.cf-met-lote { position: sticky; top: 0; z-index: 3; border-style: solid; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cf-met-lote-on { justify-content: center; }
.cf-met-lote small { display: block; color: var(--t2); font-size: 11.5px; margin-top: 2px; }
.cf-met-lote-acc { display: flex; gap: 8px; }
.cf-met-lote-go { background: var(--red); border-color: var(--red); color: #fff; font-weight: 800; }
.cf-met-lote-go:disabled { opacity: .5; }
.cf-met-ads-lote .cf-met-ad { cursor: pointer; }
.cf-met-check { font-size: 20px; align-self: center; flex: none; }
.cf-met-ad-sel { outline: 2px solid var(--red); outline-offset: -2px; }

.cf-met-cmp-btn { border: 1px solid var(--border-2); background: var(--surface); color: var(--t1); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cf-met-cmp-btn:hover, .cf-met-cmp-btn.on { border-color: var(--accent); color: var(--accent); }
.cf-met-ad-cmp { outline: 2px solid var(--accent); outline-offset: -2px; }
.cf-met-cmp { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-radius: 14px; padding: 12px; margin: 0 0 12px; }
.cf-met-cmp-1 { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cf-met-cmp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cf-met-cmp-scroll { overflow-x: auto; }
.cf-met-cmp table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; min-width: 300px; }
.cf-met-cmp th, .cf-met-cmp td { padding: 7px 8px; border-bottom: 1px solid var(--border-2); text-align: center; }
.cf-met-cmp tbody th { text-align: left; font-weight: 600; color: var(--t2); width: 34%; }
.cf-met-cmp thead th:first-child { width: 34%; }
.cf-met-cmp-ad { vertical-align: top; }
.cf-met-cmp-ad img, .cf-met-cmp-noimg { display: block; width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 10px; object-fit: cover; font-size: 30px; line-height: 54px; }
.cf-met-cmp-ad b { display: block; font-size: 12.5px; line-height: 1.3; word-break: break-word; }
.cf-met-cmp-ad small { display: block; font-size: 11px; color: var(--t2); font-weight: 500; margin-top: 3px; }
.cf-met-cmp-ad .cf-cta-tag { margin-top: 4px; display: inline-block; }
.cf-met-cmp-pts { font-weight: 800 !important; color: var(--accent) !important; }
.cf-met-cmp-gana { color: var(--green); font-weight: 800; background: color-mix(in srgb, var(--green) 10%, transparent); }
.cf-met-cmp-ver { margin: 10px 0 0; font-size: 13.5px; }
@media (max-width: 700px) {
  .cf-met-res-i { width: 100%; }
  .cf-met-cmp tbody th, .cf-met-cmp thead th:first-child { width: 30%; }
  .cf-met-cmp th, .cf-met-cmp td { padding: 6px 4px; font-size: 12px; }
}
/* mientras se eligen anuncios para pausar, la barra del lote es la que queda fija arriba */
.cf-panel[data-tipo="metricas"]:has(.cf-met-lote) .cf-met-bar { position: static; }

/* [Pulso-Supabase] Equipo: ficha de cada asesora */
.cf-eq-ficha { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; border-radius: 8px; text-align: left; }
.cf-eq-ficha:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.cf-eq-ficha-go { opacity: .45; font-size: 12px; transition: opacity .15s; }
.cf-eq-ficha:hover .cf-eq-ficha-go { opacity: 1; }
.cf-panel[data-tipo="ficha"] { max-width: 1120px; }
@media (min-width: 701px) { .cf-panel[data-tipo="ficha"] { padding-left: 28px; padding-right: 28px; } }
.cf-ficha-quien { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cf-ficha-av { width: 54px; height: 54px; font-size: 20px; flex: none; }
.cf-ficha-rango { margin: 4px 0 10px; flex-wrap: wrap; }
.cf-ficha-ahora { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cf-ficha-ahora span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); font-size: 13px; }
.cf-ficha-ahora .cf-ficha-mal { border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red); }
.cf-ficha-c { fill: var(--green); } .cf-ficha-x { fill: color-mix(in srgb, var(--red) 75%, transparent); }
.cf-ficha-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-ficha-mot, .cf-ficha-can, .cf-ficha-canc, .cf-ficha-rank { display: grid; gap: 6px; }
.cf-ficha-mot > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; }
.cf-ficha-mot i, .cf-ficha-can i, .cf-ficha-rank i { display: block; height: 6px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.cf-ficha-mot i { grid-column: 1 / -1; }
.cf-ficha-mot em, .cf-ficha-can em, .cf-ficha-rank em { display: block; height: 100%; border-radius: 99px; background: var(--red); }
.cf-ficha-can > div { display: grid; grid-template-columns: auto minmax(0, 1fr) 70px auto; align-items: center; gap: 8px; font-size: 13px; }
.cf-ficha-esp { flex-wrap: wrap; }
.cf-ficha-canc > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.cf-ficha-canc-m { color: var(--t2); overflow-wrap: anywhere; }
.cf-ficha-rank button { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px 110px; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--t1); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.cf-ficha-rank button:hover { border-color: var(--accent); }
.cf-ficha-rank em { background: var(--accent); }
.cf-ficha-rank .cf-ficha-yo { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 700; }
.cf-ficha-rank small { color: var(--t2); text-align: right; }
@media (max-width: 700px) {
  .cf-ficha-2col { grid-template-columns: 1fr; gap: 4px; }
  .cf-ficha-canc > div { grid-template-columns: minmax(0, 1fr) auto; }
  .cf-ficha-canc > div > .cf-sub, .cf-ficha-canc-m { grid-column: 1 / -1; }
  .cf-ficha-rank button { grid-template-columns: minmax(0, 1fr) auto; }
  .cf-ficha-rank i { grid-column: 1 / -1; order: 3; }
  .cf-ficha-rank small { grid-column: 1 / -1; order: 4; text-align: left; }
  .cf-ficha-can > div { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cf-ficha-can i { grid-column: 1 / -1; order: 4; }
}

/* [Pulso-Supabase] Salud: versiones */
.cf-ver { margin: 8px 0; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.cf-ver > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: 13.5px; }
.cf-ver > summary::-webkit-details-marker { display: none; }
.cf-ver > summary::after { content: '▾'; color: var(--t2); } .cf-ver[open] > summary::after { content: '▴'; }
.cf-ver > :not(summary) { margin: 0 12px 10px; }
.cf-ver-lista { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.cf-ver-it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; }
.cf-ver-it .cf-btn { flex: none; min-height: 34px; font-size: 12.5px; }
.cf-ver-yo { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); }
.cf-met-inf-f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cf-met-inf-f select { flex: 1 1 180px; text-transform: capitalize; }
.cf-met-gan { white-space: nowrap; }
/* [Pulso-Supabase] Salud: cambios sensibles */
.cf-aud-chips { flex-wrap: wrap; margin-bottom: 8px; }
.cf-aud { display: grid; gap: 6px; }
.cf-aud-it { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.cf-aud-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cf-aud-det { margin-top: 3px; color: var(--t2); overflow-wrap: anywhere; }

/* [Pulso-Supabase] Logística: pestañas, filtros y 🏆 bonus por entrega */
.cf-lg-tabs { display: flex; gap: 6px; padding: 5px; margin: 4px 0 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, #000); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cf-lg-tabs::-webkit-scrollbar { display: none; }
.cf-lg-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 12px; background: none; color: var(--t2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .15s; white-space: nowrap; }
.cf-lg-tab span { font-size: 17px; }
.cf-lg-tab:hover { color: var(--t1); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cf-lg-tab.on { color: #fff; background: linear-gradient(120deg, #f43f5e, #d946ef 55%, #8b5cf6); box-shadow: 0 8px 22px -8px color-mix(in srgb, #d946ef 70%, transparent); }
.cf-lg-filtros { display: grid; gap: 8px; margin-bottom: 12px; }
.cf-lg-filtros .cf-chips { flex-wrap: wrap; }
.cf-lg-plat-chips .cf-chip { border-style: dashed; }
.cf-lg-cta { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--t1);
  border: 1px solid color-mix(in srgb, #d946ef 45%, transparent); background: linear-gradient(120deg, color-mix(in srgb, #f43f5e 14%, var(--surface)), color-mix(in srgb, #8b5cf6 16%, var(--surface))); transition: transform .15s; }
.cf-lg-cta:hover { transform: translateY(-1px); }
.cf-lg-cta span { grid-row: 1 / 3; font-size: 26px; } .cf-lg-cta b { font-size: 15px; } .cf-lg-cta small { color: var(--t2); font-size: 12.5px; } .cf-lg-cta i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 22px; color: #d946ef; }
.cf-lg-modos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.cf-lg-modo { display: grid; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); color: var(--t1); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.cf-lg-modo b { font-size: 14px; } .cf-lg-modo small { color: var(--t2); font-size: 11.5px; line-height: 1.35; }
.cf-lg-modo:hover { transform: translateY(-1px); border-color: color-mix(in srgb, #d946ef 50%, transparent); }
.cf-lg-modo.on { border-color: #d946ef; background: linear-gradient(140deg, color-mix(in srgb, #f43f5e 12%, var(--surface)), color-mix(in srgb, #8b5cf6 14%, var(--surface))); box-shadow: 0 0 0 1px #d946ef inset; }
.cf-lg-valor { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); margin-bottom: 12px; }
.cf-lg-valor label { display: grid; gap: 2px; } .cf-lg-valor label small { color: var(--t2); font-size: 12px; }
.cf-lg-valor-in { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px; border: 2px solid color-mix(in srgb, #d946ef 55%, transparent); background: var(--bg); }
.cf-lg-valor-in span { font-weight: 800; color: #d946ef; font-size: 18px; }
.cf-lg-valor-in input { border: 0 !important; background: none !important; box-shadow: none !important; font-size: 20px; font-weight: 800; padding: 8px 0; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.cf-lg-valor .cf-chips { grid-column: 1 / -1; flex-wrap: wrap; }
.cf-lg-bonus-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; margin-bottom: 12px; color: #fff;
  background: linear-gradient(120deg, #be123c, #a21caf 50%, #6d28d9); box-shadow: 0 16px 34px -16px color-mix(in srgb, #a21caf 80%, transparent); }
.cf-lg-bonus-hero > div:first-child { display: grid; gap: 2px; }
.cf-lg-bonus-hero .cf-hero-lbl { opacity: .9; }
.cf-lg-bonus-total { font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.cf-lg-bonus-hero small { opacity: .9; font-size: 12.5px; }
.cf-lg-bonus-rango { text-align: right; font-size: 12.5px; opacity: .9; line-height: 1.5; }
.cf-lg-bonus-lista { display: grid; gap: 8px; }
.cf-lg-bonus-it { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: grid; gap: 8px; }
.cf-lg-bonus-top { display: flex; align-items: center; gap: 10px; }
.cf-lg-bonus-pos { width: 26px; text-align: center; font-weight: 800; }
.cf-lg-bonus-n { font-size: 15px; }
.cf-lg-bonus-plata { margin-left: auto; font-size: 19px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.cf-lg-bonus-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--t2); align-items: center; }
.cf-lg-bonus-sub b { color: var(--t1); }
.cf-lg-ver { margin-left: auto; border: 1px solid color-mix(in srgb, #d946ef 45%, transparent); background: color-mix(in srgb, #d946ef 10%, transparent); color: var(--t1); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cf-lg-ver:hover { background: color-mix(in srgb, #d946ef 20%, transparent); }
.cf-lg-como { margin: 14px 0; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); }
.cf-lg-como > summary { padding: 12px 14px; cursor: pointer; font-size: 13.5px; }
.cf-lg-como > :not(summary) { margin: 0 14px 12px; }
.cf-lg-como-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cf-lg-como-g span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.cf-lg-como-g small { color: var(--t2); font-size: 11.5px; line-height: 1.35; }
.cf-lg-det { margin-top: 12px; }
.cf-lg-det-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cf-lg-det-head h3 { flex: 1 1 200px; }
.cf-lg-det-tabla { overflow-x: auto; margin-top: 8px; max-height: 520px; overflow-y: auto; }
.cf-lg-det-tabla table { min-width: 720px; font-size: 12.5px; }
@media (max-width: 700px) {
  .cf-lg-modos { grid-template-columns: minmax(0, 1fr); }
  .cf-lg-valor { grid-template-columns: minmax(0, 1fr); }
  .cf-lg-bonus-total { font-size: 32px; }
  .cf-lg-bonus-rango { text-align: left; }
  .cf-lg-tab { padding: 9px 12px; font-size: 13px; }
}
.cf-lg-export { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 12px; }
.cf-lg-export .cf-btn { background: linear-gradient(120deg, #f43f5e, #d946ef 55%, #8b5cf6); border: 0; color: #fff; font-weight: 800; }
.cf-lg-acc { margin-left: auto; display: inline-flex; gap: 6px; }
.cf-lg-acc .cf-lg-ver { margin-left: 0; }
.cf-lg-ver-pdf { background: none; }
.cf-lg-valor-in input:focus { outline: none !important; box-shadow: none !important; } .cf-lg-valor-in:focus-within { border-color: #d946ef; box-shadow: 0 0 0 3px color-mix(in srgb, #d946ef 25%, transparent); }
/* [Pulso-Supabase] riesgo de devolución y guías estancadas */
.cf-badge-dev { background: color-mix(in srgb, #f97316 18%, transparent); color: #fb923c; }
.cf-aviso-dev { border: 1px solid color-mix(in srgb, #f97316 40%, transparent); background: color-mix(in srgb, #f97316 9%, var(--surface)); }
.cf-aviso-dev ul { margin: 6px 0; padding-left: 0; list-style: none; }
.cf-aviso-dev-alto { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.cf-lg-tab-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; }
.cf-lg-est-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; margin-bottom: 12px; color: #fff;
  background: linear-gradient(120deg, #b91c1c, #ea580c 60%, #f59e0b); box-shadow: 0 16px 34px -16px rgba(234, 88, 12, .7); }
.cf-lg-est-hero > div:first-child { display: grid; gap: 2px; } .cf-lg-est-hero b { font-size: 38px; line-height: 1.1; } .cf-lg-est-hero small { opacity: .92; }
.cf-lg-est-g { display: grid; gap: 6px; font-size: 13px; } .cf-lg-est-g b { font-size: 15px; }
.cf-lg-dias { padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, #f59e0b 20%, transparent); color: var(--amber); }
.cf-lg-dias-mal { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }

/* [Pulso-Supabase] 🤖 Módulo Bots */
.cf-panel[data-tipo="bots"] { max-width: 1240px; }
@media (min-width: 701px) { .cf-panel[data-tipo="bots"] { padding-left: 28px; padding-right: 28px; } }
.cf-bt-resumen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 12px; }
.cf-bt-resumen span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(150deg, color-mix(in srgb, #8b5cf6 10%, var(--surface)), var(--surface)); }
.cf-bt-resumen small { font-size: 11px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .04em; }
.cf-bt-resumen b { font-size: 20px; font-variant-numeric: tabular-nums; } .cf-bt-resumen em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--t2); }
.cf-bt-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.cf-bt-filtros .cf-chips { flex-wrap: wrap; flex: 1 1 auto; } .cf-bt-filtros .cf-input { flex: 0 1 300px; }
.cf-bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 14px; align-items: start; }
.cf-bt-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.cf-bt-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--bt-c, #8b5cf6); }
.cf-bt-ok { --bt-c: linear-gradient(90deg, #22c55e, #14b8a6); } .cf-bt-warn { --bt-c: linear-gradient(90deg, #f59e0b, #f97316); } .cf-bt-mal { --bt-c: linear-gradient(90deg, #ef4444, #f97316); }
.cf-bt-off { --bt-c: #64748b; opacity: .82; } .cf-bt-info { --bt-c: linear-gradient(90deg, #38bdf8, #8b5cf6); }
.cf-bt-head { display: flex; align-items: center; gap: 10px; }
.cf-bt-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent) inset; }
.cf-bt-tit { display: grid; gap: 3px; min-width: 0; flex: 1; } .cf-bt-tit b { font-size: 16px; }
.cf-bt-tit span { display: flex; flex-wrap: wrap; gap: 4px; } .cf-bt-tit i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.cf-bt-tit i.cf-bt-sincanal { background: var(--bg); color: var(--t2); font-weight: 600; }
.cf-bt-pill { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--bg); white-space: nowrap; }
.cf-bt-pill-ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); } .cf-bt-pill-warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.cf-bt-pill-mal { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); } .cf-bt-pill-info { color: #38bdf8; border-color: color-mix(in srgb, #38bdf8 45%, transparent); }
.cf-bt-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cf-bt-kpis span { display: grid; gap: 1px; padding: 7px 8px; border-radius: 10px; background: var(--bg); min-width: 0; }
.cf-bt-kpis small { font-size: 10px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .03em; }
.cf-bt-kpis b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-bt-kpis em { font-style: normal; font-size: 10.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-bt-eq { display: grid; gap: 6px; } .cf-bt-eq-l { display: grid; gap: 3px; } .cf-bt-eq small { font-size: 10.5px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .03em; }
.cf-bt-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--bg); }
.cf-bt-bar span { display: block; min-width: 3px; } .cf-bt-bar-g { height: 7px; opacity: .85; }
.cf-bt-insight { margin: 0; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; background: color-mix(in srgb, #8b5cf6 9%, transparent); border: 1px solid color-mix(in srgb, #8b5cf6 25%, transparent); }
.cf-bt-prods { display: grid; gap: 4px; }
.cf-bt-prod { display: grid; grid-template-columns: 10px minmax(0, 1fr) 88px 98px auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 10px; }
.cf-bt-prod:nth-child(odd) { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.cf-bt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.cf-bt-prod-n { display: grid; min-width: 0; } .cf-bt-prod-n b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf-bt-prod-n small { font-size: 11px; color: var(--t2); }
.cf-bt-prod-g { display: grid; text-align: right; } .cf-bt-prod-g b { font-size: 13px; font-variant-numeric: tabular-nums; } .cf-bt-prod-g small { font-size: 10.5px; color: var(--t2); }
.cf-bt-tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: var(--bg); color: var(--t2); }
.cf-bt-tag em { font-style: normal; }
.cf-bt-tag-mal { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); } .cf-bt-tag-warn { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.cf-bt-tag-ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.cf-bt-ver { justify-self: start; border: 1px solid color-mix(in srgb, #d946ef 45%, transparent); background: color-mix(in srgb, #d946ef 9%, transparent); color: var(--t1); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cf-bt-ver:hover { background: color-mix(in srgb, #d946ef 18%, transparent); }
.cf-bt-ads { display: grid; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border-2); }
.cf-bt-ads-g { display: grid; gap: 4px; } .cf-bt-ads-g > b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cf-bt-ad { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--bg); font-size: 12.5px; }
.cf-bt-ad div { display: grid; min-width: 0; } .cf-bt-ad div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cf-bt-ad small { font-size: 10.5px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-bt-ad-n { display: grid; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; } .cf-bt-ad-n small { font-weight: 500; }
.cf-bt-vacio, .cf-bt-nota { margin: 0; }
@media (max-width: 700px) {
  .cf-bt-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-bt-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-bt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-bt-prod { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .cf-bt-prod-g { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .cf-bt-prod .cf-bt-tag { grid-column: 3; grid-row: 1; }
  .cf-bt-tag em { display: none; }
  .cf-bt-filtros .cf-input { flex: 1 1 100%; }
}
/* [Pulso-Supabase] Bots: imágenes de los anuncios */
.cf-bt-minis { display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.cf-bt-minis img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; cursor: pointer; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--green) 70%, transparent); transition: transform .15s; background: var(--bg); }
.cf-bt-minis img.off { box-shadow: 0 0 0 1.5px var(--border-2); filter: grayscale(.6); opacity: .75; }
.cf-bt-minis img:hover { transform: scale(1.9); position: relative; z-index: 3; }
.cf-bt-minis em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--t2); margin-left: 2px; }
.cf-bt-ad { grid-template-columns: 44px minmax(0, 1fr) auto; cursor: pointer; transition: background .15s; }
.cf-bt-ad:hover { background: color-mix(in srgb, #d946ef 10%, var(--bg)); }
.cf-bt-thumb { position: relative; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; font-size: 20px; background: var(--surface); }
.cf-bt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-bt-thumb i { position: absolute; right: 3px; bottom: 3px; box-shadow: 0 0 0 2px var(--surface); }
