/*
 * Embudos a tu medida (centr.ar/embudos/). Los colores de cada etapa salen de las clases de la
 * portada (.s-nuevo, .s-cal, .s-conv, .s-prop, .s-gan, .s-perd, .s-pf, .s-prep en site.css), que
 * dan --tb (fondo) y --tc (texto). La portada: la bandeja con el embudo arriba. Ciclo de 14 s:
 * el cursor abre la etiqueta de YPF al 24 %, elige «Propuesta enviada» al 40 % y el embudo cuenta
 * de nuevo; al 62 % toca ese tramo y la bandeja deja a la vista sólo esas conversaciones.
 */
.em-gris {
  --tb: #eceeed;
  --tc: #4a5551;
}
.em-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--tb);
  color: var(--tc);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.em-swap {
  display: inline-grid;
}
.em-swap > * {
  grid-area: 1 / 1;
}
.em-swap .was {
  opacity: 0;
}

/* La bandeja de la portada, a todo el ancho. */
.em-live {
  --T: 14s;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(12px, 2vw, 24px);
}
.em-gm {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: #f2f6ee;
  font-size: 13px;
}
.em-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}
.em-pick {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 120px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.em-pick b {
  flex: 1;
}
.em-pick svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}
.em-bar {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  height: 40px;
}
.em-bar i {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-left: -6px;
  padding: 0 14px 0 18px;
  background: var(--tb);
  color: var(--tc);
  font-style: normal;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}
.em-bar i:first-child {
  margin-left: 0;
  padding-left: 12px;
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.em-bar i:last-child {
  border-radius: 0 10px 10px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}
.em-bar span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.em-bar b {
  font-size: 14px;
  font-weight: 700;
}
.em-n {
  display: inline-grid;
}
.em-n > * {
  grid-area: 1 / 1;
  font-style: normal;
}
.em-n .was {
  opacity: 0;
}
.em-all {
  flex: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.em-hint {
  position: absolute;
  left: calc(146px + 0.7 * (100% - 162px));
  top: 62px;
  z-index: 3;
  translate: -50% 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #3c4043;
  color: #fff;
  font-size: 11.5px;
  white-space: nowrap;
  opacity: 0;
}
.em-rows {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.em-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 150px) minmax(0, 1fr) 170px 52px;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 14px;
  white-space: nowrap;
}
.em-rows .em-row + .em-row {
  border-top: 1px solid #edf1ea;
}
.em-row b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}
.em-row small {
  overflow: hidden;
  color: var(--ink-3);
  text-overflow: ellipsis;
}
.em-row time {
  color: var(--ink-3);
  font-size: 12px;
  text-align: right;
}
.em-ck {
  width: 18px;
  height: 18px;
  color: var(--ok);
}
.em-cell {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.em-caret {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

/* El menú de etapas de una fila. */
.em-menu,
.em-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12.5px;
  white-space: nowrap;
}
.em-menu {
  position: absolute;
  right: 80px;
  top: 168px;
  z-index: 2;
  width: 220px;
  box-shadow: 0 12px 32px -12px rgb(18 51 47 / 0.28);
  opacity: 0;
  pointer-events: none;
}
.em-mh {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.em-mi {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ink);
}
.em-mi i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tc, #9aa69f);
}
.em-mi.on {
  background: #f2f6ee;
  font-weight: 650;
}
.em-mi small {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
}
.em-mi svg {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.em-rule-item {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}
.em-cur {
  position: absolute;
  z-index: 4;
  left: calc(100% - 200px);
  top: 140px;
  width: 22px;
  height: 22px;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .em-live .em-cur {
    animation: em-cur var(--T) infinite both;
  }
  .em-live .em-menu {
    animation: em-menu var(--T) infinite both;
  }
  .em-live .em-mi.go {
    animation: em-go var(--T) infinite both;
  }
  .em-live .em-moved .was,
  .em-live .em-bar .em-n .was {
    animation: em-was var(--T) infinite both;
  }
  .em-live .em-moved .now,
  .em-live .em-bar .em-n .now {
    animation: em-now var(--T) infinite both;
  }
  .em-live .em-rows .em-row:not(.p) {
    animation: em-dim var(--T) infinite both;
  }
  .em-live .em-bar i:not(.s-prop) {
    animation: em-dim-bar var(--T) infinite both;
  }
  .em-live .em-all {
    animation: em-all var(--T) infinite both;
  }
  .em-live .em-hint {
    animation: em-hint var(--T) infinite both;
  }
}
@keyframes em-cur {
  0%,
  12% {
    opacity: 0;
    left: calc(100% - 120px);
    top: 230px;
  }
  15% {
    opacity: 1;
  }
  22% {
    left: calc(100% - 200px);
    top: 140px;
    scale: 1;
  }
  24% {
    scale: 0.82;
  }
  26%,
  30% {
    left: calc(100% - 200px);
    top: 140px;
    scale: 1;
  }
  37% {
    left: calc(100% - 220px);
    top: 300px;
    scale: 1;
  }
  40% {
    scale: 0.82;
  }
  42%,
  46% {
    left: calc(100% - 220px);
    top: 300px;
    scale: 1;
  }
  58% {
    left: calc(146px + 0.7 * (100% - 162px));
    top: 30px;
    scale: 1;
  }
  61% {
    scale: 0.82;
  }
  63%,
  72% {
    opacity: 1;
    left: calc(146px + 0.7 * (100% - 162px));
    top: 30px;
    scale: 1;
  }
  78%,
  100% {
    opacity: 0;
    left: calc(146px + 0.7 * (100% - 162px));
    top: 30px;
  }
}
@keyframes em-menu {
  0%,
  24% {
    opacity: 0;
    translate: 0 -6px;
  }
  26%,
  42% {
    opacity: 1;
    translate: 0 0;
  }
  45%,
  100% {
    opacity: 0;
    translate: 0 0;
  }
}
@keyframes em-go {
  0%,
  36% {
    background: transparent;
  }
  38%,
  100% {
    background: #f2f6ee;
  }
}
/* La etiqueta de YPF y las dos cantidades del embudo cambian con el clic del 40 %. */
@keyframes em-was {
  0%,
  41% {
    opacity: 1;
  }
  43%,
  96% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes em-now {
  0%,
  41% {
    opacity: 0;
    scale: 0.8;
  }
  43% {
    opacity: 1;
    scale: 1.12;
  }
  46%,
  96% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
  }
}
/* El filtro del 62 %: lo que no es «Propuesta enviada» se aparta. */
@keyframes em-dim {
  0%,
  62%,
  94%,
  100% {
    opacity: 1;
  }
  65%,
  91% {
    opacity: 0.22;
  }
}
@keyframes em-dim-bar {
  0%,
  62%,
  94%,
  100% {
    opacity: 1;
  }
  65%,
  91% {
    opacity: 0.4;
  }
}
@keyframes em-all {
  0%,
  62%,
  94%,
  100% {
    opacity: 0.35;
  }
  65%,
  91% {
    opacity: 1;
  }
}
@keyframes em-hint {
  0%,
  52% {
    opacity: 0;
  }
  55%,
  61% {
    opacity: 1;
  }
  63%,
  100% {
    opacity: 0;
  }
}

/* Paso 1: la etapa toma el color que se elige. */
.em-line {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}
.em-line i,
.em-dots i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tc);
}
.em-pick-on {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 9px;
}
.em-pick-on i {
  grid-area: 1 / 1;
}
.em-pick-on i.was {
  opacity: 0;
}
.em-dots {
  display: flex;
  gap: 8px;
  padding: 4px 2px 0;
}
.em-dots i {
  width: 20px;
  height: 20px;
}
.em-dots i:nth-child(2) {
  outline: 2px solid var(--tc);
  outline-offset: 2px;
}
.em-fx-color .rdr-cur {
  left: 50px;
  top: 136px;
}

/* Paso 2: la etiqueta vacía de la fila pasa a «Calificado». */
.em-one {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
}
.em-empty {
  border: 1px dashed #b9c4bd;
  background: #fff;
  color: var(--ink-3);
}
.em-note {
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: normal;
}
.em-fx-tag .rdr-cur {
  left: calc(100% - 64px);
  top: 70px;
}

/* Paso 3: el clic en «Ganado» deja sólo esa fila. */
.em-mini {
  flex: none;
  height: 24px;
}
.em-mini i {
  padding: 0 4px 0 10px;
  margin-left: -4px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%);
}
.em-mini i:first-child {
  padding-left: 4px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.em-mini i:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%);
}
.em-mini span {
  display: none;
}
.em-mini b {
  font-size: 11.5px;
}
.em-mr {
  display: flex;
  justify-content: space-between;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
}
.em-fx-filter .rdr-cur {
  left: calc(16px + 0.9 * (100% - 32px) - 6px);
  top: 34px;
}

@media (prefers-reduced-motion: no-preference) {
  .em-fx-color .em-pick-on .was {
    animation: em-step-was var(--s) infinite both;
  }
  .em-fx-color .em-pick-on .now {
    animation: em-step-now var(--s) infinite both;
  }
  .em-fx-tag .em-swap .was {
    animation: em-step-was var(--s) infinite both;
  }
  .em-fx-tag .em-swap .now {
    animation: em-step-pop var(--s) infinite both;
  }
  .em-fx-filter .em-mr:not(.g),
  .em-fx-filter .em-mini i:not(.s-gan) {
    animation: em-step-dim var(--s) infinite both;
  }
}
@keyframes em-step-was {
  0%,
  44% {
    opacity: 1;
  }
  48%,
  100% {
    opacity: 0;
  }
}
@keyframes em-step-now {
  0%,
  44% {
    opacity: 0;
  }
  48%,
  100% {
    opacity: 1;
  }
}
@keyframes em-step-pop {
  0%,
  44% {
    opacity: 0;
    scale: 0.8;
  }
  48% {
    opacity: 1;
    scale: 1.1;
  }
  52%,
  100% {
    opacity: 1;
    scale: 1;
  }
}
@keyframes em-step-dim {
  0%,
  46%,
  100% {
    opacity: 1;
  }
  50%,
  94% {
    opacity: 0.25;
  }
}

/* Colores: los ocho con nombre, el propio y el degradé automático. */
.em-palette,
.em-thread,
.em-rule {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  font-size: 13px;
}
.em-ph {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.em-sw {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.em-c {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tb);
  color: var(--tc);
  font-weight: 600;
}
.em-c i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tc);
}
.em-propio {
  --tb: #f6f8f3;
  --tc: var(--ink);
}
.em-propio i {
  background: conic-gradient(#e5484d, #f5a524, #3fb950, #1f6feb, #8957e5, #e5484d);
}
.em-own {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.em-code {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.em-hex {
  --tb: #e08a1e;
  --tc: #2b1700;
}
.em-ramp {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #f6f8f3;
}
.em-rt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.em-dir {
  display: inline-grid;
  padding: 4px 10px;
  border-radius: 99px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
}
.em-dir > * {
  grid-area: 1 / 1;
  font-style: normal;
}
.em-dir .b {
  opacity: 0;
}
.em-rs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* El tono suave, a la izquierda, y el fuerte a la derecha; el texto, el que se lee mejor. */
.em-d1 {
  --a: #fcefdd;
  --ta: #6b4100;
  --b: #a65a00;
  --tb2: #fff;
}
.em-d2 {
  --a: #f7d9ae;
  --ta: #5e3900;
  --b: #e08a1e;
  --tb2: #2b1700;
}
.em-d3 {
  --a: #f0bd72;
  --ta: #4a2c00;
  --b: #f0bd72;
  --tb2: #4a2c00;
}
.em-d4 {
  --a: #e08a1e;
  --ta: #2b1700;
  --b: #f7d9ae;
  --tb2: #5e3900;
}
.em-d5 {
  --a: #a65a00;
  --ta: #fff;
  --b: #fcefdd;
  --tb2: #6b4100;
}
.em-d {
  background: var(--a);
  color: var(--ta);
}
/* Cada tanto se da vuelta: de fuerte a suave, y vuelve. */
@media (prefers-reduced-motion: no-preference) {
  .em-palette {
    --T: 8s;
  }
  .em-d {
    animation: em-ramp var(--T) infinite both;
  }
  .em-dir .a {
    animation: em-dir-a var(--T) infinite both;
  }
  .em-dir .b {
    animation: em-dir-b var(--T) infinite both;
  }
}
@keyframes em-ramp {
  0%,
  42%,
  100% {
    background: var(--a);
    color: var(--ta);
  }
  50%,
  92% {
    background: var(--b);
    color: var(--tb2);
  }
}
@keyframes em-dir-a {
  0%,
  42%,
  100% {
    opacity: 1;
  }
  46%,
  94% {
    opacity: 0;
  }
}
@keyframes em-dir-b {
  0%,
  42%,
  100% {
    opacity: 0;
  }
  46%,
  94% {
    opacity: 1;
  }
}

/* La tira del embudo arriba de la conversación. */
.em-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #f6f8f3;
}
.em-subj {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.em-subj b {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.em-subj small {
  color: var(--ink-3);
}
.em-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.em-fn {
  flex: none;
  font-size: 12.5px;
}
.em-steps {
  display: flex;
  flex: 1;
  min-width: 0;
}
.em-steps i {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  margin-left: -4px;
  padding: 5px 8px 5px 12px;
  background: #e9eee6;
  color: var(--ink-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%);
}
.em-steps i:first-child {
  margin-left: 0;
  padding-left: 8px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.em-steps i:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7px 50%);
}
/* Las etapas ya pasadas y la actual llevan su color; al final, la actual es «Propuesta enviada». */
.em-steps .k0,
.em-steps .k1,
.em-steps .k2,
.em-steps .k3 {
  background: var(--tb);
  color: var(--tc);
}
/* Quién la tiene a su cargo y ⋯, pegados a las etapas, como en la franja de la extensión. */
.em-who {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 3px;
  border-radius: 99px;
  background: #f1f3f4;
  color: var(--ink-2, #3c4043);
  font-size: 12px;
  font-weight: 600;
}
.em-who i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #12332f;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
.em-dots {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 0 2px;
}
.em-dots b {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--ink-3);
}
.em-say {
  justify-self: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: #3c4043;
  color: #fff;
  font-size: 11.5px;
}
.em-away {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.em-link {
  color: #205d42;
  font-size: 12.5px;
  font-weight: 600;
}
.em-btn {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.em-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  background: #323232;
  color: #fff;
  font-size: 13px;
}
.em-toast u {
  margin-left: auto;
  color: #a8c7fa;
  font-weight: 600;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .em-thread {
    --T: 10s;
  }
  .em-steps .k3 {
    animation: em-k3 var(--T) infinite both;
  }
  .em-say {
    animation: em-say var(--T) infinite both;
  }
  .em-toast {
    animation: em-toast var(--T) infinite both;
  }
}
@keyframes em-k3 {
  0%,
  30% {
    background: #e9eee6;
    color: var(--ink-3);
  }
  34%,
  96% {
    background: var(--tb);
    color: var(--tc);
  }
  100% {
    background: #e9eee6;
    color: var(--ink-3);
  }
}
@keyframes em-say {
  0%,
  10% {
    opacity: 0;
  }
  14%,
  30% {
    opacity: 1;
  }
  34%,
  100% {
    opacity: 0;
  }
}
@keyframes em-toast {
  0%,
  55% {
    opacity: 0;
    translate: 0 8px;
  }
  60%,
  94% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}

/* Una regla automática: condiciones, etapa, la prueba y el correo que entra solo. */
.em-rh {
  display: flex;
  align-items: center;
  gap: 9px;
}
.em-rh svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
}
.em-rh b {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.em-rh small {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 99px;
  background: #f2f6ee;
  color: var(--ink-2);
}
.em-cond {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.em-cond > small {
  width: 112px;
  color: var(--ink-3);
}
.em-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #f6f8f3;
  font-size: 12.5px;
}
.em-then {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.em-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
}
.em-opt i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--ok);
}
.em-opt i::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  margin: 1px 0 0 5px;
  rotate: 45deg;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}
.em-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.em-try .em-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.em-res {
  color: var(--ok);
  font-weight: 600;
}
.em-new {
  grid-template-columns: 18px minmax(0, 0.8fr) minmax(0, 1fr) auto;
  height: 46px;
  border: 1px solid rgb(22 128 76 / 0.4);
  border-radius: 12px;
  background: #f4faf5;
}
.em-new .em-ck {
  color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .em-rule {
    --T: 10s;
  }
  .em-res {
    animation: em-res var(--T) infinite both;
  }
  .em-new {
    animation: em-new var(--T) infinite both;
  }
  .em-new .em-tag {
    animation: em-new-tag var(--T) infinite both;
  }
}
@keyframes em-res {
  0%,
  18% {
    opacity: 0;
  }
  24%,
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes em-new {
  0%,
  45% {
    opacity: 0;
    translate: 0 -8px;
  }
  52%,
  96% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes em-new-tag {
  0%,
  60% {
    opacity: 0;
    scale: 0.8;
  }
  64% {
    opacity: 1;
    scale: 1.12;
  }
  68%,
  100% {
    opacity: 1;
    scale: 1;
  }
}

/* Fuera de la barra, varios embudos y el embudo compartido. */
.fp-col .em-list {
  margin-top: auto;
}
.em-ring i {
  border: 1.5px solid #9aa69f;
  background: transparent;
}
.em-sel {
  background: #f2f6ee;
  font-weight: 650;
}
.em-sel svg {
  margin-left: auto;
  color: var(--ok);
}
.em-list .em-mi:not([class*='s-']):not(.em-ring) i {
  background: #b9c4bd;
}
.em-sel i {
  background: var(--ok) !important;
}
.em-team {
  gap: 10px;
  padding: 12px;
}
.em-team .em-mh {
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.em-team em {
  padding: 2px 8px;
  border-radius: 99px;
  background: #e5f2e8;
  color: var(--ok);
  font-size: 11px;
  font-style: normal;
}
.em-avs {
  display: flex;
}
.em-avs i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e7eef8;
  color: #2f5f9e;
  font-style: normal;
  font-weight: 700;
}
.em-avs i:nth-child(2) {
  background: #fdefcc;
  color: #7a5200;
}
.em-avs i:nth-child(3) {
  background: #ece3fd;
  color: #5a36b3;
}
.em-team small {
  color: var(--ink-3);
  font-size: 12px;
}

/* El detalle de la tira va con la escena a la izquierda. */
@media (min-width: 901px) {
  .em-flip .fp-detail-copy {
    order: 2;
  }
}

@media (max-width: 1000px) {
  .em-bar span {
    display: none;
  }
}
@media (max-width: 900px) {
  .em-row {
    grid-template-columns: 18px minmax(0, 1fr) 150px 44px;
  }
  .em-rows .em-row small {
    display: none;
  }
  .em-all {
    display: none;
  }
  .em-hint {
    left: auto;
    right: 16px;
    translate: none;
  }
}
@media (max-width: 560px) {
  .em-cur,
  .em-menu,
  .em-hint {
    display: none;
  }
  .em-pick {
    width: 44px;
    padding: 0 8px;
  }
  .em-pick b {
    display: none;
  }
  .em-gm .em-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }
  .em-gm .em-row time {
    display: none;
  }
  .em-sw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .em-cond > small {
    width: 100%;
  }
  .em-new {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }
  .em-new small {
    display: none;
  }
}
