/* ============================================================
   EfelecLab — main.css
   Variables globales, reset, tipografía y componentes base
   ============================================================ */

/* ---- Variables ---- */
:root {
  --font-body:    'Sora', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --color-bg:          #0d1117;
  --color-surface:     #161b22;
  --color-surface-2:   #1c2330;
  --color-surface-3:   #21262d;
  --color-border:      #30363d;
  --color-border-soft: #21262d;

  --color-text:        #e6edf3;
  --color-text-muted:  #8b949e;
  --color-text-faint:  #484f58;

  --color-primary:     #1a73e8;
  --color-primary-dim: rgba(26,115,232,0.15);
  --color-primary-glow:rgba(26,115,232,0.30);

  --color-success:     #0f9d58;
  --color-warning:     #f4b400;
  --color-danger:      #db4437;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);

  --sidebar-w:  260px;
  --topbar-h:   64px;

  --transition: 0.18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
button:hover, button:focus, .btn:hover, .btn:focus { text-decoration: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
code { font-family: var(--font-mono); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-faint); }

/* ============================================================
   COMPONENTES BASE
   ============================================================ */

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover { background: #1557b0; }
.btn-secondary {
  background: var(--color-surface-3);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface-2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--color-text-muted); }
.card-body { padding: 20px; }

/* ---- Alertas ---- */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--error   { background: rgba(219,68,55,0.12); border-color: rgba(219,68,55,0.3); color: #f28b82; }
.alert--warning { background: rgba(244,180,0,0.10); border-color: rgba(244,180,0,0.3); color: #fdd663; }
.alert--success { background: rgba(15,157,88,0.10); border-color: rgba(15,157,88,0.3); color: #81c995; }
.alert i { flex-shrink: 0; }

/* ---- Password toggle (global) ---- */
.form-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.form-pass-toggle:hover { color: var(--color-text-muted); }

/* ---- Forms base ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-input-wrap { position: relative; }
.form-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input--noicon { padding-left: 14px; }
.form-input::placeholder { color: var(--color-text-faint); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.form-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  font-size: 14px;
  pointer-events: none;
}

/* ---- Notificaciones dropdown ---- */
.topbar-notif {
  position: relative;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.topbar-notif:hover { background: var(--color-surface-3); color: var(--color-text); }
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
}
.notif-mark-all { font-size: 11px; color: var(--color-primary); font-weight: 400; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-soft);
  transition: background var(--transition);
}
.notif-item:hover { background: var(--color-surface-2); }
.notif-item.unread { background: var(--color-primary-dim); }
.notif-item--clickable { cursor: pointer; }
.notif-item--clickable:hover { background: var(--color-surface-3, var(--color-surface-2)); }
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  font-size: 13px;
}
.notif-content { flex: 1; min-width: 0; }
.notif-text { font-size: 12px; color: var(--color-text); margin-bottom: 2px; }
.notif-time { font-size: 11px; color: var(--color-text-muted); }
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
}
.notif-empty i { font-size: 22px; color: var(--color-success); }

.notif-footer {
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
}

/* ---- Footer ---- */
.app-footer {
  padding: 12px 24px;
  font-size: 11px;
  color: var(--color-text-faint);
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--color-border-soft);
}
.footer-sep { color: var(--color-border); }

/* ---- Section title ---- */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--color-text-muted); font-size: 14px; }

/* ---- KPI Grid ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition);
}
.kpi-card:hover { border-color: var(--color-primary); }
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-dim);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.kpi-icon--green { background: rgba(15,157,88,0.12); color: var(--color-success); }
.kpi-icon--yellow { background: rgba(244,180,0,0.12); color: var(--color-warning); }
.kpi-icon--red { background: rgba(219,68,55,0.12); color: var(--color-danger); }
.kpi-body { display: flex; flex-direction: column; }
.kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.kpi-label { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Placeholder section ---- */
.placeholder-section {
  text-align: center;
  padding: 48px 32px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.placeholder-icon {
  font-size: 48px;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}
.placeholder-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.placeholder-section p {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 10px;
}
.placeholder-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  margin-top: 12px !important;
}

/* ---- Loading / Empty states globales ---- */
.doc-loading,
.doc-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  grid-column: 1 / -1;
  width: 100%;
}
.doc-empty i   { font-size: 2rem; opacity: 0.5; }
.doc-loading i { font-size: 1.4rem; }

/* ---- Table placeholder (skeleton) ---- */
.table-placeholder { display: flex; flex-direction: column; gap: 10px; }
.table-placeholder-row {
  display: flex;
  gap: 12px;
}
.table-placeholder-row span {
  height: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-3);
  flex: 1;
  animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}
.table-placeholder-header span {
  background: var(--color-surface-2);
  height: 18px;
}
@keyframes skeleton-pulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ---- Profile trigger + dropdown ---- */
.profile-trigger {
  position: relative;
  cursor: pointer;
}
.profile-trigger .topbar-user {
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  cursor: pointer;
}
.profile-trigger .topbar-user:hover,
.profile-trigger.open .topbar-user {
  background: var(--color-surface-3);
}
.profile-chevron {
  font-size: 10px;
  color: var(--color-text-faint);
  transition: transform var(--transition);
  margin-left: 2px;
}
.profile-trigger.open .profile-chevron { transform: rotate(180deg); }

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  overflow: hidden;
}
.profile-dropdown.open { display: block; }
.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.profile-avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
  flex-shrink: 0;
  border-radius: var(--radius-full) !important;
  object-fit: cover;
}
.profile-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-dropdown-name  { font-size: 13px; font-weight: 600; color: var(--color-text); }
.profile-dropdown-email { font-size: 11px; color: var(--color-text-muted); margin-top: 1px; }
.profile-dropdown-items { padding: 6px; }
.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.profile-dropdown-item:hover { background: var(--color-surface-3); color: var(--color-text); text-decoration: none; }
.profile-dropdown-item i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.profile-dropdown-item-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.profile-dropdown-sep { height: 1px; background: var(--color-border-soft); margin: 4px 6px; }
.profile-dropdown-logout:hover { background: rgba(219,68,55,0.1) !important; color: var(--color-danger) !important; }

/* ---- Notificaciones: icono por tipo ---- */
.notif-icon--success { background: rgba(15,157,88,0.12) !important;  color: var(--color-success) !important; }
.notif-icon--warning { background: rgba(244,180,0,0.12) !important;  color: var(--color-warning) !important; }
.notif-icon--error   { background: rgba(219,68,55,0.12) !important;  color: var(--color-danger)  !important; }

/* ---- Botón marcar notificación como leída ---- */
.notif-read-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 11px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  margin-left: auto;
}
.notif-read-btn:hover { background: var(--color-success); color: #fff; }

/* ---- Topbar base ---- */
.topbar-logout {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.topbar-logout:hover {
  background: rgba(219,68,55,0.12);
  color: var(--color-danger);
  text-decoration: none;
}

/* ---- User info ---- */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-role { font-size: 10px; color: var(--color-text-muted); text-transform: capitalize; }

/* ---- Responsive base ---- */
@media (max-width: 900px) {
  /* Dropdown notificaciones: evitar salirse por la derecha */
  .notif-dropdown {
    width: 300px;
    right: -8px;
  }
}

@media (max-width: 768px) {
  .user-info { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  /* Dropdown notificaciones compacto */
  .notif-dropdown { width: 280px; }

  /* Profile dropdown */
  .profile-dropdown { width: 240px; }

  /* Footer */
  .app-footer { padding: 10px 16px; font-size: 10px; }
}

@media (max-width: 600px) {
  /* Dropdown notificaciones: casi full width */
  .notif-dropdown {
    position: fixed;
    top: var(--topbar-h);
    left: 8px;
    right: 8px;
    width: auto;
  }

  /* Profile dropdown: anclado a la derecha */
  .profile-dropdown {
    position: fixed;
    top: var(--topbar-h);
    right: 8px;
    width: calc(100vw - 16px);
    max-width: 320px;
  }

  /* Topbar actions más compactas */
  .topbar-actions { gap: 4px; }

  /* Modales más pequeños */
  .sp-picker-box {
    max-height: calc(100vh - 40px);
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }

  /* KPI cards más compactas */
  .kpi-card { padding: 14px; gap: 12px; }
  .kpi-icon { width: 38px; height: 38px; font-size: 15px; }
  .kpi-value { font-size: 18px; }
}

/* ============================================================
   MODAL OVERLAY GLOBAL (sp-picker)
   ============================================================ */
.sp-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  padding: 16px;
}

.sp-picker-overlay.sp-picker-visible {
  opacity: 1;
  pointer-events: auto;
}

.sp-picker-box {
  background: #1e2537;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
  overflow: hidden;
}

.sp-picker-overlay.sp-picker-visible .sp-picker-box {
  transform: translateY(0) scale(1);
}

.sp-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
}

.sp-picker-header-left { flex: 1; min-width: 0; }

.sp-picker-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-picker-title i { color: #60a5fa; }

.sp-picker-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.sp-picker-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-text);
}

.sp-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ============================================================
   SEG-FORM — formulario de seguimiento (global, usado en
   análisis de documentos y modal de reactivar en seguimientos)
   ============================================================ */
.seg-form {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.seg-form-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.seg-form-section:last-child { border-bottom: none; }

.seg-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.seg-form-optional {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.seg-form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.seg-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seg-item-tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.83rem;
  color: var(--color-text);
}

.seg-item-tab-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.seg-item-tab-badge--negocio {
  background: rgba(26,115,232,0.15);
  color: #60a5fa;
}

.seg-item-tab-badge--fechas {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}

.seg-item-text {
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

.seg-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.seg-item-remove:hover { color: #ef4444; }

.seg-fecha-row,
.seg-recur-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.seg-fecha-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--color-text);
}

.seg-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}
.seg-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.seg-input--sm { width: 80px; }

.seg-textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  min-height: 80px;
}
.seg-textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.seg-email-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 0;
}

.seg-email-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(26,115,232,0.12);
  border: 1px solid rgba(26,115,232,0.3);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: 0.8rem;
  color: #60a5fa;
}

.seg-email-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #60a5fa;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}
.seg-email-tag-remove:hover { opacity: 1; color: #ef4444; }

.seg-form-actions {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
}

