@charset "UTF-8";
:root {
  /* === Color principal: rojo Easy (cámbialo aquí) === */
  --red:#E2001A;
  --red-600:#C50017;
  --red-700:#A20012;
  --red-tint:#FFEFF1;
  --red-tint-2:#FCDDE1;
  --ink:#1A1416;
  --ink-2:#4B4347;
  --ink-3:#8A8186;
  --line:#ECE7E8;
  --line-2:#E2DBDD;
  --bg:#F6F3F2;
  --surface:#FFFFFF;
  --surface-2:#FBF9F8;
  --ok:#1F9D55;
  --ok-tint:#E6F5EC;
  --warn:#C97A0A;
  --warn-tint:#FCF1DF;
  --r:14px;
  --r-sm:10px;
  --shadow:0 1px 2px rgba(26,20,22,.04),0 8px 24px -12px rgba(26,20,22,.18);
  --shadow-lg:0 24px 60px -28px rgba(26,20,22,.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

svg {
  display: block;
}

::selection {
  background: var(--red-tint-2);
}

/* ===== Layout ===== */
.ez-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.ez-side {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.ez-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 240px at 90% 8%, rgba(255, 255, 255, 0.16), transparent 70%);
}

.ez-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 18px;
  position: relative;
}

.ez-brand .ez-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
}

.ez-brand .ez-mark span {
  font-family: "Montserrat";
  font-weight: 800;
  color: var(--red);
  font-size: 20px;
}

.ez-brand b {
  font-family: "Montserrat";
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.ez-brand small {
  display: block;
  font-size: 10.5px;
  opacity: 0.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: -2px;
}

.ez-nav-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 700;
  margin: 14px 10px 6px;
}

.ez-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.ez-nav a, .ez-nav button {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.86);
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.ez-nav a svg, .ez-nav button svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.9;
}

.ez-nav a:hover, .ez-nav button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ez-nav a.ez-active, .ez-nav button.ez-active {
  background: #fff;
  color: var(--red-700);
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

.ez-nav a.ez-active svg, .ez-nav button.ez-active svg {
  opacity: 1;
}

.ez-nav .ez-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

.ez-nav a.ez-active .ez-badge, .ez-nav button.ez-active .ez-badge {
  background: var(--red);
  color: #fff;
}

.ez-side-foot {
  margin-top: auto;
  position: relative;
}

.ez-plan-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 13px;
}

.ez-plan-card b {
  font-family: "Montserrat";
  font-size: 13px;
}

.ez-plan-card p {
  font-size: 11.5px;
  opacity: 0.8;
  margin: 2px 0 9px;
}

.ez-plan-card .ez-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.ez-plan-card .ez-bar i {
  display: block;
  height: 100%;
  width: 64%;
  background: #fff;
  border-radius: 6px;
}

/* ===== Main ===== */
.ez-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ez-topbar {
  height: 62px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ez-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 13px;
  color: var(--ink-3);
}

.ez-search input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
}

.ez-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ez-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ez-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.15s;
  position: relative;
}

.ez-icon-btn:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.ez-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ez-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--surface);
}

.ez-org {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.ez-org .ez-av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a3537, #1a1416);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.ez-content {
  padding: 26px 30px 50px;
  overflow-y: auto;
}

.ez-view {
  display: none;
  animation: fade 0.35s ease both;
}

.ez-view.ez-active {
  display: block;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ez-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ez-page-head .ez-crumb {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.ez-page-head h1 {
  font-size: 27px;
}

.ez-page-head p {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 6px;
  max-width: 560px;
}

/* ===== Buttons ===== */
.ez-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 13.5px;
  transition: 0.16s;
  white-space: nowrap;
}

.ez-btn svg {
  width: 16px;
  height: 16px;
}

.ez-btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(226, 0, 26, 0.8);
}

.ez-btn-primary:hover {
  background: var(--red-600);
  transform: translateY(-1px);
}

.ez-btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.ez-btn-ghost:hover {
  border-color: var(--ink-3);
}

.ez-btn-soft {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-btn-soft:hover {
  background: var(--red-tint-2);
}

/* ===== Cards / generic ===== */
.ez-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.ez-grid {
  display: grid;
  gap: 16px;
}

.ez-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ez-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ez-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ez-stagger > * {
  animation: rise 0.5s ease both;
}

.ez-stagger > *:nth-child(1) {
  animation-delay: 0.02s;
}

.ez-stagger > *:nth-child(2) {
  animation-delay: 0.07s;
}

.ez-stagger > *:nth-child(3) {
  animation-delay: 0.12s;
}

.ez-stagger > *:nth-child(4) {
  animation-delay: 0.17s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* KPI */
.ez-kpi {
  padding: 18px;
}

.ez-kpi .ez-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ez-kpi .ez-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--red-tint);
  color: var(--red);
}

.ez-kpi .ez-ic svg {
  width: 19px;
  height: 19px;
}

.ez-kpi .ez-trend {
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-tint);
  padding: 3px 8px;
  border-radius: 20px;
}

.ez-kpi .ez-trend.ez-down {
  color: var(--red);
  background: var(--red-tint);
}

.ez-kpi .ez-num {
  font-family: "Montserrat";
  font-size: 30px;
  font-weight: 700;
  margin: 14px 0 2px;
  letter-spacing: -0.03em;
}

.ez-kpi .ez-lbl {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.ez-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.ez-section-title h3 {
  font-size: 16px;
}

.ez-section-title a {
  font-size: 12.5px;
  color: var(--red-700);
  font-weight: 600;
}

/* table */
.ez-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ez-tbl th {
  text-align: left;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.ez-tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ez-tbl tr:last-child td {
  border-bottom: none;
}

.ez-tbl tr:hover td {
  background: var(--surface-2);
}

.ez-tbl .ez-name {
  font-weight: 600;
  color: var(--ink);
}

.ez-tbl .ez-sub {
  color: var(--ink-3);
  font-size: 12px;
}

.ez-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.ez-chip.ez-green {
  background: var(--ok-tint);
  color: var(--ok);
}

.ez-chip.ez-red {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-chip.ez-amber {
  background: var(--warn-tint);
  color: var(--warn);
}

.ez-chip.ez-grey {
  background: #F0EDEE;
  color: var(--ink-2);
}

.ez-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

/* bars mini chart */
.ez-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 8px 4px 0;
}

.ez-mini-chart .ez-b {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.ez-mini-chart .ez-b .ez-bar {
  width: 100%;
  max-width: 30px;
  background: var(--red-tint-2);
  border-radius: 7px 7px 0 0;
  position: relative;
  transition: 0.3s;
}

.ez-mini-chart .ez-b .ez-bar.ez-lead {
  background: var(--red);
}

.ez-mini-chart .ez-b span {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ===== Selector de fecha (reemplaza el nativo) ===== */
.ez-dp {
  display: inline-flex;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.ez-dp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 150px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.ez-dp-btn svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex: none;
}

.ez-dp-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-dp-btn:hover {
  border-color: var(--ink-3);
}

.ez-dp-btn.ez-dp-on {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}

.ez-dp-btn.ez-dp-empty {
  color: var(--ink-3);
  font-weight: 500;
}

label > .ez-dp, .ez-field .ez-dp {
  display: flex;
}

.ez-dp-pop {
  position: fixed;
  z-index: 1000;
  width: 296px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(26, 20, 22, 0.22), 0 2px 6px rgba(26, 20, 22, 0.06);
  animation: ez-dp-in 0.14s ease-out;
  color: var(--ink);
  font-family: inherit;
}

@keyframes ez-dp-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}
.ez-dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ez-dp-head b {
  font-size: 14px;
  font-weight: 800;
}

.ez-dp-head button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  cursor: pointer;
}

.ez-dp-head button:hover {
  background: var(--surface-2);
  color: var(--red-700);
}

.ez-dp-head svg {
  width: 15px;
  height: 15px;
}

.ez-dp-dows, .ez-dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ez-dp-dows span {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 4px 0;
}

.ez-dp-dows span:nth-child(n+6) {
  color: var(--red-700);
}

.ez-dp-day {
  position: relative;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font: inherit;
  color: var(--ink);
  padding: 0;
  transition: background 0.12s;
}

.ez-dp-day span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
}

.ez-dp-day small {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1;
  min-height: 9px;
}

.ez-dp-day:hover:not([disabled]) {
  background: var(--surface-2);
}

.ez-dp-day:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.ez-dp-day[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.ez-dp-day.ez-dp-we span {
  color: var(--ink-2);
}

.ez-dp-day.ez-dp-today {
  box-shadow: inset 0 0 0 1.5px var(--red);
}

.ez-dp-day.ez-dp-sel {
  background: var(--red);
  box-shadow: 0 4px 12px rgba(226, 0, 26, 0.3);
}

.ez-dp-day.ez-dp-sel span, .ez-dp-day.ez-dp-sel small {
  color: #fff;
}

.ez-dp-day.ez-dp-rain small {
  color: #1f5fc9;
}

.ez-dp-day.ez-dp-hot small {
  color: #c45a00;
}

.ez-dp-day.ez-dp-cold small {
  color: #127a9c;
}

.ez-dp-day.ez-dp-rain::after, .ez-dp-day.ez-dp-hot::after, .ez-dp-day.ez-dp-cold::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.ez-dp-day.ez-dp-rain::after {
  background: #2f6fdc;
}

.ez-dp-day.ez-dp-hot::after {
  background: #f08a00;
}

.ez-dp-day.ez-dp-cold::after {
  background: #1aa3c9;
}

.ez-dp-day.ez-dp-sel small {
  color: rgba(255, 255, 255, 0.9);
}

.ez-dp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ez-dp-city {
  font-size: 10.5px;
  color: var(--ink-3);
}

.ez-dp-foot div {
  display: flex;
  gap: 4px;
}

.ez-dp-foot button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.ez-dp-foot button:hover {
  background: var(--surface-2);
}

.ez-dp-foot button[data-act=today] {
  color: var(--red-700);
}

/* ===== Diálogos de confirmación / aviso (reemplazan alert y confirm) ===== */
.ez-ask {
  width: min(420px, 100vw - 32px);
  margin: auto;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(26, 20, 22, 0.28);
  animation: ez-ask-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ez-ask::backdrop {
  background: rgba(26, 20, 22, 0.45);
  backdrop-filter: blur(3px);
  animation: ez-ask-fade 0.18s ease;
}

.ez-ask.ez-out {
  animation: ez-ask-out 0.14s ease forwards;
}

@keyframes ez-ask-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}
@keyframes ez-ask-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}
@keyframes ez-ask-fade {
  from {
    opacity: 0;
  }
}
.ez-ask form {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  padding: 22px 22px 18px;
}

.ez-ask-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  grid-row: span 2;
}

.ez-ask-icon svg {
  width: 22px;
  height: 22px;
}

.ez-ask-danger .ez-ask-icon {
  background: var(--red-tint);
  color: var(--red);
}

.ez-ask-warn .ez-ask-icon {
  background: #fff1d6;
  color: #c77700;
}

.ez-ask-info .ez-ask-icon {
  background: #eaf2ff;
  color: #2f6fdc;
}

.ez-ask-body h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.ez-ask-body p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.ez-ask-acts {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.ez-ask-acts .ez-btn {
  min-width: 96px;
  justify-content: center;
}

.ez-btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.ez-btn-danger:hover {
  background: var(--red-700);
  border-color: var(--red-700);
}

.ez-ask .ez-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ===== Editor ===== */
.ez-editor {
  display: grid;
  grid-template-columns: 230px 1fr 312px;
  gap: 16px;
  align-items: start;
}

/* Editor a pantalla completa: cada columna con su propio scroll (desktop) */
@media (min-width: 1081px) {
  .ez-editor-page .ez-content {
    padding-bottom: 16px;
  }
  .ez-editor-page .ez-page-head {
    margin-bottom: 14px;
  }
  .ez-editor {
    --ez-ed-top:250px;
    height: calc(100vh - var(--ez-ed-top) - 16px);
    height: calc(100dvh - var(--ez-ed-top) - 16px);
    min-height: 480px;
    align-items: stretch;
  }
  .ez-editor > .ez-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .ez-editor > .ez-panel > .ez-ph {
    flex: none;
  }
  .ez-editor > .ez-panel > .ez-pb {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ez-editor > .ez-canvas-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .ez-editor > .ez-canvas-wrap > .ez-canvas-bar {
    flex: none;
  }
  .ez-editor > .ez-canvas-wrap > .ez-canvas {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: flex-start;
    scroll-padding: 24px;
  }
  /* Las pestañas del panel derecho quedan fijas arriba mientras se scrollea su contenido */
  .ez-editor #rtabs {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 -14px 0 6px var(--surface), 0 8px 0 2px var(--surface);
  }
  .ez-editor .ez-canvas::-webkit-scrollbar, .ez-editor .ez-pb::-webkit-scrollbar {
    width: 10px;
  }
  .ez-editor .ez-canvas::-webkit-scrollbar-thumb, .ez-editor .ez-pb::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }
  .ez-editor .ez-canvas::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
  }
}
.ez-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.ez-panel .ez-ph {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
  font-family: "Montserrat";
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ez-panel .ez-pb {
  padding: 14px 16px;
}

.ez-blk-group {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 6px 2px 9px;
}

.ez-blk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: grab;
  transition: 0.14s;
  background: var(--surface);
}

.ez-blk:hover {
  border-color: var(--red);
  background: var(--red-tint);
  transform: translateX(2px);
}

.ez-blk .ez-bi {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}

.ez-blk:hover .ez-bi {
  background: #fff;
  color: var(--red);
}

.ez-blk .ez-bi svg {
  width: 16px;
  height: 16px;
}

.ez-blk b {
  font-size: 12.5px;
  font-weight: 600;
  display: block;
}

.ez-blk small {
  font-size: 10.5px;
  color: var(--ink-3);
}

.ez-blk .ez-var-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--red-tint);
  color: var(--red-700);
  padding: 2px 6px;
  border-radius: 6px;
}

/* canvas */
.ez-canvas-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ez-canvas-bar {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ez-var-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ez-var-tabs button {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.ez-var-tabs button.ez-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.ez-var-tabs .ez-var-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-style: dashed;
  color: var(--ink-3);
}

.ez-var-tabs .ez-var-add:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-var-tabs .ez-var-add svg {
  width: 13px;
  height: 13px;
}

.ez-canvas-bar .ez-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.ez-canvas {
  background: #EFEBEA;
  padding: 26px;
  display: flex;
  justify-content: center;
}

.ez-mail {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ez-mail .ez-m-hero {
  background: linear-gradient(135deg, var(--red), var(--red-700));
  color: #fff;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}

.ez-mail .ez-m-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.ez-mail .ez-m-hero small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}

.ez-mail .ez-m-hero h2 {
  font-size: 25px;
  margin: 8px 0 6px;
  color: #fff;
}

.ez-mail .ez-m-hero p {
  font-size: 13px;
  opacity: 0.92;
}

.ez-token {
  background: rgba(255, 255, 255, 0.22);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  padding: 0 5px;
  font-weight: 600;
}

/* Variantes de hero según plantilla */
.ez-m-hero.ez-hero-soft {
  background: var(--red-tint);
  color: var(--ink);
}

.ez-m-hero.ez-hero-soft::after {
  background: rgba(226, 0, 26, 0.06);
}

.ez-m-hero.ez-hero-soft small {
  color: var(--red-700);
  opacity: 1;
}

.ez-m-hero.ez-hero-soft h2 {
  color: var(--red-700);
}

.ez-m-hero.ez-hero-soft p {
  color: var(--ink-2);
  opacity: 1;
}

.ez-m-hero.ez-hero-soft .ez-token {
  background: var(--red-tint-2);
  border-color: var(--red);
  color: var(--red-700);
}

.ez-m-hero.ez-hero-dark {
  background: linear-gradient(135deg, #2b2528, #1a1416);
}

.ez-m-hero.ez-hero-dark::after {
  background: rgba(255, 255, 255, 0.06);
}

.ez-m-body {
  padding: 22px;
}

.ez-m-greet {
  font-size: 14px;
  margin-bottom: 16px;
}

.ez-m-greet .ez-tok {
  background: var(--red-tint);
  border: 1px dashed var(--red);
  color: var(--red-700);
  border-radius: 5px;
  padding: 0 5px;
  font-weight: 600;
}

.ez-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ez-prod {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.ez-prod .ez-img {
  height: 78px;
  background: linear-gradient(135deg, #f3eeec, #e6dedb);
  display: grid;
  place-items: center;
  color: #c3b6b2;
  position: relative;
}

.ez-prod .ez-img svg {
  width: 11px;
  height: 11px;
}

.ez-prod .ez-info {
  padding: 9px 10px;
  position: relative;
  z-index: 3;
}

.ez-prod .ez-info b {
  font-size: 12px;
  display: block;
}

.ez-prod .ez-info .ez-price {
  color: var(--red-700);
  font-weight: 700;
  font-size: 17px;
  margin-top: 2px;
}

.ez-prod .ez-info .ez-old {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 11px;
  font-weight: 500;
  margin-left: 5px;
}

.ez-stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 700;
  background: var(--warn);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}

.ez-stock-badge svg {
  width: 9px;
  height: 9px;
}

.ez-m-cta {
  margin-top: 18px;
  text-align: center;
}

.ez-m-cta a {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 13px;
}

.ez-m-foot {
  background: var(--surface-2);
  padding: 14px;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

/* right tabs */
.ez-rtabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 14px;
}

.ez-rtabs button {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 7px;
  color: var(--ink-2);
  transition: 0.14s;
}

.ez-rtabs button.ez-active {
  background: #fff;
  color: var(--red-700);
  box-shadow: var(--shadow);
}

.ez-rpane {
  display: none;
}

.ez-rpane.ez-active {
  display: block;
  animation: fade 0.25s ease both;
}

.ez-field {
  margin-bottom: 14px;
}

.ez-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.ez-field textarea, .ez-field select, .ez-field input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  resize: vertical;
}

.ez-field textarea:focus, .ez-field select:focus, .ez-field input:focus {
  border-color: var(--red);
}

.ez-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ez-pill-row .ez-p {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-pill-row .ez-p.ez-on {
  background: var(--red-tint);
  border-color: var(--red);
  color: var(--red-700);
}

.ez-ai-out {
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  padding: 11px;
  font-size: 12px;
  color: var(--ink-2);
  min-height: 60px;
  margin-top: 10px;
}

.ez-ai-out.ez-busy {
  color: var(--ink-3);
}

.ez-spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--red-tint-2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.ez-connect-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 9px;
}

.ez-connect-row .ez-lg {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 12px;
  flex: none;
}

.ez-connect-row b {
  font-size: 12.5px;
  display: block;
}

.ez-connect-row small {
  font-size: 11px;
  color: var(--ink-3);
}

/* ===== Panel Productos (catálogo Easy) ===== */
.ez-pp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink-3);
  background: var(--surface);
  margin-bottom: 10px;
}

.ez-pp-search:focus-within {
  border-color: var(--red);
}

.ez-pp-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ez-pp-search input {
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  width: 100%;
}

.ez-pp-sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.ez-pp-sorts button {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-pp-sorts button:hover {
  border-color: var(--ink-3);
}

.ez-pp-sorts button.ez-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ez-pp-stock {
  margin-bottom: 8px;
}

.ez-pp-status {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.ez-pp-list {
  display: grid;
  gap: 6px;
  transition: opacity 0.15s;
}

.ez-pp-list.ez-loading {
  opacity: 0.45;
  pointer-events: none;
}

.ez-pp-cat {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 30px 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center;
  outline: none;
}

.ez-pp-cat:focus {
  border-color: var(--red);
}

.ez-pp-actions {
  display: grid;
  gap: 4px;
}

.ez-pp-item {
  display: grid;
  grid-template-columns: 18px 52px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: grab;
  transition: border-color 0.15s, background 0.15s;
}

.ez-pp-item:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.ez-pp-item.ez-sel {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-pp-item.ez-pp-dragging {
  opacity: 0.5;
}

.ez-pp-item.ez-pp-nostock .ez-pp-img img {
  opacity: 0.45;
}

.ez-pp-check {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ez-pp-check input {
  accent-color: var(--red);
  cursor: pointer;
}

.ez-pp-img {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ez-pp-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ez-pp-disc {
  position: absolute;
  left: 2px;
  top: 2px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 1px 3px;
}

.ez-pp-info {
  min-width: 0;
}

.ez-pp-info b {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ez-pp-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.ez-pp-price span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red-700);
}

.ez-pp-price s {
  font-size: 10.5px;
  color: var(--ink-3);
}

.ez-pp-info small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-pp-in {
  color: var(--ok);
  font-weight: 600;
}

.ez-pp-out {
  color: var(--red-700);
  font-weight: 600;
}

.ez-pp-copy {
  width: 30px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.ez-pp-copy svg {
  width: 14px;
  height: 14px;
}

.ez-pp-copy:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.ez-pp-copy.ez-ok {
  color: var(--ok);
  border-color: var(--ok-tint);
  background: var(--ok-tint);
}

.ez-pp-copy.ez-err {
  color: var(--red-700);
}

.ez-pp-toast {
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.ez-pp-toast.ez-show {
  opacity: 1;
  transform: none;
}

.ez-db-product.ez-just-added {
  animation: ez-added 1.6s ease-out;
  border-radius: 10px;
}

.ez-pp-add {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-pp-add svg {
  width: 15px;
  height: 15px;
}

.ez-pp-add:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.ez-pp-bar {
  position: sticky;
  bottom: -14px;
  margin: 10px -16px -14px;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 -6px 14px -10px rgba(0, 0, 0, 0.25);
}

.ez-pp-bar span {
  margin-right: auto;
}

.ez-pp-bar[hidden] {
  display: none;
}

.ez-pp-hint {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Bloque recién insertado */
.ez-drop-block.ez-just-added {
  animation: ez-added 1.6s ease-out;
}

@keyframes ez-added {
  0%, 30% {
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.35);
    background: rgba(226, 0, 26, 0.04);
  }
  100% {
    box-shadow: none;
    background: transparent;
  }
}
.ez-blk {
  cursor: pointer;
}

/* ===== Panel IA ===== */
.ez-ai-setup {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.45;
}

.ez-ai-setup b {
  font-size: 12.5px;
}

.ez-ai-setup .ez-btn {
  justify-self: start;
  margin-top: 4px;
  text-decoration: none;
}

.ez-ai-msg a {
  color: inherit;
  font-weight: 700;
}

.ez-ai-setup code {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--ink);
}

#aiBrief {
  line-height: 1.45;
}

.ez-ai-tones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ez-ai-tones button {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 4px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.ez-ai-tones button.ez-on {
  background: var(--surface);
  color: var(--red-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ez-ai-ctx {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ez-ai-ctx li {
  padding-left: 14px;
  position: relative;
}

.ez-ai-ctx li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
}

.ez-ai-ctx .ez-tok {
  font-size: 10.5px;
}

.ez-ai-off {
  color: var(--ink-3);
}

.ez-ai-go {
  width: 100%;
  justify-content: center;
}

.ez-ai-go svg {
  width: 16px;
  height: 16px;
}

.ez-ai-go.ez-busy svg {
  animation: ez-ai-spin 1.2s linear infinite;
}

@keyframes ez-ai-spin {
  to {
    transform: rotate(360deg);
  }
}
.ez-ai-msg {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-2);
}

.ez-ai-msg.ez-err {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-ai-results {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ez-ai-res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ez-ai-res-head b {
  font-size: 13px;
}

.ez-ai-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 8px;
  background: var(--surface);
}

.ez-ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.ez-ai-card-top label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-ai-card-top .ez-btn.ez-done {
  color: var(--ok);
  border-color: var(--ok-tint);
  background: var(--ok-tint);
}

.ez-ai-card-body {
  display: grid;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}

.ez-ai-card-body b {
  font-size: 13.5px;
}

.ez-ai-card-body em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  justify-self: end;
}

.ez-ai-card-body em.ez-over {
  color: var(--warn);
  font-weight: 700;
}

.ez-ai-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-700);
}

.ez-ai-card .ez-tok {
  font-size: 11px;
}

.ez-db-product {
  position: relative;
}

/* ===== Comparación con Sodimac (interna, nunca se exporta): franja bajo el SKU, no tapa la caluga ===== */
.ez-comp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 4px 3px 9px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.ez-comp:hover {
  border-style: solid;
}

.ez-comp-src {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-comp-price {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.ez-comp-sim {
  font-size: 11px;
  font-weight: 800;
  color: #7a5af8;
  background: #f1edff;
  border-radius: 4px;
  padding: 0 5px;
  line-height: 16px;
}

.ez-comp-pill {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  font-size: 10.5px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eceaea;
  color: var(--ink-2);
}

.ez-comp-above .ez-comp-pill {
  background: #fde8e6;
  color: #c4231a;
}

.ez-comp-equal .ez-comp-pill {
  background: #fff1d6;
  color: #a86400;
}

.ez-comp-below .ez-comp-pill {
  background: #e2f6ea;
  color: #0f8a44;
}

.ez-comp-msg {
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ez-comp-none, .ez-comp-wait {
  cursor: default;
}

.ez-comp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: ez-comp-pulse 1s ease-in-out infinite;
}

@keyframes ez-comp-pulse {
  50% {
    opacity: 0.25;
  }
}
.ez-comp-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-width: 300px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: default;
  z-index: 6;
}

.ez-comp-pop[hidden] {
  display: none;
}

.ez-comp-pop b {
  font-size: 13px;
  color: var(--ink);
}

.ez-comp-pop .ez-comp-match {
  color: var(--ok);
  font-weight: 600;
}

.ez-comp-pop a {
  color: #1a5fd1;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
}

.ez-comp-pop .ez-comp-match.ez-similar {
  color: #7a5af8;
}

/* In the Productos panel: smaller */
.ez-pp-comp {
  margin-top: 4px;
  min-height: 0;
}

.ez-pp-comp .ez-comp {
  min-height: 22px;
  padding: 2px 3px 2px 7px;
  font-size: 10.5px;
  display: inline-flex;
  max-width: 100%;
}

.ez-pp-comp .ez-comp-pill {
  font-size: 10px;
  padding: 2px 6px;
}

.ez-pp-comp .ez-comp-pop {
  width: 240px;
  right: auto;
}

.ez-pp-item {
  position: relative;
}

/* Comparador pane (Easy vs Sodimac, internal) */
.ez-cmp-intro {
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ez-cmp-s {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b3e91;
  color: #ffd200;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.ez-cmp-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.ez-cmp-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--surface);
}

.ez-cmp-chip b {
  font-weight: 800;
  margin-left: 2px;
}

.ez-cmp-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

.ez-cmp-chip.ez-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ez-cmp-chip-above b {
  color: #d92d20;
}

.ez-cmp-chip-equal b {
  color: #c77700;
}

.ez-cmp-chip-below b {
  color: #12a150;
}

.ez-cmp-chip.ez-on b {
  color: #fff;
}

.ez-cmp-list {
  display: grid;
  gap: 6px;
}

.ez-cmp-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px 7px 7px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ez-cmp-row:hover {
  background: var(--surface-2);
}

.ez-cmp-above {
  border-left-color: #d92d20;
}

.ez-cmp-equal {
  border-left-color: #e98a00;
}

.ez-cmp-below {
  border-left-color: #12a150;
}

.ez-cmp-none, .ez-cmp-wait {
  opacity: 0.8;
}

.ez-cmp-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ez-cmp-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ez-cmp-info {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ez-cmp-info b {
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-cmp-info small {
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-cmp-info .ez-cmp-prices {
  color: var(--ink-2);
}

.ez-cmp-info .ez-cmp-prices a {
  color: #1a5fd1;
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}

.ez-cmp-info .ez-cmp-prices b {
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.ez-cmp-info .ez-cmp-note {
  color: var(--ink-2);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ez-cmp-val {
  display: grid;
  justify-items: end;
  gap: 1px;
  text-align: right;
}

.ez-cmp-val em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.ez-cmp-val small {
  font-size: 9.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.ez-cmp-val a {
  font-size: 10px;
  font-weight: 700;
  color: #1a5fd1;
  text-decoration: none;
  white-space: nowrap;
}

.ez-cmp-above .ez-cmp-val em {
  color: #d92d20;
}

.ez-cmp-equal .ez-cmp-val em {
  color: #c77700;
}

.ez-cmp-below .ez-cmp-val em {
  color: #12a150;
}

.ez-cmp-none .ez-cmp-val em {
  color: var(--ink-3);
}

.ez-cmp-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ez-cmp-foot .ez-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.ez-cmp-flash {
  animation: ez-cmp-flash 1.6s ease;
}

@keyframes ez-cmp-flash {
  0%, 40% {
    box-shadow: 0 0 0 4px rgba(11, 62, 145, 0.45);
    border-radius: 12px;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 62, 145, 0);
  }
}
/* Herramientas por caluga (solo editor) */
.ez-sku-row {
  position: relative;
}

.ez-cell-tools {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface-2);
  opacity: 0.55;
  transition: opacity 0.15s;
}

.ez-db-product:hover .ez-cell-tools, .ez-cell-tools:focus-within {
  opacity: 1;
}

.ez-cell-tools button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ez-cell-tools button:hover:not(:disabled) {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.ez-cell-tools button:disabled {
  opacity: 0.25;
  cursor: default;
}

.ez-cell-tools .ez-cell-del:hover:not(:disabled) {
  color: var(--red-700);
}

.ez-cell-grip {
  width: 18px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  cursor: grab;
}

.ez-cell-grip svg {
  width: 13px;
  height: 13px;
}

.ez-sku-grid > .ez-db-product, .ez-db-carousel > .ez-db-product {
  position: relative;
  cursor: grab;
}

.ez-sku-grid > .ez-db-product [contenteditable], .ez-sku-grid > .ez-db-product input {
  cursor: text;
}

.ez-cell-x {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 6;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: 0.15s;
}

.ez-cell-x svg {
  width: 14px;
  height: 14px;
}

.ez-db-product:hover > .ez-cell-x {
  opacity: 1;
  transform: none;
}

.ez-cell-x:hover {
  background: var(--red-700);
  color: #fff;
}

.ez-cell-dragging {
  opacity: 0.35;
}

.ez-cell-before {
  box-shadow: -4px 0 0 0 var(--red);
}

.ez-cell-after {
  box-shadow: 4px 0 0 0 var(--red);
}

.ez-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-2);
}

.ez-sort-bar[hidden] {
  display: none;
}

.ez-sort-count {
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
}

.ez-sort-bar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.ez-sort-bar select {
  font: inherit;
  font-size: 12px;
  padding: 5px 26px 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background-color: #fff;
}

.ez-sort-mix input {
  accent-color: var(--red);
}

.ez-sort-undo {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

.ez-sort-undo:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-cell-tools svg {
  width: 13px;
  height: 13px;
}

.ez-sku-row .ez-sku-input {
  min-width: 0;
  flex: 1;
}

.ez-grid-odd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff7e0;
  border: 1px dashed #e8b400;
  font-size: 12px;
  color: #7a5a00;
}

.ez-grid-odd span {
  margin-right: auto;
  font-weight: 600;
}

.ez-grid-odd button {
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #e8c766;
  background: #fff;
  color: #7a5a00;
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
}

.ez-grid-odd button:hover {
  border-color: #c79a00;
}

/* Estructura / HTML */
.ez-modal-card.struct {
  width: min(860px, 100vw - 32px);
}

.ez-struct-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.ez-struct-tabs button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-struct-tabs button.ez-on {
  background: var(--ink);
  color: #fff;
}

.ez-struct-meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-struct-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink-3);
}

.ez-struct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 60vh;
  overflow: auto;
}

.ez-struct-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.12s;
}

.ez-struct-list li:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-struct-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.ez-struct-list b {
  font-size: 13px;
}

.ez-struct-list em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #a86400;
}

.ez-struct-list small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-struct-list code {
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
}

.ez-struct-code {
  width: 100%;
  height: 56vh;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-2);
  resize: vertical;
  white-space: pre;
  overflow: auto;
}

.ez-struct-acts {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* segments / variantes */
.ez-seg {
  padding: 16px;
}

.ez-seg .ez-seg-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ez-seg .ez-seg-h b {
  font-family: "Montserrat";
  font-size: 15px;
}

.ez-seg .ez-meta {
  display: flex;
  gap: 18px;
  margin: 14px 0;
}

.ez-seg .ez-meta div span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

.ez-seg .ez-meta div b {
  font-family: "Montserrat";
  font-size: 18px;
}

.ez-thumb {
  height: 90px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red-tint), var(--red-tint-2));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.ez-thumb svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.ez-thumb b {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  background: #fff;
  color: var(--red-700);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: "Montserrat";
  font-weight: 700;
}

/* catalog */
.ez-cat {
  padding: 0;
  overflow: hidden;
}

.ez-cat .ez-img {
  height: 120px;
  background: linear-gradient(135deg, #f3eeec, #e6dedb);
  display: grid;
  place-items: center;
  color: #c3b6b2;
  position: relative;
}

.ez-cat .ez-img svg {
  width: 40px;
  height: 40px;
}

.ez-cat .ez-meta {
  padding: 13px 14px;
}

.ez-cat .ez-meta b {
  font-size: 13px;
}

.ez-cat .ez-meta .ez-price {
  color: var(--red-700);
  font-weight: 700;
  margin-top: 3px;
}

.ez-cat .ez-meta .ez-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

/* calendar */
.ez-cal {
  padding: 16px;
}

.ez-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.ez-cal-grid .ez-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
}

.ez-cal-cell {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: var(--surface-2);
}

.ez-cal-cell .ez-d {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 5px;
}

.ez-cal-cell.ez-today {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-cal-cell.ez-today .ez-d {
  color: var(--red-700);
}

.ez-cal-ev {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ez-cal-ev.ez-r {
  background: var(--red);
  color: #fff;
}

.ez-cal-ev.ez-g {
  background: var(--ok-tint);
  color: var(--ok);
}

.ez-cal-ev.ez-a {
  background: var(--warn-tint);
  color: var(--warn);
}

.ez-cal-ev i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* kanban */
.ez-kb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

.ez-kb-col {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
}

.ez-kb-col .ez-kh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-weight: 700;
  font-size: 12.5px;
}

.ez-kb-col .ez-kh .ez-badge {
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 20px;
  color: var(--ink-3);
}

.ez-kb-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
}

.ez-kb-card b {
  font-size: 12.5px;
  display: block;
}

.ez-kb-card .ez-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin: 3px 0 9px;
}

.ez-kb-card .ez-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ez-av-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.ez-kb-card .ez-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 2px;
}

.ez-kb-card .ez-bar i {
  display: block;
  height: 100%;
  background: var(--red);
}

/* team */
.ez-member {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ez-member .ez-av {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a3537, #1a1416);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

/* integration cards */
.ez-intg {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ez-intg .ez-lg {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.ez-intg b {
  font-size: 15px;
  font-family: "Montserrat";
}

.ez-intg p {
  font-size: 12.5px;
  color: var(--ink-2);
}

.ez-note {
  background: var(--red-tint);
  border: 1px solid var(--red-tint-2);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--red-700);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.ez-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

/* ===== Brand logo Easy ===== */
.ez-brand .ez-mark.ez-logo {
  background: transparent;
  box-shadow: none;
  width: auto;
  height: 30px;
  border-radius: 0;
  place-items: center;
}

.ez-brand .ez-mark.ez-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* ===== Equipo ===== */
.ez-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}

.ez-team-name h1 {
  margin: 0;
}

.ez-team-name [hidden] {
  display: none !important;
}

.ez-team-name .ez-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--ink-3);
}

.ez-team-name .ez-icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
}

.ez-team-name .ez-icon-btn svg {
  width: 16px;
  height: 16px;
}

.ez-team-name-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ez-team-name-edit input {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--red);
  border-radius: 10px;
  outline: none;
  min-width: 260px;
  color: var(--ink);
  background: var(--surface);
}

.ez-page-head > .ez-btn svg {
  width: 17px;
  height: 17px;
}

.ez-team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .ez-team-stats {
    grid-template-columns: 1fr;
  }
}
.ez-team-stats .ez-card {
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.ez-team-stats b {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  line-height: 1;
}

.ez-team-stats span {
  font-size: 13px;
  color: var(--ink-2);
}

.ez-team-stats .ez-warn {
  border-color: var(--warn-tint);
  background: var(--warn-tint);
}

.ez-team-stats .ez-warn b, .ez-team-stats .ez-warn span {
  color: var(--warn);
}

.ez-team-stats a.ez-card:hover {
  border-color: var(--line-2);
}

.ez-team-tbl {
  min-width: 760px;
}

.ez-team-tbl th {
  background: var(--surface-2);
  padding: 10px 16px;
  white-space: nowrap;
}

.ez-team-tbl td {
  padding: 12px 16px;
}

.ez-team-tbl tr[hidden] {
  display: none;
}

.ez-member .ez-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-member .ez-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.ez-you {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-700);
  background: var(--red-tint);
  border-radius: 5px;
  padding: 1px 6px;
}

.ez-team-dlg {
  margin: auto;
  inset: 0;
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: 480px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  color: var(--ink);
}

.ez-team-dlg::backdrop {
  background: rgba(26, 20, 22, 0.45);
  backdrop-filter: blur(2px);
}

.ez-team-dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.ez-team-dlg-head b {
  font-size: 15px;
}

.ez-team-dlg-head .ez-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
}

.ez-team-dlg-head .ez-icon-btn svg {
  width: 16px;
  height: 16px;
}

.ez-team-dlg-body {
  padding: 18px 20px 4px;
}

.ez-team-dlg-body .ez-note {
  margin: 0 0 14px;
}

.ez-team-dlg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.ez-pass-row {
  display: flex;
  gap: 6px;
}

.ez-pass-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}

.ez-team-dlg .ez-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.ez-team-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 6px);
  z-index: 50;
  margin: 0;
}

.ez-team-toast.ez-show {
  transform: translate(-50%, 0);
}

/* Reglas de contraseña (en vivo) */
.ez-pass-rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-pass-rules li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ez-pass-rules li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex: none;
  box-sizing: border-box;
}

.ez-pass-rules li.ez-ok {
  color: var(--ok);
}

.ez-pass-rules li.ez-ok::before {
  border-color: var(--ok);
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M3 6.2l2 2 4-4.4'/%3E%3C/svg%3E") center/10px no-repeat;
}

.ez-pass-match {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--red-700);
}

.ez-pass-match[hidden] {
  display: none;
}

/* Roles y validación de alta */
.ez-team-ro {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-2);
}

.ez-role-form {
  margin: 0;
}

.ez-role-select {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 4px 26px 4px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink);
  outline: none;
}

.ez-role-select:focus {
  border-color: var(--red);
}

.ez-role-select.ez-role-admin {
  color: var(--red-700);
  border-color: var(--red-tint-2);
  background-color: var(--red-tint);
}

.ez-role-select.ez-role-approver {
  color: var(--ok);
  border-color: var(--ok-tint);
  background-color: var(--ok-tint);
}

.ez-role-select.ez-role-viewer {
  color: var(--ink-3);
}

.ez-pending {
  color: var(--warn);
  font-weight: 600;
}

.ez-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 520px) {
  .ez-role-cards {
    grid-template-columns: 1fr;
  }
}
.ez-role-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ez-role-card:has(input:checked) {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-role-card input {
  margin-top: 2px;
  accent-color: var(--red);
}

.ez-role-card b {
  display: block;
  font-size: 12.5px;
}

.ez-role-card small {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.35;
  margin-top: 2px;
}

.ez-field-err {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--red-700);
  font-weight: 600;
}

.ez-field-err:empty {
  display: none;
}

.ez-field-warn {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--warn);
}

.ez-field-warn[hidden] {
  display: none;
}

.ez-field input.ez-invalid {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-team-dlg {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

/* Cuenta en la barra superior */
a.ez-org {
  text-decoration: none;
  color: inherit;
}

a.ez-org:hover {
  border-color: var(--line-2);
}

.ez-org-txt {
  display: grid;
  line-height: 1.15;
}

.ez-org-txt small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
}

/* ===== Analítica ===== */
.ez-an-period select {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 32px 9px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  color: var(--ink);
}

.ez-an-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--warn-tint);
  border-color: var(--warn-tint);
  color: var(--warn);
}

.ez-an-demo form {
  margin: 0;
}

.ez-an-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .ez-an-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .ez-an-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
.ez-an-kpis .ez-card {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}

.ez-an-kpis span {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}

.ez-an-kpis b {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}

.ez-an-kpis small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-an-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .ez-an-grid {
    grid-template-columns: 1fr;
  }
}
.ez-an-grid-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

@media (max-width: 1100px) {
  .ez-an-grid-wide {
    grid-template-columns: 1fr;
  }
}
.ez-an-card {
  padding: 18px 20px;
  min-width: 0;
}

.ez-an-card h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.ez-an-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.ez-an-cols {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  margin-top: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.ez-an-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  cursor: default;
}

.ez-an-col i {
  display: block;
  width: 100%;
  max-width: 38px;
  background: var(--red);
  border-radius: 4px 4px 0 0;
  transition: opacity 0.15s;
}

.ez-an-col:hover i {
  opacity: 0.75;
}

.ez-an-col em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.ez-an-col span {
  position: absolute;
  bottom: -20px;
  font-size: 11px;
  color: var(--ink-3);
}

.ez-an-bar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 12.5px;
}

.ez-an-bar span {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-an-bar > div {
  height: 10px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.ez-an-bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 0 4px 4px 0;
}

.ez-an-bar:hover i {
  opacity: 0.75;
}

.ez-an-bar b {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.ez-an-tbl {
  margin-top: 8px;
}

.ez-an-tbl th {
  padding: 8px 10px;
  background: var(--surface-2);
}

.ez-an-tbl td {
  padding: 9px 10px;
  font-size: 12.5px;
}

/* ===== Crear con IA ===== */
.ez-aic {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 1080px) {
  .ez-aic {
    grid-template-columns: 1fr;
  }
}
.ez-aic-brief {
  padding: 20px 22px;
  position: sticky;
  top: 16px;
}

.ez-aic-brief textarea {
  line-height: 1.5;
}

.ez-aic-brief .ez-hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-aic-brief .ez-hint a {
  color: var(--red-700);
}

.ez-aic-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.ez-aic-examples button {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-aic-examples button:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-aic-go {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.ez-aic-go svg {
  width: 16px;
  height: 16px;
}

.ez-aic-empty {
  padding: 24px 26px;
}

.ez-aic-empty h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.ez-aic-empty ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.ez-aic-empty b {
  color: var(--ink);
}

.ez-aic-loading {
  padding: 40px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.ez-aic-loading[hidden] {
  display: none;
}

.ez-aic-loading b {
  font-size: 15px;
}

.ez-aic-loading small {
  color: var(--ink-3);
  font-size: 12.5px;
}

.ez-aic-plan {
  padding: 20px 22px;
}

.ez-aic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ez-aic-head > div {
  flex: 1;
  min-width: 0;
}

.ez-aic-head small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-700);
}

.ez-aic-name {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2px 6px;
  margin-left: -7px;
  width: 100%;
  color: var(--ink);
  background: none;
  outline: none;
}

.ez-aic-name:hover, .ez-aic-name:focus {
  border-color: var(--line-2);
  background: var(--surface);
}

.ez-aic-why {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.ez-aic-warn {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 12px;
  line-height: 1.5;
}

.ez-aic-plan label em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
}

.ez-aic-plan label em.ez-over {
  color: var(--warn);
  font-weight: 700;
}

.ez-aic-plan h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin: 14px 0 8px;
}

.ez-aic-plan h4 small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.ez-aic-vars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.ez-aic-var {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}

.ez-aic-var.ez-base {
  background: var(--surface-2);
}

.ez-aic-var-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-aic-var-top input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 4px;
  background: none;
  color: var(--ink);
  outline: none;
}

.ez-aic-var-top input:focus {
  border-color: var(--line-2);
  background: var(--surface);
}

.ez-aic-var-top .ez-icon-btn {
  width: 26px;
  height: 26px;
}

.ez-aic-var-top .ez-icon-btn svg {
  width: 13px;
  height: 13px;
}

.ez-aic-rule {
  display: block;
  font-size: 11.5px;
  color: var(--red-700);
  font-weight: 600;
  margin: 3px 0 0 4px;
}

.ez-aic-var p {
  margin: 6px 0 0 4px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}

.ez-aic-var .ez-aic-over {
  color: var(--ink-3);
  font-size: 11.5px;
}

.ez-aic-var .ez-tok, .ez-aic-blocks .ez-tok {
  font-size: 11px;
}

.ez-aic-blocks {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.ez-aic-blocks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.ez-aic-blocks li:last-child {
  border-bottom: 0;
}

.ez-aic-blocks li:hover {
  background: var(--surface-2);
}

.ez-aic-blocks svg {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.ez-aic-blocks li > div {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-aic-blocks li span {
  color: var(--ink-2);
}

.ez-aic-ctl {
  display: flex;
  gap: 2px;
}

.ez-aic-ctl button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
}

.ez-aic-ctl button:hover:not(:disabled) {
  background: var(--surface);
  color: var(--ink);
}

.ez-aic-ctl button:disabled {
  opacity: 0.3;
  cursor: default;
}

.ez-aic-ctl button[data-bdel]:hover {
  color: var(--red-700);
}

.ez-aic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

/* Crear con IA: progreso en vivo */
.ez-aic-live {
  padding: 20px 22px;
}

.ez-aic-live[hidden] {
  display: none;
}

.ez-aic-live-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ez-aic-live-head b {
  display: block;
  font-size: 15px;
}

.ez-aic-live-head small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ez-aic-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
}

.ez-aic-orb {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), #ff8a5b, #ffd166, var(--red));
  animation: ez-orb 1.6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px);
  mask: radial-gradient(circle, transparent 9px, #000 10px);
}

@keyframes ez-orb {
  to {
    transform: rotate(360deg);
  }
}
.ez-aic-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 420px;
  overflow: auto;
}

.ez-aic-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink);
  animation: ez-step-in 0.35s ease-out both;
}

@keyframes ez-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ez-aic-steps li i {
  font-style: normal;
  font-size: 15px;
  text-align: center;
}

.ez-aic-steps li em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ez-aic-steps li.ez-doing {
  background: var(--red-tint);
}

.ez-aic-steps li.ez-doing span::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: ez-dots 1.2s steps(4, end) infinite;
}

@keyframes ez-dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
.ez-aic-steps li.ez-done {
  color: var(--ink-2);
}

.ez-aic-steps li.ez-done i {
  filter: grayscale(0.2);
}

.ez-aic-steps li.ez-k-subject span, .ez-aic-steps li.ez-k-variant span {
  font-weight: 600;
  color: var(--ink);
}

.ez-aic-steps li.ez-k-block span, .ez-aic-steps li.ez-k-products span {
  padding-left: 2px;
}

.ez-aic-steps .ez-tok {
  font-size: 11px;
}

/* ===== Competencia ===== */
.ez-cmp-check {
  display: flex;
  gap: 8px;
}

.ez-cmp-check input {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  width: 240px;
  outline: none;
  background: var(--surface);
}

.ez-cmp-check input:focus {
  border-color: var(--red);
}

.ez-cmp-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .ez-cmp-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ez-cmp-kpis .ez-card {
  padding: 14px 16px;
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  border-top: 3px solid transparent;
  transition: border-color 0.15s;
}

.ez-cmp-kpis .ez-card.ez-on {
  border-color: var(--ink);
}

.ez-cmp-kpis b {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.ez-cmp-kpis span {
  font-size: 12.5px;
  font-weight: 600;
}

.ez-cmp-kpis small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-cmp-kpis .ez-k-above span {
  color: #d92d20;
}

.ez-cmp-kpis .ez-k-above.ez-on {
  border-top-color: #d92d20;
}

.ez-cmp-kpis .ez-k-equal span {
  color: #c77700;
}

.ez-cmp-kpis .ez-k-equal.ez-on {
  border-top-color: #e98a00;
}

.ez-cmp-kpis .ez-k-below span {
  color: #12a150;
}

.ez-cmp-kpis .ez-k-below.ez-on {
  border-top-color: #12a150;
}

.ez-cmp-kpis .ez-k-none span {
  color: var(--ink-3);
}

.ez-cmp-tbl {
  min-width: 980px;
}

.ez-cmp-tbl th {
  background: var(--surface-2);
  padding: 10px 14px;
  white-space: nowrap;
}

.ez-cmp-tbl td {
  padding: 11px 14px;
  vertical-align: top;
}

.ez-cmp-tbl tr[hidden] {
  display: none;
}

.ez-cmp-tbl input[type=checkbox] {
  accent-color: var(--red);
}

.ez-cmp-name {
  display: block;
  max-width: 300px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

a.ez-cmp-name:hover {
  color: var(--red-700);
  text-decoration: underline;
}

.ez-cmp-tbl .ez-aud-by a {
  color: #1a5fd1;
  font-weight: 600;
  text-decoration: none;
}

.ez-cmp-price {
  font-weight: 700;
  color: var(--ink);
}

.ez-cmp-compname {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-cmp-tbl a {
  color: #1a5fd1;
  text-decoration: none;
  font-weight: 600;
}

.ez-cmp-verdict {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.ez-v-above {
  color: #d92d20;
}

.ez-v-equal {
  color: #c77700;
}

.ez-v-below {
  color: #12a150;
}

.ez-cmp-match {
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink-2);
}

.ez-m-modelo, .ez-m-ia {
  background: var(--ok-tint);
  color: var(--ok);
}

.ez-m-similar {
  background: #f1edff;
  color: #7a5af8;
}

/* ===== Calendario Planner (v2) con clima ===== */
.ez-cal2-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ez-cal2-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-cal2-nav h2 {
  font-size: 20px;
  margin: 0 10px 0 6px;
  min-width: 200px;
}

.ez-cal2-arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: 0.15s;
}

.ez-cal2-arrow:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-cal2-arrow svg {
  width: 16px;
  height: 16px;
}

.ez-cal2-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ez-cal2-city {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 10px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
}

.ez-cal2-city svg {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.ez-cal2-city select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  padding: 6px 4px;
  cursor: pointer;
}

.ez-cal2-seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.ez-cal2-seg a {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
}

.ez-cal2-seg a.ez-on {
  background: #fff;
  color: var(--red-700);
  box-shadow: var(--shadow);
}

.ez-cal2-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ez-cal2-alerts .ez-wx-tag {
  font-size: 11.5px;
  padding: 5px 10px;
}

.ez-cal2 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ez-cal2-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.ez-cal2-head div {
  padding: 10px 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-cal2-head .ez-we {
  color: var(--red-700);
}

.ez-cal2-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ez-cal2-cell {
  position: relative;
  min-height: 128px;
  padding: 8px 8px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  transition: background 0.15s;
}

.ez-cal2-cell:nth-child(7n) {
  border-right: 0;
}

.ez-cal2-cell.ez-we {
  background: #fcfbfa;
}

.ez-cal2-cell:hover {
  background: var(--surface-2);
}

.ez-cal2-cell.ez-other {
  background: repeating-linear-gradient(135deg, #fbfaf9 0 6px, #f6f3f2 6px 12px);
}

.ez-cal2-cell.ez-other > * {
  opacity: 0.5;
}

.ez-cal2-week .ez-cal2-cell {
  min-height: 340px;
}

.ez-cal2-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.ez-cal2-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.ez-cal2-week .ez-cal2-num {
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 18px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.ez-cal2-num small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ez-cal2-cell.ez-past .ez-cal2-num {
  color: var(--ink-3);
}

.ez-cal2-cell.ez-today .ez-cal2-num {
  background: var(--red);
  color: #fff;
}

.ez-cal2-cell.ez-today .ez-cal2-num small {
  color: rgba(255, 255, 255, 0.85);
}

.ez-cal2-cell.ez-today {
  box-shadow: inset 0 0 0 2px var(--red);
}

/* Clima */
.ez-wx {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px 3px 5px;
  border-radius: 20px;
  background: var(--surface-2);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.ez-wx svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ez-wx b {
  font-weight: 800;
  color: var(--ink);
}

.ez-wx small {
  font-weight: 600;
  color: var(--ink-3);
  font-size: 10px;
}

.ez-wx-i-sun svg {
  color: #f39200;
}

.ez-wx-i-partly svg {
  color: #e6a100;
}

.ez-wx-i-cloud svg, .ez-wx-i-fog svg {
  color: #8a8186;
}

.ez-wx-i-drizzle svg, .ez-wx-i-rain svg, .ez-wx-i-storm svg {
  color: #2f6fdc;
}

.ez-wx-i-snow svg {
  color: #5aa9e6;
}

.ez-wx-i-rain, .ez-wx-i-storm, .ez-wx-i-drizzle {
  background: #eaf2ff;
}

.ez-wx-ref {
  opacity: 0.6;
  border: 1px dashed var(--line-2);
  background: transparent;
}

.ez-cal2-week .ez-wx {
  padding: 6px 10px 6px 7px;
  font-size: 14px;
}

.ez-cal2-week .ez-wx svg {
  width: 22px;
  height: 22px;
}

.ez-cal2-week .ez-wx small {
  font-size: 12px;
}

.ez-wx-tag {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.35;
  cursor: help;
}

.ez-wx-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.ez-wx-rain {
  background: #eaf2ff;
  color: #1f5fc9;
}

.ez-wx-hot {
  background: #fff1e0;
  color: #c45a00;
}

.ez-wx-cold {
  background: #e9f6fb;
  color: #127a9c;
}

.ez-cal2-week .ez-wx-tag {
  font-weight: 600;
  font-size: 11px;
  padding: 6px 8px;
  align-items: flex-start;
}

.ez-cal2-week .ez-wx-tag::before {
  margin-top: 5px;
}

/* Envíos */
.ez-cal2-evs {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ez-cal2-ev {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--st);
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  transition: 0.15s;
  --st:#b9b1b4;
}

.ez-cal2-ev:hover {
  border-color: var(--st);
  box-shadow: var(--shadow);
}

.ez-cal2-ev i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--st);
  flex: none;
}

.ez-cal2-ev time {
  font-weight: 700;
  color: var(--ink-3);
  font-size: 10px;
  flex: none;
}

.ez-cal2-ev span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.ez-cal2-week .ez-cal2-ev {
  padding: 7px 9px;
  font-size: 12px;
}

.ez-cal2-week .ez-cal2-ev span {
  white-space: normal;
}

.ez-st-brief {
  --st:#b9b1b4;
}

.ez-st-design {
  --st:#8b7cf6;
}

.ez-st-review {
  --st:#e98a00;
}

.ez-st-approved {
  --st:#12a150;
}

.ez-st-scheduled {
  --st:#e2001a;
}

.ez-st-sent {
  --st:#2f6fdc;
}

.ez-cal2-add {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  border-radius: 7px;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transition: 0.15s;
}

.ez-cal2-add svg {
  width: 12px;
  height: 12px;
}

.ez-cal2-cell:hover .ez-cal2-add, .ez-cal2-week .ez-cal2-add {
  opacity: 1;
}

.ez-cal2-add:hover {
  border-color: var(--red);
  color: var(--red-700);
  background: var(--red-tint);
}

.ez-cal2-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.ez-cal2-legend > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ez-cal2-legend .ez-cal2-ev {
  cursor: default;
}

.ez-cal2-legend p {
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .ez-cal2-grid, .ez-cal2-head {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
  }
  .ez-cal2 {
    overflow-x: auto;
  }
}
/* ===== Biblioteca (KV y material gráfico por campaña) ===== */
.ez-lib-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ez-lib-crumb a {
  color: inherit;
  text-decoration: none;
}

.ez-lib-crumb a:hover {
  color: var(--red-700);
}

.ez-lib-crumb b {
  color: var(--ink-2);
}

.ez-lib-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ez-lib-title i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}

.ez-lib-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ez-lib-pick {
  cursor: pointer;
}

.ez-lib-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  width: 280px;
}

.ez-lib-search svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  flex: none;
}

.ez-lib-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  width: 100%;
}

.ez-lib-menu {
  position: relative;
}

.ez-lib-menu-btn {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.ez-lib-menu-btn svg {
  width: 18px;
  height: 18px;
}

.ez-lib-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}

.ez-lib-menu-pop[hidden] {
  display: none;
}

.ez-lib-menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ez-lib-menu-pop button:hover {
  background: var(--surface-2);
}

.ez-danger {
  color: var(--red-700) !important;
}

.ez-lib-stats {
  display: flex;
  gap: 18px;
  margin: -4px 0 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.ez-lib-stats b {
  color: var(--ink);
  font-weight: 800;
}

.ez-lib-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 6px 0 12px;
}

.ez-lib-h a {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--red-700);
  font-weight: 600;
}

/* Carpetas */
.ez-lib-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.ez-lib-folders-sm {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.ez-lib-folder {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.ez-lib-folder:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 20, 22, 0.12);
  border-color: var(--fc);
}

.ez-lib-cover {
  position: relative;
  height: 150px;
  display: grid;
  gap: 2px;
  background: color-mix(in srgb, var(--fc) 10%, #fff);
  border-bottom: 3px solid var(--fc);
}

.ez-lib-folders-sm .ez-lib-cover {
  height: 110px;
}

.ez-lib-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
  background: #fff;
}

.ez-lib-cover-2 {
  grid-template-columns: 1fr 1fr;
}

.ez-lib-cover-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ez-lib-cover-3 img:first-child {
  grid-row: span 2;
}

.ez-lib-cover-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ez-lib-cover-0 {
  place-items: center;
}

.ez-lib-cover-0 svg {
  width: 54px;
  height: 54px;
  color: var(--fc);
  opacity: 0.55;
}

.ez-lib-folder-body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.ez-lib-folder-body b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 800;
}

.ez-lib-folder-body b i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--fc);
  flex: none;
}

.ez-lib-folder-body p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ez-lib-folder-body small {
  font-size: 11px;
  color: var(--ink-3);
}

/* Archivos */
.ez-lib-filesbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ez-lib-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ez-lib-kinds a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
}

.ez-lib-kinds a b {
  color: var(--ink-3);
  font-weight: 700;
  margin-left: 2px;
}

.ez-lib-kinds a.ez-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ez-lib-kinds a.ez-on b {
  color: rgba(255, 255, 255, 0.7);
}

.ez-lib-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.ez-lib-file {
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.ez-lib-file:hover {
  box-shadow: 0 12px 28px rgba(26, 20, 22, 0.1);
  border-color: var(--line-2);
}

.ez-lib-file.ez-lib-new {
  animation: ez-lib-new 1.8s ease-out;
}

@keyframes ez-lib-new {
  0%, 30% {
    box-shadow: 0 0 0 3px var(--red);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.ez-lib-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4/3;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  background: #fff conic-gradient(#f3f0ef 25%, #fff 0 50%, #f3f0ef 0 75%, #fff 0) 0 0/16px 16px;
}

.ez-lib-thumb img, .ez-lib-thumb video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.ez-lib-file:hover .ez-lib-thumb img {
  transform: scale(1.04);
}

.ez-lib-play {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
}

.ez-lib-play::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.ez-lib-ext {
  display: grid;
  place-items: center;
  width: 74px;
  height: 90px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

.ez-lib-ext::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(225deg, var(--surface-2) 50%, var(--line-2) 50%);
  border-bottom-left-radius: 4px;
}

.ez-lib-ext-pdf {
  color: #d92d20;
}

.ez-lib-ext-design {
  color: #2f6fdc;
}

.ez-lib-ext-font {
  color: #7a5af8;
}

.ez-lib-ext-archive {
  color: #e98a00;
}

.ez-lib-file-meta {
  padding: 9px 11px 10px;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ez-lib-file-meta b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-lib-file-meta small {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-lib-file-meta small a {
  color: var(--red-700);
  text-decoration: none;
}

.ez-lib-file-acts {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.16s;
}

.ez-lib-file:hover .ez-lib-file-acts, .ez-lib-file:focus-within .ez-lib-file-acts {
  opacity: 1;
  transform: none;
}

.ez-lib-file-acts > * {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}

.ez-lib-file-acts > *:hover {
  color: var(--red-700);
}

.ez-lib-file-acts svg {
  width: 15px;
  height: 15px;
}

/* Vacío / arrastre */
.ez-lib-empty, .ez-lib-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 42px 20px;
  border: 2px dashed var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink-3);
}

.ez-lib-drop[hidden] {
  display: none;
}

.ez-lib-empty svg, .ez-lib-drop svg {
  width: 44px;
  height: 44px;
  color: var(--red);
  opacity: 0.7;
}

.ez-lib-empty b, .ez-lib-drop b {
  font-size: 15px;
  color: var(--ink);
}

.ez-lib-empty span, .ez-lib-drop span {
  font-size: 12.5px;
  max-width: 460px;
  line-height: 1.5;
}

.ez-lib-empty .ez-btn, .ez-lib-drop .ez-btn {
  margin-top: 8px;
  cursor: pointer;
}

.ez-lib-empty-big {
  padding: 70px 20px;
}

.ez-lib-dragover {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(226, 0, 26, 0.08);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ez-lib-dragover[hidden] {
  display: none;
}

.ez-lib-dragover > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 46px;
  border-radius: 22px;
  border: 2.5px dashed var(--red);
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.ez-lib-dragover svg {
  width: 48px;
  height: 48px;
  color: var(--red);
}

.ez-lib-dragover b {
  font-size: 16px;
}

.ez-lib-uploads {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  display: grid;
  gap: 8px;
  width: 320px;
}

.ez-lib-up {
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a1416;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 4px;
  font-size: 12px;
  animation: ez-dp-in 0.18s ease-out;
}

.ez-lib-up span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  max-height: 72px;
  overflow: auto;
}

.ez-lib-up i {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-top: 4px;
}

.ez-lib-up em {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.2s;
}

.ez-lib-up.ez-ok i, .ez-lib-up.ez-err i {
  display: none;
}

.ez-lib-up.ez-err {
  background: #7a0b17;
}

.ez-lib-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 960;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1a1416;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  animation: ez-dp-in 0.16s ease-out;
}

/* Diálogos */
.ez-lib-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 14px;
}

.ez-lib-suggest button {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px dashed var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-lib-suggest button:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-lib-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  display: block;
  margin-bottom: 8px;
}

.ez-lib-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.ez-lib-colors input {
  position: absolute;
  opacity: 0;
}

.ez-lib-colors i {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ez-lib-colors input:checked + i {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
  transform: scale(1.05);
}

.ez-lib-view {
  width: min(1100px, 100vw - 32px);
  height: min(720px, 100vh - 32px);
  margin: auto;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.ez-lib-view[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.ez-lib-view::backdrop {
  background: rgba(20, 14, 16, 0.7);
  backdrop-filter: blur(3px);
}

.ez-lib-view-media {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px;
  background: #fff conic-gradient(#f3f0ef 25%, #fff 0 50%, #f3f0ef 0 75%, #fff 0) 0 0/20px 20px;
}

.ez-lib-view-media img, .ez-lib-view-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ez-lib-view-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.ez-lib-view-side {
  position: relative;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  background: var(--surface);
}

.ez-lib-view-side .ez-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.ez-lib-view-side .ez-field > span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.ez-lib-view-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--surface-2);
  border-radius: 9px;
}

.ez-lib-view-x svg {
  width: 15px;
  height: 15px;
}

.ez-lib-view-side .ez-field:first-of-type {
  margin-top: 22px;
}

.ez-lib-view-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.ez-lib-view-url {
  display: flex;
  gap: 6px;
}

.ez-lib-view-url input {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.ez-lib-view-acts {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.ez-lib-view-acts .ez-btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 820px) {
  .ez-lib-view[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .ez-lib-view-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
/* ===== Inicio: saludo con el clima del día ===== */
.ez-hello {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 26px 28px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, #fff 0%, #fff 45%, var(--wx-tint, #fff4f5) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ez-hello::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--wx-glow, rgba(226, 0, 26, 0.08));
  pointer-events: none;
}

.ez-hello-sun, .ez-hello-partly {
  --wx-tint:#fff6e3;
  --wx-glow:rgba(243,146,0,.16);
}

.ez-hello-cloud, .ez-hello-fog {
  --wx-tint:#f1f0f0;
  --wx-glow:rgba(138,129,134,.14);
}

.ez-hello-rain, .ez-hello-drizzle, .ez-hello-storm {
  --wx-tint:#eaf2ff;
  --wx-glow:rgba(47,111,220,.16);
}

.ez-hello-hot {
  --wx-tint:#ffefe0;
  --wx-glow:rgba(240,138,0,.2);
}

.ez-hello-cold, .ez-hello-snow {
  --wx-tint:#e9f6fb;
  --wx-glow:rgba(26,163,201,.16);
}

.ez-hello-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.ez-hello h1 {
  margin: 4px 0 10px;
  font-size: 30px;
}

.ez-hello-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ez-hello-text b {
  color: var(--ink);
}

.ez-hello-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ez-hello-wx {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.ez-hello-now {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
}

.ez-hello-now svg {
  width: 52px;
  height: 52px;
}

.ez-hello-now div {
  display: grid;
  line-height: 1.1;
}

.ez-hello-now b {
  font-size: 34px;
  font-weight: 800;
}

.ez-hello-now span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.ez-hello-now small {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

.ez-hello-next {
  display: flex;
  gap: 6px;
}

.ez-hello-next > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 10px;
  min-width: 62px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  cursor: default;
}

.ez-hello-next small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: capitalize;
}

.ez-hello-next svg {
  width: 22px;
  height: 22px;
}

.ez-hello-next b {
  font-size: 13px;
}

.ez-hello-next span {
  font-size: 10.5px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .ez-hello {
    grid-template-columns: 1fr;
  }
  .ez-hello-wx {
    justify-items: start;
  }
}
/* ===== Inicio: filtros de período, KPIs reales y gráficos ===== */
.ez-dash-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.ez-dash-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.ez-dash-presets a {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
}

.ez-dash-presets a:hover {
  background: var(--surface-2);
}

.ez-dash-presets a.ez-on {
  background: var(--ink);
  color: #fff;
}

.ez-dash-filters select {
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
  font-size: 12.5px;
  background: var(--surface);
}

.ez-dash-cmp {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-dash-demo {
  margin: -6px 0 12px;
  font-size: 11.5px;
  color: #a86400;
}

.ez-dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ez-dash-kpis .ez-trend[title] {
  cursor: help;
}

.ez-dash-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.ez-dash-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ez-dash-h h3 {
  margin: 0;
  font-size: 15px;
}

.ez-dash-h small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-dash-h > a {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-700);
  text-decoration: none;
  white-space: nowrap;
}

.ez-dash-chart, .ez-dash-next, .ez-dash-top, .ez-dash-topics, .ez-dash-prod {
  padding: 16px 18px;
}

.ez-dash-top {
  padding-bottom: 6px;
}

.ez-dash-top .ez-tbl {
  margin: 0 -18px;
  width: calc(100% + 36px);
}

.ez-dash-bars {
  position: relative;
  height: 230px;
  padding-left: 44px;
}

.ez-dash-grid {
  position: absolute;
  inset: 0 0 22px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ez-dash-grid span {
  border-top: 1px dashed var(--line);
  position: relative;
}

.ez-dash-grid i {
  position: absolute;
  right: 100%;
  top: -7px;
  margin-right: 6px;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}

.ez-dash-cols {
  position: absolute;
  inset: 0 0 0 44px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.ez-dash-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  cursor: default;
  outline: none;
}

.ez-dash-col span {
  width: min(100%, 26px);
  background: var(--red);
  border-radius: 4px 4px 0 0;
  margin-bottom: 22px;
  transition: background 0.12s;
  min-height: 0;
}

.ez-dash-col:hover span, .ez-dash-col:focus span {
  background: var(--red-700);
}

.ez-dash-col small {
  position: absolute;
  bottom: 0;
  font-size: 9.5px;
  color: var(--ink-3);
  white-space: nowrap;
  transform: translateX(0);
}

.ez-dash-col {
  position: relative;
}

.ez-dash-tip {
  position: absolute;
  top: -8px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1a1416;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ez-dash-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.ez-dash-empty b {
  color: var(--ink);
  font-size: 14px;
}

.ez-dash-empty a {
  color: var(--red-700);
}

.ez-dash-empty.ez-sm {
  padding: 22px 10px;
}

.ez-dash-up {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 6px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.ez-dash-up + .ez-dash-up {
  border-top: 1px solid var(--line);
}

.ez-dash-up:hover {
  background: var(--surface-2);
}

.ez-dash-up-date {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.ez-dash-up-date b {
  font-size: 18px;
  font-weight: 800;
}

.ez-dash-up-date small {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.ez-dash-up-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ez-dash-up-body b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-dash-up-body small {
  font-size: 11px;
  color: var(--ink-3);
}

.ez-dash-up-body em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #a86400;
}

.ez-dash-topic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 38px;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}

.ez-dash-topic:hover, .ez-dash-topic.ez-on {
  background: var(--surface-2);
}

.ez-dash-topic > span {
  display: grid;
  min-width: 0;
}

.ez-dash-topic b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-dash-topic small {
  font-size: 10.5px;
  color: var(--ink-3);
}

.ez-dash-topic i {
  height: 8px;
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.ez-dash-topic em {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 8px;
}

.ez-dash-topic strong {
  font-size: 12px;
  text-align: right;
}

.ez-dash-prod {
  margin-top: 14px;
}

.ez-dash-prod-in {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.ez-dash-prod-n {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 110px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.ez-dash-prod-n b {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.ez-dash-prod-n span {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.ez-dash-prod-n.ez-bad {
  background: var(--red-tint);
}

.ez-dash-prod-n.ez-bad b {
  color: var(--red-700);
}

.ez-dash-pipe {
  flex: 1;
  min-width: 320px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 110px;
  padding: 0 6px;
}

.ez-dash-pipe-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.ez-dash-pipe-col span {
  width: 100%;
  max-width: 56px;
  border-radius: 5px 5px 0 0;
  background: var(--st);
}

.ez-dash-pipe-col b {
  font-size: 13px;
}

.ez-dash-pipe-col small {
  font-size: 10.5px;
  color: var(--ink-3);
}

@media (max-width: 1200px) {
  .ez-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ez-dash-row {
    grid-template-columns: 1fr;
  }
  .ez-dash-cmp {
    margin-left: 0;
  }
}
/* ===== Editor · Drag & Drop (estético) ===== */
.ez-blk {
  user-select: none;
}

.ez-blk[draggable=true] {
  cursor: grab;
}

.ez-blk[draggable=true]:active {
  cursor: grabbing;
}

.ez-blk.ez-blk-drag {
  opacity: 0.45;
  border-color: var(--red);
}

.ez-m-drop {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 80px;
}

.ez-m-drop.ez-drag-over {
  outline: 2px dashed var(--red);
  outline-offset: 6px;
  border-radius: 12px;
  background: var(--red-tint);
}

.ez-m-drop:empty {
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 2px dashed var(--line-2);
  border-radius: 12px;
}

.ez-m-drop:empty::before {
  content: "Arrastra bloques aquí ✦";
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.ez-drop-block {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: grab;
}

.ez-drop-block:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.ez-drop-block:active {
  cursor: grabbing;
}

.ez-drop-block.ez-dragging {
  opacity: 0.4;
}

.ez-drop-block .ez-m-cta {
  margin-top: 0;
}

.ez-db-del {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 3;
  cursor: pointer;
}

.ez-drop-block:hover .ez-db-del {
  display: grid;
}

.ez-db-del:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.ez-db-del svg {
  width: 12px;
  height: 12px;
}

.ez-db-text {
  font-size: 14px;
  margin: 0;
  padding: 4px 2px;
}

[contenteditable]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--red-tint-2);
  border-radius: 6px;
}

.ez-db-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}

.ez-db-image .ez-db-img-a {
  display: block;
  text-decoration: none;
}

.ez-db-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.ez-db-img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 120px;
  color: #c3b6b2;
  background: linear-gradient(135deg, #f3eeec, #e6dedb);
}

.ez-db-img-ph svg {
  width: 34px;
  height: 34px;
}

.ez-db-img-ph b {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.ez-db-img-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ez-db-image:hover .ez-db-img-edit {
  display: inline-flex;
}

.ez-db-img-edit:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-db-img-edit svg {
  width: 13px;
  height: 13px;
}

/* Redimensionar imagen (overlay tipo Figma) */
#imgRz {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border: 1.5px solid var(--red);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

#imgRz[hidden] {
  display: none;
}

.ez-rz-grip {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 3px;
  pointer-events: auto;
}

.ez-rz-grip.ez-tl {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.ez-rz-grip.ez-tr {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.ez-rz-grip.ez-bl {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.ez-rz-grip.ez-br {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.ez-rz-bar {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  background: #222;
  border-radius: 9px;
  padding: 4px;
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ez-rz-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  background: transparent;
  border: 0;
  color: #cfcfcf;
  border-radius: 6px;
  cursor: pointer;
  font: 600 11px/1 Montserrat, sans-serif;
}

.ez-rz-bar button:hover {
  background: #3a3a3a;
  color: #fff;
}

.ez-rz-bar button.ez-on {
  background: var(--red);
  color: #fff;
}

.ez-rz-bar i {
  width: 1px;
  height: 16px;
  background: #444;
  margin: 0 3px;
}

.ez-rz-bar .ez-rz-w {
  color: #fff;
  font: 600 11px/1 Montserrat, sans-serif;
  padding: 0 6px;
  min-width: 46px;
  text-align: center;
}

.ez-rz-bar svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

#imgRz[data-mode=box] [data-al], #imgRz[data-mode=box] .ez-rz-bar i {
  display: none;
}

/* Diálogo de edición (imagen / enlace) */
.ez-modal-card.ez-dlg {
  width: 460px;
}

.ez-dlg-body {
  padding: 18px;
}

.ez-dlg-preview {
  height: auto;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.ez-dlg-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ez-dlg-preview span {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

.ez-dlg-field {
  margin-bottom: 14px;
}

.ez-dlg-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.ez-dlg-field input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}

.ez-dlg-field input:focus {
  border-color: var(--red);
}

.ez-dlg-row {
  display: flex;
  gap: 8px;
}

.ez-dlg-row input {
  flex: 1;
  min-width: 0;
}

.ez-dlg-up {
  white-space: nowrap;
}

.ez-dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ez-db-divider {
  border: none;
  border-top: 1px solid var(--line-2);
  margin: 6px 0;
}

/* ===== Bloque Huincha frase ===== */
.ez-db-huincha {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  background: #8FBC8F;
}

.ez-hu-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  color: #fff;
  flex: 1;
  min-width: 0;
  outline: none;
}

.ez-hu-disc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #fff;
}

.ez-hu-pre {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 16px;
  outline: none;
}

.ez-hu-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  outline: none;
}

.ez-hu-pctwrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.ez-hu-pct {
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.ez-hu-suf {
  font-weight: 700;
  font-size: 13px;
  outline: none;
}

.ez-hu-color {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ez-db-huincha:hover .ez-hu-color {
  display: inline-flex;
}

.ez-hu-color:hover {
  color: var(--red);
}

.ez-hu-color svg {
  width: 14px;
  height: 14px;
}

/* Diálogo de color */
.ez-color-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ez-color-tabs button {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
}

.ez-color-tabs button.ez-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.ez-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ez-color-row label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  min-width: 70px;
}

.ez-color-row input[type=color] {
  width: 48px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}

.ez-color-row select {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.ez-color-row select:focus {
  border-color: var(--red);
}

.ez-db-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ez-db-carousel .ez-db-product {
  flex: 0 0 170px;
  width: 170px;
}

.ez-db-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px dashed var(--red);
  background: var(--red-tint);
  border-radius: 10px;
  padding: 12px 16px;
}

.ez-db-coupon small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--red-700);
  text-transform: uppercase;
}

.ez-db-coupon b {
  font-size: 18px;
  color: var(--red-700);
  letter-spacing: 0.04em;
}

.ez-db-coupon > span {
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
}

.ez-drop-ind {
  height: 0;
  border-top: 2px solid var(--red);
  margin: -8px 0;
  border-radius: 2px;
  position: relative;
  pointer-events: none;
}

.ez-drop-ind::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* ===== Bloque Cabecera de campaña (hero del correo) ===== */
.ez-m-drop .ez-m-hero {
  border-radius: 12px;
}

.ez-m-hero [contenteditable] {
  outline: none;
}

.ez-m-hero [contenteditable]:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.ez-hero-style {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ez-hero-style svg {
  width: 14px;
  height: 14px;
}

.ez-m-hero:hover .ez-hero-style {
  display: inline-flex;
}

.ez-hero-style:hover {
  color: var(--red);
}

/* Marco sin saludo: logo centrado */
.ez-eh-solo {
  justify-content: center;
}

.ez-eh-solo .ez-eh-badge img {
  height: 64px;
}

/* ===== Producto por SKU (trae foto, nombre, precio y descripción) ===== */
.ez-sku-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.ez-db-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ez-sku-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-sku-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red-tint);
  color: var(--red-700);
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.ez-sku-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.ez-sku-input:focus {
  border-color: var(--red);
}

.ez-sku-card {
  margin: 0;
  width: 100%;
}

/* Título y descripción recortados a N líneas para que la grilla quede pareja */
.ez-sku-card .ez-info > b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tres precios: tarjeta / oferta / normal */
.ez-sku-card .ez-prices {
  margin: 4px 0 2px;
}

.ez-sku-card .ez-pr {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.ez-sku-card .ez-pr b {
  font-weight: 700;
}

.ez-sku-card .ez-pr-card b {
  color: var(--red-700);
  font-size: 19px;
  line-height: 1.1;
}

.ez-sku-card .ez-pr-offer b {
  color: var(--ink);
  font-size: 15px;
}

.ez-sku-card .ez-pr-normal {
  font-size: 11px;
  color: var(--ink-3);
}

.ez-db-product.ez-single .ez-pr-card b {
  font-size: 23px;
}

.ez-db-product.ez-single .ez-pr-offer b {
  font-size: 16px;
}

.ez-sku-card .ez-pr-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.ez-sku-card .ez-pr-offer .ez-pr-tag {
  background: var(--ink);
}

.ez-sku-card .ez-pr-cardlogo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* Botón de fondo de la caluga */
.ez-sku-card .ez-bg-edit {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-sku-card:hover .ez-bg-edit {
  display: grid;
}

.ez-sku-card .ez-bg-edit:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-sku-card .ez-bg-edit svg {
  width: 11px;
  height: 11px;
}

/* Diálogo de fondo */
.ez-bg-dlg .ez-bg-css textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.ez-bg-dlg .ez-bg-css textarea:focus {
  border-color: var(--red);
}

.ez-bg-dlg .ez-color-row code {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 4px;
  border-radius: 4px;
}

.ez-txt-sec {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ez-txt-sec-h {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.ez-txt-sec .ez-txt-modes {
  margin-bottom: 10px;
}

.ez-txt-field {
  margin-bottom: 8px;
}

.ez-txt-field label {
  flex: 1;
}

.ez-txt-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}

.ez-txt-reset:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-txt-reset svg {
  width: 14px;
  height: 14px;
}

.ez-sku-card .ez-desc {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ez-db-product.ez-single .ez-info b {
  -webkit-line-clamp: 3;
}

.ez-db-product.ez-single .ez-desc {
  -webkit-line-clamp: 4;
}

/* Foto del producto: caja de alto fijo y la imagen centrada, completa (sin recortes).
   Las MISMAS reglas van en el CSS de exportación (script.js → emailCss): si cambias
   una, cambia la otra, así la vista previa y el HTML exportado se ven iguales. */
.ez-sku-card .ez-img {
  background: transparent;
  position: relative;
  overflow: hidden;
  height: 150px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ez-sku-card .ez-img img {
  position: static;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

/* En la grilla, la foto va más grande */
.ez-sku-grid .ez-sku-card .ez-img {
  height: 220px;
  padding: 16px;
}

/* Imagen redimensionada a mano (ancho fijo): la caja crece con ella */
.ez-sku-card .ez-img:has(> img[style*=width]) {
  height: auto;
}

.ez-sku-card .ez-img > img[style*=width] {
  max-height: none;
}

/* Botón para cambiar la imagen (solo en el editor) */
.ez-img-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-sku-card .ez-img:hover .ez-img-edit {
  display: grid;
}

.ez-img-edit:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-img-edit svg {
  width: 12px;
  height: 12px;
}

.ez-img-nobg {
  position: absolute;
  top: 6px;
  right: 36px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}

.ez-sku-card .ez-img:hover .ez-img-nobg {
  display: grid;
}

.ez-img-nobg:hover {
  color: var(--red);
  border-color: var(--red);
}

.ez-img-nobg:disabled {
  opacity: 0.5;
  cursor: default;
}

.ez-img-nobg svg {
  width: 12px;
  height: 12px;
}

.ez-sku-card .ez-img.ez-nobg-done .ez-img-nobg {
  display: grid;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Sin fondo: sombra que sigue la silueta del producto (PNG transparente) */
.ez-sku-card .ez-img.ez-nobg-done img {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.ez-img.ez-nobg-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.6) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23E2001A" stroke-width="2"><path d="M12 3a9 9 0 1 0 9 9"/></svg>') center/24px no-repeat;
  animation: sp 0.7s linear infinite;
}

/* CTA "Ver producto" */
.ez-prod-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}

.ez-prod-cta:hover {
  background: var(--red-600);
}

.ez-prod-cta span {
  outline: none;
}

/* Pista visual de que los textos de la ficha son editables */
.ez-sku-card [contenteditable]:hover {
  outline: 1px dashed var(--line-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.ez-sku-card .ez-img.ez-empty {
  color: #c9bdb9;
  background: var(--surface-2);
}

.ez-sku-card .ez-img.ez-empty svg {
  width: 24px;
  height: 24px;
}

.ez-sku-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 120px;
  width: 100%;
  font-size: 12px;
  color: var(--ink-3);
}

/* Producto único: ocupa el 100% del ancho, en layout horizontal */
.ez-db-product.ez-single {
  max-width: none;
}

.ez-db-product.ez-single .ez-sku-card {
  display: flex;
  align-items: stretch;
}

.ez-db-product.ez-single .ez-sku-card .ez-img {
  width: 160px;
  flex: none;
  height: 150px;
  padding: 8px;
}

.ez-db-product.ez-single .ez-sku-card .ez-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ez-db-product.ez-single .ez-sku-loading {
  flex: 1;
}

/* ===== Barra de metadatos del editor ===== */
.ez-editor-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.ez-meta-name {
  flex: 1;
  min-width: 200px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: none;
  outline: none;
  color: var(--ink);
  background: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.ez-meta-name::placeholder {
  color: var(--ink-3);
  font-weight: 600;
}

.ez-meta-name:focus {
  border-bottom-color: var(--red);
}

.ez-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ez-meta-right label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ez-meta-right input[type=date], .ez-meta-status {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.ez-meta-right input[type=date]:focus, .ez-meta-status:focus {
  border-color: var(--red);
}

.ez-save-state {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  min-width: 84px;
  text-align: right;
}

.ez-save-state.ez-saved {
  color: var(--ok);
}

.ez-save-state.ez-saving {
  color: var(--warn);
}

.ez-save-state.ez-error {
  color: var(--red);
}

/* ===== Plantilla Easy Club: cabecera ===== */
.ez-eh-pre {
  background: #f5f3f2;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 10px 14px;
}

.ez-eh-pre a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.ez-eh-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
}

.ez-eh-badge {
  flex: none;
}

.ez-eh-badge img {
  height: 92px;
  width: auto;
  display: block;
}

.ez-eh-greet {
  text-align: right;
  min-width: 0;
}

.ez-eh-hi {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.ez-eh-hi b {
  color: var(--red);
  font-weight: 800;
}

.ez-eh-points {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 4px;
}

.ez-eh-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.ez-eh-nav a {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.ez-eh-nav a:hover {
  color: var(--red);
}

/* ===== Plantilla Easy Club: pie ===== */
.ez-ef-help {
  background: #f5f3f2;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ez-ef-card {
  background: #fff;
  border-radius: 10px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ez-ef-card svg {
  width: 24px;
  height: 24px;
  color: var(--red);
  flex: none;
}

.ez-ef-card span {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
}

.ez-ef-card b {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.ez-ef-bar {
  background: var(--red);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ez-ef-brand small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ez-ef-easy {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  line-height: 1;
}

.ez-ef-easy span {
  color: #FFEF00;
}

.ez-ef-social {
  display: flex;
  gap: 6px;
}

.ez-ef-social a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 7px;
}

.ez-ef-social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ez-ef-social svg {
  width: 18px;
  height: 18px;
}

/* ===== Previsualización de plantillas ===== */
.ez-tpl-hero {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  color: #fff;
}

.ez-tpl-hero.ez-hero-red {
  background: linear-gradient(135deg, var(--red), var(--red-700));
}

.ez-tpl-hero .ez-tpl-eyebrow {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.ez-tpl-hero b {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.1;
  color: inherit;
}

.ez-tpl-hero.ez-hero-soft {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-tpl-hero.ez-hero-soft .ez-tpl-eyebrow {
  opacity: 1;
}

.ez-tpl-hero.ez-hero-dark {
  background: linear-gradient(135deg, #2b2528, #1a1416);
}

/* ===== Mis correos (tablero) ===== */
.ez-kb-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.15s;
}

.ez-kb-del:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-tint);
}

.ez-kb-del svg {
  width: 15px;
  height: 15px;
}

.ez-kb-empty {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  padding: 18px 8px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
}

.ez-kb-meta {
  margin-top: 8px;
}

.ez-kb-meta .ez-chip {
  gap: 5px;
}

/* ===== Tablero de campañas (flujo por etapas) ===== */
.ez-bd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
}

.ez-bd-search, .ez-bd-select {
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.ez-bd-search {
  flex: 0 1 280px;
  min-width: 0;
}

.ez-bd-search:focus, .ez-bd-select:focus {
  border-color: var(--red);
}

.ez-bd-toast {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink-2);
  max-width: 520px;
}

.ez-bd-toast.ez-ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.ez-bd-toast.ez-err {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-bd-toast[hidden] {
  display: none;
}

.ez-bd {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  align-items: start;
}

.ez-bd-col {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  min-height: 180px;
  transition: border-color 0.15s, background 0.15s;
}

.ez-bd-col.ez-drop-here {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-bd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 10px;
  font-size: 12.5px;
}

.ez-bd-head .ez-badge {
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 20px;
  color: var(--ink-3);
}

.ez-bd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
}

.ez-bd-new {
  margin-bottom: 8px;
}

.ez-bd-new input {
  width: 100%;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  background: var(--surface);
  outline: none;
}

.ez-bd-new input:focus {
  border-style: solid;
  border-color: var(--red);
}

.ez-bd-new-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.ez-bd-new-row[hidden] {
  display: none;
}

.ez-bd-new-row input {
  flex: 1;
  min-width: 0;
  border-style: solid;
}

.ez-bd-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  box-shadow: var(--shadow);
  cursor: grab;
  outline: none;
}

.ez-bd-card[hidden] {
  display: none;
}

.ez-bd-card:focus-visible {
  border-color: var(--red);
}

.ez-bd-card.ez-dragging {
  opacity: 0.4;
}

.ez-bd-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}

.ez-bd-title:hover {
  color: var(--red-700);
}

.ez-bd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.ez-bd-meta .ez-chip {
  font-size: 10.5px;
  padding: 3px 8px;
}

.ez-bd-nodate {
  opacity: 0.7;
}

.ez-bd-prog {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.ez-bd-prog i {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 4px;
}

.ez-bd-checkbtn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.35;
}

.ez-bd-checkbtn span {
  color: var(--ink-2);
}

.ez-bd-check {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--ink-2);
  display: grid;
  gap: 3px;
}

.ez-bd-check[hidden] {
  display: none;
}

.ez-bd-check li.ez-done {
  color: var(--ok);
}

.ez-bd-check small {
  color: var(--ink-3);
}

.ez-bd-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.ez-bd-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.ez-bd-av.ez-empty {
  background: var(--surface-2);
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
}

.ez-bd-who {
  font-size: 11.5px;
  color: var(--ink-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ez-bd-more {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
}

.ez-bd-more:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.ez-bd-menu {
  position: fixed;
  z-index: 60;
  min-width: 220px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}

.ez-bd-menu-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 8px 4px;
}

.ez-bd-menu button, .ez-bd-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
}

.ez-bd-menu button:hover, .ez-bd-menu a:hover {
  background: var(--surface-2);
}

.ez-bd-menu button.ez-on {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-bd-menu button[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.ez-bd-menu .ez-bd-av {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.ez-bd-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.ez-bd-menu .ez-bd-danger {
  color: var(--red-700);
}

/* ===== Mis correos v2 (estilo Asana): Lista / Tablero, agrupaciones y panel de detalle ===== */
.ez-bd2-head {
  align-items: flex-end;
}

.ez-bd2-head h1 {
  margin-bottom: 10px;
}

.ez-bd2-views {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-top: 4px;
}

.ez-bd2-views > * {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.ez-bd2-views > * svg {
  width: 15px;
  height: 15px;
}

.ez-bd2-views > *:hover {
  color: var(--ink);
}

.ez-bd2-views > .ez-on {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.ez-bd2-actions {
  display: flex;
  gap: 8px;
}

.ez-bd2-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}

.ez-bd2-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  width: 250px;
}

.ez-bd2-search svg {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  flex: none;
}

.ez-bd2-search input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  width: 100%;
}

.ez-bd2-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.ez-bd2-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.ez-bd2-seg button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.ez-bd2-seg button.ez-on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.ez-bd2-select {
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
  font-size: 12.5px;
  background: var(--surface);
}

.ez-bd2-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.ez-bd2-toggle input {
  accent-color: var(--red);
}

.ez-bd2-clean {
  margin-left: auto;
}

.ez-bd2-clean button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--red-700);
  background: var(--red-tint);
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
}

.ez-bd2-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  margin: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  background: #1a1416;
  color: #fff;
}

.ez-bd2-toast.ez-ok {
  background: #1a1416;
  color: #fff;
}

.ez-bd2-toast.ez-err {
  background: #8f0c1c;
  color: #fff;
}

/* chips comunes */
.ez-bd2-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

.ez-bd2-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1px 7px;
}

.ez-bd2-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a1416;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex: none;
  letter-spacing: 0.02em;
}

.ez-bd2-av svg {
  width: 13px;
  height: 13px;
}

.ez-bd2-av:has(svg) {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px dashed var(--line-2);
}

.ez-bd2-av.ez-sm {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.ez-bd2-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface-2);
}

.ez-bd2-due svg {
  width: 12px;
  height: 12px;
}

.ez-due-overdue {
  color: #c4231a;
  background: #fde8e6;
}

.ez-due-today {
  color: #b45f00;
  background: #fff1d6;
}

.ez-due-tomorrow {
  color: #8a6a00;
  background: #fff7d1;
}

.ez-due-week {
  color: #0f8a44;
  background: #e2f6ea;
}

.ez-due-none {
  color: var(--ink-3);
  background: transparent;
  border: 1px dashed var(--line-2);
}

.ez-due-done {
  color: var(--ink-3);
}

.ez-bd2-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 7px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-bd2-tag.ez-sfmc {
  color: #0f8a44;
  background: #e2f6ea;
}

.ez-bd2-st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px 2px 6px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--st) 14%, #fff);
  color: color-mix(in srgb, var(--st) 80%, #000);
  white-space: nowrap;
}

.ez-bd2-st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st);
}

.ez-bd2-progwrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ez-bd2-prog {
  width: 54px;
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
  display: inline-block;
}

.ez-bd2-prog i {
  display: block;
  height: 100%;
  background: var(--ok);
}

.ez-bd2-progwrap small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.ez-bd2-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ez-bd2-icon:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* Tablero */
.ez-bd2-cols {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: flex-start;
  min-height: 60vh;
  scrollbar-width: thin;
}

.ez-bd2-col {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 250px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.ez-bd2-col > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 10px 14px;
  position: sticky;
  top: 0;
}

.ez-bd2-col > header b {
  font-size: 13.5px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-bd2-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 4px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 60px;
  scrollbar-width: thin;
}

.ez-bd2-col.ez-drop-here {
  background: var(--red-tint);
  border-color: var(--red);
}

.ez-bd2-col.ez-nodrop {
  opacity: 1;
}

.ez-bd2-col.ez-collapsed {
  flex-basis: 46px;
}

.ez-bd2-col.ez-collapsed > header {
  flex-direction: column;
  padding: 12px 0;
  gap: 10px;
}

.ez-bd2-col.ez-collapsed > header b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  overflow: visible;
}

.ez-bd2-col.ez-collapsed > header [data-add], .ez-bd2-col.ez-collapsed .ez-bd2-list, .ez-bd2-col.ez-collapsed .ez-bd2-addrow {
  display: none;
}

.ez-bd2-empty {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 18px 8px;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
}

.ez-bd2-addrow {
  margin: 4px 10px 10px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ez-bd2-addrow:hover {
  background: #fff;
  color: var(--ink);
}

.ez-bd2-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  display: grid;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 20, 22, 0.04);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.ez-bd2-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 8px 20px rgba(26, 20, 22, 0.08);
}

.ez-bd2-card.ez-open {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-tint);
}

.ez-bd2-card.ez-dragging {
  opacity: 0.45;
  transform: rotate(2deg);
}

.ez-bd2-card.ez-sent b {
  color: var(--ink-3);
}

.ez-bd2-card-top {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.ez-bd2-card-top b {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.ez-bd2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ez-bd2-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Lista */
.ez-bd2-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.ez-bd2-thead, .ez-bd2-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.4fr) minmax(150px, 1fr) 120px 130px 120px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.ez-bd2-thead {
  height: 38px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.ez-bd2-sec > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
  font-size: 14px;
}

.ez-bd2-caret {
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.15s;
  width: 18px;
}

.ez-bd2-sec.ez-collapsed .ez-bd2-caret {
  transform: rotate(-90deg);
}

.ez-bd2-sec.ez-collapsed .ez-bd2-rows {
  display: none;
}

.ez-bd2-row {
  min-height: 44px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s;
}

.ez-bd2-row:hover {
  background: var(--surface-2);
}

.ez-bd2-row.ez-open {
  background: var(--red-tint);
}

.ez-bd2-row-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ez-bd2-row-name b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-bd2-row-name small {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.ez-bd2-row.ez-sent .ez-bd2-row-name b {
  color: var(--ink-3);
  text-decoration: line-through;
}

.ez-bd2-row-who {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.ez-bd2-row-who > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-bd2-rows .ez-bd2-addrow {
  margin: 2px 8px 10px;
}

@media (max-width: 1000px) {
  .ez-bd2-thead, .ez-bd2-row {
    grid-template-columns: minmax(200px, 1fr) 110px 120px;
  }
  .ez-bd2-thead span:nth-child(2), .ez-bd2-thead span:nth-child(5), .ez-bd2-row-who, .ez-bd2-row > .ez-bd2-progwrap {
    display: none;
  }
}
/* Panel de detalle */
.ez-bd2-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(480px, 100vw);
  background: #fff;
  box-shadow: -20px 0 60px rgba(26, 20, 22, 0.18);
  transform: translateX(105%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}

.ez-bd2-panel.ez-open {
  transform: none;
}

.ez-bd2-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(26, 20, 22, 0.15);
}

.ez-bd2-panel-in {
  padding: 18px 24px 30px;
  display: grid;
  gap: 16px;
}

.ez-bd2-p-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ez-bd2-p-when {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-right: auto;
}

.ez-bd2-p-title {
  font: inherit;
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px 8px;
  margin: 0 -8px;
  resize: none;
  overflow: hidden;
  outline: none;
}

.ez-bd2-p-title:hover {
  border-color: var(--line);
}

.ez-bd2-p-title:focus {
  border-color: var(--red);
}

.ez-bd2-p-fields {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 12px;
  align-items: center;
  margin: 0;
}

.ez-bd2-p-fields dt {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.ez-bd2-p-fields dd {
  margin: 0;
  font-size: 13px;
  min-width: 0;
}

.ez-bd2-p-fields select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  background: var(--surface);
}

.ez-bd2-p-fields .ez-dp, .ez-bd2-p-fields .ez-dp-btn {
  width: 100%;
}

.ez-bd2-p-check {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.ez-bd2-p-check-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ez-bd2-p-check p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ez-bd2-p-check ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ez-bd2-p-check li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.ez-bd2-p-check li i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  flex: none;
}

.ez-bd2-p-check li.ez-done {
  color: var(--ink-3);
}

.ez-bd2-p-check li.ez-done i {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.ez-bd2-p-check li small {
  color: var(--ink-3);
  font-size: 10.5px;
}

.ez-bd2-p-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ez-bd2-danger {
  color: var(--red-700) !important;
  margin-left: auto;
}

.ez-bd2-p-foot {
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
}

/* ===== Historial de correos ===== */
.ez-hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.ez-hist-filters select {
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
  font-size: 12.5px;
  background: var(--surface);
  max-width: 220px;
}

.ez-hist-q {
  flex: 1 1 260px;
  width: auto;
}

.ez-hist-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ez-hist-dates .ez-dp-btn {
  min-width: 140px;
  height: 36px;
}

.ez-hist-dates > span {
  color: var(--ink-3);
}

.ez-hist-more {
  height: 36px;
}

.ez-hist-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-basis: 100%;
}

.ez-hist-extra[hidden] {
  display: none;
}

.ez-hist-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ez-hist-states {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ez-hist-states label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  color: var(--ink-2);
  user-select: none;
}

.ez-hist-states input {
  display: none;
}

.ez-hist-states i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st);
}

.ez-hist-states label:has(input:checked) {
  background: color-mix(in srgb, var(--st) 14%, #fff);
  border-color: var(--st);
  color: var(--ink);
}

.ez-hist-presets {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.ez-hist-presets a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 7px;
}

.ez-hist-presets a:hover {
  background: var(--surface-2);
}

.ez-hist-presets a.ez-on {
  background: var(--ink);
  color: #fff;
}

.ez-hist-sort {
  height: 32px !important;
}

.ez-hist-clear {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-700);
  text-decoration: none;
}

.ez-hist-summary {
  display: flex;
  gap: 18px;
  margin: 0 0 10px 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.ez-hist-summary b {
  color: var(--ink);
  font-weight: 800;
}

.ez-muted {
  color: var(--ink-3);
}

.ez-hist-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.ez-hist-thead, .ez-hist-row {
  display: grid;
  grid-template-columns: 20px minmax(220px, 2.2fr) 110px 120px minmax(110px, 1fr) minmax(140px, 1.2fr) 44px 130px 76px;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
}

.ez-hist-thead {
  height: 38px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-hist-item + .ez-hist-item {
  border-top: 1px solid var(--line);
}

.ez-hist-row {
  min-height: 58px;
  cursor: pointer;
  transition: background 0.12s;
}

.ez-hist-row:hover {
  background: var(--surface-2);
}

.ez-hist-item.ez-open > .ez-hist-row {
  background: var(--red-tint);
}

.ez-hist-caret {
  color: var(--ink-3);
  font-size: 11px;
  transition: transform 0.15s;
}

.ez-hist-item.ez-open .ez-hist-caret {
  transform: rotate(90deg);
  color: var(--red-700);
}

.ez-hist-row > span {
  min-width: 0;
}

.ez-hist-name, .ez-hist-date, .ez-hist-base, .ez-hist-res {
  display: grid;
  gap: 2px;
}

.ez-hist-name b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-hist-row small {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-hist-date b, .ez-hist-base b, .ez-hist-res b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-hist-topic {
  display: inline-block;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ez-hist-num {
  font-weight: 700;
  text-align: center;
}

.ez-hist-acts {
  display: flex;
  justify-content: flex-end;
}

.ez-hist-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-3);
}

.ez-hist-empty b {
  color: var(--ink);
  font-size: 15px;
}

.ez-hist-loading {
  padding: 22px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.ez-hist-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.ez-hist-pages div {
  display: flex;
  gap: 4px;
}

.ez-hist-pages a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}

.ez-hist-pages a:hover {
  background: var(--surface-2);
}

.ez-hist-pages a.ez-on {
  background: var(--ink);
  color: #fff;
}

/* Detalle */
.ez-hist-detail {
  background: #fbf9f8;
  border-top: 1px solid var(--line);
  animation: fade 0.2s ease both;
}

.ez-hist-d {
  padding: 16px 16px 18px 46px;
  display: grid;
  gap: 12px;
}

.ez-hist-d-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ez-hist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.ez-hist-card h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-hist-card .ez-hist-sub {
  margin-top: 14px;
}

.ez-hist-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 12.5px;
}

.ez-hist-card dt {
  color: var(--ink-3);
}

.ez-hist-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ez-hist-card dd a {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: none;
}

.ez-hist-card code {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.ez-hist-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.ez-hist-topic-sel {
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  padding: 0 6px;
  max-width: 100%;
}

.ez-hist-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.ez-hist-fields span {
  display: grid;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.ez-hist-fields small {
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.ez-hist-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ez-hist-kpis span {
  display: grid;
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 8px;
  border-radius: 9px;
  background: var(--surface-2);
}

.ez-hist-kpis b {
  font-size: 15px;
  color: var(--ink);
}

.ez-hist-sfmc {
  display: grid;
}

.ez-hist-sfmc small {
  font-size: 11px;
  color: var(--ink-3);
}

.ez-hist-vars table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ez-hist-vars th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.ez-hist-vars td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ez-hist-vars tr:last-child td {
  border-bottom: 0;
}

.ez-hist-vars td code {
  display: inline-block;
  margin: 0 3px 3px 0;
}

.ez-hist-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ez-hist-check {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-hist-check .ez-done {
  color: var(--ok);
}

.ez-hist-d-acts {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1200px) {
  .ez-hist-thead, .ez-hist-row {
    grid-template-columns: 20px minmax(200px, 2fr) 100px 110px minmax(120px, 1fr) 76px;
  }
  .ez-hist-thead span:nth-child(5), .ez-hist-thead span:nth-child(7), .ez-hist-thead span:nth-child(8), .ez-hist-row > span:nth-child(5), .ez-hist-row > span:nth-child(7), .ez-hist-row > span:nth-child(8) {
    display: none;
  }
  .ez-hist-d-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Modal (vista previa / exportar) ===== */
.ez-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 20, 22, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s;
}

.ez-modal-ov.ez-open {
  opacity: 1;
}

.ez-modal-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 700px;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s;
}

.ez-modal-ov.ez-open .ez-modal-card {
  transform: none;
}

.ez-modal-card.ez-export {
  width: 820px;
}

.ez-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.ez-modal-head b {
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
}

.ez-modal-x {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.15s;
}

.ez-modal-x:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.ez-modal-x svg {
  width: 15px;
  height: 15px;
}

.ez-modal-body {
  overflow: auto;
  min-height: 0;
}

.ez-preview-stage {
  background: #EFEBEA;
  padding: 26px;
  display: flex;
  justify-content: center;
}

.ez-export-wrap {
  display: flex;
  flex-direction: column;
}

.ez-export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.ez-export-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ez-export-sel {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.ez-export-sel:focus {
  border-color: var(--red);
}

.ez-export-utm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
}

.ez-export-utm input {
  flex: 1;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 5px 9px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  min-width: 0;
}

.ez-export-utm input:focus {
  border-color: var(--red);
}

.ez-export-utm-note {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  white-space: normal;
  margin-left: 4px;
}

.ez-export-code {
  width: 100%;
  min-height: 54vh;
  border: none;
  padding: 16px 18px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--surface-2);
  resize: vertical;
  outline: none;
  white-space: pre;
}

/* ===== Auth / Login ===== */
.ez-auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.ez-auth-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
}

.ez-auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 320px at 88% 6%, rgba(255, 255, 255, 0.18), transparent 70%);
}

.ez-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ez-auth-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.ez-auth-brand span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.ez-auth-brand span small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  opacity: 0.8;
}

.ez-auth-aside-body {
  margin: auto 0;
  position: relative;
  max-width: 440px;
}

.ez-auth-aside-body h1 {
  font-size: 34px;
  line-height: 1.08;
  color: #fff;
}

.ez-auth-aside-body p {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.5;
}

.ez-auth-aside-foot {
  font-size: 12px;
  opacity: 0.75;
  position: relative;
}

.ez-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--bg);
}

.ez-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}

.ez-auth-card-logo {
  height: 32px;
  margin-bottom: 18px;
  background: var(--red);
  border-radius: 10px;
  padding: 0 12px;
  width: auto;
  display: inline-grid;
  place-items: center;
}

.ez-auth-card-logo img {
  height: 20px;
  width: auto;
  display: block;
}

.ez-auth-card h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.ez-auth-sub {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.ez-auth-alert {
  background: var(--red-tint);
  border: 1px solid var(--red-tint-2);
  color: var(--red-700);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ez-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
  margin: 2px 0 14px;
  cursor: pointer;
}

.ez-auth-remember input {
  width: auto;
}

.ez-auth-demo {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ez-auth-demo b {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-auth-demo span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

/* logout en topbar */
.ez-logout-btn {
  display: grid;
  place-items: center;
}

@media (max-width: 1080px) {
  .ez-editor {
    grid-template-columns: 1fr;
  }
  .ez-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ez-cols-3 {
    grid-template-columns: 1fr;
  }
  .ez-kb {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .ez-app {
    grid-template-columns: 1fr;
  }
  .ez-side {
    display: none;
  }
  .ez-cols-4, .ez-cols-2 {
    grid-template-columns: 1fr;
  }
}
/* ===== Audiencias (BBDD), reglas de variantes y exportación a SFMC ===== */
/* Utilidades */
.ez-btn.ez-btn-xs {
  padding: 6px 10px;
  font-size: 11.5px;
}

.ez-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.ez-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
}

.ez-hint a {
  color: var(--red-700);
  font-weight: 600;
  text-decoration: none;
}

.ez-note.ez-note-ok {
  background: var(--ok-tint);
  border-color: var(--ok-tint);
  color: var(--ok);
}

.ez-note.ez-note-err {
  background: var(--red-tint);
  border-color: var(--red-tint-2);
  color: var(--red-700);
  margin: 12px 0 0;
}

.ez-note[hidden] {
  display: none;
}

.ez-empty-msg {
  color: var(--ink-3);
  font-size: 13px;
  padding: 8px 0;
}

/* Página de audiencias */
/* Audiencias: tabla (índice) */
.ez-crumb a {
  color: inherit;
  text-decoration: none;
}

.ez-crumb a:hover {
  color: var(--red-700);
}

.ez-aud-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ez-aud-head-actions .ez-btn {
  text-decoration: none;
}

.ez-aud-head-actions svg {
  width: 16px;
  height: 16px;
}

.ez-aud-page {
  max-width: 980px;
}

.ez-aud-table {
  overflow: hidden;
}

.ez-aud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.ez-aud-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 380px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink-3);
  background: var(--surface);
}

.ez-aud-search:focus-within {
  border-color: var(--red);
}

.ez-aud-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.ez-aud-search input {
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}

.ez-aud-count {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.ez-aud-table .ez-aud-tblwrap {
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow-x: auto;
}

.ez-aud-list-tbl {
  min-width: 860px;
}

.ez-aud-list-tbl th {
  background: var(--surface-2);
  padding: 10px 16px;
  white-space: nowrap;
}

.ez-aud-list-tbl th button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ez-aud-list-tbl th button:hover {
  color: var(--ink);
}

.ez-aud-list-tbl th button::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  opacity: 0;
}

.ez-aud-list-tbl th button.ez-sort-asc::after {
  border-bottom-color: currentColor;
  border-top-width: 0;
  opacity: 1;
}

.ez-aud-list-tbl th button.ez-sort-desc::after {
  border-top-color: currentColor;
  border-bottom-width: 0;
  opacity: 1;
}

.ez-aud-list-tbl td {
  padding: 12px 16px;
}

.ez-aud-list-tbl tr[hidden] {
  display: none;
}

.ez-aud-name {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.ez-aud-name:hover {
  color: var(--red-700);
  text-decoration: underline;
}

.ez-aud-by {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ez-aud-de {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

.ez-aud-muted {
  color: var(--ink-3);
  font-size: 12.5px;
}

.ez-aud-fieldchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 300px;
}

.ez-aud-fieldchips b {
  font-size: 13px;
  margin-right: 4px;
}

.ez-aud-fieldchips i {
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.ez-aud-fieldchips i.ez-more {
  font-family: inherit;
  color: var(--ink-3);
}

.ez-aud-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ez-aud-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ez-aud-status.ez-ok {
  color: var(--ok);
}

.ez-aud-status.ez-warn {
  color: var(--warn);
}

.ez-aud-uses {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-tint);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

.ez-aud-th-actions {
  width: 1%;
}

.ez-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ez-aud-row-actions {
  white-space: nowrap;
  text-align: right;
}

.ez-aud-row-actions form {
  display: inline;
  margin: 0;
}

.ez-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  vertical-align: middle;
}

.ez-icon-btn svg {
  width: 16px;
  height: 16px;
}

.ez-icon-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.ez-icon-btn.ez-icon-del:hover {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-aud-list-tbl tr.ez-aud-new td {
  animation: ez-aud-flash 2.4s ease-out;
}

@keyframes ez-aud-flash {
  0%, 35% {
    background: var(--ok-tint);
  }
  100% {
    background: transparent;
  }
}
.ez-aud-empty {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
  padding: 26px 12px;
  margin: 0;
}

.ez-aud-empty[hidden] {
  display: none;
}

/* Estado vacío: formas de empezar */
.ez-aud-start {
  padding: 28px;
  text-align: center;
}

.ez-aud-start h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.ez-aud-start > p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 auto 22px;
  max-width: 520px;
}

.ez-aud-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

@media (max-width: 980px) {
  .ez-aud-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ez-aud-start-grid {
    grid-template-columns: 1fr;
  }
}
.ez-aud-start-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.ez-aud-start-grid a:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-aud-start-grid svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  margin-bottom: 6px;
}

.ez-aud-start-grid b {
  font-size: 13.5px;
}

.ez-aud-start-grid small {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}

.ez-btn.ez-btn-sm {
  padding: 7px 11px;
  font-size: 12.5px;
  border-radius: 9px;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.ez-btn.ez-btn-sm svg {
  width: 14px;
  height: 14px;
}

/* Detalle de audiencia (columna derecha) */
.ez-aud-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ez-aud-detail-head h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.ez-aud-detail-head small {
  font-size: 12px;
  color: var(--ink-3);
}

.ez-aud-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.ez-aud-actions form {
  margin: 0;
}

.ez-aud-del:hover {
  color: var(--red-700);
  border-color: var(--red);
}

.ez-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.ez-aud-upload, .ez-aud-list, .ez-aud-form {
  padding: 24px 26px;
}

@media (max-width: 640px) {
  .ez-aud-upload, .ez-aud-list, .ez-aud-form {
    padding: 18px;
  }
}
.ez-aud-upload h3, .ez-aud-list h3 {
  margin-bottom: 16px;
}

.ez-steps {
  margin: 0 0 18px;
  padding: 14px 16px 14px 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  display: grid;
  gap: 6px;
}

.ez-steps b {
  color: var(--ink);
}

.ez-drop-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed var(--line-2);
  border-radius: var(--r);
  padding: 26px 18px;
  margin-bottom: 18px;
  cursor: pointer;
  color: var(--ink-2);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.ez-drop-file:hover, .ez-drop-file.ez-drag-over {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-drop-file svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.ez-drop-file small {
  font-size: 11.5px;
  color: var(--ink-3);
  max-width: 360px;
  line-height: 1.45;
}

.ez-drop-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ez-aud-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .ez-aud-row {
    grid-template-columns: 1fr;
  }
}
.ez-aud-row .ez-field, .ez-aud-upload .ez-field, .ez-aud-form .ez-field {
  margin-bottom: 16px;
}

.ez-aud-submit {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ez-aud-list .ez-empty-msg {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.ez-aud-item {
  display: block;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}

.ez-aud-item:last-child {
  border-bottom: none;
}

.ez-aud-item:hover {
  background: var(--surface-2);
}

.ez-aud-item:hover b {
  color: var(--red-700);
}

.ez-aud-item small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 2px;
}

.ez-aud-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

/* Modos de «Nueva audiencia» */
.ez-aud-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin: 4px 0 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

@media (max-width: 640px) {
  .ez-aud-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ez-aud-modes button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.ez-aud-modes button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ez-aud-modes button:hover {
  color: var(--ink);
}

.ez-aud-modes button.ez-active {
  background: var(--surface);
  color: var(--red-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ez-aud-panel[hidden], .ez-aud-submit[hidden] {
  display: none;
}

.ez-aud-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.ez-aud-hint code, .ez-aud-hint + .ez-fb code {
  font-size: 11.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.ez-aud-panel textarea {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.ez-aud-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 6px 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ez-aud-sub small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 8px;
}

/* Plantillas de audiencia */
.ez-aud-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .ez-aud-presets {
    grid-template-columns: 1fr;
  }
}
.ez-aud-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ez-aud-preset:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-aud-preset b {
  font-size: 13.5px;
}

.ez-aud-preset small {
  font-size: 12px;
  color: var(--ink-2);
}

.ez-aud-preset span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ez-aud-preset i {
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Constructor de campos */
.ez-fb {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 6px;
}

.ez-fb-head, .ez-fb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px 34px;
  gap: 8px;
  align-items: center;
}

.ez-fb-head {
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-fb-rows {
  display: grid;
}

.ez-fb-row {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.ez-fb-row:hover {
  background: var(--surface-2);
}

.ez-fb-row input, .ez-fb-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.ez-fb-row input {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.ez-fb-row input::placeholder {
  text-transform: none;
  color: var(--ink-3);
}

.ez-fb-row select {
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
}

.ez-fb-row input:focus, .ez-fb-row select:focus {
  border-color: var(--red);
}

.ez-fb-row input.ez-fb-dup {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-fb-del {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.ez-fb-del svg {
  width: 15px;
  height: 15px;
}

.ez-fb-del:hover {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-fb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.ez-fb-add {
  gap: 6px;
}

.ez-fb-add svg {
  width: 15px;
  height: 15px;
}

.ez-fb-count {
  font-size: 12px;
  color: var(--ink-3);
}

.ez-fb-suggest {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.ez-fb-suggest small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.ez-fb-suggest div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ez-fb-chip {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--surface);
  padding: 4px 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
}

.ez-fb-chip:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-fb-chip:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: var(--line-2);
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .ez-fb-head {
    display: none;
  }
  .ez-fb-row {
    grid-template-columns: 1fr 1fr 34px;
  }
  .ez-fb-row input {
    grid-column: 1/-1;
  }
}
/* Pestañas de variante: con regla / base */
.ez-var-tabs button.ez-var-ruled::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: 1px;
}

.ez-var-tabs button.ez-var-ruled.ez-active::before {
  background: #fff;
}

/* Panel derecho: caja de regla */
.ez-rule-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ez-rule-box b {
  font-size: 12.5px;
}

.ez-rule-box small {
  flex-basis: 100%;
  color: var(--ink-2);
}

.ez-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ez-pill-row button.ez-p {
  background: none;
  font-family: inherit;
}

/* Diálogo de regla */
.ez-modal-card.ez-dlg.ez-dlg-wide {
  width: 640px;
  max-width: calc(100vw - 32px);
}

.ez-rule-dlg > p {
  margin-bottom: 12px;
  font-size: 12.5px;
}

.ez-conds {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ez-cond {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ez-cond select, .ez-cond input {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 9px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  min-width: 0;
}

.ez-cond select:focus, .ez-cond input:focus {
  border-color: var(--red);
}

.ez-cond-field {
  flex: 1 1 130px;
}

.ez-cond-op {
  flex: 1 1 130px;
}

.ez-cond-v {
  flex: 1 1 110px;
}

.ez-cond-v2 {
  flex: 0 1 90px;
}

.ez-cond [hidden] {
  display: none;
}

.ez-cond-and {
  font-size: 12px;
  color: var(--ink-3);
}

.ez-cond-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--ink-3);
}

.ez-cond-del:hover {
  background: var(--red-tint);
  color: var(--red-700);
}

.ez-dlg-field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
}

.ez-dlg-field[hidden] {
  display: none;
}

/* Modal de exportación */
.ez-modal-card.ez-export {
  max-width: calc(100vw - 32px);
}

.ez-exp {
  display: flex;
  flex-direction: column;
}

.ez-exp-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 0;
}

@media (max-width: 700px) {
  .ez-exp-modes {
    grid-template-columns: 1fr;
  }
}
.ez-exp-mode {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px;
  cursor: pointer;
}

.ez-exp-mode:has(input:checked) {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-exp-mode input {
  margin-top: 3px;
  accent-color: var(--red);
}

.ez-exp-mode b {
  display: block;
  font-size: 13px;
}

.ez-exp-mode small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.4;
}

.ez-exp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.ez-exp-camp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
}

.ez-exp-camp input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 12.5px;
}

.ez-exp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ez-exp-check input {
  accent-color: var(--red);
}

.ez-exp-warn {
  margin: 0 18px 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 12px;
  display: grid;
  gap: 4px;
}

.ez-exp-warn[hidden] {
  display: none;
}

.ez-exp-tblwrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-height: 220px;
  overflow-y: auto;
}

.ez-exp-tbl td, .ez-exp-tbl th {
  padding: 9px 14px;
}

.ez-exp-tbl code {
  font-size: 11.5px;
  color: var(--ink);
  word-break: break-all;
}

.ez-exp-tabs {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.ez-exp-view {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.ez-exp .ez-export-code {
  min-height: 34vh;
}

.ez-exp .ez-export-actions {
  justify-content: flex-end;
  border-bottom: none;
  border-top: 1px solid var(--line);
}

/* Integraciones */
.ez-intg-title {
  font-size: 15px;
  margin: 6px 0 12px;
}

.ez-intg-title ~ .ez-intg-title {
  margin-top: 28px;
}

.ez-intg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .ez-intg-layout {
    grid-template-columns: 1fr;
  }
}
.ez-intg-card {
  padding: 22px 24px;
}

.ez-intg-card .ez-hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.ez-intg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ez-intg-help h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.ez-intg-help .ez-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 12px;
}

.ez-intg-help code {
  font-size: 11.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 4px;
}

.ez-intg-head .ez-chip {
  margin-top: 4px;
}

.ez-intg-fs {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.ez-intg-fs:disabled .ez-intg-actions {
  display: none;
}

.ez-intg-fs:disabled input, .ez-intg-fs:disabled select {
  background: var(--surface-2);
  color: var(--ink-3);
}

.ez-intg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ez-intg-head b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ez-card .ez-field {
  margin-bottom: 14px;
}

.ez-exp-published {
  margin: 0 18px 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 12px;
  display: grid;
  gap: 3px;
}

.ez-exp-published[hidden] {
  display: none;
}

/* Plantillas */
.ez-tpl-filters {
  margin-bottom: 16px;
}

.ez-tpl-filters .ez-p {
  background: var(--surface);
  font-family: inherit;
}

.ez-tpl-card[hidden] {
  display: none;
}

.ez-tpl-card .ez-meta {
  padding: 14px;
}

.ez-tpl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ez-tpl-top b {
  font-size: 13.5px;
}

.ez-tpl-top .ez-chip {
  font-size: 10.5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.ez-tpl-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 6px;
  min-height: 32px;
}

.ez-tpl-stats {
  font-size: 11.5px;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.ez-tpl-use {
  width: 100%;
  justify-content: center;
}

.ez-tpl-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ez-tpl-actions > * {
  flex: 1;
}

.ez-tpl-actions .ez-btn {
  width: 100%;
  justify-content: center;
}

.ez-tpl-del:hover {
  color: var(--red-700);
  border-color: var(--red);
}

.ez-tpl-hero.ez-tpl-club {
  background: #fff;
  color: var(--ink);
  border-bottom: 3px solid var(--red);
}

.ez-tpl-hero.ez-tpl-club .ez-tpl-eyebrow {
  color: var(--red-700);
  opacity: 1;
}

.ez-tpl-hero.ez-tpl-club small {
  font-size: 11px;
  color: var(--ink-2);
}

a.ez-btn {
  text-decoration: none;
}

/* Plantillas = marcos de marca */
.ez-tpl-thumb {
  display: block;
  height: 230px;
  overflow: hidden;
  background: #EFEBEA;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.ez-tpl-scale {
  width: 600px;
  transform: scale(0.5);
  transform-origin: top left;
  position: absolute;
  top: 12px;
  left: calc(50% - 150px);
  pointer-events: none;
}

.ez-tpl-preview {
  box-shadow: var(--shadow-lg);
}

.ez-tpl-slot {
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-3);
  display: grid;
  gap: 4px;
}

.ez-tpl-slot b {
  color: var(--ink-2);
  font-size: 14px;
}

.ez-tpl-slot span {
  font-size: 12px;
}

.ez-tpl-card .ez-meta b {
  font-size: 14px;
}

/* Editor de plantilla: Diseño (campos) o HTML (código) + vista previa */
.ez-tpl-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ez-tpl-editor {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ez-tpl-editor.ez-code {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

@media (max-width: 1180px) {
  .ez-tpl-editor, .ez-tpl-editor.ez-code {
    grid-template-columns: 1fr;
  }
}
.ez-tpl-side {
  overflow: hidden;
}

.ez-tpl-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 12px 12px 0;
  background: var(--surface-2);
  border-radius: 10px;
}

.ez-tpl-tabs button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 7px;
  color: var(--ink-2);
  position: relative;
}

.ez-tpl-tabs button svg {
  width: 15px;
  height: 15px;
}

.ez-tpl-tabs button.ez-on {
  background: #fff;
  color: var(--red-700);
  box-shadow: var(--shadow);
}

.ez-tpl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.ez-tpl-dot[hidden] {
  display: none;
}

.ez-tpl-pane {
  display: none;
  padding: 4px 20px 18px;
}

.ez-tpl-pane.ez-on {
  display: block;
  animation: fade 0.2s ease both;
}

.ez-tpl-sec {
  padding: 16px 0 4px;
  border-bottom: 1px solid var(--line);
}

.ez-tpl-sec:last-of-type {
  border-bottom: 0;
}

.ez-tpl-sec h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.ez-tpl-sec fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.ez-tpl-sec fieldset:disabled {
  opacity: 0.45;
}

.ez-tpl-sec .ez-field label small {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0;
}

.ez-tpl-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ez-tpl-logo {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ez-tpl-logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.ez-mono, .ez-tpl-sec textarea {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.ez-tpl-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--red-tint);
  font-size: 12px;
  color: var(--ink-2);
}

.ez-tpl-lock[hidden] {
  display: none;
}

.ez-tpl-foot-hint {
  margin: 12px 0 0;
}

.ez-tpl-codebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 0 10px;
}

.ez-tpl-parts {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 9px;
}

.ez-tpl-parts button {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.ez-tpl-parts button small {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}

.ez-tpl-parts button.ez-on {
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.ez-tpl-codeacts {
  display: flex;
  gap: 6px;
}

.ez-tpl-vars-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--red-tint);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ez-tpl-vars-note[hidden] {
  display: none;
}

.ez-tpl-vars-note code {
  font-size: 10.5px;
  background: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

.ez-tpl-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
}

.ez-tpl-vars[hidden] {
  display: none;
}

.ez-tpl-vars > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 2px;
}

.ez-tpl-vars button {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
}

.ez-tpl-vars button:hover {
  border-color: var(--red);
  color: var(--red-700);
}

.ez-tpl-vars button.ez-req {
  border-color: var(--red);
  background: var(--red-tint);
  color: var(--red-700);
  font-weight: 700;
}

.ez-tpl-codenote {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ez-tpl-codenote[hidden] {
  display: none;
}

.ez-tpl-code {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}

.ez-tpl-code[hidden] {
  display: none;
}

.ez-tpl-code textarea {
  width: 100%;
  min-height: 460px;
  border: 0;
  padding: 12px;
  resize: vertical;
  outline: none;
}

.ez-tpl-code .CodeMirror {
  height: min(62vh, 600px);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}

.ez-tpl-code .CodeMirror-gutters {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
}

.ez-tpl-code .CodeMirror-matchingtag {
  background: rgba(229, 0, 40, 0.12);
}

.ez-tpl-codehelp {
  margin: 12px 0 0;
  padding-left: 16px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.ez-tpl-codehelp code {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--ink-2);
}

.ez-tpl-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ez-tpl-widths {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.ez-tpl-widths button {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ink-2);
}

.ez-tpl-widths button.ez-on {
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.ez-tpl-live .ez-canvas.ez-mobile .ez-mail {
  max-width: 375px;
}

/* Plantilla HTML: en el editor su CSS va acotado a .ez-tpl-html; la caja deja de ser la tarjeta blanca de 600px */
.ez-mail.ez-tpl-html {
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ez-tpl-iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.ez-tpl-live .ez-canvas.ez-mobile .ez-tpl-iframe {
  max-width: 375px;
  margin: 0 auto;
}

.ez-tpl-scale .ez-tpl-iframe {
  height: 900px;
  border-radius: 0;
  box-shadow: none;
}

.ez-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 12px;
  cursor: pointer;
}

.ez-check input {
  accent-color: var(--red);
}

.ez-upload {
  cursor: pointer;
  white-space: nowrap;
}

.ez-tpl-live {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.ez-tpl-live .ez-canvas {
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.ez-save-state.ez-error {
  color: var(--red-700);
}

.ez-tpl-thumb-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Resumen de valores de la audiencia */
.ez-aud-profile {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.ez-aud-profile > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.ez-aud-profile dt {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
}

.ez-aud-profile dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ez-aud-profile .ez-chip {
  font-size: 11px;
  padding: 2px 8px;
}

/* Nueva plantilla / cómo empezar en HTML */
.ez-tpl-dlg {
  width: 520px;
}

.ez-tpl-dlg .ez-field label small {
  font-weight: 500;
  color: var(--ink-3);
}

.ez-tpl-starts {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.ez-tpl-starts label {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ez-tpl-starts label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-tpl-starts input {
  grid-row: span 2;
  margin-top: 2px;
  accent-color: var(--red);
}

.ez-tpl-starts b {
  font-size: 13px;
}

.ez-tpl-starts span {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.ez-tpl-starts code, .ez-tpl-start code {
  font-size: 10.5px;
  background: var(--surface-2);
  padding: 1px 4px;
  border-radius: 4px;
}

.ez-tpl-dlg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.ez-tpl-start {
  display: grid;
  gap: 8px;
  padding: 16px 0 4px;
}

.ez-tpl-start[hidden] {
  display: none;
}

.ez-tpl-start p {
  margin: 0 0 4px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.ez-tpl-start button {
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.ez-tpl-start button:hover {
  border-color: var(--red);
  background: var(--red-tint);
}

.ez-tpl-start b {
  font-size: 13.5px;
  color: var(--ink);
}

.ez-tpl-start span {
  font-size: 11.5px;
  color: var(--ink-3);
}

#codeWork[hidden] {
  display: none;
}
