/* ============================================================
   Mailing · Infosecura — estilos del panel
   ============================================================ */
:root {
  --side: 256px;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-50: #eef2ff;
  --violet: #7c3aed;
  --sky: #38bdf8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7eaf3;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 4px 24px -6px rgba(15, 23, 42, .10), 0 2px 6px -2px rgba(15, 23, 42, .05);

  /* Bootstrap */
  --bs-primary: var(--brand);
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: var(--brand-600);
  --bs-link-hover-color-rgb: 67, 56, 202;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 8px;
  --bs-border-radius-lg: 14px;
  --bs-focus-ring-color: rgba(79, 70, 229, .22);
}

body { background: var(--bg); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 650; letter-spacing: -.015em; }
.h6 { font-size: .95rem; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .page-link:hover, .sidebar a:hover, .card a.stat:hover { text-decoration: none; }
code { color: var(--violet); background: #f5f3ff; padding: .1em .35em; border-radius: 5px; font-size: .85em; }
::selection { background: rgba(79, 70, 229, .18); }

/* ---------- Botones ---------- */
.btn { font-weight: 550; border-radius: 10px; padding: .5rem 1rem; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-sm { padding: .32rem .7rem; border-radius: 8px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  box-shadow: 0 1px 2px rgba(79,70,229,.25), 0 4px 12px -4px rgba(79,70,229,.45);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: #c7d2fe;
  --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-600); --bs-btn-hover-border-color: #a5b4fc;
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-active-color: #fff;
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-bg: #fff;
  --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #d5dbe7;
  --bs-btn-active-bg: #e2e8f0; --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: #cbd5e1;
}
.btn-success { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669; box-shadow: 0 4px 12px -4px rgba(16,185,129,.5); }
.btn-warning { --bs-btn-bg: #f59e0b; --bs-btn-border-color: #f59e0b; --bs-btn-color: #fff; --bs-btn-hover-bg: #d97706; --bs-btn-hover-border-color: #d97706; --bs-btn-hover-color: #fff; }

/* ---------- Formularios ---------- */
.form-control, .form-select { border-color: #dfe3ee; border-radius: 10px; padding: .55rem .8rem; }
.form-control-sm, .form-select-sm { padding: .3rem .6rem; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.form-label { font-weight: 550; font-size: .875rem; color: var(--ink); margin-bottom: .35rem; }
.form-text { color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }
.input-group-text { background: #f8fafc; border-color: #dfe3ee; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side); position: fixed; inset: 0 auto 0 0; z-index: 1040;
  display: flex; flex-direction: column; color: #cbd5e1;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(100% 50% at 100% 100%, rgba(56, 189, 248, .14), transparent 60%),
    #0b1120;
  transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.25rem 1rem; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet)); box-shadow: 0 6px 16px -4px rgba(124, 58, 237, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: block; color: #94a3b8; font-weight: 450; font-size: .74rem; letter-spacing: 0; margin-top: 2px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: .5rem .75rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #64748b; font-weight: 600; padding: 1rem .75rem .4rem; }
.sidebar nav a { display: flex; gap: .7rem; align-items: center; padding: .55rem .75rem; margin-bottom: 2px; color: #cbd5e1; border-radius: 10px; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.sidebar nav a i { font-size: 1.05rem; opacity: .8; width: 1.1rem; text-align: center; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.active { background: linear-gradient(90deg, rgba(99, 102, 241, .35), rgba(124, 58, 237, .18)); color: #fff; box-shadow: inset 0 0 0 1px rgba(165, 180, 252, .18); }
.sidebar nav a.active i { opacity: 1; color: #c7d2fe; }
.sidebar-foot { padding: .9rem 1rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .82rem; }
.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); flex: none; }
.user-chip .who { line-height: 1.2; min-width: 0; }
.user-chip .who strong { color: #e2e8f0; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who a, .user-chip .logout-btn { color: #94a3b8; font-size: .78rem; font-weight: 450; text-decoration: none; }
.user-chip .who a:hover, .user-chip .logout-btn:hover { color: #fff; }
.worker-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; padding: .3rem .6rem; border-radius: 999px; margin-bottom: .8rem; background: rgba(255, 255, 255, .05); }
.worker-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.worker-status.ok .dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.worker-status.bad .dot { background: #f43f5e; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .worker-status.ok .dot { animation: none; } }

.content { margin-left: var(--side); flex: 1; min-width: 0; }
.topbar { display: flex; gap: .75rem; align-items: center; padding: .7rem 1rem; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .sidebar.open ~ .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 1035; }
  .content { margin-left: 0; }
}
.page-head h1 { font-size: 1.55rem; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--card); }
.card > .card-body + .card-body, .card .border-bottom { border-color: var(--line) !important; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.section-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: .78rem; font-weight: 700; color: #fff; margin-right: .45rem; background: linear-gradient(135deg, var(--brand), var(--violet)); vertical-align: 1px; }
.section-num.badge { padding: 0; }

.stat { padding: 1.15rem 1.25rem; display: flex; gap: .9rem; align-items: flex-start; transition: transform .15s ease, box-shadow .15s ease; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.stat-icon.indigo { background: #eef2ff; color: #4f46e5; }
.stat-icon.violet { background: #f5f3ff; color: #7c3aed; }
.stat-icon.sky { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-icon.amber { background: #fffbeb; color: #d97706; }
.stat-icon.rose { background: #fff1f2; color: #e11d48; }
.stat-icon.slate { background: #f1f5f9; color: #475569; }
.stat .num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .82rem; font-weight: 500; margin-top: .15rem; }
.stat .small { font-size: .76rem; }

.hero-card { position: relative; overflow: hidden; border: 0; color: #e0e7ff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(56,189,248,.35), transparent 50%), linear-gradient(120deg, #312e81, #4f46e5 55%, #7c3aed); box-shadow: 0 12px 30px -12px rgba(79,70,229,.55); }
.hero-card h2 { color: #fff; }
.hero-card .btn-light { color: var(--brand-600); font-weight: 600; }

/* ---------- Tablas ---------- */
.table { --bs-table-hover-bg: #f8fafc; margin-bottom: 0; }
.table > :not(caption) > * > * { vertical-align: middle; padding: .7rem .85rem; border-bottom-color: #eef1f6; }
.table-sm > :not(caption) > * > * { padding: .5rem .7rem; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.card > .table-responsive:first-child .table thead th:first-child, .card > .table:first-child thead th:first-child { border-top-left-radius: var(--radius); }
.card > .table-responsive:first-child .table thead th:last-child, .card > .table:first-child thead th:last-child { border-top-right-radius: var(--radius); }
.table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Badges ---------- */
.badge { font-weight: 600; font-size: .72rem; padding: .35em .65em; border-radius: 999px; letter-spacing: .01em; }
.badge.text-bg-success { background: #dcfce7 !important; color: #15803d !important; }
.badge.text-bg-primary { background: #e0e7ff !important; color: #4338ca !important; }
.badge.text-bg-info { background: #e0f2fe !important; color: #0369a1 !important; }
.badge.text-bg-warning { background: #fef3c7 !important; color: #b45309 !important; }
.badge.text-bg-danger { background: #ffe4e6 !important; color: #be123c !important; }
.badge.text-bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }
.badge.text-bg-dark { background: #e2e8f0 !important; color: #1e293b !important; }
.badge.text-bg-primary.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .35em; vertical-align: 1px; animation: pulse 2s infinite; }

/* ---------- Progreso ---------- */
.progress { height: .55rem; border-radius: 999px; background: #eef1f6; }
.progress-bar { background: linear-gradient(90deg, var(--brand), var(--violet)); border-radius: 999px; }
.progress-bar.bg-success { background: linear-gradient(90deg, #10b981, #34d399) !important; }

/* ---------- Alertas ---------- */
.alert { border-radius: 12px; border: 1px solid transparent; font-size: .92rem; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.alert-info { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #c7d2fe; color: #3730a3; }
.alert-light { background: #f8fafc; }

/* ---------- Navs / paginación ---------- */
.nav-pills .nav-link { color: var(--ink-2); border-radius: 999px; font-weight: 500; }
.nav-pills .nav-link.active { background: var(--ink); }
.nav-tabs .nav-link { color: var(--muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: #fff; }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--ink-2); gap: 4px; }
.pagination .page-link { border-radius: 8px !important; }
.dropdown-menu { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow); }

/* Selector de velocidad */
#presets .btn { border-radius: 999px; }
#presets .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-check + .btn-outline-primary { min-width: 44px; }
.rate-help { font-size: .9rem; line-height: 1.6; }

/* Plantillas */
.tpl-thumb { height: 240px; overflow: hidden; position: relative; background: #f1f5f9; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.tpl-thumb iframe { width: 200%; height: 480px; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; }
.tpl-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, rgba(241,245,249,.9)); }

/* Estado vacío */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty img { width: 150px; max-width: 50%; margin-bottom: .75rem; mix-blend-mode: multiply; }
.empty i.big { font-size: 2.4rem; color: #c7d2fe; display: block; margin-bottom: .5rem; }

/* Editor */
.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--line); background: #fff; border-radius: 12px; transition: width .25s ease; }
.preview-frame.mobile { width: 390px; max-width: 100%; display: block; margin: 0 auto; border: 10px solid #0f172a; border-radius: 34px; height: 75vh; }
.editor-shell { height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
#gjs { height: 100%; }
.code-area { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; height: 100%; width: 100%; border: 0; resize: none; padding: 1rem 1.25rem; tab-size: 2; background: #0b1120; color: #e2e8f0; line-height: 1.6; }
.code-area:focus { outline: none; }
.gjs-one-bg { background-color: #1e1b4b !important; }
.gjs-two-color { color: #e0e7ff !important; }
.gjs-three-bg { background-color: var(--violet) !important; }
.gjs-four-color, .gjs-four-color-h:hover { color: #a5b4fc !important; }
.tag-list code { cursor: pointer; }
.tag-list code:hover { background: #ede9fe; }

.truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
div.truncate { display: block; }

/* Gráfico de barras del panel */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.bars .ok { background: linear-gradient(180deg, #818cf8, #4f46e5); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bars .bad { background: #fda4af; border-radius: 6px 6px 0 0; }
.bars .d { font-size: .66rem; color: var(--muted); text-align: center; margin-top: 4px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-art { position: relative; overflow: hidden; color: #e0e7ff; display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem;
  background: #0b1120 url("img/login-hero.jpg") center / cover no-repeat; }
.login-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,17,32,.55) 0%, rgba(11,17,32,0) 35%, rgba(11,17,32,0) 60%, rgba(11,17,32,.85) 100%); }
.login-art > * { position: relative; }
.login-art .brand { padding: 0; }
.login-art blockquote { font-size: 1.45rem; line-height: 1.35; font-weight: 600; color: #fff; letter-spacing: -.015em; max-width: 26ch; margin: 0 0 .75rem; }
.login-art p { color: #a5b4fc; margin: 0; font-size: .95rem; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.login-card .btn { padding: .7rem 1rem; }
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { min-height: 220px; padding: 1.5rem; }
  .login-art blockquote { font-size: 1.15rem; }
}

/* ---------- Modal de confirmación ---------- */
.confirm-modal { border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(15,23,42,.45); }
.confirm-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem; background: var(--brand-50); color: var(--brand); }
.confirm-icon.danger { background: #fff1f2; color: #e11d48; }
.modal-backdrop.show { opacity: .35; }
.btn-danger { --bs-btn-bg: #e11d48; --bs-btn-border-color: #e11d48; --bs-btn-hover-bg: #be123c; --bs-btn-hover-border-color: #be123c; box-shadow: 0 4px 12px -4px rgba(225,29,72,.5); }

/* ---------- Cuenta / 2FA ---------- */
.otp-input { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-weight: 600; }
.login-step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; margin-bottom: 1.25rem; background: linear-gradient(135deg, var(--brand), var(--violet)); box-shadow: 0 10px 24px -8px rgba(124,58,237,.6); }
.qr-box { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); width: 206px; height: 206px; }
.qr-box img, .qr-box canvas { display: block; }
.strength-bar { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; margin-bottom: .35rem; }
.strength-bar span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.user-chip .who-name strong { color: #e2e8f0; }
.user-chip .who-name:hover strong { color: #fff; }
[data-copy] { cursor: pointer; transition: background .2s; }
[data-copy].copied { background: #dcfce7 !important; }

/* ---------- Onboarding ---------- */
.onboard { background: linear-gradient(135deg, #ffffff, #f5f3ff); }
.onboard .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; }
.onboard .step { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: border-color .15s, transform .15s; }
.onboard a.step:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.onboard .step .chk { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .8rem; border: 2px solid #c7d2fe; color: transparent; }
.onboard .step.done { opacity: .65; }
.onboard .step.done .chk { background: #10b981; border-color: #10b981; color: #fff; }
.onboard .step strong { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }
.onboard .step small { color: var(--muted); font-size: .78rem; }
.onboard .progress { height: .4rem; }

/* ---------- Pausa global ---------- */
.paused-banner { background: repeating-linear-gradient(135deg, #fffbeb, #fffbeb 12px, #fef3c7 12px, #fef3c7 24px); border: 1px solid #fde68a; color: #92400e; border-radius: 12px; }
.worker-status.paused .dot { background: #f59e0b; }

/* ---------- Vista previa de bandeja de entrada ---------- */
.inbox-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.inbox-preview .bar { background: #f8fafc; border-bottom: 1px solid var(--line); padding: .45rem .8rem; font-size: .72rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.inbox-preview .bar .dots { display: flex; gap: 4px; margin-right: .4rem; }
.inbox-preview .bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; display: block; }
.inbox-row { display: flex; gap: .75rem; padding: .7rem .9rem; align-items: flex-start; }
.inbox-row + .inbox-row { border-top: 1px solid #f1f5f9; opacity: .45; }
.inbox-row .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; flex: none; background: linear-gradient(135deg, #6366f1, #a855f7); }
.inbox-row .av.gray { background: #cbd5e1; }
.inbox-row .meta { min-width: 0; flex: 1; }
.inbox-row .from { font-weight: 700; color: var(--ink); font-size: .86rem; display: flex; justify-content: space-between; gap: .5rem; }
.inbox-row .from span { font-weight: 500; color: var(--muted); font-size: .74rem; }
.inbox-row .line { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .line b { color: var(--ink); font-weight: 600; }
.inbox-row .line em { font-style: normal; color: var(--muted); }
.inbox-row .ph { height: 8px; border-radius: 4px; background: #e2e8f0; margin-top: 6px; }

/* ---------- Actividad de campaña ---------- */
.activity-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.activity-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; height: 100%; min-width: 4px; }
.activity-chart .o { background: #a5b4fc; border-radius: 3px 3px 0 0; }
.activity-chart .c { background: #4f46e5; border-radius: 0 0 2px 2px; }
.chart-axis { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 4px; }
